/* ================= Tokens ================= */
:root {
  --bg: #080808;
  --bg-2: #101010;
  --card: #171717;
  --card-2: #1e1e1e;
  --text: #f5f3ee;
  --white: #fff;
  --muted: #a0a0a0;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);

  --gold: #c9a46a;         /* antique gold — the signature */
  --gold-lt: #e8cf9c;      /* champagne */
  --gold-dk: #8c6a3a;      /* bronze */
  --gold-grad: linear-gradient(176deg, #f1dcae 0%, #cfa866 48%, #9b7440 100%);
  --gold-glow: rgba(201, 164, 106, 0.18);

  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body: 'Archivo', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

/* ================= Reset ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(16px, 0.35vw + 14.8px, 18px);
  line-height: 1.55;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
::selection { background: var(--gold); color: #080808; }

:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #080808; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }
.anchor { position: absolute; top: 0; }

/* Subtle film grain — one tiny inline SVG, no image request */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ================= Type ================= */
.label, .eyebrow {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.eyebrow i { color: var(--gold); font-style: normal; margin: 0 0.4em; }
.display, .h2 {
  font-family: var(--f-display);
  font-weight: 850;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-variation-settings: 'wdth' 118;
}
.display { font-size: clamp(2.8rem, 8.4vw, 8.5rem); }
.h2 { font-size: clamp(2.2rem, 5.6vw, 5.4rem); }
.gold {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.01em; font-variation-settings: normal; color: var(--gold-lt); }
.serif-lg { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2.2rem); color: var(--muted); }

/* ================= Buttons ================= */
.btn {
  --pad: 0.95em 1.5em;
  display: inline-flex; align-items: center; gap: 0.6em; padding: var(--pad);
  border-radius: 999px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid transparent; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn .arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: #0b0906; box-shadow: 0 0 0 0 var(--gold-glow); }
.btn-gold:hover { background: var(--gold-lt); box-shadow: 0 10px 40px -8px rgba(201, 164, 106, 0.45); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-lt); }
.btn-sm { --pad: 0.8em 1.25em; font-size: 0.72rem; }
.btn-lg { --pad: 1.15em 1.9em; font-size: 0.9rem; }

/* ================= Nav ================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 8, 8, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 11px; line-height: 1; }
.logo-mark { width: 34px; height: 34px; object-fit: contain; flex: none; }
.logo-text { display: inline-flex; flex-direction: column; gap: 5px; }
.logo-word {
  font-weight: 900; text-transform: uppercase; font-size: 1.12rem; letter-spacing: -0.01em;
  font-variation-settings: 'wdth' 115;
}
.logo-word b { font-weight: 900; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-sub { font-size: 0.52rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted); padding-left: 1px; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav-links a, .nav-talk {
  position: relative; font-size: 0.78rem; letter-spacing: 0.06em; color: rgba(245, 243, 238, 0.78); padding: 6px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

/* ---- What we do: two-option service selector ---- */
.what-we-do { position: relative; }
.wwd-trigger {
  font-size: 0.78rem; letter-spacing: 0.06em; color: rgba(245, 243, 238, 0.78); padding: 6px 0;
  display: inline-flex; align-items: center; gap: 6px; transition: color 0.3s;
}
.wwd-trigger::after { content: '▾'; font-size: 0.6em; opacity: 0.7; transition: transform 0.3s var(--ease); }
.what-we-do:hover .wwd-trigger, .wwd-trigger[aria-expanded='true'] { color: var(--gold-lt); }
.wwd-trigger[aria-expanded='true']::after { transform: rotate(180deg); }
.wwd-panel {
  position: absolute; top: calc(100% + 22px); left: 50%; translate: -50% 0; width: min(72vw, 620px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background-color: #0e0e0e; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
}
.wwd-panel.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.wwd-opt {
  position: relative; grid-row: 1; background: #101010; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px;
  transition: background 0.3s var(--ease);
}
.wwd-opt:hover, .wwd-opt:focus-visible { background: #151515; }
.wwd-n { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.14em; }
.wwd-t { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.wwd-l { font-size: 0.84rem; color: var(--muted); line-height: 1.35; }
.wwd-go { margin-top: 4px; font-size: 0.76rem; letter-spacing: 0.08em; color: var(--gold-lt); }
.wwd-go .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.wwd-opt:hover .wwd-go .arrow { transform: translateX(4px); }
.wwd-preview { display: none; }
@media (min-width: 1000px) {
  .wwd-panel { grid-template-columns: 1fr 1fr 0.9fr; }
  .wwd-preview { position: relative; grid-row: 1; overflow: hidden; background: #0a0a0a; }
  .wwd-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s var(--ease); filter: saturate(0.85) brightness(0.72); }
  .wwd-preview img.is-on { opacity: 1; }
}
@media (max-width: 999px) { .what-we-do { display: none; } }
.nav-links a:hover, .nav-links a.is-active, .nav-talk:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; }
.burger, .burger::before { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease); }
.burger { position: relative; transform: translateY(-3px); }
.burger::before { content: ''; position: absolute; top: 6px; }
.nav-toggle[aria-expanded='true'] .burger { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .burger::before { transform: translateY(-6px) rotate(-90deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(8, 8, 8, 0.97);
  display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) var(--gutter) 40px;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-weight: 850; text-transform: uppercase; font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; font-variation-settings: 'wdth' 115; }
.menu .menu-gold { color: var(--gold); }
.menu-group-label { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 4px 0 2px; }
.menu nav a:nth-child(2), .menu nav a:nth-child(3) { font-size: clamp(1.5rem, 6.4vw, 2.1rem); color: var(--gold-lt); }
.menu-foot { margin-top: 36px; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; }

@media (max-width: 960px) {
  .nav-links, .nav-talk { display: none; }
  .nav-toggle { display: grid; }
  .nav-actions { gap: 10px; }
}

/* ================= Scroll progress (story only) ================= */
.progress {
  position: fixed; left: 50%; bottom: 26px; z-index: 40; translate: -50% 0;
  display: flex; gap: 28px;
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245, 243, 238, 0.32);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.progress.is-on { opacity: 1; }
.progress li { transition: color 0.4s; white-space: nowrap; }
.progress li span { margin-right: 8px; }
.progress li.is-active { color: var(--gold); }
@media (max-width: 1100px) { .progress { display: none; } }

/* ================= Reveal (enhanced only) ================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ================= Mobile dock ================= */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 48;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px;
    background: rgba(16, 16, 16, 0.82); border: 1px solid var(--line); border-radius: 999px;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transform: translateY(140%); transition: transform 0.5s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock .btn { justify-content: center; }
  .nav .btn-gold { display: none; }
}

/* ================= Cursor tag (desktop, hover-capable only) ================= */
.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  padding: 8px 14px; border-radius: 999px; background: var(--gold); color: #0b0906;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; scale: 0.6; transition: opacity 0.25s, scale 0.3s var(--ease);
}
.cursor-tag.is-on { opacity: 1; scale: 1; }
@media (hover: none) { .cursor-tag { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
