/* =========================================================
   Seyonix 3D — midnight navy, champagne gold, editorial serif
   ========================================================= */
:root {
  --bg: #050814;
  --bg-2: #0a1020;
  --royal: #1d3c91;
  --gold: #d8b46a;
  --gold-deep: #b48a3e;
  --champagne: #f1e2bb;
  --ivory: #f4efe5;
  --muted: rgba(244, 239, 229, .64);
  --faint: rgba(244, 239, 229, .42);
  --hair: rgba(244, 239, 229, .1);
  --on-gold: #17110a;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4.5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0; background: var(--bg); color: var(--ivory);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
em { font-style: italic; color: var(--gold); }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.muted { color: var(--muted); }
.eyebrow { color: var(--gold); display: inline-block; margin-bottom: 28px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg); transition: opacity .9s var(--out), visibility .9s;
}
.loader-bar { width: 160px; height: 1px; background: var(--hair); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.loader .mono { color: var(--faint); }
.ready .loader { opacity: 0; visibility: hidden; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60;
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  border: 1px solid transparent; transition: background .5s, border-color .5s, backdrop-filter .5s;
}
.scrolled .nav { background: rgba(5, 8, 20, .62); border-color: var(--hair); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: .01em; }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .3s; }
.nav-links a:hover { color: var(--ivory); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px;
  background: var(--gold); color: var(--on-gold); font-weight: 500; font-size: 15px;
  transition: background .3s, transform .3s var(--out);
}
.btn:hover { background: var(--champagne); transform: translateY(-1px); }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ivory); border: 1px solid var(--hair); }
.btn.ghost:hover { border-color: var(--gold); color: var(--champagne); }
.arrow { font-size: .95em; }

/* ---------- scroll-scrubbed sections ---------- */
.scrub { position: relative; height: 520vh; }
#process { height: 560vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 50%, rgba(3, 5, 12, .7) 100%),
    linear-gradient(90deg, rgba(3, 5, 12, .55) 0%, transparent 38%, transparent 70%, rgba(3, 5, 12, .35) 100%),
    linear-gradient(180deg, rgba(3, 5, 12, .55) 0%, transparent 22%, transparent 62%, rgba(3, 5, 12, .85) 100%);
}
.reveal-line { position: absolute; z-index: 5; opacity: 0; will-change: opacity, transform; }

.hero-intro { left: var(--gutter); right: var(--gutter); bottom: 9vh; display: grid; gap: 18px; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.wordmark {
  /* capitals, like the logo — a lowercase serif "y" reads as "v" at a glance */
  display: block; font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 8rem); line-height: .86; letter-spacing: .03em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--ivory) 30%, var(--champagne) 70%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 440px; color: var(--muted); font-size: 16px; }

.beat {
  top: 50%; margin-top: -0.9em; max-width: 40vw;
  font-family: var(--serif); font-size: clamp(2.8rem, 6.2vw, 6.4rem); line-height: .95; letter-spacing: -.01em;
}
.beat.left { left: var(--gutter); }
.beat.right { right: var(--gutter); text-align: right; }

.step { left: var(--gutter); bottom: 14vh; max-width: 520px; display: grid; gap: 12px; }
.step .mono { color: var(--gold); }
.step h2, .step h3 { font-family: var(--serif); font-size: clamp(3rem, 7vw, 6.5rem); line-height: .9; }
.step p { color: var(--muted); max-width: 400px; }
.finale {
  left: var(--gutter); right: var(--gutter); bottom: 8vh; text-align: center;
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1;
}

.hud { position: absolute; z-index: 6; color: var(--faint); }
.hud.tl { top: 92px; left: var(--gutter); }
.hud.tr { top: 92px; right: var(--gutter); }
.hud.bl { bottom: 30px; left: var(--gutter); color: var(--gold); }
.hud.br { bottom: 30px; right: var(--gutter); }
.progress { position: absolute; z-index: 6; left: 50%; bottom: 36px; width: min(220px, 30vw); height: 1px; transform: translateX(-50%); background: var(--hair); }
.progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px var(--gold); }
.scroll-hint { position: absolute; z-index: 6; left: 50%; bottom: 52px; transform: translateX(-50%); color: var(--muted); transition: opacity .4s; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 6px; } }

/* ---------- scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--out), transform 1.1s var(--out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- our view ---------- */
.view { padding-block: clamp(120px, 20vh, 220px); }
.statement { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.08; max-width: 22ch; letter-spacing: -.005em; }

/* ---------- services ---------- */
.services { padding-bottom: clamp(100px, 16vh, 180px); }
.section-head { display: grid; gap: 22px; max-width: 760px; margin-bottom: 64px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1; }
/* ---------- CTA ---------- */
.cta {
  padding-block: clamp(120px, 22vh, 240px); text-align: center; border-top: 1px solid var(--hair);
  background: radial-gradient(60% 70% at 50% 100%, rgba(29, 60, 145, .45), transparent 70%);
}
.cta .wrap { display: grid; justify-items: center; gap: 26px; }
.cta .eyebrow { margin-bottom: 0; }
.cta h2 { font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 6.6rem); line-height: .95; }
.cta p { max-width: 460px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

.footer { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-block: 36px; border-top: 1px solid var(--hair); }
.footer .mono { color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .beat { max-width: none; top: auto; bottom: 14vh; margin: 0; }
  .beat.right { left: var(--gutter); text-align: left; }
  .hud.tr, .hud.br { display: none; }
}
@media (max-width: 600px) {
  .nav { padding-left: 16px; }
  .hud.tl { top: 84px; }
  .hero-intro { bottom: 12vh; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-hint { animation: none; }
}

/* SEO-visible hero heading: keyword line + wordmark live in one h1 */
.hero-h1 { display: grid; gap: 18px; margin: 0; font-weight: 400; }
h2.hud { margin: 0; font-weight: 400; }
