/* ==========================================================================
   Pointer — Black Friday landing page
   Three full-screen scenes; app.js mounts the one for today's date.
   ========================================================================== */

:root {
  --cream: #F2EAD7;                 /* the countdown colour — used for all light text */
  --cream-85: rgba(242, 234, 215, 0.85);
  --cream-82: rgba(242, 234, 215, 0.82);
  --cream-80: rgba(242, 234, 215, 0.80);
  --cream-78: rgba(242, 234, 215, 0.78);
  --cream-72: rgba(242, 234, 215, 0.72);
  --orange: #B04110;
  --orange-hover: #96370e;
  --paper: #fafafa;
  --ink: #1f1f1f;
  --ink-soft: #5b5b5b;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* overwritten per screen from config.js */
  --fade-in: 2s;
  --fade-out: 1.5s;
  --blur: 12px;
}

html, body { margin: 0; height: 100%; background: #000; }
body { -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: #000; }
/* Zoho's own sign-up form: present for its script, never shown (our field drives it) */
.zc-hidden { position: fixed; top: 0; left: 0; width: 1px; /* fixed: adds no height to the page */ height: 1px; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.zc-hidden #zcOptinOverLay, .zc-hidden #zcOptinSuccessPopup { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.screen {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  background: #000;
  color: var(--cream);
  font-family: Inter, system-ui, sans-serif;
}

.bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  background: #000;
}

/* iOS (e.g. Low Power Mode) draws its own ▶ over a video it won't autoplay — hide it.
   Separate rules: an unknown pseudo-element would void the whole rule in other browsers. */
.bg-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.bg-video::-webkit-media-controls { display: none !important; }

/* ── Overlay used by screens 1 & 2 ─────────────────────────────────────── */
@property --vp-o0 { syntax: '<number>'; inherits: false; initial-value: 0.14; }
@property --vp-o1 { syntax: '<number>'; inherits: false; initial-value: 0.63; }
.vp-overlay {
  position: absolute; inset: 0; pointer-events: none;
  --vp-o0: 0.14; --vp-o1: 0.63;
  background-color: rgba(0, 0, 0, var(--vp-o1));
  background-image: radial-gradient(ellipse closest-side at 50% 50%, rgba(0, 0, 0, var(--vp-o0)) 0%, rgba(0, 0, 0, var(--vp-o1)) 100%);
  background-repeat: no-repeat;
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  transition-property: --vp-o0, --vp-o1, backdrop-filter, -webkit-backdrop-filter;
  transition-timing-function: var(--ease-out);
  transition-duration: var(--fade-out);
}
.s-player[data-phase="play"] .vp-overlay {
  --vp-o0: 0.1; --vp-o1: 0.3;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* Screen 1 end state */
.s1.is-end .vp-overlay {
  --vp-o0: 0.14; --vp-o1: 0.63;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition-duration: var(--fade-in);
}
/* Screen 2 finale state */
.s2.is-finale .vp-overlay {
  --vp-o0: 0.25; --vp-o1: 0.6;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition-duration: 2.2s;
  transition-timing-function: ease-in-out;
}

/* ── Intro title (screens 1 & 2) ───────────────────────────────────────── */
.intro {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  padding: 0 48px; box-sizing: border-box; text-align: center; pointer-events: none;
}
.intro-title {
  margin: 0; max-width: 960px;
  font-size: clamp(32px, 4.2vw, 64px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em;
  color: var(--cream);
  opacity: 0; filter: blur(12px); transform: translateY(12px);
  transition: opacity var(--fade-in) var(--ease-out), filter var(--fade-in) var(--ease-out), transform var(--fade-in) var(--ease-out);
}
.s-player[data-phase="in"] .intro-title { opacity: 1; filter: none; transform: none; }
.s-player.is-leaving .intro-title {
  transform: translateY(-8px);
  transition-duration: var(--fade-out);
}

/* ── Header: Back · Skip · Mute (screens 1 & 2) ────────────────────────── */
.vp-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 40px 60px; box-sizing: border-box; pointer-events: none;
}
.vp-header > * { pointer-events: auto; }
.vp-controls { display: flex; align-items: center; gap: 12px; }
.vp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 14px 0 11px; border: 0; border-radius: 999px;
  background-color: #0a0a0a; color: var(--cream);
  font: 400 14px/1 Inter, system-ui, sans-serif; letter-spacing: 0.01em; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.vp-btn:hover { background-color: #222; }
.vp-btn:active { transform: scale(.96); }
.vp-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.vp-round { width: 32px; padding: 0; }
.ic-play { display: none; }
.is-end .ic-skip, .is-finale .ic-skip { display: none; }
.is-end .ic-play, .is-finale .ic-play { display: block; }
[aria-pressed="true"] .ic-sound { display: none; }
[aria-pressed="false"] .ic-muted { display: none; }

/* ── Screen 1 end screen ───────────────────────────────────────────────── */
.s1-end { position: absolute; inset: 0; box-sizing: border-box; text-align: center; pointer-events: none; }
.s1.is-end-in .s1-end { pointer-events: auto; }
.s1-content {
  position: absolute; left: 0; right: 0; bottom: 53%;
  display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3vw, 40px);
  padding: 0 clamp(16px, 4vw, 48px); box-sizing: border-box;
}
.s1-title { margin: 0; max-width: 1000px; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.s1-sub { margin: clamp(-24px, -1.8vw, -14px) 0 0; max-width: 720px; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; font-weight: 400; color: var(--cream-85); }
.s1-cta { position: absolute; left: 0; right: 0; top: 71%; display: flex; justify-content: center; padding: 0 48px; box-sizing: border-box; }
.s1-cta > .rise { display: flex; justify-content: center; width: 100%; }
.rise {
  opacity: 0; filter: blur(12px); transform: translateY(12px);
  transition: opacity var(--fade-in) var(--ease-out) var(--d, 0s), filter var(--fade-in) var(--ease-out) var(--d, 0s), transform var(--fade-in) var(--ease-out) var(--d, 0s);
}
.s1.is-end-in .rise { opacity: 1; filter: none; transform: none; }

/* ── Flip-card countdown ───────────────────────────────────────────────── */
.cd { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: clamp(4px, 0.9vw, 12px); }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1vw, 14px); }
.cd-card {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: clamp(56px, 7.8vw, 112px); height: clamp(66px, 9.2vw, 132px); box-sizing: border-box;
  border-radius: clamp(4px, 0.45vw, 6px);
  background-color: rgba(22, 21, 19, 0.9);
  border: 1px solid rgba(242, 234, 215, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(242, 234, 215, 0.08);
  overflow: hidden;
}
.cd-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background-color: rgba(242, 234, 215, 0.03); }
.cd-card::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background-color: #050505; box-shadow: 0 1px 0 rgba(242, 234, 215, 0.07); }
.cd-notch { position: absolute; top: calc(50% - 7px); width: 5px; height: 14px; background-color: #2a2824; z-index: 1; }
.cd-notch.l { left: -1px; border-radius: 0 2px 2px 0; }
.cd-notch.r { right: -1px; border-radius: 2px 0 0 2px; }
.cd-num {
  position: relative;
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(44px, 6.4vw, 92px); line-height: 1;
  padding-top: clamp(4px, 0.55vw, 8px); font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  color: var(--cream); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}
.cd-label { font-family: 'GFS Didot', Georgia, serif; font-size: clamp(11px, 1vw, 14px); line-height: 1.2; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; color: var(--cream-80); }
.cd-sep { display: block; height: clamp(66px, 9.2vw, 132px); line-height: clamp(66px, 9.2vw, 132px); font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(28px, 3.9vw, 56px); color: rgba(242, 234, 215, 0.55); }
.cd-short { display: none; }

/* Small countdown centred in the header while the clip plays (screens 1 & 2) */
.vp-cd {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -20px); /* cards (40px) level with the buttons, labels hang below */
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease-out, visibility 0s linear .6s;
}
.s-player[data-phase="play"] .vp-cd { opacity: 1; visibility: visible; transition: opacity .6s ease-out, visibility 0s; }
.vp-cd .cd, .vp-cd .cd-unit { gap: 4px; }
.vp-cd .cd-card { width: 34px; height: 40px; border-radius: 4px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(242, 234, 215, 0.08); }
.vp-cd .cd-num { font-size: 28px; padding-top: 3px; }
.vp-cd .cd-sep { height: 40px; line-height: 40px; font-size: 18px; }
.vp-cd .cd-notch { top: calc(50% - 4px); width: 3px; height: 8px; }
.vp-cd .cd-label { font-size: 9px; letter-spacing: 0.15em; }
.vp-cd .cd-full { display: none; }
.vp-cd .cd-short { display: inline; }

/* ── Newsletter: title + always-open email field ───────────────────────── */
.nl { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 420px; margin: 0; }
.nl-title { font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: 0.01em; color: var(--cream); }
.nl-field {
  position: relative; width: 100%; height: 44px; border-radius: 999px;
  background: #ececec; box-shadow: 0 0 0 2px rgba(242, 234, 215, .85);
  transition: box-shadow .2s ease;
}
.nl-field:focus-within { box-shadow: 0 0 0 2px var(--cream), 0 0 16px rgba(242, 234, 215, .25); }
.nl-input {
  position: absolute; inset: 0; width: 100%;
  border: 0; border-radius: 999px; background: transparent; outline: none;
  padding: 0 112px 0 18px; box-sizing: border-box;
  font: 400 16px/1 Inter, system-ui, sans-serif; color: #1f1f1f; caret-color: #1f1f1f; /* 16px: no iOS zoom on focus */
}
.nl-input::placeholder { color: #6f6f6f; }
.nl-btn {
  position: absolute; top: 4px; right: 4px; bottom: 4px; padding: 0 20px;
  border: 0; border-radius: 999px;
  background: var(--orange); color: var(--cream);
  font: 600 14px/1 Inter, system-ui, sans-serif; letter-spacing: .01em; white-space: nowrap;
  cursor: pointer; box-shadow: inset 0 1px 0 rgba(242, 234, 215, .22);
  transition: background-color .2s ease;
}
.nl-btn:hover { background: var(--orange-hover); }
.nl-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.nl-btn:disabled { opacity: .7; cursor: progress; }

/* ── Toast ─────────────────────────────────────────────────────────────── */
.toast-wrap { position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vh, 40px); z-index: 3; display: flex; justify-content: center; padding: 0 16px; box-sizing: border-box; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 12px 18px 12px 12px; box-sizing: border-box; border-radius: 14px;
  background-color: #0d0d0d; border: 1px solid rgba(242, 234, 215, 0.18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  color: var(--cream); font-family: Inter, system-ui, sans-serif; text-align: left;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.toast-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 999px; background-color: var(--orange); color: var(--cream); }
.toast-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.toast-title { font-size: 14px; line-height: 1.3; font-weight: 600; }
.toast-body { font-size: 13px; line-height: 1.35; font-weight: 400; color: var(--cream-78); }
.toast-close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; margin-left: 4px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--cream-78); cursor: pointer; }
.toast-close:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

/* ── Finale: header + two "classified" documents (screens 2 & 3) ───────── */
.finale {
  position: absolute; inset: 0; z-index: 1;
  overflow-y: auto; overflow-x: hidden; visibility: hidden;
  padding: clamp(96px, 7vw, 130px) 16px 0; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: clamp(40px, 3.4vw, 68px);
}
.is-finale .finale { visibility: visible; }
.f-head {
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; width: 100%;
  transform: translateY(110vh);
  transition: transform .9s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-finale .f-head { transform: none; }
.f-eyebrow { margin: 0 0 -8px; font-family: 'Courier Prime', Cousine, 'Courier New', monospace; font-weight: 700; font-size: clamp(13px, 0.9vw, 16px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-72); }
.f-title { margin: 0; font-family: Oswald, 'Roboto Condensed', 'Arial Narrow', Impact, sans-serif; font-weight: 700; font-size: 49px; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; color: var(--cream); }
.f-sub { margin: -4px 0 0; width: 100%; max-width: 561px; box-sizing: border-box; font-family: 'Courier Prime', Cousine, 'Courier New', monospace; font-size: clamp(16px, 1.1vw, 20px); line-height: 1.5; color: var(--cream-82); text-wrap: balance; }
.f-sub--sm { max-width: 46ch; font-size: 17px; }
.f-countdown { margin: 14px 0 10px; }
.f-code { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; font-family: 'Courier Prime', Cousine, 'Courier New', monospace; font-size: clamp(17px, 1.2vw, 23px); letter-spacing: 0.08em; color: var(--cream); }
.f-copy {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; margin-left: 4px;
  border: 1px solid rgba(242, 234, 215, .35); border-radius: 999px; background: transparent; color: var(--cream);
  font: 500 13px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.f-copy:hover { background: rgba(242, 234, 215, .1); border-color: rgba(242, 234, 215, .6); }
.f-copy:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.f-copy .ic-check, .is-copied .f-copy .ic-copy { display: none; }
.is-copied .f-copy .ic-check { display: block; }
.f-head .nl { margin-top: 4px; }

.f-docs { width: 100%; max-width: 1592px; display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 1.5vw, 30px); padding-bottom: 80px; }
.f-doc {
  position: relative; flex: 1 1 0; min-width: 0; max-width: 782px; min-height: min(940px, 92vh);
  overflow: hidden; background-color: var(--paper); color: var(--ink);
  padding: clamp(28px, 2.5vw, 50px); box-sizing: border-box;
  box-shadow: 0 30px 60px 8px rgba(0, 0, 0, 0.85);
  transition: transform 1.3s cubic-bezier(0.6, 0, 0.2, 1);
}
.f-doc.from-left { transform: translateX(-120vw); }
.f-doc.from-right { transform: translateX(120vw); }
.is-finale .f-doc { transform: none; }
.doc-bg { position: absolute; left: 50%; top: 50%; width: 94%; max-width: none; height: auto; transform: translate(-50%, -50%); pointer-events: none; user-select: none; }
.doc-inner { position: relative; }
.doc-h { margin: 0; text-align: center; font-family: 'Courier Prime', Cousine, 'Courier New', monospace; font-weight: 700; font-size: clamp(22px, 1.65vw, 33px); letter-spacing: 0.14em; line-height: 1.2; }
.doc-lede { margin: 22px 0 0; text-align: center; font-family: 'Courier Prime', Cousine, 'Courier New', monospace; font-weight: 700; font-size: clamp(13px, 0.85vw, 17px); letter-spacing: 0.08em; color: var(--ink-soft); }
.doc-rows { margin-top: clamp(40px, 3.6vw, 70px); }
.doc-thead, .doc-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 150px; column-gap: 10px; }
.doc-thead.dom, .doc-row.dom { grid-template-columns: 26px minmax(0, 1fr) 120px 110px; }
.doc-thead { padding-bottom: 14px; border-bottom: 1px solid #6b6b6b; font-family: 'Special Elite', 'Courier Prime', Cousine, monospace; font-size: clamp(14px, 0.85vw, 17px); }
.doc-thead .th-name { grid-column: 1 / 3; }
.doc-thead .th-price { text-align: right; }
.doc-row { align-items: center; height: 58px; box-sizing: border-box; border-bottom: 1px solid #d4d4d4; border-radius: 4px; color: inherit; text-decoration: none; transition: background-color .2s ease; }
a.doc-row:hover, a.doc-row:focus-visible { background: rgba(214, 211, 209, .7); }
a.doc-row:focus-visible { outline: 2px solid #78716c; outline-offset: -2px; }
.doc-row svg { display: block; margin-left: 10px; vector-effect: non-scaling-stroke; }
.doc-name { font-family: 'Courier Prime', Cousine, 'Courier New', monospace; font-weight: 700; font-size: 15px; letter-spacing: 0.06em; }
.rstamp { display: grid; place-items: center; width: 66px; aspect-ratio: 317 / 182; background: url("../assets/img/row-stamp.png") center / contain no-repeat; }
.rstamp > span { transform: rotate(-11deg) translateY(-1px); font-family: 'Courier Prime', Cousine, 'Courier New', monospace; font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: -0.02em; color: rgba(210, 11, 11, 0.6); white-space: nowrap; }
.doc-price { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; line-height: 1; font-family: 'Courier Prime', Cousine, 'Courier New', monospace; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.doc-price .now { font-size: 16px; }
.doc-price s { font-size: 12px; color: #78716c; }

/* Screen 2: the clip blurs and a blurred still fades in under the finale */
.s2 .bg-video, .s3 .bg-video { transition: filter 2.2s ease-in-out, transform 2.2s ease-in-out; }
/* Screens 2 & 3 finale: the clip blurs, a pre-blurred still (blur baked into the jpg, no CSS filter)
   fades in over it, then the clip is hidden, so scrolling the finale costs no live blur. */
.s2.is-finale .bg-video, .s3.is-finale .bg-video {
  filter: blur(var(--blur)); transform: scale(1.06); visibility: hidden;
  transition: filter 2.2s ease-in-out, transform 2.2s ease-in-out, visibility 0s linear 2.4s;
}
.bg-still {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none; opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease-in-out;
}
.is-finale .bg-still { opacity: 1; }

/* ── Screen 3 ──────────────────────────────────────────────────────────── */
.s3 { background: #424242; font-family: Inter, 'Segoe UI', Arial, sans-serif; }
.s3 .bg-video { background: #111; }
.film { position: absolute; inset: 0; pointer-events: none; }
.film-dark { background-color: rgba(0, 0, 0, 0.8); transition: opacity 2s ease-in-out; }
.film-radial { background-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%); opacity: 0; transition: opacity 2s ease-in-out; }
.film-final { background-color: rgba(0, 0, 0, 0.6); background-image: radial-gradient(ellipse closest-side at 50% 50%, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.6) 100%); background-repeat: no-repeat; opacity: 0; transition: opacity 2.2s ease-in-out; }
.s3.is-playing .film-dark { opacity: 0; }
.s3.is-playing:not(.is-finale) .film-radial { opacity: 1; }
.s3.is-finale .film-final { opacity: 1; }

.typewriter { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 96px 16px 64px; box-sizing: border-box; text-align: center; pointer-events: none; }
.s3.is-gone .typewriter { visibility: hidden; }
.type { margin: 0; font-family: 'JetBrains Mono', 'Courier New', monospace; font-weight: 700; font-size: clamp(22px, 2.6vw, 52px); line-height: 1.25; letter-spacing: 0.01em; text-align: center; white-space: pre-wrap; color: var(--cream); }
.caret { display: inline-block; width: .09em; height: 1.05em; margin-left: .06em; vertical-align: -.15em; background: #e0123a; animation: caret-blink 1s steps(1) infinite; }
.s3.is-typing .caret { animation: none; }
@keyframes caret-blink { 50% { opacity: 0; } }
.s3.is-playing .type { animation: dissolve-out .8s ease-in-out forwards; }
@keyframes dissolve-out { from { opacity: 1; filter: none; } to { opacity: 0; filter: blur(6px); } }

.s3-header { padding: clamp(16px, 2.8vw, 31px) clamp(16px, 3.4vw, 67px); }
.s3-pill { border: 0; border-radius: 999px; background-color: #0d0d0d; color: var(--cream); cursor: pointer; transition: background-color .15s ease; }
.s3-pill:hover { background-color: #000; }
.s3-pill:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.s3-back { display: inline-flex; align-items: center; gap: 8px; padding: 11px 17px 11px 14px; font: 500 15px/1 Inter, 'Segoe UI', system-ui, sans-serif; }
.s3-round { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; }
.s3-controls { display: flex; gap: 8px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .vp-header, .s3-header { padding: 24px; }
  .vp-side { padding-left: 24px; padding-right: 24px; }
  .vp-toast { bottom: 24px; padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 900px) {
  .f-docs { flex-direction: column; align-items: center; }
  .f-doc { width: 100%; flex: none; min-height: 0; }
  .doc-thead, .doc-row { grid-template-columns: 20px minmax(0, 1fr) 80px; }
  .doc-thead.dom, .doc-row.dom { grid-template-columns: 22px minmax(0, 1fr) 72px 64px; column-gap: 8px; }
  .rstamp { width: 58px; }
}
@media (max-width: 640px) {
  .cd-full { display: none; }
  .cd-short { display: inline; }
  .vp-cd { top: 100%; transform: translate(-50%, -8px); } /* below the buttons, no room beside them */
}
@media (prefers-reduced-motion: reduce) {
  .intro-title, .rise, .vp-overlay, .nl-field, .nl-btn, .f-head, .f-doc,
  .film, .film-final, .bg-video, .bg-still, .vp-cd, .toast { transition: none !important; }
  .caret { animation: none; }
  .s3.is-playing .type { animation: none; opacity: 0; }
}
