/* ==========================================================================
   Self-hosted Google Fonts (Instrument Serif + DM Sans)
   Eliminates render-blocking cross-origin requests
   ========================================================================== */

@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/dm-sans-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 300; font-display: swap; src: url(/fonts/dm-sans-300-italic.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/dm-sans-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/dm-sans-500-italic.woff2) format('woff2'); }

/* ==========================================================================
   Aurochs V3 — Registered Custom Properties (enables smooth transitions)
   ========================================================================== */

@property --bg { syntax: '<color>'; inherits: true; initial-value: #0A0908; }
@property --bg-warm { syntax: '<color>'; inherits: true; initial-value: #0E0C0A; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #EDE8E0; }
@property --fg-dim { syntax: '<color>'; inherits: true; initial-value: #9E978D; }
@property --fg-faint { syntax: '<color>'; inherits: true; initial-value: #7C766E; }
@property --gold { syntax: '<color>'; inherits: true; initial-value: #C8963E; }
@property --gold-dim { syntax: '<color>'; inherits: true; initial-value: rgba(200,150,62,0.25); }
@property --gold-glow { syntax: '<color>'; inherits: true; initial-value: rgba(200,150,62,0.08); }
@property --header-scroll-bg { syntax: '<color>'; inherits: true; initial-value: rgba(10,9,8,0.8); }
@property --overlay-bg { syntax: '<color>'; inherits: true; initial-value: rgba(10,9,8,0.98); }
@property --border-subtle { syntax: '<color>'; inherits: true; initial-value: rgba(94,85,78,0.3); }
@property --border-faint { syntax: '<color>'; inherits: true; initial-value: rgba(94,85,78,0.2); }
@property --border-width { syntax: '<length>'; inherits: true; initial-value: 0px; }

/* ==========================================================================
   Aurochs V3 — Dual Token Foundation
   ========================================================================== */

/* ─── Evolution Tokens (default) ─── */
[data-tokens="evolution"] {
  --bg: #0A0908;
  --bg-warm: #0E0C0A;
  --fg: #EDE8E0;
  --fg-dim: #9E978D;
  --fg-faint: #7C766E;
  --gold: #C8963E;
  --gold-dim: rgba(200,150,62,0.25);
  --gold-glow: rgba(200,150,62,0.08);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --border-width: 0px;
  --container-max: 1100px;
  --container-padding: 80px;
  --header-scroll-bg: rgba(10,9,8,0.8);
  --overlay-bg: rgba(10,9,8,0.98);
  --logo-filter: brightness(0) invert(1);
  --border-subtle: rgba(94,85,78,0.3);
  --border-faint: rgba(94,85,78,0.2);
}

/* ─── V2 Source-of-Truth Tokens ─── */
[data-tokens="v2"] {
  --bg: #1E1E1E;
  --bg-warm: #1E1E1E;
  --fg: #F4F0ED;
  --fg-dim: rgba(244,240,237,0.7);
  --fg-faint: rgba(244,240,237,0.45);
  --gold: #C8963E;
  --gold-dim: rgba(200,150,62,0.10);
  --gold-glow: rgba(200,150,62,0.06);
  --font-display: 'Larken', 'Playfair Display', Georgia, serif;
  --font-body: 'Mundial', 'DM Sans', system-ui, sans-serif;
  --border-width: 20px;
  --container-max: 1300px;
  --container-padding: 20px;
  --header-scroll-bg: rgba(30,30,30,0.8);
  --overlay-bg: rgba(30,30,30,0.98);
  --logo-filter: brightness(0) invert(1);
  --border-subtle: rgba(94,85,78,0.3);
  --border-faint: rgba(94,85,78,0.2);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--fg-faint) transparent;
  /* Only transition safe properties — OKLCH interpolation desaturates distant hues
     through white/gray for registered @property <color> vars. bg/bg-warm are safe
     (near-black, ~zero chroma). All others snap to avoid flash. */
  transition: --bg 0.4s ease, --bg-warm 0.4s ease, --border-width 0.4s ease;
}

::selection {
  background: var(--gold-dim);
  color: var(--fg);
}

::-moz-selection {
  background: var(--gold-dim);
  color: var(--fg);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(13px, calc(13px + 5 * ((100vw - 325px) / 100)), 18px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ==========================================================================
   Grain Overlay
   ========================================================================== */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ==========================================================================
   Skip Link
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8125rem;
  z-index: 10000;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Body Border (conditional)
   ========================================================================== */

.body-border {
  position: fixed;
  z-index: 9998;
  background: var(--bg);
  pointer-events: none;
  display: none;
}
[data-tokens="v2"] .body-border { display: block; }
.body-border--top, .body-border--bottom { left: 0; right: 0; height: var(--border-width); }
.body-border--top { top: 0; }
.body-border--bottom { bottom: 0; }
.body-border--left, .body-border--right { top: 0; bottom: 0; width: var(--border-width); }
.body-border--left { left: 0; }
.body-border--right { right: 0; }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(52px, 7vw, 110px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: clamp(24px, 3vw, 36px); }

p {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.7;
  max-width: 65ch;
}

.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.display--large { font-family: var(--font-display); font-size: clamp(48px, 6vw, 96px); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; }

.body-text { font-size: clamp(15px, calc(15px + 5 * ((100vw - 325px) / 100)), 20px); line-height: 1.75; color: var(--fg-dim); max-width: 640px; }
.body-text p + p { margin-top: 1em; }
.body-text em { color: var(--fg); font-style: italic; font-family: var(--font-display); font-size: clamp(16px, calc(16px + 6 * ((100vw - 325px) / 100)), 22px); }

.caption { font-size: 13px; color: var(--fg-faint); line-height: 1.5; }

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: 120px;
  padding-bottom: 120px;
  margin-left: var(--border-width);
  margin-right: var(--border-width);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ==========================================================================
   Fade-in Utilities
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in--delay-1 { transition-delay: 0.2s; }
.fade-in--delay-2 { transition-delay: 0.4s; }

/* Pretext: proportional fade timing — more text = slightly longer reveal */
@media (prefers-reduced-motion: no-preference) {
  .fade-in[style*="--pretext-lines"] {
    --pretext-extra: calc(var(--pretext-lines, 0) * 15ms);
    transition-duration: calc(0.6s + var(--pretext-extra));
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: var(--border-width);
  left: var(--border-width);
  right: var(--border-width);
  z-index: 1000;
  padding: 24px 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + 24px);
  /* transition applied by site-header.js after first paint — prevents flash on load */
}

.header.scrolled {
  background-color: var(--header-scroll-bg);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo outdents into the gutter — nav text aligns with body text below */
.header__left .header__logo {
  margin-left: -58px;
  margin-right: 8px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* [Aurochs] → [Au] logo reveal */
.header__logo {
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
}

.header__bracket {
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
}

.header__au {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  display: inline-flex;
  align-items: baseline;
}

.header__rochs {
  display: block;
  max-width: 4em;
  overflow: hidden;
  opacity: 1;
  white-space: nowrap;
  transition: max-width 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

html.logo-collapsed .header__rochs {
  max-width: 0;
  opacity: 0;
}

/* Hover: breathe the full name back */
html.logo-collapsed .header__logo:hover .header__rochs {
  max-width: 4em;
  opacity: 1;
  transition: max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-tokens="v2"] .header__au {
  font-weight: 700;
  font-style: normal;
}

/* Nav links */
.header__center {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header__nav-link:hover {
  color: var(--gold);
}

.header__nav-link--active {
  color: var(--gold);
}

/* Writing dropdown */
.header__dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(-4px);
  min-width: 180px;
  padding: 8px 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-faint);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease 0.1s, visibility 0.15s ease 0.1s, transform 0.15s ease 0.1s;
  z-index: 100;
}

/* Bridge element prevents hover gap break — PFD L2 */
.header__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.header__dropdown:hover .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.header__dropdown-item:hover {
  color: var(--gold);
}

.header__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  margin-left: 6px;
  border-radius: 3px;
  background: var(--gold-dim);
  color: var(--gold);
  vertical-align: middle;
  position: relative;
  top: -1px;
  line-height: 1;
}

h1 .header__badge {
  font-size: 0.22em;
  padding: 0.15em 0.4em;
  margin-left: 0.25em;
  top: -0.15em;
}

/* Email link */
.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__email {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header__email:hover {
  color: var(--gold);
}

/* Hamburger — hidden on desktop */
.header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 1000;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__hamburger.active span {
  background: var(--gold);
}
.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--overlay-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-overlay__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 12px;
}

.mobile-overlay__link {
  font-family: var(--font-display);
  font-size: clamp(20px, calc(20px + 12 * ((100vw - 325px) / 100)), 32px);
  color: var(--fg);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.mobile-overlay.open .mobile-overlay__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-overlay.open .mobile-overlay__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-overlay.open .mobile-overlay__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-overlay.open .mobile-overlay__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-overlay.open .mobile-overlay__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-overlay.open .mobile-overlay__sublink { transition-delay: 0.3s; }
.mobile-overlay.open .mobile-overlay__sublink + .mobile-overlay__sublink { transition-delay: 0.35s; }

.mobile-overlay__link:hover { color: var(--gold); }

.mobile-overlay__email {
  font-size: 16px;
  color: var(--fg-faint);
  text-decoration: none;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease 0.25s, transform 0.3s ease 0.25s, color 0.2s ease;
}

.mobile-overlay.open .mobile-overlay__email {
  opacity: 1;
  transform: translateY(0);
}

.mobile-overlay__email:hover { color: var(--gold); }

/* Writing sublinks — smaller, body font, indented with dot marker */
.mobile-overlay__sublink {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 400;
  color: var(--fg-dim);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
  padding-left: 12px;
  position: relative;
}

.mobile-overlay__sublink::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg-faint);
  transform: translateY(-50%);
}

.mobile-overlay.open .mobile-overlay__sublink {
  opacity: 1;
  transform: translateY(0);
}

.mobile-overlay__sublink:hover { color: var(--gold); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  margin-left: var(--border-width);
  margin-right: var(--border-width);
  position: relative;
  overflow: hidden;
}

.hero__content {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 32px 48px 32px 36px;
  margin-left: -36px;
}

.hero__content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
  z-index: -1;
  animation: cardFadeIn 0.3s ease both;
}

@keyframes cardFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__label {
  margin-bottom: 24px;
  /* labelTrack removed 2026-04-27: animating letter-spacing changed the
     label's intrinsic max-content width, which fit-content on .hero__content
     tracked, reflowing the parent inward at the end of the cascade.
     If the entrance effect is wanted back, do it with a transform (scaleX)
     so layout isn't touched. */
  animation: heroFadeUp 0.6s ease 1.6s both;
}

.hero__title {
  color: var(--fg);
  margin-bottom: 32px;
  animation: heroFadeUp 0.6s ease 0.15s both;
}

.hero__tm {
  display: inline-block;
  font-size: 0.3em;
  vertical-align: super;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.hero__thesis {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 1.8vw, 28px);
  color: var(--fg);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
  animation: heroFadeUp 0.6s ease 0.7s both;
}

.hero__anchor {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__anchor-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--gold);
  animation: heroFadeUp 0.6s ease 1.1s both;
}

.hero__anchor-line {
  font-size: 16px;
  color: var(--fg-dim);
  letter-spacing: 0.01em;
  animation: heroFadeUp 0.6s ease 1.6s both;
}

/* ── Staggered text reveal (ReactBits-inspired) ── */
.hero__stagger-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.hero__stagger-char--space {
  width: 0.25em;
}

.hero__anchor-number--revealed .hero__stagger-char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Cancel heroFadeUp when stagger is active (JS splits the text) */
.hero__anchor-number--staggered {
  animation: none !important;
  opacity: 1 !important;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__label,
  .hero__title,
  .hero__thesis,
  .hero__anchor {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero__content::before {
    animation: none;
    opacity: 1;
  }
  .hero__title-pretext {
    animation: none;
    opacity: 1;
    filter: none;
  }
  .hero__title-line {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__stagger-char {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ── Pretext hero title — binary-searched fitted lines ── */
.hero__title-pretext {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  /* ReactBits blur-highlight: container-level blur (lines handle own opacity) */
  will-change: filter;
  animation: blurHighlight 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

@keyframes blurHighlight {
  from { filter: blur(4px); }
  to { filter: blur(0px); }
}

.hero__title-line {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__title-line--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive — Mobile (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
  .header__center,
  .header__nav,
  .header__email {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .header__left .header__logo {
    margin-left: 0;
    margin-right: 0;
  }

  .header__right {
    margin-left: auto;
    margin-right: 8px;
  }

  .hero {
    padding: 100px 0 60px;
  }
}

/* ==========================================================================
   The Shift (Section 2)
   ========================================================================== */

.shift__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.shift__hook {
  color: var(--fg);
  margin-bottom: 40px;
}

.shift__body p {
  margin-bottom: 24px;
}

.shift__body p:last-child {
  margin-bottom: 0;
  color: var(--fg);
  font-weight: 400;
}

/* 5-Layer Stack */
.shift__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shift__layer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 0fr;
  align-items: center;
  gap: 0 16px;
  padding: 14px 20px;
  background: var(--gold-glow);
  border: none;
  border-left: 3px solid var(--gold);
  text-align: left;
  font: inherit;
  cursor: pointer;
  width: 100%;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shift__layer:hover {
  background: var(--gold-dim);
}

.shift__layer[aria-expanded="true"] {
  grid-template-rows: auto 1fr;
}

.shift__layer[data-layer="5"] { border-left-color: var(--gold); opacity: 1; }
.shift__layer[data-layer="4"] { border-left-color: var(--gold); opacity: 0.9; }
.shift__layer[data-layer="3"] { border-left-color: var(--gold); opacity: 0.85; }
.shift__layer[data-layer="2"] { border-left-color: var(--gold); opacity: 0.8; }
.shift__layer[data-layer="1"] { border-left-color: var(--gold); opacity: 0.75; }

.shift__layer-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 80px;
}

.shift__layer-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--fg);
}

.shift__layer-chevron {
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.5;
  justify-self: end;
}

.shift__layer:hover .shift__layer-chevron {
  opacity: 1;
}

.shift__layer[aria-expanded="true"] .shift__layer-chevron {
  transform: rotate(-135deg);
  opacity: 1;
}

.shift__layer-detail {
  grid-column: 2 / -1;
  min-height: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg);
  opacity: 0;
  padding: 0;
  transition: opacity 0.3s ease;
}

.shift__layer[aria-expanded="true"] .shift__layer-detail {
  padding-top: 10px;
  padding-bottom: 4px;
  opacity: 0.7;
}

.shift__cta {
  display: inline-block;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.shift__cta:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Proof (Section 3)
   ========================================================================== */

.proof__clients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.proof-card {
  border-top: 1px solid var(--gold);
  padding-top: 32px;
}

.proof-card__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* proof-narrative__number — lead case study number (matches proof-card__number) */
.proof-narrative__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Pretext: shrinkwrap gold rule on proof numbers */
.proof-card__number[data-pretext-measured],
.proof-narrative__number[data-pretext-measured] {
  display: inline-block;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  width: calc(var(--number-width, 100%) + 4px);
}

.proof-grid__number[data-pretext-measured] {
  display: inline-block;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  width: calc(var(--number-width, 100%) + 4px);
}

.proof-card:has([data-pretext-measured]),
.proof-grid__card:has([data-pretext-measured]) {
  border-top-color: transparent;
}

.proof__label {
  display: block;
  margin-bottom: 16px;
}

.proof__heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 400;
  font-style: italic;
  color: var(--fg);
  margin-bottom: 48px;
}

.proof-card__logo {
  display: block;
  height: 48px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.8;
}

.proof-card__logo--icon {
  height: 56px;
}

.proof-card__logo--lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
}

.proof-card__logo-icon {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.proof-card__logo-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.15;
  padding-top: 1px;
}

.proof-card__context {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.65;
  margin-bottom: 24px;
}

.proof-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 12px;
}

.proof-card__cite {
  font-size: 13px;
  color: var(--fg-faint);
  font-style: normal;
}

/* ==========================================================================
   Responsive Additions
   ========================================================================== */

@media (max-width: 768px) {
  .shift__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .proof__clients {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   Proof Part B — Network
   ========================================================================== */

.proof__transition {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--fg-dim);
  max-width: 55ch;
  line-height: 1.6;
  margin-top: 80px;
  margin-bottom: 48px;
}

/* Tyler — featured treatment */
.proof-feature {
  border-top: 1px solid var(--gold);
  padding-top: 32px;
  margin-bottom: 48px;
}

.proof-feature__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--fg);
  margin-bottom: 8px;
}

.proof-feature__role {
  font-size: 14px;
  color: var(--fg-faint);
  margin-bottom: 16px;
}

.proof-feature__body {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 55ch;
}

.proof-feature__outcomes {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.proof-feature__outcome {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  padding: 6px 14px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
}

a.proof-feature__outcome {
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

a.proof-feature__outcome:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.proof-feature__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--fg);
  line-height: 1.6;
  max-width: 55ch;
}

/* Supporting row — Kristen, Quinn, Jeremy */
.proof__supporting {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.proof-supporting {
  border-top: 1px solid var(--fg-faint);
  padding-top: 24px;
}

.proof-supporting__name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 8px;
  font-weight: 400;
}

.proof-supporting__body {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}

.proof-supporting__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.proof-supporting__link:hover {
  opacity: 0.7;
}

/* Logo bar */
.proof__logos {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.proof__logos-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 24px;
}

.proof__logos-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: 32px 40px;
}

.proof__logos-row img {
  width: 175px;
  height: auto;
  max-width: 100%;
  opacity: 0.5;
  filter: var(--logo-filter);
  transition: opacity 0.2s ease, filter 0.4s ease;
}

.proof__logos-row img:hover,
.proof__logos-row svg:hover {
  opacity: 0.7;
}

.proof__logo-svg {
  width: 175px;
  height: auto;
  max-width: 100%;
  opacity: 0.5;
  color: var(--fg);
  transition: opacity 0.2s ease;
}

/* ==========================================================================
   Services (Section 4)
   ========================================================================== */

.services__opening {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--fg-dim);
  max-width: 55ch;
  line-height: 1.5;
  margin-bottom: 64px;
  font-style: italic;
}

.services__tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.tier {
  border-top: 1px solid var(--fg-faint);
  padding-top: 32px;
}

.tier--featured {
  border-top-color: var(--gold);
  background: var(--gold-glow);
  padding: 32px;
  border-radius: 4px;
  border-top: 2px solid var(--gold);
}

.tier__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  color: var(--fg);
  margin-bottom: 12px;
}

.tier__price {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.tier__price-unit {
  font-family: var(--font-body);
  font-size: 0.4em;
  color: var(--fg-dim);
  font-weight: 300;
  letter-spacing: 0;
}

.tier__tagline {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 45ch;
}

.tier__tagline em {
  font-style: italic;
}

.tier__body {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 45ch;
}

.tier__features {
  list-style: none;
  margin-bottom: 20px;
}

.tier__features li {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.tier__features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--fg-faint);
}

.tier__terms {
  font-size: 13px;
  color: var(--fg-faint);
}

/* Closing line */
.services__label {
  display: block;
  margin-bottom: 32px;
}

.services__closing {
  font-size: 16px;
  color: var(--fg-dim);
  margin-bottom: 80px;
}

.services__closing-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.services__closing-link:hover {
  opacity: 0.7;
}

/* FAQ */
.services__faq {
  border-top: 1px solid var(--border-subtle);
  padding-top: 48px;
}

.faq-item {
  border-bottom: 1px solid var(--border-faint);
}

.faq-item__question {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::marker { content: ''; }

.faq-item__question:hover {
  color: var(--gold);
}

.faq-item__answer {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.7;
  padding-bottom: 24px;
  max-width: 60ch;
}

/* ==========================================================================
   Responsive Additions — Proof B + Services
   ========================================================================== */

@media (max-width: 768px) {
  .proof__supporting {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .proof__logos-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
  }

  .proof__logos-row img,
  .proof__logo-svg {
    width: 160px;
  }

  .proof__logos-row img[alt="The Home Depot"] {
    width: 130px;
  }

  .proof__logos-row img[alt="Lowe's"] {
    width: 120px;
  }

  .services__tiers {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .proof-feature__outcomes {
    flex-direction: column;
    gap: 8px;
  }

  .proof-feature__outcome {
    display: inline-block;
    width: fit-content;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}

/* Ink-portrait cartouche — image preserves its own alpha, wrap bg shows
   through transparent areas via --bg-warm. The circular clip hides the
   transparent corner zones; visible result is a token-tinted circle with
   the figure's native ink/white preserved. */
.about__photo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--bg-warm);
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Subtle accent overlay — tints the whole cartouche per mood. Fades on
   hover/reveal so the underlying portrait reads more naturally. */
.about__photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  mix-blend-mode: overlay;
  opacity: 0.18;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.about__photo-wrap:hover::after { opacity: 0.08; }
.about__photo-wrap.revealed::after { opacity: 0; }


.about__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--fg);
  margin-bottom: 4px;
}

.about__role {
  font-size: 14px;
  color: var(--fg-dim);
  margin-bottom: 20px;
}

.about__bio {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 55ch;
  margin-bottom: 16px;
}

.about__bio:last-of-type {
  margin-bottom: 24px;
}

/* ── Pretext origin — obstacle-routing text flow around portrait ── */
.origin__pretext-flow {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.origin__line {
  position: absolute;
  left: 0;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--fg-dim);
  line-height: 1.7;
  white-space: nowrap;
}

.about__closer {
  font-size: 15px;
  font-style: italic;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 55ch;
  margin-bottom: 28px;
}

.about__location {
  font-size: 14px;
  color: var(--fg-dim);
  margin-bottom: 20px;
}

.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

/* ==========================================================================
   Citation Table
   ========================================================================== */

.cite-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0 24px;
}

.cite-table thead tr {
  border-bottom: 2px solid var(--gold);
}

.cite-table th {
  text-align: left;
  padding: 10px 16px;
  color: var(--fg);
  font-weight: 500;
}

.cite-table td {
  padding: 10px 16px;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border-faint);
}

.cite-table td:last-child {
  color: var(--gold);
  white-space: nowrap;
}

.cite-table em {
  color: var(--fg);
}

.about__education {
  font-size: 14px;
  color: var(--fg-dim);
  margin-bottom: 12px;
}

.about__linkedin {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.about__linkedin:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .about__photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about__photo-wrap {
    width: 160px;
    height: 160px;
  }

  .about__bio {
    max-width: none;
  }

  /* Origin section: keep portrait floated right on mobile (per request 2026-04-27);
     larger size so the face reads at a glance. */
  #origin .about__photo-wrap {
    width: clamp(140px, 36vw, 180px) !important;
    height: clamp(140px, 36vw, 180px) !important;
    margin: 0 0 14px 20px !important;
  }
}

/* ==========================================================================
   Contact (Section 5)
   ========================================================================== */

.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact__content {
  display: flex;
  flex-direction: column;
}

.contact__title {
  color: var(--fg);
  margin-bottom: 32px;
}

.contact__email {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 32px);
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-style: italic;
}

.contact__email:hover {
  opacity: 0.7;
}

.contact__line {
  font-size: 16px;
  color: var(--fg-dim);
  margin-top: 16px;
}

.contact__socials {
  display: inline-flex;
  gap: 20px;
  margin-top: 40px;
}

.contact__social {
  display: inline-flex;
  color: var(--fg-faint);
  transition: color 0.2s ease;
}

.contact__social:hover {
  color: var(--gold);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 40px 0;
  margin-left: var(--border-width);
  margin-right: var(--border-width);
  border-top: 1px solid var(--border-faint);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Newsletter section — sits above the 3-column nav block in the footer */
.footer__newsletter {
  padding: 24px 0 40px;
  border-bottom: 1px solid var(--border-faint);
  margin-bottom: 40px;
  max-width: 640px;
}

.footer__newsletter-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--fg);
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.footer__newsletter-title em {
  font-style: italic;
}

.footer__newsletter-tagline {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 50ch;
}

.footer__newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  position: relative;
}

/* ── Outlined text field with floating ("notched") label ──
   Material-style. Label sits as placeholder when empty, animates up to notch
   the top border when focused or filled. Theme-aware via var(--bg) / var(--fg).
   No JS — pure CSS using :focus and :placeholder-shown selectors. */
.field--outlined {
  flex: 1 1 240px;
  min-width: 0;
  position: relative;
}

.field__input {
  width: 100%;
  box-sizing: border-box;
  padding: 18px 14px 8px;          /* extra top padding for the label notch */
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border-faint);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.18s ease;
}

.field__input::placeholder {
  /* Hide the literal placeholder space — :placeholder-shown still fires off it */
  color: transparent;
}

/* Browser autofill — Chrome/Safari force a yellow/cream bg + dark text on
   autofilled fields. Override with box-shadow inset trick (the canonical
   workaround — autofill bg can't be directly overridden by `background`). */
.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover,
.field__input:-webkit-autofill:focus,
.field__input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  caret-color: var(--fg);
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}

.field__input:focus {
  border-color: var(--gold);
}

.field__input[aria-invalid="true"] {
  border-color: rgb(232, 80, 32);
}

.field__label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 4px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-faint);
  background: var(--bg);            /* covers border line when floated — themed */
  pointer-events: none;
  transition: transform 0.18s ease, font-size 0.18s ease, color 0.18s ease, top 0.18s ease;
}

/* Float the label when input has focus OR has a value (placeholder-shown = empty) */
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  top: 0;
  font-size: 12px;
  color: var(--gold);
}

.field__input:not(:focus):not(:placeholder-shown) + .field__label {
  color: var(--fg-dim);
}

.footer__newsletter-submit {
  flex: 0 0 auto;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer__newsletter-submit:hover,
.footer__newsletter-submit:focus-visible {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.footer__newsletter-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.footer__newsletter-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Turnstile widget — hidden until JS calls turnstile.execute(). The widget
   renders an iframe; pushing it offscreen still allows challenge execution
   while keeping the form layout clean. The challenge UI (rare) appears as a
   modal overlay so positioning doesn't affect that. */
#newsletter-turnstile {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.footer__newsletter-message {
  flex: 1 0 100%;
  font-size: 13px;
  color: var(--fg-dim);
  margin: 4px 0 0;
  min-height: 1.4em;
}

.footer__newsletter-message[data-state="success"] {
  color: var(--gold);
}

.footer__newsletter-message[data-state="error"] {
  color: rgb(232, 80, 32);
}

@media (max-width: 768px) {
  .footer__newsletter {
    padding: 16px 0 32px;
    margin-bottom: 32px;
  }
  .footer__newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .field--outlined {
    flex: 1 1 auto;
    width: 100%;
  }
  .footer__newsletter-submit {
    width: 100%;
  }
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  padding-bottom: 56px;
}

.footer__col-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--fg-dim);  /* muted: title acts as a quiet label, lets bright links carry the signal */
  margin: 0 0 24px;
  letter-spacing: 0;
  line-height: 1.2;
}

[data-tokens="v2"] .footer__col-title {
  font-style: italic;
}

/* Brand mark inside the column title — three-tone match of the header [Aurochs] logo:
   cream brackets + gold "Au" + cream "rochs", then muted " Agency" trails in title color.
   This makes the [Aurochs] portion pop as a logo against the dimmed continuation. */
.footer__col-title .footer__bracket {
  color: var(--fg);
  font-style: normal;
}
.footer__rochs {
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Mirror the .footer__mark hover behavior for any column title that wraps
   a bracketed mark (currently only [Aurochs]). Brackets push outward and
   turn gold on hover. :has() scopes it so plain titles like "Make Me Think"
   stay non-interactive. */
.footer__col-title:has(.footer__bracket) {
  cursor: pointer;
}

.footer__col-title:has(.footer__bracket):hover .footer__bracket:first-of-type {
  transform: translateX(-3px);
  color: var(--gold);
}

.footer__col-title:has(.footer__bracket):hover .footer__bracket:last-of-type {
  transform: translateX(3px);
  color: var(--gold);
}

.footer__col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__col-links a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__col-links a:hover,
.footer__col-links a:focus-visible {
  color: var(--gold);
}

.footer__legal-row {
  border-top: 1px solid var(--border-faint);
  padding-top: 24px;
}

@media (max-width: 768px) {
  .footer__columns {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
}

.footer__mark {
  font-size: 1.125rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.footer__bracket {
  color: var(--fg-faint);
  font-family: var(--font-body);
  font-weight: 300;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer__mark:hover .footer__bracket:first-child {
  transform: translateX(-3px);
  color: var(--gold);
}

.footer__mark:hover .footer__bracket:last-child {
  transform: translateX(3px);
  color: var(--gold);
}

.footer__au {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
}

[data-tokens="v2"] .footer__au {
  font-weight: 700;
  font-style: normal;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__copy {
  font-size: 13px;
  color: var(--fg-faint);
}

.footer__legal {
  width: 100%;
  font-size: 12px;
  color: var(--fg-faint);
  opacity: 0.7;
  line-height: 1.5;
  margin-top: 8px;
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__links a {
  font-size: 13px;
  color: var(--fg-faint);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer__links a:hover {
  opacity: 1;
}

/* ==========================================================================
   Responsive — Tablet hero stability (≤768px)
   Lock the hero card minimum width on phones+small tablets so fit-content
   can't reflow inward as the animation cascade completes.
   ========================================================================== */

@media (max-width: 768px) {
  .hero__content {
    min-width: 90vw;
  }
}

/* ==========================================================================
   Responsive — Small Mobile (≤480px)
   ========================================================================== */

@media (max-width: 480px) {
  [data-tokens="evolution"] {
    --container-padding: 20px;
  }

  .hero {
    padding: 80px 0 48px;
  }

  .hero__title {
    margin-bottom: 16px;
  }

  .hero__thesis {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .hero__anchor-number {
    font-size: 28px;
  }

  .hero__content {
    padding: 16px;
    margin-left: -16px;
    /* Lock minimum width so fit-content can't reflow inward as
       animations settle — kills the "padding snap" at the end of
       the hero cascade. The ≤425px rule below tightens this further;
       see also the matching @media (max-width: 768px) rule for tablets. */
    min-width: 90vw;
  }

  .shift__hook {
    font-size: clamp(32px, 8vw, 48px);
  }

  .proof-feature__quote {
    font-size: 16px;
  }

  .services__opening {
    font-size: 18px;
  }

  .tier__price {
    font-size: 32px;
  }

  .contact__title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .header {
    padding: 16px 0;
  }
}

/* Full-bleed glass card ≤425px — edge to edge, pretext fills width */
@media (max-width: 425px) {
  .hero__content {
    margin-left: calc(-1 * var(--container-padding));
    margin-right: calc(-1 * var(--container-padding));
    padding: 28px var(--container-padding) 32px var(--container-padding);
    border-radius: 0;
    width: 90vw !important;
    max-width: none !important;
  }
}

/* ==========================================================================
   Aurora Canvas (hero background)
   ========================================================================== */

.aurora-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Dither Cursor Canvas (page-wide)
   ========================================================================== */

.dither-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}
[data-theme="light"] .dither-canvas {
  mix-blend-mode: multiply;
  opacity: 0.95;
}

/* Z-index sandwich: fades (0) < dither cursor (1) < glass containers (2).
   main has NO z-index — no stacking context, so children participate in
   the root stacking context alongside the dither cursor. */
main, .footer {
  position: relative;
}

/* Glass legibility layer — sits ABOVE dither cursor (z-index: 2 > 1).
   backdrop-filter blurs the dither dots behind text.
   color-mix creates a semi-transparent version of --bg; over the same --bg body
   it's invisible. When dither passes behind, backdrop-filter softens the pattern. */
.section > .container,
main > .container,
.footer > .container {
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* ==========================================================================
   Header Controls (day/night + mood cycle)
   ========================================================================== */

.header__controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header__daynight {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--fg);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.header__daynight:hover {
  color: var(--gold);
}

/* Sun/Moon icon visibility based on current theme */
.daynight-moon { display: none; }
[data-theme="light"] .daynight-sun { display: none; }
[data-theme="light"] .daynight-moon { display: inline-block; }

/* ==========================================================================
   Shader Gallery
   ========================================================================== */

.shader-gallery {
  padding: 80px 0;
}

.shader-gallery__header {
  text-align: center;
  margin-bottom: 48px;
}

.shader-gallery__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--fg);
  margin-bottom: 8px;
}

.shader-gallery__subtitle {
  font-size: 14px;
  color: var(--fg-faint);
}

.shader-gallery__subtitle a {
  color: var(--gold);
  text-decoration: none;
}

.shader-gallery__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 50vh;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  background: var(--bg-warm);
}

.shader-gallery__grid {
  display: grid;
  grid-template-columns: 8fr 3fr;
  gap: 24px;
}

.shader-gallery__card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--bg-warm);
  cursor: default;
}

.shader-gallery__card--wide {
  aspect-ratio: 4 / 3;
}

.shader-gallery__card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Static fallback images — visible by default, hidden when WebGL live */
.shader-gallery__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.effect--live .shader-gallery__fallback {
  opacity: 0;
  pointer-events: none;
}

/* Canvas injected by SharedRenderer */
.shader-gallery__hero canvas,
.shader-gallery__card canvas,
.shader-gallery__card--wide canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.shader-gallery__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 4px;
  z-index: 2;
}

/* Shader card text overlays — in-shader editorial */
.shader-gallery__statement {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1.2;
  color: var(--fg);
  margin: 0;
  mix-blend-mode: exclusion;
}

/* XOR: 45° diagonal — flat gold, same color as the shader accent */
.shader-gallery__statement--diagonal {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  text-align: center;
  font-size: 64px;
  max-width: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
  mix-blend-mode: normal;
  color: var(--gold);
}

@media (max-width: 768px) {
  .shader-gallery__statement--diagonal { font-size: 32px; }
}

.gallery--static .shader-gallery__card {
  cursor: default;
}

/* Gallery bridge sentence */
.shader-gallery__bridge {
  text-align: center;
  padding: 48px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--fg-dim);
}

@media (max-width: 768px) {
  .shader-gallery__grid {
    grid-template-columns: 1fr;
  }
  .shader-gallery__card:not(.shader-gallery__card--wide) {
    aspect-ratio: 4 / 3;
  }
  .shader-gallery__hero {
    max-height: 40vh;
  }
}

/* ── Mood snap: kill all transitions during palette changes to prevent
   OKLCH desaturation flash on elements with local color transitions ── */
html.mood-snap,
html.mood-snap *:not(.header__rochs),
html.mood-snap *::before,
html.mood-snap *::after {
  transition-duration: 0s !important;
}

/* Mobile table scroll — prevents overflow from wide tables */
@media (max-width: 768px) {
  .article-appendix table,
  .cite-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   Forms & CTAs
   ========================================================================== */

.contact-form, .subscribe-form { margin-top: 3rem; }
.contact-form__heading { font: 400 clamp(1.2rem, 2vw, 1.5rem) var(--font-display); color: var(--fg); margin-bottom: 1.5rem; }
.contact-form__group { margin-bottom: 1.25rem; }
.contact-form__group--optional { opacity: 0.8; }
.contact-form__label { display: block; font-size: 0.875rem; color: var(--fg-dim); margin-bottom: 0.375rem; letter-spacing: 0.02em; }
.contact-form__optional { color: var(--fg-faint); font-size: 0.75rem; }
.contact-form__input, .contact-form__textarea, .subscribe-form__input {
  width: 100%; padding: 0.75rem 1rem; background: transparent;
  border: 1px solid var(--border-subtle); border-radius: 6px;
  color: var(--fg); font: 400 1rem var(--font-body);
  transition: border-color 200ms ease;
}
.contact-form__input:focus, .contact-form__textarea:focus, .subscribe-form__input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.contact-form__textarea { resize: vertical; min-height: 60px; }

.subscribe-form { margin-top: 4rem; text-align: center; }
.subscribe-form__label { font-size: 0.9rem; color: var(--fg-dim); margin-bottom: 0.75rem; display: block; }
.subscribe-form__row { display: flex; gap: 0.5rem; max-width: 400px; margin: 0 auto; align-items: flex-start; flex-wrap: wrap; }
.subscribe-form__input { flex: 1; min-width: 200px; }

.btn { display: inline-block; padding: 0.875rem 2rem; border: none; border-radius: 6px;
  font: 500 1rem var(--font-body); cursor: pointer; text-decoration: none; text-align: center;
  transition: all 200ms ease; }
.btn--primary { background: var(--gold); color: #0A0908; }
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn--secondary { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn--secondary:hover { background: var(--gold-glow); }
.btn--tertiary { background: var(--border-subtle); color: var(--fg); white-space: nowrap; }
.btn--tertiary:hover { background: var(--border-faint); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.contact-form__status, .subscribe-form__status { margin-top: 0.75rem; font-size: 0.875rem; min-height: 1.5rem; }
.contact-form__status--success, .subscribe-form__status--success { color: #4ade80; }
.contact-form__status--error, .subscribe-form__status--error { color: #f87171; }

.contact__or { color: var(--fg-faint); font-size: 0.875rem; margin: 1.5rem 0; }

.subscribe-section { margin-top: 8rem; padding: 3rem 0; border-top: 1px solid var(--border-faint); }

.container.article { padding-top: 44px; padding-bottom: 44px; }

@media (max-width: 480px) {
  .subscribe-form__row { flex-direction: column; }
  .subscribe-form__input { min-width: 100%; }
  .btn { width: 100%; }
}
