/* home2video story film. Scoped by the .s2v- prefix; themed through CSS variables set on .s2v-film. */
.s2v-film {
  --s2v-paper: #f7f5f0;
  --s2v-paper-2: #e9e7e1;
  --s2v-ink: #111111;
  --s2v-muted: #55514b;
  --s2v-accent: #b02614;
  --s2v-highlight: #ffc526;
  --s2v-display: Georgia, "Times New Roman", serif;
  --s2v-body: Inter, system-ui, sans-serif;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--s2v-paper);
  color: var(--s2v-ink);
  font-family: var(--s2v-body);
}
.s2v-film * { box-sizing: border-box; }
/* :where keeps this at zero class specificity, so every .s2v-* colour rule wins over it */
:where(.s2v-film) a { color: inherit; }
.s2v-serif { font-family: var(--s2v-display); }

/* Corner chrome */
.s2v-logo { position: fixed; top: 12px; left: 12px; z-index: 50; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--s2v-ink); }
.s2v-logo img { width: 44px; height: 40px; object-fit: contain; background: var(--s2v-paper); }
.s2v-logo-name { display: none; font-family: var(--s2v-display); font-size: 18px; font-weight: 600; line-height: 1.1; }
.s2v-logo-sub { display: block; font-family: var(--s2v-body); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--s2v-muted); }
.s2v-film.is-dark .s2v-logo { color: var(--s2v-paper); }
.s2v-film.is-dark .s2v-logo-sub { color: var(--s2v-paper-2); }
.s2v-menu-btn { position: fixed; top: 12px; right: 12px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; font: 600 14px var(--s2v-body); border: 2px solid var(--s2v-ink); background: var(--s2v-ink); color: var(--s2v-paper); cursor: pointer; }
.s2v-film.is-dark .s2v-menu-btn:not(.is-open) { background: var(--s2v-paper); color: var(--s2v-ink); border-color: var(--s2v-paper); }
.s2v-cta { display: none; position: fixed; top: 12px; right: 140px; z-index: 50; align-items: center; min-height: 48px; padding: 8px 16px; font: 600 13px var(--s2v-body); background: var(--s2v-ink); color: var(--s2v-paper); text-decoration: none; }
.s2v-film.is-dark .s2v-cta { background: var(--s2v-highlight); color: var(--s2v-ink); }

/* Menu overlay */
.s2v-menu { position: fixed; inset: 0; z-index: 55; background: var(--s2v-paper); overflow: auto; }
.s2v-menu[hidden] { display: none !important; }
.s2v-menu-inner { max-width: 1024px; margin: 0 auto; padding: 96px 24px 64px; display: flex; flex-direction: column; gap: 48px; }
.s2v-menu-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.s2v-menu-col { display: flex; flex-direction: column; gap: 12px; }
.s2v-menu-title { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--s2v-accent); }
.s2v-menu-link { font-family: var(--s2v-display); font-size: 20px; text-decoration: none; color: var(--s2v-ink); }
.s2v-menu-link:hover { color: var(--s2v-accent); }
.s2v-menu-num { margin-right: 8px; font-size: 14px; font-style: italic; color: var(--s2v-accent); }
.s2v-langs { border-top: 2px solid var(--s2v-ink); padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; }
.s2v-langs a { text-decoration: none; color: var(--s2v-muted); }
.s2v-langs a.is-active { font-weight: 600; color: var(--s2v-ink); }
.s2v-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Stage: a 9:16 frame on phones, the whole viewport on desktop */
.s2v-main { position: relative; flex: 1 1 auto; min-height: 100svh; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--s2v-paper-2); padding: 64px 0 112px; }
.s2v-stage { position: relative; overflow: hidden; container-type: size; aspect-ratio: 9 / 16; height: min(calc(100svh - 11rem), 177vw); max-width: 100%; border: 2px solid var(--s2v-ink); box-shadow: 6px 6px 0 var(--s2v-ink); background: var(--s2v-paper); }
.s2v-film.is-dark .s2v-stage { background: var(--s2v-ink); }
.s2v-beat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 4cqw; padding: 5cqw 6cqw; overflow: hidden; }
/* !important: the desktop media rules below (and .is-dark) must never resurface a hidden beat */
.s2v-beat[hidden] { display: none !important; }
.s2v-beat.is-dark { background: var(--s2v-ink); color: var(--s2v-paper); text-align: center; align-items: center; }
.s2v-beat.is-shaded { background: var(--s2v-paper-2); }

/* Beat layout primitives */
.s2v-row { display: flex; flex-direction: column; gap: 5cqw; }
.s2v-col { display: flex; flex-direction: column; gap: 2.5cqw; min-width: 0; }
.s2v-figure { display: flex; justify-content: center; }
.s2v-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5cqw; }

/* Type scale: phone sizes are container widths of the stage, desktop sizes clamp to the viewport */
.s2v-kicker { margin: 0; font-size: 3cqw; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--s2v-accent); }
.s2v-display { margin: 0; font-family: var(--s2v-display); font-size: 9.5cqw; line-height: 1.04; font-weight: 600; }
.s2v-h2 { margin: 0; font-family: var(--s2v-display); font-size: 8.4cqw; line-height: 1.06; font-weight: 600; }
.s2v-sub { margin: 0; font-family: var(--s2v-display); font-size: 4.6cqw; line-height: 1.3; font-weight: 500; color: var(--s2v-muted); }
.s2v-lede { margin: 0; font-size: 3.9cqw; line-height: 1.5; color: var(--s2v-muted); }
.s2v-beat.is-dark .s2v-lede, .s2v-beat.is-dark .s2v-sub { color: var(--s2v-paper-2); }
.s2v-small { font-size: 3.4cqw; }
.s2v-tiny { font-size: 2.8cqw; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--s2v-muted); }
.s2v-accent { color: var(--s2v-accent); }
.s2v-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 11cqw; padding: 2cqw 4cqw; font: 600 3.6cqw var(--s2v-body); background: #fff; color: var(--s2v-ink); border: 2px solid var(--s2v-ink); text-decoration: none; box-shadow: 4px 4px 0 var(--s2v-ink); transition: transform 0.2s; cursor: pointer; }
.s2v-btn:hover { transform: translateY(-2px); }
.s2v-btn.is-primary { background: var(--s2v-highlight); border-color: var(--s2v-highlight); }
.s2v-btn.is-ghost { background: transparent; color: var(--s2v-paper); border-color: var(--s2v-paper); box-shadow: none; }
.s2v-btn.is-quiet { background: transparent; color: var(--s2v-paper-2); border-color: var(--s2v-muted); box-shadow: none; }
.s2v-card { display: flex; flex-direction: column; gap: 1cqw; padding: 3cqw; background: #fff; color: var(--s2v-ink); border: 2px solid var(--s2v-ink); box-shadow: 3px 3px 0 var(--s2v-ink); text-decoration: none; transition: transform 0.2s; }
.s2v-card:hover { transform: translateY(-3px); }
.s2v-card-title { font-family: var(--s2v-display); font-size: 3.9cqw; font-weight: 600; line-height: 1.2; }
.s2v-panel { background: #fff; border: 2px solid var(--s2v-ink); box-shadow: 6px 6px 0 var(--s2v-ink); padding: 4cqw; display: flex; flex-direction: column; gap: 2.2cqw; }
.s2v-bubble { align-self: flex-end; max-width: 80cqw; background: var(--s2v-ink); color: var(--s2v-paper); padding: 3cqw 4cqw; font-size: 3.6cqw; line-height: 1.45; }
.s2v-svg { width: 62cqw; height: auto; max-width: 100%; }
.s2v-svg.is-wide { width: 88cqw; }
.s2v-svg.is-small { width: 46cqw; align-self: center; }
.s2v-svg.is-icon { width: 26cqw; }

/* Bottom bar */
.s2v-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--s2v-paper); border-top: 2px solid var(--s2v-ink); }
.s2v-track { height: 4px; background: var(--s2v-paper-2); }
.s2v-progress { height: 4px; background: var(--s2v-accent); }
.s2v-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; padding: 6px 16px; }
.s2v-controls { display: flex; align-items: center; gap: 8px; order: 1; }
.s2v-pause { min-height: 40px; padding: 0 12px; border: 2px solid var(--s2v-ink); background: #fff; color: var(--s2v-ink); font: 600 12px var(--s2v-body); cursor: pointer; }
.s2v-clock { font: 600 12px var(--s2v-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--s2v-muted); }
.s2v-clock-name { display: none; }
.s2v-dots { display: flex; align-items: center; justify-content: center; gap: 4px; order: 3; width: 100%; }
.s2v-dot { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; padding: 0; }
.s2v-dot span { display: block; width: 12px; height: 12px; border: 2px solid var(--s2v-ink); }
.s2v-dot[aria-pressed="true"] span { background: var(--s2v-accent); border-color: var(--s2v-accent); }
.s2v-back { order: 2; font: 600 12px var(--s2v-body); color: var(--s2v-ink); text-decoration: underline; text-underline-offset: 4px; }
.s2v-back:hover { color: var(--s2v-accent); }

@media (min-width: 640px) {
  .s2v-logo { top: 16px; left: 20px; }
  .s2v-logo-name { display: block; }
  .s2v-menu-btn { top: 16px; right: 20px; }
  .s2v-cta { display: inline-flex; top: 16px; }
  .s2v-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s2v-dots { order: 2; width: auto; }
  .s2v-back { order: 3; }
  .s2v-bar-inner { padding: 6px 24px; }
}

/* Desktop: the stage is the viewport, beats are wide rows that may scroll */
@media (min-width: 768px) {
  .s2v-main { display: block; background: transparent; padding: 0; min-height: 600px; }
  .s2v-stage { container-type: normal; aspect-ratio: auto; height: auto; max-width: none; position: absolute; inset: 0; border: 0; box-shadow: none; }
  .s2v-beat { display: block; overflow: auto; padding: 96px 40px 112px; }
  .s2v-beat.is-dark { display: flex; }
  .s2v-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px; max-width: 1100px; width: 100%; margin: auto; }
  .s2v-row.is-wide { max-width: 1180px; gap: 36px; }
  .s2v-col { flex: 1 1 380px; gap: 16px; }
  .s2v-col.is-narrow { flex: 1 1 300px; }
  .s2v-figure { flex: 1 1 320px; }
  .s2v-grid2 { gap: 12px; flex: 1 1 420px; }
  .s2v-kicker { font-size: 12px; }
  .s2v-display { font-size: clamp(2.2rem, 5.4vw, 4.6rem); }
  .s2v-h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
  .s2v-sub { font-size: clamp(1.2rem, 2vw, 1.6rem); }
  .s2v-lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; max-width: 520px; }
  .s2v-small { font-size: 14px; }
  .s2v-tiny { font-size: 11px; }
  .s2v-btn { min-height: 46px; padding: 10px 18px; font-size: 14px; }
  .s2v-card { gap: 6px; padding: 16px; box-shadow: 4px 4px 0 var(--s2v-ink); }
  .s2v-card-title { font-size: 1.2rem; }
  .s2v-panel { padding: 18px; gap: 10px; }
  .s2v-bubble { max-width: 320px; padding: 14px 18px; font-size: 15px; }
  .s2v-svg { width: 360px; }
  .s2v-svg.is-wide { width: 380px; }
  .s2v-svg.is-small { width: 300px; align-self: flex-start; }
  .s2v-svg.is-icon { width: 100px; }
  .s2v-clock-name { display: inline; }
  .s2v-bar-inner { padding: 6px 48px; }
}
@media (min-width: 1024px) {
  .s2v-beat { padding-left: 64px; padding-right: 64px; }
}

/* any2.video: the film owns the screen on /story/, so the site chrome steps aside */
body:has(.s2v-film) .chrome, body:has(.s2v-film) .foot, body:has(.s2v-film) .chatbox-toggle, body:has(.s2v-film) .chatbox { display: none !important; }
body:has(.s2v-film) main.wrap, body:has(.s2v-film) { margin: 0; padding: 0; max-width: none; }
.s2v-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.s2v-log { font: 500 3.1cqw/1.55 'JetBrains Mono', ui-monospace, monospace; display: grid; gap: 1.2cqw; }
.s2v-log .ts { color: var(--s2v-muted); margin-right: 1.5cqw; }
.s2v-log .ok { color: #0d8a4f; font-weight: 700; }
.s2v-log .bad { color: #d6265c; font-weight: 700; }
.s2v-log .retry { color: #b07800; font-weight: 700; }
.s2v-chips { display: flex; flex-wrap: wrap; gap: 1.5cqw; }
.s2v-chip { font: 700 2.8cqw 'JetBrains Mono', monospace; padding: 0.8cqw 2cqw; border: 2px solid var(--s2v-ink); background: #fff; }
.s2v-num { font: 700 2.8cqw 'JetBrains Mono', monospace; color: var(--s2v-accent); }
@media (min-width: 768px) {
  .s2v-log { font-size: 15px; gap: 6px; }
  .s2v-log .ts { margin-right: 10px; }
  .s2v-chip, .s2v-num { font-size: 12px; padding: 4px 10px; }
  .s2v-num { padding: 0; }
  .s2v-chips { gap: 8px; }
}
/* the site's own main/heading rules must not reach into the film */
body:has(.s2v-film) > main { max-width: none; width: 100%; margin: 0; padding: 0; }
.s2v-film { position: fixed; inset: 0; z-index: 30; overflow: hidden; }
.s2v-film .s2v-main { width: 100%; max-width: none; margin: 0; }
.s2v-film h1, .s2v-film h2, .s2v-film h3 { color: inherit; }
.s2v-film.is-dark .s2v-logo-name { color: var(--s2v-paper); }
@media (min-width: 768px) { .s2v-film .s2v-beat:not([hidden]) { display: flex; align-items: center; } }
.s2v-film .s2v-card-title { overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .s2v-film .s2v-svg.is-wide { width: min(620px, 46vw); }
  .s2v-film .s2v-col.is-narrow { flex: 1 1 320px; max-width: 460px; }
}
@media (min-width: 768px) {
  .s2v-film .s2v-col.is-narrow { max-width: 540px; flex-basis: 420px; }
  .s2v-film .s2v-display { font-size: clamp(2rem, 4vw, 3.5rem); }
  .s2v-film .s2v-h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
}

/* the pile: pain cards slam onto one screen */
.s2v-pile { position: relative; width: 100%; height: 108cqw; }
.s2v-pile .slot { position: absolute; width: 54cqw; }
.s2v-pile .card { background: #fff; color: var(--s2v-ink); border: 2px solid var(--s2v-ink); border-left: 2cqw solid #ff3f8e; box-shadow: 1cqw 1cqw 0 rgba(0,0,0,.35); padding: 2cqw 2.6cqw; font: 700 3.3cqw/1.3 'JetBrains Mono', ui-monospace, monospace; }
.s2v-pile .card b { display: block; color: #ff3f8e; font-size: 2.6cqw; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6cqw; }
.s2v-beat.is-alarm { background: #0b1a4a; color: #fbfcff; }
.s2v-beat.is-alarm .s2v-kicker { color: #ff3f8e; }
.s2v-beat.is-white { background: #ffffff; text-align: center; align-items: center; }
.s2v-mega { margin: 0; font-family: var(--s2v-display); font-weight: 800; font-size: 11cqw; line-height: 1.02; }
.s2v-mega .hl { background: #ffc31a; padding: 0 1cqw; }
/* the fixes */
.s2v-fixes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2cqw; }
.s2v-fix { display: flex; flex-direction: row; align-items: flex-start; gap: 1.6cqw; padding: 2cqw; background: #fff; border: 2px solid var(--s2v-ink); box-shadow: .8cqw .8cqw 0 var(--s2v-ink); text-decoration: none; color: var(--s2v-ink); }
.s2v-fix-thumb { flex: 0 0 11cqw; width: 11cqw; height: auto; border-radius: .6cqw; display: block; }
.s2v-fix-text { display: flex; flex-direction: column; gap: .8cqw; min-width: 0; }
.s2v-fix s { font: 500 2.5cqw/1.3 'JetBrains Mono', monospace; color: #6b7390; }
.s2v-fix strong { font: 800 3cqw/1.2 'JetBrains Mono', monospace; color: #0d8a4f; }
@media (min-width: 768px) {
  .s2v-pile { height: min(560px, 62vh); max-width: 760px; margin: 0 auto; }
  .s2v-pile .slot { width: 340px; }
  .s2v-pile .card { padding: 14px 16px; font-size: 17px; border-left-width: 10px; box-shadow: 6px 6px 0 rgba(0,0,0,.35); }
  .s2v-pile .card b { font-size: 12px; margin-bottom: 4px; }
  .s2v-mega { font-size: clamp(2.6rem, 5.6vw, 5rem); max-width: 1000px; }
  .s2v-fixes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; flex: 1 1 100%; }
  .s2v-fix { padding: 14px; gap: 12px; box-shadow: 4px 4px 0 var(--s2v-ink); }
  .s2v-fix-thumb { flex-basis: 92px; width: 92px; border-radius: 5px; }
  .s2v-fix-text { gap: 6px; }
  .s2v-fix s { font-size: 13px; } .s2v-fix strong { font-size: 15px; }
  .s2v-film .s2v-beat.is-alarm:not([hidden]), .s2v-film .s2v-beat.is-white:not([hidden]) { flex-direction: column; justify-content: center; }
  .s2v-beat.is-alarm .s2v-pilewrap { width: 100%; max-width: 900px; margin: 0 auto; }
}

/* pile v2: an illustration of the current pain beside the pile */
.s2v-pilegrid { display: flex; flex-direction: column; gap: 3cqw; }
.s2v-art { position: relative; height: 46cqw; display: flex; flex-direction: column; align-items: center; }
.s2v-art svg { height: 40cqw; width: auto; max-width: 100%; }
.s2v-artcap { position: relative; margin: 0; height: 5cqw; width: 100%; text-align: center; font: 800 4cqw 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: #ffc31a; }
.s2v-artcap > span { position: absolute; left: 0; right: 0; }
.s2v-pile { height: 74cqw; }
.s2v-pile .card { display: grid; grid-template-columns: auto 1fr; gap: 1.6cqw; align-items: start; font-size: 2.9cqw; }
.s2v-pile .card i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 6cqw; height: 6cqw; border-radius: 50%; background: #0b1a4a; color: #ffc31a; font: 800 3cqw 'JetBrains Mono', monospace; }
.s2v-film .s2v-pileend { text-align: center; color: #ff3f8e; }
@media (min-width: 768px) {
  .s2v-beat.is-alarm .s2v-pilewrap { max-width: 1180px; }
  .s2v-pilegrid { flex-direction: row; align-items: center; gap: 40px; }
  .s2v-art { flex: 1 1 46%; height: auto; }
  .s2v-art svg { width: 100%; height: auto; max-height: 52vh; }
  .s2v-artcap { height: 32px; font-size: 22px; margin-top: 8px; }
  .s2v-pile { flex: 1 1 54%; height: min(520px, 58vh); }
  .s2v-pile .slot { width: 360px; }
  .s2v-pile .card { font-size: 16px; gap: 12px; }
  .s2v-pile .card i { width: 34px; height: 34px; font-size: 15px; }
}

/* the turn: a small line, then a giant 2 */
.s2v-turnline { margin: 0; max-width: 92%; font: 700 4.4cqw/1.35 'JetBrains Mono', ui-monospace, monospace; color: var(--s2v-ink); }
.s2v-turnline .hl { background: #ffc31a; padding: 0 .8cqw; }
.s2v-twodays { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 3cqw; color: var(--s2v-ink); font-family: 'JetBrains Mono', ui-monospace, monospace; line-height: .82; }
.s2v-twodays .two { font-size: 64cqw; font-weight: 800; color: #1b5bff; }
.s2v-twodays .days { font-size: 16cqw; font-weight: 800; background: #ffc31a; padding: 0 2cqw; line-height: 1.1; }
@media (min-width: 768px) {
  .s2v-turnline { font-size: clamp(1.1rem, 1.8vw, 1.6rem); max-width: 900px; }
  .s2v-turnline .hl { padding: 0 6px; }
  .s2v-twodays { gap: 24px; }
  .s2v-twodays .two { font-size: min(56vh, 30vw); }
  .s2v-twodays .days { font-size: min(13vh, 7vw); padding: 0 14px; }
}
/* the "also in your language" bar must sit above the film */
body:has(.s2v-film) .lang-hint { position: fixed; top: 0; left: 0; right: 0; z-index: 70; }
.s2v-film .s2v-langs a.is-active { font-weight: 700; color: var(--s2v-ink); text-decoration: underline; }
/* "2 days" in longer languages (Tagen, jours, días) */
.s2v-twodays { flex-wrap: wrap; row-gap: 0; }
.s2v-twodays .two { font-size: 54cqw; }
.s2v-twodays .days { font-size: 12.5cqw; }
@media (min-width: 768px) {
  .s2v-twodays .two { font-size: min(46vh, 26vw); }
  .s2v-twodays .days { font-size: min(11vh, 6vw); }
  .s2v-turnline { font-size: clamp(1rem, 1.6vw, 1.45rem); }
}
