/* ===========================
   CSS Custom Properties
   =========================== */
:root {
  /* Colors */
  --bg: #0e0f14;
  --card: #1a1b20;
  --bg-80: rgba(14, 15, 20, 0.8);
  --headline-text: #ffffff;
  --main-text: rgba(255, 255, 255, 0.9);
  --secondary-text: rgba(255, 255, 255, 0.6);
  --tertiary-text: rgba(255, 255, 255, 0.4);
  --border-20: rgba(255, 255, 255, 0.2);
  --border-10: rgba(255, 255, 255, 0.1);
  --border-5: rgba(255, 255, 255, 0.05);
  --accent: #ff75c3;
  --positive: #9fff5b;
  --positive-70: rgba(159, 255, 91, 0.7);
  --negative: #ffa647;
  --blue: #70e2ff;
  --medium: #ffe83f;

  /* Spacing */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;

  /* Border radius */
  --radius-8: 8px;
  --radius-16: 16px;
  --radius-32: 32px;
  --radius-40: 40px;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--headline-text);
  font-family: 'Raleway', sans-serif;
  line-height: 1.5;
}

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

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

/* ===========================
   Typography Scale
   =========================== */

/*
  Max line-length (measure) per size — typographic recommendation: 45–75 chars, ~66 optimal.
  Instrument Sans avg char ≈ 0.48em; IBM Plex Mono avg char ≈ 0.60em (monospace).

  28px × 0.48 × 55 chars ≈ 660px  → statements / subtitles (fewer chars, more weight)
  20px × 0.48 × 66 chars ≈ 634px  → body 20  → 640px
  18px × 0.48 × 66 chars ≈ 570px  → body 18  → 580px
  16px × 0.48 × 66 chars ≈ 507px  → body 16  → 520px
  16px × 0.60 × 72 chars ≈ 691px  → caption mono 16 → 700px
  14px × 0.60 × 72 chars ≈ 605px  → caption mono 14 → 600px
  12px × 0.60 × 72 chars ≈ 518px  → caption mono 12 → 520px
*/
:root {
  --measure-statement: 660px;
  --measure-body-18:   640px;
  --measure-body-18:   580px;
  --measure-body-16:   520px;
  --measure-caption:   700px;
  --measure-caption-14: 600px;
  --measure-caption-12: 520px;
}

/* H1 — Unbounded Regular 80px */
.h1 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 80px;
  line-height: 1.2;
  letter-spacing: 0;
  /* Display heading — no measure cap, always short */
}

/* Hero Giant — Unbounded Bold 180px */
.h1-hero {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 180px;
  line-height: 1;
  letter-spacing: 0;
}

/* H2 — Unbounded Regular 40px */
.h2 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
  /* Section heading — no measure cap */
}

/* H3 — Unbounded Bold 80px (metric numbers) */
.h3-metric {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 1;
  letter-spacing: 0;
}

/* Subtitle — Instrument Sans SemiBold 28px */
.subtitle {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  max-width: var(--measure-statement);
}

/* Statement — Instrument Sans Medium Italic 28px */
.statement {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 28px;
  line-height: 1.6;
  max-width: var(--measure-statement);
}

/* Body 18 — Instrument Sans Regular 18px */
.body-18 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  max-width: var(--measure-body-18);
}

/* Body Medium 18 — Instrument Sans Medium 18px */
.body-18-medium {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  max-width: var(--measure-body-18);
}

/* Body Bold 18 — Instrument Sans Bold 18px */
.body-18-bold {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  max-width: var(--measure-body-18);
}

/* Body 16 — Instrument Sans Regular 16px */
.body-16 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  max-width: var(--measure-body-16);
}

/* Quote 20 — Instrument Sans Italic 20px */
.quote {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  max-width: var(--measure-body-18);
}

/* Caption 16 — IBM Plex Mono Regular 16px */
.caption-16 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  text-transform: uppercase;
  max-width: var(--measure-caption);
}

/* Caption 12 — IBM Plex Mono Regular 12px */
.caption-12 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  max-width: var(--measure-caption-12);
}

/* ===========================
   Color Utilities
   =========================== */
.color-headline { color: var(--headline-text); }
.color-main { color: var(--main-text); }
.color-secondary { color: var(--secondary-text); }
.color-tertiary { color: var(--tertiary-text); }
.color-accent { color: var(--accent); }
.color-positive { color: var(--positive); }
.color-positive-70 { color: var(--positive-70); }
.color-negative { color: var(--negative); }
.color-border { color: var(--border-20); }

/* ===========================
   Layout
   =========================== */
.page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 100vh;
}

.section {
  width: 100%;
  padding: var(--space-80);
  display: flex;
  flex-direction: column;
  gap: var(--space-80);
  position: relative;
}

.section--pt-40 { padding-top: 40px; }
.section--pb-160 { padding-bottom: 160px; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--space-80);
  row-gap: var(--space-80);
  width: 100%;
}

.grid-12--gap-40 {
  row-gap: var(--space-40);
}

.grid-12--gap-8 {
  row-gap: var(--space-8);
}

/* Column spans */
.col-1  { grid-column: 1; }
.col-2  { grid-column: 2; }
.col-3  { grid-column: 3; }
.col-4  { grid-column: 4; }
.col-5  { grid-column: 5; }
.col-1-4  { grid-column: 1 / span 4; }
.col-1-6  { grid-column: 1 / span 6; }
.col-1-7  { grid-column: 1 / span 7; }
.col-1-8  { grid-column: 1 / span 8; }
.col-1-9  { grid-column: 1 / span 9; }
.col-1-12 { grid-column: 1 / span 12; }
.col-4-6  { grid-column: 4 / span 6; }
.col-4-8  { grid-column: 4 / span 8; }
.col-5-6  { grid-column: 5 / span 6; }
.col-5-8  { grid-column: 5 / span 8; }
.col-5-4  { grid-column: 5 / span 4; }
.col-1-5  { grid-column: 1 / span 5; }
.col-6-7  { grid-column: 6 / span 7; }
.col-7-6  { grid-column: 7 / span 6; }
.col-8-5  { grid-column: 8 / span 5; }
.col-9-4  { grid-column: 9 / span 4; }
.col-10-3 { grid-column: 10 / span 3; }

/* ===========================
   Navbar
   =========================== */
.navbar-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 160px);
  z-index: 200;
  pointer-events: none;
}

.navbar {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-32);
  background: var(--bg-80);
  border: 1px solid var(--border-5);
  border-radius: var(--radius-40);
  padding: var(--space-8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  will-change: max-width;
  overflow: hidden;
  transition: max-width 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              gap 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-32);
  transition: gap 0.75s ease;
}

.navbar__logo {
  display: block;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--20, rgba(255, 255, 255, 0.20));
  border-radius: var(--radius-40);
  background: var(--accent);
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.navbar__link {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0;
  color: var(--headline-text);
  white-space: nowrap;
  text-decoration: none;
  padding: var(--space-8) 0;
}

.navbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) 20px;
  border: 1px solid var(--border-20);
  border-radius: var(--radius-32);
  background: transparent;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0;
  color: var(--headline-text);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.navbar__btn:hover {
  background: rgba(255,255,255,0.08);
}

/* Compact state (on scroll) */
.navbar-wrap.is-compact .navbar {
  max-width: 480px;
  gap: var(--space-16);
}

.navbar-wrap.is-compact .navbar__right {
  gap: var(--space-32);
}

@media (max-width: 1200px) {
  .navbar-wrap { width: calc(100% - 80px); }
}

@media (max-width: 809px) {
  .navbar-wrap { width: calc(100% - 32px); top: 16px; }
  .navbar { gap: var(--space-24); }
  .navbar__right { gap: var(--space-24); }
  .navbar__link { font-size: 16px; }
  .navbar__btn { font-size: 16px; padding: 10px 16px; }
}

@media (max-width: 395px) {
  .navbar-wrap { width: calc(100% - 32px); top: 16px; }
  .navbar { gap: var(--space-16); }
  .navbar__right { gap: var(--space-16); }
  .navbar__link { font-size: 14px; }
  .navbar__btn { font-size: 14px; padding: 8px 14px; }
}

/* Cases navbar pagination */
.navbar--cases .navbar__right {
  gap: var(--space-16);
}

.navbar__cases-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--tertiary-text);
  white-space: nowrap;
}

.navbar__case-btns {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.navbar__case-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--border-20);
  border-radius: var(--radius-32);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  color: var(--secondary-text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.navbar__case-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--main-text);
}

.navbar__case-btn--active {
  border-color: var(--secondary-text);
  background: rgba(255, 255, 255, 0.05);
  color: var(--headline-text);
}

/* ===========================
   TOC Island
   =========================== */
.toc-island {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 384px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  pointer-events: none;
}

.toc-island__panel {
  pointer-events: none;
  background: var(--bg-80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-20);
  border-radius: var(--radius-16);
  padding: 12px 8px 8px;
  width: 100%;
  min-width: 280px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom center;
  transition: opacity 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toc-island.is-open .toc-island__panel {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toc-island__header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--tertiary-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 10px 8px;
  margin: 0;
  border-bottom: 1px solid var(--border-5);
}

.toc-island__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 300px;
  overflow-y: auto;
}

.toc-island__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.toc-island__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.toc-island__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tertiary-text);
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

.toc-island__item.is-active .toc-island__dot {
  background: var(--headline-text);
  transform: scale(1.4);
}

.toc-island__label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--secondary-text);
  transition: color 0.15s;
}

.toc-island__item.is-active .toc-island__label,
.toc-island__item:hover .toc-island__label {
  color: var(--headline-text);
}

/* Pill */
.toc-island__pill {
  pointer-events: auto;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px 12px 32px;
  background: var(--bg-80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-5);
  border-radius: var(--radius-40);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.2s;
}

.toc-island__pill:hover {
  border-color: var(--border-20);
}

/* Left indicator dot */
.toc-island__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--headline-text);
  flex-shrink: 0;
}

/* Section name */
.toc-island__current {
  flex: 1;
  min-width: 0;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  color: var(--headline-text);
}

/* Circular progress */
.toc-island__progress {
  flex-shrink: 0;
  display: block;
}

.toc-island__progress-track {
  stroke: rgba(255, 255, 255, 0.12);
}

.toc-island__progress-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 16px 16px;
  transition: stroke-dashoffset 0.3s ease;
}

@media (max-width: 395px) {
  .toc-island { bottom: 16px; }
  .toc-island__pill { gap: 16px; padding: 10px 16px 10px 20px; }
  .toc-island__current { font-size: 15px; max-width: 160px; }
}

/* ===========================
   Image Blocks
   =========================== */
.img-block {
  width: 100%;
  border-radius: var(--radius-16);
  overflow: hidden;
  background: var(--card);
  position: relative;
}

.img-block--ratio-2-1 { aspect-ratio: 2 / 1; }
.img-block--ratio-16-9 { aspect-ratio: 1280 / 728.57; }

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

/* Video block — same shell as img-block, 16:9 */
.video-block {
  width: 100%;
  border-radius: var(--radius-16);
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 16 / 9;
  position: relative;
}

.video-block video,
.video-block iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  position: absolute;
  inset: 0;
}

/* ===========================
   Cards (Case / Shot)
   =========================== */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  text-decoration: none;
  width: 100%;
  cursor: pointer;
}

.card__picture {
  width: 100%;
  aspect-ratio: 1280 / 768;
  background: var(--card);
  border-radius: var(--radius-40);
  overflow: hidden;
  position: relative;
}

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

.card__description {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: flex-start;
  width: 100%;
}

.card__date {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  color: var(--secondary-text);
  white-space: nowrap;
}

.card__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: -0.54px;
  color: var(--headline-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ===========================
   Rail (Metadata sidebar)
   =========================== */
.rail {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.rail__label {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--tertiary-text);
}

.rail__value {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--secondary-text);
}

/* ===========================
   Divider
   =========================== */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-20);
  border: none;
  margin: 4px 0;
}

/* ===========================
   Accent Bar (left border quote)
   =========================== */
.accent-bar {
  border-left: 1px solid var(--accent);
  padding: var(--space-8) var(--space-24);
}

.accent-bar--neutral {
  border-left-color: var(--border-20);
}

/* ===========================
   Quote Block
   =========================== */
.quote-block {
  position: relative;
  padding: var(--space-40) 0;
  padding-left: 40px;
  max-width: 680px;
}

.quote-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--accent);
}

.quote-block__text {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 28px;
  line-height: 1.6;
  color: var(--headline-text);
}

/* ===========================
   Structural Reveal
   =========================== */
.structural-reveal {
  position: relative;
  padding: var(--space-40) 0;
  padding-left: 40px;
  max-width: 680px;
}

.structural-reveal::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-20);
}

.structural-reveal__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--tertiary-text);
  margin-bottom: var(--space-8);
}

.structural-reveal__heading {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 28px;
  line-height: 1.6;
  color: var(--headline-text);
  margin-bottom: var(--space-8);
  max-width: var(--measure-statement);
}

.structural-reveal__body {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--secondary-text);
  max-width: var(--measure-body-18);
}

/* ===========================
   Comparison Table
   =========================== */
.comparison {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comparison__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-80);
  margin-bottom: var(--space-16);
}

.comparison__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-80);
  padding: var(--space-16) 0;
}

.comparison__row + .comparison__row {
  border-top: 1px solid var(--border-20);
}

.comparison__cell-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--tertiary-text);
  margin-bottom: var(--space-8);
}

.comparison__cell-label--accent {
  color: var(--accent);
}

.comparison__cell-label--positive {
  color: var(--positive);
}

.comparison__cell-value {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--secondary-text);
}

.comparison__cell-value--main {
  color: var(--main-text);
}

.comparison__cell-value--positive-70 {
  color: var(--positive-70);
}

/* ===========================
   Numbered List
   =========================== */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.numbered-list__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--positive);
  margin-bottom: var(--space-16);
}

.numbered-list__label--tertiary {
  color: var(--tertiary-text);
}

.numbered-item {
  display: flex;
  gap: var(--space-16);
  align-items: flex-start;
}

.numbered-item__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--positive);
  flex-shrink: 0;
  padding-top: 4px;
}

.numbered-item__num--tertiary {
  color: var(--tertiary-text);
}

.numbered-item__text {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--secondary-text);
  flex: 1;
  max-width: var(--measure-body-18);
}

/* ===========================
   Timeline
   =========================== */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  gap: var(--space-32);
  align-items: flex-start;
}

.timeline-item__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--tertiary-text);
  width: 80px;
  flex-shrink: 0;
  padding-top: 4px;
}

.timeline-item__divider {
  width: 1px;
  background: var(--border-20);
  flex-shrink: 0;
  align-self: stretch;
  margin: 0 4px;
}

.timeline-item__content {
  flex: 1;
  padding-bottom: var(--space-40);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--main-text);
}

/* ===========================
   Move Steps (Case study actions)
   =========================== */
.move {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 600px;
}

.move__header {
  display: flex;
  gap: var(--space-24);
  align-items: flex-start;
}

.move__tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
  flex-shrink: 0;
  width: 68px;
}

.move__title {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: var(--headline-text);
}

.move__body {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--secondary-text);
  max-width: var(--measure-body-18);
}

/* ===========================
   Metric Card
   =========================== */
.metric-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.metric-card__number {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 1;
}

.metric-card__number--positive { color: var(--positive); }
.metric-card__number--negative { color: var(--negative); }
.metric-card__number--white { color: var(--headline-text); }
.metric-card__number--secondary { color: var(--secondary-text); }

.metric-card__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--tertiary-text);
}

.metric-card__sublabel {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--border-20);
}

/* ===========================
   Shots Grid
   =========================== */
.shots-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.shots-row {
  display: flex;
  gap: var(--space-24);
}

.shot {
  flex: 1;
  aspect-ratio: 1344 / 765;
  background: var(--card);
  border-radius: var(--radius-16);
  overflow: hidden;
  position: relative;
}

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

/* ===========================
   Section Heading
   =========================== */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.section-heading__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--tertiary-text);
}

.section-heading__title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  color: var(--headline-text);
}

/* ===========================
   Isolated Statement
   =========================== */
.isolated-statement {
  padding: var(--space-40) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 680px;
}

.isolated-statement__main {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.4;
  color: var(--headline-text);
}

.isolated-statement__sub {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--tertiary-text);
}

/* ===========================
   Design System V2 — Block Components
   =========================== */

/* Content Block: card with colored left border */
.cb {
  background: var(--card);
  border-left: 2px solid var(--accent);
  padding: var(--space-24) var(--space-40);
  border-radius: 0 var(--radius-16) var(--radius-16) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  max-width: 600px;
}
.cb--negative { border-left-color: var(--negative); }
.cb--blue     { border-left-color: var(--blue); }
.cb--positive { border-left-color: var(--positive); }
.cb--medium   { border-left-color: var(--medium); }
.cb--plain    { border-left: none; border-radius: var(--radius-16); max-width: none; }

.cb__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
}
.cb--negative .cb__label { color: var(--negative); }
.cb--blue     .cb__label { color: var(--blue); }
.cb--positive .cb__label { color: var(--positive); }
.cb--medium   .cb__label { color: var(--medium); }

.cb__title {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--main-text);
}

.cb__body {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--secondary-text);
}

/* Content Block — Highlight variant (large metric) */
.cb-highlight {
  background: var(--card);
  border-left: 1px solid var(--negative);
  padding: var(--space-48) 56px;
  border-radius: 0 var(--radius-16) var(--radius-16) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  max-width: 600px;
}

.cb-highlight__metric {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 1.2;
  color: var(--negative);
}

.cb-highlight__body {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: var(--secondary-text);
}

/* Idea Block: full rounded border, subtle tinted bg */
.idea-block {
  border: 1px solid rgba(159, 255, 91, 0.2);
  background: rgba(159, 255, 91, 0.03);
  padding: var(--space-24) var(--space-40);
  border-radius: var(--radius-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  max-width: 600px;
}
.idea-block--medium {
  border-color: rgba(255, 232, 63, 0.2);
  background: rgba(255, 232, 63, 0.03);
}
.idea-block--negative {
  border-color: rgba(255, 166, 71, 0.2);
  background: rgba(255, 166, 71, 0.03);
}

.idea-block__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--positive);
}
.idea-block--medium   .idea-block__label { color: var(--medium); }
.idea-block--negative .idea-block__label { color: var(--negative); }

.idea-block__title {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--main-text);
}

.idea-block__body {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--secondary-text);
}

/* ===========================
   Content Blocks
   =========================== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-80);
  width: 100%;
}

.content-grid--gap-40 {
  gap: var(--space-40);
}

.restrict {
  display: flex;
  flex-direction: column;
  gap: var(--space-56);
}

.restrict--gap-40 {
  gap: var(--space-40);
}

.restrict--gap-80 {
  gap: var(--space-80);
}

/* ===========================
   Features List
   =========================== */
.features-list {
  display: flex;
  flex-direction: column;
}

.features-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  padding: var(--space-16) 0;
}

.features-row + .features-row {
  border-top: 1px solid var(--border-20);
}

.features-row__label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--headline-text);
}

.features-row__value {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--secondary-text);
}

/* ===========================
   Before/After Compare
   =========================== */
.ba-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  padding: var(--space-16) 0;
}

.ba-compare__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.ba-compare__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--tertiary-text);
}

.ba-compare__text {
  font-family: 'Instrument Sans', sans-serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--secondary-text);
}

.ba-compare__text--after {
  color: var(--main-text);
  font-style: italic;
}

/* ===========================
   Small Note Block
   =========================== */
.note-block {
  border-left: 1px solid var(--border-20);
  padding: 4px var(--space-24);
  max-width: 600px;
}

.note-block__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--border-20);
  margin-bottom: var(--space-8);
}

.note-block__text {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--secondary-text);
  max-width: 480px;
}

/* ===========================
   Contrast Statement
   =========================== */
.contrast-statement {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-24) 0;
  max-width: 600px;
}

.contrast-statement__line {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 28px;
  line-height: 1.6;
}

.contrast-statement__line--dim {
  color: var(--secondary-text);
}

.contrast-statement__line--bright {
  color: var(--headline-text);
}

.contrast-statement__divider {
  width: 40px;
  height: 1px;
  background: var(--border-20);
}

/* ===========================
   Other Cases Section
   =========================== */
.other-cases__cards {
  display: flex;
  gap: var(--space-40);
}

.other-cases__cards .card {
  flex: 1;
}

/* ===========================
   Caption 14 — IBM Plex Mono 14px
   =========================== */
.caption-14 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ===========================
   Open Question Block
   =========================== */
.open-q {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-16) 0;
}

.open-q__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--tertiary-text);
}

.open-q__heading {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: var(--headline-text);
}

.open-q__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.open-q__body p {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--secondary-text);
}

.open-q__footnote {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tertiary-text);
}

/* ===========================
   Fixes Grid (What I Fixed section)
   =========================== */
.fixes-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fixes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-80);
  padding: var(--space-24) 0;
  border-top: 1px solid var(--border-20);
}

.fixes-row:first-child {
  border-top: none;
}

.fixes-cell {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.fixes-cell__problem {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tertiary-text);
}

.fixes-cell__fix {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--positive-70);
}

/* ===========================
   Narrative Shift (pre-reveal block)
   =========================== */
.narrative-shift {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 680px;
  padding: var(--space-40) 0;
}

.narrative-shift__reveal {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

/* ===========================
   Duality Table (two-column comparison)
   =========================== */
.duality-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
}

.duality-table__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-80);
  padding-bottom: var(--space-16);
}

.duality-table__header-cell {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
}

.duality-table__header-cell--dim { color: var(--tertiary-text); }
.duality-table__header-cell--accent { color: var(--accent); }

.duality-table__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-80);
  padding: var(--space-16) 0;
  border-top: 1px solid var(--border-20);
}

.duality-table__left {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--secondary-text);
}

.duality-table__right {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--main-text);
}

/* ===========================
   Responsive — 1200px
   =========================== */
@media (max-width: 1200px) {
  .section { padding: var(--space-40); gap: var(--space-48); }

  .grid-12 {
    column-gap: var(--space-48);
    row-gap: var(--space-48);
  }

  .h1 { font-size: 56px; }
  .h2 { font-size: 32px; }
  .h3-metric { font-size: 56px; }
  .section-heading__title { font-size: 32px; }
  .metric-card__number { font-size: 56px; }

  .subtitle,
  .statement,
  .quote-block__text,
  .structural-reveal__heading { font-size: 24px; }
  .isolated-statement__main { font-size: 24px; }
  .cb-highlight__metric { font-size: 56px; }

  .navbar__left { gap: var(--space-24); padding-right: var(--space-24); }
  .navbar__link, .navbar__btn { font-size: 18px; }
  .navbar__btn { height: 56px; }
}

/* ===========================
   Responsive — 809px
   =========================== */
@media (max-width: 809px) {
  .section { padding: var(--space-16); gap: var(--space-40); }
  .section--pt-40 { padding-top: var(--space-32); }
  .section--pb-160 { padding-bottom: var(--space-80); }
  .img-block { border-radius: var(--radius-16); }

  .grid-12 {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: var(--space-32);
  }

  /* Все колонки — полная ширина */
  [class*="col-"] { grid-column: 1 / -1; }

  .h1 { font-size: 40px; }
  .h2 { font-size: 28px; }
  .h3-metric { font-size: 40px; }
  .section-heading__title { font-size: 24px; }
  .metric-card__number { font-size: 48px; }

  .subtitle,
  .statement,
  .quote-block__text,
  .structural-reveal__heading { font-size: 20px; }
  .isolated-statement__main { font-size: 20px; }
  .cb-highlight__metric { font-size: 40px; }
  .cb, .cb-highlight, .idea-block { max-width: 100%; padding: var(--space-16) var(--space-24); }

  /* Таблица сравнения — в одну колонку */
  .comparison__header,
  .comparison__row { grid-template-columns: 1fr; gap: var(--space-8); }

  /* Прочие компоненты */
  .ba-compare { grid-template-columns: 1fr; }
  .features-row { grid-template-columns: 1fr; gap: var(--space-8); }
  .duality-table__header,
  .duality-table__row { grid-template-columns: 1fr; gap: var(--space-8); }
  .other-cases__cards { flex-direction: column; }
  .shots-row { flex-direction: column; }

  .navbar__left { gap: var(--space-16); padding-right: var(--space-16); }
  .navbar__link { font-size: 16px; }
  .navbar__btn { font-size: 16px; height: 48px; padding: 0 var(--space-16); }
}

/* ===========================
   Responsive — Mobile 395px
   =========================== */
@media (max-width: 395px) {
  .section { padding: var(--space-16); gap: var(--space-32); }

  .h1 { font-size: 28px; }
  .h2 { font-size: 22px; }
  .h3-metric { font-size: 40px; }
  .section-heading__title { font-size: 22px; }
  .metric-card__number { font-size: 48px; }

  .body-18, .body-18-medium, .body-18-bold { font-size: 17px; }

  .card { gap: var(--space-24); }
  .card__date { font-size: 14px; }
  .card__title { font-size: 22px; white-space: normal; }

  .navbar__left { gap: var(--space-12); padding-right: var(--space-12); }
  .navbar__link { display: none; }
  .navbar__btn { font-size: 14px; height: 44px; padding: 0 var(--space-12); }
}

/* ===========================
   Page Loader
   =========================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Isometric boxes container */
.boxes {
  --box-size: 40px;
  --duration: 800ms;
  width: calc(var(--box-size) * 3);
  height: calc(var(--box-size) * 2);
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-60deg) rotateZ(45deg);
  transform-origin: 50% 50%;
}

.box {
  width: var(--box-size);
  height: var(--box-size);
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
}

.box-1 { animation: boxMove1 var(--duration) linear infinite; }
.box-2 { animation: boxMove2 var(--duration) linear infinite; }
.box-3 { animation: boxMove3 var(--duration) linear infinite; }
.box-4 { animation: boxMove4 var(--duration) linear infinite; }

/* Cube faces */
.face {
  position: absolute;
  width: var(--box-size);
  height: var(--box-size);
  left: 0;
  top: 0;
  backface-visibility: hidden;
}

.face-front {
  background: var(--accent);
  transform: translateZ(calc(var(--box-size) / 2));
}

.face-back {
  background: var(--accent);
  transform: rotateY(180deg) translateZ(calc(var(--box-size) / 2));
}

.face-right {
  background: #c74396;
  transform: rotateY(-90deg) translateZ(calc(var(--box-size) / 2));
}

.face-top {
  background: #ffb0df;
  transform: rotateX(90deg) translateZ(calc(var(--box-size) / 2));
}

/* Box move keyframes */
@keyframes boxMove1 {
  0%,  50% { transform: translate(100%, 0); }
  100%     { transform: translate(200%, 0); }
}

@keyframes boxMove2 {
  0%       { transform: translate(0, 100%); }
  50%      { transform: translate(0, 0); }
  100%     { transform: translate(100%, 0); }
}

@keyframes boxMove3 {
  0%,  50% { transform: translate(100%, 100%); }
  100%     { transform: translate(0, 100%); }
}

@keyframes boxMove4 {
  0%       { transform: translate(200%, 0); }
  50%      { transform: translate(200%, 100%); }
  100%     { transform: translate(100%, 100%); }
}
