/* ==========================================================================
   CARDINAL LABS — /client-site-system step 6, 2026-08-25

   Register: Atmosphere. Subject: a single crimson feather turning in still
   dark air — the company's name, physical.

   The palette is SAMPLED FROM THE CLIP, per Colton's ruling that the video
   decides the colours. Feather mean #CF4E46, core #E2373A; ground and umbers
   read #060606 / #0F0B07 / #1C140D / #302117 / #714334.

   Contrast measured on the world ground #0A0807:
     --paper    #F2EDE6  17.16:1  AAA
     --muted    #A79C8F   7.42:1  AAA
     --slate    #6E6357   3.41:1  NON-TEXT MARKS ONLY, never type
     --cardinal #D8434B   4.59:1  AA  (text and marks)
     white on --cardinal-fill #C8323A  5.29:1  AA  (the button label — the
       feather's own #D8434B only reaches 4.35:1 under white, so the fill is
       one shade deeper and the accent stays the feather's)

   Scroll-world tokens are set here and consumed by world-scroll.css.
   The world is already luma 23, so the veil is kept almost off and the
   scrims light — the double-darkening trap is spending both.
   ========================================================================== */

@font-face{
  font-family:'Inter';
  src:url('assets/fonts/inter-var.woff2') format('woff2');
  font-weight:300 800; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Mono';
  src:url('assets/fonts/mono.woff2') format('woff2');
  font-weight:400 600; font-style:normal; font-display:swap;
}

:root{
  --ground:#0A0807;
  --paper:#F2EDE6;
  --muted:#A79C8F;
  --slate:#6E6357;
  --umber:#302117;

  --cardinal:#D8434B;
  --cardinal-fill:#C8323A;
  --cardinal-lift:#E45560;

  --line:rgba(242,237,230,.13);
  --line-soft:rgba(242,237,230,.07);

  --font:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'Mono',ui-monospace,Consolas,monospace;
  --ease:cubic-bezier(.16,1,.3,1);

  --shell:1180px;
  --pad:clamp(1.25rem,5vw,3.5rem);

  --fs-h1:clamp(2.25rem,.85rem + 6.2vw,4.5rem);
  --fs-h2:clamp(1.875rem,1rem + 3.2vw,3.25rem);
  --fs-h3:clamp(1.1875rem,.95rem + .9vw,1.5rem);
  --fs-lede:clamp(1.0625rem,.98rem + .5vw,1.25rem);
  --fs-body:clamp(1rem,.96rem + .2vw,1.0625rem);
  --fs-tag:.6875rem;

  --s1:.75rem; --s2:1.5rem; --s3:3rem; --s4:5.5rem; --s5:8.5rem;

  /* --- consumed by world-scroll.css --- */
  --world-ground:#0A0807;
  /* the feather lives right of centre; bias the crop so it survives a phone's
     narrow centre-cut instead of being cropped away */
  --world-focus:62% center;
  /* almost off. The clip is luma 23 already — there is nothing to knock down,
     and veil x scrim is how a world ends up wired-but-invisible. */
  --world-veil:linear-gradient(180deg,rgba(10,8,7,.10),rgba(10,8,7,.18));
  --world-scrim:rgba(10,8,7,.62);
  --world-scrim-strong:rgba(10,8,7,.62);
}

*,*::before,*::after{ box-sizing:border-box; }
/* No scroll-behavior:smooth — it fights Lenis's rAF loop and the page crawls. */
html{ -webkit-text-size-adjust:100%; }

body{
  margin:0; color:var(--paper);
  font-family:var(--font); font-size:var(--fs-body); line-height:1.62;
  font-weight:400; letter-spacing:-.005em; -webkit-font-smoothing:antialiased;
}

h1,h2,h3{ margin:0; font-weight:660; line-height:1.03; letter-spacing:-.040em; }
h1{ font-size:var(--fs-h1); }
h2{ font-size:var(--fs-h2); line-height:1.05; }
h3{ font-size:var(--fs-h3); letter-spacing:-.022em; line-height:1.22; }
p{ margin:0; }
em{ font-style:normal; color:var(--cardinal); }
a{ color:inherit; }
::selection{ background:var(--cardinal-fill); color:#fff; }
:focus-visible{ outline:2px solid var(--paper); outline-offset:3px; border-radius:2px; }

.shell{ width:min(100%,var(--shell)); margin-inline:auto; }

.skip{ position:absolute; left:-9999px; top:0; z-index:100; background:var(--paper); color:var(--ground); padding:.7rem 1rem; font-weight:600; }
.skip:focus{ left:.5rem; top:.5rem; }

.tag,.meta,.part-n,.close-note,.beat span{
  font-family:var(--mono); font-size:var(--fs-tag);
  letter-spacing:.14em; text-transform:uppercase; font-weight:500;
}
.tag{ color:var(--muted); margin-bottom:var(--s2); display:block; }

/* ---------- nav ---------- */
.nav{
  position:fixed; z-index:50; top:clamp(.75rem,2vw,1.5rem); left:50%; transform:translateX(-50%);
  width:min(calc(100% - 2*var(--pad)),var(--shell));
  display:flex; align-items:center; gap:var(--s2);
  padding:.5rem .55rem .5rem 1.1rem; border-radius:999px;
  background:rgba(10,8,7,.62); border:1px solid var(--line);
  backdrop-filter:blur(14px) saturate(1.2); -webkit-backdrop-filter:blur(14px) saturate(1.2);
}
.brand{ display:flex; align-items:center; gap:.6rem; text-decoration:none; margin-right:auto; }
.brand-mark{ width:21px; height:21px; fill:var(--cardinal); flex:none; }
.brand-word{ font-weight:640; letter-spacing:-.02em; font-size:.9375rem; white-space:nowrap; }
.nav-links{ display:flex; gap:1.5rem; }
.nav-links a{ text-decoration:none; color:var(--muted); font-size:.875rem; font-weight:450; transition:color .25s var(--ease); }
.nav-links a:hover{ color:var(--paper); }
@media (max-width:900px){ .nav-links{ display:none; } }

/* ---------- buttons: one primary, and only it wears the cardinal ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:46px; padding:0 1.4rem; border-radius:999px;
  font-size:.9375rem; font-weight:580; letter-spacing:-.01em;
  text-decoration:none; white-space:nowrap; border:1px solid transparent;
  transition:background .25s var(--ease),border-color .25s var(--ease),transform .25s var(--ease);
}
.btn-primary{ background:var(--cardinal-fill); color:#fff; }
.btn-primary:hover{ background:var(--cardinal-lift); transform:translateY(-1px); }
.btn-ghost{ border-color:var(--line); color:var(--paper); background:rgba(242,237,230,.04); }
.btn-ghost:hover{ border-color:rgba(242,237,230,.38); }
.btn-lg{ min-height:54px; padding:0 1.9rem; font-size:1rem; }
.nav-cta{ min-height:44px; padding:0 1.15rem; font-size:.875rem; }
.cta-row{ display:flex; flex-wrap:wrap; gap:.75rem; }

/* ---------- 01 hero — type sits in the clip's own black left third ---------- */
.hero{
  position:relative;
  min-height:100svh; display:flex; align-items:center;
  padding:calc(var(--s4) + 3rem) var(--pad) var(--s4);
}
/* The clip's left side is near-black, but the headline box reaches far enough right to catch
   the light shaft — measured 109-115 behind the h1 and the lede, which put them under 4.5:1.
   A left-weighted scrim, falling to nothing well before the feather, so the subject stays clear. */
.hero::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(90deg,rgba(10,8,7,.72) 0%,rgba(10,8,7,.62) 46%,rgba(10,8,7,.24) 72%,rgba(10,8,7,0) 88%);
}
.hero > *{ position:relative; }
@media (min-width:901px) and (max-height:820px){
  .hero{ padding:calc(var(--s3) + 3rem) var(--pad) var(--s3); }
}
.hero h1{ max-width:20ch; }
.says{ margin-top:var(--s2); max-width:44ch; font-size:var(--fs-lede); line-height:1.55; color:var(--paper); opacity:.9; }
.hero .cta-row{ margin-top:var(--s3); }
.meta{ margin-top:var(--s2); color:var(--muted); }
@media (max-width:640px){ :root{ --fs-h1:clamp(2rem,.9rem + 5.6vw,2.75rem); } .hero h1{ max-width:none; } }

/* ---------- 02 the moment ---------- */
.moment{ padding:var(--s5) var(--pad); border-block:1px solid var(--line-soft); }
.moment h2{ max-width:26ch; }
.moment-grid{
  display:grid; gap:var(--s3) var(--s4); margin-top:var(--s4);
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); align-items:start;
}
.moment-lede{ font-size:var(--fs-lede); line-height:1.58; color:var(--muted); max-width:44ch; }
.beat{ list-style:none; margin:0; padding:0; display:grid; gap:.9rem; }
.beat li{
  display:grid; grid-template-columns:2.6rem 1fr; gap:.9rem; align-items:baseline;
  padding-bottom:.9rem; border-bottom:1px solid var(--line-soft); color:var(--paper);
}
.beat span{ color:var(--muted); }
.moment-close{ margin-top:var(--s4); max-width:52ch; color:var(--muted); font-size:var(--fs-lede); }
.moment .btn{ margin-top:var(--s3); }

/* ---------- content bands ---------- */
.band{ padding:var(--s5) var(--pad); }
.band-head{ margin-bottom:var(--s4); }
.band-head h2{ max-width:16ch; }
.band-sub{ margin-top:var(--s2); max-width:56ch; color:var(--muted); font-size:var(--fs-lede); line-height:1.58; }

.parts{
  list-style:none; margin:0; padding:0;
  display:grid; gap:1px; grid-template-columns:repeat(auto-fit,minmax(258px,1fr));
  border:1px solid var(--line-soft);
}
.part{ padding:var(--s3) clamp(1.25rem,2.2vw,2rem) calc(var(--s3) + .5rem); border:1px solid var(--line-soft); }
.part-n{ color:var(--muted); margin-bottom:var(--s2); display:block; }
.part h3{ margin-bottom:.75rem; }
.part p{ color:var(--muted); }

.steps{ list-style:none; margin:0; padding:0; counter-reset:step; display:grid; gap:var(--s3); }
.steps li{
  counter-increment:step; display:grid; gap:.25rem var(--s2);
  grid-template-columns:3.25rem 1fr; align-items:start;
  padding-top:var(--s3); border-top:1px solid var(--line-soft);
}
.steps li::before{
  content:counter(step,decimal-leading-zero); grid-row:1 / span 2;
  font-family:var(--mono); font-size:var(--fs-tag); letter-spacing:.12em;
  color:var(--muted); padding-top:.45rem;
}
.steps p{ color:var(--muted); max-width:62ch; }
@media (max-width:600px){
  .steps li{ grid-template-columns:1fr; gap:.6rem; }
  .steps li::before{ grid-row:auto; padding-top:0; }
}

/* ---------- 05 close ---------- */
.close{ padding:var(--s5) var(--pad); text-align:center; border-top:1px solid var(--line-soft); }
.close h2{ margin-inline:auto; }
.close-sub{ margin:var(--s2) auto 0; max-width:48ch; color:var(--muted); font-size:var(--fs-lede); }
.close .cta-row{ justify-content:center; margin-top:var(--s3); }
.close-note{ margin-top:var(--s3); color:var(--muted); display:block; }

.foot{ padding:var(--s3) var(--pad); }
.foot-inner{ display:flex; flex-wrap:wrap; gap:var(--s1) var(--s3); justify-content:space-between; font-size:.875rem; color:var(--muted); }
.foot a{ text-decoration:none; }
.foot a:hover{ color:var(--paper); }
