/* ============================================================
   AI UGC Studio — production-floor editorial
   paper white default / warm dark mode. hairlines, mono chrome,
   oversized serif, one signal-red accent. real video frames.
   ============================================================ */

:root,
[data-theme="light"] {
  --bg: #faf8f4;
  --bg-2: #ffffff;
  --bg-3: #f1ede5;
  --fg: #161310;
  --fg-dim: #6e675c;
  --line: rgba(22, 19, 16, 0.16);
  --line-soft: rgba(22, 19, 16, 0.08);
  --red: #e03a12;
  --on-red: #fff7f2;
  --chrome-overlay-top: linear-gradient(to bottom, rgba(10, 9, 8, 0.6), transparent);
  --chrome-overlay-bottom: linear-gradient(to top, rgba(10, 9, 8, 0.65), transparent);
  --frame-shadow: 0 1px 2px rgba(22, 19, 16, 0.06), 0 18px 44px -18px rgba(22, 19, 16, 0.25);
  --grain-opacity: 0.035;
  --nav-bg: rgba(250, 248, 244, 0.85);
}

[data-theme="dark"] {
  --bg: #0d0c0a;
  --bg-2: #14120f;
  --bg-3: #1b1814;
  --fg: #eae4d8;
  --fg-dim: #9d9486;
  --line: rgba(234, 228, 216, 0.16);
  --line-soft: rgba(234, 228, 216, 0.08);
  --red: #ff4b26;
  --on-red: #0d0c0a;
  --chrome-overlay-top: linear-gradient(to bottom, rgba(10, 9, 8, 0.6), transparent);
  --chrome-overlay-bottom: linear-gradient(to top, rgba(10, 9, 8, 0.65), transparent);
  --frame-shadow: none;
  --grain-opacity: 0.05;
  --nav-bg: rgba(13, 12, 10, 0.82);
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}

::selection {
  background: var(--red);
  color: var(--on-red);
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.015em;
}

em {
  font-style: italic;
}

.accent {
  color: var(--red);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- chrome: grain, playhead ---------- */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 80;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

.playhead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
}

.playhead span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
}

/* ---------- shared bits ---------- */

.mono-label {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.rec-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

.blink {
  animation: blink 1.4s steps(2, start) infinite;
}

@keyframes blink {
  to { opacity: 0; }
}

.tc {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

/* buttons */

.btn {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 1em 1.7em;
  border: 1px solid var(--fg);
  color: var(--fg);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--on-red);
  box-shadow: 0 8px 24px -10px rgba(224, 58, 18, 0.5);
}

.btn-primary:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.btn-ghost {
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-sm {
  padding: 0.65em 1.1em;
  font-size: 0.68rem;
}

.btn-lg {
  padding: 1.2em 2.4em;
  font-size: 0.9rem;
}

/* reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-delay="1"] {
  transition-delay: 0.12s;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 0.95rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* theme toggle */

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  flex: none;
}

.theme-toggle:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

[data-theme="light"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(7rem, 13vh, 9.5rem);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(1.6rem, 3vh, 2.6rem);
}

.hero-eyebrow .tc {
  color: var(--red);
}

.hero-attn {
  color: var(--red);
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  font-weight: 500;
}

.eyebrow-rule {
  flex: 0 1 90px;
  height: 1px;
  background: var(--line);
}

.hero-title {
  font-size: clamp(2.1rem, 4.9vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  max-width: 24ch;
  margin-bottom: clamp(2.4rem, 5vh, 3.8rem);
}

.hero-title em {
  white-space: normal;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: end;
  padding-bottom: clamp(2.8rem, 6vh, 5rem);
}

.hero-sub {
  max-width: 36rem;
  font-size: 1.1rem;
  color: var(--fg-dim);
  margin-bottom: 2.1rem;
}

.hero-sub strong {
  color: var(--fg);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* spec card */

.spec-card {
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem 1.1rem;
  background: var(--bg-2);
  box-shadow: var(--frame-shadow);
}

.spec-card-head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  flex: none;
}

.spec-row dd {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  text-align: right;
}

.spec-row-hl dd {
  color: var(--red);
  font-size: 0.72rem;
  line-height: 1.5;
  max-width: 14rem;
}

/* ticker */

.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  display: flex;
  user-select: none;
  background: var(--bg-2);
}

.ticker-track {
  flex: none;
  display: flex;
  align-items: center;
  min-width: 100%;
  padding: 0.85rem 0;
  animation: ticker 36s linear infinite;
}

.ticker-track span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
}

.ticker-track i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--red);
  margin: 0 2.2rem;
  flex: none;
}

@keyframes ticker {
  to { transform: translateX(-100%); }
}

/* ---------- sections ---------- */

.sec {
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

/* alternate section backgrounds so the switch between sections reads clearly */
main > section:nth-of-type(even) {
  background: var(--bg-3);
}

.sec-line {
  border-top: 1px solid var(--line-soft);
}

.sec-head {
  margin-bottom: clamp(2.6rem, 5.5vw, 4.5rem);
}

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.sec-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
}

.sec-title {
  font-size: clamp(2rem, 4.8vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  max-width: 24ch;
}

.sec-sub {
  margin-top: 1.5rem;
  max-width: 40rem;
  color: var(--fg-dim);
  font-size: 1.1rem;
}

/* ---------- 01 proof: showcase ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.chip-row li {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  padding: 0.45em 0.9em;
  white-space: nowrap;
}

.chip-row li:last-child {
  color: var(--red);
  border-color: var(--red);
}

.frames {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
}

.frames-6 {
  grid-template-columns: repeat(3, 1fr);
}

.frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  background: #0e0d0b;
  overflow: hidden;
  box-shadow: var(--frame-shadow);
}

.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-chrome {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(234, 228, 216, 0.85);
  pointer-events: none;
}

.frame-chrome.top {
  top: 0;
  background: var(--chrome-overlay-top);
}

.frame-chrome.bottom {
  bottom: 0;
  background: var(--chrome-overlay-bottom);
}

.frame-chrome .rec-dot {
  width: 6px;
  height: 6px;
}

.frame-name {
  color: #fff;
  font-weight: 500;
}

.frame-desc {
  text-align: right;
}

/* click-to-play overlay */

.frame-play {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 9, 8, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.frame-play:hover {
  background: rgba(10, 9, 8, 0.34);
}

.play-glyph {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(10, 9, 8, 0.5);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.play-glyph::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.frame-play:hover .play-glyph {
  transform: scale(1.1);
  border-color: var(--red);
  background: rgba(10, 9, 8, 0.7);
}

.frame.playing .frame-play {
  opacity: 0;
  pointer-events: none;
}

.cropmark {
  position: absolute;
  width: 11px;
  height: 11px;
  z-index: 4;
  pointer-events: none;
}

.cropmark.tl { top: 6px; left: 6px; border-top: 1px solid rgba(255,255,255,.5); border-left: 1px solid rgba(255,255,255,.5); }
.cropmark.tr { top: 6px; right: 6px; border-top: 1px solid rgba(255,255,255,.5); border-right: 1px solid rgba(255,255,255,.5); }
.cropmark.bl { bottom: 6px; left: 6px; border-bottom: 1px solid rgba(255,255,255,.5); border-left: 1px solid rgba(255,255,255,.5); }
.cropmark.br { bottom: 6px; right: 6px; border-bottom: 1px solid rgba(255,255,255,.5); border-right: 1px solid rgba(255,255,255,.5); }

/* ---------- 02 compare ---------- */

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4em 0.8em;
  background: rgba(10, 9, 8, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tag-red {
  background: var(--red);
  color: var(--on-red);
  border-color: var(--red);
}

.compare-grid .cropmark {
  display: none;
}

.center-cta {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.solution-videos {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- 03 shift ---------- */

.shift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.shift-col {
  padding: clamp(1.8rem, 3.5vw, 3rem);
  border: 1px solid var(--line-soft);
}

.shift-col + .shift-col {
  border-left: 0;
}

.shift-old,
.shift-old h3 {
  color: var(--fg-dim);
}

.shift-new {
  background: var(--bg-2);
  box-shadow: var(--frame-shadow);
}

.shift-year {
  margin-bottom: 1.6rem;
}

.shift-col h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 1.4rem;
}

.plain-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.8rem;
  border-top: 1px solid var(--line-soft);
  color: var(--fg-dim);
}

.plain-list li:first-child {
  border-top: 0;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 13px;
  height: 13px;
  background-color: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.shift-old .plain-list li::before,
.choice-a .plain-list li::before {
  background-color: var(--fg-dim);
  opacity: 0.75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.shift-new .plain-list li {
  color: var(--fg);
}

/* ---------- 04 problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.problem-copy p {
  color: var(--fg-dim);
  font-size: 1.12rem;
  max-width: 34rem;
  margin-bottom: 1.3rem;
}

.problem-card {
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  padding: 1.8rem 1.9rem;
  background: var(--bg-2);
  box-shadow: var(--frame-shadow);
}

.problem-card-big {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  color: var(--red);
  line-height: 1;
  margin: 0.9rem 0 1rem;
}

.problem-card p:last-child {
  color: var(--fg-dim);
  font-size: 0.97rem;
}

.problem-second {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-soft);
  max-width: 44rem;
}

.problem-second h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-bottom: 1rem;
}

.problem-second p {
  color: var(--fg-dim);
}

/* ---------- 05 solution / guarantee ---------- */

.guarantee-banner {
  border: 1px solid var(--red);
  background: var(--bg-2);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--frame-shadow);
}

.guarantee-banner .mono-label {
  color: var(--red);
  display: block;
  margin-bottom: 1rem;
}

.guarantee-text {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.25;
}

.guarantee-text strong {
  font-weight: 400;
}

/* ---------- 06 math ---------- */

.table-wrap {
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 400;
}

.spec-table thead th {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}

.spec-table tbody th {
  color: var(--fg-dim);
  font-size: 0.98rem;
  padding-left: 0;
}

.spec-table td {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1rem;
  color: var(--fg-dim);
}

.th-us,
.td-us {
  border-left: 1px solid var(--line);
}

.th-us {
  color: var(--red);
}

.td-us {
  color: var(--fg);
  background: var(--bg-2);
}

.tr-total th,
.tr-total td {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}

.tr-total td {
  font-size: 1.25rem;
}

.tr-total .td-us {
  color: var(--red);
}

.youget-label {
  display: block;
  margin-top: clamp(2.6rem, 5vw, 4rem);
  margin-bottom: 0.9rem;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
}

.stat {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 2.4vw, 2rem);
  border-left: 1px solid var(--line-soft);
}

.stat:first-child {
  border-left: 0;
}

.stat-val {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  line-height: 1;
  margin-bottom: 0.7rem;
  color: var(--red);
}

.math-callout {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.math-callout-big {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

.math-callout-sub {
  color: var(--fg-dim);
  font-size: 1.1rem;
}

/* ---------- 07 steps ---------- */

.steps {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: clamp(90px, 14vw, 180px) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.step-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1;
  color: var(--red);
}

.step h3 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.step-kicker {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--red);
  margin-bottom: 0.9rem;
}

.step p:last-child {
  color: var(--fg-dim);
  max-width: 40rem;
}

/* ---------- 08 plan ---------- */

.callsheet {
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--frame-shadow);
}

.callsheet-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem clamp(1.1rem, 2.4vw, 1.8rem);
  border-bottom: 1px solid var(--line-soft);
}

.callsheet-row:last-child {
  border-bottom: 0;
}

.callsheet-row > span:nth-child(2) {
  color: var(--fg-dim);
  font-size: 1rem;
}

.callsheet-total {
  border-top: 1px solid var(--line);
  background: var(--bg-3);
}

.callsheet-total > span:nth-child(2) {
  color: var(--fg);
  font-size: 1.05rem;
}

/* ---------- 09 what you get ---------- */

.get-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}

.get-list li {
  position: relative;
  padding: 1.05rem 0 1.05rem 1.8rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.08rem;
}

.get-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 15px;
  height: 15px;
  background-color: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- advantage cards (features + advantages) ---------- */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.adv-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--frame-shadow);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.adv-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.adv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.adv-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex: none;
}

.adv-icon svg {
  width: 21px;
  height: 21px;
}

.adv-num {
  color: var(--red);
}

.adv-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-bottom: 0.7rem;
}

.adv-card p {
  color: var(--fg-dim);
  font-size: 0.99rem;
}

/* ---------- 11 why us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.why-grid .sec-head {
  margin-bottom: 0;
}

.why-copy p {
  color: var(--fg-dim);
  margin-bottom: 1.3rem;
  font-size: 1.1rem;
}

.why-em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--fg);
  border-left: 2px solid var(--red);
  padding-left: 1.2rem;
}

/* ---------- 13 choices ---------- */

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
}

.choice {
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
}

.choice > .mono-label {
  display: block;
  margin-bottom: 1rem;
}

.choice h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 1.3rem;
}

.choice-a {
  border: 1px dashed var(--line);
  color: var(--fg-dim);
}

.choice-a h3 {
  color: var(--fg-dim);
}

.choice-b {
  border: 1px solid var(--red);
  background: var(--bg-2);
  box-shadow: var(--frame-shadow);
}

.choice-b .plain-list li {
  color: var(--fg);
}

.choice-b .btn {
  margin-top: 1.8rem;
}

.choices-guarantee {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  max-width: 42ch;
}

.choices-guarantee strong {
  font-weight: 400;
}

/* ---------- 14 window ---------- */

.window-inner .sec-title {
  margin-bottom: 1.8rem;
}

.window-copy {
  max-width: 46rem;
}

.window-copy p {
  color: var(--fg-dim);
  font-size: 1.12rem;
  margin-bottom: 1.2rem;
}

.window-copy strong {
  color: var(--fg);
  font-weight: 600;
}

.window-em {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  color: var(--fg) !important;
  border-left: 2px solid var(--red);
  padding-left: 1.2rem;
  margin-top: 1.8rem;
}

/* ---------- 15 faq ---------- */

.faq-list {
  border-top: 1px solid var(--line);
  max-width: 56rem;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1.4rem;
  padding: 1.5rem 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  transition: color 0.2s;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  color: var(--red);
}

.faq-num {
  color: var(--red);
}

.faq-mark {
  position: relative;
  width: 14px;
  height: 14px;
  align-self: center;
}

.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--fg-dim);
  transition: transform 0.3s ease;
}

.faq-mark::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.faq-mark::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

details[open] .faq-mark::after {
  transform: scaleY(0);
}

.faq-body {
  padding: 0 0 1.8rem;
  max-width: 46rem;
}

.faq-body p {
  color: var(--fg-dim);
}

/* ---------- 16 final cta ---------- */

.sec-cta {
  text-align: center;
  padding-block: clamp(6rem, 13vw, 10rem);
}

.cta-inner .sec-label {
  justify-content: center;
}

.cta-title {
  font-size: clamp(2.1rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  max-width: 26ch;
  margin: 0 auto 2.4rem;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.6rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--fg-dim);
}

.footer-legal {
  display: flex;
  gap: 1.6rem;
}

.footer-legal a:hover {
  color: var(--fg);
}

.footer-bar .tc {
  color: var(--red);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-bottom {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .spec-card {
    max-width: 30rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .btn-sm {
    font-size: 0.62rem;
    padding: 0.65em 0.9em;
  }

  .shift-grid {
    grid-template-columns: 1fr;
  }

  .shift-col + .shift-col {
    border-left: 1px solid var(--line-soft);
    border-top: 0;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .choices {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-actions .btn-sm {
    display: none;
  }
}

@media (max-width: 700px) {
  .frames-6 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.9rem;
    margin-inline: calc(clamp(1.25rem, 4vw, 3rem) * -1);
    padding-inline: clamp(1.25rem, 4vw, 3rem);
    scrollbar-width: none;
  }

  .frames-6::-webkit-scrollbar {
    display: none;
  }

  .frames-6 .frame {
    flex: 0 0 64%;
    scroll-snap-align: center;
  }

  .compare-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }

  .get-list {
    grid-template-columns: 1fr;
  }

  .stat-band {
    grid-template-columns: 1fr;
  }

  .stat {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .stat:first-child {
    border-top: 0;
  }

  .callsheet-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .hero-eyebrow {
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
  }

  .eyebrow-rule {
    display: none;
  }
}

/* ============================================================
   creative layer
   ============================================================ */

/* ---------- hero cinematic load-in ---------- */

html.js .hero [data-load] {
  opacity: 0;
}

html.js body.loaded .hero [data-load] {
  animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--ld) * 130ms);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-attn.typing::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--red);
  margin-left: 3px;
  vertical-align: -0.15em;
  animation: blink 0.8s steps(2, start) infinite;
}

/* ---------- can you tell: the guess game ---------- */

.tag {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.guessing .tag {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.guess-btn {
  position: absolute;
  left: 50%;
  bottom: 4.4rem;
  transform: translateX(-50%);
  z-index: 6;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7em 1.2em;
  background: rgba(10, 9, 8, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.guess-btn:hover {
  border-color: var(--red);
  background: rgba(10, 9, 8, 0.85);
  transform: translateX(-50%) translateY(-2px);
}

.revealed .guess-btn {
  opacity: 0;
  pointer-events: none;
}

.compare-verdict {
  text-align: center;
  margin-top: 1.6rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  min-height: 2em;
}

.reveal-link {
  background: none;
  border: 0;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  padding: 0 0 2px;
  transition: color 0.2s, border-color 0.2s;
}

.reveal-link:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ---------- 75 vs 8 volume viz ---------- */

.volume-viz {
  display: grid;
  gap: 1.8rem;
  margin-top: clamp(2.6rem, 5vw, 4rem);
}

.viz-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.6rem;
  align-items: start;
}

.viz-count {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  margin: 0.35rem 0 0.25rem;
}

.viz-cells {
  display: grid;
  grid-template-columns: repeat(15, minmax(8px, 22px));
  gap: 5px;
}

.viz-cells i {
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  transition: background 0.35s ease, border-color 0.35s ease;
  transition-delay: calc(var(--i) * 18ms);
}

.volume-viz.in .viz-trad i {
  background: var(--line);
}

.volume-viz.in .viz-ai i {
  background: var(--red);
  border-color: var(--red);
}

/* ---------- how it works: scroll-draw rail ---------- */

.steps-wrap {
  position: relative;
  padding-left: clamp(1.6rem, 3vw, 2.6rem);
}

.steps-track {
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
}

.steps-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
}

html:not(.js) .steps-track {
  display: none;
}

html.js .step .step-num {
  color: var(--fg-dim);
  opacity: 0.45;
  transition: color 0.4s ease, opacity 0.4s ease;
}

html.js .step.lit .step-num {
  color: var(--red);
  opacity: 1;
}

/* ---------- 90-day plan timeline ---------- */

.plan-timeline {
  margin-bottom: 1.2rem;
}

.plan-track {
  position: relative;
  display: flex;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.plan-phase {
  padding: 0.9rem 1rem;
  border-left: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  transition: background 0.3s ease;
}

.plan-phase:first-child {
  border-left: 0;
}

.plan-phase > .mono-label {
  white-space: nowrap;
  transition: color 0.3s ease;
}

.plan-ads {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--fg-dim);
  white-space: nowrap;
}

.plan-phase.active {
  background: var(--bg-3);
}

.plan-phase.active > .mono-label {
  color: var(--red);
}

.plan-playhead {
  position: absolute;
  top: -7px;
  bottom: -7px;
  left: 0;
  width: 2px;
  background: var(--red);
  pointer-events: none;
  transition: left 0.15s linear;
}

.plan-playhead::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-top: 7px solid var(--red);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

html:not(.js) .plan-playhead {
  display: none;
}

/* ---------- window: you-are-here strip ---------- */

.window-timeline {
  margin-top: clamp(2.4rem, 4.5vw, 3.4rem);
  max-width: 46rem;
}

.wt-note-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.wt-now-note {
  color: var(--fg);
}

.wt-end-note {
  color: var(--red);
}

.wt-track {
  position: relative;
  height: 2px;
  background: var(--line);
}

.wt-window {
  position: absolute;
  inset: 0;
  left: 20%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.window-inner.in .wt-window {
  transform: scaleX(1);
}

.wt-marker {
  position: absolute;
  left: 20%;
  top: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.wt-marker .rec-dot {
  margin-top: -4px;
}

.wt-marker em {
  font-style: normal;
  white-space: nowrap;
}

.wt-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
}

/* ---------- option 2: red pen circle ---------- */

.circled {
  position: relative;
  display: inline-block;
  margin-bottom: 1.1rem;
}

.circled h3 {
  margin-bottom: 0;
  position: relative;
}

.circle-svg {
  position: absolute;
  inset: -12px -22px;
  width: calc(100% + 44px);
  height: calc(100% + 24px);
  overflow: visible;
  pointer-events: none;
  transform: rotate(-1.5deg);
}

.circle-svg path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.choice-b.in .circle-svg path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.1s ease 0.5s;
}

/* ---------- mobile sticky cta ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 1.5rem) calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--fg);
  color: var(--bg);
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-cta .mono-label {
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
}

.sticky-cta.show {
  transform: none;
}

@media (max-width: 860px) {
  .sticky-cta {
    display: flex;
  }
}

/* ---------- viewfinder cursor over frames ---------- */

.frame {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg fill='none' stroke='%230d0c0a' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M4 12V7a3 3 0 0 1 3-3h5M20 4h5a3 3 0 0 1 3 3v5M28 20v5a3 3 0 0 1-3 3h-5M12 28H7a3 3 0 0 1-3-3v-5'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 12V7a3 3 0 0 1 3-3h5M20 4h5a3 3 0 0 1 3 3v5M28 20v5a3 3 0 0 1-3 3h-5M12 28H7a3 3 0 0 1-3-3v-5'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='2.6' fill='%23FF4B26'/%3E%3C/svg%3E") 16 16, crosshair;
}

/* ---------- creative layer: responsive ---------- */

@media (max-width: 700px) {
  .viz-row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .viz-cells {
    grid-template-columns: repeat(15, 1fr);
  }

  .plan-phase {
    padding: 0.7rem 0.6rem;
  }

  .plan-ads {
    display: none;
  }

  .guess-btn {
    bottom: 4rem;
  }

  .wt-ticks .mono-label:nth-child(even) {
    visibility: hidden;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .grain,
  .blink,
  .ticker-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .theme-toggle:hover {
    transform: none;
  }

  html.js .hero [data-load],
  html.js body.loaded .hero [data-load] {
    opacity: 1;
    animation: none;
  }

  .viz-cells i {
    transition: none;
  }

  .wt-window {
    transition: none;
    transform: scaleX(1);
  }

  .circle-svg path {
    stroke-dashoffset: 0;
    transition: none;
  }

  .steps-track {
    display: none;
  }

  html.js .step .step-num {
    color: var(--red);
    opacity: 1;
  }

  .plan-playhead {
    display: none;
  }

  .sticky-cta {
    transition: none;
  }
}

/* ============================================================
   editorial layer: emphasis, columns, drop caps, ghost numerals,
   reel divider, footer end-card, rail + section chip
   ============================================================ */

/* 1. emphasis pass */

.problem-copy strong,
.problem-second strong,
.why-copy strong,
.step strong {
  color: var(--fg);
  font-weight: 600;
}

/* 2. newspaper columns on dense sections (desktop) */

@media (min-width: 861px) {
  .window-copy {
    max-width: none;
    columns: 2;
    column-gap: 3.5rem;
    column-rule: 1px solid var(--line-soft);
  }

  .window-copy p {
    break-inside: avoid;
  }

  .window-copy .window-em {
    column-span: all;
    margin-top: 2.2rem;
  }

  .problem-second {
    max-width: none;
  }

  .problem-second h3 {
    max-width: 30ch;
  }

  .problem-second p {
    columns: 2;
    column-gap: 3.5rem;
    column-rule: 1px solid var(--line-soft);
  }
}

/* 3. drop caps */

.problem-copy > p:first-of-type::first-letter,
.why-copy > p:first-of-type::first-letter,
.window-copy > p:first-of-type::first-letter {
  float: left;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 3.3em;
  line-height: 0.8;
  padding: 0.07em 0.14em 0 0;
  color: var(--fg);
}

/* 4. ghost section numerals */

[data-secnum] {
  position: relative;
}

[data-secnum]::before {
  content: attr(data-secnum);
  position: absolute;
  top: -0.18em;
  right: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(6.5rem, 16vw, 13rem);
  line-height: 1;
  color: var(--fg);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

[data-secnum] > * {
  position: relative;
  z-index: 1;
}

/* 9. asymmetry: right-aligned headers */

.sec-head-right {
  text-align: right;
}

.sec-head-right .sec-title,
.sec-head-right .sec-sub {
  margin-left: auto;
}

.sec-head-right .sec-label {
  flex-direction: row-reverse;
}

[data-secnum].sec-head-right::before {
  right: auto;
  left: 0;
}

/* 5. film-strip divider */

.reel-divider {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding: 0.8rem 0;
  user-select: none;
}

.reel-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  padding-right: 0.5rem;
  min-width: 100%;
  animation: ticker 80s linear infinite;
}

.reel-track img {
  height: 96px;
  aspect-ratio: 9 / 16;
  width: auto;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* 6. footer end-card */

.footer-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}

.footer-big {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.7rem, 8vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.4rem);
}

.footer-big .rec-dot {
  width: clamp(12px, 1.6vw, 20px);
  height: clamp(12px, 1.6vw, 20px);
}

/* 7 + 8. right-edge rail and section chip */

.rail {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: none;
  flex-direction: column;
  gap: 7px;
}

.rail a {
  width: 14px;
  height: 2px;
  background: var(--line);
  transition: width 0.25s ease, background 0.25s ease;
}

.rail a:hover {
  background: var(--fg-dim);
}

.rail a.active {
  width: 24px;
  background: var(--red);
}

.sec-chip {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  z-index: 90;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  white-space: nowrap;
}

.sec-chip.show {
  opacity: 1;
}

@media (min-width: 1140px) {
  .rail {
    display: flex;
  }

  .sec-chip {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel-track {
    animation: none;
  }
}
