/* Code for Good — the homepage, built from the Figma "Homepage v2" prototype.
   Also the base for the other pages (privacy, 404), which add css/page.css. */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/inter-tight-variable.woff2') format('woff2-variations');
}

:root {
  /* Brand tokens (named for what they look like). */
  --ground: #1e1e1e;
  --ground-rgb: 30 30 30;
  --raised: #2c2c2c;
  --paper: #ffffff;
  --paper-rgb: 255 255 255;
  --muted: rgb(255 255 255 / 0.68);
  --faint: rgb(255 255 255 / 0.42);
  --hair: rgb(255 255 255 / 0.14);
  --ink: #17171d;
  --indigo: #2d2da8;
  --indigo-rgb: 45 45 168;
  --teal: #1f8c96;
  --teal-rgb: 31 140 150;
  --sky: #4da6ff;
  --sky-rgb: 77 166 255;
  --teal-light: #4ca3ab;
  --blend: linear-gradient(96deg, var(--sky), var(--teal-light));
  --brand-blend: linear-gradient(96deg, var(--indigo), var(--teal));

  --font-sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Type scale (from the Figma v2 styles). */
  --text-display: clamp(3rem, 6.2vw + 0.5rem, 6.5rem);
  --text-heading: clamp(2rem, 2.6vw + 1rem, 3.5rem);
  --text-statement: clamp(1.5rem, 1.4vw + 1rem, 2.5rem);
  --text-title: 1.5rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-micro: 0.75rem;

  /* One-off display sizes, named for where they are used. */
  --text-heading-big: clamp(2.5rem, 3.4vw + 1rem, 4.5rem);
  --text-lead: 1.125rem;
  --text-figure: 15rem;
  --text-tab: 1.75rem;
  --text-figure-ghost: 9rem;
  --text-tab-sm: 1.375rem;
  --text-figure-ghost-sm: 4.5rem;
  --text-pledge-figure: clamp(6rem, 11vw + 1rem, 11rem);
  --text-quote: clamp(1.375rem, 1vw + 1rem, 2.125rem);
  --text-question: clamp(1.25rem, 0.6vw + 1rem, 1.625rem);
  --text-footer: clamp(3rem, 6vw + 0.5rem, 6.5rem);
  --text-heading-panel: clamp(2.5rem, 3vw + 1rem, 4.5rem);
  --text-card-title: 1.625rem;
  --text-card-body: 0.9375rem;
  --text-hero-phone: clamp(2.6rem, 10.5vw, 3.4rem);
  --text-tab-xs: 1.25rem;
  --text-figure-ghost-xs: 3.5rem;
  --text-panel-title-phone: 1.75rem;
  --text-card-title-sm: 1.375rem;
  --text-quote-phone: 1.3rem;
  --text-question-phone: 1.15rem;
  --text-footer-phone: clamp(2.4rem, 10vw, 3rem);

  /* Rhythm (from the Figma spacing pass). */
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --page: 1200px;
  --section: clamp(64px, 7vw, 96px);
  --gap: clamp(40px, 5vw, 64px);

  /* Motion. --m scales amplitudes (Calm); home.js uses the same value. */
  --m: 0.6;
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --spring-soft: cubic-bezier(0.3, 1.2, 0.5, 1);
  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);

  color-scheme: dark;

  /* Colour channels, for the translucent versions of the colours above. */
  --shade-rgb: 0 0 0;
  --glass-rgb: 18 18 26;
  --teal-light-rgb: 76 163 171;
  --indigo-deep-rgb: 14 14 58;
  --night-rgb: 5 5 9;
  --silk-teal-rgb: 18 62 72;
  --silk-sky-rgb: 30 58 102;
  --silk-indigo-rgb: 23 23 90;
  --silk-teal-light-rgb: 26 58 64;
  --raised-rgb: 44 44 44;
  --veil-rgb: 20 20 32;
  --indigo-deep: #0e0e3a;
  --night-deep: #07070d;
  /* The dark arrival silk, deepest to lightest. */
  --silk-dark-1: #040408;
  --silk-dark-2: #0b0b1c;
  --silk-dark-3: #121214;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 12px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

.wrap { max-width: calc(var(--page) + var(--gutter) + var(--gutter-r)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: var(--section); position: relative; }
.split { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* Type */
.display { font-size: var(--text-display); font-weight: 300; line-height: 1; letter-spacing: -0.04em; }
.heading { font-size: var(--text-heading); line-height: 1.1; letter-spacing: -0.03em; }
.heading--big { font-size: var(--text-heading-big); line-height: 1.02; }
.statement { font-size: var(--text-statement); font-weight: 300; line-height: 1.25; letter-spacing: -0.02em; }
.label { font-size: var(--text-micro); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; color: var(--muted); padding-top: 0.6em; }
.label--light { color: var(--paper); }
.muted { color: var(--muted); }
.small { font-size: var(--text-small); }
.blend { font-style: normal; background: var(--blend); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Arrows: one drawn glyph, turned as needed */
.arrow {
  display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16h20M19 9l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16h20M19 9l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate 0.4s var(--spring);
}
.arrow--left { rotate: 180deg; }
.arrow--up { rotate: -90deg; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 600; font-size: var(--text-body);
  border-radius: 22px 27px 24px 19px;
  transition: border-radius 0.7s var(--spring), translate 0.45s var(--spring), scale 0.45s var(--spring), box-shadow 0.3s var(--ease), background-color 0.25s, color 0.25s;
}
.btn--primary { background: var(--sky); color: var(--ink); box-shadow: 0 8px 24px rgb(var(--sky-rgb) / 0.34); }
.btn--ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / 0.32); }
.btn--small { padding: 11px 18px; font-size: var(--text-small); }
@media (hover: hover) {
  .btn:hover { border-radius: 30px 16px 32px 15px; translate: 0 -2px; }
  .btn--primary:hover { box-shadow: 0 14px 34px rgb(var(--sky-rgb) / 0.5); }
  .btn--ghost:hover { background: var(--paper); color: var(--ink); }
  .btn:hover .arrow, .link:hover .arrow { translate: 4px 0; }
}
.btn:active { scale: 0.97; }
.link { font-weight: 600; text-decoration: none; background: var(--blend); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-flex; align-items: center; gap: 8px; }
.link .arrow { background: var(--teal-light); }

/* ---------------- Nav + brand ---------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  opacity: var(--nav-in, 0);
  translate: 0 calc((1 - var(--nav-in, 0)) * -16px);
  pointer-events: none;
}
html.is-docked .nav { pointer-events: auto; }
.nav-bar {
  max-width: var(--page); margin: 0 auto;
  display: flex; align-items: center; gap: 4px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgb(var(--glass-rgb) / 0.55); border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 30px rgb(var(--shade-rgb) / 0.25);
}
.nav-slot { width: 46px; aspect-ratio: 40 / 28; flex: none; }
.nav-name { margin-left: 10px; font-size: var(--text-lead); font-weight: 400; letter-spacing: -0.02em; color: var(--paper); white-space: nowrap; }
/* Phones: the mark and the button only — the name would crowd the button. */
@media (max-width: 760px) { .nav-name { display: none; } }
@media (max-width: 420px) { .nav-slot { width: 42px; } .nav-bar { padding-left: 14px; } .nav .btn { padding-inline: 14px; } }
.nav-links { margin-left: auto; display: flex; gap: 2px; }
.nav-links a { text-decoration: none; color: rgb(var(--paper-rgb) / 0.85); font-size: var(--text-small); padding: 10px 14px; border-radius: 999px; transition: background-color 0.25s, color 0.25s; }
@media (hover: hover) { .nav-links a:hover { background: rgb(var(--paper-rgb) / 0.07); color: var(--paper); } }
.nav .btn { margin-left: 6px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* The island: a glass pill centred over the page, sized to what it holds.
   Reading on (scrolling down), it draws in to just the mark and the button;
   scroll up, hover near the top or tab into it and it opens back out.
   home.js measures both widths and the links' and name's own widths in pixels
   (--nav-w-pill, --nav-w-island, --nav-links-w, --nav-name-w), so the bar
   always animates between two real numbers and can change course mid-way
   without a jump. The links stay pushed right by their auto margin; as the
   bar narrows, that margin is what gives, so nothing inside snaps. */
.nav-bar {
  --nav-ease: cubic-bezier(0.32, 0.72, 0, 1);
  width: var(--nav-w-pill, fit-content);
  transition: width 0.75s var(--nav-ease);
}
.nav-links, .nav-name {
  overflow: hidden; white-space: nowrap; flex-shrink: 0;
  transition: max-width 0.75s var(--nav-ease), opacity 0.35s var(--ease), margin-left 0.75s var(--nav-ease);
}
.nav-links { max-width: var(--nav-links-w, 460px); }
.nav-name { max-width: var(--nav-name-w, 160px); }
html.is-heading-down .nav:not(:focus-within) .nav-bar { width: var(--nav-w-island, fit-content); }
html.is-heading-down .nav:not(:focus-within) :is(.nav-links, .nav-name) { max-width: 0; opacity: 0; }
html.is-heading-down .nav:not(:focus-within) .nav-name { margin-left: 0; }
/* With a mouse, reaching for the nav opens it. Not on touch: a tap would
   leave it stuck open. */
@media (hover: hover) {
  html.is-heading-down .nav:hover .nav-bar { width: var(--nav-w-pill, fit-content); }
  html.is-heading-down .nav:hover :is(.nav-links, .nav-name) { opacity: 1; }
  html.is-heading-down .nav:hover .nav-links { max-width: var(--nav-links-w, 460px); }
  html.is-heading-down .nav:hover .nav-name { max-width: var(--nav-name-w, 160px); margin-left: 10px; }
}

.brand {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: var(--brand-w, 360px); aspect-ratio: 40 / 28;
  transform-origin: 0 0;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.brand-mark { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 50%; filter: drop-shadow(0 18px 40px rgb(var(--shade-rgb) / 0.3)); }

/* ---------------- Hero ---------------- */
.hero-track { position: relative; height: 100svh; min-height: 640px; }
.hero { position: sticky; top: 0; height: 100svh; min-height: 640px; overflow: hidden; display: flex; align-items: center; }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 72px; }
.hero-label { margin-bottom: 18px; }
.hero h1 { max-width: 18ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero h1 .line > span { display: inline-block; }
.hero-foot { margin-top: clamp(40px, 7vh, 88px); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 24px 48px; align-items: start; }
.hairline { grid-column: 1 / -1; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--paper-rgb) / 0.28) 20%, rgb(var(--paper-rgb) / 0.28) 80%, transparent); }
.hero-services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 48px; }
.hero-services .dup, .device.dup { display: none; }
.devices-track { display: contents; }
.hero-services li { font-size: var(--text-micro); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--paper-rgb) / 0.78); }
.hero-intro p { color: rgb(var(--paper-rgb) / 0.8); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 860px) { .hero-foot { grid-template-columns: minmax(0, 1fr); } }

/* Entry choreography: held back only while scripts run and the visitor hasn't entered yet. */
html.js:not(.is-entered) [data-enter] { opacity: 0; translate: 0 18px; }
html.js:not(.is-entered) .hero h1 .line > span { opacity: 1; translate: 0 110%; }
[data-enter] { transition: opacity 0.7s var(--ease), translate 1.1s var(--spring); }
html.is-entered [data-enter='0'] { transition-delay: 0.05s; }
html.is-entered [data-enter='1'] { transition-delay: 0.12s; }
html.is-entered [data-enter='2'] { transition-delay: 0.22s; }
html.is-entered [data-enter='3'] { transition-delay: 0.34s; }
html.is-entered [data-enter='4'] { transition-delay: 0.44s; }

.scroll-cue {
  position: absolute; left: 50%; bottom: calc(32px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; color: rgb(var(--paper-rgb) / 0.72); cursor: pointer;
  font: inherit; font-size: var(--text-micro); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: calc(1 - var(--p, 0) * 3);
}
.scroll-cue svg { width: 18px; height: 26px; }
.scroll-dot { animation: scroll-dot 2.2s var(--ease) infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80%, 100% { transform: translateY(10px); opacity: 0; } }
html:not(.is-landing) .scroll-cue { pointer-events: none; }

/* ---------------- Silk ---------------- */
.silk { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: var(--night-deep); }
/* The hero's silk melts into the ground the next section sits on, rather than
   stopping at a line: full strength behind the headline, fading through the
   lower part of the hero to nothing at its edge. */
.silk--hero {
  -webkit-mask-image: linear-gradient(180deg, rgb(var(--shade-rgb)) 0%, rgb(var(--shade-rgb)) 58%, rgb(var(--shade-rgb) / 0.55) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, rgb(var(--shade-rgb)) 0%, rgb(var(--shade-rgb)) 58%, rgb(var(--shade-rgb) / 0.55) 80%, transparent 100%);
}
.hero { background: var(--ground); }
/* Built from the Figma "v2/Silk" layers: same base gradient (155deg, stops
   mapped from Figma's gradient transform), the same five pools at Figma's
   positions, sizes and angles (Figma turns the other way, about the corner),
   blur matched to Figma's radii, and a faint sheen top and bottom (tuned by
   sampling Figma's render). */
.silk-tone { position: absolute; inset: 0; }
.silk-tone--colour { opacity: var(--p, 0); }
.silk--contact .silk-tone--colour { opacity: 1; }
.silk-tone--dark { background: linear-gradient(155deg, var(--silk-dark-1) 7.1%, var(--silk-dark-2) 42.9%, var(--silk-dark-3) 78.6%); }
.silk-tone--colour { background: linear-gradient(155deg, var(--indigo-deep) 7.1%, var(--indigo) 39.3%, var(--ground) 78.6%); }
.silk-tone::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(var(--paper-rgb) / 0.06), rgb(var(--paper-rgb) / 0) 50%, rgb(var(--paper-rgb) / 0.06));
}
.silk-tone i {
  position: absolute; display: block; border-radius: 50%;
  transform-origin: 0 0;
  filter: blur(var(--b));
  animation: drift var(--d, 28s) var(--ease) infinite alternate;
  will-change: transform;
}
.silk-tone i:nth-child(1) { left: 36.11%; top: -28.89%; width: 90.28%; height: 57.78%; rotate: 18deg; --b: 2.08vw; --d: 26s; }
.silk-tone i:nth-child(2) { left: 52.78%; top: 8.89%; width: 62.5%; height: 26.67%; rotate: 22deg; --b: 1.39vw; --d: 31s; }
.silk-tone i:nth-child(3) { left: -20.83%; top: 33.33%; width: 83.33%; height: 77.78%; rotate: 12deg; --b: 2.78vw; --d: 37s; }
.silk-tone i:nth-child(4) { left: 20.83%; top: 57.78%; width: 76.39%; height: 33.33%; rotate: 20deg; --b: 2.43vw; --d: 29s; }
.silk-tone i:nth-child(5) { left: -13.89%; top: 71.11%; width: 131.94%; height: 55.56%; rotate: 6deg; --b: 2.08vw; --d: 41s; }
.silk-tone--dark i:nth-child(1) { background: radial-gradient(closest-side, rgb(var(--silk-teal-rgb) / 0.55), rgb(var(--silk-teal-rgb) / 0.25) 55%, transparent); }
.silk-tone--dark i:nth-child(2) { background: radial-gradient(closest-side, rgb(var(--silk-sky-rgb) / 0.32), rgb(var(--silk-sky-rgb) / 0.14) 55%, transparent); }
.silk-tone--dark i:nth-child(3) { background: radial-gradient(closest-side, rgb(var(--silk-indigo-rgb) / 0.7), rgb(var(--silk-indigo-rgb) / 0.32) 55%, transparent); }
.silk-tone--dark i:nth-child(4) { background: radial-gradient(closest-side, rgb(var(--silk-teal-light-rgb) / 0.25), rgb(var(--silk-teal-light-rgb) / 0.11) 55%, transparent); }
.silk-tone--dark i:nth-child(5) { background: radial-gradient(closest-side, rgb(var(--night-rgb) / 0.95), rgb(var(--night-rgb) / 0.43) 55%, transparent); }
.silk-tone--colour i:nth-child(1) { background: radial-gradient(closest-side, rgb(var(--teal-rgb) / 0.85), rgb(var(--teal-rgb) / 0.38) 55%, transparent); }
.silk-tone--colour i:nth-child(2) { background: radial-gradient(closest-side, rgb(var(--sky-rgb) / 0.55), rgb(var(--sky-rgb) / 0.25) 55%, transparent); }
.silk-tone--colour i:nth-child(3) { background: radial-gradient(closest-side, rgb(var(--indigo-rgb) / 0.9), rgb(var(--indigo-rgb) / 0.41) 55%, transparent); }
.silk-tone--colour i:nth-child(4) { background: radial-gradient(closest-side, rgb(var(--teal-light-rgb) / 0.35), rgb(var(--teal-light-rgb) / 0.16) 55%, transparent); }
.silk-tone--colour i:nth-child(5) { background: radial-gradient(closest-side, rgb(var(--indigo-deep-rgb) / 0.9), rgb(var(--indigo-deep-rgb) / 0.41) 55%, transparent); }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(calc(var(--m) * 4%), calc(var(--m) * -3%)) rotate(calc(var(--m) * 4deg)) scale(1.04); }
  100% { transform: translate(calc(var(--m) * -3%), calc(var(--m) * 4%)) rotate(calc(var(--m) * -3deg)) scale(0.98); }
}

/* ---------------- Reveal on arrival ---------------- */
html.js [data-reveal] { opacity: 0; translate: 0 calc(var(--m) * 40px); transition: opacity 0.9s var(--ease), translate 1.2s var(--spring-soft); }
html.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------------- Services ---------------- */
.services-head { padding-bottom: var(--gap); }
.svc {
  display: flex; height: 600px; counter-reset: svc;
  border-block: 1px solid var(--hair);
  background: var(--ground);
}
.svc-panel {
  counter-increment: svc;
  position: relative; overflow: hidden; flex: 1 1 0; min-width: 0;
  border-right: 1px solid var(--hair);
  background: rgb(var(--paper-rgb) / 0.025);
  transition: flex-grow 0.95s var(--spring-soft), background-color 0.5s var(--ease);
}
.svc-panel:last-child { border-right: 0; }
.svc-panel[data-open='true'] { flex-grow: 3.9; background: var(--raised); }
@media (hover: hover) { .svc-panel:not([data-open='true']):hover { flex-grow: 1.25; background: rgb(var(--paper-rgb) / 0.05); } }
.svc-hit { position: absolute; inset: 0; z-index: 3; background: none; border: 0; cursor: pointer; }
.svc-panel[data-open='true'] .svc-hit { cursor: default; }
.svc-glow { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.svc-panel[data-open='true'] .svc-glow { opacity: 1; }
.svc-glow i { position: absolute; border-radius: 50%; filter: blur(50px); animation: drift 22s var(--ease) infinite alternate; }
.svc-glow i:nth-child(1) { width: 700px; height: 560px; left: -160px; top: -180px; background: radial-gradient(closest-side, rgb(var(--indigo-rgb) / 0.7), transparent); }
.svc-glow i:nth-child(2) { width: 620px; height: 460px; left: 420px; top: 300px; background: radial-gradient(closest-side, rgb(var(--sky-rgb) / 0.32), transparent); animation-duration: 27s; }
.svc-glow i:nth-child(3) { width: 520px; height: 420px; left: 220px; top: 120px; background: radial-gradient(closest-side, rgb(var(--teal-rgb) / 0.3), transparent); animation-duration: 31s; }
.svc-num {
  position: absolute; left: 50%; bottom: -40px; translate: -50% 0;
  writing-mode: vertical-rl; rotate: 180deg;
  font-size: var(--text-figure); font-weight: 300; line-height: 1; letter-spacing: -0.04em;
  color: rgb(var(--paper-rgb) / 0.05);
  transition: opacity 0.5s var(--ease);
}
.svc-icon {
  position: absolute; top: 40px; left: calc(50% - 16px); width: 32px; height: 32px; z-index: 2;
  fill: none; stroke: var(--paper); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: left 0.95s var(--spring-soft);
}
.svc-panel[data-open='true'] .svc-icon { left: calc(100% - 76px); top: 48px; }
.svc-vname {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap;
  font-size: var(--text-tab); font-weight: 300; letter-spacing: -0.01em;
  transition: opacity 0.4s var(--ease) 0.2s;
}
.svc-panel[data-open='true'] .svc-vname, .svc-panel[data-open='true'] .svc-num { opacity: 0; transition-delay: 0s; }
.svc-body {
  position: absolute; left: 44px; top: 36px; z-index: 2; width: min(600px, calc(100% - 88px));
  opacity: 0; translate: 0 24px; pointer-events: none;
  transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
}
.svc-panel[data-open='true'] .svc-body { opacity: 1; translate: 0 0; pointer-events: auto; transition: opacity 0.7s var(--ease) 0.3s, translate 1s var(--spring) 0.3s; }
.svc-body::before {
  content: '0' counter(svc); display: block; margin-bottom: 40px;
  font-size: var(--text-figure-ghost); font-weight: 300; line-height: 0.9; letter-spacing: -0.05em;
  background: var(--blend); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc-body h3 { font-size: var(--text-heading); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; }
.svc-body p { color: var(--muted); max-width: 56ch; }
.tags { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: var(--text-small); font-weight: 600; color: var(--muted); padding: 7px 15px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / 0.2); }
@media (max-width: 820px) {
  .svc { flex-direction: column; height: auto; }
  .svc-panel { flex: none; min-height: 84px; border-right: 0; border-bottom: 1px solid var(--hair); }
  .svc-panel[data-open='true'] { min-height: 0; }
  .svc-num { display: none; }
  .svc-vname { writing-mode: horizontal-tb; rotate: none; left: 24px; translate: 0 -50%; font-size: var(--text-tab-sm); }
  .svc-icon, .svc-panel[data-open='true'] .svc-icon { left: auto; right: 24px; top: 26px; }
  .svc-body { position: relative; left: auto; top: auto; width: auto; padding: 28px 24px 36px; display: none; }
  .svc-panel[data-open='true'] .svc-body { display: block; }
  .svc-body::before { font-size: var(--text-figure-ghost-sm); margin-bottom: 20px; }
}
.audit-offer { padding-block: 48px var(--section); color: var(--muted); }

/* ---------------- Pledge ---------------- */
.pledge { position: relative; padding-block: calc(var(--section) + 40px); overflow: hidden; }
.pledge .split { align-items: start; position: relative; z-index: 1; }
.pledge-side { display: grid; gap: 28px; }
.pledge-side img { width: 200px; height: auto; }
.wave { position: absolute; left: 0; width: 100%; height: 72px; z-index: 0; }
.wave path { fill: none; stroke: rgb(var(--paper-rgb) / 0.22); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.wave { -webkit-mask-image: linear-gradient(90deg, transparent, rgb(var(--shade-rgb)) 18%, rgb(var(--shade-rgb)) 82%, transparent); mask-image: linear-gradient(90deg, transparent, rgb(var(--shade-rgb)) 18%, rgb(var(--shade-rgb)) 82%, transparent); }
.pledge-main { display: grid; gap: 12px; }
.pledge-figure {
  font-size: var(--text-pledge-figure); font-weight: 200; line-height: 0.85; letter-spacing: -0.06em;
  background: linear-gradient(96deg, var(--sky), var(--teal-light), var(--indigo), var(--sky)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pledge-flow calc(18s / var(--m)) linear infinite;
}
@keyframes pledge-flow { to { background-position: 300% 0; } }
.wave--top { top: -1px; }
.wave--bottom { bottom: -1px; }

/* ---------------- Work ---------------- */
.work { margin-top: var(--gap); }
.devices {
  position: relative; aspect-ratio: 1200 / 440; max-width: 100%;
  --px: 0; --py: 0;
}
.device { position: absolute; bottom: 9%; margin: 0; }
.device img { width: 100%; height: auto; }
.device--phone { left: 2.5%; width: 12.5%; --depth: 1.6; }
.device--laptop { left: 18.3%; width: 58.3%; --depth: 0.6; }
.device--tablet { left: 80%; width: 17.5%; --depth: 1.2; }
.device img { translate: calc(var(--px) * var(--depth) * var(--m) * 14px) calc(var(--py) * var(--depth) * var(--m) * 8px); }
.device--phone img, .device--tablet img { filter: drop-shadow(0 26px 30px rgb(var(--shade-rgb) / 0.5)); }
.work-foot { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.work-copy { display: grid; gap: 8px; max-width: 640px; }
.work-meta { display: flex; gap: 14px; font-size: var(--text-micro); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.work-count { color: var(--sky); }
.work-sector { color: var(--teal-light); }
.work-name { font-size: var(--text-statement); letter-spacing: -0.02em; line-height: 1.2; }
.work-lede { color: var(--muted); }
.controls { display: flex; align-items: center; gap: 12px; }
.dots { display: flex; gap: 6px; padding-right: 12px; align-items: center; }
.dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgb(var(--paper-rgb) / 0.3); cursor: pointer; transition: width 0.6s var(--spring), background-color 0.3s; position: relative; overflow: hidden; }
.dot.is-active { width: 24px; background: rgb(var(--sky-rgb) / 0.35); }
.dots:not(.dots--timed) .dot.is-active { background: var(--sky); }
.dot i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sky); }
.dots--timed .dot.is-active i { animation: fill-dot var(--review-ms, 7000ms) linear forwards; }
.dots--timed.is-paused .dot.is-active i { animation-play-state: paused; }
@keyframes fill-dot { to { width: 100%; } }
.round {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / 0.3);
  transition: background-color 0.25s, color 0.25s, scale 0.4s var(--spring);
}
@media (hover: hover) { .round:hover { background: var(--paper); color: var(--ink); } }
.round:active { scale: 0.92; }

/* ---------------- Reviews ---------------- */
.reviews { margin-top: var(--gap); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); grid-template-areas: 'stage phone' 'controls phone'; gap: 32px 64px; align-items: center; }
.review-stage { grid-area: stage; display: grid; }
/* Both reviews share one grid cell, so each is as tall as the longest. The
   byline is pushed to the bottom of that cell, so it sits in the same place
   whichever review is showing; only the quote above it varies. */
.review { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; opacity: 0; translate: 0 24px; transition: opacity 0.6s var(--ease), translate 0.9s var(--spring-soft); pointer-events: none; }
.review.is-active { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: 0.15s; }
.review blockquote { margin: 0; font-size: var(--text-quote); font-weight: 300; line-height: 1.3; letter-spacing: -0.015em; }
.review figcaption { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.review figcaption strong { display: block; font-weight: 400; }
.review figcaption small { display: block; font-size: var(--text-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-light); margin-top: 2px; }
.stars { color: var(--sky); letter-spacing: 0.1em; }
.review-controls { grid-area: controls; }
.review-phone { grid-area: phone; position: relative; justify-self: center; width: min(220px, 60vw); animation: bob 7s var(--ease) infinite alternate; }
.review-phone img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 362 / 716; object-fit: contain; rotate: -6deg; filter: drop-shadow(0 30px 40px rgb(var(--shade-rgb) / 0.55)); transition: opacity 0.45s var(--ease), translate 0.6s var(--spring); }
.review-phone img.is-swapping { opacity: 0; translate: 0 20px; }
.review-glow { position: absolute; width: 200%; aspect-ratio: 1; left: -50%; top: 50%; translate: 0 -50%; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--teal-rgb) / 0.7), transparent); filter: blur(30px); }
@keyframes bob { from { translate: 0 calc(var(--m) * -10px); } to { translate: 0 calc(var(--m) * 10px); } }
@media (max-width: 860px) { .reviews { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'phone' 'stage' 'controls'; } }

/* ---------------- Questions ---------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 24px; align-items: start; }
.faq-grid .heading { margin-top: 20px; max-width: 12ch; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.q { border-bottom: 1px solid var(--hair); border-radius: 0; transition: background-color 0.6s var(--ease), border-radius 0.7s var(--spring), padding 0.6s var(--spring-soft), border-color 0.4s; padding: 4px 28px; }
.q.is-open {
  border-color: transparent;
  border-radius: 32px 20px 32px 20px;
  padding: 8px 28px;
  background: linear-gradient(115deg, rgb(var(--indigo-rgb) / 0.55), rgb(var(--teal-rgb) / 0.28) 60%, rgb(var(--raised-rgb) / 0.6));
}
.q summary { list-style: none; display: flex; align-items: center; gap: 24px; padding-block: 24px; cursor: pointer; font-size: var(--text-question); font-weight: 300; line-height: 1.3; }
.q summary::-webkit-details-marker { display: none; }
.q summary span { flex: 1; }
.ring {
  flex: none; position: relative; width: 48px; height: 48px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / 0.3);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s;
}
.ring::before, .ring::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; margin: -0.8px 0 0 -8px; border-radius: 1px; background: var(--paper); transition: background-color 0.3s, transform 0.55s var(--spring); }
.ring::after { transform: rotate(90deg); }
.q.is-open .ring { background: var(--sky); box-shadow: none; }
.q.is-open .ring::after { transform: rotate(90deg) scaleX(0); }
.q.is-open .ring::before, .q.is-open .ring::after { background: var(--ink); }
@media (hover: hover) { .q:not(.is-open) summary:hover .ring { background: rgb(var(--paper-rgb) / 0.08); } }
.a { overflow: hidden; }
.a p { color: var(--muted); padding-bottom: 28px; max-width: 64ch; }
.ask { margin-top: 36px; color: var(--muted); }

/* ---------------- Contact ---------------- */
.contact { overflow: visible; padding-block: calc(var(--section) + 32px); }
/* The contact silk reaches 180px past the section at both ends, under its
   neighbours, and fades in and out along an eased curve: the colour rises out
   of the ground and sinks back into it, with no line where it starts. */
.silk.silk--contact {
  inset: -180px 0; z-index: -1; background: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgb(var(--shade-rgb) / 0.04) 6%, rgb(var(--shade-rgb) / 0.15) 12%, rgb(var(--shade-rgb) / 0.33) 18%, rgb(var(--shade-rgb) / 0.55) 24%, rgb(var(--shade-rgb) / 0.78) 30%, rgb(var(--shade-rgb) / 0.93) 36%, rgb(var(--shade-rgb)) 42%, rgb(var(--shade-rgb)) 58%, rgb(var(--shade-rgb) / 0.93) 64%, rgb(var(--shade-rgb) / 0.78) 70%, rgb(var(--shade-rgb) / 0.55) 76%, rgb(var(--shade-rgb) / 0.33) 82%, rgb(var(--shade-rgb) / 0.15) 88%, rgb(var(--shade-rgb) / 0.04) 94%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgb(var(--shade-rgb) / 0.04) 6%, rgb(var(--shade-rgb) / 0.15) 12%, rgb(var(--shade-rgb) / 0.33) 18%, rgb(var(--shade-rgb) / 0.55) 24%, rgb(var(--shade-rgb) / 0.78) 30%, rgb(var(--shade-rgb) / 0.93) 36%, rgb(var(--shade-rgb)) 42%, rgb(var(--shade-rgb)) 58%, rgb(var(--shade-rgb) / 0.93) 64%, rgb(var(--shade-rgb) / 0.78) 70%, rgb(var(--shade-rgb) / 0.55) 76%, rgb(var(--shade-rgb) / 0.33) 82%, rgb(var(--shade-rgb) / 0.15) 88%, rgb(var(--shade-rgb) / 0.04) 94%, transparent 100%);
}
/* A light dim behind the copy; the ends are left to the silk's own fade. */
.contact::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 30% 50%, rgb(var(--ground-rgb) / 0.25), rgb(var(--ground-rgb) / 0) 100%); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 64px 80px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-grid .heading { margin: 20px 0 24px; }
.mail { margin-top: 24px; font-weight: 600; font-size: var(--text-lead); background: var(--blend); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: all; width: fit-content; }
.glass {
  background: rgb(var(--veil-rgb) / 0.45); border: 1px solid rgb(var(--paper-rgb) / 0.16);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  border-radius: 36px 22px 36px 22px;
}
.form { padding: 40px; display: grid; gap: 28px; }
.pills { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field.field--select { display: none; }
.field select {
  font: inherit; color: var(--paper); background-color: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid rgb(var(--paper-rgb) / 0.25); padding: 8px 32px 12px 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 18px;
  transition: border-color 0.3s var(--ease);
}
.field select:focus { outline: none; border-bottom-color: var(--sky); }
.field select:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }
.field select option { background: var(--ground); color: var(--paper); }
.pills legend { float: left; margin-right: 8px; font-size: var(--text-small); color: var(--muted); }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills span { display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: var(--text-small); font-weight: 500; box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / 0.25); transition: background-color 0.3s var(--ease), color 0.3s, box-shadow 0.3s, scale 0.4s var(--spring); }
.pills input:checked + span { background: var(--sky); color: var(--ink); box-shadow: none; }
.pills input:active + span { scale: 0.95; }
.pills input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 3px; }
.field { display: grid; gap: 4px; }
.field span { font-size: var(--text-small); color: var(--faint); }
.field input, .field textarea {
  font: inherit; color: var(--paper); background: transparent; border: 0; border-bottom: 1px solid rgb(var(--paper-rgb) / 0.25);
  padding: 8px 0 12px; border-radius: 0; resize: vertical;
  background-image: var(--blend); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.6s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; background-size: 100% 1px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* ---------------- Footer ---------------- */
.footer { position: relative; padding-block: var(--section) 48px; overflow: hidden; }
.footer .wrap { position: relative; display: grid; gap: var(--gap); }
.footer-statement { font-size: var(--text-footer); line-height: 0.98; max-width: 17ch; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; padding-top: 32px; position: relative; }
.footer-row::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--paper-rgb) / 0.2) 15%, rgb(var(--paper-rgb) / 0.2) 85%, transparent); }
.footer-row .mail { margin: 0; }
.footer-mark { display: block; line-height: 0; }
.footer-mark img { width: 190px; height: auto; display: block; }
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: var(--text-small); transition: color 0.25s; }
@media (hover: hover) { .footer-links a:hover { color: var(--paper); } }
.small-print { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--text-small); color: var(--muted); }

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html.js [data-reveal] { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Cursor light ---------------- */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--glow-rgb, 77 166 255) / var(--glow-a, 0.14)), rgb(var(--glow-rgb, 77 166 255) / calc(var(--glow-a, 0.14) * 0.35)) 45%, transparent);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity 0.6s var(--ease);
  will-change: transform;
}
html.is-docked .cursor-glow.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

/* ---------------- Why us: reasons flow left to right beneath a fixed panel ---------------- */
.why { position: relative; padding-block: var(--section); --panel-w: max(calc(var(--gutter) + 380px), calc((100vw - var(--page)) / 2 + 380px)); }
.why-panel {
  position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: var(--panel-w);
  display: flex; align-items: center;
  background: linear-gradient(90deg, var(--ground) 0%, var(--ground) 78%, rgb(var(--ground-rgb) / 0));
  pointer-events: none;
}
.why-panel-inner { padding-left: max(var(--gutter), calc((100vw - var(--page)) / 2)); padding-right: 80px; pointer-events: auto; }
.why-panel .heading { margin-top: 16px; font-size: var(--text-heading-panel); }
.why-viewport {
  position: relative; overflow: hidden; padding-block: 12px;
  -webkit-mask-image: linear-gradient(90deg, rgb(var(--shade-rgb)) 88%, transparent);
  mask-image: linear-gradient(90deg, rgb(var(--shade-rgb)) 88%, transparent);
}
.why-viewport { cursor: grab; touch-action: pan-y; }
.why-viewport.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.why-viewport.is-dragging .why-card { translate: 0 0; }
.why-track {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; width: max-content;
  will-change: transform;
}
.why-track img { -webkit-user-drag: none; user-select: none; }
.why-card {
  width: 420px; flex: none; display: flex; flex-direction: column; gap: 14px;
  padding: 36px; min-height: 280px;
  background: rgb(var(--paper-rgb) / 0.03); box-shadow: inset 0 0 0 1px var(--hair);
  border-radius: 36px 22px 36px 22px;
  transition: background-color 0.5s var(--ease), translate 0.6s var(--spring);
}
@media (hover: hover) { .why-card:hover { background: rgb(var(--paper-rgb) / 0.06); translate: 0 -6px; } }
.why-card h3 { font-size: var(--text-card-title); line-height: 1.2; letter-spacing: -0.015em; }
.why-card p { color: var(--muted); font-size: var(--text-card-body); }
.why-partner { margin-top: auto; padding-top: 8px; }
.why-partner img { width: 150px; }
@media (max-width: 860px) {
  .why-panel { position: relative; width: auto; background: none; display: block; margin-bottom: 32px; }
  .why-panel-inner { padding-right: var(--gutter-r); }
  .why-card { width: 300px; padding: 28px; min-height: 0; }
}

/* ================= Phones ================= */
@keyframes strip-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 760px) {
  :root { --section: 56px; --gap: 28px; }

  /* Hero: start under the bar rather than centring into it */
  /* Centre the content in the space below the bar, so the gap above it (to the
     bar) and below it (to the bottom of the screen) are equal. */
  .hero { align-items: center; padding-top: var(--nav-bottom, calc(84px + env(safe-area-inset-top, 0px))); }
  .hero-inner { padding-top: 0; padding-bottom: 0; }
  .hero h1 { font-size: var(--text-hero-phone); }
  .hero-foot { margin-top: 36px; gap: 20px; }
  /* The four services drift by in one line */
  .hero-services-wrap {
    overflow: hidden; margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r));
    -webkit-mask-image: linear-gradient(90deg, transparent, rgb(var(--shade-rgb)) 12%, rgb(var(--shade-rgb)) 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, rgb(var(--shade-rgb)) 12%, rgb(var(--shade-rgb)) 88%, transparent);
  }
  .hero-services { flex-wrap: nowrap; gap: 0; width: max-content; animation: strip-right calc(26s / var(--m)) linear infinite; }
  .hero-services li { padding-right: 40px; white-space: nowrap; }
  .hero-services .dup { display: list-item; }
  .actions { margin-top: 20px; }

  /* Services */
  .services-head { padding-bottom: 28px; }
  .svc-panel { min-height: 64px; }
  .svc-vname { font-size: var(--text-tab-xs); }
  .svc-icon, .svc-panel[data-open='true'] .svc-icon { top: 20px; width: 26px; height: 26px; }
  .svc-body { padding: 24px 20px 28px; }
  .svc-body::before { font-size: var(--text-figure-ghost-xs); margin-bottom: 12px; }
  .svc-body h3 { font-size: var(--text-panel-title-phone); margin-bottom: 12px; }
  .tags { margin: 18px 0; }
  .audit-offer { padding-block: 28px var(--section); }

  /* Why us: one card in view, the next just peeking */
  .why-panel { margin-bottom: 20px; }
  .why-card { width: 80vw; padding: 26px; }
  .why-card h3 { font-size: var(--text-card-title-sm); }

  /* Recent work: one project at a time, swiped */
  .work { margin-top: 24px; }
  .devices, .work-foot { display: none; }
  .work-cards, .work-cards-controls { display: flex; }

  /* Reviews: no phone image on phones */
  .reviews { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'controls'; gap: 20px; margin-top: 24px; }
  .review-phone { display: none; }
  .review blockquote { font-size: var(--text-quote-phone); }
  .review figcaption { padding-top: 18px; }

  /* Questions */
  .faq-grid { gap: 20px; }
  .faq-grid .heading { margin-top: 12px; }
  .q { padding: 2px 16px; }
  .q.is-open { padding: 6px 16px; border-radius: 26px 16px 26px 16px; }
  .q summary { font-size: var(--text-question-phone); padding-block: 18px; gap: 16px; }
  .ring { width: 40px; height: 40px; }
  .a p { padding-bottom: 20px; }
  .ask { margin-top: 24px; }

  /* Contact */
  .contact { padding-block: var(--section); }
  .contact-grid { gap: 32px; }
  .contact-grid .heading { margin: 12px 0 16px; }
  .form { padding: 24px; gap: 20px; }
  .pills { display: none; }
  .field.field--select { display: grid; }

  /* Footer */
  .footer { padding-block: var(--section) 32px; }
  .footer .wrap { gap: 28px; }
  .footer-statement { font-size: var(--text-footer-phone); }
  .footer-row { gap: 16px 24px; padding-top: 24px; }
  .footer-links { margin-left: 0; gap: 16px; }
}
/* Short phones: not enough room to centre, so sit just under the bar instead. */
@media (max-width: 760px) and (max-height: 700px) {
  .hero { align-items: flex-start; }
  .hero-inner { padding-top: 28px; padding-bottom: 28px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .hero-services, .devices-track { animation: none; }
  .hero-services-wrap, .devices { overflow-x: auto; }
}

/* ---------------- Recent work as cards (phones) ---------------- */
@media (min-width: 761px) { .work-cards, .work-cards-controls { display: none; } }
.work-cards {
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r));
  /* Centre each card so its neighbours peek in equally on both sides. */
  --card-w: min(78vw, 420px);
  padding: 4px calc((100vw - var(--card-w)) / 2) 8px;
  scrollbar-width: none;
}
.work-cards::-webkit-scrollbar { display: none; }
.work-card {
  flex: none; width: var(--card-w); scroll-snap-align: center;
  display: grid; gap: 8px; align-content: start;
  transition: opacity 0.5s var(--ease), scale 0.6s var(--spring-soft);
}
.work-card:not(.is-current) { opacity: 0.45; scale: 0.96; }
/* The device cluster: phone top left, tablet top right, laptop in
   front across the bottom, on a square stage. */
.work-shot { position: relative; aspect-ratio: 1 / 1; max-width: 100%; margin-bottom: 4px; }
.work-shot::before {
  content: ''; position: absolute; inset: 8% 0 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--indigo-rgb) / 0.4), transparent);
  filter: blur(24px);
}
.ws {
  position: absolute; height: auto;
  filter: drop-shadow(0 18px 34px rgb(var(--shade-rgb) / 0.5));
  transition: opacity 0.55s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 0.09s);
}
.ws--phone  { left: 7%;  top: 10%; width: 24%; }
.ws--tablet { left: 56%; top: 2%;  width: 38%; }
.ws--laptop { left: 6%;  top: 52%; width: 88%; z-index: 1; }
/* Each device settles in, one after another, when its
   project comes into focus. */
.work-card:not(.is-current) .ws { opacity: 0.6; transition-delay: 0s; }
.work-card:not(.is-current) .ws--laptop { transform: translateY(1.5rem) scale(0.985); }
.work-card:not(.is-current) .ws--tablet { transform: translate(0.9rem, 1.1rem) scale(0.97) rotate(1.2deg); }
.work-card:not(.is-current) .ws--phone  { transform: translate(-0.9rem, 1.1rem) scale(0.97) rotate(-1.5deg); }
.work-card .work-name { font-size: var(--text-title); }
.work-card .work-lede { font-size: var(--text-card-body); }
.work-cards-controls { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .work-card:not(.is-current) { scale: 1; } }

/* ---------------- Services on phones: a quiet fade as a panel opens ---------------- */
@keyframes svc-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) {
  .svc-panel[data-open='true'] .svc-body { animation: svc-fade-in 0.5s var(--ease) 0.12s both; }
}
