/* Homepage-only refinements. Shared pages keep the approved stylesheet. */
/* Extend only the colour surface; preserve the shared content width and gutters.
   Clip the background layer, not the chapter, so focus rings remain visible. */
.homepage #main > section,
.homepage .engineering-exhibit { position: relative; isolation: isolate; }
.homepage #main > section { --chapter-background: var(--limestone); background: var(--chapter-background); }
.homepage #main > :is(.thursday-storyboard, .engineering-exhibits, .insights-invitation) { --chapter-background: var(--sand); }
.homepage #main > .about-strip { --chapter-background: var(--stone); }
.homepage #main > section::before,
.homepage .engineering-exhibit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: 0 0 0 100vmax var(--chapter-background);
  clip-path: inset(0 -100vmax);
}

.site-header .brand-wordmark,
.site-header .brand-wordmark img { width: 138px; }
.site-header .brand-wordmark img { height: auto; max-height: none; aspect-ratio: 746 / 103; }
.hero-identity { display: flex; align-items: center; gap: 28px; }
.hero-identity > img { width: 136px; height: auto; flex: 0 0 auto; }
.hero-identity .eyebrow { margin: 0; max-width: 230px; }

.thursday-storyboard { padding-top: 85px; padding-bottom: 70px; background: var(--sand); border-top: 1px solid var(--rule); }
.storyboard-heading { display: grid; grid-template-columns: 18% 82%; align-items: start; margin-bottom: 38px; }
.storyboard-heading h2 { font-size: clamp(30px, 2.9vw, 44px); line-height: 1.3; padding-right: 35px; }
.storyboard-heading > div:last-child > p { font-size: 13px; line-height: 1.8; margin: 18px 0 0; max-width: 560px; }
.storyboard { border-top: 1px solid var(--rule); }
.story-scene { display: grid; grid-template-columns: 18% 82%; align-items: center; min-block-size: 260px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.scene-copy { min-width: 0; max-width: 860px; }
.scene-copy .scene-index { font-size: 10px; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 12px; }
.scene-copy h3 { font-family: Montserrat, Inter, sans-serif; font-size: clamp(23px, 2vw, 29px); line-height: 1.3; letter-spacing: -.035em; margin: 0 0 16px; }
.scene-copy > p:not(.scene-index) { font-size: 14px; line-height: 1.85; margin: 0 0 12px; }
.scene-copy > p:last-child { margin-bottom: 0; }
.scene-copy .scene-question { color: var(--graphite); }
.scene-copy .text-link { font-size: 12px; margin-top: 3px; max-width: 100%; gap: 12px; }
.scene-clock { justify-self: end; width: 88px; margin: 0 32px 0 0; }
.scene-clock svg { width: 100%; height: auto; fill: none; stroke: var(--navy); stroke-width: 1; }
.clock-inner { stroke: var(--rule); }
.clock-ticks { stroke-width: 1.2; }
.clock-hour { stroke-width: 2.6; stroke-linecap: round; }
.clock-minute { stroke: var(--terracotta); stroke-width: 1.6; stroke-linecap: round; }
.clock-pin { fill: var(--navy); stroke: none; }
.scene-clock figcaption { text-align: center; margin-top: 3px; color: var(--navy); }
.scene-clock time { font-variant-numeric: tabular-nums; font-size: 10px; }
.storyboard-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 16px; padding-top: 10px; }
.story-step { display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; padding: 10px; min-height: 44px; color: var(--navy); }
.story-step span { font-size: 18px; }
.story-step[aria-disabled=true] { opacity: .45; cursor: default; }
.story-step:hover:not([aria-disabled=true]) { text-decoration: underline; text-underline-offset: 5px; }
.story-progress { display: flex; align-items: center; justify-content: center; }
.story-dots { display: flex; }
.story-dot { display: grid; place-items: center; width: 24px; height: 44px; padding: 0; border: 0; background: none; }
.story-dot::before { content: ''; width: 7px; height: 7px; background: var(--stone); border: 1px solid var(--stone); border-radius: 50%; }
.story-dot[aria-current=true]::before { background: var(--navy); border-color: var(--navy); }
.story-dot:hover::before { outline: 1px solid var(--navy); outline-offset: 3px; }
.demo-disclosure { font-size: 10px; line-height: 1.7; margin-top: 16px; margin-bottom: 0; }

.engineering-exhibits { padding-top: 85px; padding-bottom: 0; background: var(--sand); }
.exhibits-heading { display: grid; grid-template-columns: 18% 82%; padding-bottom: 48px; }
.exhibits-heading h2 { max-width: 750px; }
.exhibits-heading > div:last-child > p { font-size: 14px; line-height: 1.8; max-width: 630px; margin: 24px 0 0; }
.engineering-exhibit { --chapter-background: var(--sand); display: grid; grid-template-columns: 18% 41% 41%; padding: 45px var(--gutter); margin: 0 calc(-1 * var(--gutter)); border-top: 1px solid var(--rule); }
.exhibit-marker { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.exhibit-marker > span { font-family: Montserrat, sans-serif; font-size: 30px; letter-spacing: -.04em; color: var(--stone); }
.exhibit-symbol { width: 80px; height: 80px; fill: none; stroke: var(--navy); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.exhibit-symbol .symbol-accent { stroke: var(--terracotta); }
.exhibit-symbol .symbol-point { fill: var(--navy); }
.exhibit-explanation { padding-right: 55px; min-width: 0; }
.exhibit-explanation h3 { font-family: Montserrat, Inter, sans-serif; font-size: clamp(25px, 2.1vw, 32px); line-height: 1.3; letter-spacing: -.035em; margin-bottom: 22px; max-width: 400px; }
.exhibit-explanation p,
.exhibit-example > p:last-child { font-size: 14px; line-height: 1.85; margin-bottom: 0; max-width: 510px; }
.exhibit-example { padding: 5px 0 0 30px; border-left: 1px solid var(--rule); }
.exhibit-example .eyebrow { font-size: 9px; margin-bottom: 17px; }
.exhibit-limestone { --chapter-background: var(--limestone); background: var(--limestone); }
.exhibit-stone { --chapter-background: var(--stone); background: var(--stone); color: var(--graphite); }
.exhibit-stone .exhibit-marker > span { color: var(--graphite); }
.homepage .contact-section { border-top: 1px solid var(--rule); }

@media (max-width: 1150px) {
  .homepage #main-nav { gap: 20px; }
  .homepage .nav-links { gap: 18px; }
  .homepage #main-nav .nav-cta { padding-left: 20px; }
  .hero-identity { gap: 20px; }
  .hero-identity > img { width: 126px; }
  .hero-identity .eyebrow { font-size: 9px; }
  .storyboard-heading, .story-scene { grid-template-columns: 16% 84%; }
  .scene-clock { margin-right: 24px; }
  .exhibits-heading { grid-template-columns: 16% 84%; }
  .engineering-exhibit { grid-template-columns: 16% 42% 42%; }
  .exhibit-explanation { padding-right: 35px; }
}

@media (max-width: 850px) {
  /* Collapse the longer chapter navigation before it can crowd the wordmark. */
  .homepage .menu-toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 0; background: none; padding: 10px 0 10px 10px; color: var(--navy); font-size: 11px; min-height: 44px; }
  .homepage .menu-toggle > span:last-child { font-size: 22px; }
  .homepage .menu-toggle[aria-expanded=true] > span:last-child { transform: rotate(45deg); }
  .homepage #main-nav { display: none; position: absolute; top: 75px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 14px var(--gutter) 22px; background: var(--limestone); border-bottom: 1px solid var(--rule); align-items: stretch; }
  .homepage #main-nav.is-open { display: flex; }
  .homepage .nav-links { display: contents; }
  .homepage #main-nav a { font-size: 13px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
  .homepage #main-nav .nav-cta { border-left: 0; padding-left: 0; display: flex; justify-content: space-between; border-bottom: 0; }
  .hero-identity { gap: 16px; flex-wrap: wrap; }
  .hero-identity > img { width: 120px; }
  .hero-identity .eyebrow { max-width: 160px; }
  .thursday-storyboard { padding-top: 60px; padding-bottom: 50px; }
  .storyboard-heading { grid-template-columns: 1fr; gap: 25px; }
  .storyboard-heading > .section-kicker { grid-column: 1 / -1; }
  .storyboard-heading h2 { font-size: 31px; padding-right: 0; }
  .story-scene { grid-template-columns: 80px minmax(0, 1fr); gap: 20px; min-block-size: 270px; }
  .scene-copy h3 { font-size: 24px; }
  .scene-copy > p:not(.scene-index) { font-size: 13px; }
  .scene-clock { width: 80px; margin: 0; }
  .engineering-exhibits { padding-top: 60px; }
  .exhibits-heading { grid-template-columns: 1fr; gap: 25px; padding-bottom: 35px; }
  .exhibits-heading h2 { font-size: 32px; }
  .engineering-exhibit { grid-template-columns: 12% 44% 44%; }
  .exhibit-marker > span { font-size: 25px; }
  .exhibit-symbol { width: 56px; height: 56px; }
  .exhibit-explanation { padding-right: 28px; }
  .exhibit-explanation h3 { font-size: 25px; }
  .exhibit-explanation p, .exhibit-example > p:last-child { font-size: 13px; }
  .exhibit-example { padding-left: 24px; }
}

@media (max-width: 600px) {
  .site-header .brand-wordmark, .site-header .brand-wordmark img { width: 128px; }
  .homepage #main-nav { top: 79px; }
  .hero-identity { flex-wrap: nowrap; gap: 24px; }
  .hero-identity .eyebrow { max-width: 170px; font-size: 8px; }
  .hero-identity .small-line { display: none; }
  .thursday-storyboard { padding-top: 45px; padding-bottom: 40px; }
  .storyboard-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .storyboard-heading h2 { font-size: 30px; }
  .storyboard-heading > div:last-child > p { font-size: 12px; margin-top: 16px; }
  .story-scene { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; min-block-size: 340px; padding: 26px 0; }
  .scene-clock { width: 64px; margin-top: 18px; }
  .scene-copy h3 { font-size: 21px; margin-bottom: 14px; }
  .scene-copy > p:not(.scene-index) { line-height: 1.8; }
  .scene-copy .text-link { font-size: 11px; }
  .engineering-exhibits { padding-top: 45px; }
  .exhibits-heading { gap: 23px; padding-bottom: 30px; }
  .exhibits-heading h2 { font-size: 31px; }
  .exhibits-heading > div:last-child > p { font-size: 13px; margin-top: 20px; }
  .engineering-exhibit { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; padding-bottom: 35px; }
  .exhibit-marker { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; }
  .exhibit-marker > span { font-size: 25px; }
  .exhibit-symbol { width: 60px; height: 60px; }
  .exhibit-explanation { padding-right: 0; }
  .exhibit-explanation h3 { font-size: 27px; margin-bottom: 18px; }
  .exhibit-example { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .exhibit-example .eyebrow { margin-bottom: 12px; }
}

@media (max-width: 380px) {
  .story-scene { min-block-size: 380px; }
}
