/* ==========================================================================
   JJ Ramirez — Bold Swiss studio
   Tokens and rules: design-system/MASTER.md
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, variable) ---------- */
@font-face {
  font-family: 'Hodor Sans';
  src: url('../fonts/hodor-sans-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
/* Arial Bold scaled to Hodor's widths and metrics (measured from the font files),
   so headlines barely move when the webfont arrives. */
@font-face {
  font-family: 'Hodor Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial');
  font-weight: 800;
  size-adjust: 109.89%;
  ascent-override: 70.34%;
  descent-override: 20.66%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback keeps body text from jumping when Inter arrives. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --paper: #f4f4f1;
  --ink: #0a0a0a;
  --ink-2: #2b2b2b;
  --muted: #5f5f5f;
  --muted-dark: #a3a3a3;
  --red: #d7261e;
  --red-deep: #b81f18;
  --red-bright: #ff4a3d;
  --rule-soft: #d9d9d6;

  /* contextual (re-mapped by .on-dark / .on-red / .on-paper) */
  --bg: var(--white);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-muted: var(--muted);
  --line: var(--ink);
  --line-soft: var(--rule-soft);
  --accent-ui: var(--red);
  --focus: var(--red);

  --font-display: 'Hodor Sans', 'Hodor Fallback', Arial, sans-serif;
  --font-text: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --fs-mega: clamp(3rem, 13vw, 13rem);
  --fs-h2: clamp(2.25rem, 5.2vw, 5rem);
  --fs-3: clamp(1.5rem, 2.6vw, 2.25rem);
  --fs-4: clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1.15rem, 1.6vw, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  --max: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 24px);
  --section: clamp(80px, 11vw, 168px);
  --header-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 800ms;
  --dur-4: 1100ms;

  --z-header: 50;
  --z-preview: 40;
  --z-progress: 60;
}
@media (min-width: 900px) {
  :root { --header-h: 72px; }
}
@media (min-width: 1100px) {
  :root { --fs-body: 1.125rem; }
}

.on-paper { --bg: var(--paper); background: var(--paper); color: var(--fg); }
.on-dark {
  --bg: var(--ink);
  --fg: #ffffff;
  --fg-2: #d6d6d6;
  --fg-muted: var(--muted-dark);
  --line: #ffffff;
  --line-soft: #333333;
  --accent-ui: var(--red-bright);
  --focus: #ffffff;
  background: var(--ink);
  color: #ffffff;
}
.on-red {
  --bg: var(--red);
  --fg: #ffffff;
  --fg-2: #ffffff;
  --fg-muted: #ffffff;
  --line: #ffffff;
  --line-soft: rgba(255, 255, 255, 0.45);
  --accent-ui: #ffffff;
  --focus: #ffffff;
  background: var(--red);
  color: #ffffff;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  color-scheme: light;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  :root { interpolate-size: allow-keywords; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body:has(dialog[open]) { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
strong { font-weight: 650; }
main:focus { outline: none; }
::selection { background: var(--red); color: #fff; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.red { color: var(--red); }
.on-dark .red { color: var(--red-bright); }
.sq { display: inline-block; width: 10px; height: 10px; background: var(--red); flex: none; }

.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: square; stroke-linejoin: miter;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight-top { padding-top: calc(var(--section) * 0.45); }
.section-tight-bottom { padding-bottom: calc(var(--section) * 0.45); }
.section + .section:not([class*="on-"]):not(.section-tight-top) { border-top: 1px solid var(--ink); }

.label, .section-label {
  font: 600 var(--fs-label)/1.3 var(--font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.section-label .idx { color: var(--accent-ui); margin-right: 0.35em; }

.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 20px;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.sec-head .section-label { grid-column: 1 / span 3; padding-top: 0.75em; }
.sec-head h2 {
  grid-column: 4 / -1;
  font-size: var(--fs-h2);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 17ch;
}
.sec-body, .sec-lead { margin-left: calc((100% + var(--gap)) * 3 / 12); }
.sec-lead { max-width: 52ch; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-more { margin-top: clamp(32px, 4vw, 56px); }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--fg-2);
  max-width: 52ch;
}
.prose p { max-width: 64ch; color: var(--fg-2); }
.prose .lead { color: var(--fg); }
.prose ul + p, .prose ol + p { margin-top: 1.25em; }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 32px;
  align-items: start;
}
.split-aside { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; }
.split-aside h2 { font-size: clamp(2rem, 4.2vw, 4rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.02; }
.split-aside > p:not(.section-label) { color: var(--fg-2); max-width: 44ch; }
.split-main { grid-column: 7 / -1; }

@media (max-width: 899px) {
  .sec-head .section-label, .sec-head h2 { grid-column: 1 / -1; }
  .sec-head .section-label { padding-top: 0; }
  .sec-body, .sec-lead { margin-left: 0; }
  .split-aside, .split-main { grid-column: 1 / -1; }
}

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #ffffff;
  --btn-bd: var(--red);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 52px;
  padding: 0 1.4em;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.1 var(--font-text);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color var(--dur-2) var(--ease-io),
    color var(--dur-2) var(--ease-io),
    border-color var(--dur-2) var(--ease-io),
    translate 600ms var(--ease-out),
    scale var(--dur-1) var(--ease-out);
}
.btn .i-arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover { --btn-bg: var(--red-deep); --btn-bd: var(--red-deep); text-decoration: none; }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn:active { scale: 0.97; }
.btn:focus-visible { outline-offset: 4px; }
.btn-line { --btn-bg: transparent; --btn-fg: var(--fg); --btn-bd: var(--fg); }
.btn-line:hover { --btn-bg: var(--fg); --btn-fg: var(--bg); --btn-bd: var(--fg); }
.btn-white { --btn-bg: #ffffff; --btn-fg: var(--ink); --btn-bd: #ffffff; }
.btn-white:hover { --btn-bg: var(--ink); --btn-fg: #ffffff; --btn-bd: var(--ink); }
.on-dark .btn-white:hover { --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--red); }
.btn-sm { min-height: 44px; padding: 0 1.1em; font-size: 0.9375rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 2px no-repeat;
  transition: background-size var(--dur-2) var(--ease-out);
}
.text-link .i { transition: transform var(--dur-2) var(--ease-out); }
.text-link:hover { background-size: 0% 2px; background-position: 100% calc(100% - 8px); }
.text-link:hover .i { transform: translateX(4px); }

/* ---------- Header ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: var(--z-progress);
  background: var(--red); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
@supports not (animation-timeline: scroll()) { .progress { display: none; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@keyframes progress { to { transform: scaleX(1); } }

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: #ffffff;
  border-bottom: 1px solid var(--ink);
  view-transition-name: site-header;
}
.header-inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-right: auto;
  font-family: var(--font-display); font-weight: 750; font-size: 1.3rem; letter-spacing: -0.024em; line-height: 1;
  text-decoration: none; min-height: 44px;
}
.brand .mark { height: 34px; width: auto; transition: transform var(--dur-3) var(--ease-out); }
.brand:hover .mark { transform: rotate(-8deg); }
.nav ul { display: flex; gap: 2px; list-style: none; }
.nav a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 12px;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
}
.nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current='page'] { font-weight: 650; }
.menu-btn, .menu-close {
  display: none; align-items: center; gap: 10px; text-decoration: none; color: inherit;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  background: transparent; border: 1px solid currentColor; cursor: pointer;
  font-weight: 600; font-size: 0.9375rem;
}
.menu-close { display: inline-flex; }
@media (max-width: 1099px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 639px) {
  .header-cta { display: none; }
  .brand .mark { height: 30px; }
}

/* Mobile menu (native <dialog>: focus trap + Esc for free) */
.menu {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  color: #fff;
}
.menu[open] { display: flex; flex-direction: column; animation: menuIn var(--dur-2) var(--ease-out); }
.menu::backdrop { background: transparent; }
.menu-top {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding-inline: var(--gutter);
  border-bottom: 1px solid #333;
}
.menu-links { list-style: none; flex: 1; overflow-y: auto; padding: clamp(16px, 4vh, 40px) var(--gutter); }
.menu-links a {
  display: block; padding: 4px 0;
  font-family: var(--font-display); font-weight: 750;
  font-size: clamp(2.25rem, 9vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.08;
  text-decoration: none;
}
.menu-links a[aria-current='page'] { color: var(--red-bright); }
.menu[open] .menu-links li { animation: rise var(--dur-3) var(--ease-out) both; animation-delay: calc(var(--i) * 45ms + 60ms); }
.menu-foot {
  display: grid; gap: 16px;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid #333; color: var(--muted-dark); font-size: var(--fs-small);
}
.menu-foot .btn { justify-self: start; }
@keyframes menuIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(32px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); }
.hero .wrap { position: relative; }
.coords {
  position: absolute; right: var(--gutter); top: 0;
  display: flex; gap: 18px; margin: 0;
  font: 500 var(--fs-label)/1.3 var(--font-text); letter-spacing: 0.06em; color: var(--muted);
}
.mega {
  font-size: var(--fs-mega);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.86;
}
.mega .kicker {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: clamp(28px, 4.5vw, 56px);
  font: 600 var(--fs-label)/1.3 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase;
  animation: fadeUp var(--dur-3) var(--ease-out) both;
}
.mega .line { display: block; overflow: hidden; padding: 0.06em 0 0.08em; margin: -0.04em 0 -0.06em; }
.mega .line > span {
  display: block;
  animation: lineUp var(--dur-4) var(--ease-out) both;
  animation-delay: calc(var(--i) * 90ms + 120ms);
}
@keyframes lineUp { from { transform: translateY(108%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }

.hero-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: 24px;
  margin-top: clamp(32px, 4.5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  animation: fadeUp var(--dur-3) var(--ease-out) 520ms both;
}
.hero-lede { grid-column: 1 / span 6; margin: 0; font-size: var(--fs-lead); line-height: 1.45; color: var(--fg-2); max-width: 46ch; }
.hero-ctas { grid-column: 8 / -1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-content: start; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(40px, 5vw, 72px) 0 0;
  border-top: 1px solid var(--ink);
}
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px;
  padding: 20px clamp(12px, 2vw, 24px) 0;
  border-left: 1px solid var(--ink);
  animation: fadeUp var(--dur-3) var(--ease-out) both;
}
.stat:nth-child(1) { animation-delay: 640ms; border-left: 0; padding-left: 0; }
.stat:nth-child(2) { animation-delay: 720ms; }
.stat:nth-child(3) { animation-delay: 800ms; }
.stat:nth-child(4) { animation-delay: 880ms; }
.stat dd {
  margin: 0;
  font-family: var(--font-display); font-weight: 750;
  font-size: clamp(2rem, 3.8vw, 3.5rem); letter-spacing: -0.034em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat dt { font-size: var(--fs-small); line-height: 1.35; color: var(--fg-muted); }

@media (max-width: 899px) {
  .coords { display: none; }
  .hero-lede, .hero-ctas { grid-column: 1 / -1; }
  .hero-ctas { justify-content: flex-start; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--ink); margin-top: 20px; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee.is-paused .marquee-track,
.marquee.is-offscreen .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex; align-items: center; list-style: none;
  height: clamp(76px, 9vw, 124px);
}
.marquee-group li {
  display: flex; align-items: center; gap: clamp(24px, 3vw, 44px);
  padding-right: clamp(24px, 3vw, 44px);
  font-family: var(--font-display); font-weight: 650;
  font-size: clamp(1.6rem, 3.6vw, 3.25rem); letter-spacing: -0.024em; white-space: nowrap;
}
.marquee-mark { height: 0.95em; width: auto; color: var(--red-bright); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-toggle {
  position: absolute; right: 0; top: 0; bottom: 0;
  display: grid; place-items: center;
  width: 64px; padding: 0 0 0 12px; border: 0; cursor: pointer;
  background: linear-gradient(90deg, transparent, var(--ink) 30%);
  color: #fff;
}
.marquee-toggle .i { width: 44px; height: 44px; padding: 11px; border: 1px solid #fff; background: var(--ink); }
.marquee-toggle .i-play { display: none; }
.marquee.is-paused .marquee-toggle .i-play { display: block; }
.marquee.is-paused .marquee-toggle .i-pause { display: none; }
.marquee-toggle:focus-visible { outline-offset: -6px; }

/* ---------- Problem points ---------- */
.points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap); margin-top: clamp(40px, 5vw, 72px);
}
.point { border-top: 2px solid var(--fg); padding-top: 20px; }
.point h3 { font-size: var(--fs-4); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 12px; }
.point p { color: var(--fg-2); }
@media (max-width: 899px) { .points { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Ticks ---------- */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; line-height: 1.45; }
.ticks .i { width: 22px; height: 22px; color: var(--accent-ui); margin-top: 0.05em; stroke-width: 2; }
.ticks-lg li { font-size: var(--fs-lead); grid-template-columns: 28px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.ticks-lg li:last-child { border-bottom: 1px solid var(--line-soft); }
.ticks-lg .i { width: 28px; height: 28px; }

/* ---------- Services: sticky stacked cards ---------- */
.stack { display: grid; gap: var(--gap); timeline-scope: --svc-1, --svc-2; }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: clamp(28px, 4vw, 48px);
  align-content: space-between;
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid var(--ink);
  transform-origin: 50% 0;
}
.svc::after { content: ''; position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.svc:not(.on-paper):not(.on-dark):not(.on-red) { background: #fff; }
.svc-top {
  grid-column: 1 / -1; display: flex; gap: 16px; align-items: baseline;
  font: 600 var(--fs-label)/1.3 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase;
}
.svc-num { color: var(--accent-ui); }
.svc-title {
  grid-column: 1 / -1;
  font-size: clamp(3.5rem, 11.5vw, 11.5rem); font-weight: 800;
  letter-spacing: -0.042em; line-height: 0.84;
}
.svc-body { grid-column: 7 / -1; display: grid; gap: 24px; align-content: end; }
.svc-lead { font-size: var(--fs-lead); line-height: 1.45; margin: 0; color: var(--fg); }
.svc .text-link { justify-self: start; }
@media (min-width: 900px) {
  .stack { display: block; }
  .svc {
    position: sticky;
    top: calc(var(--header-h) + 20px + var(--i) * 26px);
    min-height: min(78vh, 760px);
    margin-bottom: 6vh;
  }
  .svc:last-child { margin-bottom: 0; }
}
@media (max-width: 899px) { .svc-body { grid-column: 1 / -1; } }
@supports (animation-timeline: view()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .svc:nth-child(2) { view-timeline-name: --svc-1; }
    .svc:nth-child(3) { view-timeline-name: --svc-2; }
    .svc:nth-child(1) { animation: svcBack linear both; animation-timeline: --svc-1; animation-range: entry 0% entry 100%; }
    .svc:nth-child(2) { animation: svcBack linear both; animation-timeline: --svc-2; animation-range: entry 0% entry 100%; }
    .svc:nth-child(1)::after { animation: svcDim linear both; animation-timeline: --svc-1; animation-range: entry 0% entry 100%; }
    .svc:nth-child(2)::after { animation: svcDim linear both; animation-timeline: --svc-2; animation-range: entry 0% entry 100%; }
  }
}
@keyframes svcBack { to { scale: 0.94; } }
@keyframes svcDim { to { opacity: 0.22; } }

/* ---------- GEO section + AI chat illustration ---------- */
.geo-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: 48px; align-items: start;
}
.geo-copy { grid-column: 1 / span 5; display: grid; gap: 28px; justify-items: start; }
.geo-copy .lead { margin: 0; }
.geo-list { list-style: none; counter-reset: geo; display: grid; border-top: 1px solid var(--line); width: 100%; }
.geo-list li {
  counter-increment: geo; position: relative;
  padding: 16px 0 16px 48px; border-bottom: 1px solid var(--line-soft); color: var(--fg-2);
}
.geo-list li::before { content: counter(geo, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 600 var(--fs-label)/1.9 var(--font-text); color: var(--accent-ui); }
.geo-list strong { color: var(--fg); }
.chat {
  grid-column: 7 / -1;
  background: #141414;
  border: 1px solid #2e2e2e;
  color: #e8e8e8;
  font-size: 1rem;
}
.chat-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border-bottom: 1px solid #2e2e2e;
  font: 600 var(--fs-label)/1 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark);
}
.chat-dots { display: flex; gap: 5px; }
.chat-dots i { width: 8px; height: 8px; background: #3a3a3a; }
.chat-dots i:first-child { background: var(--red); }
.chat.is-thinking .chat-dots i { animation: blink 0.9s var(--ease-io) infinite; }
.chat.is-thinking .chat-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat.is-thinking .chat-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { background: #fff; } }
.chat-label { margin-right: auto; }
.chat-replay {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px;
  background: transparent; border: 1px solid #3a3a3a; color: #fff; cursor: pointer;
  font: 600 0.8125rem/1 var(--font-text); letter-spacing: 0.04em; text-transform: none;
  transition: border-color var(--dur-2), background-color var(--dur-2);
}
.chat-replay:hover { border-color: #fff; }
.chat-replay[hidden] { display: none; }
.chat-body { padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 20px; }
.chat-q {
  justify-self: end; max-width: 88%; margin: 0;
  background: #2a2a2a; color: #fff; padding: 12px 16px; line-height: 1.45;
}
.chat-a { line-height: 1.55; }
.chat-a p { margin: 0 0 12px; }
.chat-a ol { padding-left: 1.3em; display: grid; gap: 10px; }
.chat-a li::marker { color: var(--muted-dark); }
.chat-a mark { background: transparent; color: #fff; font-weight: 700; box-shadow: inset 0 -3px 0 var(--red); }
.chat-a strong { color: #fff; }
.cite {
  display: inline-grid; place-items: center;
  min-width: 1.45em; height: 1.45em; padding: 0 0.3em;
  border-radius: 999px; background: var(--red); color: #fff;
  font: 700 0.72rem/1 var(--font-text); vertical-align: 0.12em;
}
.cite-muted { background: #3a3a3a; color: #e8e8e8; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid #2e2e2e; }
.source {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border: 1px solid #3a3a3a; border-radius: 999px;
  font-size: 0.875rem; color: #d6d6d6;
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), border-color var(--dur-3);
}
.source.is-you { border-color: var(--red-bright); color: #fff; background: rgba(215, 38, 30, 0.16); }
.chat figcaption { padding: 12px 16px; border-top: 1px solid #2e2e2e; font-size: 0.8125rem; color: var(--muted-dark); }
/* Demo states set by main.js (content is always in the DOM for readers and no-JS). */
.chat .ch, .chat .wd { transition: opacity 0.35s var(--ease-out); }
.chat.is-armed [data-type] .ch:not(.on),
.chat.is-armed [data-stream] .wd:not(.on),
.chat.is-armed [data-stream] .cite:not(.on) { opacity: 0; }
.chat.is-armed [data-stream] mark:not(.on) { box-shadow: inset 0 0 0 transparent; }
.chat [data-stream] mark { transition: box-shadow 0.6s var(--ease-out); }
.chat.is-armed .source:not(.on) { opacity: 0; transform: translateY(8px); }
.chat .source.is-you.on { animation: ping 1.4s var(--ease-out) 0.2s 2; }
@keyframes ping { 50% { box-shadow: 0 0 0 6px rgba(255, 74, 61, 0.25); } }
@media (max-width: 899px) {
  .geo-copy, .chat { grid-column: 1 / -1; }
}

/* ---------- Plans ---------- */
.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(24px, 2.8vw, 40px) clamp(20px, 2.4vw, 36px) clamp(28px, 3vw, 44px);
  border-left: 1px solid var(--ink);
}
.plan:first-child { border-left: 0; padding-left: 0; }
.plan.is-rec { background: var(--paper); padding-left: clamp(20px, 2.4vw, 36px); }
.plan.is-rec::before { content: ''; position: absolute; left: 0; right: 0; top: -2px; height: 6px; background: var(--red); }
.on-paper .plan.is-rec { background: #fff; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 750; letter-spacing: -0.027em; }
.plan-badge {
  margin: 0; padding: 6px 10px; background: var(--red); color: #fff;
  font: 600 0.75rem/1 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase;
}
.plan-tag { margin: 0; color: var(--fg-2); min-height: 3em; }
.price { display: grid; gap: 6px; padding: 18px 0; border-block: 1px solid var(--line-soft); }
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.price-big {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.75rem, 4.8vw, 4.5rem); letter-spacing: -0.035em; line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.price-mid {
  font-family: var(--font-display); font-weight: 750;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem); letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-plus { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--accent-ui); width: 0.7em; }
.price-unit { font-size: 0.8125rem; line-height: 1.25; color: var(--fg-muted); }
.plan .ticks { flex: 1; align-content: start; }
.plan-link { display: inline-flex; gap: 0.5em; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.plan-link .i { transition: transform var(--dur-2) var(--ease-out); }
.plan-link:hover .i { transform: translateX(4px); }
.plan-link:hover { text-decoration: underline; }
.plans-detailed .plan { gap: 24px; }
.plans-detailed .plan-tag { min-height: 0; }
.plan-year { margin: 0; font-size: var(--fs-small); color: var(--fg-2); }
.plan-year strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.plan-for { margin: 0; font-size: var(--fs-small); color: var(--fg-2); }
.plan-lists { display: grid; gap: 28px; flex: 1; }
.plan-list-title { font: 600 var(--fs-label)/1.3 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.plans-detailed .ticks { gap: 10px; font-size: 0.9688rem; }
.plans-detailed .btn { align-self: stretch; }
.fine-note { margin-top: 20px; font-size: var(--fs-small); color: var(--fg-muted); }
@media (max-width: 899px) {
  .plans { grid-template-columns: 1fr; }
  .plan, .plan:first-child { border-left: 0; padding-left: 0; padding-right: 0; }
  .plan + .plan { border-top: 1px solid var(--ink); }
  .plan.is-rec { padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); }
  .plan-tag { min-height: 0; }
}

.promises {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
  margin-top: clamp(40px, 5vw, 64px);
}
.promises li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.promises .i { width: 26px; height: 26px; color: var(--accent-ui); stroke-width: 2; }
.promises p { margin: 0; color: var(--fg-2); font-size: var(--fs-small); }
.promises .promise-title { color: var(--fg); font-weight: 700; font-size: 1.0625rem; margin-bottom: 4px; line-height: 1.3; }
@media (max-width: 1099px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 559px) { .promises { grid-template-columns: 1fr; } }

/* ---------- Work index (Swiss list + cursor preview) ---------- */
.work-list { list-style: none; border-top: 2px solid var(--ink); }
.work-row a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 260px) 64px 32px;
  align-items: center; gap: var(--gap);
  padding: clamp(18px, 2.2vw, 28px) 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-io);
}
.work-row a::before {
  content: ''; position: absolute; z-index: -1;
  inset: 0 calc(var(--gutter) * -1);
  background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 520ms var(--ease-out);
}
.work-idx { font: 600 var(--fs-label)/1 var(--font-text); letter-spacing: 0.06em; color: var(--red); }
.work-name {
  font-family: var(--font-display); font-weight: 750;
  font-size: clamp(1.75rem, 4.4vw, 4rem); letter-spacing: -0.03em; line-height: 1;
  transition: transform 700ms var(--ease-out);
}
.work-cat { font-size: var(--fs-small); color: var(--fg-muted); transition: color var(--dur-2); }
.work-year { font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.work-arrow { justify-self: end; transition: transform 600ms var(--ease-out); }
.work-arrow .i { width: 28px; height: 28px; }
.work-thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .work-row a:hover, .work-row a:focus-visible { color: #fff; }
  .work-row a:hover::before, .work-row a:focus-visible::before { transform: scaleY(1); transform-origin: 50% 0; }
  .work-row a:hover .work-name, .work-row a:focus-visible .work-name { transform: translateX(clamp(8px, 1.5vw, 24px)); }
  .work-row a:hover .work-cat, .work-row a:focus-visible .work-cat { color: var(--muted-dark); }
  .work-row a:hover .work-idx, .work-row a:focus-visible .work-idx { color: var(--red-bright); }
  .work-row a:hover .work-arrow, .work-row a:focus-visible .work-arrow { transform: rotate(-45deg); }
  .work-row a:focus-visible { outline-offset: -3px; outline-color: var(--red-bright); }
}
.work-preview {
  position: fixed; left: 0; top: 0; z-index: var(--z-preview);
  width: clamp(260px, 25vw, 400px); aspect-ratio: 16 / 10;
  pointer-events: none; overflow: hidden;
  background: var(--paper); border: 1px solid var(--ink);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}
.work-preview.is-on { opacity: 1; visibility: visible; transition: opacity var(--dur-2) var(--ease-out); }
.work-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 620ms var(--ease-out);
}
.work-preview img.is-active { clip-path: inset(0 0 0 0); z-index: 1; }
@media (hover: none), (pointer: coarse), (max-width: 899px) {
  .work-preview { display: none; }
  .work-row a { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 6px; }
  .work-idx { grid-row: 1; }
  .work-cat { grid-column: 2; grid-row: 2; }
  .work-year { grid-column: 3; grid-row: 1; }
  .work-arrow { display: none; }
  .work-thumb {
    display: block; grid-column: 1 / -1; margin-top: 12px;
    aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--ink); background: var(--paper);
  }
  .work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
}

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.process-aside { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; align-self: start; }
.process-aside h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.sketch { margin-top: 20px; max-width: 400px; }
.sketch img { background: #fff; border: 1px solid var(--ink); padding: 10px; }
.sketch figcaption, .shot-cap, .gallery-item figcaption, .portrait figcaption {
  margin-top: 12px; font-size: var(--fs-small); color: var(--fg-muted);
}
.steps { list-style: none; counter-reset: step; }
.process .steps { grid-column: 7 / -1; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: clamp(64px, 7vw, 104px) 1fr; column-gap: var(--gap);
  padding: 28px 0 32px; border-top: 1px solid var(--ink);
}
.step:last-child { border-bottom: 1px solid var(--ink); }
.step::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3.5rem); letter-spacing: -0.034em; line-height: 0.9;
  color: var(--accent-ui);
}
.step h3 { font-size: var(--fs-3); letter-spacing: -0.024em; margin-bottom: 10px; }
.step p { color: var(--fg-2); max-width: 46ch; }
@media (min-width: 900px) {
  .process-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (max-width: 899px) {
  .process-aside, .process .steps { grid-column: 1 / -1; }
}
.steps-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.steps-row .step { display: block; border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps-row .step::before { display: block; margin-bottom: 28px; }
.steps-row .step h3 { font-size: var(--fs-4); }
@media (max-width: 1099px) { .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 599px) { .steps-row { grid-template-columns: 1fr; } }

/* ---------- About teaser / portrait ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: center; }
.portrait { grid-column: 1 / span 5; position: relative; isolation: isolate; max-width: 520px; }
.portrait::before {
  content: ''; position: absolute; z-index: -1;
  inset: clamp(14px, 2vw, 24px) calc(clamp(14px, 2vw, 24px) * -1) calc(clamp(14px, 2vw, 24px) * -1) clamp(14px, 2vw, 24px);
  background: var(--red);
}
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 40%; filter: grayscale(1) contrast(1.08); border: 1px solid var(--ink); }
.about-copy { grid-column: 7 / -1; display: grid; gap: 24px; justify-items: start; }
.about-copy h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.about-copy p { color: var(--fg-2); max-width: 54ch; }
@media (max-width: 899px) {
  .portrait, .about-copy { grid-column: 1 / -1; }
  .portrait { max-width: 78%; }
}

/* ---------- FAQ (native details) ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.faq-aside { grid-column: 1 / span 4; display: grid; gap: 20px; align-content: start; }
.faq-aside h2 { font-size: clamp(2rem, 3.8vw, 3.5rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.02; }
.faq { grid-column: 6 / -1; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary {
  display: grid; grid-template-columns: 1fr 44px; gap: 20px; align-items: center;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 650;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .faq-q { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.plus { position: relative; width: 44px; height: 44px; border: 1px solid var(--ink); transition: background-color var(--dur-2), color var(--dur-2); }
.plus::before, .plus::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px;
  background: currentColor; translate: -50% -50%;
  transition: transform var(--dur-2) var(--ease-out);
}
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus { background: var(--ink); color: #fff; }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq-a { padding: 0 64px 28px 0; color: var(--fg-2); max-width: 68ch; }
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .faq details::details-content {
      block-size: 0; overflow-y: clip;
      transition: block-size 520ms var(--ease-out), content-visibility 520ms allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}
@media (max-width: 899px) {
  .faq-aside, .faq { grid-column: 1 / -1; }
  .faq-a { padding-right: 0; }
}

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(80px, 11vw, 160px); }
.cta-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: end; }
.cta-title {
  grid-column: 1 / span 8;
  font-size: clamp(3rem, 8vw, 8rem); font-weight: 800;
  letter-spacing: -0.042em; line-height: 0.94;
}
.cta-side { grid-column: 9 / -1; display: grid; gap: 28px; }
.cta-side p { margin: 0; font-size: 1.0625rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
@media (max-width: 1099px) {
  .cta-title, .cta-side { grid-column: 1 / -1; }
  .cta-side { max-width: 560px; }
}

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(64px, 8vw, 112px); overflow: hidden; container-type: inline-size; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.footer-brand { grid-column: 1 / span 4; display: grid; gap: 24px; align-content: start; }
.footer-blurb { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
.footer-place { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--fg-muted); font-size: var(--fs-small); margin: 0; }
.footer-place .i { color: var(--red-bright); width: 22px; height: 22px; }
.footer-col { grid-column: span 2; }
.footer-col-wide { grid-column: span 3; }
.footer-col:first-of-type { grid-column: 6 / span 2; }
.footer-col .label { color: var(--fg-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.guide-link { gap: 6px; line-height: 1.35; padding: 4px 0; }
.guide-link .i { width: 18px; height: 18px; color: var(--red-bright); }
.footer-social { margin-top: 18px; display: flex !important; gap: 20px !important; }
.footer-mark {
  margin-top: clamp(56px, 8vw, 120px);
  padding-inline: calc(var(--gutter) * 0.5);
  font-family: var(--font-display); font-weight: 800;
  font-size: 23vw;
  /* "JJ Ramirez" in Hodor is 5.785em; with -0.04em tracking it renders ≈ 5.37em wide. Fill the footer edge to edge (cqw ignores the scrollbar). */
  font-size: calc((100cqw - var(--gutter) - 4px) / 5.36);
  letter-spacing: -0.04em; line-height: 0.8;
  white-space: nowrap; overflow: hidden; color: #fff;
  user-select: none;
}
.footer-mark span { display: block; padding-bottom: 0.06em; }
.js .footer-mark span { transform: translateY(40%); transition: transform 1.4s var(--ease-out); }
.js .footer-mark.is-in span { transform: none; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px 28px; border-top: 1px solid #333;
  font-size: 0.875rem; color: var(--fg-muted);
}
.footer-base p { margin: 0; }
.footer-base a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer-base a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 1099px) {
  .footer-brand { grid-column: 1 / -1; max-width: 560px; }
  .footer-col, .footer-col:first-of-type { grid-column: span 4; }
  .footer-col-wide { grid-column: span 4; }
}
@media (max-width: 639px) {
  .footer-col, .footer-col:first-of-type { grid-column: span 6; }
  .footer-col-wide { grid-column: 1 / -1; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--ink); }
.crumbs { margin-bottom: clamp(36px, 6vw, 80px); font-size: 0.875rem; color: var(--fg-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs li + li::before { content: '/'; margin-right: 10px; color: var(--rule-soft); }
.crumbs a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.crumbs a:hover { text-decoration: underline; color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); font-weight: 600; display: inline-flex; min-height: 32px; align-items: center; }
.page-kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 clamp(20px, 3vw, 32px);
  font: 600 var(--fs-label)/1.3 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase;
  animation: fadeUp var(--dur-3) var(--ease-out) both;
}
.page-title {
  font-size: clamp(2.75rem, 9vw, 8.5rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 0.96;
  text-wrap: balance;
}
.page-title-xl { font-size: clamp(4rem, 17vw, 17rem); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0.02em 0.12em; margin: -0.08em -0.02em -0.12em; }
.w > span {
  display: inline-block;
  animation: lineUp var(--dur-4) var(--ease-out) both;
  animation-delay: calc(var(--i) * 55ms + 80ms);
}
.page-hero-foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: 24px;
  margin-top: clamp(32px, 4.5vw, 64px); padding-top: 28px;
  border-top: 1px solid var(--ink);
  align-items: start;
  animation: fadeUp var(--dur-3) var(--ease-out) 420ms both;
}
.page-hero-foot .lede { grid-column: 1 / span 6; }
.page-hero-foot > :not(.lede) { grid-column: 8 / -1; justify-self: end; }
.page-hero-foot .hero-ctas { justify-self: stretch; }
.lede { margin: 0; font-size: var(--fs-lead); line-height: 1.45; color: var(--fg-2); max-width: 50ch; }
.hero-count { margin: 0; font-size: var(--fs-small); color: var(--fg-muted); }
.hero-count strong { font-family: var(--font-display); font-size: 2.5rem; color: var(--fg); letter-spacing: -0.027em; margin-right: 6px; vertical-align: -0.12em; }
@media (max-width: 899px) {
  .page-hero-foot .lede, .page-hero-foot > :not(.lede) { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Feature grid ---------- */
.features { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.feature {
  position: relative;
  padding: 28px clamp(16px, 2.4vw, 32px) 36px 0;
  border-bottom: 1px solid var(--line-soft);
}
.features-3 .feature:not(:nth-child(3n + 1)) { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line-soft); }
.feature-idx { display: block; font: 600 var(--fs-label)/1 var(--font-text); letter-spacing: 0.06em; color: var(--accent-ui); margin-bottom: 22px; }
.feature h3 { font-size: var(--fs-4); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 10px; }
.feature p { color: var(--fg-2); font-size: 1rem; }
.feature-tag {
  display: inline-block; margin-top: 14px !important; padding: 4px 8px;
  font: 600 0.75rem/1.2 var(--font-text) !important; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--fg); color: var(--fg) !important;
}
@media (max-width: 1099px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-3 .feature:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .features-3 .feature:nth-child(even) { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line-soft); }
}
@media (max-width: 639px) {
  .features { grid-template-columns: 1fr; }
  .features-3 .feature:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Cards (work) ---------- */
.cards { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 96px) var(--gap); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card a { display: block; text-decoration: none; }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--ink); background: var(--paper); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.card-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 0.875rem; color: var(--fg-muted); }
.card-year { font-variant-numeric: tabular-nums; }
.card-title {
  display: flex; justify-content: space-between; align-items: start; gap: 16px;
  margin-top: 8px; font-size: clamp(1.6rem, 2.8vw, 2.6rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1;
}
.cards-3 .card-title { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.card-arrow .i { width: 1em; height: 1em; transition: transform var(--dur-3) var(--ease-out); }
.card-sum { display: block; margin-top: 12px; color: var(--fg-2); max-width: 46ch; }
.card a:hover img { transform: scale(1.045); }
.card a:hover .card-arrow .i { transform: translate(4px, -4px); color: var(--red); }
.card a:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
@media (min-width: 900px) {
  .cards:not(.cards-3) > li:nth-child(even) { margin-top: clamp(48px, 9vw, 140px); }
}
@media (max-width: 899px) { .cards, .cards-3 { grid-template-columns: 1fr; } }

/* ---------- Pricing: compare table ---------- */
.compare-wrap { position: relative; }
.plan-switch { display: none; border: 0; margin: 0; padding: 0; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9688rem; background: transparent; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.compare tbody th[scope='row'] { font-weight: 500; width: 34%; padding-left: 0; }
.compare thead th {
  position: sticky; top: var(--header-h); z-index: 2;
  background: var(--paper);
  font-family: var(--font-display); font-weight: 750; font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -0.024em;
  border-bottom: 2px solid var(--ink); padding-top: 18px; padding-bottom: 14px;
}
.compare thead th:first-child { padding-left: 0; }
.compare .group th {
  padding: 36px 0 10px;
  font: 600 var(--fs-label)/1.3 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
}
.compare td.is-rec, .compare th.is-rec { background: #fff; }
.compare thead th.is-rec { box-shadow: inset 0 6px 0 var(--red); }
.compare .yes .i { color: var(--red); width: 22px; height: 22px; stroke-width: 2.2; }
.compare .no .i { color: #9a9a9a; width: 18px; height: 18px; }
.compare .val { font-weight: 500; }
.compare .num { font-family: var(--font-display); font-weight: 750; font-size: 1.25rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.compare .total-row th, .compare .total-row td { border-bottom: 2px solid var(--ink); }
.compare .total-row .num { font-size: 1.6rem; }
@media (max-width: 899px) {
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plan-switch { display: flex; position: sticky; top: calc(var(--header-h) + 8px); z-index: 3; margin-bottom: 16px; background: var(--paper); border: 1px solid var(--ink); }
  .plan-switch label { flex: 1; position: relative; }
  .plan-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .plan-switch span { display: grid; place-items: center; min-height: 48px; font-weight: 600; transition: background-color var(--dur-2), color var(--dur-2); }
  .plan-switch label + label span { border-left: 1px solid var(--ink); }
  .plan-switch input:checked + span { background: var(--ink); color: #fff; }
  .plan-switch input:focus-visible + span { outline: 3px solid var(--red); outline-offset: -5px; }
  .compare-wrap:has(input[value='launch']:checked) .compare [data-col]:not([data-col='launch']),
  .compare-wrap:has(input[value='grow']:checked) .compare [data-col]:not([data-col='grow']),
  .compare-wrap:has(input[value='lead']:checked) .compare [data-col]:not([data-col='lead']) { display: none; }
  .compare thead th { position: static; }
  .compare tbody th[scope='row'] { width: 58%; }
  .compare th, .compare td { padding: 12px 10px; }
}

/* ---------- Pricing: fine print ---------- */
.fine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 80px) var(--gap); margin-top: clamp(56px, 7vw, 96px); }
.fine-block h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.024em; border-top: 2px solid var(--ink); padding-top: 20px; margin-bottom: 20px; }
.x-list { list-style: none; display: grid; }
.x-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-weight: 500; }
.x-list li::before { content: ''; width: 18px; height: 18px; margin-top: 3px; background: linear-gradient(45deg, transparent 45%, var(--red) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--red) 45% 55%, transparent 55%); }
.extras { margin: 0; display: grid; }
.extras div { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.extras dt { font-weight: 650; }
.extras dd { margin: 4px 0 0; color: var(--fg-2); font-size: 0.9688rem; }
.pay-steps { list-style: none; counter-reset: pay; display: grid; }
.pay-steps li { counter-increment: pay; position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line-soft); color: var(--fg-2); }
.pay-steps li::before { content: counter(pay); position: absolute; left: 0; top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--red); line-height: 1.1; }
.pay-steps strong { color: var(--fg); }
.fine-block > p { color: var(--fg-2); max-width: 54ch; }
@media (max-width: 899px) { .fine-grid { grid-template-columns: 1fr; } }

.existing {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px;
  padding: clamp(32px, 5vw, 72px);
}
.existing > :first-child { grid-column: 1 / span 5; display: grid; gap: 16px; align-content: start; }
.existing > :last-child { grid-column: 7 / -1; display: grid; gap: 28px; justify-items: start; }
.existing h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.02; }
.existing .label { color: var(--red-bright); }
.existing p { color: var(--fg-2); margin: 0; }
@media (max-width: 899px) { .existing > :first-child, .existing > :last-child { grid-column: 1 / -1; } }

.teaser-band { border: 2px solid var(--ink); padding: clamp(24px, 4vw, 48px); position: relative; }
.teaser-band::before { content: ''; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 10px; background: var(--red); }
.teaser-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-left: 12px; }
.teaser-text { margin: 0; font-family: var(--font-text); font-size: clamp(1.3rem, 2.3vw, 2rem); line-height: 1.18; letter-spacing: -0.02em; max-width: 34ch; font-weight: 500; }
.teaser-text strong { font-weight: 800; }

/* ---------- SEO page ---------- */
.factors { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.factor { border-top: 2px solid var(--ink); padding-top: 20px; container-type: inline-size; }
.factor-word { display: block; margin-bottom: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 4.4vw, 4rem); font-size: min(clamp(2.25rem, 4.4vw, 4rem), 16cqw); letter-spacing: -0.035em; line-height: 1; }
/* 16cqw: the longest word ("Prominence", 5.95em in Hodor) always fits its column. */
.factor p { color: var(--fg-2); }
.source-note { margin-top: clamp(28px, 4vw, 48px); max-width: 64ch; font-size: var(--fs-small); color: var(--fg-muted); border-left: 3px solid var(--red); padding-left: 16px; }
@media (max-width: 899px) { .factors { grid-template-columns: 1fr; gap: 36px; } }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tl-item { position: relative; padding: 32px var(--gap) 0 0; border-top: 2px solid var(--ink); }
.tl-item::before { content: ''; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; background: var(--red); }
.tl-when { font: 600 var(--fs-label)/1.3 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.tl-item h3 { font-size: var(--fs-3); letter-spacing: -0.024em; margin-bottom: 12px; }
.tl-item p { color: var(--fg-2); }
@media (max-width: 1099px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 599px) { .timeline { grid-template-columns: 1fr; } }

.report { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; border: 1px solid var(--line); }
.report-col { padding: clamp(20px, 2.4vw, 32px); }
.report-col + .report-col { border-left: 1px solid var(--line); }
.report-h { font-family: var(--font-display); font-weight: 750; font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -0.024em; color: var(--fg); margin-bottom: 12px; }
.report-col p:not(.report-h) { color: var(--fg-2); font-size: 1rem; }
@media (max-width: 899px) {
  .report { grid-template-columns: 1fr; }
  .report-col + .report-col { border-left: 0; border-top: 1px solid var(--line); }
}

.mini-steps { list-style: none; counter-reset: mini; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); margin-top: 28px; }
.mini-steps li { counter-increment: mini; position: relative; padding: 14px 0 14px 38px; border-top: 1px solid var(--line-soft); color: var(--fg-2); }
.mini-steps li::before { content: counter(mini, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 600 var(--fs-label)/1.9 var(--font-text); color: var(--red); }
.mini-steps strong { color: var(--fg); }
@media (max-width: 599px) { .mini-steps { grid-template-columns: 1fr; } }

/* ---------- GEO page ---------- */
.definition {
  margin: 0 0 clamp(32px, 4vw, 48px); max-width: 32ch;
  padding-left: clamp(20px, 3vw, 40px); border-left: 8px solid var(--red);
  font-family: var(--font-text); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.16; letter-spacing: -0.025em; color: var(--fg);
}
.definition strong { font-weight: 800; }
.vs-wrap { margin-top: clamp(36px, 4vw, 56px); }
.vs { width: 100%; border-collapse: collapse; }
.vs th, .vs td { padding: 16px 16px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.vs thead th { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -0.027em; border-bottom: 2px solid var(--ink); }
.vs thead th:last-child { color: var(--red); }
.vs tbody th { font: 600 var(--fs-label)/1.5 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; width: 22%; }
.vs td { color: var(--fg-2); }
@media (max-width: 599px) {
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; }
  .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vs tbody tr { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
  .vs tbody th, .vs td { border: 0; width: auto; padding: 0; }
  .vs tbody th { margin-bottom: 8px; }
  .vs td { position: relative; padding: 3px 0 3px 52px; }
  .vs td::before { content: attr(data-label); position: absolute; left: 0; top: 3px; font-weight: 750; font-family: var(--font-display); color: var(--fg); }
  .vs td:last-child::before { color: var(--red); }
  /* Labels longer than “SEO” sit above their text instead of beside it. */
  .vs-stack td { padding: 8px 0 0; }
  .vs-stack td::before { position: static; display: block; }
}

.big-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap); }
.big-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.big-list li { border-top: 2px solid var(--fg); padding: 24px 0 48px; }
.big-num { display: block; margin-bottom: 20px; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -0.042em; line-height: 0.9; color: var(--accent-ui); }
.big-list h3 { font-size: var(--fs-3); letter-spacing: -0.024em; margin-bottom: 12px; }
.big-list p { color: var(--fg-2); max-width: 44ch; }
@media (max-width: 1099px) { .big-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .big-list, .big-list-2 { grid-template-columns: 1fr; } }

.track { border: 1px solid var(--ink); background: #fff; }
.track-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.track-table caption { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--ink); font-weight: 700; caption-side: top; }
.track-table caption span { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--fg-muted); }
.track-table th, .track-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
.track-table thead th { font: 600 0.75rem/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
.track-table tbody th { font-weight: 500; }
.chip { display: inline-flex; align-items: center; padding: 4px 9px; font: 600 0.75rem/1.2 var(--font-text); letter-spacing: 0.02em; border: 1px solid; }
.chip-cited { background: var(--red); border-color: var(--red); color: #fff; }
.chip-named { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-missing { background: #fff; border-color: #b5b5b5; color: var(--muted); border-style: dashed; }
.track-key { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 14px 20px; font-size: 0.875rem; color: var(--fg-2); }
.track-key li { display: flex; align-items: center; gap: 8px; }
.track .table-scroll { overflow-x: auto; }
.scroll-hint { display: none; margin: 0; padding: 10px 20px 0; font-size: 0.8125rem; color: var(--fg-muted); }
@media (max-width: 899px) { .scroll-hint { display: block; } }

.proof-links { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); }
.proof-links a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 28px; align-items: center; gap: var(--gap);
  padding: 20px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none;
}
.proof-links a > span:first-child { font-family: var(--font-display); font-weight: 750; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.024em; transition: transform var(--dur-3) var(--ease-out), color var(--dur-2); }
.proof-desc { color: var(--fg-muted); font-size: var(--fs-small); }
.proof-links .i { width: 24px; height: 24px; transition: transform var(--dur-3) var(--ease-out); }
.proof-links a:hover > span:first-child { transform: translateX(10px); color: var(--red-bright); }
.proof-links a:hover .i { transform: translate(3px, -3px); }
@media (max-width: 599px) {
  .proof-links a { grid-template-columns: 1fr 24px; }
  .proof-desc { grid-column: 1; grid-row: 2; }
}

/* ---------- Case study ---------- */
.case-hero .lede { margin-top: clamp(24px, 3vw, 36px); }
.case-fullname { margin: 16px 0 0; font: 600 var(--fs-label)/1.3 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.case-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: clamp(32px, 4.5vw, 56px) 0 0; border-top: 1px solid var(--ink);
  animation: fadeUp var(--dur-3) var(--ease-out) 420ms both;
}
.case-meta div { padding: 16px 20px 4px 0; }
.case-meta div + div { padding-left: 20px; border-left: 1px solid var(--line-soft); }
.case-meta dt { font: 600 0.75rem/1.3 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 6px; }
.case-meta dd { margin: 0; font-weight: 500; line-height: 1.4; }
@media (max-width: 639px) {
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta div, .case-meta div + div { padding: 14px 12px 6px 0; border-left: 0; }
  .case-meta div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-soft); }
}
.browser { border: 1px solid var(--ink); background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--ink); }
.b-dots { display: flex; gap: 6px; }
.b-dots i { width: 10px; height: 10px; border: 1px solid var(--ink); }
.b-dots i:first-child { background: var(--red); border-color: var(--red); }
.b-url { flex: 1; max-width: 420px; margin-inline: auto; padding: 4px 12px; background: var(--paper); font-size: 0.8125rem; color: var(--fg-muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.case-shot .browser-scroll .browser-view { aspect-ratio: 16 / 9; max-height: calc(100svh - var(--header-h) - 120px); }
.browser-view img { width: 100%; will-change: transform; }
.browser-view-auto { aspect-ratio: auto; }
.browser + .shot-cap, .browser .shot-cap { padding: 12px 14px; margin: 0; border-top: 1px solid var(--ink); }
.shot-cap a { color: var(--fg); }
.gallery { display: grid; gap: var(--gap); }
.gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-3 { grid-template-columns: 5fr 7fr; }
.gallery-3 > :first-child { grid-row: span 2; }
.gallery-1 { max-width: 960px; margin-inline: auto; }
.gallery-item img { width: 100%; border: 1px solid var(--ink); background: #fff; }
.gallery-3 > :first-child img { height: 100%; max-height: 1100px; object-fit: cover; object-position: top; padding: 10px; }
.gallery .browser-view { aspect-ratio: 3 / 4; }
@media (max-width: 899px) {
  .gallery-2, .gallery-3 { grid-template-columns: 1fr; }
  .gallery-3 > :first-child { grid-row: auto; }
}
.case-note { max-width: 64ch; margin: 0; padding: 16px 20px; border-left: 3px solid var(--ink); background: var(--paper); font-size: var(--fs-small); color: var(--fg-2); }
.next-case { border-top: 1px solid var(--ink); }
.next-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--gap); row-gap: 12px;
  padding-block: clamp(48px, 7vw, 104px); text-decoration: none;
}
.next-label { display: inline-flex; align-items: center; gap: 10px; font: 600 var(--fs-label)/1.3 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.next-name { grid-column: 1; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 7.5vw, 7.5rem); letter-spacing: -0.042em; line-height: 0.95; transition: transform 800ms var(--ease-out); }
.next-media { grid-column: 2; grid-row: 1 / span 2; width: clamp(140px, 26vw, 400px); aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--ink); }
.next-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.next-inner:hover .next-name { transform: translateX(clamp(8px, 1.5vw, 24px)); }
.next-inner:hover .next-media img { transform: scale(1.06); }
@media (max-width: 599px) {
  .next-inner { grid-template-columns: 1fr; }
  .next-media { grid-column: 1; grid-row: auto; width: 100%; }
}

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.story .portrait { grid-column: 1 / span 4; }
.story-copy { grid-column: 6 / -1; display: grid; gap: 4px; }
.story-copy h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; margin: 20px 0 28px; }
.story-copy p { font-size: 1.125rem; }
.story-copy .lead { font-size: var(--fs-lead); }
@media (min-width: 900px) { .portrait-sticky { position: sticky; top: calc(var(--header-h) + 40px); } }
@media (max-width: 899px) { .story .portrait, .story-copy { grid-column: 1 / -1; } .story .portrait { max-width: 78%; } }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border: 1px solid var(--ink); font-weight: 500; font-size: 0.9688rem; }
.tags-soft li { border-color: var(--rule-soft); background: var(--paper); }
.tags-title { margin: 36px 0 14px; font: 600 var(--fs-label)/1.3 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.contact-aside { grid-column: 1 / span 4; display: grid; gap: 36px; }
.contact-main { grid-column: 6 / -1; }
@media (min-width: 900px) { .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 899px) { .contact-aside, .contact-main { grid-column: 1 / -1; } }
.book-card { padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; justify-items: start; }
.book-card h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 800; letter-spacing: -0.034em; }
.book-card p { margin: 0; }
.next-steps ol { list-style: none; counter-reset: ns; display: grid; margin-top: 14px; border-top: 1px solid var(--ink); }
.next-steps li { counter-increment: ns; position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line-soft); color: var(--fg-2); font-size: 1rem; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 13px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--red); line-height: 1.2; }
.next-steps strong { color: var(--fg); }
.contact-place { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 0; color: var(--fg-muted); font-size: var(--fs-small); }
.contact-place .i { color: var(--red); width: 22px; height: 22px; }

.form { display: grid; gap: 22px; }
.form-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.form-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 750; letter-spacing: -0.03em; }
.form-head p { margin: 0; font-size: var(--fs-small); color: var(--fg-muted); }
.req { color: var(--red); font-weight: 700; }
.opt { font-weight: 400; color: var(--fg-muted); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--gap); }
@media (max-width: 639px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 1rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink);
  font: 400 1.0625rem/1.4 var(--font-text);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a8a; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 0; }
.field [aria-invalid='true'] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.hint { margin: 8px 0 0; font-size: 0.875rem; color: var(--fg-muted); }
.error { margin: 8px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--red); display: flex; gap: 6px; }
.error::before { content: '!'; display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; background: var(--red); color: #fff; font-size: 0.75rem; margin-top: 2px; }
.error[hidden] { display: none; }
.error-summary { border: 2px solid var(--red); padding: 18px 22px; }
.error-summary h3 { font-family: var(--font-text); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; margin-bottom: 8px; }
.error-summary ul { padding-left: 1.2em; }
.error-summary a { color: var(--red); font-weight: 600; }
.error-summary:focus { outline: 3px solid var(--red); outline-offset: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }
.form-note { margin: 0; font-size: 0.875rem; color: var(--fg-muted); }
.form-status { margin: 0; font-size: var(--fs-small); color: var(--fg-2); min-height: 1.5em; }
.form-status.is-error { color: var(--red); font-weight: 600; }
.btn[aria-busy='true'] { pointer-events: none; opacity: 0.75; }
.btn[aria-busy='true'] .i-arrow { animation: nudge 0.8s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.form-success { padding: clamp(28px, 4vw, 48px); display: grid; gap: 14px; border: 1px solid var(--ink); }
.form-success h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.034em; }
.form-success .label { color: var(--red); }
.form-success:focus { outline: none; }

/* ---------- 404 ---------- */
.nf-code { margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-size: clamp(7rem, 26vw, 26rem); line-height: 0.78; letter-spacing: -0.05em; color: var(--red); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vtOut 220ms var(--ease-io) both; }
  ::view-transition-new(root) { animation: vtIn 520ms var(--ease-out) both; }
}
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Reduced motion: final states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .mega .line > span, .w > span, .hero-foot, .stat, .page-hero-foot, .page-kicker, .mega .kicker, .case-meta { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .footer-mark span { transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-group[aria-hidden='true'], .marquee-toggle { display: none; }
  .marquee-group { flex-wrap: wrap; height: auto; padding-block: 20px; row-gap: 8px; }
  .marquee-group li { font-size: clamp(1.25rem, 2.6vw, 2rem); }
  .svc { scale: none !important; }
  .svc::after { opacity: 0 !important; }
  .work-preview { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .marquee, .menu, .work-preview, .progress, .cta-band, .footer-mark { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { font-size: 12pt; }
}

/* ==========================================================================
   WordPress additions (theme only; everything above matches the static build)
   ========================================================================== */

/* Logged in: sticky pieces sit below the admin bar. */
.admin-bar { --wpab: 32px; }
@media (max-width: 782px) { .admin-bar { --wpab: 46px; } }
@media (max-width: 600px) { .admin-bar { --wpab: 0px; } }
.admin-bar .site-header { top: var(--wpab); }
.admin-bar .progress { top: var(--wpab); }
@media (min-width: 900px) {
  .admin-bar .svc { top: calc(var(--wpab) + var(--header-h) + 20px + var(--i) * 26px); }
  .admin-bar .process-aside { top: calc(var(--wpab) + var(--header-h) + 32px); }
  .admin-bar .portrait-sticky { top: calc(var(--wpab) + var(--header-h) + 40px); }
  .admin-bar .contact-aside { top: calc(var(--wpab) + var(--header-h) + 24px); }
  .admin-bar .post-aside { top: calc(var(--wpab) + var(--header-h) + 32px); }
  .admin-bar .compare thead th { top: calc(var(--wpab) + var(--header-h)); }
}

/* Text WordPress itself hides for screen readers (pagination, etc.). */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Blog list ---------- */
.post-list { list-style: none; border-top: 2px solid var(--ink); }
.post-row a {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 32px;
  grid-template-areas: "date name arrow" "date sum arrow";
  column-gap: var(--gap); row-gap: 10px; align-items: start;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}
.post-date { grid-area: date; padding-top: 0.55em; font: 600 var(--fs-label)/1.3 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.post-name {
  grid-area: name;
  font-family: var(--font-display); font-weight: 750;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.04;
  text-wrap: balance;
  transition: transform 700ms var(--ease-out);
}
.post-sum { grid-area: sum; color: var(--fg-2); max-width: 70ch; }
.post-arrow { grid-area: arrow; justify-self: end; padding-top: 0.35em; transition: transform 600ms var(--ease-out); }
.post-arrow .i { width: 28px; height: 28px; }
.post-row a:hover .post-name { transform: translateX(clamp(6px, 1vw, 16px)); }
.post-row a:hover .post-arrow { transform: rotate(-45deg); color: var(--red); }
@media (max-width: 639px) {
  .post-row a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "name" "sum"; }
  .post-arrow { display: none; }
  .post-date { padding-top: 0; }
}

.pagination { margin-top: clamp(32px, 4vw, 56px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--ink); font-weight: 600; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--ink); color: #fff; }
.pagination a.page-numbers:hover { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Blog post ---------- */
.post-hero .page-kicker { flex-wrap: wrap; }
.kicker-sep { color: var(--muted); }
.post-title { font-size: clamp(2.25rem, 5.4vw, 5rem); line-height: 1; }
.post-cover { width: fit-content; max-width: 100%; margin: 0 0 2em; border: 1px solid var(--ink); background: var(--paper); }
.post-content .post-cover img { display: block; width: auto; max-width: 100%; height: auto; border: 0; }
.post-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.post-aside { grid-column: 1 / span 3; display: grid; gap: 14px; align-content: start; }
.post-cats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.post-cats a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--ink); font-size: var(--fs-small); font-weight: 500; text-decoration: none;
}
.post-cats a:hover { background: var(--ink); color: #fff; }
.post-grid .post-content { grid-column: 4 / span 7; min-width: 0; }
@media (min-width: 900px) { .post-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
@media (max-width: 899px) { .post-aside, .post-grid .post-content { grid-column: 1 / -1; } }

/* Long-form text: blog posts and plain pages. */
.post-content { font-size: 1.125rem; line-height: 1.7; color: var(--ink-2); max-width: 760px; }
.post-content > p, .post-content > ul, .post-content > ol { max-width: 68ch; }
.post-content p { margin: 0 0 1.25em; }
.post-content h2 {
  margin: 1.8em 0 0.55em;
  font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--ink);
}
.post-content h3 { margin: 1.6em 0 0.5em; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.12; letter-spacing: -0.024em; color: var(--ink); }
.post-content h4 { margin: 1.4em 0 0.4em; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.post-content > :first-child { margin-top: 0; }
.post-content ul, .post-content ol { margin: 0 0 1.25em; padding-left: 1.3em; }
.post-content li { margin: 0.35em 0; }
.post-content ul li::marker { color: var(--red); }
.post-content ol li::marker { color: var(--red); font-weight: 700; }
.post-content a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.post-content a:hover { color: var(--red); }
.post-content strong, .post-content b { color: var(--ink); font-weight: 650; }
.post-content blockquote {
  margin: 1.6em 0; padding: 4px 0 4px clamp(16px, 2.4vw, 28px); border-left: 6px solid var(--red);
  font-family: var(--font-display); font-weight: 750; font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.15; letter-spacing: -0.025em; color: var(--ink);
}
.post-content blockquote p { margin: 0; }
.post-content blockquote cite { display: block; margin-top: 12px; font: 500 var(--fs-small)/1.4 var(--font-text); letter-spacing: 0; color: var(--fg-muted); }
.post-content figure, .post-content .wp-block-image { margin: 2em 0; }
.post-content img { height: auto; border: 1px solid var(--ink); }
.post-content figcaption, .post-content .wp-element-caption { margin-top: 10px; font-size: var(--fs-small); line-height: 1.45; color: var(--fg-muted); }
.post-content hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--ink); }
.post-content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.post-content th, .post-content td { padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; }
.post-content th { border-bottom: 2px solid var(--ink); }
.post-content .wp-block-table { overflow-x: auto; }
.post-content code { padding: 0.1em 0.35em; background: var(--paper); font-size: 0.92em; }
.post-content pre { overflow-x: auto; padding: 20px; background: var(--ink); color: #fff; }
.post-content pre code { background: none; padding: 0; }
.post-content .alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.post-content .alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.post-content .aligncenter { margin-inline: auto; }
.post-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }
.post-content .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.4em;
  background: var(--red); color: #fff; font-weight: 600; text-decoration: none;
}
.post-content .wp-block-button__link:hover { background: var(--red-deep); color: #fff; }
.post-content .wp-block-embed { margin: 2em 0; }
.post-content iframe { max-width: 100%; }

.author-box {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: start;
  margin-top: 3em; padding-top: 24px; border-top: 2px solid var(--ink);
}
.author-box:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.author-box img.author-photo { width: 88px; height: 88px; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.author-box p { margin: 0; font-size: 1rem; line-height: 1.55; }
.author-box .label { color: var(--fg-muted); }
.author-box .author-name { margin: 4px 0 6px; font-family: var(--font-display); font-weight: 750; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.024em; color: var(--ink); }
.more-posts .sec-head h2 { max-width: none; }
