/* Landing: hero with the exodus sticker, the departures board, the bail scale and how it works. Gates: gates.css (L4-18). */
.hero{position:relative;padding:24px 0 0;overflow-x:clip;border-bottom:2px solid var(--line)}
/* The exodus walks out of its column to the left, on the line under the hero (the "ground").
   The copy keeps a tall bottom padding so the walkers pass below the text, never over it. */
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:0 24px}
.hero-copy{position:relative;z-index:2;align-self:center;display:flex;flex-direction:column;gap:26px;padding-bottom:clamp(36px,4vw,56px)}
.hero-copy .eyebrow{margin:0}
.hero-title{font:800 clamp(50px,6.2vw,90px)/.94 var(--display);letter-spacing:-.045em;margin:0}
.hot{color:var(--ember-fill)}
.hero-lead{font-size:20px;line-height:1.5;color:var(--ink-2);max-width:40ch;margin:0}
.hero-search{display:flex;flex-direction:column;gap:12px;max-width:620px}
.hero-search label{font:500 12px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.hero-search-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:8px;
  border-radius:20px;
  background:var(--bg-2);
  border:1px solid var(--line-2);
  box-shadow:0 1px 0 var(--line);
}
.hero-search-row:focus-within{border-color:var(--accent)}
.hero-search input {
  flex:1 1 240px;
  min-height:56px;
  padding:0 16px;
  border:0;
  background:transparent;
  color:var(--ink);
  font-size:19px;
  box-shadow:none;
}
.hero-search input:focus-visible{outline:none}
.hero-search .btn{min-height:56px;padding-inline:28px;font-size:17px}
.hero-hint{font-size:14px;color:var(--ink-3);margin:0}
.hero-hint a{color:var(--link)}
/* Three promises: what a first-time visitor gets, before any scrolling. */
.hero-points{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:17px;color:var(--ink-2)}
.hero-points li{position:relative;padding-left:28px}
.hero-points li::before{content:"";position:absolute;left:2px;top:.42em;width:14px;height:8px;border:solid var(--ember);
  border-width:0 0 3px 3px;transform:rotate(-45deg)}
.hero-points b{color:var(--ink);font-weight:700}
.hero-paths{margin:0;display:flex;flex-wrap:wrap;gap:4px 28px;font-size:15px;font-weight:700}
.hero-paths a{display:inline-flex;align-items:center;gap:6px;min-height:44px;text-decoration:none;color:var(--link)}
.hero-paths a:hover{text-decoration:underline}
.hero-art{position:relative;z-index:1;align-self:end;min-width:0;display:flex;flex-direction:column;align-items:flex-end;gap:28px}
/* "Right now": live proof above the fold. Dark like the departures board in both themes. */
.now-card{width:min(100%,500px);padding:22px 24px 18px;border-radius:22px;background:#0b0907;color:#f4efe6;
  border:1px solid #2a251f;box-shadow:0 18px 40px #0005}
.now-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.now-head .num{font-size:12px;color:#a99d88;letter-spacing:.06em;text-transform:uppercase}
.now-title{display:flex;align-items:center;gap:10px;margin:0;font:600 13px var(--mono);letter-spacing:.14em;
  text-transform:uppercase;color:#ffbf47}
.now-dot{width:8px;height:8px;border-radius:50%;background:#ff6a2b;box-shadow:0 0 0 4px #ff6a2b33}
.now-list{list-style:none;margin:0;padding:0}
.now-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid #2a251f;
  text-decoration:none;color:inherit}
.now-row:hover b{color:#ffbf47}
.now-what{display:flex;flex-direction:column;gap:3px;min-width:0}
.now-what b{font-size:18px;font-weight:700;line-height:1.25}
.now-what .num{font-size:13px;color:#a99d88}
.now-word{flex:none;font:800 22px var(--display);letter-spacing:-.01em}
.now-row.tone-bail .now-word{color:#ff6a2b}
.now-row.tone-ready .now-word,.now-row.tone-act .now-word{color:#f2a33a}
.now-row.tone-stay .now-word{color:#8fa3b0}
.now-all{display:inline-flex;min-height:40px;align-items:flex-end;font-size:14px;font-weight:700;color:#ffbf47;text-decoration:none}
.now-all:hover{text-decoration:underline}
.hero-img{display:block;width:112%;max-width:680px;height:auto;margin:0 0 -3px -12%;flex:none}
/* DEPARTURES: a split-flap board. Dark in both themes, like a real airport board; amber mono caps on single tiles.
   --tw is the tile width; each column is a fixed number of tiles, so rows line up. flap.js only animates. */
.departures{position:relative;z-index:3;padding-top:56px;container-type:inline-size}
.board {
  --bd-bg:#070605;
  --bd-tile:#2a2620;
  --bd-tile-2:#211d18;
  --bd-ink:#ffbf47;
  --bd-dim:#a99d88;
  --g:3px;
  --cg:clamp(16px,2vw,28px);
  --pad:clamp(18px,2.6vw,36px);
  /* 34 tiles per row (11 + 7 + 3 + 13) fill the board's inner width: 100cqi is the .departures content width. */
  --tw:clamp(12px,calc((100cqi - 2*var(--pad) - 3*var(--cg) - 30*var(--g) - 4px)/34),30px);
  position:relative;
  padding:26px var(--pad) 14px;
  border-radius:24px;
  background:linear-gradient(#ffffff0a,#0000 120px),var(--bd-bg);
  color:var(--bd-ink);
  border:1px solid #000;
  box-shadow:inset 0 1px 0 #ffffff14,0 0 0 7px #1d1a16,0 0 0 8px #34302a,0 34px 70px -24px #000d;
}
.board-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 24px;padding-bottom:18px}
.board-title{display:flex;align-items:center;gap:14px;margin:0;font:800 clamp(30px,3.4vw,46px)/1 var(--display);letter-spacing:-.03em;color:#fff4de}
.board-glyph{width:.8em;height:.8em;color:#ff6a2b}
.board-meta{font:500 12px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--bd-dim)}
.board-empty{padding:24px 0;color:var(--bd-dim)}
.bd-row {
  position:relative;
  display:grid;
  grid-template-columns:calc(11*var(--tw) + 10*var(--g)) calc(7*var(--tw) + 6*var(--g)) calc(3*var(--tw) + 2*var(--g)) calc(13*var(--tw) + 12*var(--g));
  grid-template-areas:"tool gate days status" "q q q q";
  justify-content:space-between;
  column-gap:var(--cg);
  row-gap:8px;
  padding:14px 0 12px;
  border-top:1px solid #ffffff12;
}
.bd-tool{grid-area:tool}
.bd-gate{grid-area:gate}
.bd-days{grid-area:days}
.bd-status{grid-area:status}
.bd-q{grid-area:q;display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;min-width:0}
.bd-labels{padding:0 0 10px;border:0;font:500 11px var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--bd-dim)}
.bd-link{font:500 15px/1.35 var(--sans);color:#e6dac4;text-decoration:none}
.bd-link::after{content:'';position:absolute;inset:0;border-radius:6px}
.bd-row:hover .bd-link{color:#fff;text-decoration:underline;text-decoration-color:var(--bd-ink)}
.bd-row:hover .flap i{background:linear-gradient(#332e27 50%,#28241e 50%)}
.bd-link:focus-visible{outline:none}
.bd-row:has(.bd-link:focus-visible){outline:3px solid var(--bd-ink);outline-offset:4px;border-radius:6px}
.bd-status .flap{color:var(--st,var(--bd-ink))}
.bd-row.tone-bail{--st:#ff6b3d}
.bd-row.tone-ready,.bd-row.tone-act{--st:#ffbf47}
.bd-row.tone-stay{--st:#a8d8ec}
.bd-row.tone-gone{--st:#a39a8c}
.bd-row.tone-gone .flap{color:#a39a8c}
.bd-row.tone-gone .bd-link{color:#b9ae9c}
.is-final .bd-days .flap{color:#ff7a3d}
.bd-final{display:inline-flex;align-items:center;gap:8px;font:500 11px var(--mono);letter-spacing:.16em;text-transform:uppercase;color:#ff7a3d}
/* Final call: the dot pulses five times, then stays lit (no endless blinking). */
.bd-dot{width:8px;height:8px;border-radius:50%;background:#ff5a1f;box-shadow:0 0 10px #ff5a1f;animation:bd-blink 1s ease-in-out 5}
@keyframes bd-blink{50%{opacity:.15;box-shadow:none}}
.board-links{display:flex;flex-wrap:wrap;gap:8px 28px;margin-top:14px}
/* How sure are we? Three stickers on the page itself, no cards. */
.scale{padding-top:88px}
.scale .lead{margin-bottom:24px}
.scale-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.scale-item{display:flex;flex-direction:column;gap:12px}
.scale-art{width:auto;height:200px;max-width:100%;object-fit:contain;object-position:left bottom;margin-bottom:12px}
.scale-art-bail{height:150px;margin-top:50px}
.scale-word{font:800 40px/1 var(--display);letter-spacing:-.03em;margin:4px 0 0}
.scale-item p{color:var(--ink-2);max-width:30ch}
.scale-note{margin-top:28px;color:var(--ink-3);font-size:15px}
.scale-note b{color:var(--steel)}
.scale-note b.tone-act{color:var(--tone)}
.scale-note+.scale-note{margin-top:8px}
/* How a verdict is made: three numbered columns, top rule only. */
.how{padding-top:88px}
.how-list{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.how-list li{border-top:2px solid var(--ink);padding-top:20px;display:flex;flex-direction:column;gap:10px}
.how-n{font-size:14px;color:var(--link)}
.how-list h3{font:600 23px/1.25 var(--sans);letter-spacing:-.01em}
.how-list p{color:var(--ink-3)}
@media(max-width:820px) {
  .hero{padding-top:8px}
  .hero-grid{grid-template-columns:1fr}
  .hero-copy{gap:20px;padding-bottom:28px}
  .hero-art{align-items:center}
  .now-card{width:100%}
  .hero-img{width:100%;max-width:520px;margin:0 auto -3px}
  .scale-list,.how-list{grid-template-columns:1fr;gap:36px}
  .scale-item{display:grid;grid-template-columns:140px 1fr;column-gap:20px;align-items:center}
  .scale-art{grid-row:1/span 3;height:auto;width:140px;margin:0}
  .scale-art-bail{margin:0}
  .scale-word{font-size:34px}
  .scale-item p{grid-column:2}
  .scale,.how{padding-top:64px}
}
@media(max-width:560px) {
  .hero-title{font-size:clamp(46px,13vw,60px)}
  .hero-lead{font-size:18px}
  .hero-search input{font-size:17px;min-height:50px;flex-basis:100%}
  .hero-search .btn{width:100%;min-height:50px}
  .scale-item{grid-template-columns:104px 1fr;column-gap:16px}
  .scale-art{width:104px}
  .scale-word{font-size:28px}
}
/* Board on phones: two lines of tiles per row (tool + days, gate + status), the question between them. No sideways scroll. */
@media(max-width:700px) {
  .departures{padding-top:40px}
  .board{--g:2px;--cg:10px;--tw:clamp(14px,calc((100vw - 2*var(--gut) - 84px)/16),26px);padding:20px 14px 6px;border-radius:18px}
  .board-head{padding-bottom:12px}
  .bd-labels{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .bd-row{display:flex;flex-wrap:wrap;align-items:flex-end;row-gap:10px;padding:14px 0}
  .bd-tool{order:1}
  .bd-days{order:2;margin-left:auto;display:flex;align-items:flex-end;gap:6px}
  .bd-days::after{content:'days' / '';font:500 10px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--bd-dim)}
  .bd-days.is-none::after{content:''}
  .bd-gate{order:3}
  .bd-status{order:4;margin-left:auto}
  .bd-row:not(.is-act-by) .bd-status .flap i:nth-child(n+10){display:none}
  .bd-row.is-act-by .bd-gate{display:none} /* "ACT BY NOV 1" already names the gate */
  .bd-q{order:5;flex:1 0 100%}
  .bd-link{font-size:14px}
}
/* L4-37: research and teams strip under the hero. One row of three plain links (two studies with their live number on small
   split-flap tiles, then the teams line), split by rules. Stacks on phones. */
.home-strip{display:flex;flex-wrap:wrap;align-items:center;gap:10px 28px;padding-top:24px}
.hs-list{flex:1 1 640px;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  border:1px solid var(--line-2);border-radius:18px;background:var(--bg-2);overflow:hidden}
.hs-list>li+li{border-left:1px solid var(--line)}
.hs-item{display:flex;align-items:center;gap:14px;min-height:88px;height:100%;padding:14px 20px;color:inherit;text-decoration:none}
.hs-item:hover b{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px}
.hs-live{flex:none;color:#ffbf47;--tw:22px;--g:2px}
.hs-what{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:14px;line-height:1.35;color:var(--ink-2)}
.hs-what b{font:700 16px/1.25 var(--sans);color:var(--ink)}
.hs-k{font:500 11px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.hs-teams b{display:inline-flex;align-items:center;gap:6px;color:var(--link)}
/* L4-49: with four studies the teams line takes its own row under them (one row of five would be too tight). */
.hs-list>li.hs-wide{grid-column:1/-1;border-left:0;border-top:1px solid var(--line)}
.hs-wide .hs-item{min-height:0}
.hs-wide .hs-what{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
.hs-all{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:700;font-size:15px;color:var(--link);text-decoration:none}
.hs-all:hover{text-decoration:underline}
@media(max-width:820px) {
  .hs-list{grid-template-columns:minmax(0,1fr)}
  .hs-list>li+li{border-left:0;border-top:1px solid var(--line)}
  .hs-item{min-height:72px}
}
/* L4-44: the weekly email line under the research strip. */
.home-digest{margin-top:28px}
