/* ─────────────────────────────────────────────────────────────
   Rung Productions — Base + section styles
   Tokens only. Never inline hex / px / easing. See tokens.css.
   ───────────────────────────────────────────────────────────── */

/* Register scroll-progress custom properties as numbers so calc()
   and clamp() work cleanly. JS writes values 0→1→0 into --p. */
@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --wp {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --bg-stretch {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --bg-ystretch {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@property --rung-text-opacity {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { min-height: 100vh; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--c-accent); color: var(--c-accent-fg); }

/* ── Base ──────────────────────────────────────────────────── */
body {
  background: var(--c-bg);
  isolation: isolate;
}

html {
  color: var(--c-text);
  font-family: var(--t-sans);
  font-size: 16px;
  line-height: var(--tlh-body);
  letter-spacing: var(--tls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* ─────────────────────────────────────────────────────────────
   Morph background — dots that stretch into diagonal lines and
   back, ending as ladder rungs made of "rung" text. Driven by
   overall page scroll progress via page-bg.js, which writes:
     --bg-rot, --bg-stretch, --bg-ystretch, --rung-text-opacity
   Layer is sized 200% and rotated so diagonals aren't cropped.
   In the final phase, a second layer (.bg-rung-text, injected
   by JS) fades in — rows of tiny "rung" text aligned to the
   ladder-rung positions. Solid rungs soften as text takes over.
   ───────────────────────────────────────────────────────────── */
body[data-bg="morph"]::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(
    calc(1.2px + var(--bg-stretch, 0) * 14px) 1.2px at center,
    rgba(241, 237, 228, calc(0.13 - var(--rung-text-opacity, 0) * 0.09)) 0%,
    rgba(241, 237, 228, calc(0.13 - var(--rung-text-opacity, 0) * 0.09)) 70%,
    transparent 100%
  );
  background-size: 28px calc(28px * var(--bg-ystretch, 1));
  background-repeat: repeat;
  transform: rotate(var(--bg-rot, 0deg));
  transform-origin: center center;
  mask-image: radial-gradient(ellipse at center, black 55%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 55%, transparent 92%);
  will-change: transform;
}

/* Page-level "rung" text overlay. Rows are generated by page-bg.js
   and aligned to sit at the same positions as the morph ladder rungs.
   Opacity driven by --rung-text-opacity (rises in the final phase). */
.bg-rung-text {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  opacity: var(--rung-text-opacity, 0);
  padding-top: 17px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  mask-image: radial-gradient(ellipse at center, black 55%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 55%, transparent 92%);
  will-change: opacity;
}
.bg-rung-text__row {
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: 22px;
  line-height: 22px;
  letter-spacing: -0.02em;
  color: rgba(241, 237, 228, 0.3);
  white-space: nowrap;
  text-align: center;
  flex-shrink: 0;
}

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  max-width: var(--s-container);
  margin: 0 auto;
  padding: 0 var(--s-gutter);
}
.container-wide {
  max-width: var(--s-container-wide);
  margin: 0 auto;
  padding: 0 var(--s-gutter);
}

/* ── Scroll-linked reveal ──────────────────────────────────
   Every .reveal element receives --p from reveal.js.
   0 = offscreen (above OR below viewport), 1 = fully in view.
   Elements fade in as they enter and fade out as they exit.
   Add .reveal--pop for a subtle scale-in on cards.
   ──────────────────────────────────────────────────────── */
.reveal {
  --p: 0;
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 16px));
  will-change: opacity, transform;
}
.reveal--pop {
  transform:
    translateY(calc((1 - var(--p)) * 20px))
    scale(calc(0.96 + var(--p) * 0.04));
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--pop {
    opacity: 1;
    transform: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   Section 6 — Nav
   Sticky, translucent, serif brand, sans nav links.
   Border hairline appears only once scrolled (via .is-scrolled).
   ───────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.7);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-fast) var(--ease),
              background var(--d-fast) var(--ease);
}
.site-nav.is-scrolled {
  border-bottom-color: var(--c-divider);
  background: rgba(11, 11, 13, 0.82);
}
.site-nav__wrap {
  max-width: var(--s-container-wide);
  margin: 0 auto;
  padding: var(--s-4) var(--s-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
}
.site-nav__brand {
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: 22px;
  letter-spacing: var(--tls-head);
  color: var(--c-text);
  line-height: 1;
}
.site-nav__links {
  display: flex;
  gap: var(--s-8);
}
.site-nav__links a {
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-med);
  font-size: var(--t-14);
  color: var(--c-text);
  opacity: 0.72;
  letter-spacing: 0.02em;
  transition: opacity var(--d-fast) var(--ease);
}
.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  opacity: 1;
  outline: none;
}

@media (max-width: 720px) {
  .site-nav__links { display: none; }
  .site-nav__wrap { padding-top: var(--s-3); padding-bottom: var(--s-3); }
}

/* ─────────────────────────────────────────────────────────────
   Section 6.5 — Intro wordmark
   Oversized serif brand sits full-viewport below the nav.
   Scroll-linked: intro.js writes --p (0 → 1) as you scroll down
   the first ~70vh; the mark fades + subtly translates + scales.
   ───────────────────────────────────────────────────────────── */
.intro {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0 var(--s-gutter);
}
.intro__mark {
  --p: 0;
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: clamp(4.5rem, 3rem + 9vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--c-text);
  text-align: center;
  opacity: calc(1 - var(--p));
  transform: translateY(calc(var(--p) * -28px)) scale(calc(1 - var(--p) * 0.05));
  will-change: opacity, transform;
}
@media (prefers-reduced-motion: reduce) {
  .intro__mark { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────────
   Section 7 — Hero
   Centered, 100vh, ambient glow behind the headline.
   Staggered reveal: eyebrow → words 1–6 → subhead → actions → caption.
   Italic accent word "work" gets an underline sweep driven by --p.
   ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: var(--s-32) var(--s-gutter) var(--s-24);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
/* Hero consumes --p for its children; don't double-fade the wrapper */
.hero.reveal {
  opacity: 1;
  transform: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    60% 50% at 50% 42%,
    rgba(212, 165, 80, 0.10) 0%,
    rgba(212, 165, 80, 0.03) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  opacity: var(--p);
}

.hero__inner {
  max-width: var(--s-container);
  margin: 0 auto;
  text-align: center;
}

/* Per-block local progress — staggers within the section */
.hero__eyebrow { --wp: clamp(0, calc(var(--p) * 1.6), 1); }
.hero__sub     { --wp: clamp(0, calc(var(--p) * 1.4 - 0.25), 1); }
.hero__actions { --wp: clamp(0, calc(var(--p) * 1.4 - 0.35), 1); }
.hero__caption { --wp: clamp(0, calc(var(--p) * 1.4 - 0.45), 1); }

.hero__eyebrow,
.hero__sub,
.hero__actions,
.hero__caption {
  opacity: var(--wp);
  transform: translateY(calc((1 - var(--wp)) * 14px));
  will-change: opacity, transform;
}

.hero__eyebrow {
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-med);
  font-size: var(--t-12);
  letter-spacing: var(--tls-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-8);
}

.hero__h1 {
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-80);
  line-height: var(--tlh-tight);
  letter-spacing: var(--tls-head);
  color: var(--c-text);
  max-width: 16ch;
  margin: 0 auto var(--s-8);
}

/* Word-by-word stagger — each word has its own --wp threshold */
.hero__h1 .word {
  display: inline-block;
  opacity: var(--wp);
  transform: translateY(calc((1 - var(--wp)) * 18px));
  margin-right: 0.24em;
  will-change: opacity, transform;
}
.hero__h1 .word:last-child { margin-right: 0; }
.hero__h1 .word:nth-child(1) { --wp: clamp(0, calc(var(--p) * 1.55 - 0.00), 1); }
.hero__h1 .word:nth-child(2) { --wp: clamp(0, calc(var(--p) * 1.55 - 0.07), 1); }
.hero__h1 .word:nth-child(3) { --wp: clamp(0, calc(var(--p) * 1.55 - 0.14), 1); }
.hero__h1 .word:nth-child(4) { --wp: clamp(0, calc(var(--p) * 1.55 - 0.21), 1); }
.hero__h1 .word:nth-child(5) { --wp: clamp(0, calc(var(--p) * 1.55 - 0.28), 1); }
.hero__h1 .word:nth-child(6) { --wp: clamp(0, calc(var(--p) * 1.55 - 0.35), 1); }

.hero__h1 em {
  font-style: italic;
  color: var(--c-accent);
  font-weight: var(--tw-serif-med);
  position: relative;
}
/* Underline sweep — scales in with overall progress */
.hero__h1 em::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: 0.04em;
  height: 2px;
  background: var(--c-accent);
  transform-origin: left center;
  transform: scaleX(var(--p));
}

.hero__sub {
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-reg);
  font-size: var(--t-21);
  color: var(--c-text-muted);
  line-height: var(--tlh-body);
  max-width: 52ch;
  margin: 0 auto var(--s-12);
}

.hero__actions {
  display: inline-flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.hero__caption {
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-reg);
  font-size: var(--t-14);
  color: var(--c-text-faint);
  letter-spacing: 0.01em;
  margin-top: var(--s-6);
}

/* Buttons — shared styles used across sections */
.btn {
  display: inline-block;
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-med);
  font-size: var(--t-16);
  letter-spacing: 0.015em;
  padding: 14px 26px;
  border-radius: var(--r-btn);
  transition:
    transform var(--d-fast) var(--ease),
    opacity var(--d-fast) var(--ease),
    background-color var(--d-fast) var(--ease),
    border-color var(--d-fast) var(--ease),
    box-shadow var(--d-base) var(--ease);
}
.btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--c-accent);
  color: var(--c-accent-fg);
  box-shadow: 0 0 0 0 rgba(212, 165, 80, 0);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(212, 165, 80, 0.22);
}
.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-divider);
}
.btn--ghost:hover {
  border-color: var(--c-text-muted);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__sub,
  .hero__actions,
  .hero__caption,
  .hero__h1 .word { opacity: 1; transform: none; }
  .hero__h1 em::after { transform: scaleX(1); }
  .hero::before { opacity: 1; }
}

/* ─────────────────────────────────────────────────────────────
   Section 8 — Feature grid
   Three cards, serif italic numerals, staggered pop-in.
   ───────────────────────────────────────────────────────────── */
.features {
  padding: var(--s-32) 0;
  position: relative;
}
.features.reveal {
  opacity: 1;
  transform: none;
}

.features__inner { text-align: center; }

/* Eyebrow + headline — dropped from 120px above with gravity-like
   acceleration. The wp*wp term makes motion slow at the start and
   fast as it lands (like a falling object). Fully in by p ≈ 0.35,
   giving the cards room to pop in right after. */
.features__eyebrow {
  --wp: clamp(0, calc(var(--p) * 3.0), 1);
  opacity: var(--wp);
  transform: translateY(calc((var(--wp) * var(--wp) - 1) * 70px));
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-med);
  font-size: var(--t-12);
  letter-spacing: var(--tls-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-6);
}

.features__h2 {
  --wp: clamp(0, calc(var(--p) * 3.0 - 0.05), 1);
  opacity: var(--wp);
  transform: translateY(calc((var(--wp) * var(--wp) - 1) * 120px));
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-40);
  line-height: var(--tlh-snug);
  letter-spacing: var(--tls-head);
  color: var(--c-text);
  max-width: 28ch;
  margin: 0 auto var(--s-16);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  text-align: left;
}

/* Cards — extreme pop. Scale from 0.4 → 1.0, rise from 100px below,
   fade from 0 → 1. Header lands at p≈0.35; cards begin popping in
   slightly after with clear stagger between them. */
.features__card {
  --wp: 0;
  opacity: var(--wp);
  transform:
    translateY(calc((1 - var(--wp)) * 100px))
    scale(calc(0.4 + var(--wp) * 0.6));
  transform-origin: center 70%;
  background: var(--c-bg-card);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-card);
  padding: var(--s-12) var(--s-8);
  transition: border-color var(--d-base) var(--ease);
  will-change: opacity, transform;
}
.features__card:hover {
  border-color: rgba(212, 165, 80, 0.25);
}
.features__card:nth-child(1) { --wp: clamp(0, calc(var(--p) * 2.0 - 0.75), 1); }  /* p 0.375 → 0.875 */
.features__card:nth-child(2) { --wp: clamp(0, calc(var(--p) * 2.0 - 0.90), 1); }  /* p 0.450 → 0.950 */
.features__card:nth-child(3) { --wp: clamp(0, calc(var(--p) * 2.0 - 1.00), 1); }  /* p 0.500 → 1.000 */

.features__num {
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-style: italic;
  font-size: clamp(2.4rem, 1.8rem + 1.6vw, 3.25rem);
  line-height: 1;
  color: var(--c-accent);
  margin-bottom: var(--s-4);
}

.features__title {
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-28);
  line-height: var(--tlh-snug);
  letter-spacing: var(--tls-head);
  color: var(--c-text);
  margin-bottom: var(--s-3);
}

.features__body {
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-reg);
  font-size: var(--t-16);
  color: var(--c-text-muted);
  line-height: var(--tlh-body);
}

@media (max-width: 720px) {
  .features__grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .features__card { padding: var(--s-8) var(--s-6); }
  .features { padding: var(--s-24) 0; }
}

@media (prefers-reduced-motion: reduce) {
  .features__eyebrow,
  .features__h2,
  .features__card { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────────
   Section 9 — Process / How it works
   Vertical list, thin hairline rule that "grows" with scroll,
   steps slide in from the left, italic numerals pop.
   ───────────────────────────────────────────────────────────── */
.process {
  padding: var(--s-32) 0;
}
.process.reveal {
  opacity: 1;
  transform: none;
}

.process__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--s-gutter);
}

.process__eyebrow {
  --wp: clamp(0, calc(var(--p) * 3.0), 1);
  opacity: var(--wp);
  transform: translateY(calc((var(--wp) * var(--wp) - 1) * 60px));
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-med);
  font-size: var(--t-12);
  letter-spacing: var(--tls-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-6);
}

.process__h2 {
  --wp: clamp(0, calc(var(--p) * 3.0 - 0.05), 1);
  opacity: var(--wp);
  transform: translateY(calc((var(--wp) * var(--wp) - 1) * 100px));
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-40);
  line-height: var(--tlh-snug);
  letter-spacing: var(--tls-head);
  color: var(--c-text);
  max-width: 20ch;
  margin-bottom: var(--s-16);
}

.process__steps {
  list-style: none;
  position: relative;
  padding-left: clamp(72px, 10vw, 120px);
}
/* Hairline rule that grows downward as you scroll into the section */
.process__steps::before {
  content: "";
  position: absolute;
  left: clamp(34px, 5vw, 58px);
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--c-divider);
  transform-origin: top;
  transform: scaleY(clamp(0, calc(var(--p) * 1.6 - 0.2), 1));
}

.process__step {
  --wp: 0;
  position: relative;
  padding: var(--s-8) 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-8);
  align-items: start;
  opacity: var(--wp);
  transform: translateX(calc((var(--wp) - 1) * 80px));
  will-change: opacity, transform;
}
.process__step:not(:last-child) {
  border-bottom: 1px solid var(--c-divider);
}

.process__step:nth-child(1) { --wp: clamp(0, calc(var(--p) * 2.2 - 0.40), 1); }
.process__step:nth-child(2) { --wp: clamp(0, calc(var(--p) * 2.2 - 0.60), 1); }
.process__step:nth-child(3) { --wp: clamp(0, calc(var(--p) * 2.2 - 0.80), 1); }
.process__step:nth-child(4) { --wp: clamp(0, calc(var(--p) * 2.2 - 1.00), 1); }

.process__num {
  font-family: var(--t-serif);
  font-style: italic;
  font-weight: var(--tw-serif-med);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  color: var(--c-accent);
  line-height: 1;
  margin-left: calc(-1 * clamp(40px, 6vw, 62px));
  width: clamp(40px, 6vw, 62px);
  transform: scale(calc(0.55 + var(--wp) * 0.45));
  transform-origin: left center;
}

.process__content h3 {
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-28);
  letter-spacing: var(--tls-head);
  line-height: var(--tlh-snug);
  color: var(--c-text);
  margin-bottom: var(--s-2);
}

.process__content p {
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-reg);
  font-size: var(--t-16);
  color: var(--c-text-muted);
  line-height: var(--tlh-body);
  max-width: 52ch;
}

@media (max-width: 720px) {
  .process { padding: var(--s-24) 0; }
  .process__steps { padding-left: 52px; }
  .process__steps::before { left: 24px; }
  .process__num {
    margin-left: -36px;
    width: 36px;
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process__eyebrow,
  .process__h2,
  .process__step,
  .process__num { opacity: 1; transform: none; }
  .process__steps::before { transform: scaleY(1); }
}

/* ─────────────────────────────────────────────────────────────
   Section 11 — Capability band
   Three monochrome serif claims converge from offscreen:
   left slides in from far left, center rises from below,
   right slides in from far right. Section clips horizontally
   so off-screen positions don't produce a horizontal scrollbar.
   ───────────────────────────────────────────────────────────── */
.capability {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: var(--s-24) 0;
  overflow: hidden;
}
.capability.reveal {
  opacity: 1;
  transform: none;
}

.capability__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-12);
  max-width: var(--s-container-wide);
  margin: 0 auto;
  padding: 0 var(--s-gutter);
  width: 100%;
}

.capability__claim {
  --wp: 0;
  opacity: var(--wp);
  text-align: center;
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-28);
  line-height: var(--tlh-snug);
  letter-spacing: var(--tls-head);
  color: var(--c-text);
  padding: 0 var(--s-4);
  will-change: opacity, transform;
}
/* Each claim's --wp maps to the visible portion of the scroll only,
   so the slide-in + slide-out are symmetric around the section's
   centered-in-viewport moment. Ramp starts at p≈0.5, saturates at
   p≈0.9–1.0, giving time to move through the full range both ways. */
.capability__claim:nth-child(1) {
  --wp: clamp(0, calc((var(--p) - 0.5) * 2.5), 1);
  transform: translateX(calc((var(--wp) - 1) * 110vw));
}
.capability__claim:nth-child(2) {
  --wp: clamp(0, calc((var(--p) - 0.55) * 2.5), 1);
  transform: translateY(calc((1 - var(--wp)) * 120px));
}
.capability__claim:nth-child(3) {
  --wp: clamp(0, calc((var(--p) - 0.6) * 2.5), 1);
  transform: translateX(calc((1 - var(--wp)) * 110vw));
}

@media (max-width: 720px) {
  .capability { padding: var(--s-24) 0; }
  .capability__grid { grid-template-columns: 1fr; gap: var(--s-8); }
}

@media (prefers-reduced-motion: reduce) {
  .capability__claim { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────────
   Section 12 — Services & Pricing
   Two-tier cards. Header drops in, cards pop up with stagger.
   Cards sit on --c-bg-subtle with --r-card radius.
   ───────────────────────────────────────────────────────────── */
.pricing {
  padding: var(--s-32) 0;
}
.pricing.reveal {
  opacity: 1;
  transform: none;
}

.pricing__inner {
  text-align: center;
}

.pricing__eyebrow {
  --wp: clamp(0, calc(var(--p) * 2.6), 1);
  opacity: var(--wp);
  transform: translateY(calc((var(--wp) * var(--wp) - 1) * 60px));
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-med);
  font-size: var(--t-12);
  letter-spacing: var(--tls-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-6);
}

.pricing__h2 {
  --wp: clamp(0, calc(var(--p) * 2.6 - 0.05), 1);
  opacity: var(--wp);
  transform: translateY(calc((var(--wp) * var(--wp) - 1) * 100px));
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-40);
  line-height: var(--tlh-snug);
  letter-spacing: var(--tls-head);
  color: var(--c-text);
  max-width: 22ch;
  margin: 0 auto var(--s-16);
}

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-8);
  max-width: var(--s-container);
  margin: 0 auto;
  text-align: left;
}

.pricing__card {
  --wp: 0;
  opacity: var(--wp);
  transform:
    translateY(calc((1 - var(--wp)) * 60px))
    scale(calc(0.9 + var(--wp) * 0.1));
  background: var(--c-bg-subtle);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-card);
  padding: var(--s-12) var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  transition: border-color var(--d-base) var(--ease);
  will-change: opacity, transform;
}
.pricing__card:hover {
  border-color: rgba(212, 165, 80, 0.28);
}
.pricing__card:nth-child(1) { --wp: clamp(0, calc(var(--p) * 2.0 - 0.55), 1); }
.pricing__card:nth-child(2) { --wp: clamp(0, calc(var(--p) * 2.0 - 0.70), 1); }

.pricing__tier {
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-28);
  line-height: var(--tlh-snug);
  letter-spacing: var(--tls-head);
  color: var(--c-text);
}

.pricing__price {
  border-top: 1px solid var(--c-divider);
  border-bottom: 1px solid var(--c-divider);
  padding: var(--s-6) 0;
}
.pricing__setup {
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-56);
  line-height: 1;
  color: var(--c-text);
  letter-spacing: var(--tls-head);
}
.pricing__setup span {
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-reg);
  font-size: var(--t-16);
  color: var(--c-text-muted);
  letter-spacing: 0;
  margin-left: var(--s-2);
}
.pricing__monthly {
  margin-top: var(--s-2);
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-reg);
  font-size: var(--t-14);
  color: var(--c-text-muted);
}

.pricing__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex-grow: 1;
}
.pricing__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-reg);
  font-size: 17px;
  color: var(--c-text);
  line-height: var(--tlh-body);
}
.pricing__features .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--c-accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 4px;
}

.pricing__card .btn {
  display: block;
  text-align: center;
  margin-top: auto;
}

.pricing__note {
  text-align: center;
  margin-top: var(--s-12);
  color: var(--c-text-muted);
  font-size: var(--t-14);
}

@media (max-width: 720px) {
  .pricing__cards { grid-template-columns: 1fr; gap: var(--s-6); }
  .pricing__card { padding: var(--s-8); }
  .pricing__setup { font-size: var(--t-40); }
}

@media (prefers-reduced-motion: reduce) {
  .pricing__eyebrow,
  .pricing__h2,
  .pricing__card { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────────
   Section 13 — Contact
   Huge lowercase "rung" wordmark sits behind the form. Each
   letter scales from a thin horizontal line (scaleY 0.06) up
   to full height (1.0) as you scroll — so the letters
   literally unfurl from the ladder rungs behind them.
   ───────────────────────────────────────────────────────────── */
.contact {
  position: relative;
  padding: var(--s-32) 0 var(--s-24);
  overflow: hidden;
  isolation: isolate;
}
.contact.reveal {
  opacity: 1;
  transform: none;
}


.contact__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact__eyebrow {
  --wp: clamp(0, calc(var(--p) * 2.4), 1);
  opacity: var(--wp);
  transform: translateY(calc((1 - var(--wp)) * 16px));
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-med);
  font-size: var(--t-12);
  letter-spacing: var(--tls-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-6);
}

.contact__h2 {
  --wp: clamp(0, calc(var(--p) * 2.4 - 0.1), 1);
  opacity: var(--wp);
  transform: translateY(calc((1 - var(--wp)) * 20px));
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-40);
  line-height: var(--tlh-snug);
  letter-spacing: var(--tls-head);
  color: var(--c-text);
  margin-bottom: var(--s-12);
}

.contact__form {
  --wp: clamp(0, calc(var(--p) * 2.0 - 0.4), 1);
  opacity: var(--wp);
  transform: translateY(calc((1 - var(--wp)) * 24px));
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: var(--s-4);
  text-align: left;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.contact__field label {
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-med);
  font-size: var(--t-14);
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
}
.contact__field input,
.contact__field select,
.contact__field textarea {
  font-family: var(--t-sans);
  font-size: var(--t-16);
  font-weight: var(--tw-sans-reg);
  color: var(--c-text);
  background: rgba(20, 20, 24, 0.65);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  transition: border-color var(--d-fast) var(--ease),
              background var(--d-fast) var(--ease);
  font-family: var(--t-sans);
}
.contact__field textarea {
  resize: vertical;
  min-height: 96px;
  font-family: var(--t-sans);
}
.contact__field input:focus,
.contact__field select:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: rgba(20, 20, 24, 0.85);
}

.contact__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--s-4);
}

.contact__success {
  text-align: center;
  font-family: var(--t-serif);
  font-size: var(--t-28);
  color: var(--c-accent);
  padding: var(--s-8) 0;
}

@media (max-width: 720px) {
  .contact { padding: var(--s-24) 0 var(--s-16); }
}

@media (prefers-reduced-motion: reduce) {
  .contact__eyebrow,
  .contact__h2,
  .contact__form { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────────
   Section 14 — Footer
   Minimal. Brand on the left, small links on the right,
   legal line below. Subtle fade-in.
   ───────────────────────────────────────────────────────────── */
.site-footer {
  padding: var(--s-12) 0 var(--s-8);
  border-top: 1px solid var(--c-divider);
  position: relative;
  /* Subtle dim behind footer so the page-level rung-text overlay
     doesn't fight with the footer content for readability. */
  background: linear-gradient(to bottom, rgba(11, 11, 13, 0.55), rgba(11, 11, 13, 0.85));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.site-footer.reveal {
  opacity: 1;
  transform: none;
}

.site-footer__inner {
  --wp: clamp(0, calc(var(--p) * 2.0), 1);
  opacity: var(--wp);
  transform: translateY(calc((1 - var(--wp)) * 12px));
  max-width: var(--s-container-wide);
  margin: 0 auto;
  padding: 0 var(--s-gutter);
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  flex-wrap: wrap;
}

.site-footer__brand {
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: 22px;
  line-height: 1;
  letter-spacing: var(--tls-head);
  color: var(--c-text);
}

.site-footer__links {
  display: flex;
  gap: var(--s-6);
}
.site-footer__links a {
  font-family: var(--t-sans);
  font-weight: var(--tw-sans-med);
  font-size: var(--t-14);
  letter-spacing: 0.02em;
  color: var(--c-text);
  opacity: 0.92;
  transition: opacity var(--d-fast) var(--ease);
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  opacity: 1;
  outline: none;
}

.site-footer__legal {
  font-family: var(--t-sans);
  font-size: var(--t-12);
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 560px) {
  .site-footer__top { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__inner { opacity: 1; transform: none; }
}


/* ── Work ─────────────────────────────────────────────────────────────────── */
.work { padding: var(--s-32) var(--s-gutter); }
.work__inner { max-width: var(--s-container); margin: 0 auto; }
.work__eyebrow {
  font-family: var(--t-sans);
  font-size: var(--t-12);
  font-weight: var(--tw-sans-med);
  letter-spacing: var(--tls-eyebrow);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin: 0 0 var(--s-4);
}
.work__h2 {
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-40);
  line-height: var(--tlh-snug);
  letter-spacing: var(--tls-head);
  margin: 0 0 var(--s-16);
}
.work__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
@media (max-width: 720px) { .work__list { grid-template-columns: 1fr; } }
.work__item {
  background: var(--c-bg-card);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-card);
  padding: var(--s-8);
}
.work__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.work__client {
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-28);
  letter-spacing: var(--tls-head);
}
.work__kind {
  font-family: var(--t-sans);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: var(--tls-eyebrow);
  color: var(--c-accent);
}
.work__note {
  font-family: var(--t-sans);
  font-size: var(--t-16);
  line-height: var(--tlh-body);
  color: var(--c-text-muted);
  margin: 0;
}
.work__note a { color: var(--c-accent); text-decoration: none; border-bottom: 1px solid rgba(212, 165, 80, 0.35); }
.work__note a:hover { border-bottom-color: var(--c-accent); }

/* ── About ────────────────────────────────────────────────────────────────── */
.about { padding: var(--s-32) var(--s-gutter); }
.about__inner { max-width: 760px; margin: 0 auto; }
.about__eyebrow {
  font-family: var(--t-sans);
  font-size: var(--t-12);
  font-weight: var(--tw-sans-med);
  letter-spacing: var(--tls-eyebrow);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin: 0 0 var(--s-4);
}
.about__h2 {
  font-family: var(--t-serif);
  font-weight: var(--tw-serif-med);
  font-size: var(--t-56);
  line-height: var(--tlh-snug);
  letter-spacing: var(--tls-head);
  margin: 0 0 var(--s-12);
}
.about__body p {
  font-family: var(--t-sans);
  font-size: var(--t-18);
  line-height: var(--tlh-body);
  color: var(--c-text);
  margin: 0 0 var(--s-4);
}

/* Contact lede — small note above the contact form linking to intake */
.contact__lede {
  font-family: var(--t-sans);
  font-size: var(--t-16);
  color: var(--c-text-muted);
  margin: 0 auto var(--s-8);
  max-width: 560px;
  line-height: var(--tlh-body);
  text-align: center;
}
.contact__lede a { color: var(--c-accent); text-decoration: none; border-bottom: 1px solid rgba(212, 165, 80, 0.35); }
.contact__lede a:hover { border-bottom-color: var(--c-accent); }
