/* Overdrive 009 landing page. Three "stage" sections float their copy over a fixed 3D view of the robot and the field
   (a still poster until the 3D is ready); every other section is a solid ink page that scrolls over the stage.
   Layout follows css/od.css: stacked below 768 px and on portrait tablets, split from 768 px landscape up. */
body.landing { overflow-x: clip; }
@media (min-width: 1800px) { body.landing { --wrap: 1440px; } }
@media (min-width: 2400px) { body.landing { --wrap: 1720px; } }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* ------------------------------------------------------------------ the stage: poster, canvas, ink wash */
.poster, #stage { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; }
.poster img { width: 100vw; height: 100vh; height: 100lvh; object-fit: cover; }
#stage { display: block; opacity: 0; transition: opacity 1.2s var(--ease-out); }
body.stage-on #stage { opacity: 1; }
body.stage-on .poster { visibility: hidden; transition: visibility 0s 1.3s; }
/* an ink wash on the copy side, so cream type stays legible over the daylight venue; the two sides cross-fade */
.shade, .shade::before { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.shade { background: linear-gradient(90deg, rgba(20, 23, 27, 0.94), rgba(20, 23, 27, 0.8) 34vw, rgba(20, 23, 27, 0.18) 60vw, rgba(20, 23, 27, 0) 74vw); transition: opacity 0.9s var(--ease-out); }
.shade::before { content: ''; background: linear-gradient(270deg, rgba(20, 23, 27, 0.94), rgba(20, 23, 27, 0.84) 36vw, rgba(20, 23, 27, 0.24) 62vw, rgba(20, 23, 27, 0) 78vw); opacity: 0; transition: opacity 0.9s var(--ease-out); }
body.at-right .shade { background-color: transparent; background-image: none; }
body.at-right .shade::before { opacity: 1; }
main, .site-foot { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ nav */
body.landing .nav { left: var(--gutter); right: var(--gutter); max-width: var(--wrap); padding-right: 9px; }
@media (pointer: coarse) { body.landing .nav { padding-right: 5px; } }
@media (max-width: 767px) { body.landing .nav { left: 10px; right: 10px; padding-right: 7px; } }
@media (max-width: 767px) and (pointer: coarse) { body.landing .nav { padding-right: 3px; } }
@media (max-width: 359px) { body.landing .nav .brand { font-size: 19px; gap: 8px; } body.landing .nav-cta { padding: 0 10px; font-size: 12.5px; } }
@media (min-width: 768px) and (max-width: 1099px) { .nav a.lnk.opt { padding: 0 10px; } .nav a.lnk.opt::after { left: 10px; right: 10px; } }
.nav-cta { transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out); }
body.past-hero .nav-cta { background: var(--cream); color: var(--ink); border-color: var(--cream); }
@keyframes navIn { from { opacity: 0; transform: translateY(-10px); } }
body.landing .nav { animation: navIn 0.8s var(--ease-out) 0.1s backwards; }
.nav-progress { display: none; }

/* ------------------------------------------------------------------ type */
/* display: Big Shoulders Display, condensed, set tight; headlines carry a second tone in the foam-tile grey */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -0.005em; }
.lede { margin: 0; max-width: 34em; color: #d5cec2; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.7; }
.kicker { margin: 0 0 var(--s-3); font: 600 11.5px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--od-2); }
.cap { margin: var(--s-3) 0 0; color: var(--faint); font-size: 13px; line-height: 1.5; }
.eyebrow .short { display: none; }
@media (max-width: 479px) { .eyebrow .long { display: none; } .eyebrow .short { display: inline; } }

/* ------------------------------------------------------------------ stage sections */
.sec { position: relative; }
.stage { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--s-10) + var(--safe-t)) max(var(--gutter), calc((100vw - var(--wrap)) / 2)) var(--s-9); }
.stage .copy { flex: 0 1 clamp(540px, 36vw, 920px); min-width: 0; }
.stage.right { justify-content: flex-end; }
/* the season's venue still stands in for the 3D field until it has streamed in */
#season { isolation: isolate; }
.still { position: absolute; inset: 0; z-index: -1; display: grid; overflow: hidden; transition: opacity 1.2s var(--ease-out), visibility 0s 1.2s; }
.still img { align-self: stretch; justify-self: stretch; width: auto; height: auto; min-width: 0; min-height: 0; object-fit: cover; }
.still::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 23, 27, 0.92), rgba(20, 23, 27, 0.6) 40vw, rgba(20, 23, 27, 0.1) 70vw); }
body.stage-on .still { opacity: 0; visibility: hidden; }
.stage h2 { margin: var(--s-4) 0 var(--s-5); font-size: clamp(48px, 5.4vw, 112px); line-height: 0.95; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.hero { align-items: flex-end; justify-content: space-between; gap: var(--s-7); padding-bottom: max(11vh, var(--s-8)); }
/* the hero column is as wide as the name it sets */
.hero .copy { flex-basis: auto; }
.hero h1 { margin: var(--s-4) 0 var(--s-5); font-size: clamp(88px, 14vw, 300px); font-weight: 800; line-height: 0.84; text-transform: uppercase; letter-spacing: -0.01em; }
.hero h1 em { color: var(--od); }
.hero .lede { max-width: 31em; }

/* specifications as a ruled list */
.specs, .facts { margin: var(--s-6) 0 0; padding: 0; }
.specs div, .facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-4); align-items: baseline; padding: var(--s-3) 0; border-top: 1px solid var(--line-2); }
.specs div:last-child, .facts div:last-child { border-bottom: 1px solid var(--line-2); }
.specs dt, .facts dt { font: 600 11px/1.9 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.specs dd, .facts dd { margin: 0; font-size: 15px; line-height: 1.5; }
/* real numbers only, set large */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--s-6) 0 0; border-top: 1px solid var(--line-2); }
.figures div { padding: var(--s-4) var(--s-3) 0 0; }
.figures dt { font: 600 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.figures dd { margin: var(--s-2) 0 0; font: 700 clamp(40px, 3.4vw, 64px)/1 var(--serif); }

/* ------------------------------------------------------------------ solid sections */
.solid { background: var(--ink); padding: clamp(96px, 14vh, 176px) 0; border-top: 1px solid var(--line); }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sec-head { max-width: 760px; margin-bottom: clamp(48px, 7vh, 88px); }
.sec-head.wide { max-width: none; }
.sec-head h2 { margin: var(--s-4) 0 var(--s-5); font-size: clamp(48px, 5.6vw, 120px); line-height: 0.95; }
.sec-head h2.big { font-size: clamp(72px, 11vw, 280px); font-weight: 800; line-height: 0.86; text-transform: uppercase; max-width: 11em; }

/* the team: a large statement over a ruled list */
.team-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); row-gap: var(--s-6); }
.team-grid .eyebrow { grid-column: 1 / -1; }
.statement { grid-column: 1 / span 11; font-size: clamp(52px, 7vw, 168px); line-height: 0.92; }
.team-body { grid-column: 6 / -1; }
.team-body > p { margin: 0; color: #d5cec2; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.65; max-width: 34em; }

/* the drawings */
.draw-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.draw { margin: 0; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); box-shadow: var(--top-light); }
.draw-svg { display: block; width: -webkit-fill-available; width: -moz-available; width: stretch; height: auto; overflow: visible; }
.draw-svg .cad path { fill: rgba(237, 230, 218, 0.035); fill-rule: evenodd; stroke: var(--cream-2); stroke-opacity: 0.62; stroke-width: 0.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.draw-svg .core { fill: var(--od-soft); stroke: var(--od); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.draw-svg line { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.draw-svg .ref line { stroke-dasharray: 4 4; stroke-opacity: 0.55; }
.draw-svg .ref line.floor { stroke-dasharray: none; stroke: var(--line-2); }
.draw-svg text { fill: var(--muted); font: 600 9px var(--mono); letter-spacing: 0.03em; }
.draw-svg .ref text { fill: var(--faint); }
.draw-svg [data-arm] { transition: transform 0.12s linear; }
.draw figcaption { margin-top: var(--s-4); color: var(--faint); font-size: 13px; line-height: 1.5; }
.arm-ctl { display: flex; align-items: center; gap: var(--s-4); }
.arm-ctl .lab { margin: 0; flex: none; }
.arm-ctl input { flex: 1 1 0; min-width: 0; height: 44px; accent-color: var(--od); cursor: ew-resize; }
.arm-out { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-5); margin-top: var(--s-2); color: var(--muted); font: 400 13px/1.5 var(--font); }
.arm-out > b { font: 700 40px/1 var(--serif); color: var(--text); font-variant-numeric: tabular-nums; min-width: 3.2em; }
.arm-out b[data-o="h"] { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.arm-out [data-o="clear"] { font: 600 11px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--od-2); }

/* the field and its scoring list */
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.field-fig { margin: 0; position: sticky; top: 96px; }
.field-svg { display: block; width: -webkit-fill-available; width: -moz-available; width: stretch; height: auto; max-height: calc(100vh - 160px); margin: 0 auto; }
.field-fig figcaption { margin-top: var(--s-3); color: var(--faint); font-size: 13px; line-height: 1.5; text-align: center; }
.field-svg .fl { fill: var(--ink-3); }
.field-svg .wall { fill: none; stroke: var(--cream-2); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.field-svg .seam { stroke: rgba(237, 230, 218, 0.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.field-svg .sq { --c: var(--red); --soft: rgba(210, 58, 64, 0.17); }
.field-svg .sq.blue { --c: var(--blue); --soft: rgba(61, 100, 216, 0.2); }
.field-svg .zone { fill: var(--soft); }
.field-svg .zone.src { fill: none; stroke: var(--c); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.field-svg .tape line { stroke: var(--c); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.field-svg .ramp { fill: rgba(237, 230, 218, 0.05); stroke: var(--c); stroke-opacity: 0.6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.field-svg .deck { fill: var(--soft); stroke: var(--c); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.field-svg .pivot { stroke: var(--c); stroke-dasharray: 2 2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.field-svg .pole { fill: var(--c); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.field-svg .pole.star { fill: var(--ink); stroke: var(--c); stroke-width: 2.2; }
.field-svg .pole.apex { fill: var(--cream); stroke: var(--c); stroke-width: 1.6; }
.field-svg .vault { fill: var(--gold); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.field-svg .spike { fill: none; stroke: var(--c); stroke-opacity: 0.7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.field-svg .side { font: 700 5px var(--mono); letter-spacing: 0.14em; }
.field-svg .side.red { fill: var(--red); } .field-svg .side.blue { fill: var(--blue); }
.field-svg .sq > * { transition: opacity 0.4s var(--ease-out); }
.field-svg.dim .sq > *:not(.lit) { opacity: 0.16; }
.field-svg .lit { filter: drop-shadow(0 0 2px rgba(237, 230, 218, 0.85)); }

.score-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.score-list li { border-bottom: 1px solid var(--line-2); }
.score-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-4); row-gap: var(--s-1); width: -webkit-fill-available; width: -moz-available; width: stretch; padding: var(--s-4) var(--s-3) var(--s-4) var(--s-4); border: 0; background: transparent; text-align: left; position: relative; transition: background-color 0.35s var(--ease-out); }
.score-list button::before { content: ''; position: absolute; left: 0; top: var(--s-4); bottom: var(--s-4); width: 2px; background: var(--od); transform: scaleY(0); transition: transform 0.4s var(--ease-out); }
.score-list button:hover, .score-list button[aria-pressed="true"] { background: rgba(237, 230, 218, 0.035); }
.score-list button[aria-pressed="true"]::before { transform: none; }
.sl-name { font: 700 clamp(26px, 2.1vw, 36px)/1.05 var(--serif); }
.sl-pts { align-self: center; font: 500 13px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.04em; text-align: right; }
.sl-pts b { font: 700 28px/1 var(--serif); color: var(--text); letter-spacing: 0; }
.sl-note { grid-column: 1 / -1; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 36em; }

.venue { margin: clamp(64px, 10vh, 128px) 0 0; }
.venue img { display: block; width: -webkit-fill-available; width: -moz-available; width: stretch; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.venue figcaption { margin-top: var(--s-3); color: var(--faint); font-size: 13px; line-height: 1.5; }

/* what we built: two feature rows, a pair, then the tools */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); row-gap: var(--s-6); align-items: center; margin-bottom: clamp(96px, 14vh, 176px); }
.feature .shot { grid-column: 1 / span 7; }
.feature .feature-copy { grid-column: 9 / -1; }
.feature.flip .phones { grid-column: 6 / -1; grid-row: 1; }
.feature.flip .feature-copy { grid-column: 1 / span 4; grid-row: 1; }
.shot { margin: 0; }
.shot img { display: block; width: -webkit-fill-available; width: -moz-available; width: stretch; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-2); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8); }
.feature h3, .half h3, .tools-head h3 { font-size: clamp(40px, 3.8vw, 76px); line-height: 0.96; margin-bottom: var(--s-4); }
.feature-copy > p, .half > p:not(.kicker):not(.cap) { margin: 0; color: #d5cec2; line-height: 1.7; max-width: 32em; }
.ticks { list-style: none; margin: var(--s-5) 0 var(--s-6); padding: 0; }
.ticks li { position: relative; padding: var(--s-2) 0 var(--s-2) 26px; border-top: 1px solid var(--line); color: var(--cream-2); font-size: 14.5px; line-height: 1.5; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 12px; height: 1px; background: var(--od-2); }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: clamp(16px, 2.4vw, 40px); }
.phones img { display: block; width: -webkit-fill-available; width: -moz-available; width: stretch; height: auto; border-radius: 26px; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.phones img + img { margin-top: clamp(40px, 8vw, 120px); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: start; margin-bottom: clamp(96px, 14vh, 176px); padding-top: clamp(48px, 6vh, 72px); border-top: 1px solid var(--line); }
.half .shot { margin-bottom: var(--s-6); }
.half:nth-child(2) .shot { max-width: 480px; }

.tools-block { padding-top: clamp(48px, 6vh, 72px); border-top: 1px solid var(--line); }
.tools-head { margin-bottom: var(--s-6); }
.tools-list { list-style: none; margin: 0; padding: 0; }
.tool-tab { display: flex; align-items: baseline; gap: var(--s-4); width: -webkit-fill-available; width: -moz-available; width: stretch; padding: var(--s-4) 0; border: 0; border-top: 1px solid var(--line-2); background: transparent; text-align: left; color: var(--muted); transition: color 0.3s var(--ease); }
.tool-tab:hover, .tool.on .tool-tab { color: var(--text); }
.tool-tab .tn { font: 600 11.5px/1 var(--mono); letter-spacing: 0.1em; color: var(--faint); }
.tool.on .tool-tab .tn { color: var(--od-2); }
.tool-tab .tt { font: 700 clamp(30px, 3vw, 52px)/1 var(--serif); }
.tool-body { display: none; padding-bottom: var(--s-6); }
.tool.on .tool-body { display: block; animation: odFade 0.5s var(--ease-out); }
.tool-body > p { margin: 0 0 var(--s-5); color: #d5cec2; line-height: 1.7; max-width: 36em; }
@media (min-width: 1025px), (min-width: 768px) and (orientation: landscape) {
  .tools-list { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: repeat(4, auto) 1fr; column-gap: clamp(32px, 5vw, 96px); }
  .tool { display: contents; }
  .tool-tab { grid-column: 1; }
  .tools-list .tool:last-child .tool-tab { border-bottom: 1px solid var(--line-2); }
  .tool-body { grid-column: 2; grid-row: 1 / span 5; padding: 0; }
  .tool-body .shot.tall { max-width: 520px; }
}

/* Changemakers: Viora on cream, the one light page */
.viora { background: var(--cream); color: var(--ink); border-top: 0; }
.viora .eyebrow { color: #5f5a52; }
.viora-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); row-gap: var(--s-7); align-items: end; }
.viora-copy { grid-column: 1 / span 7; }
.viora-name { margin: var(--s-4) 0 var(--s-5); font-size: clamp(120px, 19vw, 420px); font-weight: 800; line-height: 0.8; text-transform: uppercase; }
.viora-lede { margin: 0; max-width: 26em; font-size: clamp(20px, 1.7vw, 30px); line-height: 1.4; }
.facts.light div { border-color: rgba(20, 23, 27, 0.2); }
.facts.light dt { color: #5f5a52; }
.facts.light dd { color: var(--ink); }
.b-ink { margin-top: var(--s-6); background: var(--ink); color: var(--cream); }
.b-ink:hover { background: #26282d; }
.viora :focus-visible { outline-color: var(--od-fill); }
.photo-slot { grid-column: 9 / -1; margin: 0; aspect-ratio: 4 / 5; display: grid; place-items: center; border: 1px dashed rgba(20, 23, 27, 0.3); border-radius: var(--r); color: #5f5a52; font: 600 11.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }

/* sponsors and contact */
.support-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); row-gap: var(--s-5); }
.support-grid > * { grid-column: 1 / -1; }
.support h2 { font-size: clamp(56px, 7vw, 160px); line-height: 0.92; max-width: 12em; }
.support .lede { grid-column: 1 / span 7; }
.mail { justify-self: start; margin-top: var(--s-6); font: 700 clamp(40px, 7.4vw, 180px)/1 var(--serif); color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; text-decoration-color: var(--line-2); overflow-wrap: anywhere; transition: text-decoration-color 0.4s var(--ease), color 0.4s var(--ease); }
.mail:hover { color: var(--od-2); text-decoration-color: var(--od-2); }

/* footer */
.site-foot { background: var(--ink); border-top: 1px solid var(--line); padding: var(--s-8) 0 calc(var(--s-7) + var(--safe-b)); color: var(--faint); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s-6) var(--s-8); align-items: start; }
.site-foot .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 28px/1 var(--serif); text-transform: uppercase; }
.site-foot .brand .num { font: 600 11.5px/1 var(--mono); letter-spacing: 0.1em; color: var(--od-2); }
.site-foot nav { display: grid; gap: var(--s-2); }
.site-foot nav a { color: var(--muted); text-decoration: none; transition: color 0.3s var(--ease); min-height: 32px; display: inline-flex; align-items: center; }
.site-foot nav a:hover { color: var(--text); }
.fine { grid-column: 1 / -1; margin: 0; padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: 13px; }

/* ------------------------------------------------------------------ entrances: once, slowly, in reading order */
.reveal, .rise { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in, .rise.in { opacity: 1; transform: none; }
.copy > .reveal:nth-child(2) { transition-delay: 0.08s; } .copy > .reveal:nth-child(3) { transition-delay: 0.22s; } .copy > .reveal:nth-child(4) { transition-delay: 0.32s; }
.reveal.lines { opacity: 1; transform: none; }
.lines .ln { display: block; overflow: hidden; padding: 0 0.12em 0.1em 0; margin-bottom: -0.1em; }
.lines .ln:last-child { margin-bottom: 0; }
.lines .ln > span { display: block; transform: translateY(1.15em); transition: transform 1.05s var(--ease-out); }
.lines.in .ln > span { transform: none; }
.lines.in .ln:nth-child(2) > span { transition-delay: 0.1s; }
/* the stage copy drifts and dims as the camera leaves it (set from the render loop, split layout only) */
@media (min-width: 1025px), (min-width: 768px) and (orientation: landscape) { .stage .copy { will-change: opacity, transform; } }

/* leaving for the simulator or Scout: the page steps aside while the camera moves */
body.leaving main, body.leaving .site-foot, body.leaving .nav { opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
body.leaving .shade { opacity: 0; }
body.leaving .solid { background: transparent; border-color: transparent; }

/* ------------------------------------------------------------------ split layout, small laptops and landscape tablets */
@media (min-width: 768px) and (max-width: 1279px) {
  .shade { background: linear-gradient(90deg, rgba(20, 23, 27, 0.94), rgba(20, 23, 27, 0.84) 44vw, rgba(20, 23, 27, 0.2) 70vw, rgba(20, 23, 27, 0) 84vw); }
  .shade::before { background: linear-gradient(270deg, rgba(20, 23, 27, 0.94), rgba(20, 23, 27, 0.86) 44vw, rgba(20, 23, 27, 0.24) 70vw, rgba(20, 23, 27, 0) 84vw); }
  .stage .copy { flex-basis: min(500px, 56vw); }
}
@media (min-width: 1024px) and (max-width: 1279px) { .feature .feature-copy { grid-column: 8 / -1; } .feature.flip .phones { grid-column: 6 / -1; } .feature.flip .feature-copy { grid-column: 1 / span 5; } }
@media (max-width: 1023px) {
  .team-body { grid-column: 4 / -1; }
  .feature .shot, .feature.flip .phones, .feature .feature-copy, .feature.flip .feature-copy { grid-column: 1 / -1; grid-row: auto; }
  .feature-copy { max-width: 640px; }
  .viora-copy { grid-column: 1 / -1; }
  .photo-slot { grid-column: 1 / span 7; aspect-ratio: 3 / 2; }
  .support .lede { grid-column: 1 / span 10; }
}

/* ------------------------------------------------------------------ stacked: phones and portrait tablets */
@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
  .shade, body.at-right .shade { background: linear-gradient(0deg, rgba(20, 23, 27, 0.96), rgba(20, 23, 27, 0.88) 38vh, rgba(20, 23, 27, 0.06) 66vh); }
  .shade::before { display: none; }
  .still::after { background: linear-gradient(0deg, rgba(20, 23, 27, 0.96), rgba(20, 23, 27, 0.86) 40vh, rgba(20, 23, 27, 0.1) 72vh); }
  .stage, .stage.right { align-items: flex-end; justify-content: flex-start; padding: 50vh var(--gutter) var(--s-8); }
  .stage .copy, .hero .copy { flex-basis: 600px; position: relative; isolation: isolate; }
  .stage .copy::before { content: ''; position: absolute; z-index: -1; top: -56px; bottom: -32px; left: calc(-1 * var(--gutter)); width: 100vw; background: linear-gradient(180deg, rgba(20, 23, 27, 0), rgba(20, 23, 27, 0.92) 72px); pointer-events: none; }
  .hero { padding-top: 40vh; }
  body.landing::before { content: ''; position: fixed; z-index: 40; left: 0; right: 0; top: 0; height: calc(76px + var(--safe-t)); pointer-events: none; background: linear-gradient(180deg, rgba(20, 23, 27, 0.92) 40px, rgba(20, 23, 27, 0)); }
  .draw-grid, .field-grid, .pair { grid-template-columns: minmax(0, 1fr); }
  .draw.top { max-width: 420px; }
  .field-fig { position: static; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 767px) {
  /* twelve columns of gaps are wider than a small phone: one column */
  .team-grid, .feature, .viora-grid, .support-grid { grid-template-columns: minmax(0, 1fr); }
  .team-grid > *, .feature > *, .viora-grid > *, .support-grid > * { grid-column: 1 / -1 !important; }
  .specs div, .facts div { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures div:nth-child(n+3) { margin-top: var(--s-3); border-top: 1px solid var(--line); }
  .draw { padding: var(--s-4) var(--s-3); }
  .draw-svg text { font-size: 15px; }
  .photo-slot { grid-column: 1 / -1; }
  .support .lede { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-foot .brand { grid-column: 1 / -1; }
  .phones img { border-radius: 18px; }
}
@media (max-width: 479px) { .ctas .b.lg { flex: 1 1 100vw; } .hero h1 { font-size: clamp(64px, 21.5vw, 104px); } }

/* phones held sideways: the copy is taller than the screen, so the nav scrolls away and the type tightens */
@media (min-width: 768px) and (max-height: 500px) and (orientation: landscape) {
  body.landing .nav { position: absolute; }
  .stage { padding-top: calc(var(--s-8) + 28px + var(--safe-t)); padding-bottom: var(--s-7); }
  .hero h1 { margin: var(--s-3) 0; font-size: clamp(64px, 12vw, 110px); }
  .stage h2 { margin: var(--s-3) 0 var(--s-4); font-size: clamp(40px, 5.4vw, 52px); }
  .lede { font-size: 15px; line-height: 1.6; }
  .ctas { margin-top: var(--s-5); }
  .specs { margin-top: var(--s-4); }
  .specs div { padding: var(--s-2) 0; }
  .stage .copy { opacity: 1 !important; transform: none !important; }
  .field-fig { position: static; }
}

/* large and ultrawide screens: the reading sizes grow with the measure */
@media (min-width: 1800px) {
  .eyebrow, .kicker { font-size: 12.5px; }
  .specs dd, .facts dd, .ticks li, .sl-note { font-size: 17px; }
  .feature-copy > p, .half > p:not(.kicker):not(.cap), .tool-body > p, .team-body > p { font-size: 19px; }
  .cap, .draw figcaption, .field-fig figcaption, .venue figcaption { font-size: 14px; }
  .specs div, .facts div { grid-template-columns: 140px minmax(0, 1fr); }
}
@media (min-width: 2400px) {
  .specs dd, .facts dd, .ticks li, .sl-note { font-size: 19px; }
  .feature-copy > p, .half > p:not(.kicker):not(.cap), .tool-body > p, .team-body > p { font-size: 21px; }
  .lede { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .rise, .lines .ln > span { opacity: 1; transform: none; }
}
