/* THE MISSION PAGE. Same look as the landing page: Vermilion Orange, Ink, Cream, Archivo, mono eyebrows.
   Faces, colour tokens and the form rules are the landing page's own (server/landing-site/index.html).
   Small text on the orange is pure black (4.58:1); Ink is 4.21:1 there and Cream 3.70:1, which only large type may use. */
@font-face{font-family:'Archivo';font-style:normal;font-weight:100 900;font-stretch:62% 125%;font-display:swap;src:url(/mission/assets/archivo-var-latin.woff2?v=21608bdf52) format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 800;font-display:swap;src:url(/mission/assets/jetbrains-mono-latin.woff2?v=c9b9a73159) format('woff2')}
/* THE HANDWRITING FACE: Caveat (SIL Open Font License 1.1; the licence text ships beside the fonts as /mission/assets/OFL-Caveat.txt?v=163a2b400e). Latin subset, two weights,
   both this page's own flat files (server/mission-site/fonts/, served under /mission/assets/): 500 for the five milestone messages, 700 for the tilted 1M at the end of the bar. */
@font-face{font-family:'Caveat';font-style:normal;font-weight:500;font-display:swap;src:url(/mission/assets/caveat-latin-500.woff2?v=68cee30627) format('woff2')}
@font-face{font-family:'Caveat';font-style:normal;font-weight:700;font-display:swap;src:url(/mission/assets/caveat-latin-700.woff2?v=96e7bc7145) format('woff2')}
@font-face{font-family:'Noto Serif SC';font-style:normal;font-weight:500;font-display:swap;src:url(/mission/assets/noto-serif-sc-qimen.woff2?v=d54ac86518) format('woff2');unicode-range:U+5947,U+9580}

:root{
  --brand:#d5401c; --on-brand:#000000;
  --ink:#0f0e0d; --cream:#efe6d6; --paper:#fff8ec; --brand-ink:#a83817; --ox:#2c1416; --rule:rgba(15,14,13,.16);
  --soft:#3b352e; --on-ink:#d9d0bf;
  --pad:clamp(20px,4vw,56px);
  --hdr:64px; --ribh:32px; --rib:0px; --msg-fs:clamp(24px,3.4vw,40px);
  --sans:'Archivo',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  /* THE HANDWRITING: one variable for the five milestone messages and the 1M at the end of the bar. The bundled Caveat answers first
     (weights 500 and 700, declared above); the system handwriting faces are only the fallback while it loads or if it cannot. */
  --hand:'Caveat','Bradley Hand','Segoe Print','Ink Free','Marker Felt',cursive;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.55;font-weight:420;-webkit-font-smoothing:antialiased}
@media (min-width:761px){body{font-size:18px}}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-underline-offset:.18em}
h1,h2,h3,p,ul,ol{margin:0}
ul,ol{padding:0;list-style:none}
:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.mono{font-family:var(--mono);font-weight:500;text-transform:uppercase;letter-spacing:.2em;font-size:13px;line-height:1.5}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:12px;top:-60px;z-index:20;background:var(--ink);color:var(--cream);padding:10px 14px;border-radius:8px;font-weight:700}
.skip:focus{top:8px}
[hidden]{display:none!important}
/* before launch / open: the one switch (html[data-mode="open"], set by mission.js from /api/start/offer) */
html:not([data-mode="open"]) [data-when="open"],html[data-mode="open"] [data-when="pre"]{display:none!important}

/* demo ribbon: only when the numbers are demo numbers. A fixed height, so the hero can leave room for it and still fit one screen. */
.ribbon{position:sticky;top:0;z-index:30;margin:0;height:var(--ribh);display:flex;align-items:center;justify-content:center;padding:0 var(--pad);background:var(--ink);color:var(--paper);text-align:center;font:600 13px/1.2 var(--mono);letter-spacing:.16em;text-transform:uppercase}
.ribbon:not([hidden])~main{--rib:var(--ribh)}
.demo-note{margin-top:14px;font:600 13px/1.4 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--brand-ink)}

/* top bar: the brand lockup on the left, the countdown (small and quiet) in the right-hand corner; a fixed height, so the hero below can be sized to the rest of the screen */
.top{height:var(--hdr);padding:12px max(var(--pad),calc((100% - 980px) / 2)) 0;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;background:var(--brand)}
.brand{display:flex;flex-direction:column;gap:4px}
.lockup{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--on-brand)}
.lk-name{font-weight:800;font-size:12.5px;line-height:1;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap}
.lk-bar{display:block;flex:none;width:1.5px;height:20px;background:var(--on-brand)}
.lk-mark{font-family:'Noto Serif SC',serif;font-weight:500;font-size:24px;line-height:1;letter-spacing:.06em;white-space:nowrap;color:var(--cream)}
.lk-by{font-size:12px;line-height:1.2;font-weight:500;letter-spacing:.06em;color:var(--on-brand)}
.cd{text-align:right;color:var(--on-brand);font-size:12px;line-height:1.3;font-weight:500;max-width:9.5em}
.cd-big{font-weight:700}
.cd-big .n{font-weight:800;font-size:14px;font-variant-numeric:tabular-nums}
.cd-sub{font-size:12px}

/* THE HERO: ONE SCREEN. Its height is the screen's (100svh) minus the brand bar and, in a demo, the strip; the content is sized in svh/vw so it
   never needs more, and the spare room (a tall screen) is shared out evenly between the four parts instead of being left at the bottom.
     the headline (flips between two faces), the bar with its milestones and the one message, the invitation, the tracker line. */
.hero{--hn:min(14.4vw,124px,12.5svh);position:relative;display:flex;flex-direction:column;min-height:calc(100vh - var(--hdr) - var(--rib));min-height:calc(100svh - var(--hdr) - var(--rib));background:var(--brand);color:var(--cream);padding:0 var(--pad) clamp(6px,1.4svh,14px)}
.in{max-width:1120px;margin:0 auto}
.hero-in{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-evenly;width:100%;max-width:980px;margin:0 auto;text-align:center;gap:clamp(6px,1.4svh,16px)}

/* the flipping headline. BOTH faces live in the same grid cell, so the box is always as tall as the taller face and never changes height;
   only opacity/rotation change. The faces are aria-hidden: the heading above them is one static sentence, the count is one polite sentence. */
.headline{display:flex;flex-direction:column;align-items:center}
.flip{display:grid;width:100%;perspective:1400px}
.flip-in{display:grid;grid-area:1/1;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.45,.05,.2,1)}
.flip[data-face="b"] .flip-in{transform:rotateX(180deg)}
.face{grid-area:1/1;display:flex;flex-direction:column;align-items:center;justify-content:center;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.fb{transform:rotateX(180deg)}
.face p{margin:0}
.h-a{font-weight:900;line-height:.9;letter-spacing:-.02em}
.h-a span{display:block}
.h-n{font-size:var(--hn);text-transform:uppercase;color:var(--ink)}
.h-q{font-size:min(11.6vw,98px,9.6svh);text-transform:uppercase;color:var(--cream);margin-top:.04em}
.h-b{font-weight:500;font-size:clamp(18px,3.2vw,30px);line-height:1.15;letter-spacing:-.005em;margin:clamp(8px,2svh,20px) auto 0;max-width:20em;color:var(--on-brand)}
.b-n{line-height:.9}
.b-n .num{display:block;font-weight:900;letter-spacing:-.025em;font-variant-numeric:tabular-nums;font-size:min(calc(var(--hn) * 1.12),calc(88vw / var(--wl,3)));color:var(--ink)}
.b-cap{margin-top:clamp(6px,1.6svh,16px);font-weight:900;text-transform:uppercase;letter-spacing:-.005em;font-size:min(7.2vw,40px,5.4svh);line-height:1.05;color:var(--cream)}
.b-togo{margin-top:clamp(8px,2svh,20px);font-weight:500;font-size:clamp(16px,2.2vw,24px);line-height:1.2;font-variant-numeric:tabular-nums;color:var(--on-brand)}
.b-togo .num{font-weight:700}
/* the count as ONE static sentence: out of sight while the faces turn; under reduced motion it is the compact line under the headline */
.count-line{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
.count-line:empty{display:none}
.count-calm{margin:0;font-weight:900;font-size:clamp(26px,5vw,44px);line-height:1;letter-spacing:-.01em;color:var(--cream)}

.progress{margin:0}
/* the bar: thin, linear, honest. The ring marks where the fill ends; it is an outline and never part of the fill. The handwritten 1M sits at the
   END of the bar, a pen note for the finish line (decoration; the milestone itself is the last dot). */
.barwrap{display:flex;align-items:center;gap:clamp(8px,2vw,14px)}
.barline{position:relative;flex:1 1 auto;min-width:0;padding:6px 0}
.bar{height:6px;border-radius:999px;background:var(--ink);overflow:hidden}
.fill{height:100%;width:100%;background:var(--cream);transform-origin:0 50%;transform:scaleX(var(--p,0));transition:transform 1.4s cubic-bezier(.2,.7,.2,1)}
.pip{position:absolute;top:50%;left:clamp(8px,calc(var(--p,0) * 100%),calc(100% - 8px));width:16px;height:16px;box-sizing:border-box;border:2px solid var(--cream);border-radius:50%;background:transparent;transform:translate(-50%,-50%);transition:left 1.4s cubic-bezier(.2,.7,.2,1)}
.end1m{flex:none;display:block;font-family:var(--hand);font-weight:700;font-size:clamp(24px,3.2vw,34px);line-height:1;color:var(--on-brand);transform:rotate(-6deg);transform-origin:50% 60%;pointer-events:none}
.pct{margin-top:4px;font-size:13px;line-height:1.3;font-weight:600;letter-spacing:.04em;font-variant-numeric:tabular-nums;color:var(--on-brand)}
/* the milestones: small buttons in a separate, evenly spaced row, NOT placed on the linear scale above.
   The NEXT one is bright (a cream, ringed dot); every later one is half-transparent (idle); reached ones are ticked. */
.miles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;max-width:540px;margin:0 auto}
.ms{appearance:none;-webkit-appearance:none;position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;min-height:44px;margin:0;padding:6px 2px 4px;border:0;border-radius:12px;background:none;color:var(--on-brand);font:600 12px/1 var(--sans);letter-spacing:.05em;font-variant-numeric:tabular-nums;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ms:focus-visible{outline:3px solid var(--ink);outline-offset:1px}
.ms .dot{position:relative;display:block;width:12px;height:12px;margin:2px;box-sizing:border-box;border:1.5px solid var(--on-brand);border-radius:50%;background:transparent;transition:opacity .6s ease}
.ms .lv{display:block;padding-bottom:3px;border-bottom:1.5px solid transparent;transition:opacity .6s ease}
.ms:not(.reached):not(.next) .dot{opacity:.62}
.ms:not(.reached):not(.next) .lv{opacity:.72}
.ms[aria-pressed="true"] .dot,.ms[aria-pressed="true"] .lv{opacity:1}
.ms[aria-pressed="true"] .lv{border-bottom-color:var(--on-brand)}
.ms[aria-pressed="true"] .dot{outline:2px solid var(--on-brand);outline-offset:2px}
.ms.reached .dot{background:var(--on-brand)}
.ms.reached .dot::after{content:"";position:absolute;left:3.2px;top:.6px;width:3px;height:6px;box-sizing:border-box;border:solid var(--cream);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.ms.next{font-weight:800}
.ms.next .dot{width:16px;height:16px;margin:0;border-width:2px;background:var(--cream);box-shadow:0 0 0 4px rgba(0,0,0,.2)}
.ms.just .dot{animation:glow 2.4s ease-out 1}
@keyframes glow{0%{box-shadow:0 0 0 0 rgba(0,0,0,.4)}100%{box-shadow:0 0 0 14px rgba(0,0,0,0)}}
/* ONE milestone message at a time, in the handwriting font; the space for it is kept so nothing below moves when another one is chosen */
.msg{max-width:30em;min-height:calc(var(--msg-fs) * 2.24 + 19px);margin:clamp(4px,1.2svh,12px) auto 0}
.msg-l{font:600 12px/1.4 var(--mono);letter-spacing:.16em;color:var(--on-brand)}
.msg-t{margin-top:2px;font-family:var(--hand);font-weight:500;font-size:var(--msg-fs);line-height:1.12;letter-spacing:0;text-wrap:balance;color:var(--paper)}
@media (max-width:340px){.msg{min-height:calc(var(--msg-fs) * 3.36 + 19px)}}
/* the invitation (moved below the message; the tracker line sits under it) */
.herojoin{margin:0}
.invite{font-weight:800;font-size:clamp(22px,3vw,34px);line-height:1.1;letter-spacing:-.01em;text-transform:none;text-wrap:balance;color:var(--on-brand)}
.herojoin .interest{margin:clamp(10px,2svh,20px) 0 0}
.herojoin .go{margin-top:clamp(10px,2svh,20px)}
.support{margin-top:clamp(8px,1.4svh,14px);font-size:15px;line-height:1.4;font-weight:500;max-width:32em;margin-left:auto;margin-right:auto;text-wrap:balance;color:var(--on-brand)}
/* the foot of the hero: the very small tracker line, then a discreet cue to the next layer */
.hero-foot{flex:none;display:flex;flex-direction:column;align-items:center;gap:2px;padding-top:6px}
.live{display:flex;align-items:center;justify-content:center;gap:8px;margin:0;font:600 12px/1.3 var(--sans);letter-spacing:.06em;color:var(--on-brand)}
.ldot{flex:none;width:9px;height:9px;box-sizing:border-box;border-radius:50%;background:#3ddc84;border:2px solid var(--ink)}
/* The privacy line under the count: small, full colour (no opacity, so it keeps its contrast on the brand red). */
.privacy{margin:0;max-width:34em;text-align:center;font:500 12px/1.35 var(--sans);letter-spacing:.02em;color:var(--on-brand);text-wrap:balance}
.cue{display:flex;align-items:center;justify-content:center;width:44px;height:30px;color:var(--on-brand);opacity:.7;text-decoration:none}
.cue .chev{display:block;width:10px;height:10px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-3px) rotate(45deg)}
.cue:focus-visible{outline:3px solid var(--ink);outline-offset:0}
/* a short screen: no cue, a little less air; the content is the same */
@media (max-height:760px){.cue{display:none}}

@media (min-width:701px){.cd{max-width:none}}

/* the one button (before launch it opens the form) */
.ntoggle,.go{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:56px;padding:0 32px;border:0;border-radius:999px;background:var(--ink);color:var(--cream);font:800 17px/1 var(--sans);letter-spacing:.02em;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ntoggle:hover,.go:hover{background:#000}
.ntoggle:focus-visible,.go:focus-visible{outline:3px solid var(--paper);outline-offset:3px}
.go{margin-top:22px}
.npanel{display:none;text-align:left;max-width:520px;margin:20px auto 0}
.interest.open .npanel{display:block}
.redsec .npanel,.redsec .interest .npanel{display:block;margin:0}

/* sections */
.sec{padding:clamp(60px,8vw,112px) var(--pad)}
.sec h2{font-weight:900;text-transform:uppercase;font-stretch:100%;line-height:.96;letter-spacing:-.005em;font-size:clamp(30px,5vw,60px);text-wrap:balance}
.dark{background:var(--ink);color:var(--cream)}
.k{color:var(--brand-ink)}
.dark .k{color:var(--paper)}
.redsec{background:var(--brand);color:var(--cream)}
.redsec .k,.redsec .lede{color:var(--on-brand)}
.lede{font-size:clamp(17px,1.5vw,20px);line-height:1.55}
.about{background:var(--cream)}
.about h2 span{display:block}
.about .lede{margin-top:clamp(22px,3vw,32px);max-width:38em}
.fine{margin-top:14px;font-size:16px;line-height:1.45;color:var(--soft);max-width:38em}
.about .lede+.fine{margin-top:22px}

/* why this matters, how to take part: three short lines */
.lines{margin-top:clamp(28px,4vw,48px);border-top:2px solid var(--ink)}
.dark .lines{border-top-color:var(--cream)}
.dark .lines li{border-bottom-color:rgba(239,230,214,.24);color:var(--cream)}
.lines li{padding:clamp(16px,2.2vw,24px) 0;border-bottom:1.5px solid var(--rule);font-weight:800;font-size:clamp(21px,2.9vw,34px);line-height:1.2;max-width:24em}
.redsec .lines{border-top-color:var(--ink)}
.redsec .lines li{border-bottom-color:rgba(15,14,13,.28);color:var(--cream)}

/* where we are going */
.goals{margin-top:clamp(28px,4vw,48px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.goals li{background:var(--ink);color:var(--cream);border-radius:18px;padding:clamp(22px,3vw,36px)}
.goals .k{color:var(--paper)}
.goal{margin-top:12px;font-weight:700;font-size:clamp(18px,1.9vw,23px);line-height:1.35}
.principles{margin-top:clamp(36px,5vw,64px);border-top:2px solid var(--ink)}
.principles li{display:grid;grid-template-columns:56px minmax(0,1fr);gap:4px 0;padding:clamp(20px,2.6vw,28px) 0;border-bottom:1.5px solid var(--rule)}
.principles .n{grid-row:1/3;font:500 14px/1.9 var(--mono);letter-spacing:.2em;color:var(--brand-ink)}
.principles h3{font-weight:900;text-transform:uppercase;font-size:clamp(22px,2.6vw,32px);line-height:1.05}
.principles p{max-width:34em;color:var(--soft)}

/* join */
.joinbox{margin-top:clamp(32px,4.4vw,52px);max-width:560px}
.joinbox .lede{max-width:28em}
.interest{margin-top:20px}
.row{display:flex;gap:8px}
.row input{flex:1 1 auto;min-width:0;height:54px;border:2px solid var(--ink);border-radius:10px;background:var(--paper);color:var(--ink);font:500 17px/1 var(--sans);padding:0 16px}
.row input::placeholder{color:#6f6558}
.row button{flex:none;height:54px;border:0;border-radius:10px;background:var(--ink);color:var(--cream);font:800 16px/1 var(--sans);letter-spacing:.02em;padding:0 22px;cursor:pointer}
.row button:hover{background:#000}
.row button[disabled]{opacity:.7;cursor:progress}
.row input:focus-visible,.row button:focus-visible{outline:3px solid var(--paper);outline-offset:2px}
.consent{font-size:14px;line-height:1.45;margin-top:10px;color:var(--on-brand)}
.err{font-size:14px;font-weight:700;margin-top:8px;color:var(--paper);background:var(--ink);border-radius:8px;padding:8px 12px}
.done{background:var(--ink);color:var(--cream);border-radius:12px;padding:18px 20px}
.done b{display:block;font-weight:800;font-size:20px;line-height:1.2;margin-bottom:4px}
.done span{font-size:15px;line-height:1.45;color:var(--paper);display:block}
.done a{color:var(--paper)}
.hp{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the belief: one calm statement of its own, between the goals and the founder's note */
.belief{background:var(--paper);text-align:center}
.statement{max-width:24em;margin:0 auto;font-weight:700;font-size:clamp(24px,3.2vw,40px);line-height:1.25;letter-spacing:-.01em;text-wrap:balance;color:var(--ink)}

/* founder */
.founder h2{font-size:clamp(42px,9.4vw,120px);line-height:.9;color:var(--brand-ink)}
.note{margin-top:clamp(24px,3.4vw,40px);font-weight:700;font-size:clamp(20px,2.3vw,28px);line-height:1.3;max-width:26em}
.by{display:flex;align-items:center;gap:14px;margin-top:clamp(22px,3vw,32px);font-size:18px}
.by img{width:56px;height:56px;border-radius:50%;object-fit:cover;flex:none}
.app{margin-top:clamp(28px,4vw,44px)}
.app a{display:inline-flex;align-items:center;min-height:48px;font-weight:800;font-size:18px}

/* footer */
footer{background:var(--ink);color:var(--cream);padding:30px var(--pad) max(30px,env(safe-area-inset-bottom))}
footer .in{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px 28px;font-size:15px}
footer nav{display:flex;gap:24px}
footer a{padding:8px 0}
footer .ic{display:flex;align-items:center;gap:12px}
footer .ic img{width:32px;height:32px;border-radius:8px}

@media (max-width:760px){
  .goals{grid-template-columns:1fr}
  .principles li{grid-template-columns:44px minmax(0,1fr)}
  .row{flex-direction:column}
  .row button{width:100%}
  .consent{font-size:14px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .fill,.pip{transition:none}
  .ms.just .dot{animation:none}
  .ms .dot,.ms .lv,.flip-in{transition:none}
  /* nothing flips: the headline stays the first face, and the count is a compact static line right under it */
  .flip .fb{display:none}
  .count-line{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;margin:clamp(8px,1.8svh,16px) auto 0;max-width:24em;font-weight:700;font-size:clamp(15px,2.2vw,19px);line-height:1.25;text-wrap:balance;font-variant-numeric:tabular-nums;color:var(--on-brand)}
}
