/* Chery Palestine demo. One system: 4/8 spacing scale, one accent pair with a meaning (teal = electric, amber = petrol),
   warm white ink on a dusk ground. Logical properties throughout, so Arabic (RTL) and English share every rule. */
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo-wdth.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-024F, U+2000-22FF; }
@font-face { font-family: "Noto Kufi Arabic"; src: url("../assets/fonts/NotoKufiArabic-VF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #06090d; --bg-2: #0a1016; --ink: #f3f1ea; --muted: #a3acb5; --line: rgba(243, 241, 234, .16);
  --ev: #3fe6c8; --eng: #ff9d42;
  --gut: clamp(20px, 5.5vw, 88px); --nav: 72px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --h1: clamp(32px, 3.9vw, 58px); --h2: clamp(28px, 3.5vw, 52px); --lead: clamp(16px, 1.25vw, 19px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.75 "Archivo", "Noto Kufi Arabic", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="en"] body { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.32; text-wrap: balance; }
html[lang="en"] :is(h1, h2, h3) { line-height: 1.08; letter-spacing: -.02em; font-stretch: 112%; }
h1 { font-size: var(--h1); } h2 { font-size: var(--h2); }
.lead { font-size: var(--lead); color: #dcdfe2; max-width: 34em; text-wrap: pretty; }
.wrap { margin-inline: auto; padding-inline: var(--gut); max-width: 1920px; }   /* up to a 1920 screen the sections share the nav's and the drive's edges */
bdi { font-variant-numeric: tabular-nums; }
::selection { background: var(--ev); color: #04110e; }
html { scrollbar-color: #2b3540 var(--bg); scrollbar-width: thin; }
/* loading intro: the logo, and the road's profile drawn as one line */
.intro { display: none; position: fixed; inset: 0; z-index: 80; pointer-events: none; place-content: center; justify-items: center; gap: 28px; background: var(--bg); transition: opacity .7s ease, visibility 0s .7s; }
.js .intro { display: grid; }
.intro img { width: min(240px, 56vw); }
.intro svg { width: min(300px, 70vw); overflow: visible; }
.intro path { fill: none; stroke: var(--ev); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.3s var(--ease) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.is-ready .intro { opacity: 0; visibility: hidden; }
:focus-visible { outline: 2px solid var(--ev); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 60; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* buttons: one filled action, one outlined; they step on hover and press on click */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, color .18s; }
.btn--primary { background: var(--ink); color: #0a0f14; }
.btn--ghost { border-color: rgba(243, 241, 234, .42); color: var(--ink); background: rgba(6, 9, 13, .28); }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn--primary:hover { background: #fff; transform: translateY(-2px); } .btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }

/* nav: one look at every depth */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav); background: linear-gradient(rgba(5, 8, 12, .86), rgba(5, 8, 12, 0)); }
/* over the drive the bar is only a shade; once the page's own sections scroll under it, it turns solid so nothing reads through */
.nav { transition: background-color .3s ease; }
.is-past .nav, .is-still .nav { background: rgba(6, 9, 13, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-block-end: 1px solid var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 32px; max-width: none; }   /* edge to edge like the drive's words and gauge: on a wide screen the logo and the headline share one edge */
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand img { width: 168px; }
.brand__ps { padding-inline-start: 12px; border-inline-start: 1px solid var(--line); font-size: 15px; font-weight: 500; color: #dcdfe2; }
.nav__links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav__links a { position: relative; padding: 12px 0; font-size: 15px; font-weight: 500; }
.nav__links a::after { content: ""; position: absolute; inset: auto 0 6px 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: inline-start; transition: transform .3s var(--ease); }
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); } }
.nav__end { display: flex; align-items: center; gap: 12px; }
.lang { min-width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink); font: 600 14px "Archivo", "Noto Kufi Arabic", sans-serif; cursor: pointer; transition: border-color .18s; }
@media (hover: hover) { .lang:hover { border-color: var(--ink); } }
.nav__cta { min-height: 44px; padding-inline: 22px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; inset-inline: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); } .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--nav) var(--gut) 32px; background: #05080c; }
.sheet[hidden] { display: none; }
.sheet a:not(.btn) { padding: 14px 0; font-size: 30px; font-weight: 700; border-block-end: 1px solid var(--line); }
.sheet .btn { margin-block-start: 24px; }

/* the drive */
.drive { position: relative; height: 780vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0a1528; }
#road { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.1s ease; }
.is-live #road { opacity: 1; }
.stage__still { display: none; }
.scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(4, 7, 12, .34), rgba(4, 7, 12, 0) 40%), linear-gradient(0deg, rgba(4, 7, 12, .55), rgba(4, 7, 12, 0) 22%); }

.ch { isolation: isolate; position: absolute; inset-block-start: calc(var(--nav) + 7vh); inset-inline-start: var(--gut); width: min(36rem, 100% - 2 * var(--gut)); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s ease, transform .6s var(--ease), visibility 0s .45s; text-shadow: 0 1px 24px rgba(4, 7, 12, .55); }
.ch::before { content: ""; position: absolute; inset: -72px -96px; z-index: -1; background: radial-gradient(closest-side, rgba(4, 7, 12, .62), rgba(4, 7, 12, 0)); pointer-events: none; }
.ch.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
.drive.is-leaving .ch.is-on, .drive.is-leaving .hud.is-on { opacity: 0; transition-delay: 0s; }   /* the stage is scrolling away: nothing of it rides up beside the nav */
.ch--hero { width: min(58rem, 100% - 2 * var(--gut)); }
.ch h1, .ch h2 { margin-block-end: 18px; }
.hint { margin-block-start: 16px; font-size: 15px; color: var(--muted); }
/* headings rise word by word; Arabic words stay whole */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em; margin-block: -.14em; }
.w > span { display: inline-block; transform: translateY(115%); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 42ms + 80ms); }
.is-on .w > span, .is-in .w > span { transform: none; }

.callouts { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.callouts.is-on { opacity: 1; }
.co { position: absolute; inset: 0 auto auto 0; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(63, 230, 200, .5); background: rgba(5, 9, 12, .72); color: var(--ev); font-size: 13px; font-weight: 600; white-space: nowrap; will-change: transform; }
.co::after { content: ""; position: absolute; inset: 100% auto auto 50%; width: 1px; height: var(--stem, 34px); background: linear-gradient(currentColor, transparent); }
.co--eng { color: var(--eng); border-color: rgba(255, 157, 66, .5); }
/* from far off, a ring says where the car is */
.mark { position: absolute; inset: 0 auto auto 0; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 1px solid var(--ev); opacity: 0; transition: opacity .5s; pointer-events: none; will-change: transform; }
.mark::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--ev); animation: ring 2s var(--ease) infinite; }
.mark.is-on { opacity: 1; }
.mark b { position: absolute; inset: auto auto 100% 50%; transform: translate(-50%, -10px); font-size: 12px; font-weight: 600; color: var(--ev); white-space: nowrap; font-stretch: 118%; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }

.hud { position: absolute; inset: auto var(--gut) 28px var(--gut); display: flex; align-items: center; gap: 28px; padding: 12px 24px; border-radius: 20px; border: 1px solid var(--line); background: rgba(6, 10, 14, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease); }
.hud.is-on { opacity: 1; transform: none; }
.hud__mode { display: flex; align-items: center; gap: 10px; min-width: 9.5em; font-size: 15px; }
.hud__mode i { width: 10px; height: 10px; border-radius: 50%; background: var(--ev); transition: background-color .4s; }
.hud[data-mode="hev"] .hud__mode i { background: var(--eng); }
.hud[data-mode="regen"] .hud__mode i { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .6; } }
.hud__batt { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.hud__batt bdi { color: var(--ink); font-weight: 600; min-width: 3.2em; }
/* nine cells, like the pack in the cutaway */
.bar { display: flex; gap: 3px; direction: ltr; }
.bar i { width: 11px; height: 12px; border-radius: 2px; background: var(--ev); opacity: .16; transition: opacity .3s; }
.hud__map { position: relative; flex: 1; height: 44px; min-width: 160px; direction: ltr; }
.hud__map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hud__map path { fill: none; stroke: rgba(243, 241, 234, .5); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hud__map > i { position: absolute; inset: 0 auto auto 0; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(243, 241, 234, .18); will-change: transform; }
.pin { position: absolute; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pin b { font-weight: 500; color: #dcdfe2; }
.pin--a { inset: -2px 6% auto auto; } .pin--b { inset: auto auto 26% 0; }
.cue { position: absolute; inset: auto 0 34px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: #dcdfe2; transition: opacity .4s; }
.cue i { width: 1px; height: 34px; background: linear-gradient(var(--ink), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.cue.is-off { opacity: 0; }

/* the lower sections sit on one live field of contour lines */
.after { position: relative; background: var(--bg); }
.topo { position: sticky; top: 0; z-index: 0; display: block; width: 100%; height: 100vh; height: 100lvh; margin-block-end: -100vh; margin-block-end: -100lvh; }
.after > section { position: relative; z-index: 1; }
/* line-up */
.models { padding-block: clamp(88px, 12vh, 136px) clamp(72px, 9vh, 112px); overflow-x: clip; }   /* the car pictures slide in from 16% to the side: without the clip a phone page could be pushed sideways */
.models__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-block-end: 40px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); padding-block: 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: none; color: #dcdfe2; font: 600 15px "Archivo", "Noto Kufi Arabic", sans-serif; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .18s var(--ease); }
.tab[aria-selected="true"] { background: var(--ink); color: #0a0f14; border-color: var(--ink); }
.tab:active { transform: scale(.97); }
@media (hover: hover) { .tab:not([aria-selected="true"]):hover { border-color: var(--ink); color: var(--ink); } }
.car { margin-block-start: 8px; }
.car__stage { position: relative; aspect-ratio: 2.3 / 1; max-width: 1180px; margin-inline: auto; touch-action: pan-y; }
.car__floor { position: absolute; inset: auto 4% -3% 4%; height: 22%; background: radial-gradient(50% 50% at 50% 50%, rgba(63, 230, 200, .16), rgba(63, 230, 200, 0)); filter: blur(6px); }
.car__ghost { position: absolute; inset: 2% 0 auto 0; margin: 0; text-align: center; white-space: nowrap; font-weight: 800; font-stretch: 125%; font-size: clamp(44px, calc(112vw / var(--n, 7)), 250px); line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 241, 234, .13); transition: opacity .45s ease; user-select: none; }
.car__stage.is-swap .car__ghost { opacity: 0; }
.car__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease), opacity .45s ease, filter .45s ease; }
.car__img--next { opacity: 0; transform: translateX(16%); filter: blur(5px); }
.car__stage.is-swap .car__img:not(.car__img--next) { opacity: 0; transform: translateX(-16%); filter: blur(5px); }
.car__stage.is-swap .car__img--next { opacity: 1; transform: none; filter: none; }
.car__stage.is-reset .car__img { transition: none; }
/* the 3D car lies over its picture and takes its place once it is loaded; drag turns it */
.car__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; touch-action: pan-y; cursor: grab; }
.car__gl.is-grabbed { cursor: grabbing; }
/* the mirrored floor runs off the bottom of the canvas: it fades out there, so the frame's edge never cuts it */
.car__gl.has-floor { -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%); }
.car__stage.is-3d .car__gl { opacity: 1; visibility: visible; transition-delay: 0s; }
.car__stage.is-3d .car__img { opacity: 0; }
.car__hint { position: absolute; inset: auto 0 0 0; margin: 0; text-align: center; font-size: 14px; color: var(--muted); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.car__stage.is-3d:not(.is-turned) .car__hint { opacity: 1; transition-delay: 1.4s; }
.car__wait { position: absolute; inset: auto 0 0 0; margin: 0; text-align: center; font-size: 14px; color: var(--muted); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.car__stage.is-loading .car__wait { opacity: 1; transition-delay: .5s; }   /* only if the model takes more than half a second */
.views { display: flex; justify-content: center; gap: 8px; margin-block-start: 14px; visibility: hidden; opacity: 0; transition: opacity .4s ease, visibility 0s .4s; }
.car__stage.is-3d + .views { visibility: visible; opacity: 1; transition-delay: 0s; }
.view { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: none; color: #dcdfe2; font: 500 14px "Archivo", "Noto Kufi Arabic", sans-serif; cursor: pointer; transition: color .2s, border-color .2s, transform .18s var(--ease); }
.view:hover { color: var(--ink); border-color: rgba(243, 241, 234, .5); }
.view:active { transform: scale(.97); }
.is-still .views, .is-still .hint { display: none; }   /* nothing to turn or to scroll faster in the still version */
.car__info { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; align-items: center; gap: 24px 48px; margin-block-start: 28px; padding-block-start: 28px; border-block-start: 1px solid var(--line); }
.car__name { font-size: clamp(28px, 3vw, 44px); font-stretch: 118%; letter-spacing: -.01em; line-height: 1.1; }
.car__name bdi { font-variant-numeric: normal; }
.car__line { margin-block-start: 8px; color: #dcdfe2; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.3; }
.facts dd small { font-size: 15px; font-weight: 500; color: #dcdfe2; margin-inline-start: 4px; }
.models__also { margin-block-start: 40px; color: var(--muted); font-size: 16px; }

/* visit */
.visit { padding-block: clamp(88px, 13vh, 144px); border-block-start: 1px solid var(--line); background: linear-gradient(rgba(6, 9, 13, 0), rgba(6, 9, 13, .7)); }
.visit__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px 72px; align-items: end; }
.visit h2 { font-size: var(--lead); font-weight: 500; color: var(--muted); margin-block-end: 20px; }
.visit__addr { font-size: clamp(30px, 4.4vw, 68px); font-weight: 700; line-height: 1.3; text-wrap: balance; }
html[lang="en"] .visit__addr { line-height: 1.1; letter-spacing: -.02em; font-stretch: 112%; }
.visit__tel { margin-block-start: 24px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; color: var(--muted); }
.visit__tel a { font-size: 26px; font-weight: 700; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }

/* above the contour canvas: that one is sticky with a negative margin, which lets it ride 100vh past its section and it sat on top of the footer */
.foot { position: relative; z-index: 2; padding-block: 44px; background: var(--bg-2); border-block-start: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot__in { display: grid; gap: 14px; }
.foot__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; color: #dcdfe2; }
.foot__brand img { width: 150px; }
.foot p { max-width: 62em; }

.dock { display: none; }

/* still mode: no WebGL or reduced motion. The same story, stacked, with the car as a picture. */
.is-still .drive { height: auto; }
.is-still .stage { position: static; height: auto; overflow: visible; padding: calc(var(--nav) + 40px) var(--gut) 64px; background: linear-gradient(#12233d, #2a2a3a 34%, #06090d 62%); display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }   /* one column of the screen's own width: left to itself the column grew to the headline's 58rem and a phone scrolled sideways */
.is-still #road, .is-still .hud, .is-still .cue, .is-still .callouts, .is-still .scrim, .is-still .mark { display: none; }
.is-still .stage__still { display: block; order: 1; width: 100%; max-width: 1100px; height: auto; margin-inline: auto; }
.is-still .ch { position: static; opacity: 1; visibility: visible; transform: none; order: 2; width: auto; max-width: 36rem; }
.is-still .ch--hero { order: 0; max-width: 58rem; }
.is-still .w > span { transform: none; }
.is-still .car__img, .is-still .btn { transition: none; }
.is-still .intro, .is-still .ch::before { display: none; }
/* the hero waits behind the intro, then enters once */
.js:not(.is-ready):not(.is-still) .ch--hero { opacity: 0; transform: translateY(14px); }
.js:not(.is-ready):not(.is-still) .ch--hero .w > span { transform: translateY(115%); }

@media (max-width: 1100px) { .car__info { grid-template-columns: 1fr 1fr; } .car__info .btn { justify-self: start; } }
@media (max-width: 860px) {
  :root { --nav: 60px; }
  .nav__links, .nav__cta { display: none; } .menu-btn { display: block; } .nav__end { margin-inline-start: auto; }
  .brand img { width: 132px; } .nav__in { gap: 12px; }
  .nav { background: linear-gradient(rgba(5, 8, 12, .95) 55%, rgba(5, 8, 12, 0)); }   /* on a phone, text scrolls right under the bar */
  .drive { height: 640vh; }
  .ch { inset-block-start: calc(var(--nav) + 3vh); }
  .ch h1, .ch h2 { margin-block-end: 12px; } .btn-row { margin-block-start: 20px; }
  .ch .btn { flex: 1 1 0; padding-inline: 12px; }
  .hud { inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; border-radius: 18px; }
  .hud__mode { min-width: 0; flex: 1; } .hud__batt span { display: none; } .bar i { width: 8px; }
  .hud__map { flex: 1 0 100%; height: 34px; margin-block: 10px 6px; }
  .cue { inset-block-end: calc(26px + env(safe-area-inset-bottom)); }
  .co { font-size: 12px; padding: 3px 10px; }
  .visit__in { grid-template-columns: 1fr; align-items: start; }
  .car__info { grid-template-columns: 1fr; gap: 20px; } .car__info .btn { justify-self: stretch; }
  .car__stage { margin-inline: calc(-1 * var(--gut) + 6px); aspect-ratio: 1.4 / 1; }
  .models__head { margin-block-end: 28px; } .btn-row .btn { flex: 1 1 auto; }
  /* the phone's own move: once the drive is over, the main action rides at the thumb */
  .dock { display: flex; position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; z-index: 30; min-height: 52px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transform: translateY(140%); transition: transform .5s var(--ease); }
  .dock.is-on { transform: none; }
  .foot { padding-block-end: 104px; }
}
/* a phone browser with its bars showing leaves about 650 px: the words tighten so they clear the scene */
@media (max-width: 860px) and (max-height: 720px) {
  .ch { inset-block-start: calc(var(--nav) + 1vh); }
  .ch h1 { font-size: 28px; } .ch h2 { font-size: 25px; }
  .ch .lead { font-size: 15px; line-height: 1.6; }
  .ch h1, .ch h2 { margin-block-end: 8px; } .btn-row { margin-block-start: 14px; } .ch .btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
