/* The public site's one stylesheet: the four font faces, then the design.
   Ported from ngage/app/assets/stylesheets (ndca-fonts.css, ndca.css).
   Every address in it names a file of this bundle by its bundled name, which carries
   the first 16 hex digits of the file's SHA-256; the stylesheet is served
   from the same directory, so the names resolve beside it. A test holds
   each name to the file's hash (crates/web/src/public.rs). */

/* Archivo (variable) + IBM Plex Mono, latin subset, SIL OFL 1.1.
   Self-hosted on purpose: the public site loads zero third-party origins. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('Archivo-variable-7150c0ec5ad35645.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('IBMPlexMono-400-c36f509c0a8f9f85.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('IBMPlexMono-500-a76f53ca6612e7b3.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('IBMPlexMono-600-ad4580d8cb4b5f62.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ TOKENS ============ */
:root{
  --ink:#0A0E14;          /* deep navy-black */
  --ink-2:#0C121B;        /* panel */
  --ink-3:#0E1522;        /* raised panel */
  --bone:#E9E7E0;         /* bone white (used as primary text on dark) */
  --bone-2:#C7C9CC;       /* cool secondary */
  --dim:rgba(233,231,224,.60);
  --dimmer:rgba(233,231,224,.40);
  --red:#D63B3B;          /* wing red — the accent (identical on both surfaces) */
  --red-hi:#E44C4C;
  --line:rgba(233,231,224,.10);
  --line-2:rgba(233,231,224,.06);
  --steel:rgba(150,180,210,.9);
  --grid:rgba(233,231,224,.035);
  --surface-light:#F4F2EC; /* bone light-section background */
  --grot:'Archivo',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,'SF Mono',Menlo,monospace;
}

/* ============ RESET ============ */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--ink);
  color:var(--bone);
  font-family:var(--grot);
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
:focus-visible{outline:2px solid var(--red-hi);outline-offset:3px;border-radius:2px}

/* skip link */
.skip{position:absolute;left:-999px;top:0;background:var(--red);color:#fff;padding:.7rem 1.1rem;z-index:200;font-family:var(--mono);font-size:.8rem}
.skip:focus{left:12px;top:12px}

/* ============ SHARED PIECES ============ */
.wrap{width:min(1240px,92vw);margin-inline:auto}
.eyebrow{
  font-family:var(--mono);
  font-size:.72rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--dim);
  display:inline-flex;
  align-items:center;
  gap:.7rem;
}
.eyebrow .tick{width:22px;height:1px;background:var(--red);display:inline-block}
.sec-no{font-family:var(--mono);font-size:.72rem;letter-spacing:.2em;color:var(--dimmer)}
.red{color:var(--red)}

.btn{
  font-family:var(--grot);
  font-weight:600;
  font-size:.9rem;
  letter-spacing:.02em;
  padding:.85rem 1.6rem;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  border-radius:2px;
  border:1px solid transparent;
  cursor:pointer;
  transition:background .25s ease,border-color .25s ease,color .25s ease,transform .12s ease;
}
.btn-join{background:var(--red);color:#fff;border-color:var(--red)}
.btn-join:hover{background:var(--red-hi);border-color:var(--red-hi)}
.btn-ghost{background:transparent;color:var(--bone);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--bone-2);background:rgba(233,231,224,.04)}
.btn .arw{transition:transform .25s ease}
.btn:hover .arw{transform:translateX(3px)}
.btn:active{transform:scale(.98)}          /* tactile press — fast transform only */

/* ============ NAV ============ */
.nav{
  position:sticky;top:0;z-index:100;
  border-bottom:1px solid transparent;
  background:rgba(10,14,20,0);
  backdrop-filter:saturate(120%) blur(0px);
  transition:background .3s ease,border-color .3s ease,backdrop-filter .3s ease;
}
.nav.scrolled{
  background:rgba(9,12,18,.82);
  border-bottom-color:var(--line);
  backdrop-filter:saturate(130%) blur(10px);
}
.nav__inner{
  width:min(1240px,92vw);margin-inline:auto;
  display:flex;align-items:center;justify-content:space-between;
  gap:1.5rem;height:68px;
}
.brand{display:flex;align-items:center;gap:.6rem}
.brand__mark{
  width:34px;height:34px;overflow:hidden;flex:none;
  display:flex;align-items:center;justify-content:center;
}
.brand__mark img{width:70px;height:auto;object-fit:contain;object-position:center;
  transform:translateX(-2px)}
.brand__word{
  font-family:var(--grot);font-weight:800;letter-spacing:.14em;
  font-size:1.15rem;color:var(--bone)}
.brand__word b{color:var(--red);font-weight:800}

.nav-links{display:flex;align-items:center;gap:1.9rem}
.nav-links a{
  font-size:.82rem;letter-spacing:.04em;color:var(--dim);
  font-weight:500;transition:color .2s ease;position:relative;padding:.3rem 0;
}
.nav-links a:hover{color:var(--bone)}
.nav-links a::after{                       /* animated red hover underline */
  content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--red);
  transform:scaleX(0);transform-origin:left;transition:transform .18s ease}
.nav-links a:hover::after{transform:scaleX(1)}
.nav-cta{display:flex;align-items:center;gap:1rem}
.nav-cta .btn{padding:.6rem 1.25rem;font-size:.82rem}

/* mobile menu (checkbox hack — works with JS off) */
.nav-toggle-cb{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.nav-toggle{
  display:none;flex:none;width:42px;height:42px;
  border:1px solid var(--line);border-radius:3px;
  align-items:center;justify-content:center;cursor:pointer;background:transparent;
}
.nav-toggle span{display:block;width:18px;height:1.5px;background:var(--bone);position:relative}
.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;left:0;width:18px;height:1.5px;background:var(--bone)}
.nav-toggle span::before{top:-5px}.nav-toggle span::after{top:5px}

/* ============ HERO ============ */
.hero{
  position:relative;
  min-height:100vh;min-height:100svh;
  display:flex;align-items:center;
  overflow:hidden;
  background:
    radial-gradient(120% 90% at 78% 40%, rgba(20,30,46,.55) 0%, rgba(10,14,20,0) 55%),
    var(--ink);
  isolation:isolate;
}
.hero__layer{position:absolute;inset:0;pointer-events:none}
/* coordinate grid */
.hero__grid{
  background-image:
    linear-gradient(var(--grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:66px 66px;
  z-index:0;
  -webkit-mask-image:radial-gradient(130% 100% at 60% 45%,#000 30%,transparent 88%);
          mask-image:radial-gradient(130% 100% at 60% 45%,#000 30%,transparent 88%);
}
/* radar sweep — cold, barely there */
.hero__sweep{
  z-index:0;
  left:auto;right:-24vw;top:50%;width:120vh;height:120vh;
  transform:translateY(-50%);
  background:conic-gradient(from 0deg,
     rgba(150,180,210,0) 0deg,
     rgba(150,180,210,.055) 26deg,
     rgba(150,180,210,0) 64deg,
     rgba(150,180,210,0) 360deg);
  border-radius:50%;
  animation:sweep 22s linear infinite;
  opacity:.9;
}
/* the monument dragon — visible by default; JS supplies the entrance */
.hero__dragon{
  position:absolute;top:50%;right:-3vw;
  height:106vh;width:auto;max-width:none;
  transform:translateY(-50%);
  z-index:1;
  opacity:1;
  filter:drop-shadow(0 30px 60px rgba(0,0,0,.55));
  pointer-events:none;
}
html.js .hero__dragon{
  opacity:0;
  animation:dragonIn 1.9s cubic-bezier(.18,.7,.2,1) .15s forwards;
}
/* legibility scrim over left/text side */
.hero__scrim{
  z-index:2;
  background:linear-gradient(90deg,
     var(--ink) 0%, rgba(10,14,20,.92) 26%,
     rgba(10,14,20,.55) 46%, rgba(10,14,20,0) 72%);
}
.hero__scrim.bottom{
  background:linear-gradient(0deg,var(--ink) 0%,rgba(10,14,20,0) 22%);
}
/* film grain */
.hero__noise{
  z-index:3;opacity:.05;mix-blend-mode:overlay;
  background-image:url("noise-f0c6cfa941fe4369.svg");
}
/* vignette */
.hero__vignette{
  z-index:3;
  background:radial-gradient(ellipse 90% 80% at 50% 45%,transparent 42%,rgba(4,6,10,.72) 100%);
}

.hero__inner{position:relative;z-index:5;width:min(1240px,92vw);margin-inline:auto;
  padding:120px 0 90px}
.hero__col{max-width:660px}

.hero__meta{
  font-family:var(--mono);font-size:.7rem;letter-spacing:.24em;text-transform:uppercase;
  color:var(--dim);display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;margin-bottom:1.9rem}
.hero__meta .sep{color:var(--red)}
.hero__coord{color:var(--dimmer)}

.hero h1{
  font-family:var(--grot);font-weight:800;
  font-size:clamp(2.7rem,7.4vw,6.3rem);
  line-height:.97;letter-spacing:-.02em;color:var(--bone);
  margin-bottom:1.5rem;
}
.hero h1 .u{position:relative;white-space:nowrap}
.hero h1 .u::after{
  content:"";position:absolute;left:0;right:0;bottom:-.09em;height:.07em;
  background:var(--red);transform-origin:left;
  transform:scaleX(1);
}
html.js .hero h1 .u::after{
  transform:scaleX(0);animation:underline 1s cubic-bezier(.7,0,.2,1) 1.1s forwards;
}
/* headline masked-line reveal — each line rides in an overflow:hidden clip; padding
   gives the underline/descenders room, negative margin keeps line spacing tight.
   Static & fully visible with JS off (the transform lives only under html.js). */
.hero h1 .hl{display:block;overflow:hidden;padding-bottom:.18em;margin-bottom:-.18em}
.hero h1 .hl>span{display:block}
html.js .hero h1 .hl>span{transform:translateY(125%);
  animation:lineUp .95s cubic-bezier(.16,1,.3,1) forwards}
html.js .hero h1 .hl:nth-child(1)>span{animation-delay:.25s}
html.js .hero h1 .hl:nth-child(2)>span{animation-delay:.37s}
.hero__sub{
  font-size:clamp(1.05rem,1.9vw,1.4rem);font-weight:500;color:var(--bone);
  letter-spacing:.005em;margin-bottom:1.4rem;
}
.hero__lead{
  font-size:1.02rem;line-height:1.65;color:var(--dim);max-width:52ch;margin-bottom:2.4rem}
.hero__actions{display:flex;flex-wrap:wrap;gap:1rem;align-items:center}

/* staggered hero entrance — the animation is a no-op with JS off (element already
   visible, keyframe only has a `to`), and html.js supplies the hidden starting state */
.hero-fade{animation:heroUp .9s cubic-bezier(.2,.7,.2,1) forwards}
html.js .hero-fade{opacity:0;transform:translateY(20px)}
/* orchestrated timing: meta first, headline lines slide, underline draws (1.1s),
   then sub/lead/actions settle in */
.d1{animation-delay:.1s}.d2{animation-delay:.30s}.d3{animation-delay:.95s}
.d4{animation-delay:1.1s}.d5{animation-delay:1.25s}

/* scroll cue — visible by default; JS supplies the entrance */
.hero__cue{
  position:absolute;left:50%;bottom:26px;transform:translateX(-50%);z-index:5;
  font-family:var(--mono);font-size:.62rem;letter-spacing:.3em;text-transform:uppercase;
  color:var(--dimmer);display:flex;flex-direction:column;align-items:center;gap:.6rem;
  opacity:1}
html.js .hero__cue{opacity:0;animation:heroUp .9s ease 1.2s forwards}
.hero__cue .bar{width:1px;height:34px;background:linear-gradient(var(--red),transparent);
  animation:cue 2.4s ease-in-out infinite}

/* ============ SECTIONS ============ */
section{position:relative}
.band{padding:clamp(72px,10vw,140px) 0;border-top:1px solid var(--line-2)}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:1.5rem;
  margin-bottom:3.2rem;flex-wrap:wrap}
.sec-head h2{
  font-family:var(--grot);font-weight:800;letter-spacing:-.015em;
  font-size:clamp(1.7rem,3.6vw,2.9rem);line-height:1.05;color:var(--bone);
  max-width:20ch;margin-top:.8rem}
.sec-head .lbl{display:flex;flex-direction:column;gap:.9rem}

/* ---- LIGHT (bone) SECTION OVERRIDES ----
   Redefine the surface tokens so every A component (eyebrow, cards, borders,
   mono accents) renders correctly on bone with AA-contrast text. The red accent
   is intentionally NOT overridden so it stays identical on both surfaces. */
.section--light{
  background:var(--surface-light);
  color:var(--ink);
  --bone:#0A0E14;                       /* primary text -> ink */
  --bone-2:rgba(10,14,20,.55);
  --dim:rgba(10,14,20,.72);             /* body/secondary text (AA on bone) */
  --dimmer:rgba(10,14,20,.60);          /* mono micro-labels (AA on bone) */
  --line:rgba(10,14,20,.16);
  --line-2:rgba(10,14,20,.10);
  --ink:#FFFFFF;                        /* card base surface */
  --ink-2:#FBFAF5;                      /* card gradient top */
  --ink-3:#FFFFFF;                      /* tools card base */
  --grid:rgba(10,14,20,.04);
}
/* hardcoded bone-rgba values from A that need a light equivalent */
.section--light .step__no{color:rgba(10,14,20,.14)}
.section--light .card:hover{border-color:rgba(10,14,20,.30)}
.section--light .btn-ghost:hover{background:rgba(10,14,20,.05)}
.section--light .card{box-shadow:0 1px 2px rgba(10,14,20,.04)}

/* ---- WHO WE ARE — large bold statement on bone ---- */
.who__statement{
  font-family:var(--grot);
  font-weight:700;
  font-size:clamp(1.75rem,3.4vw,2.5rem);
  line-height:1.22;
  letter-spacing:-.015em;
  color:var(--bone);                    /* ink on light */
  max-width:min(960px,100%);
  margin-top:1.9rem;
}
.who__statement strong{font-weight:800;color:var(--bone)}
.who__statement .red{color:var(--red)}
.who__statement .w{opacity:1}             /* fallback: full contrast without a working timeline */
.who__foot{
  font-family:var(--mono);font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--dimmer);margin-top:1.9rem;padding-top:1.4rem;border-top:1px solid var(--line-2);
  max-width:64ch}

/* card grids */
.grid-3{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:720px){.grid-3{grid-template-columns:repeat(3,1fr)}}
/* Four across only when there is room for it; two-up in between, so a card
   never ends up alone on a row. */
.grid-4{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:720px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1080px){.grid-4{grid-template-columns:repeat(4,1fr)}}
.card{
  position:relative;border:1px solid var(--line);border-radius:4px;
  padding:2rem 1.8rem 2.1rem;background:linear-gradient(180deg,var(--ink-2),var(--ink));
  transition:border-color .3s ease,transform .25s cubic-bezier(.16,1,.3,1),background .3s ease;
  overflow:hidden;
}
.card::before{content:"";position:absolute;left:0;top:0;width:100%;height:2px;
  background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .4s ease}
.card:hover{border-color:rgba(233,231,224,.2);transform:translateY(-4px)}
.card:hover::before{transform:scaleX(1)}
.card__no{font-family:var(--mono);font-size:.72rem;letter-spacing:.2em;color:var(--red);
  margin-bottom:1.2rem;display:block}
.card h3{font-family:var(--grot);font-weight:700;font-size:1.25rem;letter-spacing:-.01em;
  color:var(--bone);margin-bottom:.7rem}
.card p{font-size:.97rem;line-height:1.62;color:var(--dim)}

/* the naming rule under the four toolsets */
.models__rule{
  font-family:var(--mono);font-size:.78rem;line-height:1.7;letter-spacing:.04em;
  color:var(--dimmer);margin-top:1.9rem;padding-top:1.4rem;border-top:1px solid var(--line-2);
  max-width:72ch}

/* steps */
.steps{display:grid;grid-template-columns:1fr;gap:0;border-top:1px solid var(--line)}
@media(min-width:820px){.steps{grid-template-columns:repeat(4,1fr);border-top:none}}
.step{
  padding:2rem 1.6rem 2.2rem;border-bottom:1px solid var(--line);position:relative;
}
@media(min-width:820px){
  .step{border-bottom:none;border-top:1px solid var(--line);border-left:1px solid var(--line-2)}
  .step:first-child{border-left:none}
  /* Six steps read as two rows of three. The left border is a column rule, so
     it has to clear on whichever step opens a row, not only on the first. */
  .steps--six{grid-template-columns:repeat(3,1fr)}
  .steps--six .step:nth-child(3n+1){border-left:none}
}
.step__no{font-family:var(--mono);font-size:2.4rem;font-weight:400;color:rgba(233,231,224,.14);
  line-height:1;margin-bottom:1rem;transition:color .3s ease}
.step:hover .step__no{color:var(--red)}
.step h3{font-family:var(--grot);font-weight:700;font-size:1.15rem;color:var(--bone);
  margin-bottom:.5rem;letter-spacing:-.01em}
.step p{font-size:.94rem;line-height:1.58;color:var(--dim)}

/* tools */
.tools .card{background:linear-gradient(180deg,var(--ink-3),var(--ink))}
.tool__name{display:flex;align-items:baseline;gap:.6rem}
.tool__tag{font-family:var(--mono);font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--dimmer);border:1px solid var(--line);border-radius:2px;padding:.15rem .45rem}

/* event strip — stays dark with red accents */
.event{border-top:1px solid var(--line)}
.event__inner{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2rem;
  padding:clamp(48px,7vw,86px) 0;
  background:
    linear-gradient(90deg, rgba(214,59,59,.06), transparent 60%);
  border-radius:4px;
}
.event__txt{display:flex;flex-direction:column;gap:.7rem;max-width:60ch}
.event__date{font-family:var(--mono);font-size:.76rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--red)}
.event h2{font-family:var(--grot);font-weight:800;font-size:clamp(1.6rem,3.2vw,2.5rem);
  color:var(--bone);letter-spacing:-.015em;line-height:1.05}
.event p{color:var(--dim);font-size:1rem}

/* ============ FOOTER ============ */
.foot{border-top:1px solid var(--line);padding:clamp(56px,7vw,90px) 0 42px;
  background:var(--ink-2)}
.foot__top{display:grid;grid-template-columns:1fr;gap:2.6rem;margin-bottom:3rem}
@media(min-width:840px){.foot__top{grid-template-columns:1.4fr 1fr 1fr;gap:2rem}}
.foot__brand{display:flex;flex-direction:column;gap:1.1rem;max-width:38ch}
.foot__brand .brand__word{font-size:1.3rem}
.foot__mission{font-size:.96rem;line-height:1.6;color:var(--dim)}
.foot__col h4{font-family:var(--mono);font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--dimmer);margin-bottom:1.2rem;font-weight:500}
.foot__col a{display:block;font-size:.92rem;color:var(--dim);padding:.32rem 0;transition:color .2s}
.foot__col a:hover{color:var(--bone)}
.foot__bar{display:flex;flex-wrap:wrap;gap:1rem 2rem;align-items:center;justify-content:space-between;
  padding-top:2rem;border-top:1px solid var(--line-2)}
.foot__legal{font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;color:var(--dimmer);
  display:flex;flex-wrap:wrap;gap:.4rem 1.2rem}
.foot__legal .sep{color:var(--red)}
.foot__social a{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--mono);
  font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}
.foot__social a:hover{color:var(--bone)}

/* section scroll offset for sticky nav */
section[id]{scroll-margin-top:80px}

/* ============ KEYFRAMES ============ */
@keyframes heroUp{to{opacity:1;transform:none}}
@keyframes dragonIn{0%{opacity:0;transform:translateY(-50%) scale(1.05)}
  100%{opacity:1;transform:translateY(-50%) scale(1)}}
@keyframes underline{to{transform:scaleX(1)}}
@keyframes sweep{to{transform:translateY(-50%) rotate(360deg)}}
@keyframes cue{0%,100%{transform:scaleY(1);opacity:.5}50%{transform:scaleY(.5);opacity:1}}

/* ============ MOTION SYSTEM ============
   Load choreography above; scroll-driven work below. Every scroll effect is gated on
   timeline support — with no support the targets keep their static resting state
   (fully visible). Reduced-motion neutralizes all of it (hairline may stay). */
@keyframes lineUp{to{transform:translateY(0)}}
@keyframes revealUp{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
@keyframes cardUp{from{opacity:0;translate:0 28px}to{opacity:1;translate:0 0}}
@keyframes tickDraw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes statementRise{from{translate:0 24px}to{translate:0 0}}
@keyframes wordFill{from{opacity:.14}to{opacity:1}}
@keyframes dragonPar{to{translate:0 8vh}}
@keyframes navProgress{to{transform:scaleX(1)}}

/* scroll-progress hairline at the nav's bottom edge — scroll-position feedback like a
   scrollbar; absolute so it never affects layout, invisible (scaleX 0) without support */
.nav::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;
  background:var(--red);transform-origin:left;transform:scaleX(0);pointer-events:none}

@supports (animation-timeline:scroll()){
  .nav::after{animation-name:navProgress;animation-timing-function:linear;
    animation-timeline:scroll(root)}
  /* dragon parallax via the independent `translate` property — composes with the base
     translateY(-50%) transform and the dragonIn entrance (which animates `transform`) */
  .hero__dragon{animation-name:dragonPar;animation-timing-function:linear;
    animation-fill-mode:both;animation-timeline:scroll(root);animation-range:0svh 100svh}
  html.js .hero__dragon{                     /* entrance + parallax as two animations */
    animation-name:dragonIn,dragonPar;
    animation-duration:1.9s,auto;
    animation-timing-function:cubic-bezier(.18,.7,.2,1),linear;
    animation-delay:.15s,0s;
    animation-fill-mode:forwards,both;
    animation-timeline:auto,scroll(root);
    animation-range:normal,0svh 100svh;
  }
}

@supports (animation-timeline:view()){
  /* shared on-scroll entrance settings (longhand so duration stays timeline-auto) */
  .sec-head,.who .eyebrow,.who__statement,.grid-3 .card,.grid-4 .card,.steps .step,.event__inner{
    animation-timing-function:linear;animation-fill-mode:both;animation-timeline:view()}
  .sec-head,.who .eyebrow{animation-name:revealUp;animation-range:entry 0% entry 55%}
  .grid-3 .card,.grid-4 .card,.steps .step,.event__inner{animation-name:cardUp}
  .event__inner{animation-range:entry 0% entry 55%}
  /* left-to-right cascade — each child's range starts later. Every child of a
     grid is named: one that is not falls back to the default range and enters
     out of step with its neighbours. */
  .grid-3 .card:nth-child(1),.grid-4 .card:nth-child(1){animation-range:entry 0% entry 45%}
  .grid-3 .card:nth-child(2),.grid-4 .card:nth-child(2){animation-range:entry 10% entry 55%}
  .grid-3 .card:nth-child(3),.grid-4 .card:nth-child(3){animation-range:entry 20% entry 65%}
  .grid-4 .card:nth-child(4){animation-range:entry 30% entry 75%}
  .steps .step:nth-child(1){animation-range:entry 0% entry 45%}
  .steps .step:nth-child(2){animation-range:entry 8% entry 53%}
  .steps .step:nth-child(3){animation-range:entry 16% entry 61%}
  .steps .step:nth-child(4){animation-range:entry 24% entry 69%}
  .steps .step:nth-child(5){animation-range:entry 32% entry 77%}
  .steps .step:nth-child(6){animation-range:entry 40% entry 85%}
  /* eyebrow calibration tick */
  .eyebrow .tick{transform-origin:left;animation-name:tickDraw;animation-timing-function:linear;
    animation-fill-mode:both;animation-timeline:view();animation-range:entry 5% entry 40%}
  /* who statement: subtle rise (own view timeline) + word-by-word scroll fill.
     --who is a named view timeline visible to the .w word spans (wrapped by JS). */
  .who__statement{animation-name:statementRise;animation-range:entry 0% entry 50%;
    view-timeline:--who block}
  .who__statement .w{animation-name:wordFill;animation-timing-function:linear;
    animation-fill-mode:both;animation-timeline:--who}
}

/* ============ RESPONSIVE ============ */
@media(max-width:900px){
  .nav-toggle{display:flex;margin-left:auto}
  .nav-links{
    display:none;position:absolute;left:0;right:0;top:68px;
    flex-direction:column;align-items:flex-start;gap:0;
    background:rgba(9,12,18,.97);border-bottom:1px solid var(--line);
    padding:.5rem 6vw 1.2rem;backdrop-filter:blur(10px);
  }
  .nav-links a{padding:.85rem 0;width:100%;border-bottom:1px solid var(--line-2);font-size:.95rem}
  .nav-links a::after{display:none}        /* the row borders already delineate; underline would be noisy */
  .nav-toggle-cb:checked ~ .nav__inner .nav-links{display:flex}
  .nav-cta .btn-donate-nav{display:none}
}
@media(max-width:760px){
  .hero__dragon{height:82vh;right:-22vw;opacity:.5}
  html.js .hero__dragon{opacity:0;
    animation:dragonInM 1.9s cubic-bezier(.18,.7,.2,1) .15s forwards}
  .hero__scrim{background:linear-gradient(0deg,var(--ink) 4%,rgba(10,14,20,.72) 45%,rgba(10,14,20,.55) 100%)}
  .hero__inner{padding:104px 0 120px}
  .hero__cue{display:none}
}
@keyframes dragonInM{0%{opacity:0;transform:translateY(-50%) scale(1.05)}
  100%{opacity:.5;transform:translateY(-50%) scale(1)}}

/* ============ REDUCED MOTION ============ */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-fade,.hero__dragon,.hero__cue,
  html.js .hero-fade,html.js .hero__dragon,html.js .hero__cue{
    animation:none!important;opacity:1!important;transform:translateY(-50%)!important}
  .hero__dragon,html.js .hero__dragon{transform:translateY(-50%)!important}
  .hero-fade,.hero__cue,html.js .hero-fade,html.js .hero__cue{transform:none!important}
  .hero h1 .u::after,html.js .hero h1 .u::after{animation:none;transform:scaleX(1)}
  .hero__sweep{animation:none}
  .hero__cue .bar{animation:none}
  .card,.btn,.step__no{transition:none}
  /* new motion system — kill headline reveal, tick draw, and every scroll-driven
     entrance (targets stay visible/static). The scroll hairline is allowed to remain. */
  html.js .hero h1 .hl>span{animation:none!important;transform:none!important}
  .eyebrow .tick{animation:none!important;transform:none!important}
  .sec-head,.who .eyebrow,.who__statement,.who__statement .w,
  .grid-3 .card,.grid-4 .card,.steps .step,.event__inner{
    animation:none!important;opacity:1!important;translate:none!important}
  .hero__dragon,html.js .hero__dragon{translate:none!important}
  .nav-links a::after{transition:none}
  .btn:active{transform:none}
}

/* ============ APPLICATION PAGES (join form, confirmation) ============
   Same tokens as the landing page: dark surface, bone text, red accent, mono
   micro-labels. Nothing here overrides a landing-page rule. */
.page{padding:calc(68px + clamp(48px,7vw,86px)) 0 clamp(72px,10vw,130px)}
.page__head{max-width:62ch;margin-bottom:3rem}
.page__head h1{
  font-family:var(--grot);font-weight:800;letter-spacing:-.02em;
  font-size:clamp(2rem,4.6vw,3.4rem);line-height:1.03;color:var(--bone);
  margin:1.1rem 0 1.1rem}
.page__head p{color:var(--dim);font-size:1.02rem;line-height:1.65}

.form{max-width:760px}
.form fieldset{border:0;margin:0 0 2.6rem;padding:0}
.form legend,.form__legend{
  font-family:var(--mono);font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--red);padding:0;margin-bottom:1.4rem;display:block}
.field{margin-bottom:1.5rem}
.field label,.field .label{
  display:block;font-size:.88rem;font-weight:600;letter-spacing:.01em;
  color:var(--bone);margin-bottom:.45rem}
.field .req{color:var(--red);font-weight:600}
.field .opt{color:var(--dimmer);font-weight:400;font-size:.8rem;letter-spacing:.04em}
.hint{font-size:.82rem;line-height:1.5;color:var(--dim);margin:.4rem 0 0}
.field input[type=text],.field input[type=email],.field input[type=tel],
.field input[type=url],.field select,.field textarea{
  width:100%;background:var(--ink-2);color:var(--bone);
  border:1px solid var(--line);border-radius:3px;
  padding:.72rem .85rem;font-family:var(--grot);font-size:.97rem;line-height:1.45;
  transition:border-color .2s ease,background .2s ease}
.field textarea{min-height:9rem;resize:vertical}
.field select{appearance:none;background-image:none}
.field input:hover,.field select:hover,.field textarea:hover{border-color:var(--bone-2)}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--red);background:var(--ink-3);outline:none}
.field input[aria-invalid=true],.field select[aria-invalid=true],
.field textarea[aria-invalid=true]{border-color:var(--red)}
.field-error{display:block;font-size:.83rem;color:var(--red-hi);margin-top:.4rem}

.choices{display:grid;grid-template-columns:1fr;gap:.15rem}
@media(min-width:640px){.choices{grid-template-columns:repeat(2,1fr);gap:.15rem 1.5rem}}
.choice{display:flex;align-items:flex-start;gap:.7rem;padding:.55rem 0;cursor:pointer}
.choice input{margin:.25rem 0 0;accent-color:var(--red);width:1rem;height:1rem;flex:none}
.choice span{font-size:.95rem;color:var(--dim);line-height:1.45}
.choice:hover span{color:var(--bone)}

/* error summary — focus lands here after a failed submit */
.form-errors{
  border:1px solid var(--red);border-left-width:3px;border-radius:3px;
  background:rgba(214,59,59,.08);padding:1.2rem 1.3rem;margin-bottom:2.4rem}
.form-errors h2{
  font-family:var(--grot);font-weight:700;font-size:1.05rem;color:var(--bone);
  margin-bottom:.6rem}
.form-errors ul{margin:0;padding-left:1.1rem}
.form-errors li{font-size:.92rem;color:var(--dim);line-height:1.6}

/* the honeypot: off-screen for a browser, in the DOM for a scraper */
.trap{position:absolute!important;left:-9999px!important;top:auto!important;
  width:1px!important;height:1px!important;overflow:hidden!important}

.check{border-top:1px solid var(--line-2);padding-top:1.8rem;margin-bottom:2rem}
.check__status{
  display:flex;align-items:center;gap:.7rem;
  font-family:var(--mono);font-size:.78rem;letter-spacing:.06em;color:var(--dim);
  min-height:1.6rem}
.check__status[data-state=done]{color:var(--bone)}
.check__status[data-state=failed]{color:var(--red-hi)}
.check__dot{width:7px;height:7px;border-radius:50%;background:var(--dimmer);flex:none}
.check__status[data-state=working] .check__dot{background:var(--red);animation:pulse 1.1s ease-in-out infinite}
.check__status[data-state=done] .check__dot{background:#4FB477}
.check__status[data-state=failed] .check__dot{background:var(--red)}
@keyframes pulse{0%,100%{opacity:.35}50%{opacity:1}}
.check__meter{width:100%;max-width:280px;height:2px;background:var(--line);margin-top:.8rem}
.check__meter i{display:block;height:100%;width:0;background:var(--red);transition:width .18s linear}

.form__actions{display:flex;flex-wrap:wrap;align-items:center;gap:1.2rem}
.form__actions .btn[disabled]{opacity:.45;cursor:not-allowed}
.form__actions .btn[disabled]:hover{background:var(--red);border-color:var(--red)}

.done{max-width:62ch}
.done ol{margin:1.6rem 0 0;padding-left:1.2rem}
.done li{color:var(--dim);font-size:1rem;line-height:1.7;margin-bottom:.5rem}

@media(prefers-reduced-motion:reduce){
  .check__status .check__dot{animation:none}
  .check__meter i{transition:none}
  .field input,.field select,.field textarea{transition:none}
}
