/* =========================================================
   Homepage hero (Oct 2026, v2). Loaded after site.css on the
   homepage only. On a laptop the homepage is one navy screen over a
   faint south-up world map: headline and buttons on the left; this
   week's Flip and Spot the trick on the right; three ways in along
   the bottom. Everything else lives on its own page. Phones scroll.
   ========================================================= */
header.hero-v2 {
  position: relative; overflow: hidden;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
  background: #24528F; color: #ffffff; text-align: left;
}
.hero-map {
  position: absolute; right: -6%; top: 50%; width: 78%; max-width: 1150px;
  transform: translateY(-50%); opacity: .22; pointer-events: none; user-select: none;
  filter: brightness(1.7) saturate(.6);
}
.hero-v2-inner {
  position: relative; width: min(1180px, calc(100% - 48px)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  column-gap: 56px; row-gap: 34px; align-items: center; padding: 44px 0 30px;
}

/* Words */
header.hero-v2 .hero-kicker {
  margin: 0 0 14px !important; padding: 0 !important; color: #F6C35E;
  font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; text-transform: none;
}
header.hero-v2 .hero-kicker em { font-style: italic; font-weight: 800; font-size: 1.15rem; color: #ffffff; letter-spacing: .02em; }
header.hero-v2 h1.hero-title {
  margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important;
  transform: none !important; position: static !important;
  font-size: clamp(48px, 6vw, 82px) !important; line-height: .95 !important;
  font-weight: 900 !important; letter-spacing: -0.045em !important; color: #ffffff;
}
.ht-look { color: #ffffff; }
.ht-again { color: #E59E12; }

header.hero-v2 .hero-line {
  margin: 22px 0 0 !important; max-width: 30rem; transform: none !important;
  font-style: italic; font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.32; color: #ffffff;
}
header.hero-v2 .hero-about {
  margin: 14px 0 0 !important; max-width: 31rem;
  font-size: 1.02rem; line-height: 1.55; color: rgba(255, 255, 255, .78);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px !important; }
.hero-cta {
  display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  text-decoration: none; color: #ffffff; border: 2px solid rgba(255, 255, 255, .75);
}
.hero-cta:hover { background: rgba(255, 255, 255, .12); border-color: #ffffff; }
.hero-cta-main { background: #E59E12; border-color: #E59E12; color: #10284A; }
.hero-cta-main:hover { background: #F6B53A; border-color: #F6B53A; }
.hero-cta:focus-visible, .way:focus-visible { outline: 3px solid #F6C35E; outline-offset: 3px; }

/* This week's Flip */
.hero-flipbox { min-width: 0; }
.hero-flip-title { margin: 0 0 12px; text-align: center; font-size: 1.35rem; font-weight: 800; color: #ffffff; letter-spacing: -.01em; }
.hero-v2 .home-flip .weekly-flip {
  max-width: none !important; margin: 0 !important; padding: 22px 24px 18px !important;
  background: #FFF8EC !important; border: 0 !important; border-top: 7px solid #E59E12 !important;
  border-radius: 20px !important; box-shadow: 0 24px 48px rgba(6, 20, 40, .35) !important; color: #172536;
}
.hero-v2 .weekly-flip .spotlight-idea {
  display: inline-block; align-self: center; margin: 0 auto 10px !important; padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: #1A3E6E; border: 1px solid rgba(26, 62, 110, .15);
}
.hero-v2 .weekly-flip h2 { font-size: clamp(1.25rem, 1.9vw, 1.55rem) !important; line-height: 1.25 !important; color: #1A3E6E !important; text-align: center; margin: 0 !important; }
.hero-v2 .weekly-flip .daily-guess-label { color: #8F5E00; font-weight: 700; }
.hero-v2 .weekly-flip .daily-choices { gap: 10px !important; }
.hero-v2 .weekly-flip .daily-choices button {
  padding: 11px 20px !important; font-size: 1rem !important; font-weight: 800 !important; border-radius: 999px !important;
  background: #ffffff !important; color: #1A3E6E !important; border: 2px solid #1A3E6E !important; cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.hero-v2 .weekly-flip .daily-choices button:hover:not(:disabled) { background: #1A3E6E !important; color: #ffffff !important; transform: translateY(-1px); }
.hero-v2 .weekly-flip .daily-choices button:disabled { opacity: .45 !important; }
.hero-v2 .weekly-flip .daily-choices button.is-answer { opacity: 1 !important; background: #1A3E6E !important; color: #ffffff !important; }
.hero-v2 .weekly-flip .daily-choices button.selected:not(.is-answer) { opacity: .8 !important; text-decoration: line-through; }
.hero-v2 .weekly-flip .flip-answer:not([hidden]) { animation: flip-reveal .55s cubic-bezier(.2, .8, .2, 1) both; transform-origin: top center; }
@keyframes flip-reveal { from { opacity: 0; transform: perspective(600px) rotateX(-80deg); } to { opacity: 1; transform: none; } }
.hero-v2 .weekly-flip .flip-note { color: #5b6670; }

/* Ways in */
.hero-ways { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.way {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px 18px; border-radius: 16px; text-align: left; font: inherit; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .22); color: #ffffff; text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.way:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.way-icon { flex: none; line-height: 0; color: #F6C35E; }
.way-text strong { display: block; font-size: 1.12rem; font-weight: 800; }
.way-text > span { display: block; font-size: .88rem; opacity: .8; margin-top: 2px; }

.way-surprise { background: #E59E12; border-color: #E59E12; color: #10284A; overflow: hidden; }
.way-surprise:hover { background: #F6B53A; border-color: #F6B53A; }
.way-surprise .way-icon { color: #10284A; transform-origin: 82% 70%; }
.way-surprise:hover .way-icon { animation: lever-nudge .5s ease; }
@keyframes lever-nudge { 50% { transform: rotate(-8deg); } }
.reel {
  margin-left: auto; flex: none; width: 128px; height: 46px; border-radius: 10px; overflow: hidden;
  background: #10284A; color: #ffffff; display: flex; flex-direction: column; justify-content: center; align-items: center;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .45);
}
.reel-num { font-size: 1.1rem; font-weight: 900; letter-spacing: .06em; color: #F6C35E; line-height: 1.1; }
.reel-title { max-width: 116px; font-size: .62rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.way-surprise.is-spinning .reel-num { animation: reel-blur .08s linear infinite; }
@keyframes reel-blur { 0% { transform: translateY(-40%); opacity: .4; } 100% { transform: translateY(40%); opacity: .9; } }
.way-surprise.is-landed .reel { box-shadow: inset 0 0 0 2px #F6C35E, inset 0 3px 8px rgba(0, 0, 0, .45); }

/* Full-screen "turn over" on the way to the random exhibit */
.flipover {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; text-align: center;
  background: #1A3E6E; color: #ffffff; transform-origin: top center;
  animation: flipover-in .5s cubic-bezier(.3, .7, .2, 1) both;
}
.flipover strong { display: block; font-size: clamp(56px, 12vw, 120px); font-weight: 900; color: #E59E12; letter-spacing: .02em; line-height: 1; }
.flipover span { display: block; max-width: 28ch; margin: 14px auto 0; font-size: 1.15rem; opacity: .85; }
@keyframes flipover-in { from { transform: perspective(1200px) rotateX(-90deg); } to { transform: none; } }

@media (max-width: 900px) {
  .hero-v2-inner { grid-template-columns: 1fr; row-gap: 28px; padding: 34px 0 26px; }
  .hero-map { width: 140%; right: -30%; top: 30%; }
  .hero-flipbox { max-width: 560px; width: 100%; margin: 0 auto; }
  .hero-ways { grid-template-columns: 1fr 1fr; }
  .way-surprise { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero-v2-inner { width: calc(100% - 30px); }
  header.hero-v2 h1.hero-title { font-size: 52px !important; }
  .hero-ways { grid-template-columns: 1fr; }
  .reel { width: 104px; }
  .reel-title { max-width: 94px; }
  .hero-v2 .home-flip .weekly-flip { padding: 18px 16px 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2 .weekly-flip .flip-answer:not([hidden]), .flipover, .way-surprise:hover .way-icon,
  .way-surprise.is-spinning .reel-num { animation: none !important; }
}
/* keep the hero's words and buttons left-aligned at every width */
header.hero-v2 .hero-actions { justify-content: flex-start !important; }
/* The Flip card takes the soft color of this week's theme */
.hero-v2 .home-flip .weekly-flip[data-theme="perspective"]   { background: #EDE7F4 !important; }
.hero-v2 .home-flip .weekly-flip[data-theme="time"]          { background: #F4ECDF !important; }
.hero-v2 .home-flip .weekly-flip[data-theme="scale"]         { background: #E2EEF5 !important; }
.hero-v2 .home-flip .weekly-flip[data-theme="measurement"]   { background: #E6EFE2 !important; }
.hero-v2 .home-flip .weekly-flip[data-theme="distribution"]  { background: #F5E6DF !important; }
.hero-v2 .home-flip .weekly-flip[data-theme="statistics"]    { background: #E4E8F0 !important; }
.hero-v2 .home-flip .weekly-flip[data-theme="probability"]   { background: #DFF0EB !important; }
.hero-v2 .home-flip .weekly-flip[data-theme="optimization"]  { background: #F1EFD8 !important; }
.hero-v2 .home-flip .weekly-flip[data-theme="systems"]       { background: #F3E4EA !important; }
.hero-v2 .weekly-flip .spotlight-idea { background: #ffffff !important; }
/* three choices fit on one or two lines */
.hero-v2 .weekly-flip .daily-choices button { padding: 10px 16px !important; font-size: .95rem !important; }
.way-newest .way-text > span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hero-v2 .weekly-flip .flip-answer p { text-wrap: balance; }

/* Newest exhibits tile: three small links instead of one big one */
.way-newest { cursor: default; }
.way-newest:hover { transform: none; }
.newest-links { display: flex !important; gap: 8px; margin-top: 6px !important; opacity: 1 !important; }
.newest-links a { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: .85rem; font-weight: 800; text-decoration: none; }
.newest-links a:hover, .newest-links a:focus-visible { background: #fff; color: #1A3E6E; }

/* Centered words over the two sentences, buttons centered too */
.hero-copy { text-align: center; }
header.hero-v2 .hero-line, header.hero-v2 .hero-about { margin-left: auto !important; margin-right: auto !important; }
header.hero-v2 .hero-actions { justify-content: center !important; }

/* Weekly challenge and Newest exhibits: title centered over its line */
.way-challenge .way-text, .way-newest .way-text { flex: 1; text-align: center; padding-right: 34px; }
.way-newest .newest-links { justify-content: center; }
.reel-title:empty { display: none; }


/* =========================================================
   One navy screen (Oct 2026): no light canvas below the hero.
   ========================================================= */
body.home { background: #24528F; min-height: 100vh; display: flex; flex-direction: column; }
body.home header.hero-v2 { flex: 1 0 auto; display: flex; align-items: center; }
body.home .hx-foot { margin-top: 0; }
.hero-v2-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 44px; row-gap: 26px; padding: 30px 0 22px; }
.hero-copy { min-width: 0; }

/* Flip (smaller) and Spot the trick, side by side */
.hero-weekly { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.hero-flipbox, .hero-trickbox { display: flex; flex-direction: column; min-width: 0; }
.hero-v2 .hero-flip-title { font-size: 1.12rem; margin-bottom: 10px; }
.hero-v2 .home-flip .weekly-flip { flex: 1; padding: 16px 16px 14px !important; border-top-width: 6px !important; border-radius: 18px !important; }
.hero-v2 .weekly-flip h2 { font-size: 1.15rem !important; }
.hero-v2 .weekly-flip .spotlight-idea { margin-bottom: 8px !important; font-size: .7rem; }
.hero-v2 .weekly-flip .daily-guess-label { margin: 10px 0 6px !important; font-size: .85rem; }
.hero-v2 .weekly-flip .daily-choices { gap: 7px !important; }
.hero-v2 .weekly-flip .daily-choices button { padding: 7px 13px !important; font-size: .86rem !important; }
.hero-v2 .weekly-flip .flip-answer p { font-size: .92rem; margin: 10px 0 0; }

.hero-trick {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 14px 16px; border-radius: 18px; text-align: center; text-decoration: none;
  background: #FFF8EC; color: #172536; border-top: 6px solid #E59E12;
  box-shadow: 0 24px 48px rgba(6, 20, 40, .35); transition: transform .15s;
}
.hero-trick:hover { transform: translateY(-2px); }
.hero-trick:focus-visible { outline: 3px solid #F6C35E; outline-offset: 3px; }
.hero-trick-label { margin: 0; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid rgba(26, 62, 110, .15); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #1A3E6E; }
.hero-trick-icon { width: 84px; height: auto; }
.hero-trick h2 { margin: 0; font-size: 1.15rem; line-height: 1.2; color: #1A3E6E; text-wrap: balance; }
.hero-trick-go { margin-top: 4px; padding: 8px 16px; border-radius: 999px; background: #1A3E6E; color: #fff; font-weight: 800; font-size: .9rem; }
.hero-trick:hover .hero-trick-go { background: #24528F; }

/* Three buttons under the words */
.hero-actions { gap: 10px; }
.hero-cta { padding: 11px 18px; font-size: .95rem; }

/* Monday note */
.hero-monday { grid-column: 1 / -1; margin: -8px 0 0; text-align: center; font-size: .92rem; color: rgba(255, 255, 255, .82); }
.hero-monday a { color: #F6C35E; font-weight: 700; }

@media (max-width: 1100px) {
  .hero-v2-inner { grid-template-columns: 1fr; }
  .hero-weekly { max-width: 760px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hero-weekly { grid-template-columns: 1fr; }
  .hero-trick { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hero-trick-icon { width: 60px; }
  .hero-trick h2 { flex-basis: 100%; }
}

/* The faint world map fills the taller hero */
body.home .hero-map { width: auto; height: 118%; max-width: none; right: -14%; }
@media (max-width: 900px) { body.home .hero-map { height: auto; width: 140%; right: -20%; } }
