/* Mantra Digital: "The Mantra Field". Tokens and rules live in DESIGN.md. */

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-v2.woff2") format("woff2");
  font-weight: 300 600;
  font-stretch: 100% 125%;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #030404;          /* field black */
  --surface: #0b0d0d;
  --fg: #eceeee;          /* chalk */
  --muted: #8e9494;       /* smoke */
  --soft: rgba(236, 238, 238, .78);
  --line: rgba(236, 238, 238, .12);
  --line-strong: rgba(236, 238, 238, .24);
  --plate: #f2f2f4;       /* mockup plate, sampled from Mantra's device photography */
  --shadow: rgba(0, 0, 0, .62);
  --map-filter: grayscale(1) invert(.9) contrast(.88) brightness(.92);
  --logo-filter: none;

  --gutter: max(clamp(20px, 4vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right));
  --section: clamp(96px, 12vw, 176px);
  --max: 1320px;
  --nav-h: 72px;
  --r-lg: 16px;
  --r-sm: 12px;

  --btn-hover: #2b2e30;   /* charcoal the primary button floods to on hover */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-ui: cubic-bezier(.2, .8, .2, 1);

  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #e7e8eb;          /* a shade under the mockup plates, so every plate reads as its own card */
  --surface: #dcdee1;
  --fg: #050607;
  --muted: #050607;       /* light theme: all text stays black */
  --soft: #050607;
  --line: rgba(5, 6, 7, .12);
  --line-strong: rgba(5, 6, 7, .24);
  --shadow: rgba(24, 30, 30, .22);
  --map-filter: grayscale(1) contrast(1.02);
  --logo-filter: invert(1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--bg);
  scroll-padding-top: var(--nav-h);
}
html:not(.motion) { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  background: transparent;
  color: var(--fg);
  caret-color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .4s var(--ease-ui), color .4s var(--ease-ui);
}
::selection { background: var(--fg); color: var(--bg); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:hover { text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font-weight: 550; transform: translateY(-160%); transition: transform .2s var(--ease-ui);
}
.skip:focus { transform: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- The Mantra Field (live background, js/field.js) ---------- */
.field {
  position: fixed; left: 0; top: 0; z-index: 0; display: block;
  width: 100%; height: 100vh; height: 100lvh;
  pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease-ui);
}
.field.is-live { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

h1, h2, .display { font-stretch: 118%; font-weight: 540; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.1rem + 2.9vw, 3.75rem); }
h3 { font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); font-stretch: 110%; font-weight: 540; letter-spacing: -.012em; line-height: 1.2; }
p { text-wrap: pretty; }

/* ---------- Buttons & links ---------- */
/* Primary: pulls toward the cursor (js) and a charcoal circle grows from where the cursor came in and floods the pill;
   the label stays exactly as it is, and the arrow flies out top-right while a new one lands.
   The pill is a solid base colour (always painted, so every browser shows it) with the charcoal circle drawn over it;
   once the circle has covered the pill the base itself turns charcoal, so no sliver of white can show round the edge. */
@property --btn-fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 14px;
  height: 58px; padding: 0 9px 0 26px; border-radius: 999px;
  --btn-fill: 0%;
  background-color: var(--fg);
  background-image: radial-gradient(circle farthest-corner at var(--mx, 50%) var(--my, 50%), var(--btn-hover) calc(var(--btn-fill) - .5%), transparent var(--btn-fill));
  color: var(--bg);
  font-size: 1rem; font-weight: 560; font-stretch: 110%; letter-spacing: -.005em; white-space: nowrap;
  transition: scale .16s var(--ease-ui), --btn-fill .7s var(--ease-out), color .45s var(--ease-out), background-color 0s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { scale: .97; }
.btn__label { position: relative; display: block; line-height: 1.3; }
.btn__well {
  position: relative; display: grid; place-items: center; overflow: hidden;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); color: var(--fg);
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), scale .5s var(--ease-out);
}
.btn__well svg { grid-area: 1 / 1; width: 16px; height: 16px; transition: translate .5s var(--ease-out); }
.btn__well svg + svg { translate: -190% 190%; }
.btn--sm { height: 44px; padding: 0 6px 0 18px; gap: 10px; font-size: .9375rem; }
.btn--sm .btn__well { width: 32px; height: 32px; }
.btn--sm .btn__well svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    --btn-fill: 101%; color: #eceeee; background-color: var(--btn-hover);
    transition: scale .16s var(--ease-ui), --btn-fill .7s var(--ease-out), color .45s var(--ease-out), background-color 0s .5s;
  }
  .btn:hover .btn__well { background: #eceeee; color: #050607; scale: 1.06; }
  .btn:hover .btn__well svg:first-child { translate: 190% -190%; }
  .btn:hover .btn__well svg + svg { translate: 0 0; transition-delay: .06s; }
}

/* Text link: the underline draws from the left and the arrow slips out and back in */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 520; font-stretch: 108%;
}
.link-arrow span {
  padding-bottom: 3px;
  background:
    linear-gradient(currentColor 0 0) 0 100% / 0% 1px no-repeat,
    linear-gradient(var(--line-strong) 0 0) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.link-arrow svg { width: 16px; height: 16px; }
@keyframes arrow-through { 0% { translate: 0; opacity: 1; } 40% { translate: 110% 0; opacity: 0; } 41% { translate: -110% 0; opacity: 0; } 100% { translate: 0; opacity: 1; } }
@keyframes arrow-through-diag { 0% { translate: 0; opacity: 1; } 40% { translate: 90% -90%; opacity: 0; } 41% { translate: -90% 90%; opacity: 0; } 100% { translate: 0; opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover span { background-size: 100% 1px, 100% 1px; }
  .link-arrow:hover svg { animation: arrow-through .6s var(--ease-out); }
  .link-arrow:hover svg:has(use[href="#i-arrow"]) { animation-name: arrow-through-diag; }
}

/* Outline pill (phone, email): the same cursor-born fill, the icon gives a small nudge */
.pill {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 520; font-stretch: 106%; white-space: nowrap;
  transition: border-color .3s var(--ease-ui), scale .16s var(--ease-ui), color .5s var(--ease-out);
}
.pill::before {
  content: ""; position: absolute; left: var(--mx, 50%); top: var(--my, 50%); z-index: -1;
  width: 240%; aspect-ratio: 1; border-radius: 50%; background: var(--fg);
  translate: -50% -50%; scale: 0; transition: scale .6s var(--ease-out); pointer-events: none;
}
.pill svg { width: 18px; height: 18px; }
.pill:active { scale: .97; }
@keyframes ring { 0%, 100% { rotate: 0deg; } 20% { rotate: -14deg; } 40% { rotate: 12deg; } 60% { rotate: -8deg; } 80% { rotate: 4deg; } }
@keyframes lift { 0%, 100% { translate: 0; } 45% { translate: 0 -3px; } }
@media (hover: hover) and (pointer: fine) {
  .pill:hover { border-color: var(--fg); color: var(--bg); }
  .pill:hover::before { scale: 1; }
  .pill:hover svg { animation: ring .7s var(--ease-ui); }
  .pill:hover svg:has(use[href="#i-mail"]) { animation-name: lift; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 70; height: var(--nav-h);
  transition: transform .34s var(--ease-ui), background-color .3s var(--ease-ui), border-color .3s var(--ease-ui);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-101%); }
.nav__inner {
  height: 100%; width: min(100% - 2 * var(--gutter), 1560px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav__logo { display: block; justify-self: start; padding: 10px 0; }
.nav__logo svg { width: 124px; height: auto; aspect-ratio: 2834 / 477; color: var(--fg); }
.nav__links { grid-column: 2; display: flex; gap: clamp(20px, 2.4vw, 36px); font-size: .9375rem; font-weight: 500; font-stretch: 110%; }
.nav__links a { position: relative; padding: 6px 0; color: var(--soft); transition: color .2s var(--ease-ui); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--fg); }
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 12px; }
.theme-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); transition: border-color .25s var(--ease-ui), transform .16s var(--ease-ui);
}
.theme-btn svg { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform .32s var(--ease-out), opacity .2s var(--ease-ui); }
.theme-btn__moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
[data-theme="light"] .theme-btn__sun { opacity: 0; transform: rotate(60deg) scale(.6); }
[data-theme="light"] .theme-btn__moon { opacity: 1; transform: none; }
.theme-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .theme-btn:hover { border-color: var(--fg); } }

/* The menu button is the logo mark: three bars that fold into a cross */
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); }
.menu-btn span {
  position: absolute; top: 50%; left: 50%; width: 2.5px; height: 17px; margin: -8.5px 0 0 -1.25px;
  background: var(--fg); border-radius: 1px;
  transition: transform .3s var(--ease-out), opacity .2s var(--ease-ui);
}
.menu-btn span:nth-child(1) { transform: translateX(-6px); }
.menu-btn span:nth-child(3) { transform: translateX(6px); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) scaleY(1.15); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleY(.2); }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) scaleY(1.15); }

/* Opening and closing are the same animation: the sheet fades and the links slide with the same timing and
   stagger, in reverse order on the way out (last link first), then the sheet fades away behind them */
.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 6vh) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg); overscroll-behavior: contain;
  opacity: 0; transition: opacity .28s var(--ease-ui) .42s;
}
.menu[hidden] { display: none; }
.menu:not(.is-open) { pointer-events: none; }
.menu.is-open { opacity: 1; transition-delay: 0s; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  display: block; padding: 6px 0;
  font-size: clamp(2.4rem, 8vw + 1rem, 4rem); font-stretch: 118%; font-weight: 540; letter-spacing: -.025em; line-height: 1.05;
  transform: translateY(24px); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .35s var(--ease-ui);
}
.menu__links a:nth-child(5) { transition-delay: .1s; }
.menu__links a:nth-child(4) { transition-delay: .15s; }
.menu__links a:nth-child(3) { transition-delay: .2s; }
.menu__links a:nth-child(2) { transition-delay: .25s; }
.menu__links a:nth-child(1) { transition-delay: .3s; }
.menu.is-open .menu__links a { transform: none; opacity: 1; transition-delay: 0s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .2s; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
/* the buttons move with the links: in straight after them, out first */
.menu__foot > * { transform: translateY(24px); opacity: 0; transition: transform .5s var(--ease-out), opacity .35s var(--ease-ui), background-color .4s var(--ease-ui), color .45s var(--ease-out), border-color .3s var(--ease-ui); }
.menu__foot > :nth-child(1) { transition-delay: .05s; }
.menu.is-open .menu__foot > * { transform: none; opacity: 1; transition-delay: .25s; }
.menu.is-open .menu__foot > :nth-child(2) { transition-delay: .3s; }
.menu__tel { font-weight: 520; font-stretch: 108%; }

/* ---------- Hero: the headline centred on the screen over the field ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; max-height: 1240px; overflow: clip; isolation: isolate; }
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(56% 48% at 50% 50%, color-mix(in srgb, var(--bg) 60%, transparent) 0%, color-mix(in srgb, var(--bg) 28%, transparent) 55%, transparent 100%);
}
.hero__copy {
  position: absolute; inset: 0; z-index: 2; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.hero__title { font-size: clamp(2.6rem, 1rem + 4.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.03em; font-stretch: 116%; }
.hero__title .line { display: block; }
.hero__title .line--flip { overflow: clip; padding-block: .02em .14em; margin-block: -.02em -.14em; }
.hero__title .hw { display: inline-block; white-space: nowrap; }
.hero__sub .sw { display: inline-block; }
.hero__sub { margin: 28px auto 0; max-width: 40ch; font-size: clamp(1.02rem, .92rem + .3vw, 1.1875rem); line-height: 1.5; color: var(--soft); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 30px; margin-top: 38px; }
/* Landing: no loader. Plain CSS, so it starts with the first paint: the headline slides up line by line,
   the intro line washes in, the buttons rise, the nav drops in piece by piece (the field meanwhile drops out of warp). */
@keyframes slide-up { from { transform: translateY(105%); } }
@keyframes wash-in { from { opacity: .1; filter: blur(8px); transform: translateY(8px); } } /* from .1: counts as painted (LCP) */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-16px); } }
/* each headline line slides up out of its mask as one piece (its words move together), the second just after the first */
html.motion .hero__title .line--flip .hw { animation: slide-up 1.15s var(--ease-out) .12s backwards; }
html.motion .hero__title .line--flip + .line--flip .hw { animation-delay: .3s; }
html.motion .hero__sub .sw { animation: wash-in .9s var(--ease-out) calc(.62s + var(--i) * .025s) backwards; }
html.motion .hero__ctas > * { animation: rise-in .9s var(--ease-out) 1.05s backwards; }
html.motion .hero__ctas > :nth-child(2) { animation-delay: 1.15s; }
html.motion .nav__logo { animation: drop-in .8s var(--ease-out) .1s backwards; }
html.motion .nav__links a { animation: drop-in .7s var(--ease-out) backwards; }
html.motion .nav__links a:nth-child(1) { animation-delay: .18s; }
html.motion .nav__links a:nth-child(2) { animation-delay: .24s; }
html.motion .nav__links a:nth-child(3) { animation-delay: .3s; }
html.motion .nav__links a:nth-child(4) { animation-delay: .36s; }
html.motion .nav__links a:nth-child(5) { animation-delay: .42s; }
html.motion .nav__actions > * { animation: drop-in .7s var(--ease-out) .5s backwards; }
html.motion .nav__actions > :nth-child(2) { animation-delay: .56s; }

/* ---------- Credentials marquee ---------- */
.clients { position: relative; z-index: 1; border-block: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; width: max-content; padding-block: clamp(26px, 3.4vw, 40px); }
.marquee__row { display: flex; flex-shrink: 0; align-items: center; }
.marquee__row li { display: flex; align-items: center; padding-right: clamp(56px, 7vw, 120px); }
.marquee__row img { width: auto; height: calc(var(--h, 40px) * var(--k, 1)); opacity: .78; filter: var(--logo-filter); }
html:not(.motion) .marquee { width: auto; padding-inline: var(--gutter); }
html:not(.motion) .marquee__row { flex-wrap: wrap; row-gap: 20px; }
html:not(.motion) .marquee__row + .marquee__row { display: none; }

/* ---------- About / statement ---------- */
.about { padding-block: var(--section); }
.about__text { display: grid; gap: .7em; max-width: 1180px; }
.about__text p {
  font-size: clamp(1.55rem, .9rem + 2.3vw, 3.1rem); font-stretch: 106%; font-weight: 440;
  line-height: 1.16; letter-spacing: -.02em;
}

[data-theme="light"] [data-scrub] .w { opacity: 1 !important; }

/* ---------- Proof: the numbers, four columns under hairlines that draw across with the scroll ---------- */
.proof { padding-block: 0 var(--section); }
.proof__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.stat { position: relative; padding-top: clamp(22px, 2.4vw, 34px); border-top: 1px solid var(--line); }
.stat__rule { position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--fg); transform-origin: 0 50%; }
.stat__num { font-size: clamp(2.9rem, 1.2rem + 4.4vw, 6rem); font-stretch: 118%; font-weight: 500; letter-spacing: -.035em; line-height: .95; }
.stat__label { margin-top: 16px; font-size: 1.0625rem; color: var(--soft); }

/* ---------- Work ---------- */
.work { position: relative; }
.work__pin { padding-block: calc(var(--section) * .5) var(--section); }
.work__intro { width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto clamp(32px, 4vw, 56px); }
.work__intro h2 { font-size: clamp(2.4rem, 1.1rem + 4vw, 5rem); }
.work__intro p { margin-top: 18px; max-width: 34ch; color: var(--soft); }
.work__cards {
  display: flex; gap: clamp(16px, 2.4vw, 40px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.work__cards::-webkit-scrollbar { display: none; }
.project { flex: 0 0 min(80vw, 440px); scroll-snap-align: start; }
.project__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg);
  background: var(--plate);
}
.project__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: scale 1.2s var(--ease-out);
}
/* the next frame opens over the last one as a circle from the cursor, and closes back into it */
.project__b, .project__c {
  clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%));
  transition: clip-path .6s cubic-bezier(.3, .7, .2, 1), scale 1.2s var(--ease-out);
}
.project__media img.is-on { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); }
[data-theme="light"] .project__media { box-shadow: 0 0 0 1px rgba(5, 6, 7, .1), 0 28px 56px -30px rgba(5, 6, 7, .4); }
.project h3 { margin-top: 20px; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
.project > p { margin-top: 4px; color: var(--muted); font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) {
  .project:hover .project__media img { scale: 1.03; }
}
.work__end {
  flex: 0 0 min(80vw, 400px); scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px;
  padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line);
}
.work__end p { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-stretch: 112%; font-weight: 520; letter-spacing: -.02em; line-height: 1.15; }

/* Desktop with motion: one pinned horizontal track (intro + cards) */
html.motion .work__pin { height: 100svh; padding: 0; display: flex; align-items: center; overflow: hidden; }
html.motion .work__track { position: relative; flex: none; width: max-content; display: flex; align-items: flex-end; gap: 18px; padding-inline: var(--gutter); }
html.motion .work__intro { flex: none; width: min(78vw, 340px); margin: 0; align-self: flex-start; }
html.motion .work__cards { overflow: visible; padding: 0; scroll-snap-type: none; gap: 18px; }
html.motion .project { flex: none; width: min(76vw, calc((100svh - 250px) * .8)); }
html.motion .work__end { flex-basis: auto; width: min(76vw, calc((100svh - 250px) * .8)); aspect-ratio: 4 / 5; margin-bottom: 3.6rem; align-self: flex-start; }
@media (min-width: 600px) and (max-width: 1023px) {
  html.motion .project, html.motion .work__end { width: min(52vw, calc((100svh - 260px) * .8)); }
  html.motion .work__intro { width: min(46vw, 360px); }
}
@media (min-width: 1024px) {
  html.motion .work__track { flex: none; width: max-content; display: flex; align-items: flex-end; gap: clamp(28px, 3vw, 56px); padding-inline: var(--gutter); }
  html.motion .work__intro { flex: none; width: clamp(300px, 26vw, 420px); margin: 0; align-self: flex-start; }
  html.motion .work__cards { overflow: visible; padding: 0; scroll-snap-type: none; gap: clamp(28px, 3vw, 56px); }
  html.motion .project { flex-basis: auto; width: min(32vw, calc((100svh - 260px) * .8)); }
  html.motion .work__end { flex-basis: auto; width: min(30vw, 400px); aspect-ratio: 4 / 5; margin-bottom: 4.5rem; align-self: flex-start; }
}

/* ---------- Services: three bars ---------- */
.services { padding-block: var(--section); }
.services h2 { max-width: 14ch; }
.services__lede { margin-top: 22px; max-width: 46ch; color: var(--soft); font-size: 1.125rem; }
.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 56px); margin-top: clamp(56px, 7vw, 96px); }
.bars__col { position: relative; padding-left: clamp(20px, 2.2vw, 32px); display: grid; align-content: start; gap: 34px; }
.bars__rule { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--fg); transform-origin: 50% 0; }
.bars__col h3 { font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.9rem); font-stretch: 120%; letter-spacing: -.025em; line-height: 1; margin-bottom: 6px; }
.svc h4 { font-size: 1.1875rem; font-weight: 560; font-stretch: 108%; letter-spacing: -.01em; line-height: 1.3; }
.svc p { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.58; max-width: 40ch; }

/* ---------- Process ---------- */
.process { padding-block: 0 var(--section); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); }
.process__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--nav-h) + 40px); }
.process__head p { margin-top: 22px; color: var(--soft); max-width: 40ch; }
.steps { grid-column: 7 / span 6; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(20px, 3vw, 40px); padding: 34px 0 38px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { grid-row: span 2; font-size: clamp(2.2rem, 1.4rem + 2vw, 3.4rem); font-stretch: 125%; font-weight: 300; line-height: .9; color: var(--muted); }
.step h3 { align-self: end; }
.step p { margin-top: 8px; color: var(--muted); max-width: 44ch; }

/* ---------- Studio ---------- */
.studio { padding-block: 0 var(--section); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.studio__photo { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 40px); perspective: 1100px; }
/* The portrait opens out of an orb as it scrolls in, tilts toward the cursor,
   and carries a spinning studio badge and a glass name tag that float above it in 3D. */
.studio__frame { position: relative; aspect-ratio: 824 / 1236; transform-style: preserve-3d; }
@media (min-width: 1024px) { .studio__frame { width: min(33vw, 460px, calc((100svh - var(--nav-h) - 110px) * 824 / 1236)); } }
/* The border is a frosted-glass bezel cut from the photo itself, with a thread of light that travels
   round its edge as you scroll (and back the other way when you scroll up). */
.studio__bezel {
  position: absolute; inset: 0; overflow: hidden; padding: 12px; border-radius: 26px; background: var(--surface);
  clip-path: circle(var(--lens, 100%) at 50% 40%);
  /* Safari otherwise lets the blurred layer spill square past the rounded corners */
  isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.studio__frost { position: absolute; inset: -12%; width: 124%; max-width: none; height: 124%; object-fit: cover; filter: blur(22px) saturate(1.3) brightness(.78); }
[data-theme="light"] .studio__frost { filter: blur(22px) saturate(1.15) brightness(1.08); }
.studio__bezel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 42%, rgba(0, 0, 0, .16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.studio__lens {
  position: relative; z-index: 1; height: 100%; overflow: hidden; border-radius: 15px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 34px -12px rgba(0, 0, 0, .7);
}
.studio__lens img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.studio__rim, .studio__rim::before {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--rim, 20deg), transparent 0deg 230deg, rgba(255, 255, 255, .16) 272deg, #fff 310deg, rgba(255, 255, 255, .9) 322deg, rgba(255, 255, 255, .16) 342deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.studio__rim { z-index: 2; padding: 2px; }
.studio__rim::before { content: ""; padding: 12px; opacity: .7; filter: blur(8px); }
.studio__glare {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .15), transparent 50%);
  transition: opacity .5s var(--ease-ui);
}
.studio__frame.is-tilting .studio__glare { opacity: 1; }
.studio__tag {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; display: grid; gap: 1px;
  padding: 13px 18px 14px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .875rem; line-height: 1.4; color: var(--soft);
}
.studio__tag strong { color: var(--fg); font-size: 1.0625rem; font-weight: 560; font-stretch: 112%; }
.studio__copy { grid-column: 7 / span 6; }
@media (min-width: 1024px) {
  /* the photo's column is exactly as wide as the photo, so the copy starts right beside it */
  .studio { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(96px, 11vw, 190px); }
  .studio__photo { grid-column: 1; }
  /* breathing room on the right too, so the copy sits centred in the space beside the photo */
  .studio__copy { grid-column: 2; padding-right: clamp(0px, 2vw, 40px); }
  .studio__story { max-width: none; }
}
.studio__copy h2 { max-width: 14ch; }
.studio__lead { margin-top: 26px; max-width: 38ch; font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem); font-stretch: 104%; line-height: 1.28; letter-spacing: -.015em; }
.studio__story { margin-top: 32px; display: grid; gap: 1.05em; max-width: 70ch; color: var(--soft); font-size: 1.0625rem; }
.timeline { margin-top: 44px; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.timeline span { color: var(--fg); font-weight: 560; font-stretch: 112%; }

/* ---------- Reviews ---------- */
.reviews { position: relative; }
.reviews__pin { padding-block: 0 var(--section); }
.reviews h2 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-stretch: 110%; font-weight: 520; letter-spacing: 0; color: var(--muted); }
.quotes { margin-top: 28px; display: grid; gap: 64px; }
.quote blockquote p {
  font-size: clamp(1.9rem, 1rem + 3vw, 4rem); font-stretch: 108%; font-weight: 460;
  line-height: 1.1; letter-spacing: -.028em; max-width: 24ch; text-wrap: balance;
}
.quote figcaption { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }
.quote figcaption strong { color: var(--fg); font-weight: 560; }
.reviews__foot { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pager { display: none; gap: 10px; height: 44px; }
.pager i { position: relative; display: block; width: 6px; height: 100%; background: var(--line-strong); overflow: hidden; }
.pager i::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); }
html.motion .reviews__pin { height: 100svh; padding: 0; display: flex; flex-direction: column; justify-content: center; }
html.motion .quotes { display: grid; gap: 0; }
html.motion .quote { grid-area: 1 / 1; }
html.motion .quote:not(:first-child) { opacity: 0; visibility: hidden; }
html.motion .pager { display: flex; }

/* ---------- Every testimonial, in full: a row that pans sideways as you scroll ---------- */
.wall { padding-block: var(--section); }
.wall__intro { width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto clamp(32px, 4vw, 56px); }
.wall__intro p { margin-top: 20px; max-width: 32ch; color: var(--soft); }
.wall__list {
  display: flex; align-items: flex-start; gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.wall__list::-webkit-scrollbar { display: none; }
/* Each card takes the size its review needs (short reviews narrower, long ones wider); with motion the row rides
   a wave as it pans, each card rising and falling as it crosses the screen (js). */
.t-card {
  --w: 440px;
  position: relative; flex: none; width: min(var(--w), 86vw); scroll-snap-align: start;
  padding: clamp(24px, 2.2vw, 32px); border-radius: 20px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--fg) 7%, transparent), color-mix(in srgb, var(--fg) 2%, transparent) 60%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fg) 14%, transparent), inset 0 0 0 1px var(--line);
  transition: translate .5s var(--ease-out), box-shadow .4s var(--ease-ui);
}
.t-card--s { --w: 360px; }
.t-card--l { --w: 540px; }
[data-theme="light"] .t-card { background: #f2f2f4; box-shadow: 0 0 0 1px rgba(5, 6, 7, .08), 0 24px 48px -32px rgba(5, 6, 7, .35); }
.t-card__top { display: flex; justify-content: space-between; align-items: flex-start; height: 40px; }
.t-card__mark { font-size: 5rem; line-height: .82; font-stretch: 125%; font-weight: 600; color: var(--fg); opacity: .22; transition: opacity .4s var(--ease-ui); }
.t-card__n { font-size: .8125rem; font-weight: 520; letter-spacing: .04em; color: var(--muted); }
.t-card blockquote p { color: var(--soft); font-size: 1rem; line-height: 1.62; }
.t-card__lead { display: block; margin-bottom: 14px; color: var(--fg); font-size: clamp(1.15rem, 1rem + .45vw, 1.4rem); font-stretch: 106%; font-weight: 460; line-height: 1.3; letter-spacing: -.012em; }
.t-card figcaption { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9375rem; }
.t-card__who { display: flex; flex-direction: column; line-height: 1.35; }
.t-card__who strong { color: var(--fg); font-weight: 560; font-stretch: 108%; }
.t-card__who span { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .t-card:hover { translate: 0 -6px; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fg) 22%, transparent), inset 0 0 0 1px var(--line-strong); }
  .t-card:hover .t-card__mark { opacity: .45; }
  /* light theme: the card just lifts with a deeper shadow, no outline */
  [data-theme="light"] .t-card:hover { box-shadow: 0 0 0 1px rgba(5, 6, 7, .08), 0 34px 60px -30px rgba(5, 6, 7, .42); }
}
.wall__progress { margin: clamp(56px, 7vh, 88px) var(--gutter) 0; height: 1px; background: var(--line); }
.wall__progress i { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }
html:not(.motion) .wall__progress { display: none; }
/* with motion the row is pinned and pans with the scroll, like the Work gallery */
html.motion .wall { height: 100svh; padding: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
html.motion .wall__track { position: relative; display: flex; align-items: flex-start; gap: clamp(28px, 3vw, 56px); width: max-content; padding-inline: var(--gutter); }
html.motion .wall__intro { flex: none; width: clamp(280px, 26vw, 400px); margin: 0; }
html.motion .wall__list { overflow: visible; padding: 0; scroll-snap-type: none; align-items: center; }
/* phones: the title sits centred above the row and stays put (like Selected work); only the cards travel */
@media (max-width: 767px) {
  html.motion .wall__track { flex-direction: column; align-items: stretch; width: auto; gap: 20px; padding-inline: 0; }
  html.motion .wall__intro { width: auto; align-self: stretch; padding-inline: var(--gutter); text-align: center; }
  html.motion .wall__intro p { margin-inline: auto; margin-top: 12px; }
  html.motion .wall__list { padding-inline: var(--gutter); }
  html.motion .wall__progress { margin-top: 20px; }
}
@media (max-width: 767px) {
  /* compact enough that the longest review fits on an iPhone screen under the title (same full text) */
  .t-card { width: min(var(--w), 92vw); padding: 16px 16px 14px; }
  .t-card__top { height: 22px; }
  .t-card__mark { font-size: 2.6rem; }
  .t-card__lead { font-size: .9375rem; line-height: 1.26; margin-bottom: 6px; }
  .t-card blockquote p { font-size: .8125rem; line-height: 1.42; }
  .t-card figcaption { margin-top: 10px; padding-top: 8px; font-size: .8125rem; }
}

/* ---------- FAQ ---------- */
.faq { padding-block: 0 var(--section); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); }
.faq__head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__head h2 { max-width: 10ch; }
.faq__head p { margin-top: 20px; color: var(--soft); }
.faq__head a { color: var(--fg); background: linear-gradient(currentColor 0 0) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; white-space: nowrap; }
.faq__list { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); font-weight: 520; font-stretch: 108%; letter-spacing: -.012em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform .3s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 28px; color: var(--soft); max-width: 60ch; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--soft); } }

/* ---------- Visit ---------- */
.visit { padding-block: 0 var(--section); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: stretch; }
.visit__info { grid-column: 1 / span 5; }
.visit address { margin-top: 28px; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-stretch: 108%; line-height: 1.3; letter-spacing: -.015em; }
.visit address a { transition: color .2s var(--ease-ui); }
@media (hover: hover) and (pointer: fine) { .visit address a:hover { color: var(--soft); } }
.visit .link-arrow { margin-top: 20px; }
.status { margin-top: 44px; display: flex; align-items: center; gap: 10px; font-weight: 520; font-stretch: 108%; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.status.is-open::before { background: var(--fg); border-color: var(--fg); box-shadow: 0 0 0 4px var(--line); }
.hours { margin-top: 18px; width: 100%; max-width: 420px; border-collapse: collapse; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; color: var(--muted); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--fg); font-weight: 560; }
.visit__map { position: relative; grid-column: 7 / span 6; min-height: 420px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.visit__map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: var(--map-filter); pointer-events: none; }
/* Until it's clicked or tapped, the map lets the page scroll straight past it (an embedded map otherwise swallows the
   wheel and the swipe mid-scroll). Switched on, it pans and zooms; moving off it or scrolling it away switches it back. */
.visit__map.is-live iframe { pointer-events: auto; }
.visit__map-cover {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 18px; cursor: pointer;
}
.visit__map.is-live .visit__map-cover { display: none; }
.visit__map-cover span {
  padding: 8px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 520; color: var(--fg);
  background: color-mix(in srgb, var(--bg) 82%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong);
  opacity: 0; transition: opacity .3s var(--ease-ui);
}
.visit__map-cover:hover span, .visit__map-cover:focus-visible span { opacity: 1; }
@media (hover: none) { .visit__map-cover span { opacity: 1; } }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
/* The sign-off gets the screen to itself: centred both ways, with plenty of room above and below.
   With motion it holds the screen for a while (pinned in js) as its words light up and the field streams past. */
.footer__cta {
  min-height: min(100svh, 1000px); padding-block: clamp(140px, 16vw, 240px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.footer__sign { font-size: clamp(2.4rem, 1rem + 5vw, 6rem); font-stretch: 120%; line-height: 1; letter-spacing: -.03em; max-width: 15ch; }
.footer__actions { margin-top: clamp(40px, 4.4vw, 64px); display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.footer__grid { padding-top: clamp(56px, 6vw, 88px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer__grid h3 { font-size: .9375rem; font-weight: 500; font-stretch: 108%; color: var(--muted); letter-spacing: 0; }
.footer__grid p, .footer__grid ul { margin-top: 14px; line-height: 1.7; color: var(--soft); }
.footer__grid a { transition: color .2s var(--ease-ui); }
@media (hover: hover) and (pointer: fine) { .footer__grid a:hover { color: var(--fg); } }
.socials a { display: inline-flex; align-items: center; gap: 10px; }
.socials svg { width: 18px; height: 18px; }
.footer__mark { width: min(100% - 2 * var(--gutter), 1560px); margin: clamp(72px, 9vw, 128px) auto 0; }
.footer__mark svg { width: 100%; height: auto; aspect-ratio: 2834 / 477; color: var(--fg); }
.footer__legal {
  display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; text-align: center;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .875rem;
}
.footer__legal a { transition: color .2s var(--ease-ui); }
.footer__sep { margin-inline: .45em; }
html.motion .footer__cta { height: 100svh; min-height: 560px; padding-block: 40px; }
html.motion [data-sign] .w { opacity: .4; }
[data-theme="light"] [data-sign] .w { opacity: 1 !important; }
@media (hover: hover) and (pointer: fine) { .footer__legal a:hover { color: var(--fg); } }

/* ---------- Theme switch transition (View Transitions) ---------- */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-reveal .7s var(--ease-io) both; }
@keyframes theme-reveal {
  from { clip-path: circle(0 at var(--vt-x, 100%) var(--vt-y, 0%)); }
  to { clip-path: circle(var(--vt-r, 150%) at var(--vt-x, 100%) var(--vt-y, 0%)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .nav__links { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 1023px) {
  .process, .studio, .faq, .visit { grid-template-columns: 1fr; }
  .process__head, .faq__head, .studio__photo { position: static; }
  .process__head, .steps, .studio__photo, .studio__copy, .faq__head, .faq__list, .visit__info, .visit__map { grid-column: 1 / -1; }
  .steps, .faq__list { margin-top: 44px; }
  .studio__photo { max-width: 560px; }
  .studio__copy { margin-top: 48px; }
  .visit__map { margin-top: 48px; min-height: 360px; }
  .visit__map iframe { min-height: 360px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }

}
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .nav__cta { display: none; }
  .nav__logo svg { width: 108px; }
  .bars { grid-template-columns: 1fr; gap: 56px; }

  .marquee__row img { --k: .72; }
  .proof__list { grid-template-columns: 1fr 1fr; gap: 48px 20px; }
  .stat__label { font-size: 1rem; }
  .hero__shade { background: radial-gradient(90% 46% at 50% 50%, color-mix(in srgb, var(--bg) 62%, transparent) 0%, transparent 100%); }
  .hero__title { font-size: clamp(2.2rem, 1.1rem + 5vw, 3rem); }
  .hero__sub { margin-top: 18px; }
  .hero__ctas { margin-top: 26px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .timeline li { grid-template-columns: 4.25rem 1fr; }
      .quote blockquote p { font-size: clamp(1.7rem, 1rem + 3.4vw, 2.3rem); }

  /* Work on phones: the title sits centred above the row (like the other sections) and only the cards travel;
     the closing "your business" card is left out */
  html.motion .work__pin { flex-direction: column; justify-content: center; align-items: stretch; }
  html.motion .work__track { flex-direction: column; align-items: stretch; width: auto; gap: 44px; padding-inline: 0; }
  html.motion .work__intro { width: auto; align-self: stretch; padding-inline: var(--gutter); text-align: center; }
  html.motion .work__intro h2 { font-size: clamp(2.2rem, 1.1rem + 5vw, 3rem); }
  html.motion .work__intro p { margin-inline: auto; }
  html.motion .work__cards { padding-inline: var(--gutter); gap: 14px; }
  html.motion .project { width: min(72vw, calc((100svh - 312px) * .8)); }
  html.motion .project h3 { margin-top: 14px; }
  html.motion .work__end { display: none; }
  .services { padding-top: 48px; }

  /* Headings match the hero and the sign-off: one size, centred */
  h2, .footer__sign { font-size: clamp(2.2rem, 1.1rem + 5vw, 3rem); }
  .reviews h2 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
  .about__text { text-align: center; }
  .about__text p { font-size: clamp(1.8rem, 1.1rem + 3.6vw, 2.2rem); line-height: 1.18; }
  .services > h2, .services__lede, .process__head, .faq__head, .visit__info h2, .visit address, .visit .link-arrow { text-align: center; }
  .services > h2, .services__lede, .process__head p, .faq__head h2 { margin-inline: auto; }
  .visit .link-arrow { display: flex; width: max-content; margin-inline: auto; }
  .visit .status { justify-content: center; }
}
@media (max-width: 380px) {
  .hero__title { font-size: 2rem; }
  .btn { padding-left: 20px; }
}

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