:root {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --ink: #0a0a0a;
  --muted: #363636;
  --accent: #c81e1e;
  --accent-ink: #ffffff;
  --field-1: #0a0a0a;
  --field-1-ink: #ffffff;
  --field-1-surface: #181818;
  --field-1-muted: #d6d6d6;
  --brand-accent: var(--accent);

  --font-display: 'Boska', Georgia, 'Times New Roman', serif;
  --font-text: 'Boska', Georgia, 'Times New Roman', serif;

  --step-small: 14px;
  --step-body: 18px;
  --step-lead: clamp(20px, 1.55vw, 24px);
  --step-head: clamp(26px, 2.9vw, 42px);
  --step-display: clamp(36px, 5vw, 72px);

  --margin: clamp(18px, 3vw, 40px);
  --gutter: clamp(16px, 2vw, 28px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 260ms;
  --t-reveal: 850ms;
  --t-open: 1200ms;
  --stagger-line: 90ms;
  --stagger-item: 75ms;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  overflow-x: clip;
}

::selection {
  background-color: var(--accent);
  color: var(--accent-ink);
}

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

img, video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

figure {
  margin: 0;
}

/* Typography Scale — Strictly 5 Steps */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: inherit;
  margin: 0;
  hyphens: none;
  font-kerning: normal;
}

.t-display, h1 {
  font-size: var(--step-display);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.t-head, h2 {
  font-size: var(--step-head);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.t-lead, h3, .statement {
  font-size: var(--step-lead);
  line-height: 1.26;
  letter-spacing: -0.01em;
}

.t-body, p, li, dd, dt, summary, td, th, label, input, select, textarea, button, a {
  font-size: var(--step-body);
  line-height: 1.55;
}

.t-small, small, .meta-note {
  font-size: var(--step-small);
  line-height: 1.45;
}

p {
  margin: 0;
  max-width: 62ch;
}

p + p {
  margin-top: 0.9em;
}

.text-muted {
  color: var(--muted);
}

.field-dark .text-muted {
  color: var(--field-1-muted);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Frame & 12-Column Grid */
.wrap {
  width: 100%;
  max-width: 1840px;
  margin-inline: auto;
  padding-inline: var(--margin);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--gutter);
  align-items: start;
}

.col-1-5 { grid-column: 1 / 6; }
.col-1-6 { grid-column: 1 / 7; }
.col-1-7 { grid-column: 1 / 8; }
.col-1-12 { grid-column: 1 / 13; }
.col-3-12 { grid-column: 3 / 13; }
.col-5-12 { grid-column: 5 / 13; }
.col-6-12 { grid-column: 6 / 13; }
.col-7-12 { grid-column: 7 / 13; }
.col-8-12 { grid-column: 8 / 13; }

/* Sections & Surfaces (Separated by Space & Tone Steps Only — Zero Hairlines) */
.section-pad {
  padding-block: 96px;
}

.surface-ground {
  background-color: var(--bg);
  color: var(--ink);
}

.surface-step {
  background-color: var(--surface);
  color: var(--ink);
}

.field-dark {
  background-color: var(--field-1);
  color: var(--field-1-ink);
}

.tile-surface {
  background-color: var(--surface);
  color: var(--ink);
  padding: 32px;
}

.field-dark .tile-surface {
  background-color: var(--field-1-surface);
  color: var(--field-1-ink);
}

/* Plain Header Bar (Static, Equal Margins, Zero Chrome) */
.site-header {
  background-color: var(--bg);
  color: var(--ink);
  padding-block: 22px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.07em;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}

.nav-link.is-active {
  text-decoration-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  background-color: var(--surface);
  color: var(--ink);
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
  font-family: var(--font-text);
}

.mobile-drawer {
  display: none;
  background-color: var(--surface);
  padding: 24px var(--margin);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Flat Square-Cornered Buttons & Links */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  background-color: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  font-family: var(--font-text);
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-surface {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  background-color: var(--surface);
  color: var(--ink);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  font-family: var(--font-text);
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.field-dark .btn-surface {
  background-color: var(--field-1-surface);
  color: var(--field-1-ink);
}

.btn-surface:active {
  transform: scale(0.97);
}

.link-inline {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.07em;
  transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: var(--ink);
    color: var(--bg);
  }
  .field-dark .btn-primary:hover {
    background-color: var(--bg);
    color: var(--ink);
  }
  .btn-surface:hover {
    background-color: var(--ink);
    color: var(--bg);
  }
  .nav-link:hover, .link-inline:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
  }
}

/* Blueprint: Hero — Sentence split by a frame */
.hero-stage {
  padding-top: 28px;
  padding-bottom: 84px;
}

.hero-sentence-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 28px;
  align-items: center;
}

.hero-copy-col {
  grid-column: 1 / 7;
}

.hero-media-col {
  grid-column: 7 / 13;
}

.inline-slot {
  display: inline-block;
  width: 2.1em;
  height: 0.78em;
  vertical-align: baseline;
  overflow: clip;
  margin-inline: 0.12em;
  background-color: var(--surface);
}

.inline-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-reel-frame {
  position: relative;
  overflow: clip;
  background-color: var(--surface);
  aspect-ratio: 16 / 10;
}

.hero-reel-frame img,
.hero-reel-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bottom-bar {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 20px;
  align-items: end;
}

.hero-lead-wrap {
  grid-column: 1 / 7;
}

.hero-cta-wrap {
  grid-column: 7 / 13;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

/* Blueprint 1: list — Statement, table pushed right */
.practice-row-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.practice-row {
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  column-gap: var(--gutter);
  align-items: baseline;
  padding: 8px 0;
  background-color: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--t-ui) var(--ease-out), color var(--t-hover) ease;
}

.practice-row > :last-child {
  text-align: right;
}

@media (hover: hover) and (pointer: fine) {
  .practice-row:hover {
    color: var(--accent);
    transform: translateX(6px);
  }
}

/* Blueprint 2: how-it-works — Lines that step across (staircase) */
.staircase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  row-gap: 48px;
  column-gap: var(--gutter);
}

.stair-step-1 { grid-column: 1 / 8; }
.stair-step-2 { grid-column: 6 / 13; }
.stair-step-3 { grid-column: 1 / 8; }
.stair-step-4 { grid-column: 6 / 13; }

/* Blueprint 3: about — Portrait as drop cap */
.dropcap-portrait {
  float: left;
  width: 148px;
  height: 148px;
  margin-right: 22px;
  margin-bottom: 12px;
  object-fit: cover;
  object-position: top;
}

/* Blueprint 4: work — Names as one paragraph with inline frames */
.work-inline-paragraph {
  line-height: 1.45;
  max-width: none;
}

.work-inline-item {
  display: inline;
  color: inherit;
  text-decoration: none;
  transition: color var(--t-hover) ease;
}

.work-inline-thumb {
  display: inline-block;
  width: 1.6em;
  height: 1.05em;
  vertical-align: middle;
  overflow: clip;
  margin-inline: 0.25em;
  transition: transform var(--t-ui) var(--ease-out);
}

.work-inline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .work-inline-item:hover {
    color: var(--accent);
  }
  .work-inline-item:hover .work-inline-thumb {
    transform: scale(1.22);
  }
}

/* Blueprint 5: faq — Wide heading, indented questions */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  padding: 8px 0;
  background-color: transparent;
}

.faq-item[open] {
  background-color: transparent;
  color: var(--ink);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "−";
}

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

.faq-answer {
  margin-top: 12px;
  max-width: 62ch;
}

.faq-item[open] .faq-answer {
  color: var(--muted);
}

/* Interactive Tool */
.roadmap-shell {
  background-color: var(--field-1-surface);
  color: var(--field-1-ink);
  padding: 32px;
}

.roadmap-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.roadmap-tab-btn {
  padding: 10px 18px;
  background-color: var(--field-1);
  color: var(--field-1-muted);
  border: 0;
  cursor: pointer;
  font-family: var(--font-text);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.roadmap-tab-btn.is-active {
  background-color: var(--accent);
  color: var(--accent-ink);
}

/* Tables & Forms (Native semantic elements) */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #d4d4d4;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid #cccccc;
  border-radius: 0;
  font-family: var(--font-text);
}

/* Motion Layer — Masked Line Reveals, Scroll Entrances & Image Shutter */
.lines .line {
  display: block;
  overflow: clip;
  padding-top: 0.1em;
  padding-bottom: 0.12em;
  margin-top: -0.1em;
  margin-bottom: -0.12em;
}

.lines [data-line] {
  display: block;
}

.photo-frame {
  overflow: clip;
  background-color: var(--surface);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] {
    transform: translateY(102%);
    animation: line-rise 780ms var(--ease-expo) forwards;
    animation-delay: calc(80ms + var(--i, 0) * var(--stagger-line));
  }

  .js [data-load] {
    transform: translateY(18px);
    animation: load-settle 680ms var(--ease-out) forwards;
    animation-delay: var(--d, 160ms);
  }

  .js [data-open] img,
  .js [data-open] video {
    transform: scale(1.07);
    animation: media-settle 1150ms var(--ease-soft) 100ms forwards;
  }

  .js [data-reveal] {
    transform: translateY(22px);
    transition: transform 780ms var(--ease-expo) calc(var(--stagger, 0) * var(--stagger-item));
  }

  .js [data-reveal].is-in {
    transform: translateY(0);
    animation: reveal-glide 780ms var(--ease-expo) calc(var(--stagger, 0) * var(--stagger-item)) both;
  }

  .js .photo-frame img {
    transform: scale(1.05);
    transition: transform 1200ms var(--ease-soft);
  }

  .js .photo-frame.is-in img {
    transform: scale(1);
  }
}

@keyframes line-rise {
  to { transform: translateY(0); }
}

@keyframes load-settle {
  to { transform: translateY(0); }
}

@keyframes media-settle {
  to { transform: scale(1); }
}

@keyframes reveal-glide {
  from { transform: translateY(22px); }
  to { transform: translateY(0); }
}

/* Responsive Tablet & Phone Composition (390px and 768px) */
@media (max-width: 960px) {
  .nav-links,
  .header-actions .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .hero-copy-col,
  .hero-media-col,
  .hero-lead-wrap,
  .hero-cta-wrap,
  .col-1-5,
  .col-1-6,
  .col-1-7,
  .col-3-12,
  .col-5-12,
  .col-6-12,
  .col-7-12,
  .col-8-12,
  .stair-step-1,
  .stair-step-2,
  .stair-step-3,
  .stair-step-4 {
    grid-column: 1 / 13;
  }
  .practice-row {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .practice-row > :last-child {
    text-align: left;
  }
  .section-pad {
    padding-block: 64px;
  }
  .dropcap-portrait {
    width: 112px;
    height: 112px;
  }
}
