.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 4vh, 54px);
  min-height: min(860px, calc(100svh - 72px));
  padding-block: clamp(24px, 4.2vh, 62px) clamp(14px, 3vh, 40px);
  color: var(--text);
  background: var(--ground);
}
.hero-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  align-items: center;
  gap: clamp(12px, 2vw, 46px);
}
.hero-inner, .hero-copy { min-width: 0; }
.hero-kicker, .plate-bar, .story-caption small, .fixture-detail small, .chapter-index {
  font: 500 10px/1.45 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-kicker { color: var(--secondary); }
.hero h1 {
  display: flex;
  width: max-content;
  align-items: center;
  margin: clamp(14px, 1.6vw, 26px) 0 clamp(26px, 3vw, 54px) -.022em;
  color: var(--text);
  font-size: clamp(98px, 11.5vw, 215px);
  font-weight: 610;
  line-height: .85;
  letter-spacing: -.075em;
}
.hero h1 .product-mark { width: .614em; height: .739em; flex: none; margin-right: .008em; }
.hero h1 span { display: block; }
.hero h2 {
  font-size: clamp(38px, 4.15vw, 78px);
  font-weight: 480;
  letter-spacing: -.065em;
  line-height: 1.01;
}
.hero h2 em { display: block; font-style: normal; color: var(--secondary); }
.hero-description {
  margin-top: clamp(16px, 1.5vw, 25px);
  max-width: 37ch;
  font-size: clamp(16px, 1.24vw, 23px);
  line-height: 1.48;
  color: var(--secondary);
}
.hero .actions { margin-top: clamp(22px, 2.5vw, 43px); }
.hero-stage {
  width: min(100%, max(450px, calc((100svh - 268px) * 1.43)));
  min-width: 0;
  justify-self: center;
}
.plate-bar { display: flex; align-items: center; gap: 12px; min-height: 43px; color: var(--muted); }
.plate-caption { display: flex; align-items: center; gap: 9px; color: var(--secondary); }
.plate-caption i, .story-caption small i { color: var(--accent); font-style: normal; }
.prototype-label { margin-left: auto; }
.motion-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.motion-toggle:hover { background: var(--surface); color: var(--accent); }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle .play-mark, .motion-toggle[data-play=true] .pause-mark { display: none; }
.motion-toggle[data-play=true] .play-mark { display: block; }
.motion-plate {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 10/7;
  background: var(--ground);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent),
              linear-gradient(to top, transparent, black 7%);
  mask-composite: intersect;
}
.motion-plate > img, .motion-plate > canvas, .motion-plate > video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero:not([data-renderer=webgl]) [data-story-canvas] { opacity: 0; }
.motion-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ground);
  pointer-events: none;
  opacity: 0;
  transition: opacity .19s ease-in-out;
}
.motion-plate.loop-cut::after { opacity: 1; }
.plate-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.5vw, 28px);
  min-height: 107px;
  padding-top: 13px;
  border-top: 1px solid var(--rule);
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  font: inherit;
}
.story-caption { min-width: 0; }
.story-caption small { display: block; color: var(--muted); }
.story-caption small i { margin-inline: 5px; }
.story-caption strong { display: block; margin-block: 5px 3px; font-size: clamp(19px, 1.5vw, 26px); line-height: 1.18; font-weight: 560; letter-spacing: -.035em; }
.story-caption p { max-width: 60ch; font-size: clamp(14px, 1vw, 18px); line-height: 1.4; color: var(--secondary); }
.fixture-detail { flex: none; min-width: 96px; padding-left: 12px; border-left: 1px solid var(--rule); text-align: center; }
.fixture-detail svg { width: 81px; height: 37px; margin-inline: auto; }
.fixture-detail small { display: block; color: var(--secondary); font-size: 9px; letter-spacing: 0; white-space: nowrap; }
.hero-baseline { width: 100%; }
.story-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.3vw, 26px); }
.story-rail button {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 45px;
  padding: 13px 0 5px;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
}
.story-rail button::before, .story-rail button i { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--rule); }
.story-rail button i { background: var(--accent); transform-origin: left; transform: scaleX(var(--fill,0)); }
.story-rail button[aria-pressed=true]::before { background: color-mix(in srgb, var(--accent) 45%, var(--rule)); }
.story-rail button[aria-pressed=true], .story-rail button:hover { color: var(--text); }
.story-rail button[aria-pressed=true] .chapter-index { color: var(--accent); }
.story-transcript a { text-decoration: underline; }
.story-transcript summary { cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: hero-arrive .65s cubic-bezier(.2,.75,.3,1) both; }
  @keyframes hero-arrive { from { opacity: .3; transform: translateY(9px); } }
}
@media (max-width: 900px) and (min-width: 761px) {
  .hero h1 { font-size: clamp(81px, 11.4vw, 100px); }
  .hero h2 { font-size: 36px; }
  .hero .actions { column-gap: 13px; }
  .plate-foot { min-height: 133px; }
  .plate-bar { gap: 6px; font-size: 9px; }
  .fixture-detail { min-width: 72px; padding-left: 6px; }
  .fixture-detail svg { width: 65px; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; padding-block: 22px 14px; gap: 12px; }
  .hero-layout { grid-template-columns: 1fr; gap: 8px; }
  .hero h1 { margin-block: 12px 21px; font-size: clamp(84px, 21vw, 140px); }
  .hero h2 { font-size: clamp(30px, 6.2vw, 43px); }
  .hero h2 em { display: inline; }
  .hero-description { margin-top: 9px; font-size: 15px; max-width: 50ch; }
  .hero .actions { display: flex; flex-wrap: nowrap; margin-top: 13px; gap: 12px; }
  .hero .actions a { white-space: nowrap; font-size: 14px; }
  .hero .actions .button { padding-inline: 13px; gap: 10px; }
  .hero-stage { width: 100%; max-width: 600px; }
  .plate-bar { gap: 5px; min-height: 36px; font-size: 9px; letter-spacing: .035em; white-space: nowrap; }
  .plate-caption { gap: 5px; }
  .prototype-label .type-expanded { display: none; }
  .plate-foot { min-height: 105px; padding-top: 10px; gap: 10px; }
  .story-caption strong { font-size: 18px; }
  .fixture-detail { min-width: 70px; padding-left: 7px; }
  .fixture-detail svg { width: 61px; height: 31px; }
  .fixture-detail small { font-size: 8px; }
  .story-rail button { flex-direction: column; align-items: flex-start; gap: 3px; padding: 9px 0 4px; font-size: 13px; }
}
@media (max-width: 360px) {
  .hero { padding-block: 13px 10px; gap: 8px; }
  .hero h1 { margin-block: 9px 12px; font-size: 78px; }
  .hero h2 { font-size: 28px; }
  .hero-description { font-size: 14px; margin-top: 7px; }
  .hero .actions { gap: 6px 8px; margin-top: 10px; }
  .hero-layout { gap: 3px; }
  .plate-foot { display: grid; grid-template-columns: 1fr auto; align-content: start; align-items: center; gap: 1px 4px; min-height: 89px; padding-top: 7px; }
  .story-caption { display: contents; }
  .story-caption small, .story-caption strong { grid-column: 1; }
  .story-caption strong { margin-block: 1px 2px; }
  .story-caption p { grid-column: 1 / -1; }
  .fixture-detail { grid-column: 2; grid-row: 1 / 3; min-width: 66px; }
  .fixture-detail svg { width: 45px; height: 21px; }

  .hero .actions .text-link { display: none; }
  .hero .actions a { font-size: 13px; }
  .hero .actions .button { gap: 7px; padding-inline: 10px; }
  .hero .actions svg { width: 14px; height: 14px; }
  .story-rail { gap: 6px; }
  .story-rail button { font-size: 12px; }
  .plate-bar { letter-spacing: .04em; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .motion-plate::after { display: none; } }
