/* Buying® holding page. Tokens mirror design/tokens.json (r2, trust palette). */
:root {
  --midnight: #050F2C;
  --navy: #0B1E4B;
  --royal: #2F5BFF;
  --azure: #7C9CFF;
  --silver: #AFC0E3;
  --porcelain: #F2F5FB;
  --line-light: #D5DDEE;
  --muted: #4A5878;
  --white: #FFFFFF;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1280px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* Spacing scale: base 8, half-step 4 (craft-baseline §3). Inside a group < between groups. */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--midnight); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--navy); color: var(--white);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
sup { font-size: .4em; font-weight: 500; vertical-align: top; position: relative; top: .1em; margin-left: .08em; letter-spacing: 0; font-variation-settings: "wdth" 100, "wght" 500; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 4px; border-radius: 3px; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding: 22px var(--edge);
  transition: background-color .4s var(--ease), padding .4s var(--ease);
}
.nav.solid { background: rgba(5, 15, 44, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-block: 14px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.wm { display: block; width: 100%; height: auto; overflow: visible; }
.nav .logo .wm { width: 128px; }
.nav .logo { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.motion .nav .logo { opacity: 0; transform: translateY(-4px); }
.motion .nav.solid .logo { opacity: 1; transform: none; }
/* The nav logo crossfades in with the scroll (home.js, D-031); no CSS transition fighting the scrub. */
.logo-scrub .nav .logo { transition: none; }
.pre .hero-mark .wm, .pre .hero-row { visibility: hidden; }
/* When the shader draws the wordmark, the SVG keeps its box (for layout and position) but is not painted. */
.gl .hero-mark .wm { visibility: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-cta {
  text-decoration: none; font-weight: 600; font-size: .9375rem;
  padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s;
}
.nav-cta:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex;
  /* No-WebGL / no-JS ground: the same pinstripe field, still. */
  background:
    repeating-linear-gradient(90deg, rgba(124,156,255,.07) 0 1px, transparent 1px 9px),
    radial-gradient(90% 70% at 72% 30%, #16307A 0%, var(--navy) 50%, var(--midnight) 100%);
}
.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.field.live { opacity: var(--fade, 1); }
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin-inline: auto;
  padding: var(--s-9) var(--gutter) var(--s-7);
  display: grid; grid-template-rows: 1fr auto; min-height: 100svh;
}
/* The wordmark owns the middle of the screen; the lede row sits on the floor. */
.hero-mark { margin: 0; align-self: center; padding-block: var(--s-6); }
.hero-row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); row-gap: var(--s-4); align-items: start;
  border-top: 1px solid rgba(175,192,227,.22); padding-top: var(--s-6);
}
.hero-row .hero-title { grid-column: 1 / span 7; }
.hero-row .hero-side { grid-column: 8 / span 5; padding-top: .45rem; }
.hero-title {
  margin: 0; font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1; letter-spacing: -.024em;
  font-variation-settings: "wdth" 110, "wght" 750;
  text-wrap: balance; max-width: 14ch;
}

.hero-sub { margin: 0 0 var(--s-4); font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); line-height: 1.5; color: var(--silver); max-width: 34ch; text-wrap: pretty; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--white); color: var(--navy); font-weight: 650; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--royal); color: var(--white); }

/* ---------- About ---------- */
/* Stacked panels: each section slides up over the one before (see home.js). */
.hero { z-index: 1; }
.about, .contact, .foot { position: relative; }
.about { z-index: 2; background: var(--porcelain); color: var(--navy); padding-block: clamp(72px, 9vw, 128px); min-height: 100svh; display: flex; align-items: center; box-shadow: 0 -40px 80px rgba(5,15,44,.35); }
.about .wrap { width: 100%; }
.statement {
  margin: 0; max-width: 20ch; text-wrap: balance;
  font-size: clamp(2.5rem, 6.4vw, 6.75rem);
  font-size: clamp(2.5rem, min(6.4vw, 10.5svh), 6.75rem); /* never taller than the screen, so the pinned panel shows it all */
  line-height: 1.08; font-weight: 650; letter-spacing: -.02em;
  font-variation-settings: "wdth" 104, "wght" 650;
}
.motion .statement .word { opacity: .5; }
.keep { white-space: nowrap; } /* keeps the last two words together; SplitText drops &nbsp; */

/* ---------- Contact ---------- */
.contact { z-index: 4; min-height: 64svh; display: flex; align-items: center; box-shadow: 0 -40px 80px rgba(5,15,44,.3); background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 9px), radial-gradient(80% 140% at 85% 0%, #4A72FF 0%, var(--royal) 55%, #2448D8 100%); padding-block: clamp(64px, 8vw, 120px); }
.contact-inner { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 48px; }
.contact-title { margin: 0; font-size: clamp(2.75rem, 7vw, 6.75rem); line-height: .95; font-weight: 800; letter-spacing: -.028em; font-variation-settings: "wdth" 110, "wght" 800; }
.contact-mail {
  display: inline-block; text-decoration: none;
  font-size: clamp(1.25rem, 2.4vw, 2.125rem); font-weight: 600; letter-spacing: -.01em;
  border-bottom: 2px solid rgba(255,255,255,.5); padding-bottom: 4px; overflow-wrap: anywhere;
  transition: border-color .25s var(--ease);
}
.contact-mail:hover { border-bottom-color: var(--white); }

/* ---------- What we do ---------- */
@property --cover { syntax: '<length>'; inherits: true; initial-value: 9px; }
.what {
  position: relative; z-index: 3; min-height: 100svh; display: flex; align-items: center; color: var(--white);
  padding-block: clamp(72px, 9vw, 128px);
  background:
    repeating-linear-gradient(90deg, rgba(124,156,255,.05) 0 1px, transparent 1px 9px),
    radial-gradient(70% 90% at 15% 20%, #12296A 0%, var(--navy) 45%, var(--midnight) 100%);
  box-shadow: 0 -40px 80px rgba(5,15,44,.35);
}
.what-inner { width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); row-gap: var(--s-6); align-items: start; }
.what-head { grid-column: 1 / span 3; padding-top: var(--s-3); }
.caps { grid-column: 4 / span 9; }
.what-head h2 { margin: 0 0 var(--s-2); font-size: 1.125rem; font-weight: 700; letter-spacing: 0; color: var(--white); font-variation-settings: "wdth" 108, "wght" 700; }
.what-head p { margin: 0; color: var(--silver); max-width: 22ch; }
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--s-6); row-gap: var(--s-3); }
.cap { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; border-top: 1px solid rgba(175,192,227,.16); padding-top: var(--s-3); }
.cap-word {
  --cover: 9px;
  font-size: clamp(2.5rem, 5.6vw, 5.5rem); line-height: .95; font-weight: 800; letter-spacing: -.025em;
  font-variation-settings: "wdth" 112, "wght" 800;
  /* The brand's pinstripe as the letter fill: thin stripes when resting, solid when lit. */
  background: repeating-linear-gradient(90deg, #fff 0 var(--cover), rgba(255,255,255,0) var(--cover) 9px);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: --cover .6s var(--ease);
}
.cap-line { color: var(--silver); font-size: clamp(1rem, 1.15vw, 1.125rem); max-width: 30ch; transition: color .4s var(--ease); }
.motion .cap-word { --cover: 2.5px; }
.motion .cap.on .cap-word, .motion .cap:hover .cap-word { --cover: 9px; }
.motion .cap .cap-line { color: rgba(175,192,227,.55); }
.motion .cap.on .cap-line, .motion .cap:hover .cap-line { color: var(--silver); }

/* ---------- Footer ---------- */
.foot { z-index: 4; position: relative; background: var(--midnight); color: var(--silver); padding-block: clamp(48px, 6vw, 72px) 28px; font-size: .875rem; line-height: 1.6; }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); row-gap: var(--s-5); padding-bottom: var(--s-5); border-bottom: 1px solid rgba(175,192,227,.14); }
.foot-brand { grid-column: 1 / span 3; }
.foot-facts { grid-column: 4 / span 9; }
.foot-brand .logo { color: var(--white); }
.foot-brand .logo .wm { width: 132px; }
.foot-brand p { margin: var(--s-3) 0 0; color: var(--silver); }
.foot-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.foot-facts dt { color: var(--white); font-weight: 600; margin-bottom: var(--s-2); font-size: .8125rem; letter-spacing: .01em; }
.foot-facts dd { margin: 0; font-feature-settings: "tnum" 1, "lnum" 1; }
.foot-base { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; align-items: center; padding-top: var(--s-4); font-size: .8125rem; }
.foot-base p { margin: 0; }
.foot-base a { text-decoration: none; color: var(--white); }
.foot-base a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-inner { min-height: 0; grid-template-rows: auto auto; padding-top: 112px; padding-bottom: 56px; gap: 28px; }
  .hero-mark { padding-block: 24px 8px; }
  .hero-row { grid-template-columns: 1fr; padding-top: var(--s-5); }
  .hero-row .hero-title, .hero-row .hero-side { grid-column: 1 / -1; }
  .hero-row .hero-side { padding-top: 0; }
  .about { padding-block: var(--s-8); min-height: 0; align-items: flex-start; }
  .contact { min-height: 64svh; }
  .what { min-height: 100svh; }
  .what-inner, .foot-top { grid-template-columns: 1fr; }
  .what-head, .caps, .foot-brand, .foot-facts { grid-column: 1 / -1; }
  .caps { grid-template-columns: 1fr; }
  .cap { grid-template-columns: 1fr; row-gap: var(--s-1); }
  .foot-facts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Panels only overlap when the stacking choreography runs (motion). Without it, the
   overlap shadows would read as grey smudges between sections. */
.still .about, .still .what, .still .contact, html:not(.motion) .about, html:not(.motion) .what, html:not(.motion) .contact { box-shadow: none; }
