/* ─────────────────────────────────────────────────────────────
   Naurel v5 — Design system (award-winner discipline)
   Reference: Linear (grayscale), Framer (GT Walsheim typography),
              Sequoia (warm cream), Stripe (editorial), Figma (B&W + accent)
   Palette: 4 colors. Animation: subtle. Editorial discipline.
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=Geist:wght@100..900&family=Geist+Mono:wght@100..900&display=swap');

:root {
  /* ── Palette: 4 colors only ── */
  --ink:        #0a0e14;   /* near-black — backgrounds, dark sections, text */
  --paper:      #f5f3ee;   /* warm parchment — page background */
  --signal:     #c89d4a;   /* single warm accent — used sparingly */
  --coral:      #ab4039;   /* heritage maritime — brand mark only */

  /* ── Derived grays (from ink) ── */
  --ink-2:      #1a1f2a;
  --ink-3:      #2a2f3a;
  --line:       #d4d0c5;
  --line-2:     #b8b3a4;
  --warm-gray:  #6b6862;
  --warm-gray-2: #908b80;

  /* ── Typography ── */
  --serif:      'Fraunces', 'PT Serif', Georgia, serif;
  --sans:       'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --mono:       'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* ── Type scale ── */
  --t-display:  clamp(80px, 11vw, 144px);
  --t-h1:       clamp(56px, 7vw, 88px);
  --t-h2:       clamp(36px, 5vw, 56px);
  --t-h3:       clamp(24px, 3vw, 32px);
  --t-lead:     clamp(18px, 1.5vw, 22px);
  --t-body:     16px;
  --t-small:    14px;
  --t-eyebrow:  11px;

  /* ── Spacing ── */
  --gutter:     clamp(24px, 4vw, 56px);
  --max:        1320px;
  --section-y:  clamp(80px, 12vw, 160px);

  /* ── Motion (subtle per Linear/Stripe discipline) ── */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --dur:        0.4s;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "kern";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
h1 { font-size: var(--t-h1); font-weight: 400; }
h2 { font-size: var(--t-h2); font-weight: 400; }
h3 { font-size: var(--t-h3); font-weight: 500; }
h4 { font-size: var(--t-lead); font-weight: 500; }
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-display);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--signal);
}
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.65;
}
.eyebrow .dot { color: var(--signal); }
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--section-y) 0;
  position: relative;
}
section.alt { background: #efeae0; }
section.dark { background: var(--ink); color: var(--paper); }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--paper); }
section.dark .eyebrow { color: var(--paper); opacity: 0.6; }

/* ── Buttons (Linear-style restraint) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--ink-2);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { background: var(--signal); color: var(--ink); }
.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(245, 243, 238, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 44px; height: 44px;
  display: block;
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}
.brand-text small {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--warm-gray);
  margin-top: 5px;
  text-transform: uppercase;
  font-weight: 500;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 400;
}
.site-nav a {
  color: var(--ink);
  transition: color 0.2s;
  position: relative;
}
.site-nav a:hover { color: var(--signal); }
.site-nav a.active { color: var(--signal); }

/* ── Language switcher (Linear-style) ── */
.lang-switcher { position: relative; font-size: 12px; }
.lang-switcher button {
  background: none;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
}
.lang-switcher button:hover { border-color: var(--ink); }
.lang-switcher .arrow { font-size: 9px; transition: transform 0.2s; }
.lang-switcher.open .arrow { transform: rotate(180deg); }
.lang-switcher .menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  min-width: 180px;
  display: none;
  z-index: 50;
  box-shadow: 0 12px 36px rgba(10, 14, 20, 0.08);
}
.lang-switcher.open .menu { display: block; }
.lang-switcher .menu button {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: var(--sans);
  letter-spacing: normal;
  text-transform: none;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lang-switcher .menu button:hover { background: #efeae0; }
.lang-switcher .menu button.active { color: var(--signal); }
.lang-switcher .menu .code { font-family: var(--mono); font-size: 10px; color: var(--warm-gray); }

/* ── Reveal animations (subtle per DIALS: MOTION 3-4) ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ── RTL ── */
html[dir="rtl"] { direction: rtl; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--line); padding: 8px;
    border-radius: 6px; color: var(--ink);
  }
  .lang-switcher button .label { display: none; }
}
