/* The home page (src/site/routes.ts homeBody; script: home.js). Always dark,
   whatever the system's scheme: it is a window onto space. A full-screen loop
   filmed in the game in 4K behind the heading, then the 4K showcase (what a
   free sign-in unlocks), the voyage, the trailer, the text and a last call to
   play. Footage and stills: public/assets/home/. */

.cine {
  --paper: #05040d; --card: rgba(255, 255, 255, 0.045); --ink: #fff4ec; --muted: #c4aea2; --line: rgba(255, 236, 222, 0.13);
  --accent: #ff8a4c; --accent-2: #ffbe7a; --hot: #ff5f2e; --teal: #4fe3d3;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  background: var(--paper); color: var(--ink);
}
.cine ::selection { background: rgba(255, 138, 76, 0.35); }

/* Header: over the hero, then dark glass once it scrolls away (home.js). */
.cine .site-top { position: fixed; inset: 0 0 auto 0; z-index: 20; max-width: none; padding: 14px clamp(16px, 4vw, 44px); transition: background 0.35s, box-shadow 0.35s, padding 0.35s; }
.cine .site-top.scrolled { background: rgba(5, 4, 13, 0.72); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); padding-top: 10px; padding-bottom: 10px; }
.cine .brand { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.cine .top-play { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background 0.2s, border-color 0.2s; }
.cine .top-play:hover { background: var(--accent); border-color: var(--accent); color: #1a0a08; }

main.home { max-width: none; padding: 0; }
.home .wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.home .wrap.narrow { width: min(820px, 100% - 40px); }
.home h2, .home h3 { color: #fff; }
.home .eyebrow { margin: 0; font: 700 0.76rem/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); }

/* Buttons: the orange pill plays; the glass one signs in for 4K. */
.home .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.cine .play { margin: 0; padding: 14px 28px; background: linear-gradient(135deg, var(--accent-2), var(--accent) 45%, var(--hot)); color: #1a0a08; font-weight: 800; box-shadow: 0 10px 34px -8px rgba(255, 95, 46, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.cine .play:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(255, 95, 46, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.cta-4k { display: inline-flex; align-items: center; gap: 10px; padding: 9px 22px 9px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.24); color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.cta-4k:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(79, 227, 211, 0.7); transform: translateY(-2px); }
.cta-4k small { font-size: 0.78rem; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; }
.chip-4k { display: inline-grid; place-items: center; min-width: 44px; height: 32px; padding: 0 9px; border-radius: 999px; font: 800 0.86rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; color: #05040d; background: linear-gradient(110deg, #4fe3d3 0%, #b6fff4 25%, #4fe3d3 50%, #ffbe7a 75%, #4fe3d3 100%) 0 0 / 300% 100%; animation: sheen 5s linear infinite; }
@keyframes sheen { to { background-position: -300% 0; } }

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: max(100vh, 620px); min-height: max(100svh, 620px); padding: 110px clamp(20px, 6vw, 88px) clamp(96px, 14vh, 140px); }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #05040d url(/assets/home/hero-earth.webp) 50% 50% / cover no-repeat; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; animation: hero-in 2.6s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
/* Shade: the heading's side and the foot dark enough to read over clouds. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 4, 13, 0.88) 0%, rgba(5, 4, 13, 0.6) 34%, rgba(5, 4, 13, 0.08) 66%, rgba(5, 4, 13, 0) 100%),
    linear-gradient(0deg, #05040d 0%, rgba(5, 4, 13, 0.55) 18%, rgba(5, 4, 13, 0) 42%),
    linear-gradient(180deg, rgba(5, 4, 13, 0.55) 0%, rgba(5, 4, 13, 0) 20%); }
/* Film grain, barely there. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.hero-copy { max-width: 660px; }
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.25s; }
.hero-copy > :nth-child(2) { animation-delay: 0.4s; }
.hero-copy > :nth-child(3) { animation-delay: 0.6s; }
.hero-copy > :nth-child(4) { animation-delay: 0.75s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px; border-radius: 999px; background: rgba(5, 4, 13, 0.45); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #ffe3d2; letter-spacing: 0.12em; }
.hero h1 { margin: 26px 0 0; font-weight: 800; }
.hero .word { display: block; width: clamp(200px, 26vw, 330px); height: auto; margin: 0; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.5)); }
.hero .space { display: block; margin-top: 10px; padding-left: 0.2em; font: 700 clamp(0.8rem, 1.1vw, 0.95rem)/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.62em; color: var(--teal); }
.hero .tagline { display: block; margin-top: 20px; font-size: clamp(2.5rem, 6.4vw, 5.2rem); line-height: 1; letter-spacing: -0.03em; background: linear-gradient(180deg, #ffffff 30%, #ffd2b4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.hero .lead { margin: 22px 0 0; max-width: 50ch; font-size: clamp(1.02rem, 1.35vw, 1.18rem); line-height: 1.6; color: rgba(255, 244, 236, 0.86); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
.hero-chip { position: absolute; right: clamp(20px, 4vw, 44px); bottom: clamp(26px, 5vh, 40px); margin: 0; display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; background: rgba(5, 4, 13, 0.5); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 0.8rem; color: #ffe3d2; animation: rise 1s 1.1s var(--ease) both; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 138, 76, 0.7); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 138, 76, 0.7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 138, 76, 0); } }
.scroll-cue { position: absolute; left: 50%; bottom: clamp(18px, 4vh, 32px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; color: rgba(255, 244, 236, 0.75); font-size: 0.78rem; letter-spacing: 0.08em; text-decoration: none; animation: rise 1s 1.3s var(--ease) both; }
.scroll-cue svg { animation: nudge 2.2s ease-in-out 2.4s infinite; }
.scroll-cue:hover { color: #fff; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(6px); } }

/* ---- 4K showcase ---- */
.fourk { position: relative; isolation: isolate; padding: clamp(84px, 11vw, 140px) 0 clamp(70px, 9vw, 110px); scroll-margin-top: 40px;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 120, 60, 0.13), transparent 70%), radial-gradient(ellipse 60% 50% at 85% 60%, rgba(79, 227, 211, 0.06), transparent 70%), var(--paper); }
/* A faint field of stars, drifting: layers tiled at unrelated sizes, so no grid shows. */
.fourk::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6;
  background-image:
    radial-gradient(1px 1px at 17% 23%, rgba(255, 255, 255, 0.75) 50%, transparent 51%), radial-gradient(1px 1px at 71% 64%, rgba(255, 236, 222, 0.55) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 42% 81%, rgba(255, 255, 255, 0.6) 50%, transparent 51%), radial-gradient(1px 1px at 88% 12%, rgba(200, 228, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 9% 58%, rgba(255, 255, 255, 0.45) 50%, transparent 51%), radial-gradient(1.6px 1.6px at 63% 37%, rgba(255, 220, 196, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 9%, rgba(255, 255, 255, 0.5) 50%, transparent 51%), radial-gradient(1px 1px at 79% 91%, rgba(220, 236, 255, 0.5) 50%, transparent 51%);
  background-size: 211px 197px, 211px 197px, 307px 331px, 307px 331px, 449px 419px, 449px 419px, 613px 587px, 613px 587px;
  animation: drift 200s linear infinite; }
@keyframes drift { to { background-position: -211px 197px, -211px 197px, -307px 331px, -307px 331px, -449px 419px, -449px 419px, -613px 587px, -613px 587px; } }
.sec-head { max-width: 780px; margin: 0 auto; text-align: center; }
.sec-head h2 { margin: 16px 0 0; font-size: clamp(2.1rem, 5.2vw, 3.8rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
.sec-head h2 em { font-style: normal; background: linear-gradient(100deg, var(--accent-2), var(--hot) 35%, var(--accent-2) 70%, var(--hot)) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 8s linear infinite; }
.sec-lead { margin: 18px auto 0; max-width: 62ch; font-size: 1.08rem; color: var(--muted); }

.stats { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.stats li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 26px 24px 24px; background: linear-gradient(180deg, #0d0a18, #08060f); }
.stat-n { font-weight: 800; font-size: clamp(2.1rem, 3.6vw, 2.9rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 20%, #ffc7a3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-u { font-weight: 700; color: var(--accent); }
.stat-l { flex-basis: 100%; margin-top: 6px; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.feature { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, opacity 0.9s var(--ease), translate 0.9s var(--ease); }
.feature:hover { transform: translateY(-5px); border-color: rgba(255, 138, 76, 0.55); box-shadow: 0 24px 60px -24px rgba(255, 95, 46, 0.5); }
.feature-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #05040d; }
.home video.loop { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature:hover video.loop { transform: scale(1.045); }
.only-4k { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font: 700 0.7rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.1em; text-transform: uppercase; color: #05040d; background: var(--teal); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.feature-text { padding: 20px 22px 24px; }
.feature h3 { margin: 0; font-size: 1.28rem; line-height: 1.25; }
.feature p { margin: 8px 0 0; font-size: 0.97rem; line-height: 1.55; color: var(--muted); }

/* 2K | 4K: the 2K render clipped to the left of the divider (--pos, home.js). */
.compare { margin-top: 72px; display: grid; grid-template-columns: minmax(250px, 0.8fr) 2fr; grid-template-areas: "text stage" "tabs stage"; gap: 22px 44px; align-items: center; }
.compare-text { grid-area: text; align-self: end; }
.compare h3 { margin: 12px 0 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: -0.02em; }
.compare-text p { margin: 12px 0 0; color: var(--muted); }
.compare-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.compare-tabs { grid-area: tabs; align-self: start; display: flex; flex-wrap: wrap; gap: 8px; }
.compare-tabs label { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.compare-tabs label:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
#compare-earth:checked ~ .compare-tabs label[for="compare-earth"], #compare-moon:checked ~ .compare-tabs label[for="compare-moon"], #compare-sky:checked ~ .compare-tabs label[for="compare-sky"], #compare-eagle:checked ~ .compare-tabs label[for="compare-eagle"] { background: #fff; border-color: #fff; color: #05040d; }
#compare-earth:focus-visible ~ .compare-tabs label[for="compare-earth"], #compare-moon:focus-visible ~ .compare-tabs label[for="compare-moon"], #compare-sky:focus-visible ~ .compare-tabs label[for="compare-sky"], #compare-eagle:focus-visible ~ .compare-tabs label[for="compare-eagle"] { outline: 2px solid var(--teal); outline-offset: 2px; }
.compare-stage { grid-area: stage; display: none; position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #05040d; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); --pos: 50%; }
#compare-earth:checked ~ .stage-earth, #compare-moon:checked ~ .stage-moon, #compare-sky:checked ~ .stage-sky, #compare-eagle:checked ~ .stage-eagle { display: block; }
.compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.c-2k { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.c-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 14px rgba(0, 0, 0, 0.6); pointer-events: none; }
.c-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid #fff; background: rgba(5, 4, 13, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") 50% 50% / 24px no-repeat; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.compare-stage:has(.compare-range:focus-visible) .c-handle::after { outline: 3px solid var(--teal); outline-offset: 3px; }
.c-tag { position: absolute; top: 14px; padding: 4px 11px; border-radius: 999px; font: 800 0.8rem/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; pointer-events: none; }
.c-tag-2k { left: 14px; background: rgba(5, 4, 13, 0.7); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.c-tag-4k { right: 14px; background: var(--teal); color: #05040d; }
/* The input is the whole picture, invisible: drag anywhere, or arrow keys. */
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none; touch-action: pan-y; }
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 2px; height: 100vh; }
.compare-range::-moz-range-thumb { width: 2px; height: 100%; border: 0; }

.fourk-cta { margin-top: 56px; text-align: center; }
.fourk-cta .cta-4k { font-size: 1.1rem; padding: 11px 26px 11px 11px; }
.compare-note { margin: 14px auto 0; max-width: 60ch; font-size: 0.9rem; color: var(--muted); }

/* ---- The recon drone ----
   The launch as a wide feed, then a row of other runs. Each clip is the
   drone's picture only; its camera frame (corners, REC, the camera's name)
   is drawn here, in the page's language. */
.drone { position: relative; isolation: isolate; padding: clamp(80px, 10vw, 130px) 0 clamp(50px, 7vw, 80px);
  background: radial-gradient(ellipse 60% 40% at 50% 8%, rgba(79, 227, 211, 0.09), transparent 70%), var(--paper); }
.drone .eyebrow { color: var(--teal); }
.feeds { margin-top: 52px; }
.feed-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.feed { --hud: rgba(184, 255, 244, 0.75); position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #05040d; border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.4s, opacity 0.9s var(--ease), translate 0.9s var(--ease); }
.feed-main { aspect-ratio: 16 / 9; border-radius: 26px; box-shadow: 0 30px 90px -30px rgba(79, 227, 211, 0.28); }
.feed:hover { transform: translateY(-4px); border-color: rgba(79, 227, 211, 0.5); }
.feed-main:hover { transform: none; }
.feed:hover video.loop { transform: scale(1.04); }
.feed-main:hover video.loop { transform: none; }
/* The camera's frame: four corners and its name, over a faint scan vignette. */
.feed-hud { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(0, 18, 14, 0.5) 100%); }
.feed-hud i { position: absolute; width: clamp(16px, 2.4vw, 30px); height: clamp(16px, 2.4vw, 30px); border: 2px solid var(--hud); }
.feed-hud i:nth-child(1) { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.feed-hud i:nth-child(2) { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.feed-hud i:nth-child(3) { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.feed-hud i:nth-child(4) { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.feed-main .feed-hud i:nth-child(1), .feed-main .feed-hud i:nth-child(2) { top: 20px; }
.feed-main .feed-hud i:nth-child(1), .feed-main .feed-hud i:nth-child(3) { left: 20px; }
.feed-main .feed-hud i:nth-child(2), .feed-main .feed-hud i:nth-child(4) { right: 20px; }
.feed-main .feed-hud i:nth-child(3), .feed-main .feed-hud i:nth-child(4) { bottom: 20px; }
.feed-cam { position: absolute; top: 22px; left: 26px; display: flex; align-items: center; gap: 10px; font: 600 0.7rem/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; color: var(--hud); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85); }
.feed-main .feed-cam { top: 32px; left: 36px; font-size: 0.8rem; }
.feed-rec { display: inline-flex; align-items: center; gap: 6px; color: #ff6b5a; }
.feed-rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: feed-blink 1s steps(1) infinite; }
@keyframes feed-blink { 50% { opacity: 0; } }
/* The small feeds keep just REC: the camera's name would crowd them. */
.feed:not(.feed-main) .feed-cam { font-size: 0; gap: 0; }
.feed:not(.feed-main) .feed-rec { font-size: 0.7rem; }
.feed figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 22px 18px; background: linear-gradient(0deg, rgba(5, 4, 13, 0.92), rgba(5, 4, 13, 0)); }
.feed-main figcaption { padding: 80px 36px 30px; }
.feed-site { display: block; font-weight: 800; font-size: 1.2rem; color: #fff; }
.feed-main .feed-site { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.01em; }
.feed-phase { display: block; margin-top: 3px; font: 600 0.74rem/1.45 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: #ffd38a; }
.drone-cta { margin-top: 40px; text-align: center; }

/* ---- The voyage ---- */
.voyage { padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 90px); background: linear-gradient(180deg, var(--paper), #0d0814 45%, var(--paper)); }
.stops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.stop { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #05040d; border: 1px solid var(--line); transition: transform 0.4s var(--ease), opacity 0.9s var(--ease), translate 0.9s var(--ease); }
.stop:hover { transform: translateY(-4px); }
.stop:hover video.loop { transform: scale(1.05); }
.stop figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; background: linear-gradient(0deg, rgba(5, 4, 13, 0.92), rgba(5, 4, 13, 0)); }
.stop-name { display: block; font-weight: 800; font-size: 1.2rem; color: #fff; }
.stop-where { display: block; margin-top: 2px; font-size: 0.86rem; line-height: 1.4; color: var(--muted); }
.voyage-note { margin: 18px 0 0; text-align: center; font-size: 0.86rem; color: var(--muted); }

/* ---- Trailer and text ---- */
.watch { padding: 30px 0 30px; text-align: center; }
.watch h2 { margin: 0 0 22px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.02em; }
.cine .trailer { margin: 0; border-radius: 24px; border-color: var(--line); box-shadow: 0 30px 90px -30px rgba(255, 95, 46, 0.35); }
.cine .trailer-caption { margin-top: 12px; }
.cine .trailer-caption a { color: var(--muted); }
.home .prose { padding: 40px 0 30px; }
.home .prose h2 { margin: 56px 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.015em; }
.home .prose h3 { margin: 26px 0 6px; font-size: 1.08rem; color: #fff; }
.home .prose p, .home .prose li { color: rgba(255, 244, 236, 0.84); }
.home .prose li::marker { color: var(--accent); }
.home .prose a { color: var(--accent-2); }
.home .prose strong { color: #fff; }
/* "How it works" (the text's first list): three numbered cards. */
.home .prose > ul:first-of-type { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.home .prose > ul:first-of-type li { margin: 0; padding: 20px 20px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font-size: 0.95rem; line-height: 1.55; counter-increment: step; }
.home .prose > ul:first-of-type li::before { content: "0" counter(step); display: block; margin-bottom: 10px; font: 800 0.8rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em; color: var(--accent); }
.home .prose > ul:first-of-type strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
@media (max-width: 760px) { .home .prose > ul:first-of-type { grid-template-columns: 1fr; } }

/* ---- Last call ---- */
.final { position: relative; isolation: isolate; overflow: hidden; padding: clamp(100px, 14vw, 170px) 20px; text-align: center; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/assets/home/final-sky.webp) 50% 50% / cover no-repeat; opacity: 0.55; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.final-inner { max-width: 720px; margin: 0 auto; }
.final h2 { margin: 0; font-size: clamp(2.1rem, 5.4vw, 3.8rem); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.final p { margin: 16px auto 0; max-width: 52ch; font-size: 1.08rem; color: rgba(255, 244, 236, 0.85); }
.final .ctas { justify-content: center; }
.cine .site-footer { border-top-color: var(--line); }
/* The language list: solid, not the page's glass cards (the footer's links
   showed through it). */
.cine .lang-menu ul { background: rgba(14, 10, 24, 0.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

/* Fade-ins (home.js marks what starts below the fold). */
.reveal { transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); }
.reveal.pending { opacity: 0; translate: 0 32px; }

/* ---- Narrower screens ---- */
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
  .features .feature:last-child { grid-column: 1 / -1; }
  .features .feature:last-child .feature-media { aspect-ratio: 21 / 9; }
  .compare { grid-template-columns: 1fr; grid-template-areas: "text" "tabs" "stage"; gap: 16px; }
  .compare-text { text-align: center; }
  .compare-tabs { justify-content: center; }
}
/* Narrower, the cue and the "Filmed in 4K" chip would meet in the middle:
   just the arrow, and the chip kept to its half (it wraps). */
@media (max-width: 1100px) { .scroll-cue span { display: none; } .hero-chip { max-width: calc(50% - 56px); } }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .hero { align-items: end; padding-bottom: 150px; }
  /* Keep the Sun in a tall frame. */
  .hero-video { object-position: 62% 50%; }
  .hero-media { background-position: 62% 50%; }
  .hero::before { background: linear-gradient(0deg, #05040d 0%, rgba(5, 4, 13, 0.82) 40%, rgba(5, 4, 13, 0.25) 75%, rgba(5, 4, 13, 0.5) 100%); }
  .hero-chip { left: 20px; right: 20px; bottom: 62px; max-width: none; justify-content: center; text-align: center; }
  .home .ctas .play, .home .ctas .cta-4k { flex: 1 1 100%; justify-content: center; text-align: center; }
  .features { grid-template-columns: 1fr; }
  .features .feature:last-child .feature-media { aspect-ratio: 16 / 10; }
  .stops { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 40px -20px 0; padding: 0 20px 6px; scrollbar-width: none; }
  .stops::-webkit-scrollbar { display: none; }
  .stop { flex: 0 0 84%; scroll-snap-align: center; }
  .feed-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 12px -20px 0; padding: 0 20px 6px; scrollbar-width: none; }
  .feed-row::-webkit-scrollbar { display: none; }
  .feed-row .feed { flex: 0 0 84%; scroll-snap-align: center; }
  .feed-main { aspect-ratio: 4 / 3; border-radius: 20px; }
  .feed-main figcaption { padding: 56px 22px 20px; }
  .feed-main .feed-cam { top: 24px; left: 28px; font-size: 0.7rem; }
  .feed-phase { font-size: 0.66rem; letter-spacing: 0.08em; }
  .stats li { padding: 20px 16px; }
}

/* Phones have no 4K (space.js), so no button offering it; the note says why. */
@media (pointer: coarse) and (max-width: 767px), (pointer: coarse) and (max-height: 767px) {
  .cta-4k { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video, .hero-copy > *, .hero-chip, .scroll-cue, .scroll-cue svg, .rec, .chip-4k, .sec-head h2 em, .fourk::before { animation: none; }
  .feed-rec::before { animation: none; }
  .feed:hover, .feed:hover video.loop { transform: none; }
  .reveal, .feature, .stop, .feed, .home video.loop, .cine .play, .cta-4k, .cine .site-top { transition: none; }
  .feature:hover, .stop:hover, .cine .play:hover, .cta-4k:hover { transform: none; }
  .feature:hover video.loop, .stop:hover video.loop { transform: none; }
}

/* Chinese: no wide letter-spacing or uppercase on labels with Chinese text. */
html:lang(zh) .home .eyebrow, html:lang(zh) .only-4k, html:lang(zh) .cta-4k small, html:lang(zh) .feed-phase, html:lang(zh) .feed-cam { letter-spacing: 0.04em; font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
html:lang(zh) .hero .tagline, html:lang(zh) .sec-head h2, html:lang(zh) .final h2 { letter-spacing: 0; line-height: 1.2; }
/* Ten characters on one line where there's room, rather than a break mid-phrase. */
html:lang(zh) .hero .tagline { font-size: clamp(2.1rem, 4.6vw, 4rem); }
html:lang(de) .home :is(.feature h3, .stat-l, .cta-4k, .compare h3) { -webkit-hyphens: auto; hyphens: auto; }
