/* SKYTHO 3D — a white, airy page around one drone.
   One structure throughout: words on the left, the subject on the right, a progress rail along the bottom. */

@font-face {
  font-family: "Archivo";
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f2f4f1;
  --bg-rgb: 242, 244, 241;
  --ink: #15211c;
  --ink-2: #56655d;
  --ink-3: #aab4ae;
  --rule: rgba(21, 33, 28, 0.14);
  --red: #d42a32;
  --red-2: #a81d24;
  --forest: #173a2c;
  --gut: clamp(18px, 3.2vw, 46px);
  --bar: 64px;
  --rail-bottom: clamp(16px, 3.4vh, 34px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b { font-weight: inherit; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ── Type ── */
h1, h2, .mega, .statement, .title { font-weight: 430; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 4.9vw, 5.2rem); line-height: 0.98; letter-spacing: -0.038em; max-width: 8.8em; }
h2 { font-size: clamp(2.2rem, 3.9vw, 4rem); line-height: 1; letter-spacing: -0.036em; }
h3 { font-size: 1.15rem; font-weight: 520; line-height: 1.25; letter-spacing: -0.012em; }
.mega { font-size: clamp(4.2rem, 19.5vw, 21rem); line-height: 0.8; letter-spacing: -0.055em; margin-left: -0.05em; }
.title { font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: 1; letter-spacing: -0.038em; }
.statement { font-size: clamp(1.75rem, 3.2vw, 3.2rem); line-height: 1.12; letter-spacing: -0.026em; max-width: 15.5em; }
.statement-sm { font-size: clamp(1.45rem, 2.15vw, 2.15rem); line-height: 1.16; max-width: 17em; }
/* Words and list items wait in grey and turn on as you scroll past them */
.w { color: var(--ink-3); transition: color 0.35s; }
.w.on { color: var(--lit, var(--ink)); }
.kicker { margin-bottom: clamp(12px, 1.6vw, 20px); font-size: 0.92rem; letter-spacing: 0.02em; color: var(--red); }
.lede { max-width: 26em; font-size: clamp(1.125rem, 1.35vw, 1.3rem); color: var(--ink-2); }
figcaption, .side-note { font-size: 0.9rem; color: var(--ink-2); }

.pill {
  display: inline-block;
  padding: 3px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: nowrap;
  background: var(--bg);
}
.num, .toc b, .spec-name b { font-variant-numeric: tabular-nums; }

/* ── Scene ── */
#scene {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh; /* on a phone: as tall as the screen with the toolbar hidden */
  opacity: 0;
  transition: opacity 0.9s ease;
  transform-origin: 0 100%; /* a softer frame is drawn into this corner and stretched from it */
  will-change: transform;
}
#scene.is-ready { opacity: 1; }
/* the opening film, above the 3D scene and under the words (main.js sets its opacity while you scroll) */
#hero-film {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh;
  object-fit: cover; object-position: 50% 50%;
  background: var(--bg);
  pointer-events: none;
}
#hero-film.is-gone { visibility: hidden; }
.no-webgl #hero-film { display: none; }

/* ── Loading: the 3D scene downloads (two models, ~1.5 MB) while this shows ── */
.loader {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
  animation: loader-out 0.6s ease 45s forwards; /* the page never stays covered, even without scripts */
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
.loader-logo { width: 150px; height: auto; }
.loader-brand { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 650; letter-spacing: 0.08em; }
.loader-brand b { color: var(--red); font-weight: inherit; }
.loader-track { width: min(240px, 60vw); height: 3px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.loader-track i { display: block; height: 100%; background: var(--red); transform: scaleX(0.08); transform-origin: 0 50%; transition: transform 0.4s ease; }
.loader-note { min-width: 16em; text-align: center; font-size: 0.88rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.no-webgl .loader { display: none; }
#dip {
  position: fixed; inset: 0; z-index: 1;
  background: var(--bg);
  opacity: 0; visibility: hidden;
  pointer-events: none;
}
.overlay { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.overlay > * { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; }

/* a place in the landscape, named */
.tag i {
  position: absolute; left: -5px; top: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(212, 42, 50, 0.18);
}
.tag span {
  position: absolute; left: 16px; top: -36px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 0.85rem; white-space: nowrap;
}
.tag::after {
  content: "";
  position: absolute; left: 3px; top: -20px;
  width: 16px; height: 18px;
  border-left: 1px solid var(--ink);
  transform: skewX(-36deg);
  transform-origin: bottom left;
}

/* the detector's frame */
.detect::before {
  content: "";
  position: absolute; left: -44px; top: -44px;
  width: 88px; height: 88px;
  --c: var(--red);
  background:
    linear-gradient(var(--c), var(--c)) left top / 20px 2px,
    linear-gradient(var(--c), var(--c)) left top / 2px 20px,
    linear-gradient(var(--c), var(--c)) right top / 20px 2px,
    linear-gradient(var(--c), var(--c)) right top / 2px 20px,
    linear-gradient(var(--c), var(--c)) left bottom / 20px 2px,
    linear-gradient(var(--c), var(--c)) left bottom / 2px 20px,
    linear-gradient(var(--c), var(--c)) right bottom / 20px 2px,
    linear-gradient(var(--c), var(--c)) right bottom / 2px 20px;
  background-repeat: no-repeat;
}
.detect span {
  position: absolute; left: 54px; top: -13px;
  padding: 4px 10px;
  background: var(--red); color: #fff;
  font-size: 0.82rem; white-space: nowrap;
}

/* the part of the drone being described: a ring on it, a leader line, its name */
.pin {
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(212, 42, 50, 0.14);
}
.pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 48px; height: 1.5px; background: var(--red); transform-origin: 0 50%; transform: rotate(-45deg); }
.pin-label {
  position: absolute; left: 44px; bottom: 44px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.94); color: var(--ink);
  border-left: 2px solid var(--red);
  font-size: 0.88rem; white-space: nowrap;
  box-shadow: 0 8px 20px -12px rgba(21, 33, 28, 0.4);
}
.pin.is-left::after { transform: rotate(-135deg); } /* near the right edge the name goes to the left of its point */
.pin.is-left .pin-label { left: auto; right: 44px; border-left: 0; border-right: 2px solid var(--red); }

/* the drone's parts: a strip along the bottom */
.specs {
  position: absolute;
  left: var(--gut); right: var(--gut); top: auto; bottom: var(--rail-bottom);
  display: grid;
  border-top: 1px solid var(--rule);
}


/* ── Header ── */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: var(--bar);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center; gap: 24px;
  padding-inline: var(--gut);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.bar.is-hidden:not(:focus-within) { transform: translateY(-101%); }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; text-decoration: none; }
.brand img { width: 68px; height: auto; flex: none; }
.brand-name { font-stretch: 125%; font-weight: 900; font-size: 1.12rem; letter-spacing: 0.04em; }
.brand b { color: var(--red); font-weight: inherit; }
/* what SKYTHO is, right after its name, set off by a thin rule */
.brand-note { padding-left: 12px; border-left: 1px solid var(--rule); color: var(--ink-2); white-space: nowrap; }
.bar nav { display: flex; justify-content: flex-end; gap: clamp(14px, 2vw, 30px); }
.bar nav a { text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.bar nav a:hover { border-bottom-color: var(--ink); }
/* the way to the sponsorship pitch: red words in a thin red ring that glows a little, its text centred in it */
.bar nav .nav-sponsor {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
  border: 1px solid rgba(212, 42, 50, 0.45); border-radius: 999px;
  color: var(--red); font-weight: 560; line-height: 1; text-decoration: none;
  animation: sponsor-glow 3s ease-in-out infinite;
}
.bar nav .nav-sponsor:hover { border-color: var(--red); }
@keyframes sponsor-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(212, 42, 50, 0.12); }
  50% { box-shadow: 0 0 14px rgba(212, 42, 50, 0.3); }
}

/* ── Shots: tall sections whose words stay pinned while the scene plays ── */
main { position: relative; z-index: 2; }
.shot { position: relative; height: calc(var(--len) * 1vh); pointer-events: none; }
/* how long each part of the film lasts, in screen heights × 100 (kept here: the page has no inline styles) */
[data-shot="intro"] { --len: 340; }
[data-shot="sos"] { --len: 760; }
[data-shot="flight"] { --len: 520; }
[data-shot="detect"] { --len: 240; }
[data-shot="deliver"] { --len: 290; }
[data-shot="studio"] { --len: 720; }
#aplicatia { --len: 380; }
/* as tall as what the screen shows right now: on a phone it grows when the browser's toolbar slides away, so the
   words and the paper behind them stay down at the bottom edge */
.stick { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.beat {
  position: absolute; inset: var(--bar) 0 var(--rail-bottom) 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gut) clamp(16px, 4vh, 44px);
  z-index: 0;
  will-change: transform;
}
.beat::before {
  content: "";
  position: absolute; inset: -6% 0; z-index: -1;
  /* a thin mist only where the words are (it used to wash out more than half of the picture) */
  background: radial-gradient(ellipse 44% 46% at 0% 50%, rgba(var(--bg-rgb), 0.86) 0%, rgba(var(--bg-rgb), 0.66) 48%, rgba(var(--bg-rgb), 0.22) 78%, rgba(var(--bg-rgb), 0) 100%);
}
.copy { width: 100%; max-width: 30rem; pointer-events: auto; }
.copy-wide { max-width: 46vw; }
.copy h2 + p { margin-top: 20px; }
.copy > p:not(.num):not(.statement) { --lit: #2e3a34; color: #2e3a34; font-size: clamp(1.1rem, 1.3vw, 1.25rem); max-width: 25em; }
.beat .copy { text-shadow: 0 0 18px rgba(var(--bg-rgb), 0.85), 0 0 6px rgba(var(--bg-rgb), 0.7), 0 0 2px rgba(var(--bg-rgb), 0.6); }
.num {
  margin-bottom: 14px;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--red);
  font-weight: 560;
}

.beat-hero {
  bottom: 0;
  justify-content: flex-end;
  gap: clamp(24px, 5vh, 52px);
  padding-bottom: clamp(18px, 3.5vh, 36px);
}
/* paper mist behind the words, thickest under them and fading into the meadow (no box edge anywhere) */
.beat-hero::before {
  inset: 0 0 -70% 0; /* it continues below the box and fades out there, so no edge shows as it rides up */
  background: radial-gradient(ellipse 64% 46% at 0% 60%, rgba(var(--bg-rgb), 0.95) 0%, rgba(var(--bg-rgb), 0.84) 48%, rgba(var(--bg-rgb), 0) 100%);
}
.beat-hero > * { pointer-events: auto; }
.hero-panel { align-self: flex-start; width: min(100%, 42rem); }
/* a soft halo of paper round each letter, for where the mist thins out over the grass */
.hero-panel h1, .hero-panel .lede { text-shadow: 0 0 16px rgba(var(--bg-rgb), 0.45); }
.hero-copy .lede { margin-top: clamp(16px, 2.6vh, 26px); color: var(--ink); opacity: 0.85; }
.meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px clamp(16px, 2vw, 28px);
  margin-top: clamp(20px, 3.2vh, 32px); padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.meta dt { font-size: 0.85rem; color: var(--red); font-weight: 560; }
.meta dd { font-size: 0.95rem; line-height: 1.35; }
.meta-sub { display: block; color: #2e3a34; }
.hero-panel .meta { text-shadow: 0 0 14px rgba(var(--bg-rgb), 0.55); }
.cue { position: absolute; right: var(--gut); bottom: clamp(18px, 3.5vh, 36px); font-size: 0.88rem; color: var(--ink-2); white-space: nowrap; padding-left: 22px; }
.cue::before {
  content: "";
  position: absolute; left: 6px; top: 0.12em;
  width: 1px; height: 1.15em;
  background: var(--ink);
  animation: cue 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.fallback { display: none; }

/* ── Chapter openers: the chapter's number, one statement, and in the first one the steps of the mission ── */
.band {
  position: relative;
  height: 185vh;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band-short { height: 140vh; }
.band-stick {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: calc(var(--bar) + clamp(24px, 5.5vh, 64px)) var(--gut) clamp(24px, 5.5vh, 64px);
}
/* when a screen is too small for the content to lock, it simply scrolls */
.band.no-pin { height: auto; min-height: 104vh; }
.band.no-pin .band-stick { position: static; height: auto; min-height: 104vh; }
.toc li > * { transition: color 0.35s; }
.is-pinned .toc .step:not(.on) > * { color: var(--ink-3); }
.band-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); align-items: start; }
.chapter { margin-bottom: 18px; font-size: 1rem; font-weight: 560; color: var(--red); }
.band-short .band-intro .statement { max-width: 19em; }
/* the chapter's number, huge in the corner: an outline that rises and fills with red from the bottom while the
   chapter is locked (main.js sets --h from 0 to 1) */
.band-stick[data-num] .band-intro { position: relative; z-index: 1; }
.band-num { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.band-num span {
  position: absolute; right: calc(var(--gut) - 0.05em); bottom: -0.17em;
  font-size: clamp(12rem, 33vw, 34rem); font-weight: 250; line-height: 1; letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(21, 33, 28, 0.2);
  background: linear-gradient(to top, rgba(212, 42, 50, 0.92) calc(var(--h, 0) * 100%), transparent calc(var(--h, 0) * 100%));
  -webkit-background-clip: text; background-clip: text;
  transform: translate3d(0, calc((1 - var(--h, 0)) * 16vh), 0);
}
.no-pin .band-num span { --h: 1; transform: none; }
.toc { grid-column: 3; border-top: 1px solid var(--ink); }
.toc li {
  display: grid; grid-template-columns: 3.2em minmax(0, 0.62fr) minmax(0, 1.38fr); align-items: baseline; gap: 12px;
  padding-block: clamp(10px, 1.5vh, 16px);
  border-bottom: 1px solid var(--rule);
}
.toc b { color: var(--ink-2); font-size: 0.92rem; }
.toc span { font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; }
.toc em { color: var(--ink-2); font-size: 1rem; }

/* ── The mission clock under the six steps: a big clock and a route the drone flies along (main.js sets --x) ── */
.mission { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); align-items: end; }
.mission-clock { grid-column: 1; }
.clock {
  display: block;
  font-size: clamp(3.4rem, 7.2vw, 7.4rem); font-weight: 300; line-height: 0.88; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.mission-clock small { display: block; margin-top: 12px; font-size: 0.95rem; color: var(--ink-2); }
.route { grid-column: 3; position: relative; padding-top: 50px; }
.route-line { position: relative; height: 2px; margin-inline: calc(100% / 12); background: var(--rule); }
.route-fill { position: absolute; inset: 0; background: var(--red); transform-origin: left center; transform: scaleX(var(--x, 0)); }
.route-stops { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 16px; text-align: center; font-size: 0.92rem; color: var(--ink-3); }
.route-stops li { position: relative; transition: color 0.35s; }
.route-stops li::before { /* the stop on the line */
  content: ""; position: absolute; left: 50%; top: -23px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ink-3);
  transform: translateX(-50%);
  transition: background 0.35s, border-color 0.35s, transform 0.35s;
}
.route-stops b { display: block; margin-bottom: 2px; font-weight: 560; font-variant-numeric: tabular-nums; }
.route-stops li.on { color: var(--ink); }
.route-stops li.on::before { background: var(--red); border-color: var(--red); transform: translateX(-50%) scale(1.15); }
.route-drone {
  position: absolute; top: 2px;
  left: calc(100% / 12 + var(--x, 0) * (100% - 100% / 6));
  width: 68px; height: auto;
  transform: translateX(-50%) rotate(var(--tilt, 0deg));
  animation: hover 1.6s ease-in-out infinite;
}
@keyframes hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
/* without the lock (small screens, no WebGL) the mission is shown finished */
.no-pin .mission, .no-webgl .mission { --x: 1; }

/* ── The drone, one part at a time: a card on the left for the part on show, the stops along the bottom ── */
.specs {
  top: 50%; bottom: auto; right: auto;
  width: min(29rem, 36vw);
  transform: translateY(-50%);
  grid-template-columns: minmax(0, 1fr);
  border-top: 0;
  pointer-events: auto;
}
.specs::before { /* paper behind the words, fading out towards the drone */
  content: ""; position: absolute; z-index: -1;
  inset: -45% -70% -45% calc(-1 * var(--gut));
  background: radial-gradient(ellipse 62% 50% at 0% 50%, rgba(var(--bg-rgb), 0.95) 0%, rgba(var(--bg-rgb), 0.86) 48%, rgba(var(--bg-rgb), 0) 100%);
}
.spec { grid-area: 1 / 1; color: var(--ink); opacity: 0; transform: translateY(18px); transition: opacity 0.4s, transform 0.4s; pointer-events: none; }
.spec.is-past { transform: translateY(-18px); }
.spec.is-active { opacity: 1; transform: none; pointer-events: auto; }
.spec-name { font-size: 0.95rem; color: var(--red); }
.spec-name b { margin-right: 10px; }
.spec h3 { margin-top: 12px; font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 440; letter-spacing: -0.03em; line-height: 1.05; }
.spec p:not(.spec-name) { margin-top: 14px; color: var(--ink-2); font-size: clamp(1.05rem, 1.2vw, 1.18rem); line-height: 1.45; max-width: 25em; }
.facts { margin-top: 20px; border-top: 1px solid var(--rule); }
.facts li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.97rem; }
.facts li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.55em; border-radius: 50%; background: var(--red); }
.spec-steps {
  position: absolute; left: var(--gut); right: var(--gut); bottom: var(--rail-bottom);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.spec-steps li { position: relative; padding-top: 12px; color: var(--ink-3); font-size: 0.88rem; font-variant-numeric: tabular-nums; transition: color 0.35s; }
.spec-steps li::before { content: ""; position: absolute; left: 0; right: 8px; top: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s; }
.spec-steps li.is-past { color: var(--ink-2); }
.spec-steps li.is-active { color: var(--red); }
.spec-steps li.is-active::before, .spec-steps li.is-past::before { transform: none; }
.spec-steps li.is-past::before { background: var(--ink-3); }

/* ── After the film: a title and an artefact on the left, the facts on the right ── */
.sec {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr) minmax(0, 7fr);
  padding: clamp(56px, 8vw, 116px) var(--gut);
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.lock-stick { display: contents; }
.sec-side { position: sticky; top: calc(var(--bar) + 28px); align-self: start; }
.sec-side .title { margin-bottom: clamp(22px, 3vw, 40px); }
.side-note { max-width: 22em; font-size: 1rem; }
.sec-body { grid-column: 3; }
.sec-body > .statement { margin-bottom: clamp(24px, 3vw, 40px); }

.prose p { --lit: var(--ink-2); max-width: 33em; color: var(--ink-2); }
.prose p + p { margin-top: 0.9em; }

.rows { border-top: 1px solid var(--ink); }
.prose + .rows, .team-photos + .rows { margin-top: clamp(32px, 4vw, 56px); }
.rows > div {
  display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 8px 24px;
  padding-block: 15px;
  border-bottom: 1px solid var(--rule);
}
.rows dt { font-weight: 520; }
.rows dd { color: var(--ink-2); }
.rows > div { position: relative; }
.rows dt, .rows dd { transition: color 0.35s; }
/* locked sections read their rows out one at a time; a red tick marks the one being read */
.is-pinned .rows .step:not(.on) dt, .is-pinned .rows .step:not(.on) dd { color: var(--ink-3); }
.is-pinned .rows .step::before {
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 3.2em; height: 2px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s;
}
.is-pinned .rows .step.now::before { transform: scaleX(1); }
@media (min-width: 1180px) and (min-height: 700px) {
  .lock:not(.no-pin) { display: block; height: calc(var(--len) * 1vh); padding-block: 0; }
  .lock:not(.no-pin) .lock-stick {
    position: sticky; top: var(--bar);
    height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar));
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr) minmax(0, 7fr); align-items: start;
    padding-block: clamp(28px, 5.5vh, 64px);
  }
  .lock:not(.no-pin) .sec-side { position: static; }
  .lock:not(.no-pin) .app-screens { width: auto; height: min(60vh, 600px); }
  .lock:not(.no-pin) .rows > div { padding-block: clamp(15px, 2.5vh, 26px); }
}
.rows-3 > div { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr) minmax(0, 0.42fr); }
.rows .with { font-size: 0.9rem; color: var(--ink); text-align: right; }

.phone {
  width: min(100%, 290px);
}
.phone img {
  padding: 8px;
  background: var(--ink);
  border-radius: 34px;
  box-shadow: 0 40px 60px -22px rgba(21, 33, 28, 0.35);
}
/* the screens lie on top of each other inside one phone; the one being read shows */
.app-screens {
  position: relative;
  width: min(100%, 290px); aspect-ratio: 1049 / 2048;
  padding: 8px;
  border-radius: 34px;
  background: var(--ink);
  box-shadow: 0 40px 60px -22px rgba(21, 33, 28, 0.35);
}
.app-screens li { position: absolute; inset: 8px; overflow: hidden; border-radius: 27px; background: #fff; opacity: 0; transition: opacity 0.35s; }
.app-screens li.now, .app-screens:not(:has(.now)) li:first-child { opacity: 1; }
/* the settings screen is a long page: it scrolls inside the phone as you read its step */
.app-screens img { width: 100%; height: 100%; object-fit: cover; object-position: 50% calc(var(--pan, 0) * 100%); }
.app-tech { margin-top: 18px; font-size: 0.92rem; color: var(--ink-2); }
.poster { width: min(100%, 330px); }
.poster img { background: #fff; border-radius: 4px; box-shadow: 0 30px 50px -24px rgba(21, 33, 28, 0.3); }
figcaption { margin-top: 12px; }

.team-photo img { width: 100%; border-radius: 4px; }
.team-photo + .rows { margin-top: clamp(32px, 4vw, 56px); }
.rows .with { max-width: 15em; justify-self: end; }

/* the school they work at */
.cex { display: flex; align-items: center; gap: 14px; margin-top: clamp(24px, 3vw, 40px); color: var(--ink); text-decoration: none; font-size: 0.95rem; max-width: 18em; }
.cex img { width: 72px; height: auto; flex: none; }

/* ── Gallery: the test flight on film, then photos ── */
.faq .qa { padding-block: 18px; border-bottom: 1px solid var(--rule); }
.faq .qa:first-child { border-top: 1px solid var(--ink); }
.faq h3 { font-size: clamp(1.1rem, 1.4vw, 1.3rem); font-weight: 520; letter-spacing: -0.01em; }
.faq p { margin-top: 8px; max-width: 46em; color: var(--ink-2); }
.faq a { color: var(--ink); }
.gallery-reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(24px, 3vw, 40px); }
.gallery-reels video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 6px; background: #0d1411; }
.sheet-head { margin: clamp(40px, 5vw, 64px) 0 10px; font-size: clamp(1.3rem, 1.8vw, 1.7rem); font-weight: 450; letter-spacing: -0.02em; }
.sheet-head.sheet-first { margin-top: 0; }
.gallery-video video { display: block; width: 100%; height: auto; border-radius: 6px; background: #0d1411; }
.gallery-first { margin-bottom: clamp(24px, 3vw, 40px); }
.gallery-first img { width: 100%; border-radius: 4px; }
.team-pair { margin: 0; }
.team-pair + .rows { margin-top: clamp(32px, 4vw, 56px); }
.gallery-grid, .gallery-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(24px, 3vw, 40px);
}
.gallery-pair { margin: 0 0 clamp(24px, 3vw, 40px); align-items: start; }
.gallery-grid img, .gallery-pair img { display: block; width: 100%; height: auto; border-radius: 4px; }
/* the two competition stands side by side, cut to the same height */
.gallery-pair img { aspect-ratio: 3 / 4.4; object-fit: cover; object-position: 50% 30%; }

/* ── The gallery strip: locked on the screen while the pictures slide sideways (main.js sets the section's height
   and the track's --sx). Without the lock (no JS / no WebGL) the track simply scrolls sideways by hand ── */
.strip { position: relative; background: var(--bg); border-top: 1px solid var(--rule); }
.strip-stick {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 34px);
  padding-block: calc(var(--bar) + clamp(12px, 3vh, 32px)) clamp(18px, 4vh, 40px);
  overflow: hidden;
}
.strip-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-inline: var(--gut); }
.strip-head .side-note { text-align: right; }
.strip-track {
  display: flex; align-items: stretch; gap: clamp(12px, 1.6vw, 24px);
  height: min(60vh, 62vh); height: min(60dvh, 640px);
  padding-inline: var(--gut);
  width: max-content;
  transform: translate3d(calc(var(--sx, 0) * -1px), 0, 0);
  will-change: transform;
}
.strip-track figure { position: relative; height: 100%; margin: 0; display: flex; flex-direction: column; }
.strip-track img, .strip-track video, .strip-track .vp { display: block; height: calc(100% - 2.6em); width: auto; object-fit: cover; border-radius: 6px; background: #0d1411; }
.strip-wide img { aspect-ratio: 4 / 3; }
.strip-film video, .strip-film .vp { aspect-ratio: 16 / 9; }
.strip-tall video, .strip-tall .vp { aspect-ratio: 9 / 19.5; }

/* ── The gallery's video player (main.js builds it round each film) ── */
.strip-track .vp { position: relative; overflow: hidden; isolation: isolate; }
.strip-track .vp video { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; cursor: pointer; }
.vp:fullscreen { border-radius: 0; background: #000; }
.vp:fullscreen video { object-fit: contain; }
/* the play button: a plain round glass button with a white triangle; red when you point at it */
.vp-big {
  position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center;
  width: clamp(52px, 5vw, 68px); aspect-ratio: 1; padding: 0; translate: -50% -50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85); border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px -8px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s, transform 0.25s, background 0.25s, border-color 0.25s;
}
.vp-big svg { width: 42%; height: 42%; margin-left: 8%; fill: currentColor; }
.vp-big:hover, .vp-big:focus-visible { background: var(--red); border-color: var(--red); transform: scale(1.08); }
.vp:not(.is-preview):not(.is-paused) .vp-big { opacity: 0; pointer-events: none; transform: scale(0.85); }
/* the bar: play, time, seek, sound, full screen; shown while the pointer moves, while paused, and never on the preview */
.vp-bar {
  position: absolute; inset: auto 0 0 0; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 26px 10px 8px; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.vp:not(.is-preview).is-awake .vp-bar, .vp:not(.is-preview).is-paused .vp-bar, .vp:not(.is-preview):focus-within .vp-bar { opacity: 1; transform: none; pointer-events: auto; }
.vp-btn { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background 0.2s; }
.vp-btn:hover, .vp-btn:focus-visible { background: rgba(255, 255, 255, 0.16); }
.vp-btn svg { width: 22px; height: 22px; fill: currentColor; }
.vp-time { flex: none; min-width: 6.6em; font-size: 0.8rem; font-variant-numeric: tabular-nums; opacity: 0.92; }
.vp-seek { flex: 1; min-width: 40px; height: 18px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.vp-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--red) var(--p, 0%), rgba(255, 255, 255, 0.35) var(--p, 0%)); }
.vp-seek::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--red) var(--p, 0%), rgba(255, 255, 255, 0.35) var(--p, 0%)); }
.vp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); transition: transform 0.15s; }
.vp-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.vp-seek:hover::-webkit-slider-thumb { transform: scale(1.2); }
.strip-tall .vp-time { display: none; }
.strip-track figcaption { max-width: 34ch; margin-top: 10px; font-size: 0.88rem; color: var(--ink-2); }
.strip-tall figcaption { max-width: 22ch; }
.strip-bar { margin-inline: var(--gut); height: 2px; background: var(--rule); }
.strip-bar i { display: block; height: 100%; background: var(--red); transform-origin: left center; transform: scaleX(var(--h, 0)); }
.strip.no-pin .strip-stick { position: static; height: auto; }
.strip.no-pin .strip-track { width: auto; transform: none; overflow-x: auto; scroll-snap-type: x mandatory; }
.strip.no-pin figure { scroll-snap-align: start; flex: 0 0 auto; }

/* ── Awards: the rank large, the diploma beside it ── */
.award {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(18px, 2.4vw, 36px); align-items: start;
  padding-block: clamp(22px, 3vw, 36px);
  border-top: 1px solid var(--ink);
}
.award + .award { border-top-color: var(--rule); }
.award img { width: 100%; border-radius: 4px; box-shadow: 0 24px 40px -26px rgba(21, 33, 28, 0.45); }
.award-rank { font-size: clamp(2.6rem, 4.6vw, 4.6rem); font-weight: 430; line-height: 0.9; letter-spacing: -0.045em; color: var(--red); }
.award h3 { margin-top: 14px; font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 520; }
.award-text p:not(.award-rank) { margin-top: 10px; color: var(--ink-2); max-width: 30em; }
.award-text .award-who { color: var(--ink); }
.award-text a { color: var(--ink); }

.closing {
  position: relative; z-index: 2; /* above the scene's canvas, which now comes later in the page */
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 32px clamp(24px, 4vw, 64px);
  padding: clamp(48px, 6vw, 88px) var(--gut) clamp(20px, 3vw, 32px);
  background: var(--forest); color: #eef3ee;
}
.closing-rank { font-size: clamp(2.4rem, 4.4vw, 4.8rem); font-weight: 430; line-height: 0.82; letter-spacing: -0.05em; margin-left: -0.04em; white-space: nowrap; }
.closing-award { margin-top: 10px; max-width: 24em; font-size: 0.92rem; color: #c5d6ca; }
.closing-text p { max-width: 24em; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.3; letter-spacing: -0.02em; color: #c5d6ca; }
.closing-text { align-self: end; }
/* the call for sponsors: the footer's headline */
.sponsor-title { font-size: clamp(2rem, 3.6vw, 3.6rem); font-weight: 430; line-height: 1; letter-spacing: -0.04em; max-width: 12em; }
.sponsor p { margin-top: 14px; max-width: 34em; font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.5; color: #c5d6ca; }
.sponsor p:first-of-type { margin-top: 20px; }
.btn.btn-mail { box-shadow: 0 0 0 2px rgba(212, 42, 50, 0.75), 0 0 14px rgba(212, 42, 50, 0.25); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.socials .btn { padding: 8px 14px; font-size: 0.86rem; }
.socials svg { width: 1.15em; height: 1.15em; margin-right: 8px; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.closing-foot {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 12px 28px;
  margin-top: clamp(16px, 2.4vw, 32px); padding-top: 16px;
  border-top: 1px solid rgba(238, 243, 238, 0.18);
  font-size: 0.86rem; color: #a9bdb0;
}
.closing-foot img { display: block; width: 52px; height: auto; }
.cex-link { display: block; border-radius: 50%; }
.cex-link:focus-visible { outline: 2px solid #eef3ee; outline-offset: 3px; }
.btn {
  display: inline-block; padding: 12px 20px;
  border-radius: 999px;
  background: #eef3ee; color: var(--ink);
  font-size: 0.95rem; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #fff; }
.btn:focus-visible, .cex:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ── Without WebGL the page is a plain article ── */
.no-webgl #scene, .no-webgl #dip, .no-webgl .overlay { display: none; }
.no-webgl .shot { height: auto; pointer-events: auto; }
.no-webgl .stick { position: static; height: auto; padding-top: var(--bar); }
.no-webgl .beat { position: static; padding-block: 48px; opacity: 1 !important; visibility: visible !important; }
.no-webgl .beat::before { display: none; }
.no-webgl .specs { position: static; margin: 0 var(--gut) 48px; width: auto; transform: none; background: none; box-shadow: none; gap: 36px; }
.no-webgl .specs::before, .no-webgl .spec-steps { display: none; }
.no-webgl .spec { grid-area: auto; opacity: 1; transform: none; color: var(--ink); }
.no-webgl .w { color: inherit; }
.no-webgl .fallback { display: block; width: min(100%, 560px); }
.no-webgl .band { height: auto; }
.no-webgl .band-stick { position: static; height: auto; }

/* ── The phone: the 3D phone's screen becomes this, and the conversation with AMI plays in it ──
   Sizes inside are in cqw (hundredths of the screen's width), so it reads the same at every size. */
.overlay > .phone {
  container-type: inline-size;
  transform-origin: 0 0;
  will-change: transform, opacity;
  padding: var(--bezel, 10px);
  border-radius: 13% / 6.4%;
  background: #121517;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 26px 44px -24px rgba(21, 33, 28, 0.55);
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 11% / 5.3%;
  background: #fff;
  font-size: 4.3cqw; line-height: 1.33; color: #1d2320;
}
.phone-status {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  height: 10cqw; padding: 0 8cqw;
  font-size: 3.5cqw; font-weight: 560;
}
.phone-status::before { /* the camera */
  content: ""; position: absolute; left: 50%; top: 3cqw;
  width: 3.8cqw; height: 3.8cqw; margin-left: -1.9cqw; border-radius: 50%;
  background: #121517;
}
.phone-status i { width: 6cqw; height: 3cqw; border-radius: 0.8cqw; border: 0.45cqw solid currentColor; position: relative; }
.phone-status i::after { content: ""; position: absolute; inset: 0.45cqw 1.6cqw 0.45cqw 0.45cqw; border-radius: 0.3cqw; background: currentColor; }

.sos-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12cqw;
  text-align: center;
  opacity: calc(1 - var(--chat, 0));
}
.sos-brand { position: absolute; top: 16cqw; font-size: 5.4cqw; font-weight: 600; letter-spacing: 0.01em; }
.sos-brand b { color: var(--red); }
.sos-button {
  position: relative;
  display: grid; place-items: center;
  width: 50cqw; height: 50cqw; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 13cqw; font-weight: 640; letter-spacing: 0.03em;
  box-shadow: 0 0 0 5cqw rgba(212, 42, 50, 0.13), 0 0 0 11cqw rgba(212, 42, 50, 0.06);
}
.sos-button::before, .sos-button::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 0.6cqw solid var(--red);
  animation: sos-wave 2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.sos-button::after { animation-delay: 1s; }
@keyframes sos-wave { from { transform: scale(1); opacity: 0.6; } to { transform: scale(1.8); opacity: 0; } }
.sos-state { color: var(--ink-2); font-size: 4.2cqw; }
.sos-state b { display: block; margin-bottom: 1cqw; color: var(--ink); font-size: 6.2cqw; font-weight: 560; }

.chat-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: var(--chat, 0);
  background: #f3e8da;
}
/* the app's wallpaper: search-and-rescue doodles on warm paper, one picture covering the screen, on a layer of
   its own so the graphics card scales it instead of the page painting it again */
.phone .chat-wall { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; padding: 0; border-radius: 0; background: none; box-shadow: none; object-fit: cover; will-change: transform; pointer-events: none; }
.chat-head, .chat, .chat-input { position: relative; }
.chat-head {
  display: flex; align-items: center; gap: 3.2cqw;
  padding: 11cqw 4.5cqw 3.2cqw;
  background: #fff;
  font-size: 5cqw; font-weight: 560;
}
.chat-head svg, .chat-input svg {
  width: 5.6cqw; height: 5.6cqw; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.chat-avatar {
  display: grid; place-items: center; flex: none;
  width: 10.5cqw; height: 10.5cqw; border-radius: 50%;
  background: #1f9a82; color: #10251f;
  font-size: 4.6cqw; font-weight: 600;
}
.chat-head .chat-call { margin-left: auto; color: #1f9a82; }
.chat {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2.4cqw;
  padding: 3cqw 3.6cqw;
}
.chat > li {
  align-self: flex-start; max-width: 82%;
  padding: 2.6cqw 3.4cqw 1.8cqw;
  border-radius: 3.6cqw;
  background: #fff;
  box-shadow: 0 0.3cqw 0.5cqw rgba(0, 0, 0, 0.07);
}
.chat > .me { align-self: flex-end; background: #d9fbd0; }
.chat time { display: block; margin-top: 0.6cqw; text-align: right; font-size: 2.9cqw; color: #8c958f; }
.chat > .step:not(.on), .chat > .typing:not(.now) { display: none; }
.chat > .typing { display: flex; gap: 1.4cqw; padding: 3.6cqw 4.2cqw; }
.typing i { width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: #9aa39e; animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-1.2cqw); opacity: 1; } }
.chat > .now { animation: message-in 0.32s ease-out both; }
@keyframes message-in { from { opacity: 0; transform: translateY(2.5cqw) scale(0.98); } }
.chat-input {
  display: flex; align-items: center; gap: 3cqw;
  margin: 0 3.4cqw 5cqw; padding: 3.2cqw 4.4cqw;
  border-radius: 99px;
  background: #fff; color: #8c958f;
  font-size: 4.2cqw;
}
.chat-input span { flex: 1; }
.chat-input .chat-mic { color: var(--red); }
/* a small phone on a small screen: larger letters, so the conversation still reads */
@container (max-width: 300px) { .phone-screen { font-size: 4.9cqw; } }
/* portrait screens: the phone takes the top, and under it only the title; the conversation says the rest */
@media (max-aspect-ratio: 9/10) {
  .beat-chat .copy > p { display: none; }
  .beat.beat-chat::before { inset: 55% 0 -45% 0; } /* paper only behind the title, not over the phone */
}

/* ── Small screens ── */
@media (max-width: 860px) {
  .bar nav a:not(.lang):not(.nav-sponsor) { display: none; }
  .bar nav { gap: 10px; align-items: center; }
  .bar nav .nav-sponsor { height: 28px; padding: 0 10px; font-size: 0.8rem; }
  /* on a phone the note goes under the name, so the sponsorship button fits beside them */
  .brand { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; }
  .brand img { width: 54px; grid-row: span 2; }
  .brand-name { font-size: 1rem; line-height: 1.1; align-self: end; }
  .brand-note { grid-column: 2; align-self: start; padding-left: 0; border-left: 0; font-size: 0.7rem; line-height: 1.2; white-space: normal; max-width: 10.5em; }

  .beat {
    justify-content: flex-end;
    bottom: 0; /* down to the screen's edge, with only a margin under the words */
    padding-bottom: 20px;
  }
  /* on a phone the paper sits only under the words, with a short fade above them, so the scene stays clear on the
     rest of the screen (a veil over the whole lower half washed it out) */
  .beat::before, .beat-hero::before { display: none; }
  .beat .copy, .beat-hero .hero-panel { position: relative; }
  .beat .copy::before, .beat-hero .hero-panel::before {
    content: ""; position: absolute; z-index: -1;
    inset: -64px calc(-1 * var(--gut)) -40px;
    background: linear-gradient(0deg, rgba(var(--bg-rgb), 0.95) 0%, rgba(var(--bg-rgb), 0.9) calc(100% - 64px), rgba(var(--bg-rgb), 0) 100%);
  }
  .copy > p:not(.num):not(.statement) { font-size: 1rem; }
  .copy h2 + p { margin-top: 12px; }
  .copy, .copy-wide { max-width: none; }
  .beat-hero { padding-bottom: 14px; gap: 20px; }
  .meta { display: none; } /* on a phone the opening is only the title and one sentence: the prizes come later */
  .cue { display: none; }

  .rail li { padding-right: 4px; font-size: 0; }
  .rail b { font-size: 0.85rem; margin: 0; }

  .specs { top: auto; bottom: calc(var(--rail-bottom) + 40px); right: var(--gut); width: auto; transform: none; }
  .specs::before { inset: -30% calc(-1 * var(--gut)) -60%; background: linear-gradient(0deg, rgba(var(--bg-rgb), 0.97) 55%, rgba(var(--bg-rgb), 0) 100%); }
  .spec h3 { font-size: 1.7rem; margin-top: 8px; }
  .spec p:not(.spec-name) { margin-top: 10px; font-size: 1rem; }
  .facts { display: none; }
  .spec-steps li { font-size: 0.8rem; }
  .pin-label { font-size: 0.8rem; }

  .band-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { grid-column: 1; }
  .toc li { grid-template-columns: 2.4em minmax(0, 1fr); }
  .toc em { grid-column: 2; }
  .mission { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .mission-clock, .route { grid-column: 1; }
  .clock { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .route-stops { font-size: 0.7rem; }
  .route-drone { width: 40px; }

  .sec { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sec-side { position: static; }
  .sec-body { grid-column: 1; }
  .rows > div, .rows-3 > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rows .with { text-align: left; }
  .award { grid-template-columns: minmax(0, 1fr); }
  .app-screens { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    width: auto; aspect-ratio: auto; padding: 0 0 8px; border-radius: 0; background: none; box-shadow: none; }
  .app-screens li { position: relative; inset: auto; aspect-ratio: 1049 / 2048; opacity: 1; scroll-snap-align: start; border: 6px solid var(--ink); border-radius: 26px; }
  /* where the screen is tall enough, the app locks as on a laptop: one phone stays in view and changes screen as you
     scroll, the step being shown written under it */
  .lock:not(.no-pin) { display: block; height: calc(var(--len) * 1vh); padding: 0; }
  .lock:not(.no-pin) .lock-stick {
    position: sticky; top: var(--bar);
    height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar));
    display: flex; flex-direction: column; justify-content: center; gap: 18px;
    padding: 14px var(--gut) 18px; overflow: hidden;
  }
  .lock:not(.no-pin) .sec-side { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
  .lock:not(.no-pin) .sec-side .title { align-self: flex-start; margin-bottom: 14px; font-size: 1.9rem; }
  .lock:not(.no-pin) .app-phone { position: relative; align-self: center; }
  .lock:not(.no-pin) .app-phone::before { /* a soft red glow behind the phone */
    content: ""; position: absolute; inset: 8% -30%; z-index: -1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(212, 42, 50, 0.16), rgba(212, 42, 50, 0));
  }
  .lock:not(.no-pin) .app-screens {
    display: block; position: relative; overflow: visible; margin-inline: auto;
    width: auto; height: min(50vh, 440px); height: min(50dvh, 440px); aspect-ratio: 1049 / 2048;
    padding: 6px; border-radius: 28px; background: var(--ink); box-shadow: 0 30px 50px -24px rgba(21, 33, 28, 0.45);
    scroll-snap-type: none;
  }
  .lock:not(.no-pin) .app-screens li { position: absolute; inset: 6px; aspect-ratio: auto; border: 0; border-radius: 22px; opacity: 0; transition: opacity 0.35s; }
  .lock:not(.no-pin) .app-screens li.now, .lock:not(.no-pin) .app-screens:not(:has(.now)) li:first-child { opacity: 1; }
  .lock:not(.no-pin) .sec-body > .statement, .lock:not(.no-pin) .app-tech { display: none; }
  .lock:not(.no-pin) .app-steps { display: grid; min-height: 7.5em; }
  .lock:not(.no-pin) .app-steps > div { grid-area: 1 / 1; align-content: start; border-bottom: 0; opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
  .lock:not(.no-pin) .app-steps > div.now, .lock:not(.no-pin) .app-steps:not(:has(.now)) > div:first-child { opacity: 1; transform: none; }
  .lock:not(.no-pin) .app-steps dt { color: var(--red); }
  .lock:not(.no-pin) .app-steps dd { color: var(--ink); }
  .is-pinned.lock .app-steps .step::before { display: none; }
  .closing { grid-template-columns: minmax(0, 1fr); }
  .closing-foot { grid-template-columns: auto minmax(0, 1fr); }
  .closing-foot p[lang] , .closing-foot p:last-child { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .rows .with { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .cue::before, .nav-sponsor { animation: none; }
  .sos-button::before, .sos-button::after, .typing i, .chat > .now { animation: none; }
  .route-drone { animation: none; }
}

/* ── Echipa: its rows rise into place one by one as you reach them (scroll-driven; still without support) ── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    #echipa .rows > div { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 70%; }
    @keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
  }
}

.soft { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.soft > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.soft dt { font-weight: 560; } .soft dd { color: var(--ink-2); text-align: right; }
.future { margin-top: clamp(24px, 3vw, 36px); max-width: 44em; color: var(--ink-2); } .future b { color: var(--ink); font-weight: 560; }
@media (max-width: 860px) { .soft { grid-template-columns: minmax(0, 1fr); } }

/* ── Premii: as each award comes into sight, its diploma swings up from a slight angle (like a sheet set on the
   table) and the rank wipes in from the left; scroll-driven, so it plays forwards and backwards with the page ── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .award img {
      animation: diploma linear both; animation-timeline: view(); animation-range: entry 0% cover 40%;
      transform-origin: 50% 100%;
    }
    @keyframes diploma {
      from { opacity: 0; transform: perspective(900px) rotateX(28deg) translate3d(0, 60px, 0) scale(0.92); }
      to { opacity: 1; transform: none; }
    }
    .award-rank { animation: wipe linear both; animation-timeline: view(); animation-range: entry 20% cover 38%; }
    @keyframes wipe { from { clip-path: inset(0 100% 0 0); transform: translate3d(-12px, 0, 0); } to { clip-path: inset(0 0 0 0); transform: none; } }
    .award-text > :not(.award-rank) { animation: rise linear both; animation-timeline: view(); animation-range: entry 25% cover 42%; }
  }
}

/* ── Two ways to place the film's words (Radu chooses; ?text=a or ?text=c on the test site). The opening and the
   chat with the phone keep their own layout ── */
.cine-frame { display: none; }
/* A · subtitles: the picture uses the whole screen, the words sit low in the middle, white over a dark fade */
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) { justify-content: flex-end; align-items: center; text-align: center; padding-bottom: clamp(24px, 7vh, 72px); }
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat)::before { inset: 30% -10% -10% -10%; background: linear-gradient(0deg, rgba(8, 12, 10, 0.72) 0%, rgba(8, 12, 10, 0.45) 45%, rgba(8, 12, 10, 0) 100%); }
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy { max-width: 46rem; margin-inline: auto; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy-wide { max-width: 52rem; }
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .num { color: #ff7a7f; letter-spacing: 0.08em; }
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) h2, html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .statement { color: #fff; }
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy > p:not(.num):not(.statement) { --lit: #fff; color: rgba(255, 255, 255, 0.9); margin-inline: auto; font-size: clamp(1rem, 1.15vw, 1.12rem); }
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .w { color: rgba(255, 255, 255, 0.38); }
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .w.on { color: #fff; }
/* C · cinema: the film in a big window at the top, the words on paper under it, never over the picture */
html.txt-c.in-film .cine-frame {
  display: block; position: fixed; z-index: 1; pointer-events: none;
  left: var(--gut); right: var(--gut); top: calc(var(--bar) + 2.5vh); height: 58vh;
  border-radius: 12px; box-shadow: 0 0 0 200vmax var(--bg);
}
html.txt-c .shot .beat:not(.beat-hero):not(.beat-chat) { inset: calc(var(--bar) + 2.5vh + 58vh) 0 0 0; justify-content: flex-start; padding-top: clamp(16px, 3.5vh, 40px); }
html.txt-c .shot .beat:not(.beat-hero):not(.beat-chat)::before { display: none; }
html.txt-c .shot .beat:not(.beat-hero):not(.beat-chat) .copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(24px, 4vw, 64px); max-width: none; text-shadow: none; }
html.txt-c .shot .beat:not(.beat-hero):not(.beat-chat) .copy .num { grid-column: 1; }
html.txt-c .shot .beat:not(.beat-hero):not(.beat-chat) .copy h2 { grid-column: 1; }
html.txt-c .shot .beat:not(.beat-hero):not(.beat-chat) .copy > p:not(.num) { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; max-width: 36em; }
html.txt-c .shot .beat:not(.beat-hero):not(.beat-chat) .copy-wide { display: block; }
@media (max-width: 860px) {
  html.txt-c.in-film .cine-frame { height: 50vh; }
  html.txt-c .shot .beat:not(.beat-hero):not(.beat-chat) { inset: calc(var(--bar) + 2.5vh + 50vh) 0 0 0; }
  html.txt-c .shot .beat:not(.beat-hero):not(.beat-chat) .copy { display: block; }
  html.txt-c .shot .beat:not(.beat-hero):not(.beat-chat) .copy::before { display: none; }
}
@media (max-width: 860px) {
  /* A on a phone: no paper panel behind the words (it is for the dark text); the dark fade instead */
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat)::before { display: block; inset: 25% -10% -10% -10%; }
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy::before { display: none; }
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy { text-align: center; }
}
@media (min-width: 861px) {
  /* A on a laptop: a wide, low band of words (two lines of text, not five), so it covers less of the picture */
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) { padding-bottom: clamp(18px, 4vh, 44px); }
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat)::before { inset: 52% -10% -10% -10%; }
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy,
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy-wide { max-width: min(64rem, 86vw); }
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy > p:not(.num):not(.statement) { max-width: none; }
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
}

/* the subtitles sit at the bottom LEFT (Radu 2026-11-18: "pune textul și numărul mai în stânga"), on a dark fade that
   is strongest in the bottom-left corner */
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) { align-items: flex-start; text-align: left; padding-left: var(--gut); padding-right: var(--gut); }
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat)::before {
  background: radial-gradient(ellipse 75% 100% at 0% 100%, rgba(8, 12, 10, 0.74) 0%, rgba(8, 12, 10, 0.5) 45%, rgba(8, 12, 10, 0) 100%);
}
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy,
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy-wide { margin-inline: 0; text-align: left; }
html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy > p:not(.num):not(.statement) { margin-inline: 0; }
@media (min-width: 861px) {
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy,
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy-wide { max-width: min(46rem, 60vw); }
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat)::before { inset: 40% 30% -10% -10%; }
}
@media (max-width: 860px) {
  html.txt-a .shot .beat:not(.beat-hero):not(.beat-chat) .copy { text-align: left; }
}

/* ── Aplicația (2026-11-18): one phone in the middle, locked while you scroll. A hand comes out of the screen and
   presses SOS, the real 3-2-1 countdown runs, then the chat's buttons light up one by one with a note beside each.
   main.js drives it: --hx/--hy/--hs (the hand), .is-count/.is-chat and data-spot on the section ── */
.appB { position: relative; height: 520vh; background: var(--bg); border-top: 1px solid var(--rule); }
.appB-stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center;
  padding: calc(var(--bar) + clamp(12px, 2.5vh, 28px)) var(--gut) clamp(12px, 2.5vh, 24px);
}
.appB-heads { display: grid; width: 100%; max-width: 44rem; text-align: center; }
.appB-heads li { grid-area: 1 / 1; opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity 0.35s, transform 0.35s; }
.appB-heads li.now { opacity: 1; transform: none; }
.appB-kicker { font-size: 0.95rem; font-weight: 560; color: var(--red); }
.appB-heads h2 { margin-top: 6px; font-size: clamp(1.9rem, 3.4vw, 3.2rem); font-weight: 430; letter-spacing: -0.03em; line-height: 1.02; }
.appB-heads li > p:last-child { margin-top: 10px; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.45; color: var(--ink-2); }
.appB-phone { position: relative; align-self: center; margin: clamp(12px, 2.5vh, 28px) 0 0; }
.appB-phone::before { content: ""; position: absolute; inset: 10% -45%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 42, 50, 0.14), rgba(212, 42, 50, 0)); }
.appB-screen {
  position: relative; height: min(62vh, 600px); aspect-ratio: 720 / 1406; overflow: hidden; box-sizing: content-box;
  border: 8px solid var(--ink); border-radius: 34px; background: #f3f4f6;
  box-shadow: 0 40px 60px -22px rgba(21, 33, 28, 0.35);
}
.appB-screen img, .appB-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.appB-count, .appB-chat { opacity: 0; }
.appB.is-count .appB-count, .appB.is-chat .appB-chat { opacity: 1; }
.appB.is-chat .appB-count { opacity: 0; }
/* the SOS button sinks a little under the finger */
.appB-sos { transform-origin: 50% 44.7%; transition: transform 0.12s, filter 0.12s, opacity 0.3s; }
.appB.is-press .appB-sos { transform: scale(0.97); filter: brightness(0.9); }
/* the highlighted chat button: the rest of the screen dims, a red ring pulses round the button */
.appB-spot {
  position: absolute; left: var(--sx, 50%); top: var(--sy, 50%); width: 14%; aspect-ratio: 1; translate: -50% -50%; box-sizing: border-box;
  border-radius: 50%; border: 3px solid var(--red); pointer-events: none;
  box-shadow: 0 0 0 200vmax rgba(10, 16, 13, 0.5); opacity: 0; transition: opacity 0.3s, left 0.4s, top 0.4s;
}
.appB[data-spot] .appB-spot { opacity: 1; animation: spot-pulse 1.4s ease-in-out infinite; }
@keyframes spot-pulse { 50% { transform: scale(1.12); } }
/* the buttons' centres, measured on the screenshot (4-chat.webp) */
.appB[data-spot="call"] .appB-spot { --sx: 92.5%; --sy: 8.34%; }
.appB[data-spot="photo"] .appB-spot { --sx: 10.6%; --sy: 94.3%; }
.appB[data-spot="mic"] .appB-spot { --sx: 89.4%; --sy: 94.28%; }
/* the notes beside the phone, each at the height of its button, with a line to it */
.appB-notes { position: absolute; inset: 8px; pointer-events: none; }
.appB-notes li {
  position: absolute; width: min(19rem, 26vw); translate: 0 -50%;
  opacity: 0; transition: opacity 0.35s, transform 0.35s;
}
.appB-notes b { display: block; font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 560; color: var(--red); }
.appB-notes span { display: block; margin-top: 4px; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.4; color: var(--ink); }
.appB-notes li::before { content: ""; position: absolute; top: 0.8em; width: clamp(28px, 4vw, 64px); border-top: 2px solid var(--red); }
.note-call { top: 8.3%; left: calc(100% + clamp(44px, 6vw, 96px)); transform: translateX(-12px); }
.note-mic { top: 94.3%; left: calc(100% + clamp(44px, 6vw, 96px)); transform: translateX(-12px); }
.note-call::before, .note-mic::before { right: calc(100% + 10px); }
.note-photo { top: 94.3%; right: calc(100% + clamp(44px, 6vw, 96px)); text-align: right; transform: translateX(12px); }
.note-photo::before { left: calc(100% + 10px); }
.appB[data-spot="call"] .note-call, .appB[data-spot="photo"] .note-photo, .appB[data-spot="mic"] .note-mic { opacity: 1; transform: none; }
.appB-tech { margin-top: 10px; font-size: 0.85rem; color: var(--ink-2); }
/* the hand: drawn over everything in the stage; its fingertip is placed on the SOS button by main.js */
.appB-hand {
  position: absolute; left: 0; top: 0; z-index: 3; width: var(--hw, 520px); height: var(--hw, 520px); max-width: none; pointer-events: none;
  /* the rendered frame cuts the sleeve at its bottom and right edges: fade them so the cut never shows */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%), linear-gradient(to right, #000 85%, transparent 99%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 78%, transparent 99%), linear-gradient(to right, #000 85%, transparent 99%);
  mask-composite: intersect;
  transform: translate3d(var(--hx, 0px), var(--hy, 120vh), 0);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.22));
  will-change: transform;
}
.appB.no-pin { height: auto; }
.appB.no-pin .appB-stage { position: static; height: auto; }
.appB.no-pin .appB-hand { display: none; }
@media (max-width: 860px) {
  .appB-screen { height: min(54vh, 520px); border-width: 6px; border-radius: 28px; }
  .appB-heads h2 { font-size: 1.8rem; }
  .appB-heads li > p:last-child { font-size: 0.98rem; }
  /* the notes go under the phone, one at a time, centred */
  .appB-notes { inset: auto 0 auto 0; top: calc(100% + 14px); }
  .appB-notes li, .note-call, .note-mic, .note-photo { left: 50%; right: auto; top: 0; width: min(22rem, 86vw); translate: -50% 0; text-align: center; transform: none; }
  .appB-notes li::before { display: none; }
  .appB-tech { display: none; }
}

/* ── The language switch: RO | EN in a pill, a red puck under the current language that slides across on hover
   and on the way to the other page ── */
.bar nav .lang {
  --w: 2.35em; position: relative; display: inline-flex; align-items: center; gap: 7px; align-self: center;
  padding: 3px 3px 3px 9px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; line-height: 1; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 6px 18px -12px rgba(21, 33, 28, 0.5);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.bar nav .lang:hover { border-color: rgba(212, 42, 50, 0.45); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 10px 24px -12px rgba(212, 42, 50, 0.55); }
.bar nav .lang:active { transform: scale(0.96); }
.lang-globe { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0.7; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.lang:hover .lang-globe { transform: rotate(-200deg); opacity: 1; color: var(--red); }
.lang-track { position: relative; display: grid; grid-template-columns: var(--w) var(--w); border-radius: 999px; background: rgba(21, 33, 28, 0.07); }
.lang-track > span { position: relative; z-index: 1; padding: 6px 0; text-align: center; transition: color 0.35s; }
.lang-pill {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: var(--w); border-radius: 999px;
  background: linear-gradient(180deg, #e2444b, var(--red)); box-shadow: 0 4px 10px -4px rgba(212, 42, 50, 0.7);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* the current language sits on the red puck; hovering slides it towards the other one */
.lang[data-on="ro"] .lang-ro, .lang[data-on="en"] .lang-en { color: #fff; }
.lang[data-on="en"] .lang-pill { transform: translateX(100%); }
.lang[data-on="ro"]:hover .lang-pill, .lang[data-on="ro"].is-going .lang-pill { transform: translateX(100%); }
.lang[data-on="en"]:hover .lang-pill, .lang[data-on="en"].is-going .lang-pill { transform: translateX(0); }
.lang[data-on="ro"]:hover .lang-ro, .lang[data-on="en"]:hover .lang-en { color: var(--ink); }
.lang[data-on="ro"]:hover .lang-en, .lang[data-on="en"]:hover .lang-ro { color: #fff; }
@media (prefers-reduced-motion: reduce) { .lang-pill, .lang-globe { transition: none; } }

