/* Gatsbee — "Deco after dark"
   Midnight + powder + honey gold. Photography in chamfered frames taken from the logo's wings.
   Shared by every page: tokens, base, components, the motion layer (week switch, hero entrance, demo form)
   and the scroll layer (section reveals, the week drawn by the scroll, wing image reveals).
   Page files load after this one: gatsbee-sections.css (home), gatsbee-faq.css, gatsbee-guide.css, gatsbee-legal.css. */

@font-face{font-family:"Archivo";src:url("../fonts/Archivo-var.woff2") format("woff2");font-weight:100 900;font-stretch:62% 125%;font-style:normal;font-display:swap}
@font-face{font-family:"Manrope";src:url("../fonts/Manrope-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Manrope";src:url("../fonts/Manrope-Medium.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Manrope";src:url("../fonts/Manrope-SemiBold.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Manrope";src:url("../fonts/Manrope-Bold.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Bodoni Moda";src:url("../fonts/BodoniModa-Medium.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");font-weight:400;font-display:swap}

:root{
  --midnight:#1B2033;      /* logo night */
  --midnight-2:#242B45;    /* logo wing fill */
  --midnight-3:#2F3757;
  --powder:#F7F3EC;        /* light ground: warm ivory (was powder pink #F4E6E1) */
  --powder-2:#ECE4D6;
  --paper:#FFFFFF;
  --ink:#1B2033;
  --ink-soft:#4C5168;
  --on-dark:#F4EEE6;
  --on-dark-soft:#B4B6C6;
  --gold:#D99A1E;          /* logo honey */
  --gold-light:#EBC77A;
  --champagne:#F1DEB4;
  --rouge:#B03A4A;         /* exceptions */
  --rouge-soft:#F6DADB;
  --green:#2FB57A;         /* logo dot: checked */
  --green-ink:#17734B;
  --line-dark:rgba(241,222,180,.18);
  --line-light:rgba(27,32,51,.14);

  --f-display:"Archivo","Helvetica Neue",Arial,sans-serif;
  --f-body:"Manrope","Segoe UI",system-ui,sans-serif;
  --f-numeral:"Bodoni Moda",Didot,"Bodoni 72",Georgia,serif;
  --f-raw:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;

  --cut:28px;             /* chamfer size */
  --wrap:1240px;
  --gutter:clamp(16px,4vw,48px);
  --ease:cubic-bezier(.2,.7,.2,1);
  --ease-out:cubic-bezier(.23,1,.32,1);      /* entering / leaving */
  --ease-in-out:cubic-bezier(.77,0,.175,1);  /* moving on screen */
  --ease-back:cubic-bezier(.34,1.56,.64,1);  /* small overshoot, markers only */
  --reveal-dur:600ms;
  --reveal-step:70ms;     /* gap between items in a group */
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--powder);color:var(--ink);font-family:var(--f-body);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit}
button{font:inherit}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.skip{position:absolute;left:-9999px;top:8px;background:var(--gold);color:var(--midnight);padding:8px 14px;z-index:100}
.skip:focus{left:8px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- type ---------- */
h1,h2,h3{font-family:var(--f-display);font-weight:560;letter-spacing:-.02em;line-height:1.02;margin:0;font-stretch:118%}
h1{font-size:clamp(38px,4.8vw,70px);line-height:1.04}
h2{font-size:clamp(30px,3.5vw,50px)}
h3{font-size:clamp(21px,1.8vw,26px);line-height:1.15;font-stretch:110%;letter-spacing:-.01em}
p{margin:0}
.lede{font-size:clamp(18px,1.5vw,21px);line-height:1.55;max-width:56ch}
.kicker{font-family:var(--f-body);font-weight:600;font-size:15px;color:var(--gold);margin-bottom:22px;display:flex;align-items:center;gap:12px}
.kicker::before{content:"";width:34px;height:1px;background:currentColor}
.dark .kicker{color:var(--gold-light)}
.numeral{font-family:var(--f-numeral);font-weight:500;letter-spacing:-.02em}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:10px;padding:16px 26px;font-weight:700;font-size:16px;text-decoration:none;border:0;cursor:pointer;transition:background-color 200ms ease,color 200ms ease,transform 160ms ease-out;clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px)}
.btn-gold{background:var(--gold);color:var(--midnight)}
.btn-gold:hover{background:var(--gold-light)}
.btn-line{background:transparent;color:inherit;box-shadow:inset 0 0 0 1.5px currentColor;clip-path:none;border-radius:0}
.btn-line:hover{background:rgba(255,255,255,.08)}
.light .btn-line:hover{background:rgba(27,32,51,.06)}
.btn:active{transform:scale(.97)}   /* buttons answer the press */

/* ---------- chamfered frame (from the logo wings) ---------- */
.frame{clip-path:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut));overflow:hidden;background:var(--midnight-2)}
.frame img{width:100%;height:100%;object-fit:cover}
.frame-edge{position:relative}
.frame-edge::after{content:"";position:absolute;inset:-10px;border:1px solid var(--gold);clip-path:polygon(calc(var(--cut) + 4px) 0,100% 0,100% calc(100% - var(--cut) - 4px),calc(100% - var(--cut) - 4px) 100%,0 100%,0 calc(var(--cut) + 4px));pointer-events:none;opacity:.7}

/* ---------- header ---------- */
.site-head{position:sticky;top:0;z-index:50;background:var(--midnight);color:var(--on-dark);border-bottom:1px solid var(--line-dark)}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;height:76px;gap:24px}
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-decoration:none}
.brand img{height:40px;width:auto}
.brand-tag{font-family:var(--f-body);font-size:11px;font-weight:600;line-height:1.2;letter-spacing:.01em;color:var(--on-dark-soft);white-space:nowrap}
@media (max-width:420px){.brand-tag{font-size:10px;letter-spacing:.02em}}
.nav{display:flex;align-items:center;gap:30px;font-size:15px;font-weight:500}
.nav a{text-decoration:none;color:var(--on-dark-soft);transition:color .2s}
.nav a:hover,.nav a[aria-current]{color:var(--on-dark)}
.nav .btn{padding:11px 20px;font-size:15px;color:var(--midnight)}
.menu-btn{display:none;background:none;border:1px solid var(--line-dark);color:var(--on-dark);padding:8px 14px;cursor:pointer}
@media (max-width:900px){
  .menu-btn{display:block}
  .nav{position:absolute;top:76px;left:0;right:0;background:var(--midnight);flex-direction:column;align-items:flex-start;padding:20px var(--gutter) 28px;gap:18px;border-bottom:1px solid var(--line-dark);display:none}
  .nav.open{display:flex;animation:navIn 200ms var(--ease-out) both}   /* drops in, doesn't just appear */
}
@keyframes navIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

/* ---------- sections ---------- */
section{position:relative}
.dark{background:var(--midnight);color:var(--on-dark)}
.light{background:var(--powder);color:var(--ink)}
.paper{background:var(--paper);color:var(--ink)}
.pad{padding:clamp(80px,10vw,150px) 0}

/* ---------- hero ---------- */
.hero{overflow:hidden;padding:clamp(56px,7vw,96px) 0 clamp(72px,8vw,120px)}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(32px,5vw,72px);align-items:center}
.hero h1{margin-bottom:28px}
.hero .lede{color:var(--on-dark-soft);margin-bottom:38px}
.hero-ctas{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:34px}
.hero-note{font-size:14px;color:var(--on-dark-soft);display:flex;gap:10px;align-items:center}
.hero-note .dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(47,181,122,.18)}
.sunburst{position:absolute;right:-6%;top:-10%;width:58%;height:125%;pointer-events:none;opacity:.22}

.stage{position:relative;aspect-ratio:4/5;max-height:680px;justify-self:end;width:100%}
.stage .frame{position:absolute;inset:0 0 0 14%}
.stage .frame img{filter:saturate(.9) contrast(1.02)}

/* live order feed */
.feed{position:absolute;left:0;bottom:7%;width:min(400px,86%);background:var(--paper);color:var(--ink);padding:18px 18px 10px;box-shadow:0 30px 60px -20px rgba(10,12,24,.55);clip-path:polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px)}
.feed-head{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:12px;border-bottom:1px solid var(--line-light);margin-bottom:6px}
.feed-head strong{font-family:var(--f-display);font-stretch:110%;font-size:15px;font-weight:600}
.feed-count{font-size:13px;color:var(--ink-soft)}
.feed-count b{font-family:var(--f-numeral);font-size:20px;color:var(--ink);font-weight:500}
.feed ul{list-style:none;margin:0;padding:0;height:262px;overflow:hidden;position:relative}
.feed li{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line-light);font-size:14px;line-height:1.3;animation:feedIn 500ms var(--ease-out) both}
.feed li .src{font-size:11px;font-weight:700;text-align:center;padding:5px 0;background:var(--powder);color:var(--ink-soft);letter-spacing:.02em}
.feed li .who b{display:block;font-weight:600}
.feed li .who span{color:var(--ink-soft);font-size:12.5px}
.feed li .status{transition:color 200ms ease}
.status{font-size:12.5px;font-weight:700;white-space:nowrap;display:flex;align-items:center;gap:6px}
.status::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.st-read{color:var(--gold)}
.st-read::before{animation:pulse 1s infinite}
.st-ok{color:var(--green-ink)}
.st-flag{color:var(--rouge)}
.feed li.flag{background:linear-gradient(90deg,var(--rouge-soft),transparent 85%);margin:0 -18px;padding-left:18px;padding-right:18px}
.feed li .why{grid-column:2/4;font-size:12.5px;color:var(--rouge);margin-top:-4px}
@keyframes feedIn{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
@keyframes pulse{50%{opacity:.25}}

.erp-tag{position:absolute;right:-2%;top:9%;background:var(--midnight);color:var(--on-dark);border:1px solid var(--gold);padding:12px 16px;font-size:13px;line-height:1.35;max-width:210px}
.erp-tag b{display:block;font-family:var(--f-display);font-stretch:110%;font-size:15px;color:var(--gold-light);font-weight:600}

@media (max-width:960px){
  .hero .wrap{grid-template-columns:1fr}
  .stage{justify-self:stretch;max-height:none;aspect-ratio:4/4.6}
  .stage .frame{inset:0 0 0 10%}
  .erp-tag{right:0}
}
@media (max-width:600px){.erp-tag{display:none}.stage{aspect-ratio:4/5}}

/* ---------- retailer ribbon ---------- */
.ribbon{background:var(--midnight-2);color:var(--on-dark);padding:26px 0;overflow:hidden;border-top:1px solid var(--line-dark);border-bottom:1px solid var(--line-dark)}
.ribbon .wrap{display:flex;gap:28px;align-items:center}
.ribbon p{font-size:14px;color:var(--on-dark-soft);flex:0 0 auto;max-width:190px;line-height:1.35}
.marquee{overflow:hidden;flex:1;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.marquee-track{display:flex;gap:56px;width:max-content;animation:marquee 46s linear infinite}
.marquee-track span{font-family:var(--f-display);font-stretch:125%;font-weight:500;font-size:22px;letter-spacing:-.01em;color:var(--champagne);white-space:nowrap;opacity:.85}
.marquee-track span.fmt{font-stretch:75%;font-weight:700;font-size:15px;color:var(--gold);align-self:center;border:1px solid var(--gold);padding:3px 10px;opacity:1}
.marquee:hover .marquee-track,.marquee:focus-within .marquee-track{animation-play-state:paused}   /* pause when someone wants to read a name */
@keyframes marquee{to{transform:translateX(-50%)}}
@media (max-width:700px){.ribbon .wrap{flex-direction:column;align-items:flex-start;gap:14px}.ribbon p{max-width:none}}

/* ---------- the week (toggle) ---------- */
.week-head{display:grid;grid-template-columns:1fr auto;gap:32px;align-items:end;margin-bottom:56px}
.switch{display:inline-flex;background:var(--paper);padding:5px;box-shadow:inset 0 0 0 1px var(--line-light);position:relative;isolation:isolate}
.switch button{border:0;background:transparent;padding:12px 20px;font-weight:700;font-size:15px;cursor:pointer;color:var(--ink-soft);transition:color 200ms ease}
.switch button[aria-pressed="true"]{background:var(--midnight);color:var(--on-dark)}
.switch button:active{transform:scale(.97)}
/* sliding pill behind the active option (added by gatsbee-home.js) */
.switch-pill{
  position:absolute;top:5px;bottom:5px;left:0;width:0;z-index:-1;
  background:var(--midnight);
  transform:translateX(0);
  transition:transform 300ms var(--ease-in-out),width 300ms var(--ease-in-out);
}
.switch.ready button[aria-pressed="true"]{background:transparent}   /* the pill does the work */
.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:2px solid var(--line-light);position:relative}
.step{padding:26px 26px 30px 0;position:relative;transition:opacity .4s}
.step + .step{padding-left:26px;border-left:1px solid var(--line-light)}
.step time{display:block;font-family:var(--f-display);font-stretch:80%;font-weight:700;font-size:15px;color:var(--ink-soft);margin-bottom:14px}
.step h3{margin-bottom:12px}
.step p{color:var(--ink-soft);font-size:16px}
.step .mark{position:absolute;top:-8px;left:0;width:14px;height:14px;background:var(--powder);border:2px solid var(--ink);transform:rotate(45deg);transition:background-color 300ms ease,border-color 300ms ease}
.step + .step .mark{left:26px}
.timeline[data-mode="with"] .step .mark{background:var(--green);border-color:var(--green)}
.timeline[data-mode="without"] .step:nth-child(3) .mark,.timeline[data-mode="without"] .step:nth-child(4) .mark{background:var(--rouge);border-color:var(--rouge)}
/* switching weeks: quick exit, staggered entry */
.timeline.leaving .step{opacity:0;transform:translateY(-4px);transition:opacity 140ms ease,transform 140ms ease}
.timeline .swap{animation:stepIn 420ms var(--ease-out) both}
.timeline .swap:nth-child(2){animation-delay:50ms}
.timeline .swap:nth-child(3){animation-delay:100ms}
.timeline .swap:nth-child(4){animation-delay:150ms}
@keyframes stepIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* the claim, at hero scale */
.week-foot{margin-top:clamp(48px,6vw,80px);display:grid;grid-template-columns:auto minmax(0,36ch);justify-content:start;align-items:end;gap:clamp(20px,3vw,40px)}
.week-foot .numeral{font-size:clamp(52px,8vw,128px);line-height:.9;white-space:nowrap;letter-spacing:-.035em;color:var(--rouge)}
.week[data-mode="with"] .week-foot .numeral{color:var(--green-ink)}
.week-foot p{max-width:40ch;color:var(--ink-soft);font-size:clamp(16px,1.3vw,19px);padding-bottom:.6em}
/* "4 days" ↔ "Same morning": blur crossfade */
#weekBig,#weekSmall{display:inline-block;transition:opacity 160ms ease,filter 160ms ease,transform 160ms ease}
#weekBig.out,#weekSmall.out{opacity:0;filter:blur(4px);transform:translateY(-6px)}
#weekBig.in{animation:numIn 360ms var(--ease-out) both}
#weekSmall.in{animation:numIn 360ms 60ms var(--ease-out) both}
@keyframes numIn{from{opacity:0;filter:blur(4px);transform:translateY(6px)}to{opacity:1;filter:blur(0);transform:none}}
@media (max-width:860px){
  .week-head{grid-template-columns:1fr}
  .timeline{grid-template-columns:1fr 1fr}
  .step:nth-child(3){padding-left:0;border-left:0}
  .step:nth-child(3) .mark{left:0}
  .step:nth-child(n+3){border-top:1px solid var(--line-light)}
}
@media (max-width:760px){.week-foot{grid-template-columns:1fr;align-items:start}.week-foot p{padding-bottom:0}}
@media (max-width:520px){
  .timeline{grid-template-columns:1fr}
  .step,.step + .step{padding:24px 0 24px 0;border-left:0;border-top:1px solid var(--line-light)}
  .step .mark,.step + .step .mark{left:0}
}

/* ---------- promises (serious under the hood) ---------- */
.promise{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(40px,6vw,96px);align-items:center}
.promise .frame{aspect-ratio:4/5}
.promise h2{margin-bottom:26px}
.promise .lede{color:var(--on-dark-soft);margin-bottom:40px}
.checks{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:0}
.checks li{padding:22px 22px 22px 0;border-top:1px solid var(--line-dark)}
.checks li:nth-child(even){padding-left:22px;border-left:1px solid var(--line-dark)}
.checks b{display:block;font-family:var(--f-display);font-stretch:110%;font-weight:600;font-size:18px;margin-bottom:6px;color:var(--champagne)}
.checks span{color:var(--on-dark-soft);font-size:15.5px;line-height:1.5}
@media (max-width:860px){.promise{grid-template-columns:1fr}.promise .frame{aspect-ratio:16/11}}
@media (max-width:560px){.checks{grid-template-columns:1fr}.checks li:nth-child(even){padding-left:0;border-left:0}}

/* ---------- products ---------- */
.products-head{max-width:760px;margin-bottom:clamp(40px,5vw,64px)}
.products-head p{margin-top:22px;color:var(--ink-soft)}
.text-link{font-weight:700;text-decoration:none;border-bottom:2px solid var(--gold);padding-bottom:3px}
.text-link:hover{border-color:var(--ink)}

/* ---------- founders ---------- */
.founder{display:flex;align-items:flex-end;color:var(--on-dark);background:var(--midnight);overflow:hidden}
.founder .wrap{position:relative;z-index:2;width:100%}
.founder blockquote{margin:0}
.founder blockquote p{font-family:var(--f-display);font-stretch:108%;font-weight:420;font-size:clamp(21px,1.9vw,28px);line-height:1.28;letter-spacing:-.015em}
.founder footer{margin-top:26px;display:flex;align-items:center;gap:18px}
.founder footer .line{width:48px;height:1px;background:var(--gold)}
.founder cite{font-style:normal;font-size:15px;color:var(--on-dark-soft)}
.founder cite b{display:block;color:var(--on-dark);font-size:17px}

/* ---------- demo ---------- */
.demo .wrap{display:grid;grid-template-columns:.95fr 1.05fr;gap:clamp(40px,6vw,90px);align-items:start}
.demo h2{margin-bottom:24px}
.demo .lede{color:var(--on-dark-soft);margin-bottom:34px}
.demo-points{list-style:none;padding:0;margin:0 0 40px}
.demo-points li{padding:14px 0;border-top:1px solid var(--line-dark);display:flex;gap:16px;color:var(--on-dark)}
.demo-points li span:first-child{font-family:var(--f-numeral);color:var(--gold-light);min-width:24px}
form.card{background:var(--paper);color:var(--ink);padding:clamp(26px,3.5vw,44px);clip-path:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut))}
form.card h3{margin-bottom:6px}
.field{margin-bottom:16px}
.field label{display:block;font-weight:600;font-size:14.5px;margin-bottom:6px}
.field label span{font-weight:400;color:var(--ink-soft)}
.field input,.field select{width:100%;padding:13px 14px;font:inherit;font-size:16px;border:1px solid #C9C2BC;background:#fff;color:var(--ink);border-radius:0;appearance:none;transition:border-color 150ms ease}
.field select{background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);background-position:calc(100% - 20px) 55%,calc(100% - 15px) 55%;background-size:5px 5px;background-repeat:no-repeat}
.field input:focus,.field select:focus{outline:2px solid var(--gold);outline-offset:0;border-color:var(--gold)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.err{display:none;color:var(--rouge);font-size:13.5px;margin-top:5px}
.field.invalid .err{display:block;animation:errIn 180ms var(--ease-out) both}   /* gentle slide-in, no shake */
@keyframes errIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.field.invalid input,.field.invalid select{border-color:var(--rouge)}
form.card .btn{width:100%;justify-content:center;margin-top:8px}
.small{font-size:13.5px;color:var(--ink-soft);margin-top:14px}
.form-error{color:var(--rouge);font-size:13.5px;margin-top:14px}
.form-error a{font-weight:600}
/* success: the form fades out, the thanks settles in, the gold tick draws once */
form.card .form-body{transition:opacity 200ms ease,transform 200ms ease}
form.card.leaving .form-body{opacity:0;transform:scale(.98)}
.thanks{display:none;padding:30px 0}
.thanks h3{margin-bottom:10px}
form.card.sent{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
form.card.sent .form-body{display:none}
form.card.sent .thanks{display:block;max-width:34ch;animation:thanksIn 450ms var(--ease-out) both}
@keyframes thanksIn{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
.thanks .tick{display:block;width:48px;height:48px;margin:0 auto 18px}
.thanks .tick circle{fill:none;stroke:var(--gold);stroke-width:2;opacity:.35}
.thanks .tick path{fill:none;stroke:var(--gold);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:30;stroke-dashoffset:30}
form.card.sent .thanks .tick path{animation:draw 500ms 200ms var(--ease-out) forwards}
@keyframes draw{to{stroke-dashoffset:0}}
@media (max-width:900px){.demo .wrap{grid-template-columns:1fr}}
@media (max-width:480px){.row2{grid-template-columns:1fr}}

/* ---------- footer ---------- */
.site-foot{background:var(--midnight);color:var(--on-dark-soft);padding:72px 0 40px;border-top:1px solid var(--line-dark);font-size:15px}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
.foot-grid img{height:34px;width:auto;margin-bottom:18px}
.foot-grid h2{font-family:var(--f-display);font-stretch:110%;font-weight:600;color:var(--on-dark);font-size:15px;line-height:inherit;letter-spacing:normal;text-wrap:wrap;margin:0 0 14px}
.foot-grid ul{list-style:none;margin:0;padding:0}
.foot-grid li{margin-bottom:9px}
.foot-grid a{text-decoration:none}
.foot-grid a:hover{color:var(--on-dark)}
.foot-base{margin-top:56px;padding-top:24px;border-top:1px solid var(--line-dark);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:13.5px}
@media (max-width:820px){.foot-grid{grid-template-columns:1fr 1fr}.foot-grid > :first-child{grid-column:1/-1}}

/* ---------- hero entrance (one orchestrated page-load only) ---------- */
.hero .load{opacity:0;transform:translateY(12px);animation:rise 700ms var(--ease-out) forwards}
.hero .load:nth-child(2){animation-delay:60ms}
.hero .load:nth-child(3){animation-delay:120ms}
.hero .load:nth-child(4){animation-delay:180ms}
.hero .load:nth-child(5){animation-delay:240ms}
.stage.load{opacity:0;animation:fadeStage 900ms 150ms var(--ease-out) forwards}
@keyframes rise{to{opacity:1;transform:none}}
@keyframes fadeStage{to{opacity:1}}

/* ==================== SCROLL LAYER ====================
   1. Section reveals   2. The week, drawn by the scroll   3. Wing image reveals (gatsbee-scroll.js)
   Everything is hidden only when JS is running (html.js), and nothing moves under reduced motion. */

/* ---------- 1. section reveals ---------- */
.js [data-reveal]{
  opacity:0;transform:translateY(14px);
  transition:opacity var(--reveal-dur) var(--ease-out),transform var(--reveal-dur) var(--ease-out);
  transition-delay:calc(var(--i,0) * var(--reveal-step));
}
.js [data-reveal].in{opacity:1;transform:none}

/* founder: the gold rule draws after the quote settles */
.js .founder blockquote .line{transform:scaleX(0);transform-origin:left;transition:transform 700ms 450ms var(--ease-out)}
.js .founder blockquote.in .line{transform:scaleX(1)}

/* ---------- 2. the week, drawn by the scroll ---------- */
/* Desktop: the section pins (sticky) and the scroll draws the rail; each day lands as the rail
   reaches it and the numeral counts the days. Scrolling back up rewinds it.
   Mobile, or when the section is taller than the screen: no pin, each day lands as it scrolls in.
   Using the switch hands control back to the switch in gatsbee-home.js straight away. */
.week.pin{overflow:clip}   /* overflow:hidden (gatsbee-sections.css) would stop sticky from working */
.week.pin > .wrap{position:sticky;top:var(--pin-top,96px)}
.week.pin::before,.week.pin::after{top:auto;height:100vh}   /* colour wash stays with the content */

.week.driven .timeline::before{transform:scaleX(var(--rail,0));transition:transform 140ms linear,background-color 300ms ease}
.week.driven.rail-long .timeline::before{transition:transform 1000ms var(--ease-in-out),background-color 300ms ease}
.week.driven .step{opacity:0;transform:translateY(10px);transition:opacity 420ms var(--ease-out),transform 420ms var(--ease-out)}
.week.driven .step.on{opacity:1;transform:none}
.week.driven .step .mark{transform:rotate(45deg) scale(0);transition:transform 420ms var(--ease-back),background-color 300ms ease,border-color 300ms ease}
.week.driven .step.on .mark{transform:rotate(45deg) scale(1)}
.week.driven .week-foot .numeral{opacity:0}
.week.driven.counting .week-foot .numeral{opacity:1}
.week.driven .week-foot p{opacity:0;transform:translateY(8px)}
.week.driven.done .week-foot p{opacity:1;transform:none}

/* the numeral ticks: 1 day, 2 days... a small bump on each tick */
.week-foot .numeral.tick{animation:dayTick 320ms var(--ease-out)}
@keyframes dayTick{from{opacity:.35;transform:translateY(6px)}to{opacity:1;transform:none}}

/* auto-play: once the week is drawn, gold fills "With Gatsbee" from left to right over 1s,
   then the switch plays. Cancelled (scroll back) or switched: the gold fades out. */
.switch button[data-mode="with"]{position:relative;transition:background-color 400ms ease,color 400ms ease}
.switch button[data-mode="with"]::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:var(--gold);
  clip-path:inset(0 100% 0 0);opacity:0;
  transition:opacity 200ms ease,clip-path 0s 200ms;
}
.switch button[data-mode="with"].auto::before{clip-path:inset(0 0 0 0);opacity:1;transition:clip-path 1000ms linear,opacity 120ms ease}
.switch button[data-mode="with"].auto{color:var(--midnight)}

/* ---------- 3. wing image reveals ---------- */
/* The chamfered frame comes from the logo's wings: the photo sweeps open on a slanted edge,
   settling from a slight zoom. The frame's dark fill is hidden so no empty block shows first. */
.js .wing{background:transparent}
.js .wing:not(.in) img{clip-path:polygon(0 0,0 0,-25% 100%,0 100%)}
.js .wing.in img{animation:wingOpen 1150ms var(--ease-in-out) backwards,wingSettle 1600ms var(--ease-out) backwards}
@keyframes wingOpen{
  from{clip-path:polygon(0 0,0 0,-25% 100%,0 100%)}
  to{clip-path:polygon(0 0,125% 0,100% 100%,0 100%)}
}
@keyframes wingSettle{from{transform:scale(1.12)}to{transform:scale(1)}}

/* the gold outline around the promise photo traces in after the sweep */
.js .frame-edge.wing::after{opacity:0;transition:opacity 600ms 900ms ease}
.js .frame-edge.wing.in::after{opacity:.7}

/* ==================== REDUCED MOTION ====================
   Animations and transitions are cut to near zero; the rules after it pin the final state. */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .marquee-track{animation:none}
  .switch-pill{transition:none}
  #weekBig,#weekSmall,.timeline .step{transform:none!important;filter:none!important}
  .js [data-reveal]{opacity:1;transform:none;transition:none}
  .js .founder blockquote .line{transform:none}
  .js .wing:not(.in) img{clip-path:none}
  .js .wing.in img{animation:none}
  .js .frame-edge.wing::after{opacity:.7}
}
