/* =========================================================
   CA James Consulting · site.css
   Tokens and rules documented in DESIGN.md
   1. Tokens  2. Base  3. Type  4. Layout  5. Buttons
   6. Header + mobile nav  7. Sections  8. Motion  9. Responsive
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --rust: #BC3908;
  --rust-deep: #952D06;
  --rust-ink: #5E1C03;
  --ember: #FF9505;
  --ember-soft: #FFB866;
  --ink: #140F0D;
  --ink-2: #1E1714;
  --ink-3: #2C231F;
  --bone: #FAF6F0;
  --bone-2: #F2EBE1;
  --sand: #E6D9C8;
  --stone: #6B5E57;
  --mist: rgba(250, 246, 240, .72);
  --line: rgba(20, 15, 13, .12);
  --line-dark: rgba(250, 246, 240, .14);

  --serif: "Newsreader", "Libre Baskerville", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(3.5rem, 1.6rem + 6.6vw, 8rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem);
  --fs-h2: clamp(2.125rem, 1.4rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.375rem, 1.1rem + .8vw, 1.75rem);
  --fs-lead: clamp(1.25rem, 1rem + .9vw, 1.75rem);
  --fs-body-lg: 1.1875rem;
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-eyebrow: .75rem;

  --pad-x: clamp(20px, 5vw, 56px);
  --section-y: clamp(88px, 11vw, 168px);
  --maxw: 1280px;
  --radius: 20px;
  --shadow-lift: 0 30px 60px -30px rgba(20, 15, 13, .45);

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 180ms;
  --dur-2: 420ms;
  --dur-3: 800ms;

  --hdr-h: 84px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top var(--dur-2) var(--ease-out); }
.skip:focus { top: 16px; }

/* ---------- 3. TYPE ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.h1, .h2, .h3, .hero__title, .quote__title, .step__title, .pillar__title, .outcome__title, .post__title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); line-height: 1.0; letter-spacing: -.02em; }
.h2 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -.018em; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; }
em { font-style: italic; }
.h1 em, .h2 em, .hero__title em { color: var(--rust); font-weight: 400; }
.section--ink .h2 em, .band .h1 em, .band .h2 em, .bridge .h2 em, .hero__title em { color: var(--ember); }
.cta .h1 em { color: var(--bone); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2;
  color: var(--rust);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow--light { color: var(--ember); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.body-lg { font-size: var(--fs-body-lg); line-height: 1.65; }

/* ---------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--pad-x) * 2); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; position: relative; }
.section--ink { background: var(--ink); color: var(--bone); overflow: hidden; }

.frame { position: relative; isolation: isolate; }
.frame img { border-radius: var(--radius); width: 100%; position: relative; z-index: 1; box-shadow: var(--shadow-lift); }
.frame::before {
  content: ""; position: absolute; z-index: 0; border-radius: var(--radius);
  inset: 28px -28px -28px 28px;
  background: var(--sand);
}
.frame--rust::before { background: radial-gradient(120% 120% at 80% 0%, #D9480E 0%, var(--rust) 45%, var(--rust-ink) 100%); }
.frame--right::before { inset: 28px 28px -28px -28px; }

.watermark {
  position: absolute; width: min(62vw, 820px); right: -14vw; top: 50%;
  translate: 0 -50%; opacity: .05; pointer-events: none;
  animation: spin 90s linear infinite;
}
.watermark--left { right: auto; left: -18vw; opacity: .03; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  --bg: var(--rust); --fg: #fff; --bg-h: var(--rust-deep);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 28px;
  border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: .005em; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: background var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.btn:hover { background: var(--bg-h); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(20, 15, 13, .5); }
.btn:active { transform: translateY(0); }
.btn__arrow { display: inline-block; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { --bg: var(--rust); --fg: #fff; --bg-h: var(--rust-deep); }
.btn--ember { --bg: var(--ember); --fg: var(--ink); --bg-h: var(--ember-soft); }
.btn--ink { --bg: var(--ink); --fg: var(--bone); --bg-h: #000; }
.btn--sm { padding: 13px 22px; font-size: .9375rem; }
.btn--lg { padding: 20px 34px; font-size: 1.0625rem; }

/* ---------- 6. HEADER ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--hdr-h);
  color: var(--bone);
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.hdr__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.hdr__logo { position: relative; display: block; width: 184px; flex: none; margin-left: -12px; }
.hdr__logo img { width: 100%; height: auto; transition: opacity var(--dur-2) var(--ease-out); }
.hdr__logo .logo-light { position: absolute; inset: 0; opacity: 0; }
.hdr__nav { display: flex; gap: 6px; margin-left: auto; }
.hdr__nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; text-decoration: none; opacity: .9;
  transition: background var(--dur-1), opacity var(--dur-1);
}
.hdr__nav a:hover { opacity: 1; background: rgba(250, 246, 240, .12); }
.hdr__cta { flex: none; }
.hdr__menu { display: none; }

.hdr.is-solid {
  background: rgba(250, 246, 240, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-solid .logo-dark { opacity: 0; }
.hdr.is-solid .logo-light { opacity: 1; }
.hdr.is-solid .hdr__nav a:hover { background: rgba(20, 15, 13, .06); }
.hdr.is-hidden { transform: translateY(-100%); }

/* mobile nav */
.mnav {
  position: fixed; inset: 0; z-index: 90; isolation: isolate;
  background: var(--ink); color: var(--bone);
  padding: calc(var(--hdr-h) + 32px) var(--pad-x) 40px;
  display: flex; flex-direction: column; gap: 40px;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
}
.mnav.is-open { opacity: 1; }
.mnav[hidden] { display: none; }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a {
  font-family: var(--serif); font-size: clamp(2.25rem, 9vw, 3rem); line-height: 1.15; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--line-dark);
}
.mnav .btn { align-self: flex-start; }
.mnav__mark { position: fixed; z-index: -1; width: 120vw; right: -50vw; bottom: -40vw; opacity: .05; animation: spin 90s linear infinite; pointer-events: none; }
body.menu-open { overflow: hidden; }
body.menu-open .hdr { color: var(--bone); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .hdr .logo-dark { opacity: 1; }
body.menu-open .hdr .logo-light { opacity: 0; }

/* ---------- 7. SECTIONS ---------- */

/* 7.1 Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 720px);
  display: flex; align-items: flex-end;
  color: var(--bone);
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 0% 100%, rgba(188, 57, 8, .38) 0%, transparent 70%),
    linear-gradient(0deg, rgba(20, 15, 13, .92) 0%, rgba(20, 15, 13, .55) 42%, rgba(20, 15, 13, .2) 75%, rgba(20, 15, 13, .45) 100%),
    linear-gradient(90deg, rgba(20, 15, 13, .72) 0%, rgba(20, 15, 13, .35) 55%, rgba(20, 15, 13, .2) 100%);
}
.hero__in {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px 64px; align-items: end;
  padding-top: calc(var(--hdr-h) + 64px); padding-bottom: clamp(88px, 12vh, 140px);
}
.hero__title { font-size: var(--fs-hero); line-height: .92; letter-spacing: -.03em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__line > span { display: inline-block; }
.hero__title em { padding-right: .06em; }
.hero__copy { max-width: 520px; padding-bottom: 8px; }
.hero__lead { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -.005em; margin-bottom: 18px; }
.hero__text { color: var(--mist); font-size: var(--fs-body-lg); margin-bottom: 36px; max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.founder { display: flex; align-items: center; gap: 14px; }
.founder img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--ember); }
.founder strong { display: block; font-weight: 600; font-size: 1rem; line-height: 1.25; }
.founder span { display: block; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.hero__scroll {
  position: absolute; right: var(--pad-x); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--mist);
  writing-mode: vertical-rl;
}
.hero__scroll i { display: block; width: 1px; height: 64px; background: rgba(250, 246, 240, .25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--ember); animation: drip 2.2s var(--ease-in-out) infinite; }

/* 7.2 Outcomes */
.outcomes { background: var(--bone); overflow: hidden; padding-bottom: clamp(72px, 8vw, 120px); }
.outcomes .container { position: relative; }
.watermark--rust { opacity: .05; width: min(46vw, 620px); right: -10vw; top: 38%; }
.outcomes__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.outcomes__list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.outcome {
  position: relative; padding: 36px 32px 8px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 28px;
}
.outcome:first-child { border-left: 0; padding-left: 0; }
.outcome::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out); }
.outcome:hover::before { transform: scaleX(1); }
.outcome__num { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; color: var(--stone); }
.outcome__title { font-size: 1.625rem; line-height: 1.15; letter-spacing: -.01em; max-width: 9em; }

.icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--rust);
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2);
}
.icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.outcome:hover .icon { background: var(--rust); color: #fff; border-color: var(--rust); }
.icon--onrust { color: #fff; border-color: rgba(255, 255, 255, .35); }

/* 7.3 Problem */
.problem { background: var(--bone-2); }
.problem__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(56px, 8vw, 128px); align-items: center; }
.problem__media { position: relative; max-width: 480px; }
.problem__media img { aspect-ratio: 1000 / 1150; object-fit: cover; }
.problem__mark { position: absolute; width: 112px; left: -40px; bottom: -48px; z-index: 2; animation: spin 40s linear infinite; filter: drop-shadow(0 10px 20px rgba(20,15,13,.25)); }
.problem__body .h2 { margin-bottom: 36px; max-width: 13em; }
.qlist { counter-reset: q; margin-bottom: 44px !important; border-bottom: 1px solid var(--line); }
.qlist li {
  display: grid; grid-template-columns: 64px 1fr; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem); line-height: 1.3; letter-spacing: -.005em;
  transition: padding var(--dur-2) var(--ease-out), color var(--dur-2);
}
.qlist li:hover { padding-left: 12px; }
.qlist__n { font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; color: var(--stone); transition: color var(--dur-2); }
.qlist li:hover .qlist__n { color: var(--rust); }

/* 7.4 Bridge */
.bridge { background: var(--ink); color: var(--bone); overflow: hidden; }
.bridge__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: min(92vh, 860px); }
.bridge__body {
  align-self: center;
  padding: var(--section-y) clamp(40px, 6vw, 96px) var(--section-y) max(var(--pad-x), calc((100vw - var(--maxw)) / 2));
}
.bridge__body .h2 { margin-bottom: 40px; max-width: 12em; }
.bridge__p { color: var(--mist); font-size: var(--fs-body-lg); max-width: 32em; }
.bridge__p strong { color: var(--bone); font-weight: 600; }
.bridge__truth {
  font-family: var(--serif); font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); line-height: 1.2; letter-spacing: -.01em;
  margin: 8px 0 32px; padding-left: 24px; border-left: 2px solid var(--ember); max-width: 15em;
}
.bridge__media { position: relative; overflow: hidden; min-height: 520px; }
.bridge__media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 50% 60%; }

/* 7.5 Pillars */
.pillars { background: var(--bone); }
.pillars__head { max-width: 820px; margin-bottom: clamp(48px, 6vw, 80px); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 440px; padding: 36px 36px 40px; border-radius: var(--radius);
  display: flex; flex-direction: column;
  color: #fff;
  background: radial-gradient(140% 120% at 100% 0%, #D44A12 0%, var(--rust) 42%, var(--rust-ink) 100%);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.pillar::after {
  content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -110px; bottom: -120px;
  background: url("assets/brand/mark-white.svg") center / contain no-repeat; opacity: .08;
  transition: transform 1.4s var(--ease-out), opacity var(--dur-2);
}
.pillar:hover { transform: translateY(-8px); box-shadow: 0 40px 60px -30px rgba(94, 28, 3, .65); }
.pillar:hover::after { transform: rotate(90deg); opacity: .14; }
.pillar:hover .icon { background: #fff; color: var(--rust); border-color: #fff; }
.pillar__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.pillar__num { font-family: var(--serif); font-size: 3.5rem; line-height: 1; opacity: .35; letter-spacing: -.02em; }
.pillar__title { font-size: clamp(1.625rem, 1.3rem + .8vw, 2rem); line-height: 1.12; letter-spacing: -.015em; margin: 72px 0 16px; }
.pillar p { color: rgba(255, 255, 255, .84); font-size: 1.0625rem; line-height: 1.6; max-width: 24em; }
.pillars__cta { margin-top: 56px; display: flex; justify-content: center; }

/* 7.6 Photo bands */
.band { position: relative; isolation: isolate; overflow: hidden; color: var(--bone); background: var(--ink); }
.band__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.band__media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.band__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 15, 13, .92) 0%, rgba(20, 15, 13, .72) 40%, rgba(20, 15, 13, .25) 100%),
    linear-gradient(0deg, rgba(20, 15, 13, .55), transparent 50%);
}
.band__shade--warm {
  background:
    linear-gradient(0deg, rgba(20, 15, 13, .94) 0%, rgba(20, 15, 13, .7) 45%, rgba(20, 15, 13, .35) 100%),
    linear-gradient(90deg, rgba(94, 28, 3, .55), rgba(188, 57, 8, .15));
}
.band__in { padding-top: clamp(120px, 16vw, 220px); padding-bottom: clamp(120px, 16vw, 220px); }
.band--goals .band__in { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.band--goals .band__media img { filter: grayscale(1) contrast(1.05); object-position: 50% 30%; }
.band--goals .h1 { margin-bottom: 44px; max-width: 10em; }
.band__in--split { display: grid; grid-template-columns: 7fr 5fr; gap: 40px 96px; align-items: end; min-height: 72vh; }
.band__p { font-size: var(--fs-body-lg); color: var(--mist); margin-bottom: 32px; max-width: 28em; }

/* 7.7 Process */
.process { background: var(--bone); }
.process__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
.process__aside { align-self: stretch; }
.process__sticky { position: sticky; top: calc(var(--hdr-h) + 48px); }
.process__sticky .h2 { margin-bottom: 36px; }
.process__lead { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -.005em; max-width: 17em; margin-bottom: 18px; }
.process__p { color: var(--stone); max-width: 28em; margin-bottom: 36px; }
.steps { position: relative; padding-left: 72px; }
.steps__track { position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ember), var(--rust)); transform-origin: top; transform: scaleY(0); }
.step { position: relative; padding: 0 clamp(0px, 9vw, 150px) clamp(64px, 7vw, 96px) 0; }
.step:last-child { padding-bottom: 0; }
.step__dot {
  position: absolute; left: -64px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bone); border: 2px solid var(--sand);
  transition: border-color var(--dur-2), background var(--dur-2), box-shadow var(--dur-2);
}
.step.is-reached .step__dot { border-color: var(--rust); background: var(--rust); box-shadow: 0 0 0 6px rgba(188, 57, 8, .14); }
.step__label { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); margin-bottom: 14px; }
.step__title { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); line-height: 1.08; letter-spacing: -.018em; margin-bottom: 20px; max-width: 14em; }
.step p:not(.step__label) { color: var(--stone); max-width: 34em; position: relative; z-index: 1; }
.step__big {
  position: absolute; right: 0; top: -28px; z-index: 0;
  font-family: var(--serif); font-size: clamp(7rem, 5rem + 6vw, 12rem); line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(188, 57, 8, .22);
  pointer-events: none; user-select: none;
}

/* 7.8 Clients */
.clients { background: var(--bone); padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.clients .eyebrow { margin-bottom: 48px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: clamp(56px, 7vw, 112px); width: max-content; padding: 8px 0; }
.marquee.is-running .marquee__track { animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; }
.marquee__track img { height: 52px; width: auto; filter: grayscale(1) contrast(1.1); opacity: .7; transition: filter var(--dur-2), opacity var(--dur-2); }
.marquee__track img.logo--tall { height: 72px; }
.marquee__track img.logo--wide { height: 34px; }
.marquee__track img:hover { filter: none; opacity: 1; }

/* 7.9 About */
.about { background: var(--bone-2); overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(64px, 9vw, 140px); align-items: center; }
.about__media { position: relative; max-width: 500px; }
.about__media img { aspect-ratio: 1000 / 1100; object-fit: cover; }
.about__glow { position: absolute; inset: -20%; background: radial-gradient(closest-side, rgba(255, 149, 5, .28), transparent); z-index: 0; pointer-events: none; }
.about__mark { position: absolute; width: 104px; right: -36px; top: -40px; z-index: 2; animation: spin 50s linear infinite reverse; filter: drop-shadow(0 10px 20px rgba(20,15,13,.25)); }
.about__body .h2 { margin-bottom: 32px; max-width: 13em; }
.about__body p { color: var(--stone); max-width: 36em; }
.about__body .body-lg { color: var(--ink); }
.about__body .btn { margin-top: 20px; }

/* 7.10 Testimonials */
.voices .container { position: relative; }
.voices__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.voices__nav { display: flex; gap: 10px; }
.arrow {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: transparent; color: var(--bone); font-size: 1.25rem;
  transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2);
}
.arrow:hover { background: var(--ember); color: var(--ink); border-color: var(--ember); }
.arrow:disabled { opacity: .35; pointer-events: none; }
.car__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.car__track::-webkit-scrollbar { display: none; }
.quote {
  flex: 0 0 calc((100% - 24px) / 2); scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: clamp(32px, 4vw, 52px);
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
}
.stars { color: var(--ember); letter-spacing: .2em; font-size: .9375rem; margin-bottom: 28px; }
.quote__title { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); line-height: 1.15; letter-spacing: -.012em; margin-bottom: 22px; }
.quote p { color: var(--mist); font-size: 1rem; line-height: 1.7; }
.quote__by { margin-top: auto; padding-top: 32px; display: flex; align-items: center; gap: 14px; font-weight: 600; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--rust); font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.car__progress { margin-top: 40px; height: 2px; background: var(--line-dark); border-radius: 2px; overflow: hidden; }
.car__progress span { display: block; height: 100%; width: 50%; background: var(--ember); transform-origin: left; transition: transform var(--dur-2) var(--ease-out), width var(--dur-2); }

/* 7.11 FAQ */
.faq { background: var(--bone); }
.faq__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--hdr-h) + 48px); }
.faq__aside .h2 { margin-bottom: 36px; }
.acc { border-bottom: 1px solid var(--line); }
.acc details { border-top: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0;
  font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem); line-height: 1.3; letter-spacing: -.005em;
  transition: color var(--dur-1);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--rust); }
.acc summary i { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: background var(--dur-2), border-color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform var(--dur-2) var(--ease-out); }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i { background: var(--rust); border-color: var(--rust); color: #fff; }
.acc details[open] summary i::after { transform: rotate(0deg); }
.acc__body { overflow: hidden; }
.acc__inner { padding: 0 72px 36px 0; color: var(--stone); }
.acc__inner p, .acc__inner li { max-width: 46em; }
.acc__inner ol, .acc__inner ul { padding-left: 1.25em; margin: 0 0 1em; }
.acc__inner li { margin-bottom: .5em; }
.acc__inner li::marker { color: var(--rust); font-weight: 600; }
.acc__inner strong { color: var(--ink); font-weight: 600; }
.acc__inner a { color: var(--rust); font-weight: 600; }
.acc__stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 40px; margin: 8px 0 20px; }
.acc__stages h4 { font-family: var(--sans); font-weight: 600; font-size: .9375rem; color: var(--ink); margin: 0 0 6px; }
.acc__stages ul { margin: 0 0 14px; }
.acc__cols { columns: 2; column-gap: 40px; }
.acc__cols li { break-inside: avoid; }

/* 7.12 Blog */
.blog { background: var(--bone-2); }
.blog__head { margin-bottom: 56px; }
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post a { display: flex; flex-direction: column; height: 100%; text-decoration: none; position: relative; }
.post__img { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; margin-bottom: 24px; background: var(--sand); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post a:hover .post__img img { transform: scale(1.05); }
.post__date { position: absolute; left: 16px; top: 16px; padding: 7px 14px; border-radius: 999px; background: var(--bone); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; }
.post__tag { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); margin-bottom: 12px; }
.post__title { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; padding-right: 56px; transition: color var(--dur-1); }
.post a:hover .post__title { color: var(--rust); }
.post__more { position: absolute; right: 0; bottom: 2px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.post a:hover .post__more { background: var(--rust); color: #fff; border-color: var(--rust); transform: rotate(-45deg); }

/* 7.13 Final CTA */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 140% at 85% 10%, #D9480E 0%, var(--rust) 42%, var(--rust-ink) 100%);
  color: #fff; text-align: center;
  padding: clamp(112px, 14vw, 200px) 0;
}
.cta__mark { position: absolute; z-index: -1; width: min(90vw, 1100px); left: 50%; top: 50%; translate: -50% -50%; opacity: .06; animation: spin 80s linear infinite; pointer-events: none; }
.cta__in { display: flex; flex-direction: column; align-items: center; }
.cta__logo { width: 88px; height: 88px; margin-bottom: 40px; animation: spin 30s linear infinite; }
.cta .h1 { max-width: 13em; margin-bottom: 48px; }

/* 7.14 Footer */
.ftr { background: var(--ink); color: var(--mist); padding: 80px 0 40px; }
.ftr__top { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.ftr__logo { display: block; width: 220px; margin-left: -14px; }
.ftr__logo img { width: 100%; height: auto; }
.ftr__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.ftr__nav a { text-decoration: none; color: var(--bone); font-weight: 500; font-size: .9375rem; opacity: .85; transition: opacity var(--dur-1), color var(--dur-1); }
.ftr__nav a:hover { opacity: 1; color: var(--ember); }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.ftr__bottom a { color: var(--bone); text-decoration: none; }
.ftr__bottom a:hover { color: var(--ember); }

/* ---------- 8. MOTION ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* reveal (JS adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* icon draw */
.js .draw svg > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out); transition-delay: calc(var(--d, 0ms) + 200ms); }
.js .is-in .draw svg > *, .js .draw.is-in svg > * { stroke-dashoffset: 0; }

/* hero intro */
.js .hero__line > span { transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.js .hero__line:nth-child(2) > span { transition-delay: 120ms; }
.js .hero__line:nth-child(3) > span { transition-delay: 240ms; }
.js .hero__copy { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-out) 520ms, transform 1s var(--ease-out) 520ms; }
.js .hero__media img { transform: scale(1.08); transition: transform 2.6s var(--ease-out); }
.js .is-loaded .hero__line > span { transform: none; }
.js .is-loaded .hero__copy { opacity: 1; transform: none; }
.js .is-loaded .hero__media img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .hero__copy { opacity: 1; transform: none; }
  .js .hero__line > span, .js .hero__media img { transform: none; }
  .js .draw svg > * { stroke-dashoffset: 0; }
  [data-parallax] { transform: none !important; }
}

/* ---------- 9. RESPONSIVE ----------
   Tiers: desktop ≥1081 · tablet landscape 901–1080 · tablet portrait 600–900 · phone ≤599
   Plus: short landscape phones, touch (hover: none) and coarse pointers. */

@media (max-width: 1180px) {
  .hdr__nav a { padding: 8px 10px; }
  .hdr__in { gap: 20px; }
}

/* ---- tablet landscape and below ---- */
@media (max-width: 1080px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__menu {
    display: grid; place-items: center; margin-left: auto;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: transparent;
    border-color: rgba(250, 246, 240, .35);
  }
  .hdr.is-solid .hdr__menu { border-color: var(--line); }
  .hdr__burger, .hdr__burger::before, .hdr__burger::after { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--dur-2) var(--ease-out), background var(--dur-1); }
  .hdr__burger { position: relative; }
  .hdr__burger::before, .hdr__burger::after { content: ""; position: absolute; left: 0; }
  .hdr__burger::before { top: -6px; }
  .hdr__burger::after { top: 6px; }
  .menu-open .hdr__burger { background: transparent; }
  .menu-open .hdr__burger::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .hdr__burger::after { transform: translateY(-6px) rotate(-45deg); }

  .hero__in { gap: 40px; }
  .hero__shade {
    background:
      radial-gradient(70% 60% at 0% 100%, rgba(188, 57, 8, .38) 0%, transparent 70%),
      linear-gradient(0deg, rgba(20, 15, 13, .94) 0%, rgba(20, 15, 13, .7) 48%, rgba(20, 15, 13, .25) 78%, rgba(20, 15, 13, .5) 100%),
      linear-gradient(90deg, rgba(20, 15, 13, .6) 0%, rgba(20, 15, 13, .3) 100%);
  }
  .outcome { padding: 32px 22px 8px; }
  .outcome__title { font-size: 1.375rem; }
  .pillars__grid { gap: 18px; }
  .pillar { min-height: 380px; padding: 28px 28px 32px; }
  .pillar__num { font-size: 2.75rem; }
  .pillar__title { font-size: 1.5rem; margin-top: 56px; }
  .pillar p { font-size: 1rem; }
  .blog__grid { gap: 24px; }
  .post__title { font-size: 1.25rem; }
  .ftr__top { gap: 28px 40px; }
}

/* ---- tablet portrait and below ---- */
@media (max-width: 900px) {
  :root { --hdr-h: 72px; }
  .hdr__logo { width: 156px; }

  .hero { min-height: max(100svh, 640px); }
  .hero__media img { object-position: 38% 40%; }
  .hero__shade {
    background:
      radial-gradient(90% 50% at 0% 100%, rgba(188, 57, 8, .35) 0%, transparent 70%),
      linear-gradient(0deg, rgba(20, 15, 13, .95) 0%, rgba(20, 15, 13, .78) 50%, rgba(20, 15, 13, .35) 80%, rgba(20, 15, 13, .55) 100%);
  }
  .hero__in { grid-template-columns: 1fr; gap: 32px; padding-bottom: 96px; }
  .hero__copy { max-width: 560px; }
  .hero__scroll { display: none; }

  .outcomes__list { grid-template-columns: repeat(2, 1fr); }
  .outcome:nth-child(3) { border-left: 0; padding-left: 0; }
  .outcome:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }

  .frame::before { inset: 18px -18px -18px 18px; }
  .frame--right::before { inset: 18px 18px -18px -18px; }

  .problem__grid { gap: 48px; }
  .problem__mark { width: 84px; left: -26px; bottom: -34px; }
  .qlist li { grid-template-columns: 44px 1fr; padding: 18px 0; }

  .bridge__grid { grid-template-columns: 1fr; min-height: 0; }
  .bridge__body { padding: var(--section-y) var(--pad-x) 64px; }
  .bridge__media { min-height: 0; aspect-ratio: 3 / 2; }
  .bridge__media img { object-position: 50% 55%; }

  .pillars__grid { grid-template-columns: 1fr; gap: 16px; }
  .pillar {
    min-height: 0; padding: 32px;
    display: grid; grid-template-columns: auto 1fr; column-gap: 32px; align-items: start;
  }
  .pillar__top { grid-column: 1; grid-row: 1 / span 2; flex-direction: column; align-items: flex-start; gap: 18px; margin: 0; }
  .pillar__title, .pillar p { grid-column: 2; }
  .pillar__title { margin: 4px 0 10px; font-size: 1.625rem; }
  .pillar::after { width: 260px; height: 260px; right: -80px; bottom: -110px; }

  .band--goals .band__in { min-height: 0; }
  .band__shade { background: linear-gradient(0deg, rgba(20, 15, 13, .9) 0%, rgba(20, 15, 13, .7) 60%, rgba(20, 15, 13, .5) 100%); }
  .band__in--split { grid-template-columns: 1fr; min-height: 0; }

  .process__grid { grid-template-columns: 1fr; gap: 72px; }
  .process__sticky { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; }
  .process__sticky .eyebrow { grid-column: 1 / -1; }
  .process__sticky .h2 { grid-column: 1; grid-row: 2 / span 3; margin: 0; }
  .process__lead, .process__p, .process__sticky .btn { grid-column: 2; }
  .process__sticky .btn { justify-self: start; }
  .step { padding-right: 96px; }
  .step__big { font-size: 8rem; top: -24px; }

  .clients .eyebrow { margin-bottom: 40px; }
  .marquee__track img { height: 44px; }
  .marquee__track img.logo--tall { height: 60px; }
  .marquee__track img.logo--wide { height: 28px; }

  .about__grid { gap: 56px; align-items: start; }
  .about__media { margin-top: 8px; }
  .about__media { margin-left: 18px; }
  .about__mark { width: 80px; right: -22px; top: -30px; }

  .quote { flex-basis: 78%; }
  .voices__head { margin-bottom: 40px; }

  .faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .faq__aside { position: static; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .faq__aside .h2 { margin: 0; }
  .acc__inner { padding-right: 0; }

  .blog__grid { grid-template-columns: 1fr 1fr; }
  .post__title { font-size: 1.375rem; }
  .blog__grid .post:last-child { grid-column: 1 / -1; }
  .blog__grid .post:last-child a { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-content: start; }
  .blog__grid .post:last-child .post__img { grid-row: 1 / span 3; margin: 0; }
  .blog__grid .post:last-child .post__tag { margin-top: 4px; }

  .ftr__top { flex-direction: column; align-items: flex-start; }
}

/* ---- small tablets / large phones: stack the photo splits ---- */
@media (max-width: 699px) {
  .problem__grid, .about__grid { grid-template-columns: 1fr; gap: 56px; }
  .problem__media { max-width: 460px; margin-right: 18px; }
  .about__media { max-width: 460px; }
}

/* ---- phone ---- */
@media (max-width: 599px) {
  .hero__actions .btn { width: 100%; justify-content: center; }

  .outcomes__list { grid-template-columns: 1fr; }
  .outcome, .outcome:first-child, .outcome:nth-child(3) { border-left: 0; padding: 26px 0; margin-top: 0; flex-direction: row; align-items: center; gap: 20px; }
  .outcome + .outcome { border-top: 1px solid var(--line); }
  .outcome__num { width: 24px; flex: none; }
  .outcome__title { font-size: 1.375rem; max-width: none; }
  .icon { width: 52px; height: 52px; flex: none; }

  .bridge__media { aspect-ratio: 4 / 5; }

  .pillar { display: flex; padding: 28px 28px 32px; }
  .pillar__top { flex-direction: row; justify-content: space-between; align-items: flex-start; width: 100%; }
  .pillar__title { margin: 40px 0 12px; }

  .process__sticky { display: block; }
  .process__sticky .h2 { margin-bottom: 28px; }
  .steps { padding-left: 52px; }
  .step { padding-right: 0; }
  .step__dot { left: -44px; }
  .step__big { font-size: 6rem; top: -20px; }

  .eyebrow--center { gap: 10px; text-align: center; }
  .eyebrow--center::before, .eyebrow--center::after { width: 16px; }
  .marquee__track { gap: 48px; }
  .marquee__track img { height: 38px; }
  .marquee__track img.logo--tall { height: 52px; }
  .marquee__track img.logo--wide { height: 24px; }

  .quote { flex-basis: 88%; padding: 28px 24px; }
  .quote__title { margin-bottom: 18px; }
  .voices__nav .arrow { width: 48px; height: 48px; }

  .faq__aside { flex-direction: column; align-items: flex-start; }
  .acc summary { padding: 22px 0; }
  .acc summary i { width: 40px; height: 40px; }
  .acc__stages { grid-template-columns: 1fr; }
  .acc__cols { columns: 1; }

  .blog__grid { grid-template-columns: 1fr; gap: 40px; }
  .blog__grid .post:last-child a { display: flex; }
  .blog__grid .post:last-child .post__img { margin-bottom: 24px; }

  .ftr { padding-top: 64px; }
  .ftr__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; width: 100%; }
  .ftr__nav a { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .ftr__bottom { flex-direction: column; gap: 6px; }
}

/* ---- short landscape phones ---- */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1080px) {
  .hero { min-height: 0; }
  .hero__in { grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; padding-top: calc(var(--hdr-h) + 24px); padding-bottom: 48px; }
  .hero__title { font-size: clamp(2.75rem, 13vh, 4.5rem); }
  .hero__lead { font-size: 1.25rem; margin-bottom: 12px; }
  .hero__copy { padding-top: 6px; }
  .hero__shade { background: radial-gradient(70% 80% at 0% 100%, rgba(188, 57, 8, .3) 0%, transparent 70%), linear-gradient(90deg, rgba(20, 15, 13, .78) 0%, rgba(20, 15, 13, .62) 100%); }
  .hero__text { margin-bottom: 24px; }
  .hero__actions .btn { width: auto; }
  .bridge__media { aspect-ratio: 16 / 9; }
  .mnav { padding-top: calc(var(--hdr-h) + 8px); gap: 20px; }
  .mnav nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .mnav nav a { font-size: 1.75rem; padding: 8px 0; }
}

/* ---- touch: no sticky hover states, real tap feedback ---- */
a, button, summary { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; background: var(--bg); }
  .btn:hover .btn__arrow { transform: none; }
  .btn:active { transform: scale(.97); background: var(--bg-h); }
  .hdr__nav a:hover { background: transparent; }
  .outcome:hover::before { transform: scaleX(0); }
  .outcome:hover .icon { background: transparent; color: var(--rust); border-color: var(--line); }
  .qlist li:hover { padding-left: 0; }
  .qlist li:hover .qlist__n { color: var(--stone); }
  .pillar:hover { transform: none; box-shadow: none; }
  .pillar:hover::after { transform: none; opacity: .08; }
  .pillar:hover .icon { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
  .marquee__track img:hover { filter: grayscale(1) contrast(1.1); opacity: .7; }
  .arrow:hover { background: transparent; color: var(--bone); border-color: var(--line-dark); }
  .arrow:active { background: var(--ember); color: var(--ink); border-color: var(--ember); }
  .acc summary:hover { color: inherit; }
  .post a:hover .post__img img { transform: none; }
  .post a:hover .post__title { color: inherit; }
  .post a:hover .post__more { background: transparent; color: inherit; border-color: var(--line); transform: none; }
  .post a:active .post__more { background: var(--rust); color: #fff; border-color: var(--rust); }
  .ftr__nav a:hover { color: var(--bone); }
}
@media (pointer: coarse) {
  .ftr__nav a { display: inline-block; padding: 10px 0; }
  .ftr__bottom a { display: inline-block; padding: 10px 0; }
  .acc__inner a { padding: 6px 0; }
}

/* ---------- 10. BLOG PAGES (/blog and /blog/<post>) ---------- */
/* page hero: ink band the transparent header sits on, like the homepage hero */
.phero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--bone);
  padding: calc(var(--hdr-h) + clamp(56px, 8vw, 120px)) 0 clamp(72px, 9vw, 128px);
}
.phero .watermark { z-index: -1; }
.phero .h1 em { color: var(--ember); }
.phero--post { padding-bottom: clamp(140px, 16vw, 240px); }
.phero__in { max-width: calc(940px + var(--pad-x) * 2); margin-left: auto; margin-right: auto; }
.phero__back {
  display: inline-flex; gap: 10px; align-items: center; margin-bottom: clamp(32px, 4vw, 56px);
  color: var(--mist); text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  transition: color var(--dur-1);
}
.phero__back:hover { color: var(--ember); }
.phero__title {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 400; text-wrap: balance;
  font-size: clamp(2.25rem, 1.3rem + 3.1vw, 4.25rem); line-height: 1.04; letter-spacing: -.02em;
  margin-bottom: 32px;
}
.phero__meta { display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--mist); font-size: var(--fs-sm); }
.phero__meta > * + *::before { content: "·"; margin: 0 12px; color: var(--ember); }

/* article */
.article { position: relative; }
.article__cover {
  max-width: 1040px; margin: calc(-1 * clamp(100px, 12vw, 180px)) auto 0;
  position: relative; z-index: 1;
}
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.prose {
  max-width: 700px; margin: 0 auto; padding-top: clamp(56px, 7vw, 96px);
  font-size: var(--fs-body-lg); line-height: 1.75;
}
.prose > :first-child { margin-top: 0; }
.prose p { margin-bottom: 1.15em; }
.prose h2 {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 400; text-wrap: balance;
  font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.125rem); line-height: 1.15; letter-spacing: -.012em;
  margin: 2.1em 0 .65em;
}
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1875rem; line-height: 1.35; margin: 1.8em 0 .6em; }
.prose h2 + h3 { margin-top: .6em; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.prose li { margin-bottom: .7em; padding-left: .3em; }
.prose li::marker { color: var(--rust); font-weight: 600; }
.prose a { color: var(--rust); text-underline-offset: 3px; }
.prose a:hover { color: var(--rust-deep); }
.article__end {
  max-width: 700px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 40px 0 var(--section-y);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px;
}
.article__back { color: var(--ink); font-weight: 600; text-decoration: none; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.article__back:hover { color: var(--rust); border-color: var(--rust); }

/* blog index + "more posts" grid */
.blog--page { background: var(--bone); }
.blog__grid--two { grid-template-columns: repeat(2, 1fr); }
.hdr__nav a[aria-current="page"] { opacity: 1; }

@media (max-width: 900px) {
  .blog__grid--two .post:last-child { grid-column: auto; }
  .blog__grid--two .post:last-child a { display: flex; }
  .blog__grid--two .post:last-child .post__img { margin-bottom: 24px; }
}
@media (max-width: 599px) {
  .blog__grid--two { grid-template-columns: 1fr; }
  .prose { font-size: var(--fs-body); }
  .article__end .btn { width: 100%; justify-content: center; }
}
