/* ============================================
   Design tokens
   ============================================ */
:root {
  --bg: #090605;
  --bg-alt: #120e0b;
  --bg-alt-2: #1c1712;
  --bg-lift: #221b15;

  --text: #f7f5f2;
  --text-soft: #cdc6ba;
  --muted: #847c72;
  --muted-dim: #625b52;

  --border: rgba(247, 245, 242, 0.1);
  --border-strong: rgba(247, 245, 242, 0.24);
  --border-accent: rgba(150, 86, 28, 0.4);

  --secondary-dark: #5d5046;

  --accent: #96561c;
  --accent-light: #c17a3a;
  --accent-dim: #6e4116;
  --accent-soft: rgba(150, 86, 28, 0.16);

  --ok: #7c9473;

  --font-display: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);

  --display-hero: clamp(3rem, 1.2rem + 7.5vw, 7.25rem);
  --display-lg: clamp(2.25rem, 1.3rem + 4vw, 4.5rem);
  --display-md: clamp(1.9rem, 1.3rem + 2.5vw, 3.1rem);
  --display-sm: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 168px;

  --content-width: 780px;
  --wide-width: 1080px;
  --xwide-width: 1320px;

  --radius-sm: 2px;
  --radius: 3px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 200ms;
  --dur: 420ms;
  --dur-slow: 750ms;
}

/* Light mode: same warm palette family, luminance flipped. Dark stays the
   default (this brand's primary identity) -- light is an explicit,
   remembered choice via the header toggle, not a system-preference guess. */
/* Light mode palette (teal/white experiment): #FFFFFF #C8E7E9 #203535
   #0099A3 #344E4E #006269 #DBE9EE. Background is pure white, as requested.
   #0099A3 only reaches ~3.45:1 against white -- enough for a solid fill or
   large/decorative text, not for body copy -- so the three near-black/deep
   teal tones (#203535, #344E4E, #006269) carry text and interactive-text
   roles instead, each still distinct enough to preserve real hierarchy. */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #dbe9ee;
  --bg-alt-2: #c8e7e9;
  --bg-lift: #ffffff;

  --text: #203535;
  --text-soft: #344e4e;
  --muted: #006269;
  --muted-dim: #0099a3;

  --border: rgba(32, 53, 53, 0.12);
  --border-strong: rgba(32, 53, 53, 0.24);
  --border-accent: rgba(0, 153, 163, 0.4);

  --accent: #0099a3;
  --accent-light: #006269;
  --accent-dim: #203535;
  --accent-soft: rgba(0, 153, 163, 0.12);
}

/* ============================================
   Reset & base
   ============================================ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Extremely subtle film-grain + radial light -- present but not consciously
   noticed. Fixed so it doesn't repaint on scroll; pointer-events off so it
   never intercepts clicks. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

body::after {
  content: "";
  position: fixed;
  top: -10%;
  left: 50%;
  width: 1400px;
  height: 900px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(150, 86, 28, 0.08) 0%, transparent 65%);
}

body > * {
  position: relative;
  z-index: 2;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.01em;
  font-weight: 500;
}

em, .serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-light);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.wrap-wide {
  max-width: var(--xwide-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

section {
  border-top: 1px solid var(--border);
}

section:first-of-type {
  border-top: none;
}

[id] {
  scroll-margin-top: 110px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: var(--space-4);
}

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

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

/* Reveal system: text/image blocks fade + lift into place as they cross the
   viewport. Gated behind .reveal-ready (added by JS only once it's actually
   watching), so content stays fully visible if JS never runs. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.reveal-ready [data-reveal-scale] {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity var(--dur-slow) var(--ease), transform 900ms var(--ease);
}

.reveal-ready [data-reveal-scale].is-visible {
  opacity: 1;
  transform: none;
}

.reveal-ready [data-reveal-line] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease);
}

.reveal-ready [data-reveal-line].is-visible {
  clip-path: inset(0 0 0% 0);
}

/* Stagger children inside a revealed group via inline --i custom property */
[data-reveal-group] [data-reveal] {
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ============================================
   Custom cursor (fine pointer + hover-capable only)
   ============================================ */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--text);
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transition: opacity var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(9, 6, 5, 0.4);
  backdrop-filter: blur(2px);
  will-change: transform, width, height, margin;
  transition: opacity var(--dur-fast) var(--ease), width var(--dur) var(--ease),
    height var(--dur) var(--ease), margin var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

:root[data-theme="light"] .cursor-ring {
  background: rgba(255, 255, 255, 0.65);
}

.cursor-active .cursor-dot,
.cursor-active .cursor-ring {
  opacity: 1;
}

.cursor-ring.is-label {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.cursor-active .cursor-dot {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  html.cursor-active,
  html.cursor-active a,
  html.cursor-active button {
    cursor: none;
  }
}

/* ============================================
   Section head component (numbered eyebrow)
   ============================================ */
.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.section-head h2 {
  font-size: var(--display-sm);
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
}

.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================
   Typographic CTA (no pill buttons -- underline + arrow)
   ============================================ */
.cta-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-bottom: 3px;
  cursor: pointer;
  background: none;
  border: none;
}

.cta-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform var(--dur) var(--ease), background-color var(--dur-fast) var(--ease);
}

.cta-link:hover,
.cta-link:focus-visible {
  color: var(--accent-light);
}

.cta-link:hover::after,
.cta-link:focus-visible::after {
  transform: scaleX(1);
}

.cta-link .cta-arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}

.cta-link:hover .cta-arrow,
.cta-link:focus-visible .cta-arrow {
  transform: translateX(5px);
}

.cta-link--muted {
  color: var(--muted);
}

.cta-link--muted:hover,
.cta-link--muted:focus-visible {
  color: var(--text);
}

.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
}

/* A real form control -- deliberately not a pill; sharp corners, solid fill */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 1em 1.9em;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.btn-solid:active {
  transform: scale(0.98);
}

.btn-solid:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(9, 6, 5, 0.72);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

:root[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) clamp(20px, 5vw, 56px);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-short {
  display: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Duplicate of the header-controls availability, shown only on mobile
   (directly under the name instead of off in the icon row) -- see the
   max-width:768px block below. */
.header-brand .availability--brand {
  display: none;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(124, 148, 115, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: var(--space-2) 0;
  transition: color var(--dur-fast) var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.theme-toggle {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.theme-toggle .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.theme-toggle .icon-moon {
  opacity: 1;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.nav-toggle .icon-close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .icon-close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Full-screen mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) clamp(20px, 8vw, 56px);
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear 0s;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  list-style: none;
  margin: 0 0 var(--space-9);
  padding: 0;
}

.mobile-menu-nav a {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 2rem + 3vw, 3.6rem);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  opacity: 0.4;
  transition: opacity var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus-visible {
  opacity: 1;
  color: var(--accent-light);
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
}

.mobile-menu-foot a {
  color: var(--text-soft);
  text-decoration: none;
}

body.menu-open {
  overflow: hidden;
}

/* The header sits above the full-screen mobile menu (z-index 100 vs 90)
   so its own toggle/close controls stay usable while the menu is open --
   but that also means the header's availability row would otherwise
   render on top of the menu, duplicating the copy already in its footer. */
body.menu-open .header-inner .availability {
  visibility: hidden;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  max-width: var(--xwide-width);
  margin: 0 auto;
  padding: calc(var(--space-9) + 64px) clamp(20px, 5vw, 56px) calc(var(--space-9) + 32px);
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  font-size: var(--display-hero);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-6);
}

.hero h1 em {
  display: block;
}

.hero-lead {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-soft);
  font-size: var(--text-lg);
  line-height: 1.6;
  max-width: 48ch;
  margin: 0 0 var(--space-7);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

/* ============================================
   Proof band: worked-with marquee
   ============================================ */
.band {
  padding: var(--space-6) 0;
}

.worked-with-label {
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 var(--space-5);
}

.logo-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black clamp(20px, 5vw, 60px), black calc(100% - clamp(20px, 5vw, 60px)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black clamp(20px, 5vw, 60px), black calc(100% - clamp(20px, 5vw, 60px)), transparent 100%);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.logo-marquee-group {
  display: contents;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

.logo-marquee-item {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  margin-right: var(--space-9);
  opacity: 0.55;
  filter: grayscale(1) brightness(1.6);
  transition: opacity var(--dur-fast) var(--ease);
}

:root[data-theme="light"] .logo-marquee-item {
  filter: grayscale(1) brightness(0.55);
}

.logo-marquee-item:hover {
  opacity: 0.9;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Pull quote (shared: featured quote band + case studies)
   ============================================ */
.featured-quote {
  background: var(--bg-alt);
}

.featured-quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: -0.35em;
}

.featured-quote .pull-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--text);
  max-width: 20ch;
}

.featured-quote-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.featured-quote-avatar,
.testimonial-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt-2);
  color: var(--muted);
  overflow: hidden;
}

.featured-quote-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-family: var(--font-sans);
}

.featured-quote-name {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-sm);
}

.featured-quote-role {
  color: var(--muted);
  font-size: var(--text-sm);
}

.featured-quote-role::before {
  content: "\2014 ";
}

/* ============================================
   Intro / philosophy statement
   ============================================ */
.intro {
  padding: var(--space-11) 0;
}

.intro-heading {
  font-size: var(--display-lg);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-8);
  max-width: 11ch;
}

.intro-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
}

.intro-body p {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}

.intro-body p strong {
  color: var(--text);
  font-weight: 500;
}

/* ============================================
   Selected work -- editorial alternating showcase
   ============================================ */
.work {
  padding: var(--space-9) 0 var(--space-10);
}

.work-list {
  display: flex;
  flex-direction: column;
}

.project-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-9) 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.work-list > a:first-child {
  border-top: none;
  padding-top: var(--space-6);
}

.project-row--reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.project-row--reverse .project-visual { order: 2; }
.project-row--reverse .project-copy { order: 1; }

.project-row--full {
  grid-template-columns: 1fr;
}

.project-row--full .project-visual {
  aspect-ratio: 21 / 9;
}

.project-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
  filter: grayscale(0.35) brightness(0.92) contrast(1.02);
}

.project-row:hover .project-visual img,
.project-row:focus-visible .project-visual img {
  transform: scale(1.06);
  filter: grayscale(0) brightness(1) contrast(1);
}

.project-index {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  padding: var(--space-1) var(--space-2);
  background: rgba(9, 6, 5, 0.55);
  backdrop-filter: blur(4px);
}

.project-copy {
  transition: transform var(--dur-slow) var(--ease);
}

.project-row:hover .project-copy,
.project-row:focus-visible .project-copy {
  transform: translateX(6px);
}

.project-row--reverse:hover .project-copy,
.project-row--reverse:focus-visible .project-copy {
  transform: translateX(-6px);
}

.project-copy h3 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  font-weight: 500;
  margin: 0 0 var(--space-3);
  transition: color var(--dur-fast) var(--ease);
}

.project-row:hover .project-copy h3,
.project-row:focus-visible .project-copy h3 {
  color: var(--accent-light);
}

.project-desc {
  color: var(--muted);
  font-size: var(--text-base);
  max-width: 46ch;
  margin: 0 0 var(--space-5);
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0 0 var(--space-5);
}

.project-meta-row span {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.project-meta-row span:not(:last-child)::after {
  content: "";
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.project-cta .cta-arrow {
  transition: transform var(--dur) var(--ease);
}

.project-row:hover .project-cta .cta-arrow,
.project-row:focus-visible .project-cta .cta-arrow {
  transform: translateX(5px);
}

/* ============================================
   Process sequence
   ============================================ */
.process {
  padding: var(--space-10) 0;
  background: var(--bg-alt);
}

.process-sequence {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: var(--space-8);
}

.process-step {
  position: relative;
  padding: var(--space-6) var(--space-4) 0 0;
  border-top: 1px solid var(--border-strong);
}

.process-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur-slow) var(--ease);
}

.process-step.is-visible::before {
  width: 100%;
}

.process-step-index {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: var(--space-3);
}

.process-step h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 var(--space-3);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0 0 var(--space-3);
  max-width: 26ch;
}

.process-step-method {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

/* ============================================
   Expertise (expand on hover/click)
   ============================================ */
.expertise {
  padding: var(--space-10) 0;
}

.expertise-list {
  margin-top: var(--space-7);
  border-top: 1px solid var(--border);
}

.expertise-item {
  border-bottom: 1px solid var(--border);
}

.expertise-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
  padding: var(--space-6) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.8rem);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}

.expertise-trigger:hover,
.expertise-item.is-open .expertise-trigger {
  color: var(--accent-light);
}

.expertise-index {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--muted-dim);
  flex-shrink: 0;
}

.expertise-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease);
}

.expertise-item.is-open .expertise-panel {
  grid-template-rows: 1fr;
}

.expertise-panel-inner {
  overflow: hidden;
}

.expertise-panel p {
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--text-base);
  margin: 0 0 var(--space-6);
}

/* ============================================
   About me
   ============================================ */
.about {
  padding: var(--space-10) 0;
  background: var(--bg-alt);
}

.about-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-9);
  align-items: start;
}

.about-portrait-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt-2);
}

.about-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.95) contrast(1.03);
}

.about-body p {
  font-family: var(--font-sans);
  color: var(--text-soft);
  max-width: 62ch;
  font-size: var(--text-lg);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
}

.about-body p:last-of-type {
  margin-bottom: 0;
}

.about-facts {
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
}

.about-facts-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 var(--space-4);
}

.about-facts dl {
  margin: 0;
}

.about-facts dl div {
  padding: var(--space-2) 0;
}

.about-facts dt {
  font-size: var(--text-sm);
  color: var(--text);
  font-weight: 500;
}

.about-facts dd {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
}

/* ============================================
   Experience timeline
   ============================================ */
.experience {
  padding: var(--space-10) 0;
}

.timeline {
  margin-top: var(--space-7);
  border-top: 1px solid var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--muted-dim);
  transition: color var(--dur-fast) var(--ease);
}

.timeline-item:hover .timeline-year {
  color: var(--accent-light);
}

.timeline-role {
  font-size: var(--text-lg);
  color: var(--text);
  font-weight: 500;
  margin: 0 0 2px;
}

.timeline-org {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
}

/* ============================================
   Reviews (quiet, folded into story flow)
   ============================================ */
.reviews {
  padding: var(--space-10) 0;
  background: var(--bg-alt);
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.testimonial {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-strong);
  transition: border-color var(--dur-fast) var(--ease);
}

.testimonial.has-overflow {
  cursor: pointer;
}

.testimonial:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 6px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.testimonial-avatar svg { width: 17px; height: 17px; }

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.testimonial-name {
  margin: 0;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
}

.testimonial-role {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-quote { margin: 0; }

.testimonial-quote p {
  margin: 0;
  color: var(--text-soft);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial[aria-expanded="true"] .testimonial-quote p {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.testimonial-toggle {
  display: none;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.testimonial.has-overflow .testimonial-toggle { display: inline-block; }
.testimonial:hover .testimonial-toggle { color: var(--accent-light); }
.testimonial .show-less { display: none; }
.testimonial[aria-expanded="true"] .show-more { display: none; }
.testimonial[aria-expanded="true"] .show-less { display: inline; }

.testimonial-quote-note {
  margin: var(--space-2) 0 0;
  color: var(--muted-dim);
  font-size: var(--text-xs);
}

/* ============================================
   Contact -- dramatic closing CTA
   ============================================ */
.contact {
  padding: var(--space-11) 0 var(--space-9);
}

.contact-heading {
  font-size: var(--display-lg);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-7);
  max-width: 14ch;
}

.contact-lead {
  font-family: var(--font-sans);
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 0 var(--space-8);
  font-size: var(--text-lg);
}

.contact-lead a { color: var(--text); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-9);
  align-items: start;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 480px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.field-input {
  font: inherit;
  font-size: var(--text-base);
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  padding: var(--space-2) var(--space-1);
  transition: border-color var(--dur-fast) var(--ease);
}

textarea.field-input {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  resize: vertical;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent-light);
}

.contact-form .btn-solid {
  align-self: flex-start;
  margin-top: var(--space-2);
}

.form-hint {
  margin: calc(-1 * var(--space-3)) 0 0;
  color: var(--muted-dim);
  font-size: var(--text-xs);
}

.form-status {
  font-size: var(--text-sm);
  color: var(--muted);
  min-height: 1.2em;
  margin: 0;
}

.form-status.success { color: var(--accent-light); }
.form-status.error { color: #c2695a; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-info-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}

.contact-info-value {
  font-size: var(--text-base);
  color: var(--text);
  text-decoration: none;
  margin: 0;
}

.contact-info-value:hover { color: var(--accent-light); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: var(--space-7) clamp(20px, 5vw, 56px) var(--space-8);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
}

.footer-role {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--muted-dim);
  font-size: var(--text-xs);
  margin: 0;
}

.back-to-top {
  font-size: var(--text-xs);
  color: var(--muted-dim);
  text-decoration: none;
}

.back-to-top:hover { color: var(--text); }

/* ============================================
   Case study pages
   ============================================ */
.case-study { padding-top: calc(var(--space-8) + 64px); }

.back-link {
  display: inline-block;
  margin-bottom: var(--space-7);
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
}

.case-eyebrow {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-light);
  margin: 0 0 var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-study h1 {
  font-size: var(--display-md);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-5);
}

.case-tagline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0;
}

.case-meta-list {
  display: flex;
  gap: var(--space-7);
  flex-wrap: wrap;
  margin: var(--space-7) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.case-meta-list div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.case-meta-list dt {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.case-meta-list dd {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text);
}

.contribution {
  margin-top: var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.contribution-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 var(--space-4);
}

.contribution-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
}

.contribution-list div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contribution-list dt {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-light);
}

.contribution-list dd {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--text-sm);
  max-width: 56ch;
}

.case-highlights {
  display: flex;
  gap: var(--space-7);
  flex-wrap: wrap;
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.case-highlights-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-highlights-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}

.case-highlights-label {
  font-size: var(--text-xs);
  color: var(--muted);
  max-width: 22ch;
}

.case-hero-wrap {
  max-width: var(--xwide-width);
  margin: var(--space-8) auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.case-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.case-inline-figure {
  margin: var(--space-5) 0;
  max-width: 62ch;
}

.case-inline-image {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.case-inline-figure figcaption {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
}

.case-body { padding-bottom: var(--space-9); }

.case-section {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
}

.case-body .case-section:first-child {
  border-top: none;
  padding-top: 0;
}

.case-section .section-head { margin-bottom: var(--space-5); }
.case-section .section-head h2 { font-size: 1.6rem; }

.case-section p {
  color: var(--muted);
  margin: 0 0 var(--space-3);
  max-width: 62ch;
  font-size: var(--text-base);
  line-height: 1.65;
}

.case-section p:last-child { margin-bottom: 0; }
.case-section p strong { color: var(--text-soft); font-weight: 600; }
.case-section p em.placeholder {
  color: var(--muted-dim);
  font-style: italic;
}

.placeholder {
  color: var(--muted-dim);
  font-style: italic;
}

.case-section ul {
  margin: 0 0 var(--space-3);
  padding-left: 20px;
  color: var(--muted);
  max-width: 62ch;
}

.case-section ul:last-child { margin-bottom: 0; }
.case-section li { margin-bottom: var(--space-2); }
.case-section li:last-child { margin-bottom: 0; }
.case-section li strong { color: var(--text-soft); font-weight: 600; }

.pull-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.2rem);
  line-height: 1.35;
  color: var(--text);
  margin: 0;
  max-width: 22ch;
  letter-spacing: -0.005em;
}

.next-project {
  background: var(--bg-alt);
  padding: var(--space-9) 0;
}

.next-project-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
}

.next-project-link .eyebrow-label { margin: 0; }

.next-project-link h2 {
  font-size: var(--display-sm);
  font-weight: 500;
  margin: var(--space-2) 0 0;
  transition: color var(--dur-fast) var(--ease);
}

.next-project-link .cta-arrow {
  margin-left: var(--space-3);
  font-size: 1.3rem;
}

.next-project-link:hover h2,
.next-project-link:focus-visible h2 { color: var(--accent-light); }

.next-project-link:hover .cta-arrow,
.next-project-link:focus-visible .cta-arrow { transform: translateX(4px); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1240px) {
  .intro-body { grid-template-columns: 1fr; gap: var(--space-6); }
  .process-sequence { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-7); }
}

@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 220px 1fr; }
  .project-row,
  .project-row--reverse { grid-template-columns: 1fr; gap: var(--space-5); }
  .project-row--reverse .project-visual,
  .project-row--reverse .project-copy { order: initial; }
  .project-row:hover .project-copy,
  .project-row--reverse:hover .project-copy { transform: none; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* One simple, subtle header: full name with availability directly
     underneath (instead of off in the icon row), controls at top-right. */
  .header-inner { align-items: flex-start; transition: padding var(--dur) var(--ease); }
  .header-brand { flex-direction: column; align-items: flex-start; gap: 2px; }
  .header-brand .availability--brand { display: inline-flex; }
  .header-controls > .availability { display: none; }
  .header-controls { gap: var(--space-4); }
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Name crossfades to initials rather than swapping abruptly -- both
     spans are stacked in place (short one absolutely positioned over
     the full one) so opacity can transition between them. */
  .logo { position: relative; display: inline-block; }
  .logo-full { transition: opacity var(--dur) var(--ease); }
  .logo-short {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
  }

  /* Scrolled state: collapse further -- name dissolves into initials and
     the availability line drops out entirely, leaving just initials +
     theme toggle + hamburger. Restores the moment the page scrolls
     back to the top. */
  .site-header.is-scrolled .header-inner {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }
  .site-header.is-scrolled .logo-full { opacity: 0; }
  .site-header.is-scrolled .logo-short { opacity: 1; }
  .site-header.is-scrolled .header-brand .availability--brand { display: none; }

  [id] { scroll-margin-top: 110px; }
  .hero { padding-top: 130px; }
  .hero-actions { gap: var(--space-5); }

  .about-layout { grid-template-columns: 1fr; }
  .about-portrait-wrap { max-width: 220px; }
  .about-facts { grid-template-columns: 1fr; gap: var(--space-6); }

  .testimonial-list { grid-template-columns: 1fr; }
  .process-sequence { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: var(--space-2); }

  .case-meta-list,
  .case-highlights { gap: var(--space-5); }

  .next-project-link { flex-direction: column; gap: var(--space-3); align-items: flex-start; }
}

@media (max-width: 480px) {
  .band, .intro, .work, .process, .expertise, .about, .experience, .reviews, .contact {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .hero-lead { font-size: var(--text-base); }
  .intro-body p { font-size: var(--text-lg); }

  .logo-marquee-item { height: 20px; margin-right: var(--space-7); }

  .expertise-trigger { font-size: 1.5rem; padding: var(--space-5) 0; }

  .contact-heading { max-width: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1440px) {
  :root {
    --content-width: 900px;
    --wide-width: 1140px;
    --xwide-width: 1400px;
  }
}

@media (min-width: 1920px) {
  :root {
    --content-width: 1040px;
    --wide-width: 1280px;
    --xwide-width: 1560px;
  }
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cursor-dot, .cursor-ring { display: none !important; }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ============================================
   View transitions (native cross-page fade)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 260ms;
    animation-timing-function: var(--ease);
  }
}
