/* ==========================================================================
   Solstizio Studios & Design
   Moss, clay and bronze on warm paper. Bodoni Moda for display, Instrument
   Sans for text, Kristi for the occasional handwritten note.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #f4efe4;
  --paper-2: #e8dcc6;
  --white: #fffdf8;
  --ink: #1c2a21;
  --ink-soft: rgba(28, 42, 33, 0.76);
  --moss: #2b3a22;
  --night: #161c11;
  --mauve-900: #2a1d1e;
  --mauve-800: #422e2f;
  --mauve-700: #5a3f40;
  --mauve: #996e6f;
  --accent: #725051;
  --accent-dark: #e2cba5;
  --tan: #c4a47a;
  --sage: #a6ab89;
  --sage-pale: #cdd2b3;
  --bronze: #b6895d;
  --line: rgba(28, 42, 33, 0.14);
  --line-strong: rgba(28, 42, 33, 0.3);
  --line-dark: rgba(245, 241, 231, 0.2);
  --on-dark: rgba(245, 241, 231, 0.86);

  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Kristi', 'Segoe Script', 'Brush Script MT', cursive;

  --gutter: clamp(20px, 4.6vw, 72px);
  --header-h: 84px;
  --wrap: 1240px;
  --edge: max(var(--gutter), (100% - var(--wrap)) / 2);
  --section: clamp(80px, 9vw, 152px);
  --r-md: 20px;
  --r-lg: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 34px 60px -34px rgba(22, 28, 17, 0.55), 0 12px 26px -16px rgba(22, 28, 17, 0.3);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .16 0 0 0 0 .1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='.08'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .98 0 0 0 0 .9 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='.05'/%3E%3C/svg%3E");
  --sun-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3.4'/%3E%3Cpath d='M12 2.5v3.6M12 17.9v3.6M2.5 12h3.6M17.9 12h3.6M5.3 5.3l2.5 2.5M16.2 16.2l2.5 2.5M5.3 18.7l2.5-2.5M16.2 7.8l2.5-2.5'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1rem; text-wrap: pretty; }
ul, ol { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--sage-pale); color: var(--night); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.services-band :focus-visible, .quote-band :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible,
.founder :focus-visible, .proj-nav :focus-visible, .prep :focus-visible, .marquee :focus-visible, .press :focus-visible, .hero-visual :focus-visible, .svc-index--dark :focus-visible { outline-color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 100;
  padding: 0.8rem 1.2rem; border-radius: 999px; background: var(--moss); color: var(--paper);
  font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 14px; outline-color: var(--paper); }

/* ---------- Type ---------- */
h1, h2, h3 {
  margin: 0; font-family: var(--display); font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.08; text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 1.15rem + 4vw, 4.8rem); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.95rem, 1.15rem + 2.4vw, 3.3rem); letter-spacing: -0.012em; }
h3 { font-size: clamp(1.3rem, 1rem + 0.85vw, 1.8rem); line-height: 1.2; }
em { font-style: italic; font-weight: inherit; }
.lede-lg em { font-style: normal; }
h1 em, h2 em, h3 em, .quote-text em, .standard-text em { color: var(--em, var(--accent)); }
h1 em, h2 em, .standard-text em { color: var(--em, var(--mauve)); }

.eyebrow {
  display: flex; align-items: center; gap: 0.9em; margin: 0;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; line-height: 1.4;
  text-transform: uppercase; color: var(--ink-soft); text-wrap: balance;
}
.quote-inner .eyebrow, .cta-inner .eyebrow, .standard-inner .eyebrow, .prep-inner .eyebrow { justify-content: center; }
.services-band .eyebrow, .quote-band .eyebrow, .cta-band .eyebrow, .founder .eyebrow, .prep .eyebrow, .press .eyebrow, .svc-index--dark .eyebrow { color: var(--accent-dark); }

.lede { max-width: 52ch; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem); line-height: 1.62; color: var(--ink-soft); }
.lede-lg {
  font-family: var(--display); font-size: clamp(1.45rem, 1rem + 1.4vw, 2.2rem);
  font-weight: 500; line-height: 1.2; letter-spacing: -0.005em; color: var(--ink); text-wrap: balance;
}

.mark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11C48 4 82 14 128 8s98-7 134-2 28 2 35 1' fill='none' stroke='%23b6895d' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 0.24em;
  padding-bottom: 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Icons and doodles ---------- */
.icon { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-arrow { width: 1.35em; height: auto; transition: transform 0.45s var(--ease); }
.doodle { display: block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* ---------- Buttons and links ---------- */
.button {
  --bg: var(--moss); --fg: var(--paper);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.85em;
  min-height: 52px; padding: 0.9em 1.75em; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase; text-align: center;
  box-shadow: 0 14px 26px -16px rgba(43, 58, 34, 0.75);
  transition: background-color 0.35s var(--ease), color 0.35s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.button:hover { --bg: var(--mauve-700); transform: translateY(-2px); box-shadow: 0 18px 30px -16px rgba(90, 63, 64, 0.75); }
.button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.2) 50%, transparent 65%); transform: translateX(-130%); transition: transform 0.9s var(--ease); }
.button:hover::before { transform: translateX(130%); }
.button:hover .icon-arrow { transform: translateX(5px); }
.button:active { transform: translateY(0) scale(0.985); }
.button:focus-visible { outline-offset: 3px; border-radius: 999px; }
.button--light { --bg: var(--paper); --fg: var(--moss); box-shadow: none; }
.button--light:hover { --bg: #fff; --fg: var(--accent); box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 0.5); }
.button--sm { min-height: 44px; padding: 0.7em 1.35em; font-size: 0.7rem; }
.button--block { width: 100%; }

.text-link {
  position: relative; display: inline-flex; align-items: center; gap: 0.75em; padding: 0.4em 0;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase;
  transition: color 0.3s;
}
.text-link::after {
  content: ''; position: absolute; inset: auto 0 0; height: 1px; background: currentColor;
  transform-origin: left; transition: transform 0.55s var(--ease);
}
.text-link:hover { color: var(--accent); }
.text-link:hover::after { transform: scaleX(0.35); }
.text-link:hover .icon-arrow { transform: translateX(5px); }
.back-link { flex-direction: row-reverse; justify-content: flex-end; }
.back-link .icon-arrow { transform: scaleX(-1); }
.back-link:hover .icon-arrow { transform: translateX(-5px) scaleX(-1); }
.services-band .text-link:hover, .quote-band .text-link:hover, .founder .text-link:hover, .svc-index--dark .text-link:hover { color: var(--accent-dark); }

.phone-link { display: inline-flex; align-items: center; gap: 0.55em; font-weight: 600; white-space: nowrap; transition: color 0.3s; }
.phone-link:hover { color: var(--accent); }
.phone-link--light:hover { color: var(--accent-dark); }
.phone-link.inline { display: inline; font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.phone-link.inline .icon { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; view-transition-name: site-header;
  background: rgba(245, 241, 231, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  transition: box-shadow 0.4s, background-color 0.45s, color 0.45s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); height: var(--header-h); padding-inline: clamp(20px, 3.4vw, 56px); }

.wordmark { display: block; flex: none; }
.wordmark-img { display: block; width: clamp(140px, 14vw, 180px); height: auto; transition: filter 0.4s var(--ease); }

.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 40px); margin-inline: auto; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.primary-nav a { position: relative; padding: 0.65em 0; }
.primary-nav a::after {
  content: ''; position: absolute; inset: auto 0 0.2em; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.55s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.primary-nav a[aria-current] { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); flex: none; }
.header-phone { font-size: 0.92rem; }
.btn-short { display: none; }
.header-call { display: none; }
.menu-fallback { display: none; }

.menu-button { display: none; position: relative; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; transition: background-color 0.3s; }
.menu-button span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-button span:first-child { top: 19px; }
.menu-button span:last-child { top: 26px; }
.menu-button[aria-expanded='true'] span:first-child { top: 22.5px; transform: rotate(45deg); }
.menu-button[aria-expanded='true'] span:last-child { top: 22.5px; transform: rotate(-45deg); }

.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding: 0.6rem var(--gutter) 2rem;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -28px rgba(22, 28, 17, 0.4);
}
.mobile-nav > a { padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 2rem; line-height: 1.2; }
.mobile-nav > a[aria-current] { font-weight: 600; color: var(--accent); }
.mobile-nav-actions { display: grid; gap: 0.6rem; justify-items: center; margin-top: 1.6rem; }
.mobile-nav-actions .phone-link { min-height: 44px; padding-inline: 0.75rem; }

/* ---------- Heroes ---------- */
/* Split hero: light copy on paper, a dark panel (mauve or forest) holding the photography. */
.hero {
  --panel: var(--mauve); --panel-hi: #a68283; --panel-lo: #865f60;
  position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  padding-left: var(--edge);
  background-image: radial-gradient(56% 62% at 28% 0%, rgba(219, 199, 199, 0.32), transparent 68%), radial-gradient(46% 42% at 2% 100%, rgba(166, 171, 137, 0.24), transparent 70%);
}
.hero--forest { --panel: var(--moss); --panel-hi: #4a6040; --panel-lo: #1f2b19; }
.hero-copy { position: relative; z-index: 3; align-self: center; padding: clamp(44px, 5.4vw, 92px) clamp(24px, 4vw, 72px) clamp(64px, 7vw, 112px) 0; }
.hero h1 { margin: 1.3rem 0 2rem; line-height: 1.07; }
.hero-lede { max-width: 46ch; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.62; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.2rem; margin-top: 2rem; }

.hero-visual {
  position: relative; isolation: isolate; display: grid; place-items: center; color: var(--paper);
  min-height: clamp(540px, 52vw, 790px); padding: clamp(60px, 6vw, 100px) clamp(40px, 5.4vw, 92px);
  border-top-left-radius: clamp(96px, 15vw, 240px);
  background: var(--grain-light), radial-gradient(72% 56% at 50% 20%, var(--panel-hi), transparent 74%), linear-gradient(180deg, var(--panel), var(--panel-lo));
}
.hero-stage { position: relative; width: min(100%, 500px); aspect-ratio: 4 / 5.15; }
.hero-stage--wide { aspect-ratio: auto; height: clamp(340px, 38vw, 540px); width: min(100%, 560px); }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px 28px 28px; background: var(--paper-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch { position: absolute; inset: 0; z-index: 1; box-shadow: 0 44px 70px -36px rgba(0, 0, 0, 0.7); }
.arch-ring { position: absolute; z-index: 0; top: 26px; right: calc(3% - 26px); width: min(78%, 480px); aspect-ratio: 4 / 5.15; border: 1px solid var(--bronze); border-radius: 999px 999px 28px 28px; }
.hero-stage .arch-ring { top: 24px; right: -24px; width: 100%; height: 100%; aspect-ratio: auto; border-color: rgba(244, 239, 228, 0.55); }
.hero--forest .hero-stage .arch-ring { border-color: var(--tan); }
.hero-sparkle { position: absolute; z-index: 3; top: -4%; right: 8%; width: 50px; color: var(--paper); }
.hero-arcs { position: absolute; z-index: 3; left: -14%; bottom: -3%; width: clamp(90px, 11vw, 150px); color: var(--tan); }
.hero:not(.hero--forest) .hero-arcs { color: var(--paper); }

/* Text-only heroes (work, FAQ) */
.page-hero--work { padding: clamp(40px, 5vw, 88px) var(--edge) clamp(36px, 4vw, 64px); position: relative; background-image: radial-gradient(50% 70% at 88% 0%, rgba(219, 199, 199, 0.34), transparent 66%); }
.page-hero--work h1 { max-width: 17ch; margin: 1.3rem 0 2rem; line-height: 1.07; }
.work-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.6rem 3rem; max-width: 980px; }
.work-intro .lede { margin: 0; }
.work-meta { display: flex; flex-direction: column; gap: 0.2rem; margin: 0; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.work-sun { position: absolute; right: var(--edge); top: clamp(40px, 6vw, 96px); width: clamp(70px, 9vw, 130px); color: var(--bronze); }
.coming-soon { margin: 0 0 1.4rem; font-family: var(--script); font-size: clamp(2.3rem, 1.6rem + 2vw, 3.4rem); line-height: 1; color: var(--mauve); transform: rotate(-3deg); transform-origin: left; }

/* Three arches (services hero) */
.arcade { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(10px, 1.5vw, 22px); }
.arcade .arch { width: 100%; box-shadow: 0 40px 64px -34px rgba(0, 0, 0, 0.7); }
.arcade-a { height: 66%; }
.arcade-b { height: 100%; }
.arcade-c { height: 82%; }
.arcade-arcs { position: absolute; left: -9%; bottom: -8%; z-index: 2; width: 32%; color: var(--tan); }
.arcade-sparkle { position: absolute; right: 0; top: -9%; width: 46px; color: var(--accent-dark); }

/* ---------- Press strip + marquee ---------- */
.press { position: relative; overflow-x: clip; background: var(--moss); background-image: var(--grain-light), radial-gradient(60% 150% at 50% 150%, rgba(166, 171, 137, 0.2), transparent 70%); color: var(--paper); --em: var(--accent-dark); }
/* Label, names and note stack in one centred column, so the row of names gets the full width. */
.press-inner { display: grid; justify-items: center; gap: clamp(14px, 1.6vw, 22px); padding-block: clamp(34px, 4.2vw, 60px); text-align: center; }
.press-label { justify-content: center; margin: 0; }
.press-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem clamp(18px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.press-name { display: inline-block; font-family: var(--display); font-size: clamp(1.5rem, 1rem + 1.4vw, 2.3rem); font-weight: 500; line-height: 1; letter-spacing: -0.012em; white-space: nowrap; color: var(--accent-dark); transition: color 0.3s; }
.press-name i { font-weight: 400; }
a.press-name { position: relative; }
a.press-name::after { content: ''; position: absolute; inset: auto 0 -0.18em; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.55s var(--ease); }
a.press-name:hover { color: #fff; }
a.press-name:hover::after { transform: scaleX(1); }
.press-sun { display: block; flex: none; width: 1.15rem; height: 1.15rem; background: var(--bronze); -webkit-mask: var(--sun-mask) center / contain no-repeat; mask: var(--sun-mask) center / contain no-repeat; }
.press-note { margin: 0; font-size: 0.86rem; line-height: 1.5; letter-spacing: 0.02em; color: rgba(244, 239, 228, 0.78); }

.marquee { display: flex; overflow: hidden; padding-block: 1.15rem; background: var(--moss); background-image: var(--grain-light); color: var(--paper); user-select: none; }
.press .marquee { padding-block: 0.95rem; border-top: 1px solid var(--line-dark); background: none; }
.marquee-track { display: flex; flex: none; align-items: center; justify-content: space-around; min-width: 100%; margin: 0; padding: 0; list-style: none; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 3rem); padding-left: clamp(1.4rem, 3vw, 3rem); font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1.1vw, 1.85rem); white-space: nowrap; }
.marquee-track li::after { content: ''; width: 1rem; height: 1rem; background: var(--bronze); -webkit-mask: var(--sun-mask) center / contain no-repeat; mask: var(--sun-mask) center / contain no-repeat; }

/* ---------- Sections ---------- */
.section { padding: var(--section) var(--edge); }
.section-inset { padding-inline: var(--edge); }

.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.intro-head h2 { margin-top: 1.2rem; font-size: clamp(2.2rem, 1.3rem + 2.5vw, 3.6rem); }
.intro-body { padding-top: clamp(0px, 2.6vw, 2.6rem); }
.intro-body .lede-lg { margin-bottom: 1.4rem; }
.intro-body > p:not(.lede-lg) { color: var(--ink-soft); max-width: 44ch; margin-bottom: 1.6rem; }

/* Work rail */
.rail-section { padding-block: 0 var(--section); overflow: hidden; }
.rail-head { display: flex; justify-content: center; margin-bottom: clamp(28px, 4vw, 52px); text-align: center; }
.rail-head h2 { margin-top: 1rem; }
.rail-controls { display: flex; gap: 0.6rem; flex: none; }
.rail-btn { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; transition: background-color 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s, transform 0.3s var(--ease); }
.rail-btn:hover:not(:disabled) { background: var(--moss); border-color: var(--moss); color: var(--paper); }
.rail-btn:active:not(:disabled) { transform: scale(0.94); }
.rail-btn:disabled { opacity: 0.32; cursor: default; }
.rail-btn .icon { width: 1.3em; }
.rail-btn--prev .icon { transform: scaleX(-1); }

.rail {
  display: flex; gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0 var(--edge) 14px; list-style: none;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -4px; }
.rail-card { flex: none; width: clamp(270px, 29vw, 430px); scroll-snap-align: start; }
.rail-card a { display: block; height: 100%; }
.rail-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--paper-2); }
.rail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.rail-card a:hover .rail-img img { transform: scale(1.05); }
.rail-meta { display: block; margin-top: 1.1rem; }
.rail-name { font-family: var(--display); font-size: clamp(1.55rem, 1.2rem + 0.9vw, 1.95rem); font-weight: 500; line-height: 1.1; }
.rail-loc { display: block; margin-top: 0.45rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.rail-mood { display: block; margin-top: 0.7rem; font-family: var(--display); font-size: 1.1rem; line-height: 1.35; color: var(--ink-soft); }
.rail-more a {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem; min-height: 100%;
  padding: clamp(24px, 2.6vw, 38px); border-radius: var(--r-md); background: var(--moss); background-image: var(--grain-light); color: var(--paper);
  transition: background-color 0.4s;
}
.rail-more a:hover { background-color: var(--accent); }
.rail-more-count { font-family: var(--display); font-size: clamp(5.5rem, 10vw, 9.5rem); font-weight: 400; line-height: 0.85; color: var(--accent-dark); transition: color 0.4s; }
.rail-more a:hover .rail-more-count { color: var(--paper); }
.rail-more-text { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; max-width: 14ch; }
.rail-more-go { display: inline-flex; align-items: center; gap: 0.75em; margin-top: 0.8rem; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.rail-more a:hover .icon-arrow { transform: translateX(6px); }

/* Home rail: one large photo centred at a time, its neighbours peeking in at the sides and dimmed, the caption laid
   over the photo, and the arrows sitting on the centred photo's edges. */
.rail-stage { --card: min(1040px, 74vw); position: relative; }
.rail--stage { gap: clamp(14px, 1.6vw, 24px); padding-inline: calc((100% - var(--card)) / 2); scroll-padding-inline: 0; }
.rail--stage .rail-card { width: var(--card); scroll-snap-align: center; transition: opacity 0.6s var(--ease); }
.rail--stage.is-ready .rail-card:not(.is-current) { opacity: 0.45; }
.rail--stage .rail-card > a { position: relative; overflow: hidden; border-radius: var(--r-lg); color: var(--paper); }
.rail--stage .rail-img { aspect-ratio: 16 / 9.5; border-radius: 0; }
/* --zoom comes from `featured` in data.mjs; the hover zoom builds on it. */
.rail--stage .rail-img img { transform: scale(var(--zoom, 1)); }
.rail--stage .rail-card > a:hover .rail-img img { transform: scale(calc(var(--zoom, 1) * 1.05)); }
.rail--stage .rail-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 28, 17, 0) 40%, rgba(22, 28, 17, 0.78)); pointer-events: none; }
.rail-caption { position: absolute; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding: clamp(20px, 3vw, 44px); }
.rail-text { display: grid; gap: 0.55rem; }
.rail--stage .rail-loc { margin: 0; color: var(--on-dark); }
.rail--stage .rail-name { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.4rem); line-height: 1; }
.rail--stage .rail-mood { max-width: 38ch; margin: 0; color: var(--on-dark); }
.rail-go { display: inline-flex; flex: none; align-items: center; gap: 0.75em; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.rail-go .icon { width: 1.3em; transition: transform 0.4s var(--ease); }
.rail--stage .rail-card > a:hover .rail-go .icon { transform: translateX(6px); }
.rail--stage .rail-more a { aspect-ratio: 16 / 9.5; align-items: center; justify-content: center; border-radius: var(--r-lg); text-align: center; }
.rail--stage .rail-more-text { max-width: 22ch; }
.rail-stage .rail-controls { position: absolute; top: 0; bottom: 14px; left: 50%; width: calc(var(--card) + 52px); transform: translateX(-50%); justify-content: space-between; align-items: center; pointer-events: none; }
.rail-stage .rail-btn { border-color: transparent; background: var(--paper); box-shadow: 0 12px 26px -14px rgba(22, 28, 17, 0.7); pointer-events: auto; }
.rail-stage .rail-btn:disabled { opacity: 0; pointer-events: none; }

/* Services band (dark) */
.services-band, .founder, .proj-nav, .prep, .svc-index--dark { --em: var(--accent-dark); }
.services-band { padding-block: var(--section); background: var(--mauve-700); background-image: var(--grain-light), radial-gradient(60% 46% at 100% 62%, rgba(219, 199, 199, 0.2), transparent 70%); color: var(--paper); }
.services-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.svc-visual { position: relative; width: min(100%, 460px); justify-self: center; padding-bottom: 26px; }
.svc-visual .arch { aspect-ratio: 4 / 5.15; box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.7); }
.svc-visual .arch-ring { top: 26px; right: -26px; width: 100%; border-color: var(--bronze); }
.svc-sparkle { position: absolute; left: -30px; top: 7%; width: 60px; color: var(--accent-dark); }
.svc-copy h2 { margin: 1.1rem 0 1.4rem; }
.svc-copy > p { max-width: 52ch; color: var(--on-dark); }
.svc-list { margin: 2.2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.svc-list a {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'num name arrow' 'num desc arrow';
  align-items: center; column-gap: 1.3rem; row-gap: 0.1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-dark);
  transition: padding 0.55s var(--ease), color 0.3s;
}
.svc-num { grid-area: num; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent-dark); }
.svc-name { grid-area: name; font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.1; }
.svc-desc { grid-area: desc; font-size: 0.95rem; color: rgba(245, 241, 231, 0.7); }
.svc-list .icon-arrow { grid-area: arrow; width: 1.6rem; }
.svc-list a:hover { padding-left: 0.8rem; }
.svc-list a:hover .icon-arrow { transform: translateX(6px); color: var(--accent-dark); }

/* Why / values / factors lists */
.why { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.why-head { position: sticky; top: 120px; }
.why-head h2 { margin: 1.1rem 0 1.2rem; }
.why-head > p:not(.eyebrow) { max-width: 34ch; color: var(--ink-soft); }
.why-list, .values-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.why-list li, .values-list li { display: grid; grid-template-columns: clamp(56px, 7vw, 96px) minmax(0, 1fr); gap: 1rem; padding-block: clamp(1.7rem, 3vw, 2.7rem); border-bottom: 1px solid var(--line-strong); }
.why-num { font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2vw, 3.3rem); line-height: 1; color: var(--mauve); }
.why-list h3, .values-list h3 { margin-bottom: 0.6rem; }
.why-list p, .values-list p { max-width: 50ch; margin: 0; color: var(--ink-soft); }

/* Quote band */
.quote-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(110px, 15vw, 230px) var(--edge); background: var(--night); color: var(--paper); text-align: center; }
.quote-band .band-bg, .cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.quote-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 28, 17, 0.82), rgba(22, 28, 17, 0.7) 50%, rgba(22, 28, 17, 0.86)); }
.quote-text { max-width: 21ch; margin: 1.5rem auto 2.2rem; font-family: var(--display); font-size: clamp(1.9rem, 1.1rem + 3.1vw, 4rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; --em: var(--accent-dark); }
.quote-inner .text-link { justify-content: center; }

/* FAQ */
.faq-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 120px); align-items: start; background: var(--paper-2); background-image: var(--grain); }
.faq-intro { position: sticky; top: 120px; }
.faq-intro h2 { margin: 1.1rem 0 1.2rem; }
.faq-intro > p:not(.eyebrow) { max-width: 34ch; color: var(--ink-soft); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; list-style: none; cursor: pointer;
  font-family: var(--display); font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); font-weight: 500; line-height: 1.22; transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color 0.35s, border-color 0.35s, color 0.35s, transform 0.5s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.45s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(180deg); border-color: var(--moss); background: var(--moss); color: var(--paper); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer { max-width: 60ch; padding: 0 3.4rem 1.6rem 0; color: var(--ink-soft); }
.faq-answer p { margin: 0; }
.faq-item[open] .faq-answer { animation: fade-down 0.5s var(--ease); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: hidden; transition: height 0.5s var(--ease), content-visibility 0.5s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}

/* Closing call to action */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(100px, 13vw, 210px) var(--edge); background: var(--moss); color: var(--paper); text-align: center; --em: var(--accent-dark); }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grain-light), linear-gradient(180deg, rgba(36, 49, 28, 0.88), rgba(36, 49, 28, 0.82)); }
.cta-inner { max-width: 880px; margin: 0 auto; }
.cta-band h2 { margin: 1.3rem 0 1.5rem; font-size: clamp(2.2rem, 1.25rem + 3.6vw, 4.6rem); line-height: 1.06; }
.cta-copy { max-width: 44ch; margin: 0 auto 2.3rem; color: var(--on-dark); font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem 2.2rem; }
.cta-actions .phone-link { font-size: 1rem; }
.cta-sun { position: absolute; right: max(var(--gutter), 6vw); top: clamp(32px, 6vw, 76px); width: clamp(56px, 7vw, 100px); color: var(--bronze); }

/* ---------- Reviews ---------- */
.reviews { background-color: var(--paper-2); background-image: var(--grain); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 3rem; margin-bottom: clamp(32px, 4.4vw, 64px); }
.reviews-head h2 { margin-top: 1.1rem; }
.rating { display: inline-flex; align-items: center; gap: 0.8rem; margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.rating strong { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.stars { display: inline-flex; gap: 0.12rem; color: var(--bronze); }
.icon-star { width: 1em; height: 1em; fill: currentColor; stroke: none; }
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.review-stack { display: grid; gap: clamp(16px, 2vw, 24px); }
/* Desktop: the featured review holds in place under the header while the other reviews scroll past. */
@media (min-width: 901px) { .reviews-layout > :first-child { position: sticky; top: calc(var(--header-h) + 28px); } }
.review { margin: 0; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-md); background: var(--white); box-shadow: 0 24px 44px -32px rgba(42, 29, 30, 0.45); }
.review blockquote { margin: 0.9rem 0 1.3rem; }
.review blockquote p { margin: 0; color: var(--ink); }
.review figcaption { display: grid; gap: 0.15rem; }
.review-name { font-weight: 600; }
.review-role { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.review--feature { position: relative; padding: clamp(30px, 4vw, 60px); background: var(--mauve-700); background-image: var(--grain-light); color: var(--paper); box-shadow: 0 34px 60px -34px rgba(42, 29, 30, 0.7); }
.review--feature::before { content: '“'; position: absolute; top: clamp(4px, 1vw, 14px); right: clamp(18px, 3vw, 40px); font-family: var(--display); font-size: clamp(6rem, 10vw, 10rem); line-height: 1; color: rgba(226, 203, 165, 0.22); }
.review--feature .stars { color: var(--accent-dark); }
.review--feature blockquote p { font-size: clamp(1.1rem, 0.9rem + 0.65vw, 1.4rem); line-height: 1.55; color: var(--paper); }
.review--feature .review-role { color: var(--accent-dark); }
.review-more { padding-top: 0.4rem; }
.review-wall { columns: 3 280px; column-gap: clamp(16px, 2vw, 24px); margin-top: clamp(16px, 2vw, 24px); }
.review-wall > div { break-inside: avoid; margin-bottom: clamp(16px, 2vw, 24px); }

/* ---------- Services page ---------- */
.specialty { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.specialty-visual { position: relative; width: min(100%, 420px); justify-self: center; padding-bottom: 26px; }
.specialty-visual .arch { aspect-ratio: 4 / 5.15; box-shadow: var(--shadow); position: relative; z-index: 1; }
.specialty-visual .arch-ring { top: 26px; right: -26px; width: 100%; }
.specialty-copy h2 { margin: 1.1rem 0 1.4rem; }
.specialty-copy > p:not(.eyebrow) { max-width: 54ch; color: var(--ink-soft); }
.checklist { display: grid; gap: 0.85rem; margin: 1.8rem 0 2.2rem; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: center; gap: 0.9em; font-size: 1.02rem; font-weight: 500; }
.checklist .icon { flex: none; width: 1.7rem; height: 1.7rem; padding: 0.4rem; border-radius: 50%; background: var(--moss); color: var(--paper); stroke-width: 2; }

.svc-index { background: var(--paper-2); background-image: var(--grain); }
.svc-index-head h2 { margin: 1.1rem 0 clamp(32px, 4vw, 56px); }
.index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.index li { border-bottom: 1px solid var(--line-strong); }
.index a { display: grid; grid-template-columns: clamp(48px, 6vw, 84px) minmax(0, 1fr) clamp(130px, 17vw, 260px); gap: clamp(16px, 3vw, 48px); align-items: center; padding-block: clamp(1.6rem, 2.8vw, 2.6rem); transition: padding 0.6s var(--ease); }
.index a:hover { padding-left: 0.9rem; }
.index-num { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem); color: var(--accent); line-height: 1; }
.index-body { display: grid; gap: 0.5rem; }
.index-title { font-family: var(--display); font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.8rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; transition: color 0.3s; }
.index a:hover .index-title { color: var(--accent); }
.index-desc { max-width: 56ch; color: var(--ink-soft); }
.index-cta { display: inline-flex; align-items: center; gap: 0.75em; margin-top: 0.4rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.index a:hover .index-cta .icon-arrow { transform: translateX(6px); }
.index-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; }
.index-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.index a:hover .index-thumb img { transform: scale(1.07); }

.svc-index--dark { background: var(--mauve-700); background-image: var(--grain-light), radial-gradient(60% 46% at 90% 60%, rgba(219, 199, 199, 0.18), transparent 70%); color: var(--paper); }
.svc-index--dark .index, .svc-index--dark .index li { border-color: var(--line-dark); }
.svc-index--dark .index-num, .svc-index--dark .index-cta { color: var(--accent-dark); }
.svc-index--dark .index-desc { color: var(--on-dark); }
.svc-index--dark .index a:hover .index-title { color: var(--accent-dark); }

.process { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.process-intro { position: sticky; top: 120px; }
.process-intro h2 { margin: 1.1rem 0 1.2rem; }
.process-intro > p:not(.eyebrow) { max-width: 38ch; color: var(--ink-soft); }
.process-photo { margin: 2rem 0; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 4 / 3; max-width: 440px; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; }
.steps { position: relative; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ''; position: absolute; left: 27px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--bronze), var(--line-strong)); }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); padding-bottom: clamp(2.2rem, 4vw, 3.6rem); }
.step:last-child { padding-bottom: 0; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--bronze); border-radius: 50%; background: var(--paper); font-family: var(--display); font-size: 1.15rem; color: var(--accent); }
.step h3 { margin: 0.55rem 0 0.5rem; }
.step-time { display: inline-block; margin-left: 0.5rem; padding: 0.35em 0.85em; border: 1px solid var(--bronze); border-radius: 999px; font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; line-height: 1.2; text-transform: uppercase; vertical-align: 0.35em; color: var(--accent); }
.step-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.step-tags li { padding: 0.45em 0.95em; border-radius: 999px; background: var(--paper-2); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.step p { max-width: 46ch; margin: 0; color: var(--ink-soft); }

/* ---------- Work page ---------- */
.portfolio { padding-block: clamp(24px, 3vw, 48px) var(--section); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 96px) clamp(28px, 5vw, 88px); margin: 0; padding: 0; list-style: none; }
.p-card:nth-child(even) { margin-top: clamp(40px, 8vw, 128px); }
.p-card a { display: block; }
.p-img { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--r-md); background: var(--paper-2); }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.p-card a:hover .p-img img { transform: scale(1.045); }
.p-view {
  position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.7em; padding: 0.75em 1.2em; border-radius: 999px;
  background: var(--paper); color: var(--moss); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.55s var(--ease);
}
.p-card a:hover .p-view, .p-card a:focus-visible .p-view { opacity: 1; transform: none; }
.p-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin-top: 1.3rem; }
.p-num { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); }
.p-name { font-family: var(--display); font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.7rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; transition: color 0.3s; }
.p-card a:hover .p-name { color: var(--accent); }
.p-loc { margin-left: auto; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.p-mood { display: block; margin-top: 0.4rem; font-family: var(--display); font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Project pages ---------- */
.proj-hero { padding: clamp(28px, 3vw, 48px) var(--edge) clamp(32px, 4vw, 60px); }
.proj-hero .back-link { margin-bottom: clamp(28px, 4vw, 56px); }
.proj-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 88px); align-items: end; }
.proj-title h1 { margin: 1.1rem 0 1.1rem; font-size: clamp(2.6rem, 1.1rem + 5.6vw, 6.4rem); line-height: 1; letter-spacing: -0.015em; }
.proj-mood { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem); color: var(--ink-soft); }
.proj-facts { display: grid; gap: 1.1rem; margin: 0; padding-top: 1.3rem; border-top: 1px solid var(--line-strong); }
.proj-facts > div { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.proj-facts dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.proj-facts dd { margin: 0; }
.swatches { display: flex; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.swatches li { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(28, 42, 33, 0.14); }
.proj-cover { width: min(100% - 2 * var(--gutter), 1240px); max-height: 80vh; aspect-ratio: 16 / 9; margin: 0 auto; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-2); }
.proj-cover img { width: 100%; height: 100%; object-fit: cover; }
.proj-story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.proj-story .lede { max-width: 56ch; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.tags li { padding: 0.6em 1.15em; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.proj-gallery { padding-bottom: var(--section); }
.gallery { columns: 2; column-gap: clamp(16px, 2.4vw, 32px); }
.gallery--single { columns: 1; max-width: 980px; margin-inline: auto; }
.gallery-item { margin: 0 0 clamp(16px, 2.4vw, 32px); overflow: hidden; break-inside: avoid; border-radius: var(--r-md); background: var(--paper-2); }
.gallery-item img { width: 100%; height: auto; transition: transform 1.3s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.proj-nav { padding-block: clamp(56px, 7vw, 112px); background: var(--moss); background-image: var(--grain-light); color: var(--paper); }
.proj-nav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.proj-nav-card { display: block; }
.proj-nav-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md); }
.proj-nav-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.proj-nav-card:hover .proj-nav-img img { transform: scale(1.05); }
.proj-nav-label { display: block; margin-top: 1.1rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-dark); }
.proj-nav-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; margin-top: 0.35rem; font-family: var(--display); font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.9rem); line-height: 1.08; transition: color 0.3s; }
.proj-nav-card:hover .proj-nav-name { color: var(--accent-dark); }
.proj-nav-name small { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 241, 231, 0.66); }

/* ---------- Studio ---------- */
.studio-intro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 7vw, 120px); align-items: start; }
.studio-intro h2 { margin-top: 1.1rem; }
.studio-intro .lede { max-width: 54ch; margin-bottom: 1.4rem; color: var(--ink); }
.studio-intro p:not(.lede) { color: var(--ink-soft); }
.founder { padding-block: var(--section); background: var(--moss); background-image: var(--grain-light); color: var(--paper); }
.founder-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.founder-copy h2 { margin: 1.1rem 0 0.9rem; font-size: clamp(2.6rem, 1.2rem + 4.2vw, 5rem); line-height: 1; letter-spacing: -0.015em; }
.founder-copy .role { margin-bottom: 2rem; }
.founder-photo { position: relative; width: min(100%, 420px); justify-self: center; padding: 0 26px 26px 0; }
.founder-photo .arch { aspect-ratio: 4 / 5.3; box-shadow: 0 40px 64px -32px rgba(0, 0, 0, 0.7); position: relative; z-index: 1; }
.founder-photo .arch-ring { top: 26px; left: 26px; right: 0; bottom: 0; width: auto; aspect-ratio: auto; border-color: var(--tan); }
.founder-badge { position: absolute; z-index: 2; left: 50%; bottom: 0; display: inline-flex; align-items: center; gap: 0.55em; margin: 0; padding: 0.8em 1.3em; border-radius: 999px; background: var(--tan); color: var(--mauve-900); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.6); }
.founder-badge .icon { width: 1.05em; stroke-width: 2.2; }
.founder-photo .founder-arcs { position: absolute; z-index: 2; left: -12%; top: 6%; width: clamp(90px, 10vw, 140px); margin: 0; }
.founder-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2.2rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); }
.founder-stats dt { font-family: var(--display); font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); font-weight: 600; line-height: 1.1; color: var(--accent-dark); }
.founder-stats dd { margin: 0.4rem 0 0; font-size: 0.86rem; line-height: 1.45; color: var(--on-dark); }
.role { margin: 0; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-dark); }
.founder-arcs { color: var(--tan); }
.founder-copy .lede-lg { margin-bottom: 1.6rem; color: var(--paper); }
.founder-copy p:not(.lede-lg) { max-width: 54ch; color: var(--on-dark); }
.founder-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.4rem; margin-top: 1.8rem; }
.standard { background: var(--paper-2); background-image: var(--grain); text-align: center; }
.standard-inner { max-width: 1000px; margin: 0 auto; }
.standard-sparkle { width: 56px; margin: 0 auto 1.4rem; color: var(--accent); }
.standard-text { margin: 1.4rem 0 0; font-family: var(--display); font-size: clamp(1.9rem, 1.1rem + 3.2vw, 4.2rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.values h2 { margin-bottom: clamp(28px, 4vw, 56px); }

/* ---------- Investment ---------- */
.factors-head { max-width: 640px; }
.factors-head h2 { margin: 1.1rem 0 1.2rem; }
.factors-head > p:not(.eyebrow) { color: var(--ink-soft); }
.factor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.factor-grid li { display: grid; align-content: start; gap: 0.6rem; padding: clamp(1.6rem, 3vw, 2.6rem) clamp(0px, 3vw, 3rem) clamp(1.6rem, 3vw, 2.6rem) 0; border-bottom: 1px solid var(--line-strong); }
.factor-grid li:nth-child(even) { padding-left: clamp(0px, 3vw, 3rem); border-left: 1px solid var(--line-strong); }
.factor-grid h3 { margin: 0; }
.factor-grid p { max-width: 38ch; margin: 0; color: var(--ink-soft); }
.prep { padding-block: var(--section); background: var(--mauve-700); background-image: var(--grain-light), radial-gradient(60% 44% at 50% 62%, rgba(219, 199, 199, 0.18), transparent 70%); color: var(--paper); text-align: center; }
.prep-inner { max-width: 900px; margin: 0 auto; }
.prep-sparkle { width: 56px; margin: 0 auto 1.4rem; color: var(--bronze); }
.prep-inner h2 { margin: 1.2rem 0 0; }
.prep-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin: 2.2rem auto 1.8rem; padding: 0; list-style: none; }
.prep-list li { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.7em 1.25em; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 0.94rem; }
.prep-list .icon { width: 1em; color: var(--accent-dark); stroke-width: 2; }
.prep-inner > p:last-child { margin: 0; color: var(--on-dark); }

/* ---------- FAQ page ---------- */
.qa-section { padding-block: clamp(16px, 2vw, 32px) var(--section); }
.qa-list { border-top: 1px solid var(--line-strong); }
.qa { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(16px, 5vw, 96px); padding-block: clamp(1.8rem, 3.4vw, 3rem); border-bottom: 1px solid var(--line-strong); }
.qa h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.qa p { max-width: 56ch; margin: 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 104px); align-items: start; padding-top: clamp(36px, 4vw, 72px); background-image: radial-gradient(50% 50% at 88% 6%, rgba(219, 199, 199, 0.34), transparent 66%); }
.contact-intro h1 { margin: 1.3rem 0 1.4rem; font-size: clamp(2.4rem, 1.1rem + 3.2vw, 4rem); }
@media (min-width: 901px) { .contact-intro { container-type: inline-size; } .contact-intro h1 { font-size: min(4rem, 10.4cqi); text-wrap: wrap; } .contact-intro h1 .phrase { white-space: nowrap; } }
.contact-list { display: grid; gap: 1rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.contact-link { font-size: 1.05rem; white-space: normal; overflow-wrap: anywhere; }
.contact-link .icon { color: var(--accent); }
span.contact-link { font-weight: 500; }
.next-steps { display: grid; gap: 0.9rem; margin: 2.4rem 0 0; padding: 0; list-style: none; }
.next-steps li { display: flex; align-items: center; gap: 1rem; color: var(--ink-soft); }
.next-steps span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--bronze); border-radius: 50%; font-size: 0.75rem; font-weight: 600; color: var(--accent); }

.inquiry { padding: clamp(26px, 3.6vw, 56px); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.contact-social { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.inquiry h2 { font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); }
.inquiry > p { margin: 1rem 0 1.8rem; color: var(--ink-soft); }
#inquiry-form { display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.field-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.field-label i { font-style: normal; color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper);
  font-size: 1rem; line-height: 1.4; transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(28, 42, 33, 0.6); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--moss); background: #fff; box-shadow: 0 0 0 4px rgba(43, 58, 34, 0.16); }
.field select { padding-right: 2.6rem; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231c2a21' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; }
.field select:invalid { color: rgba(28, 42, 33, 0.6); }
.field select option { color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { display: none; font-size: 0.86rem; color: var(--accent); }
.field:has(:user-invalid) input, .field:has(:user-invalid) select { border-color: var(--accent); }
.field:has(:user-invalid) .field-error { display: block; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 0.4rem; }
.form-note { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
.inquiry-result h3 { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); }
.inquiry-result h3:focus { outline: none; }
.inquiry-result > p { margin: 0.8rem 0 0; color: var(--ink-soft); }
.inquiry-result pre { max-height: 340px; margin: 1.4rem 0 1.6rem; padding: 1.3rem; overflow: auto; border-radius: 14px; background: var(--paper); font-family: var(--sans); font-size: 0.9rem; line-height: 1.7; white-space: pre-wrap; }
.text-button { padding: 0.4em 0; border: 0; border-bottom: 1px solid currentColor; background: none; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.3s; }
.text-button:hover { color: var(--accent); }
.noscript-note { margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow-x: clip; padding: clamp(64px, 8vw, 120px) var(--edge) 0; background: var(--mauve-900); background-image: var(--grain-light), radial-gradient(60% 40% at 50% 55%, rgba(219, 199, 199, 0.1), transparent 70%); color: var(--paper); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); }
.footer-logo { display: inline-block; }
.footer-logo img { display: block; width: clamp(84px, 7vw, 104px); height: auto; }
.footer-brand p { max-width: 32ch; margin: 1.5rem 0 0; color: rgba(245, 241, 231, 0.7); }
.footer-h { margin: 0 0 1.2rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-dark); }
.footer-col ul { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.footer-col .social { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--paper); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.social a:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--mauve-900); }
.social .icon { width: 1.2rem; height: 1.2rem; }
.footer-col a { color: var(--on-dark); overflow-wrap: anywhere; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent-dark); }
.site-footer { container-type: inline-size; }
.footer-mark { margin: clamp(48px, 7vw, 110px) 0 0; font-family: var(--display); font-size: min(17.5rem, 16.4cqi); font-weight: 400; line-height: 0.82; letter-spacing: 0; text-align: center; text-transform: uppercase; white-space: nowrap; color: rgba(245, 241, 231, 0.08); user-select: none; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line-dark); font-size: 0.82rem; color: rgba(245, 241, 231, 0.64); }
.footer-bottom a { transition: color 0.3s; }
.footer-bottom a:hover { color: var(--accent-dark); }

/* ---------- Section transitions ----------
   A section with .edge draws its own top edge (an ::after in its own colour and texture)
   rising into the section above, so seams always match. Two shapes only: the swell for
   ordinary seams and the arch for signature bands. Photo bands fade instead. */
:root {
  --edge-h-base: clamp(36px, 5.6vw, 96px);
  --edge-room: clamp(32px, 4.8vw, 84px);
  --shape-swell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V62C210 30 420 14 690 26C980 39 1180 76 1440 52V100Z'/%3E%3C/svg%3E");
  --shape-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100Q720-40 1440 100Z'/%3E%3C/svg%3E");
}
.edge { --edge-h: var(--edge-h-base); position: relative; }
.edge::after {
  content: ''; position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--edge-h);
  background-color: inherit; background-image: var(--edge-grain, var(--grain));
  /* The rise animates the mask's height rather than a transform, so the curve is redrawn crisp on every frame. */
  -webkit-mask: var(--edge-shape) center bottom / 100% calc(var(--edge-rise, 1) * 100%) no-repeat; mask: var(--edge-shape) center bottom / 100% calc(var(--edge-rise, 1) * 100%) no-repeat;
  transform: scaleX(var(--edge-flip, 1)); pointer-events: none;
}
.edge--swell { --edge-shape: var(--shape-swell); }
.edge--arch { --edge-shape: var(--shape-arch); --edge-h: clamp(48px, 7vw, 124px); }
.edge--flip { --edge-flip: -1; }
.press, .services-band, .svc-index--dark, .founder, .prep, .proj-nav, .site-footer { --edge-grain: var(--grain-light); }
.edge-line { position: absolute; z-index: 2; left: 0; width: 100%; bottom: calc(100% + clamp(12px, 1.6vw, 26px)); height: var(--edge-h); overflow: visible; fill: none; stroke: var(--tan); stroke-width: 1; pointer-events: none; }

/* Room for the edge that rises into the bottom of the section before it */
:is(.section, .rail-section, .proj-gallery, .services-band, .founder, .prep):has(+ .edge) { padding-bottom: calc(var(--section) + var(--edge-room)); }
.press:has(+ .edge) { padding-bottom: var(--edge-room); }
.quote-band:has(+ .edge) { padding-bottom: calc(clamp(110px, 15vw, 230px) + var(--edge-room)); }
.hero:has(+ .edge) .hero-visual, main > .hero:last-child .hero-visual { padding-bottom: calc(clamp(64px, 8vw, 108px) + var(--edge-room)); }
.cta-band {
  --cta-edge: clamp(40px, 6vw, 104px);
  margin-top: calc(-1 * var(--cta-edge));
  padding-top: calc(clamp(100px, 13vw, 210px) + var(--cta-edge));
  padding-bottom: calc(clamp(100px, 13vw, 210px) + var(--edge-room));
  -webkit-mask: var(--shape-swell) center top / 100% var(--cta-edge) no-repeat, linear-gradient(#000, #000) center bottom / 100% calc(100% - var(--cta-edge) + 1px) no-repeat;
  mask: var(--shape-swell) center top / 100% var(--cta-edge) no-repeat, linear-gradient(#000, #000) center bottom / 100% calc(100% - var(--cta-edge) + 1px) no-repeat;
}
:is(.section, .portfolio, .qa-section, .proj-nav):has(+ .cta-band) { padding-bottom: calc(var(--section) + clamp(40px, 6vw, 104px)); }
.hero:has(+ .cta-band) .hero-visual { padding-bottom: calc(clamp(64px, 8vw, 108px) + clamp(40px, 6vw, 104px)); }

/* Tones and fades */
.tone-paper { background-color: var(--paper); background-image: var(--grain); }
.fade-from-paper { background-color: var(--paper-2); background-image: var(--grain), linear-gradient(180deg, var(--paper), var(--paper-2) clamp(140px, 16vw, 280px)); }
.fade-to-paper { background-color: var(--paper-2); background-image: var(--grain), linear-gradient(0deg, var(--paper), var(--paper-2) clamp(140px, 16vw, 280px)); }
/* A photo band after a paper section dissolves out of the paper, grain included, so there is no seam.
   The stops follow a smoothstep curve, flat at both ends, so neither the start nor the end of the fade
   shows as a line. The extra top padding keeps the eyebrow below the visible part of the fade. */
.from-paper { --fade-len: clamp(240px, 34vw, 580px); padding-top: calc(clamp(110px, 15vw, 230px) + clamp(100px, 14.6vw, 275px)); }
.from-paper::after {
  content: ''; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: var(--fade-len); pointer-events: none;
  background-color: var(--paper); background-image: var(--grain);
  -webkit-mask: linear-gradient(180deg, #000, rgb(0 0 0 / 0.993) 5%, rgb(0 0 0 / 0.972) 10%, rgb(0 0 0 / 0.896) 20%, rgb(0 0 0 / 0.784) 30%, rgb(0 0 0 / 0.648) 40%, rgb(0 0 0 / 0.5) 50%, rgb(0 0 0 / 0.352) 60%, rgb(0 0 0 / 0.216) 70%, rgb(0 0 0 / 0.104) 80%, rgb(0 0 0 / 0.028) 90%, rgb(0 0 0 / 0.007) 95%, transparent);
  mask: linear-gradient(180deg, #000, rgb(0 0 0 / 0.993) 5%, rgb(0 0 0 / 0.972) 10%, rgb(0 0 0 / 0.896) 20%, rgb(0 0 0 / 0.784) 30%, rgb(0 0 0 / 0.648) 40%, rgb(0 0 0 / 0.5) 50%, rgb(0 0 0 / 0.352) 60%, rgb(0 0 0 / 0.216) 70%, rgb(0 0 0 / 0.104) 80%, rgb(0 0 0 / 0.028) 90%, rgb(0 0 0 / 0.007) 95%, transparent);
}
.hero--rounded .hero-visual { border-bottom-left-radius: clamp(96px, 15vw, 240px); }
@media (max-width: 900px) { .hero--rounded .hero-visual { border-radius: clamp(64px, 18vw, 140px); } }

/* ---------- Home hero: full-screen photo slideshow ---------- */
.header--over ~ main { margin-top: calc(-1 * var(--header-h)); }
.header--over:not(.is-scrolled):not(:has([aria-expanded='true'])) {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; color: var(--paper);
}
.header--over:not(.is-scrolled):not(:has([aria-expanded='true'])) :is(.primary-nav a[aria-current], .header-phone, .header-call) { color: var(--paper); }
/* Over the home hero photo the black logo is inverted to white, with a soft shadow to hold it on bright frames. */
.header--over:not(.is-scrolled):not(:has([aria-expanded='true'])) .wordmark-img { filter: invert(1) drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35)); }
.header--over:not(.is-scrolled):not(:has([aria-expanded='true'])) .primary-nav a::after { background: var(--accent-dark); }
.header--over:not(.is-scrolled):not(:has([aria-expanded='true'])) .button { --bg: var(--paper); --fg: var(--mauve-900); box-shadow: none; }
.header--over:not(.is-scrolled):not(:has([aria-expanded='true'])) .button:hover { --bg: var(--accent-dark); }
.header--over:not(.is-scrolled):not(:has([aria-expanded='true'])) :is(.header-call, .menu-button) { border-color: rgba(244, 239, 228, 0.5); }
.header--over:not(.is-scrolled):not(:has([aria-expanded='true'])) .menu-button span { background: var(--paper); }
.header--over:not(.is-scrolled) :focus-visible { outline-color: var(--paper); }

.cine {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-content: end;
  min-height: max(640px, 100svh);
  padding: calc(var(--header-h) + 40px) var(--gutter) calc(clamp(40px, 7vh, 88px) + var(--edge-room));
  background: var(--mauve-900); color: var(--paper);
}
.cine-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cine-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: brightness(0.72) saturate(1.05); }
.cine-slides.is-playing .cine-slide { opacity: 0; transition: opacity 2.2s ease-in-out; }
.cine-slides.is-playing .cine-slide.is-active { z-index: 2; opacity: 1; }
.cine-slides.is-playing .cine-slide.is-prev { z-index: 1; opacity: 1; transition: none; }
.cine-slide:nth-child(4n + 1) { --kb-x: 1.6%; --kb-y: -1%; }
.cine-slide:nth-child(4n + 2) { --kb-x: -1.8%; --kb-y: 0.6%; }
.cine-slide:nth-child(4n + 3) { --kb-x: 1.2%; --kb-y: 1.2%; }
.cine-slide:nth-child(4n + 4) { --kb-x: -1.2%; --kb-y: -0.8%; }
.cine::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 20, 21, 0.62) 0, rgba(30, 20, 21, 0.2) 22%, rgba(30, 20, 21, 0.24) 46%, rgba(30, 20, 21, 0.66) 68%, rgba(30, 20, 21, 0.9) 100%),
    radial-gradient(75% 65% at 50% 45%, transparent, rgba(30, 20, 21, 0.4));
}
.cine-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; }
.cine-title { margin: 0; font: inherit; letter-spacing: 0; text-transform: none; }
.cine-kicker { display: flex; align-items: center; gap: 0.9em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-dark); }
.cine-lede { max-width: 46ch; margin: 1.4rem 0 0; font-size: clamp(1.02rem, 0.92rem + 0.4vw, 1.25rem); line-height: 1.55; color: rgba(244, 239, 228, 0.9); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); text-wrap: pretty; }
.cine-script { display: block; margin-top: 0.2em; font-family: var(--display); font-size: clamp(3.4rem, 1.4rem + 7vw, 9rem); font-style: italic; font-weight: 500; line-height: 0.98; letter-spacing: -0.015em; color: var(--paper); text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35); padding-right: 0.15em; }
.cine-cta { display: grid; justify-items: end; gap: 0.9rem; }
.cine-book { position: relative; display: inline-flex; align-items: center; gap: 1.2rem; padding-bottom: 0.9rem; font-family: var(--display); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); font-weight: 600; }
.cine-book::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(244, 239, 228, 0.6); transform-origin: left; transition: transform 0.6s var(--ease), background-color 0.3s; }
.cine-book:hover::after { background: var(--accent-dark); transform: scaleX(0.4); }
.cine-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--mauve-900); transition: background-color 0.3s, transform 0.5s var(--ease); }
.cine-book:hover .cine-icon { background: var(--accent-dark); transform: rotate(-8deg) scale(1.06); }
.cine-icon .icon { width: 1.2rem; height: 1.2rem; }
.cine-phone { font-size: 0.92rem; font-weight: 500; color: rgba(244, 239, 228, 0.82); }
.cine-phone:hover { color: var(--accent-dark); }

@media (prefers-reduced-motion: no-preference) {
  .motion .cine-slides { animation: cine-zoom 2.8s var(--ease) both; }
  .motion .cine-slide.is-active, .motion .cine-slide.is-prev { animation: cine-kb 10s linear forwards; }
  @keyframes cine-kb { from { transform: scale(1.03) translate(0, 0); } to { transform: scale(1.12) translate(var(--kb-x, 0), var(--kb-y, 0)); } }
  .motion .cine-script { animation: write 1.9s 0.55s cubic-bezier(0.45, 0.05, 0.3, 1) both; }
  @keyframes cine-zoom { from { scale: 1.14; } to { scale: 1; } }
  @supports (animation-timeline: scroll()) {
    .motion .cine-slides { animation: cine-zoom 2.8s var(--ease) both, cine-drift linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0px 100vh; }
    @keyframes cine-drift { to { translate: 0 12%; } }
  }
}

@media (max-width: 900px) {
  .cine-bottom { flex-direction: column; align-items: flex-start; }
  .cine-cta { justify-items: start; }
}

/* ---------- Motion ---------- */
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 0.09s + 0.05s); }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
  .mark { animation: draw 1.1s 0.75s var(--ease) both; }
  @keyframes draw { from { background-size: 0% 0.24em; } }
  .hero-arch img { animation: wipe 1.7s 0.15s var(--ease) both; }
  @keyframes wipe { from { clip-path: inset(100% 0 0 0); transform: scale(1.14); } to { clip-path: inset(0 0 0 0); transform: none; } }

  @supports (animation-timeline: view()) {
    .motion :is(.svc-visual, .specialty-visual) .arch img, .motion .proj-cover img { animation: inner-drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes inner-drift { from { transform: translateY(-4%) scale(1.1); } to { transform: translateY(4%) scale(1.1); } }
    .band-bg, .cta-bg { inset: -10% 0; height: 120%; animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes drift { from { transform: translateY(-5%); } to { transform: translateY(5%); } }
  }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.4s; }
}

/* JS-driven motion. `.motion` is set in <head> (skipped for reduced motion, removed again if
   app.js never starts), so nothing here can leave content hidden. */
.motion .reveal, .motion .rv { transition: opacity 0.95s var(--ease), transform 1.15s var(--ease); transition-delay: var(--rd, 0s); }
.motion .reveal:not(.is-in), .motion .rv:not(.is-in) { opacity: 0; transform: translate3d(0, 34px, 0); }

.motion .split .w { display: inline-block; transition: opacity 0.75s var(--ease), transform 0.95s var(--ease), filter 0.85s var(--ease); transition-delay: calc(var(--rd, 0s) + var(--wi, 0) * 45ms + 100ms); }
.motion .split:not(.is-in) .w { opacity: 0; transform: translate3d(0, 0.45em, 0); filter: blur(6px); }

.motion .curtain img { transition: clip-path 1.3s var(--ease) var(--rd, 0s), scale 1.8s var(--ease) var(--rd, 0s), transform 1.3s var(--ease); }
.motion .curtain:not(.is-in) img { clip-path: inset(100% 0 0 0); scale: 1.16; }

.motion .doodle path, .motion .edge-line path { stroke-dasharray: 1; transition: stroke-dashoffset 1.9s var(--ease); transition-delay: calc(var(--rd, 0s) + var(--pi, 0) * 55ms + 150ms); }
.motion .doodle:not(.is-in) path, .motion .edge-line:not(.is-in) path { stroke-dashoffset: 1; }

/* Twinkle: each star shrinks, turns and fades out, then back; the second group runs half a cycle behind the first,
   so the two groups take turns. Without motion only the first group shows. */
.doodle-twinkle path { transform-box: fill-box; transform-origin: center; }
.motion .doodle-twinkle.is-in path { animation: twinkle 4.4s ease-in-out infinite; animation-delay: calc(var(--tg) * -2.2s + var(--pi) * 0.18s); }
:root:not(.motion) .doodle-twinkle g + g { display: none; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); } 42%, 58% { opacity: 0; transform: scale(0.35) rotate(25deg); } }

@property --edge-rise { syntax: '<number>'; inherits: true; initial-value: 1; }
.motion .edge::after { transition: --edge-rise 1.5s var(--ease); }
.motion .edge:not(.edge-in)::after { --edge-rise: 0.2; }

.motion .steps::before { transform-origin: top; transition: transform 2.4s var(--ease) 0.2s; }
.motion .steps:not(.is-in)::before { transform: scaleY(0); }
.motion .step .step-num { transition: scale 0.8s var(--ease), opacity 0.6s; transition-delay: calc(var(--rd, 0s) + 0.25s); }
.motion .step:not(.is-in) .step-num { scale: 0.4; opacity: 0; }

.footer-mark span { display: inline-block; vertical-align: top; }
.motion .footer-mark span { transition: opacity 1s var(--ease), transform 1.3s var(--ease); transition-delay: calc(var(--l, 0) * 70ms); }
.motion .footer-mark:not(.is-in) span { opacity: 0; transform: translate3d(0, 22%, 0); }

/* Hero entrance */
.motion .hero-visual { animation: panel-in 1.5s var(--ease) backwards; }
.motion .arcade .arch { animation: arch-rise 1.2s var(--ease) both; }
.motion .arcade-a { animation-delay: 0.45s; }
.motion .arcade-b { animation-delay: 0.25s; }
.motion .arcade-c { animation-delay: 0.6s; }
@keyframes panel-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes write { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% -6% -30% 0); } }
@keyframes arch-rise { from { opacity: 0; transform: translate3d(0, 60px, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .marquee-track[aria-hidden='true'] { display: none; }
  .marquee { justify-content: center; }
  .marquee-track { flex-wrap: wrap; justify-content: center; row-gap: 0.4rem; padding-block: 0.2rem; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media (hover: none) {
  .p-view { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .header-phone { display: none; }
  .btn-long { display: none; }
  .btn-short { display: inline; }
}

@media (max-width: 1000px) {
  .primary-nav, .header-actions { display: none; }
  :root { --header-h: 76px; }
  .header-call { display: grid; place-items: center; width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color 0.3s, color 0.3s; }
  .header-call:hover { background: var(--moss); color: var(--paper); }
  .header-call .icon { width: 1.15rem; }
  .menu-button { display: block; }
  .mobile-nav { max-height: calc(100dvh - 76px); }
  .menu-fallback { display: block; margin-left: auto; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* The press names may wrap here, so drop the sun separators rather than leave one dangling at a line end. */
  .press-gap { display: none; }
  .hero, .intro, .services-grid, .why, .faq-section, .specialty, .process, .studio-intro, .founder-grid, .proj-head, .proj-story, .contact, .qa, .reviews-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-col ul { gap: 0; }
  .footer-col .social { gap: 0.6rem; }
  .footer-col .social a { min-height: 44px; justify-content: center; }
  .founder-stats { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .footer-col a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-col li:not(:has(a)) { padding-block: 0.6rem; }
  .hero { padding-left: 0; }
  .hero-copy { padding: clamp(32px, 6vw, 56px) var(--gutter) clamp(44px, 8vw, 72px); }
  .hero-visual { min-height: 0; padding: clamp(56px, 10vw, 84px) clamp(44px, 10vw, 96px) clamp(76px, 12vw, 108px); border-radius: clamp(64px, 18vw, 140px) clamp(64px, 18vw, 140px) 0 0; }
  .hero-stage { width: min(100%, 440px); }
  .hero-stage--wide { width: min(100%, 520px); height: clamp(300px, 62vw, 440px); }
  .why-head, .faq-intro, .process-intro { position: static; }
  .founder-photo { width: min(100%, 360px); }
  .svc-visual, .specialty-visual { width: min(100%, 400px); }
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
  .p-card:nth-child(even) { margin-top: 0; }
  .proj-nav-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { columns: 1; }
  .index a { grid-template-columns: clamp(40px, 9vw, 60px) minmax(0, 1fr); }
  .index-thumb { display: none; }
  .factor-grid { grid-template-columns: minmax(0, 1fr); }
  .factor-grid li, .factor-grid li:nth-child(even) { padding-inline: 0; border-left: 0; }
  .rail-stage { --card: 84vw; }
  .rail-stage .rail-controls { display: none; }
  .rail--stage .rail-img, .rail--stage .rail-more a { aspect-ratio: 4 / 5; }
  .rail-caption { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .proj-facts > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  .hero-actions { gap: 1rem 1.6rem; }
  .button { padding-inline: 1.5em; }
  .press-list { gap: 0.6rem 1.6rem; }
  .press-name { font-size: clamp(1.8rem, 9vw, 2.3rem); }
  .hero-arcs { left: -9%; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-list li { grid-template-columns: 4.2rem minmax(0, 1fr); }
  .cta-sun { display: none; }
  .p-loc { margin-left: 0; width: 100%; }
}

@media (max-width: 420px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .rail-card { width: 78vw; }
}

/* ---------- Service pages ---------- */
.svc-index-head h2:has(+ p) { margin-bottom: 1.2rem; }
.svc-index-head > p:not(.eyebrow) { max-width: 56ch; margin: 0 0 clamp(32px, 4vw, 56px); color: var(--ink-soft); }
.svc-index--dark .svc-index-head > p:not(.eyebrow) { color: var(--on-dark); }
.svc-what .intro-body > p:not(.lede-lg) { max-width: 58ch; }
.svc-stat { display: block; font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem); line-height: 1; letter-spacing: -0.01em; color: var(--accent); }
.svc-head h2 { margin-top: 1.1rem; }
.svc-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: clamp(32px, 4vw, 56px) 0 clamp(24px, 3vw, 40px); padding: 0; list-style: none; }
.svc-projects .rail-card { width: auto; }
.svc-more { padding-bottom: var(--section); }
.svc-more-list { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
@media (max-width: 900px) {
  .svc-projects { grid-template-columns: minmax(0, 1fr); }
}

/* Section headings without an eyebrow above them start flush with their block. */
h2:first-child { margin-top: 0; }


/* ==========================================================================
   Refinements from the 2026-10-27 home page audit and review: a four-step
   serif ladder, one caps label and button recipe, the centred masthead, the
   hand-drawn marks on the headlines, fewer rules, and the reviews, carousel,
   why row and footer layouts. Nested under :root so they take precedence over
   the rules above, including their media queries, which is why the
   responsive rules they touch are restated here. Numbers in comments (#6,
   #11, …) are the audit's finding ranks (../homepage-audit-2026-10-27.md).
   ========================================================================== */

:root {
  /* ---------- Tokens ---------- */
  /* #6: four serif sizes instead of six crowded ones. Desktop 24.5 → 40 → 64 → 78 → 112 (hero). */
  --t-sm: clamp(1.4rem, 1.05rem + 0.6vw, 1.5rem);
  --t-md: clamp(2.1rem, 1rem + 1.9vw, 2.5rem);
  --t-h2: clamp(2.5rem, 1.1rem + 3.6vw, 4rem);
  --t-statement: clamp(3.1rem, 1.2rem + 4.6vw, 5.2rem);
  /* #2: one caps size, one tracking (wider for the voice labels), one chip size. */
  --cap: 0.76rem; --cap-track: 0.16em; --cap-track-wide: 0.2em; --chip: 44px;
  /* #3: one split grid for the text sections. */
  --split: minmax(0, 5fr) minmax(0, 7fr); --split-gap: clamp(32px, 6vw, 96px);
  /* #5: two on-dark text alphas instead of eight; #8: a deeper beige; #4: one large radius family. */
  --on-dark: rgba(245, 241, 231, 0.88); --on-dark-soft: rgba(245, 241, 231, 0.72);
  --paper-2: #e2d3b6;
  --moss-deep: #223019;
  --r-lg: 28px;
  /* #5: the paper grain measured invisible, so it goes; the dark bands get a grain you can see. */
  --grain: none;
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .94 0 0 0 0 .9 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='.08'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .94 0 0 0 0 .9 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='.11'/%3E%3C/svg%3E");

  /* ---------- Type ladder (#6) ---------- */
  h2 { font-size: var(--t-h2); line-height: 1.04; letter-spacing: -0.02em; }
  .intro-head h2 { font-size: var(--t-h2); }
  h3, .faq-item summary { font-size: var(--t-sm); line-height: 1.12; letter-spacing: -0.01em; }
  .rail--stage .rail-name, .why-num { font-size: var(--t-h2); }
  /* The statement size, scaled down on phones. */
  .quote-text { font-size: clamp(2.1rem, 0.9rem + 4.9vw, 5.2rem); line-height: 1.04; letter-spacing: -0.02em; }
  .cta-band h2 { font-size: var(--t-h2); line-height: 1.04; }
  body:has(.cine) .cta-band h2 { font-size: var(--t-statement); }
  /* The intro lede leaves the serif so the section has one statement, not two. */
  .intro:not(.svc-what) .intro-body .lede-lg { font-family: var(--sans); font-size: clamp(1.25rem, 1rem + 0.7vw, 1.5rem); font-weight: 500; line-height: 1.5; letter-spacing: -0.005em; color: var(--ink); }

  /* ---------- Caps labels, chips, buttons (#2, #10) ---------- */
  .rail-loc, .svc-num, .review-role, .footer-h, .text-link, .rail-go, .rail-more-go, .text-button, .button, .button--sm, .primary-nav { font-size: var(--cap); letter-spacing: var(--cap-track); }
  .eyebrow, .cine-kicker { font-size: var(--cap); letter-spacing: var(--cap-track-wide); }
  .social a, .cine-icon, .menu-button { width: var(--chip); height: var(--chip); }
  .menu-button span:first-child { top: 18px; }
  .menu-button span:last-child { top: 25px; }
  .menu-button[aria-expanded='true'] span:first-child, .menu-button[aria-expanded='true'] span:last-child { top: calc(50% - 0.75px); }
  .rail-btn { width: 48px; height: 48px; }
  .rail-stage .rail-controls { width: calc(var(--card) + 48px); }
  /* One button recipe: flat, colour change on hover, no shimmer, lift or shadow. */
  .button { box-shadow: none; }
  .button:hover { --bg: var(--moss-deep); transform: none; box-shadow: none; }
  .button::before { content: none; }
  .button--light:hover { --bg: var(--white); --fg: var(--moss); box-shadow: none; }
  .button--sm { min-height: 48px; }
  .header--over:not(.is-scrolled):not(:has([aria-expanded='true'])) .button { --fg: var(--moss); }
  .header--over:not(.is-scrolled):not(:has([aria-expanded='true'])) .button:hover { --bg: var(--white); }
  .svc-list a { transition: color 0.3s; }
  .svc-list a:hover { padding-left: 0; }

  /* ---------- Header (#25): wordmark in the middle, links either side, no pill ---------- */
  .header-actions { display: none; }
  .wordmark-img { width: clamp(170px, 19vw, 250px); }
  @media (min-width: 1001px) {
    .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
    .nav-left { justify-self: start; }
    .nav-right { justify-self: end; }
    .primary-nav { margin-inline: 0; }
  }
  @media (max-width: 1000px) {
    .header-call { width: var(--chip); height: var(--chip); }
    .menu-fallback { font-size: var(--cap); letter-spacing: var(--cap-track); }
  }
  @media (max-width: 640px) { .wordmark-img { width: 164px; } }

  /* ---------- Hero (#11, #14, #16, #10, #9) ---------- */
  /* The sturdier optical master at 112px: hairlines hold over the photo, no shadows needed. */
  .cine-script { font-weight: 650; font-variation-settings: 'opsz' 32; letter-spacing: 0; word-spacing: 0.06em; text-shadow: none; }
  .cine-kicker, .cine-lede { text-shadow: none; }
  .cta-band h2, .quote-text { font-variation-settings: 'opsz' 32; }
  /* One left-aligned stack at every width: headline, lede, one button. */
  .cine-bottom { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); justify-items: start; }
  .cine-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
  /* Tint rather than darken: mauve at the top and the foot, lighter through the middle. */
  .cine-slide { filter: brightness(0.85) saturate(1.1); }
  .cine::before { background: linear-gradient(180deg, rgba(42, 29, 30, 0.5) 0, rgba(42, 29, 30, 0.16) 28%, rgba(42, 29, 30, 0.28) 50%, rgba(42, 29, 30, 0.5) 100%), radial-gradient(75% 65% at 50% 45%, transparent, rgba(42, 29, 30, 0.3)); }
  .cine-script .mark { background-size: 100% 0.12em; padding-bottom: 0.02em; animation-delay: 2.3s; }
  @media (max-width: 640px) { .cine-slide { object-position: 50% 60% !important; } }

  /* ---------- Gold, kept for marks (#7) ---------- */
  .rating .stars { color: var(--bronze); opacity: 1; }
  .svc-num { color: var(--on-dark); }
  .svc-sparkle, .arcade-sparkle { color: var(--bronze); }
  .hero-arcs, .arcade-arcs, .founder-arcs { color: var(--bronze); }
  .hero--forest .hero-stage .arch-ring, .founder-photo .arch-ring { border-color: var(--bronze); }
  .edge-line { display: none; }

  /* ---------- Dark bands: two families, one scrim base (#5, #17) ---------- */
  .cta-band::before { background: var(--grain-dark), linear-gradient(180deg, rgba(36, 49, 28, 0.88), rgba(36, 49, 28, 0.82)); }
  .services-band { background-image: var(--grain-light), radial-gradient(60% 46% at 100% 62%, rgba(219, 199, 199, 0.3), transparent 70%); }
  .cine-lede, .svc-copy > p, .rail--stage .rail-loc, .rail--stage .rail-mood, .cta-copy, .footer-col a { color: var(--on-dark); }
  .svc-desc, .footer-brand p, .footer-bottom { color: var(--on-dark-soft); }
  /* #8: the one light green on the page. */
  .faq-section.tone-sage { background-color: var(--sage-pale); background-image: var(--grain); }
  /* A unifying grade on the large photos. */
  .rail--stage .rail-img img, .svc-visual .arch img, .cta-bg { filter: saturate(1.08) contrast(1.04); }

  /* ---------- Rhythm and grids (#1, #3) ---------- */
  .rail-section + .why, .reviews + .faq-section { padding-top: calc(var(--section) * 0.5); }
  .rail-section { padding-block: clamp(48px, 6vw, 96px) var(--section); }
  .intro, .why:not(.why--row), .faq-section { grid-template-columns: var(--split); gap: var(--split-gap); }
  .services-grid { gap: var(--split-gap); }
  @media (max-width: 900px) { .intro, .why:not(.why--row), .faq-section { grid-template-columns: minmax(0, 1fr); } }

  /* ---------- Index numerals seated with their titles (#13) ---------- */
  .svc-list a { grid-template-areas: 'num name arrow' '. desc arrow'; }
  .svc-num { line-height: 1; }
  .why-list li, .values-list li { align-items: baseline; }
  .why-num { font-weight: 500; font-variation-settings: 'opsz' 24; color: var(--accent); }

  /* ---------- Why as a horizontal beat, FAQ with an arch print (#12) ---------- */
  .why--row { grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
  .why--row .why-head { position: static; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 120px); align-items: end; }
  .why--row .why-head > p:not(.eyebrow) { margin-bottom: 1.2rem; }
  .why--row .why-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
  .why--row .why-list li { display: block; padding: 1.6rem 0 0; border-bottom: 0; }
  .why--row .why-num { display: block; margin-bottom: 0.9rem; }
  .print { position: relative; width: min(100%, 260px); margin-top: 2.4rem; padding-bottom: 26px; }
  .print .arch { aspect-ratio: 4 / 5.15; box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.45); }
  .print .arch-ring { top: 26px; right: -26px; width: 100%; border-color: var(--bronze); }
  @media (max-width: 900px) {
    .why--row .why-head { grid-template-columns: minmax(0, 1fr); }
    .why--row .why-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .why--row .why-list li { padding-block: 1.6rem; border-bottom: 1px solid var(--line-strong); }
    .print { width: min(60%, 260px); margin-inline: auto; }
  }

  /* ---------- Reviews (#21, #18) ---------- */
  .review, .review--feature { box-shadow: none; }
  .review--card { border: 1px solid var(--line); }
  .review-rating { display: inline-flex; margin-top: 1.6rem; }
  .review-more { margin-top: 0.9rem; padding-top: 0; }
  /* The feature card opens on a serif pull quote with a real quotation mark. */
  .review--feature::before { content: none; }
  .review--feature .pull { display: block; margin-bottom: 1rem; font-family: var(--display); font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.4rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; color: var(--paper); text-indent: -0.42em; text-wrap: pretty; }
  .review--feature .pull::before { content: '\201C'; }
  .review--feature blockquote p { font-size: 1.05rem; line-height: 1.6; color: var(--on-dark); }
  .review--feature .review-name { font-family: var(--display); font-style: italic; font-size: 1.15rem; font-weight: 500; }
  @media (max-width: 900px) {
    /* The three cards become a swipe row instead of a 1,900px stack. */
    .review-stack { display: flex; gap: 14px; margin-inline: calc(-1 * var(--edge)); padding: 4px var(--edge) 24px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; }
    .review-stack::-webkit-scrollbar { display: none; }
    .review-stack > * { flex: none; width: 82vw; scroll-snap-align: start; }
    .review-stack .review { height: 100%; }
  }

  /* ---------- Project carousel (#20, #22) ---------- */
  .rail--stage .rail-img::after { background: linear-gradient(180deg, rgba(42, 29, 30, 0) 42%, rgba(42, 29, 30, 0.5) 72%, rgba(42, 29, 30, 0.92) 100%); }
  .rail--stage .rail-loc { font-size: var(--cap); letter-spacing: var(--cap-track); }
  .rail--stage .rail-name { text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35); }
  .rail--stage .rail-mood { font-family: var(--sans); font-size: 0.98rem; line-height: 1.5; color: rgba(244, 239, 228, 0.9); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
  /* Neighbours stay photographs, slightly quieter, instead of ghosts; both arrows stay visible. */
  .rail--stage .rail-card { transition: none; }
  .rail--stage .rail-card > a { transition: filter 0.6s var(--ease); }
  .rail--stage.is-ready .rail-card:not(.is-current) { opacity: 1; }
  .rail--stage.is-ready .rail-card:not(.is-current) > a { filter: saturate(0.9) brightness(0.94); }
  .rail-go { padding-bottom: 0.3em; border-bottom: 1px solid currentColor; }
  .rail-go .icon { display: none; }
  .rail--stage .rail-card > a:hover .rail-go { border-color: var(--on-dark); }
  @media (max-width: 900px) {
    .rail-stage { --card: 80vw; }
    .rail--stage { gap: 12px; }
    .rail-stage .rail-controls { display: flex; position: static; width: auto; transform: none; justify-content: center; gap: 0.8rem; margin-top: 1.2rem; }
    .rail-stage .rail-btn { background: transparent; border-color: var(--line-strong); box-shadow: none; }
    .rail-stage .rail-btn:disabled { opacity: 0.32; }
    .rail--stage .rail-img::after { background: linear-gradient(180deg, rgba(42, 29, 30, 0) 22%, rgba(42, 29, 30, 0.55) 50%, rgba(42, 29, 30, 0.92) 100%); }
  }

  /* ---------- Fewer rules and circles (#4) ---------- */
  .why-list, .why-list li { border: 0; }
  .svc-list, .faq-list { border-top: 0; }
  .faq-icon { width: 24px; height: 24px; border: 0; }
  .faq-icon::before, .faq-icon::after { width: 14px; }
  .faq-item[open] .faq-icon { background: transparent; border-color: transparent; color: var(--moss); }
  .phone-link.inline { border-bottom: 0; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
  .review { border-radius: 6px; }
  @media (max-width: 900px) { .why--row .why-list li { border-bottom: 1px solid var(--line-strong); } }

  /* ---------- Hand-drawn marks attached to something (#9) ---------- */
  .svc-sparkle { left: auto; right: -16px; top: -12px; width: 56px; }
  .cta-head { position: relative; display: block; width: fit-content; margin: 1.3rem auto 1.5rem; }
  .cta-head h2 { margin: 0; }
  .cta-sun { left: auto; right: -34px; top: -26px; width: clamp(44px, 5vw, 72px); color: var(--bronze); }
  @media (max-width: 640px) {
    .svc-sparkle { right: 0; top: -8px; width: 44px; }
    .cta-sun { display: block; right: -10px; top: -14px; width: 40px; }
  }
  /* The intro headline's underline draws when the heading scrolls in, not on page load. */
  &.motion .split .mark { animation-play-state: paused; }
  &.motion .split.is-in .mark { animation-play-state: running; }

  /* ---------- Motion: no blur-in words, no inflating seams (#24) ---------- */
  &.motion .split .w { transition: opacity 0.75s var(--ease), transform 0.95s var(--ease); }
  &.motion .split:not(.is-in) .w { filter: none; }
  &.motion .edge:not(.edge-in)::after { --edge-rise: 1; }

  /* ---------- Footer (#23) ---------- */
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 1.1fr); gap: clamp(28px, 3.5vw, 56px); }
  .footer-col a { overflow-wrap: normal; }
  .footer-col a[href^='mailto'] { font-size: 0.95rem; }
  /* The ghost wordmark ends the page, cropped by its own box, instead of resting on the rule. */
  .footer-mark { margin: clamp(20px, 3vw, 36px) 0 0; height: 0.6em; overflow: clip; font-weight: 500; color: rgba(245, 241, 231, 0.12); }
  &.motion .footer-mark:not(.is-in) span { opacity: 1; transform: none; }
  @media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 420px) {
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.2rem; }
    .footer-brand, .footer-col--wide { grid-column: 1 / -1; }
  }

  /* The reviews follow the carousel, so the carousel needs the room their edge rises into. */
  .rail-section:has(+ .edge) { padding-bottom: calc(var(--section) + var(--edge-room)); }

  /* ---------- Home page details ---------- */
  /* The intro underline: "feel good about." stays on one line, so the hand-drawn mark is one stroke
     instead of a piece under "feel" that cut into the line below. On the home page the headline gets half
     the width, so it sets in four lines instead of stranding "you'll". */
  @media (min-width: 360px) { .intro .mark { white-space: nowrap; } }
  @media (min-width: 901px) { body:has(.cine) .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
  /* Keeps the hero lede clear of the underline on wide screens. */
  .cine-lede { margin-top: clamp(1.4rem, 0.2rem + 2.4vw, 2.4rem); }
  /* "Why": the short lede lines up with the third column below instead of floating between columns. The
     heading's measure keeps its three lines ("A creative eye. / A practical / approach."). */
  @media (min-width: 901px) {
    .why--row .why-head { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
    .why--row .why-head h2 { grid-column: span 2; max-width: 6.9em; }
    .why--row .why-head > p:not(.eyebrow) { grid-column: 3; }
  }
  /* The quote photo drifts 5% either way as the page scrolls, so it gets the overscan the CTA photo has. */
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) { .quote-band .band-bg { inset: -10% 0; height: 120%; } }
  }
  /* More twinkling stars, each on the shoulder of what it marks: the work headline, the featured review's
     corner, and above the quote band's eyebrow (as on the studio page's "Our standard"). */
  .rail-head .reveal { position: relative; }
  .work-sparkle { position: absolute; right: -52px; top: -6px; width: 50px; color: var(--bronze); }
  /* On desktop the column is sticky, which already anchors the star; below that it needs its own anchor. */
  @media (max-width: 900px) { .review-lead { position: relative; } }
  .review-sparkle { position: absolute; z-index: 1; right: -18px; top: -24px; width: 56px; color: var(--bronze); }
  .quote-sparkle { display: block; width: 52px; margin: 0 auto 1.2rem; color: var(--accent-dark); }
  @media (max-width: 640px) {
    .work-sparkle { right: 2px; top: -24px; width: 40px; }
    .review-sparkle { right: -8px; top: -20px; width: 44px; }
  }
  /* The CTA's sun, on the intro headline's upper-left shoulder, half in the margin. */
  .intro-head { position: relative; }
  .intro-sun { position: absolute; left: clamp(-58px, -3.6vw, -16px); top: clamp(-60px, -3.6vw, -30px); width: clamp(60px, 7vw, 104px); color: var(--bronze); }
  /* Once drawn (about 2.5s), it turns slowly for as long as the page is open; it stays still for reduced motion. */
  &.motion .intro-sun.is-in { animation: sun-turn 36s linear 2.6s infinite; }
  /* "Why": the three reasons as polaroids pinned to the board. Thin even borders and a deep bottom strip, a
     project photo with an instant-film grade and a recessed edge, the number written on the strip, and a pin
     through the top border. Tilts use the rotate and translate properties, pivoting on the pin, so they don't
     fight the scroll reveal's transform. */
  .why--row .why-list { gap: clamp(28px, 3.4vw, 56px); padding: 1.2rem clamp(0px, 1.2vw, 16px) 1.4rem; }
  .why--row .why-list > .polaroid {
    --pin: var(--mauve);
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; align-items: start;
    padding: clamp(11px, 1.15vw, 17px) clamp(11px, 1.15vw, 17px) clamp(24px, 2.4vw, 36px); border: 0;
    background: linear-gradient(165deg, #fffefb, #f7f4ed);
    box-shadow: 0 0 0 1px rgba(42, 29, 30, 0.05), 0 1px 1px rgba(42, 29, 30, 0.1), 0 4px 8px -4px rgba(42, 29, 30, 0.22), 0 26px 40px -24px rgba(42, 29, 30, 0.55);
    --r1: -2.2deg; --r0: -7deg; --ty: 0px; --z: 3;
    transform-origin: 50% 12px; rotate: var(--r1); translate: 0 var(--ty);
    transition: opacity 0.95s var(--ease) var(--rd, 0s), transform 1.15s var(--ease) var(--rd, 0s), rotate 0.8s var(--ease), box-shadow 0.8s var(--ease);
  }
  .why--row .why-list > .polaroid:nth-child(2) { --pin: #5d6b48; --r1: 1.6deg; --r0: 4deg; --ty: 18px; --z: 2; }
  .why--row .why-list > .polaroid:nth-child(3) { --pin: var(--bronze); --r1: -1deg; --r0: -1.5deg; --ty: -2px; --z: 1; }
  .why--row .why-list:not(.is-deck) > .polaroid:hover, .why--row .why-list > .polaroid.is-landed:hover { rotate: 0deg; box-shadow: 0 0 0 1px rgba(42, 29, 30, 0.05), 0 1px 1px rgba(42, 29, 30, 0.1), 0 6px 12px -6px rgba(42, 29, 30, 0.25), 0 34px 48px -26px rgba(42, 29, 30, 0.6); }
  /* The pin: a domed head with a highlight, casting its shadow down and to the right. */
  .why--row .why-list > .polaroid::before {
    content: ''; position: absolute; z-index: 3; top: -7px; left: calc(50% - 10px); width: 20px; height: 20px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9) 0 7%, rgba(255, 255, 255, 0) 32%), radial-gradient(circle at 50% 55%, var(--pin) 0 52%, color-mix(in srgb, var(--pin) 55%, #000) 100%);
    box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.22), 1px 2px 1px rgba(42, 29, 30, 0.22), 4px 7px 6px -2px rgba(42, 29, 30, 0.4);
    /* While a card is being dealt the pin hangs above it, large and faint, and presses in as the card lands. */
    opacity: var(--pin-p, 1); scale: calc(1.9 - 0.9 * var(--pin-p, 1)); translate: 0 calc(-18px * (1 - var(--pin-p, 1)));
  }
  .polaroid-photo { grid-area: 1 / 1 / 2 / -1; position: relative; aspect-ratio: 1; overflow: hidden; background: #2b241f; }
  .polaroid-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88) contrast(1.06) brightness(1.02) sepia(0.08); }
  .polaroid-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(20, 14, 10, 0.24), inset 0 0 26px rgba(20, 14, 10, 0.3); background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 34%); }
  /* The caption's title sits beside the written number; its text runs the full width of the strip below. */
  .polaroid-caption { display: contents; }
  .polaroid h3 { grid-area: 2 / 1; margin: 0; padding: clamp(14px, 1.4vw, 20px) 2px 0.35rem; }
  .polaroid p { grid-area: 3 / 1 / 4 / -1; padding-inline: 2px; font-size: 0.95rem; line-height: 1.55; }
  .polaroid .why-num { grid-area: 2 / 2; display: block; margin: clamp(8px, 0.9vw, 14px) 0 0 0.9rem; font-family: var(--script); font-size: clamp(2.3rem, 1.6rem + 1.3vw, 3rem); font-weight: 400; font-variation-settings: normal; line-height: 1; letter-spacing: 0; color: var(--accent); rotate: -6deg; }
  @media (max-width: 900px) {
    .why--row .why-list { justify-items: center; gap: clamp(40px, 9vw, 56px); padding-top: 1.6rem; }
    .why--row .why-list > .polaroid { width: min(100%, 340px); }
    .why--row .why-list > .polaroid:nth-child(2) { --ty: 0px; }
  }
  @media (prefers-reduced-motion: reduce) { .why--row .why-list > .polaroid { transition: none; } }
  /* On wide screens app.js deals the polaroids from a stack over the lede into their places as the page
     scrolls: --dx/--dy is each card's offset to the stack, --cp its travel (0 to 1) and --pin-p its pin. The
     first card is on top of the stack and leaves first. */
  .why--row .why-list.is-deck > .polaroid {
    z-index: var(--z); opacity: 1; transform: none; transition: box-shadow 0.8s var(--ease);
    translate: calc(var(--dx, 0px) * (1 - var(--cp, 1))) calc(var(--dy, 0px) * (1 - var(--cp, 1)) + var(--ty));
    rotate: calc(var(--r0) * (1 - var(--cp, 1)) + var(--r1) * var(--cp, 1));
  }
  .why--row .why-list.is-deck > .polaroid.is-landed { transition: rotate 0.8s var(--ease), box-shadow 0.8s var(--ease); }
  /* The carousel arrows in mauve with a cream arrow, at every width; hover deepens them. */
  .rail-stage .rail-btn { background: var(--mauve); border-color: transparent; color: var(--paper); }
  .rail-stage .rail-btn:hover:not(:disabled) { background: var(--mauve-700); border-color: var(--mauve-700); color: var(--paper); }
  /* Room between the footer's link columns and the rule under them. */
  .footer-bottom { margin-top: clamp(40px, 5vw, 72px); }
}
@keyframes sun-turn { to { transform: rotate(1turn); } }
