/* May & Co. — studio site
   Sibling of the joelmay.co.uk build. Light serif headlines, a floating pill nav and a
   near-monochrome palette (after unitedus.co.uk); a bold Inter Tight wordmark and one red
   accent (after joelmay.co.uk). Apple-style springs with reduced-motion fallbacks. */

:root {
  --bg: #f3f2ef;
  --bg-elev: #ffffff;
  --ink: #0b0d10;
  --ink-2: #5c5f64;
  --rule: rgba(11, 13, 16, 0.14);
  --accent: #c4321a;
  --accent-ink: #ffffff;
  --material: rgba(255, 255, 255, 0.82);
  --stage: #0b0d10;

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Inter Tight", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-amp: "Playfair Display", Georgia, serif; /* only the ampersand in the wordmark */
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(12px, 1.6vw, 24px);
  --maxw: 1520px;
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;

  /* Critically damped spring (damping 1.0, response 0.45s) sampled into CSS */
  --spring: linear(0, 0.0484, 0.1552, 0.2816, 0.4069, 0.5207, 0.6189, 0.7009,
    0.7676, 0.821, 0.8631, 0.8959, 0.9213, 0.9408, 0.9556, 0.9668, 0.9753,
    0.9816, 0.9864, 0.9899, 0.9926, 0.9945, 0.996, 0.9971, 1);
  --spring-dur: 600ms;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --bg-elev: #15181c;
    --ink: #f3f2ef;
    --ink-2: #a3a6ab;
    --rule: rgba(243, 242, 239, 0.16);
    --accent: #ff5a3c;
    --accent-ink: #0b0d10;
    --material: rgba(21, 24, 28, 0.82);
    --stage: #15181c;
  }
}

@media (prefers-contrast: more) {
  :root { --ink-2: var(--ink); --rule: currentColor; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.display-xl, .display-l, .display-m {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}
.display-xl em, .display-l em, .display-m em { font-style: italic; }
.display-xl {
  font-size: clamp(3.5rem, 12.5vw, 8.75rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.display-xl em { color: var(--accent); }
.display-l {
  font-size: clamp(2.75rem, 7.6vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.display-m {
  font-size: clamp(2.125rem, 4vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.lede {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  line-height: 1.25;
}
.label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.num { color: var(--accent); margin-right: 0.75em; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }

/* The wordmark, set in type so it stays sharp at any size: bold Inter Tight capitals with
   the italic Playfair ampersand carried over from the original May & Co. logo */
.logo {
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: -0.015em; /* any tighter and M and A touch at this weight */
  text-transform: uppercase;
  white-space: nowrap;
}
/* Optically kerned: the ampersand tucks under the Y's arm, clears the C, sits at cap height
   and dips just below the baseline like the original logo */
.logo i {
  font-family: var(--font-amp); font-style: italic; font-weight: 700;
  font-size: 1.04em; line-height: 0; letter-spacing: 0; text-transform: none;
  margin: 0 0.09em 0 -0.02em; vertical-align: -0.03em;
}

/* ---------- Buttons & links ---------- */

.pill {
  --pill-bg: transparent;
  --pill-fg: var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--pill-bg); color: var(--pill-fg);
  font-family: var(--font-ui); font-weight: 600; font-size: 0.9375rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 100ms ease-out, background-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.pill--accent { --pill-bg: var(--accent); --pill-fg: var(--accent-ink); border-color: var(--accent); }
.pill--plain { padding-right: 22px; }
.pill-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: transform var(--spring-dur) var(--spring);
}
.pill-icon svg { width: 14px; height: 14px; }
/* Feedback on press, not release */
.pill:active, .link-arrow:active { transform: scale(0.97); }
@media (hover: hover) {
  .pill:hover .pill-icon { transform: rotate(45deg); }
  .pill:not(.pill--accent):hover { --pill-bg: var(--ink); --pill-fg: var(--bg); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--rule);
  transition: border-color 200ms ease, transform 100ms ease-out;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--spring-dur) var(--spring); }
@media (hover: hover) {
  .link-arrow:hover { border-color: var(--ink); }
  .link-arrow:hover svg { transform: translate(3px, -3px); }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header: a floating pill (after unitedus.co.uk) ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  padding: 12px var(--gutter) 0;
  pointer-events: none; /* only the pill itself takes clicks */
}
.site-header .wrap {
  pointer-events: auto;
  height: 56px; max-width: var(--maxw);
  padding: 0 8px 0 20px;
  border-radius: 16px;
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  transition: box-shadow 300ms ease;
}
.is-scrolled .site-header .wrap { box-shadow: 0 0 0 1px var(--rule), 0 12px 32px -14px rgba(0, 0, 0, 0.3); }
.wordmark {
  font-size: 1.25rem;
  text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links { display: none; align-items: center; gap: 2px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 12px;
  font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
}
.nav-links .nav-cta {
  margin-left: 10px; padding: 0 18px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.nav-links .nav-cta:active { transform: scale(0.97); }
.clock { font-variant-numeric: tabular-nums; }

.menu-button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 8px 0 14px;
  border: 0; background: none; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 600;
}
.menu-button .bars { display: grid; gap: 5px; width: 20px; }
.menu-button .bars span { height: 1.5px; background: currentColor; border-radius: 2px; }

@media (min-width: 960px) {
  .site-header .wrap { width: fit-content; }
  .nav-links { display: flex; }
  .menu-button { display: none; }
}

/* Mobile menu sheet: grows from the button that opened it */
.menu-sheet {
  position: fixed; inset: 0;
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, 0); color: var(--ink);
  transition: background-color 300ms ease;
}
.menu-sheet.is-open { background: rgba(0, 0, 0, 0.28); }
.menu-sheet::backdrop { background: transparent; }
.menu-panel {
  position: absolute; inset: 8px 8px auto 8px;
  padding: 12px 16px 28px;
  border-radius: var(--radius);
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  transform-origin: calc(100% - 40px) 24px;
  transform: scale(0.94); opacity: 0;
  filter: blur(6px);
  transition: transform 450ms var(--spring), opacity 250ms ease, filter 300ms ease;
}
.menu-sheet.is-open .menu-panel { transform: none; opacity: 1; filter: none; }
.menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.menu-close {
  min-width: 44px; min-height: 44px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 600;
}
.menu-list { margin-top: 12px; }
.menu-list a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 12vw, 3.25rem); line-height: 1; letter-spacing: -0.015em;
  text-decoration: none;
}
.menu-list a span { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-2); }
.menu-meta { margin-top: 20px; display: grid; gap: 4px; }

/* ---------- Hero: centred copy, then the mock-up full width (after unitedus.co.uk) ---------- */

.hero { padding-top: clamp(40px, 8vw, 104px); text-align: center; }
.hero-copy {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter);
}
.hero-copy .display-xl { max-width: 13ch; }
.hero-copy .lede { max-width: 38ch; margin: 0; }
.hero-copy .cta-row { justify-content: center; margin-top: 6px; }
.crumbs { justify-content: center; }

.hero-pillars {
  display: grid; gap: 0 var(--gap);
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: 28px auto 0;
  text-align: left;
}
.hero-pillars a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0;
  border-top: 1px solid var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -0.01em;
  text-decoration: none;
}
.hero-pillars .num { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; }
.hero-pillars svg { width: 14px; height: 14px; flex: none; transition: transform var(--spring-dur) var(--spring); }
@media (hover: hover) { .hero-pillars a:hover svg { transform: translate(3px, -3px); } }
@media (min-width: 760px) { .hero-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.stage {
  position: relative; isolation: isolate;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: clamp(16px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--stage);
  overflow: hidden;
  display: grid; place-items: center;
  text-align: left;
}
/* Fine dot grid and a soft light behind the cards */
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 60% at 50% 35%, rgba(255, 255, 255, 0.08), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(243, 242, 239, 0.09) 1px, transparent 1.5px) 0 0 / 22px 22px;
}
.artboard {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 600 / 700;
}
.ab { position: absolute; inset: 0; font-size: 2.3cqi; line-height: 1.35; }
/* Wider screens: the same cards laid out landscape (positions for each mock-up are further down) */
@media (min-width: 760px) {
  .artboard--wide { max-width: 1180px; aspect-ratio: 1200 / 620; }
  .artboard--wide .ab { font-size: 1.15cqi; }
}

/* Mock cards: light in both themes, they sit on the dark stage */
.m-card {
  position: absolute;
  background: #fffdf8; color: #151514;
  border-radius: 1.1em;
  box-shadow: 0 1.8em 4em rgba(0, 0, 0, 0.42), 0 0.2em 0.6em rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.js .m-card {
  opacity: 0;
  transform: translateY(2.2em) scale(0.97);
  transition: opacity 600ms ease var(--d, 0ms), transform 1000ms var(--spring) var(--d, 0ms);
}
.js .artboard.is-in .m-card { opacity: 1; transform: none; }

.m-browser { left: 3%; top: 14.5%; width: 79%; --d: 0ms; }
.m-bar {
  display: flex; align-items: center; gap: 0.4em;
  height: 2.4em; padding: 0 0.9em;
  background: #ece8df;
}
.m-bar i { width: 0.62em; height: 0.62em; border-radius: 50%; background: #d3cdc1; flex: none; }
.m-url {
  flex: 1; margin-left: 1.2em; margin-right: 2.4em; height: 1.55em;
  display: flex; align-items: center; justify-content: center; gap: 0.4em;
  border-radius: 99px; background: #fffdf8;
  font-size: 0.72em; color: #6b675f;
}
.m-url svg { width: 0.9em; height: 0.9em; }
.m-site { padding: 1em 1.2em 1.25em; }
.m-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25em; }
.m-nav b { font-family: var(--font-display); font-weight: 700; font-size: 0.95em; letter-spacing: -0.01em; }
.m-nav span { display: flex; gap: 0.7em; }
.m-nav span i { width: 2.2em; height: 0.34em; border-radius: 1em; background: #dcd7cc; }
.m-h {
  font-family: var(--font-display); font-weight: 600;
  font-size: 2.1em; line-height: 1; letter-spacing: -0.02em;
  margin: 0 0 0.45em; max-width: 11ch;
}
.m-h em { font-style: italic; font-weight: 500; color: #3f5a3c; }
.m-row { display: flex; gap: 0.7em; align-items: center; margin-bottom: 1em; }
.m-btn {
  padding: 0.45em 0.95em; border-radius: 99px;
  background: #3f5a3c; color: #f8f5ee;
  font-size: 0.68em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.m-line { height: 0.34em; width: 7em; border-radius: 1em; background: #dcd7cc; }
.m-img { border-radius: 0.6em; overflow: hidden; background: #d9d3c6; }
.m-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.m-map { right: 2%; top: 3%; width: 47%; --d: 160ms; }
.m-mapview {
  position: relative; height: 7.4em;
  background:
    radial-gradient(38% 46% at 82% 18%, #cfdcc0 0 98%, transparent 100%),
    radial-gradient(60% 40% at 0% 100%, #c6d9de 0 98%, transparent 100%),
    linear-gradient(90deg, transparent 46%, #fbf9f4 46% 52%, transparent 52%),
    linear-gradient(0deg, transparent 58%, #fbf9f4 58% 63%, transparent 63%),
    linear-gradient(32deg, transparent 47%, #f3efe6 47% 50%, transparent 50%),
    linear-gradient(-58deg, transparent 70%, #f3efe6 70% 72%, transparent 72%),
    #e8e3d6;
}
.m-pin {
  position: absolute; left: 49%; top: 46%;
  width: 1.9em; height: 2.4em; margin: -2.4em 0 0 -0.95em;
  color: #3f5a3c;
  filter: drop-shadow(0 0.25em 0.3em rgba(0, 0, 0, 0.25));
}
.m-pin::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 2.6em; height: 1em; margin: -0.5em 0 0 -1.3em;
  border-radius: 50%; border: 0.12em solid rgba(63, 90, 60, 0.6);
  opacity: 0;
}
.m-pin svg { width: 100%; height: 100%; display: block; }
.js .m-pin { transform: translateY(-1.4em); opacity: 0; transition: transform 700ms var(--spring) 700ms, opacity 200ms ease 700ms; }
.js .artboard.is-in .m-pin { transform: none; opacity: 1; }
.artboard.is-in .m-pin::after { animation: pin-ring 2.4s ease-out 1.3s infinite; }
@keyframes pin-ring {
  0% { opacity: 0.9; transform: scale(0.3); }
  70%, 100% { opacity: 0; transform: scale(1.4); }
}
.m-dot { position: absolute; width: 0.7em; height: 0.7em; border-radius: 50%; background: #b9b3a6; border: 0.14em solid #fbf9f4; }
.m-listing { padding: 0.75em 1em 0.9em; display: grid; gap: 0.12em; }
.m-listing b { font-family: var(--font-display); font-size: 1.1em; letter-spacing: -0.01em; }
.m-stars { font-size: 0.78em; color: #4a4741; }
.m-stars span { color: #d99a1e; letter-spacing: 0.04em; }
.m-meta { font-size: 0.72em; color: #6b675f; }
.m-meta strong { color: #2f7a3e; font-weight: 600; }

.m-ai { left: 8%; bottom: 3%; width: 66%; padding: 0.95em 1.1em 1.1em; --d: 320ms; }
.m-ai-head {
  display: flex; align-items: center; gap: 0.45em;
  font-size: 0.68em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6b675f;
  margin-bottom: 0.7em;
}
.m-ai-head svg { width: 1.2em; height: 1.2em; color: #3f5a3c; }
.m-q {
  margin: 0 0 0.75em auto; width: fit-content; max-width: 88%;
  padding: 0.5em 0.85em; border-radius: 1em 1em 0.25em 1em;
  background: #ece8df; font-size: 0.86em;
}
.m-a { margin: 0; font-size: 0.86em; line-height: 1.45; }
.m-a .w { transition: opacity 260ms ease; }
.m-a .w.is-hidden { opacity: 0; }
.m-src {
  display: inline-flex; align-items: center; gap: 0.35em;
  margin-top: 0.7em; padding: 0.3em 0.7em; border-radius: 99px;
  border: 1px solid #dcd7cc; font-size: 0.7em; color: #4a4741;
}
.m-src i { width: 0.9em; height: 0.9em; border-radius: 50%; background: #3f5a3c; }

/* ---------- Statement ---------- */

.statement {
  text-align: center;
  padding-block: clamp(88px, 14vw, 200px) clamp(64px, 10vw, 140px);
}
.statement .display-l { margin: 18px auto 28px; max-width: 15ch; }
.statement .lede { max-width: 40ch; margin-inline: auto; color: var(--ink-2); }

/* ---------- Ticker (moves with scroll, not on its own) ---------- */

.ticker {
  overflow: hidden;
  background: var(--stage); color: #f3f2ef;
  padding-block: clamp(10px, 1.4vw, 18px);
}
.ticker-track {
  display: flex; width: max-content;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(2.75rem, 7.5vw, 6.5rem); line-height: 1.1; letter-spacing: -0.015em;
  white-space: nowrap;
  will-change: transform;
}
.ticker-track span { padding-right: 0.45em; }
.ticker-track span::after { content: "&"; font-family: var(--font-amp); font-weight: 700; color: #ff5a3c; padding-left: 0.45em; }

/* ---------- Section heads ---------- */

.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px;
  padding-top: clamp(72px, 10vw, 160px);
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.section-head .display-l { margin-top: 14px; max-width: 14ch; }
.section-head > p:last-child { margin: 0; max-width: 38ch; }

/* ---------- Services: three pillars ---------- */

.pillar {
  display: grid; gap: 28px var(--gap);
  grid-template-columns: minmax(0, 1fr); /* long code lines scroll inside their panel instead of widening the page */
  padding-block: clamp(48px, 7vw, 112px);
  border-bottom: 1px solid var(--rule);
}
.pillar-text .display-m { margin: 14px 0 20px; max-width: 15ch; }
.pillar-text > p { color: var(--ink-2); max-width: 46ch; }
.ticks { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--rule); }
.ticks li {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-size: 1rem; line-height: 1.45;
}
.ticks svg { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }

@media (min-width: 960px) {
  .pillar { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .pillar-text { grid-column: 1 / span 5; }
  .pillar-visual { grid-column: 7 / -1; }
  .pillar:nth-of-type(even) .pillar-text { grid-column: 8 / -1; grid-row: 1; }
  .pillar:nth-of-type(even) .pillar-visual { grid-column: 1 / span 6; grid-row: 1; }
}

/* Code panels: dark in both themes, like an editor */
.code {
  position: relative;
  border-radius: var(--radius);
  background: #161615; color: #e9e5dc;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.code-head {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.04em; color: #8d897f;
}
.code-head i { width: 10px; height: 10px; border-radius: 50%; background: #3a3936; }
.code-head span { margin-left: 10px; }
.code pre {
  margin: 0; padding: 20px 22px 24px;
  font: 500 clamp(0.75rem, 1.05vw, 0.875rem)/1.75 var(--font-mono);
  overflow-x: auto; tab-size: 2;
}
.code .t { color: #a9c79b; }
.code .a { color: #e3c48d; }
.code .s { color: #e59a7a; }
.code .c { color: #77736a; font-style: italic; }
.code .k { color: #9fc3d6; }

.scores {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 20px 18px 24px;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
}
.score { display: grid; justify-items: center; gap: 8px; text-align: center; }
.ring { position: relative; width: clamp(52px, 6vw, 72px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .track { stroke: rgba(12, 206, 107, 0.16); }
.ring .bar {
  stroke: #0cce6b; stroke-linecap: round;
  stroke-dasharray: 138.2; stroke-dashoffset: 0;
}
.js .ring .bar { stroke-dashoffset: 138.2; transition: stroke-dashoffset 1400ms var(--spring); }
.js .scores.is-in .ring .bar { stroke-dashoffset: 0; }
.ring b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 clamp(0.9375rem, 1.4vw, 1.125rem)/1 var(--font-body); color: #0cce6b;
  font-variant-numeric: tabular-nums;
}
.score span { font-size: 0.6875rem; line-height: 1.25; color: #a8a49b; }
.scores-note { margin: 0; padding: 0 18px 18px; font-size: 0.75rem; color: #8d897f; text-align: center; }

.stack { position: relative; display: grid; }
.stack .code + .code { margin: -48px 0 0 auto; width: min(78%, 420px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55); border: 1px solid rgba(244, 241, 234, 0.08); }
@media (min-width: 960px) { .stack { padding-right: 0; } .stack .code:first-child { margin-right: 18%; } .stack .code + .code { margin-top: -96px; } }

/* Local results card */
.local {
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.local-search {
  display: flex; align-items: center; gap: 12px;
  margin: 18px; padding: 0 18px; min-height: 52px;
  border-radius: 999px; border: 1px solid var(--rule);
  font-size: 1rem;
}
.local-search svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.local-map {
  height: clamp(120px, 14vw, 180px);
  background:
    radial-gradient(30% 50% at 85% 20%, rgba(122, 156, 110, 0.3) 0 98%, transparent 100%),
    radial-gradient(50% 45% at 0% 100%, rgba(120, 165, 180, 0.35) 0 98%, transparent 100%),
    linear-gradient(90deg, transparent 38%, var(--bg-elev) 38% 41%, transparent 41%),
    linear-gradient(0deg, transparent 55%, var(--bg-elev) 55% 59%, transparent 59%),
    linear-gradient(28deg, transparent 60%, var(--bg-elev) 60% 62%, transparent 62%),
    var(--rule);
  position: relative;
}
.local-map .lp {
  position: absolute; width: 26px; height: 26px; margin: -26px 0 0 -13px;
  display: grid; place-items: center;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--ink-2); color: var(--bg-elev);
  font: 700 0.75rem/1 var(--font-body);
}
.local-map .lp b { transform: rotate(45deg); }
.local-map .lp.is-you { background: var(--accent); color: var(--accent-ink); width: 34px; height: 34px; margin: -34px 0 0 -17px; z-index: 1; }
.local-list li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 18px; border-top: 1px solid var(--rule);
}
.local-list .rank {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rule); font: 700 0.75rem/1 var(--font-body);
}
.local-list .is-you { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.local-list .is-you .rank { background: var(--accent); color: var(--accent-ink); }
.local-list b { display: block; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.1; }
.local-list small { color: var(--ink-2); font-size: 0.8125rem; }
.local-list small span { color: #d99a1e; }
.local-list .open { font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.skel { display: grid; gap: 6px; }
.skel i { display: block; height: 8px; border-radius: 8px; background: var(--rule); width: 60%; }
.skel i + i { width: 38%; }

/* ---------- AI search band (dark in both themes) ---------- */

.band {
  position: relative; isolation: isolate;
  background: #0b0d10; color: #f3f2ef;
  --ink: #f3f2ef;
  --ink-2: #a9acb1;
  --rule: rgba(243, 242, 239, 0.16);
  --accent: #ff5a3c;
  --accent-ink: #0b0d10;
  overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 90% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(244, 241, 234, 0.07) 1px, transparent 1.5px) 0 0 / 22px 22px;
}
.band .section-head { border-color: var(--rule); }
.flow { display: grid; gap: 0; counter-reset: step; padding-block: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.flow li { position: relative; padding: 22px 0 26px 44px; border-bottom: 1px solid var(--rule); }
.flow li::before {
  content: ""; position: absolute; left: 6px; top: 30px; bottom: -6px;
  width: 1px; background: var(--rule);
}
.flow li:last-child::before { display: none; }
.flow .dot {
  position: absolute; left: 0; top: 24px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--accent); background: #0b0d10;
}
.flow li:last-child .dot { background: var(--accent); }
.flow h3 { font-family: var(--font-display); font-size: clamp(1.875rem, 2.6vw, 2.375rem); letter-spacing: -0.01em; line-height: 1.05; margin: 8px 0 10px; }
.flow p { margin: 0; color: var(--ink-2); max-width: 36ch; }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
  .flow li { padding: 40px 0 0; border: 0; }
  .flow li::before { left: 13px; right: calc(-1 * var(--gap)); top: 6px; bottom: auto; width: auto; height: 1px; }
  .flow li:last-child::before { display: none; }
  .flow .dot { top: 0; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: clamp(72px, 10vw, 140px); align-items: center; }
.chips .label { margin: 0 8px 0 0; }
.chips li {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 0.875rem; font-weight: 500;
}
.chips li.label { padding: 0; border: 0; font-size: 0.75rem; font-weight: 600; }

/* ---------- Photography (layout from the joelmay.co.uk disciplines) ---------- */

.shoot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "text text"
    "main main"
    "a b"
    "more more";
  gap: 16px var(--gap);
  padding-block: clamp(40px, 6vw, 96px) clamp(72px, 10vw, 140px);
}
.s-text { grid-area: text; }
.s-text .display-m { margin: 14px 0 0; max-width: 14ch; }
.s-main { grid-area: main; }
.s-a { grid-area: a; }
.s-b { grid-area: b; }
.s-more { grid-area: more; display: grid; gap: 16px; align-content: start; }
.s-more p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.s-main, .s-a, .s-b { overflow: hidden; border-radius: var(--radius-sm); background: var(--rule); position: relative; }
.s-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.s-a img, .s-b img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.s-main figcaption, .s-a figcaption, .s-b figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(20, 20, 19, 0.5); color: #f4f1ea;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
@media (min-width: 960px) {
  .shoot {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: none;
    row-gap: var(--gap);
    align-items: start;
  }
  .s-text { grid-area: auto; grid-column: 9 / -1; grid-row: 1; }
  .s-main { grid-area: auto; grid-column: 1 / span 8; grid-row: 1 / span 3; }
  .s-a { grid-area: auto; grid-column: 9 / span 2; grid-row: 2; }
  .s-b { grid-area: auto; grid-column: 11 / span 2; grid-row: 2; margin-top: 30%; }
  .s-more { grid-area: auto; grid-column: 9 / -1; grid-row: 3; align-self: end; }
}

/* ---------- Case study ---------- */

.case {
  display: grid; gap: 32px var(--gap);
  padding-block: clamp(40px, 6vw, 96px) clamp(72px, 10vw, 140px);
}
.case-copy .display-m { margin: 14px 0 20px; }
.case-copy > p { color: var(--ink-2); max-width: 46ch; }
.case-copy .link-arrow { margin-top: 24px; }
.case-frame {
  display: block; text-decoration: none;
  border-radius: var(--radius); overflow: hidden;
  background: #f3f1ec; color: #121212;
  border: 1px solid var(--rule);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.35);
  container-type: inline-size;
}
.case-bar {
  display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px;
  background: #e7e4dc;
}
.case-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfcbc1; }
.case-bar span {
  flex: 1; margin: 0 48px 0 20px; height: 24px; border-radius: 99px;
  display: grid; place-items: center;
  background: #f3f1ec; font-size: 0.75rem; color: #5e5c57;
}
.case-site { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 10; }
.case-site img { width: 100%; height: 100%; object-fit: cover; }
.case-site div {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 4.5cqi 4cqi;
}
.case-site small { font: 600 1.6cqi/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: #5e5c57; }
.case-site strong {
  font: 800 9.6cqi/0.84 "Inter", var(--font-body);
  letter-spacing: -0.06em; text-transform: uppercase;
}
.case-site em {
  font: 500 2.4cqi/1.05 "Inter", var(--font-body); font-style: normal;
  text-transform: uppercase; letter-spacing: -0.02em; color: #5e5c57; max-width: 18ch;
}
.case-site span {
  align-self: start;
  padding: 1.2cqi 2.4cqi; border-radius: 99px;
  background: #c4321a; color: #fff;
  font: 600 1.4cqi/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase;
}
@media (min-width: 960px) {
  .case { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .case-frame { grid-column: 1 / span 7; }
  .case-copy { grid-column: 9 / -1; }
}

/* ---------- Process ---------- */

.steps { display: grid; padding-block: clamp(32px, 4vw, 56px) clamp(72px, 10vw, 140px); }
.steps li { padding: 20px 0 24px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; align-content: start; }
.steps .num { margin: 0; padding-top: 0.55em; font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; }
.steps h3 { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.75rem); letter-spacing: -0.01em; line-height: 1.05; }
.steps p { grid-column: 2; margin: 0; color: var(--ink-2); max-width: 40ch; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
  .steps li { grid-template-columns: 1fr; border: 0; border-top: 1px solid var(--ink); padding-top: 18px; }
  .steps p { grid-column: 1; margin-top: 8px; }
  .steps .num { padding: 0 0 18px; }
}

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: 24px var(--gap); padding-block: clamp(32px, 4vw, 56px) clamp(72px, 10vw, 160px); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 72px; padding: 16px 0;
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.01em; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.plus {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid currentColor; display: grid; place-items: center;
  transition: transform var(--spring-dur) var(--spring);
}
.plus svg { width: 12px; height: 12px; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 62ch; color: var(--ink-2); }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: repeat(12, 1fr); }
  .faq-intro { grid-column: 1 / span 4; }
  .faq { grid-column: 6 / -1; }
}

/* ---------- Contact footer ---------- */

.contact {
  position: relative; isolation: isolate;
  color: #f3f2ef;
  background: #0b0d10;
  overflow: hidden;
  /* Dark in both themes, so it carries its own colour tokens */
  --ink: #f3f2ef;
  --ink-2: #a9acb1;
  --rule: rgba(243, 242, 239, 0.16);
  --accent: #ff5a3c;
  --accent-ink: #0b0d10;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 15% 0%, rgba(255, 255, 255, 0.06), transparent 70%);
}
.contact-inner { padding-block: clamp(80px, 12vw, 180px) 32px; }
.contact-grid { display: grid; gap: 48px var(--gap); }
.contact .display-l { margin: 16px 0 clamp(24px, 3vw, 40px); max-width: 12ch; }
.email-link {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.05; letter-spacing: -0.015em;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 600ms var(--spring);
  padding-bottom: 6px;
}
@media (hover: hover) { .email-link:hover { background-size: 100% 2px; } }
.contact-rows {
  display: grid; gap: 20px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.contact-rows a { text-decoration: none; }
.contact-rows .big { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; margin: 4px 0 0; }
@media (min-width: 600px) { .contact-rows { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .contact-copy { grid-column: 1 / span 6; }
  .brief { grid-column: 8 / -1; }
  .contact-rows { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) { .contact-rows { grid-template-columns: repeat(3, 1fr); } }

.brief {
  display: grid; gap: 18px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius);
  background: rgba(244, 241, 234, 0.05);
  border: 1px solid var(--rule);
}
.brief h3 { font-family: var(--font-display); font-size: 2.125rem; letter-spacing: -0.01em; line-height: 1.05; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .brief legend { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: rgba(244, 241, 234, 0.04);
  font-size: 1rem; /* 16px stops iOS zooming on focus */
  transition: border-color 200ms ease, background-color 200ms ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(244, 241, 234, 0.07); }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 241, 234, 0.35); }
.brief fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.brief legend { padding: 0; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--rule);
  font-size: 0.9375rem; font-weight: 500;
  cursor: pointer; user-select: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 100ms ease-out;
}
.choice span::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: 0.6;
  transition: background-color 200ms ease, opacity 200ms ease;
}
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice input:checked + span::before { background: currentColor; opacity: 1; box-shadow: inset 0 0 0 2px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice span:active { transform: scale(0.97); }
.brief-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.brief-foot p { margin: 0; font-size: 0.8125rem; color: var(--ink-2); max-width: 32ch; }
.brief button.pill { border-color: var(--accent); }

.giant-wordmark {
  margin: clamp(56px, 8vw, 120px) 0 0;
  /* Sized so "MAY&CO." spans the content width */
  font-size: calc((min(100vw, var(--maxw)) - 2 * var(--gutter)) / 5);
  line-height: 0.9;
  padding-bottom: 0.08em;
  color: var(--accent);
  user-select: none;
}
.legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px 28px;
  font-size: 0.8125rem; color: var(--ink-2);
}
.legal a { text-decoration: none; }
.legal nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- Current page ---------- */

.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.menu-list a[aria-current="page"] { color: var(--accent); }

/* ---------- Service pages ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.crumbs a { text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); } }
.hero--page .display-xl { max-width: 16ch; }

.cards {
  display: grid; gap: 0 var(--gap);
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(8px, 1vw, 16px) clamp(72px, 10vw, 140px);
}
.card { padding: 22px 0 28px; border-bottom: 1px solid var(--rule); }
.card .num { display: block; margin: 0 0 20px; font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.625rem, 2.2vw, 2rem); line-height: 1.08; letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--ink-2); max-width: 42ch; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.compare-wrap { padding-block: clamp(8px, 1vw, 16px) clamp(72px, 10vw, 140px); }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { padding-top: 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.compare thead th:nth-child(2) { color: var(--accent); }
.compare tbody th {
  width: 22%;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.625rem; line-height: 1.1; letter-spacing: -0.01em;
}
.compare td:nth-of-type(1) { font-weight: 500; }
.compare td:nth-of-type(2) { color: var(--ink-2); }
/* Phones: each row becomes a small two-column card with its own labels */
@media (max-width: 699px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .compare tbody th { grid-column: 1 / -1; width: auto; padding: 0; border: 0; }
  .compare td { padding: 0; border: 0; font-size: 0.9375rem; }
  .compare td::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  }
  .compare td:nth-of-type(1)::before { color: var(--accent); }
}

.split {
  display: grid; gap: 28px var(--gap);
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(72px, 10vw, 160px);
}
.split-head .display-l, .split-body .display-m { margin: 14px 0 24px; max-width: 14ch; }
.split-body > p { max-width: 58ch; color: var(--ink-2); }
.split-body > .lede { color: var(--ink); }
.split-media { border-radius: var(--radius); overflow: hidden; background: var(--rule); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 960px) {
  .split { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .split-head { grid-column: 1 / span 5; }
  .split-body { grid-column: 7 / -1; }
  .split--media { align-items: center; }
  .split--media .split-media { grid-column: 1 / span 6; }
  .split--media .split-body { grid-column: 8 / -1; }
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-block: clamp(24px, 3vw, 40px) clamp(72px, 10vw, 140px); }
.tags li {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--rule);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.375rem, 1.9vw, 1.75rem); letter-spacing: -0.005em;
}

.next {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(24px, 3vw, 40px) clamp(72px, 10vw, 140px);
}
@media (min-width: 760px) { .next { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.next a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 240px; padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius); border: 1px solid var(--rule);
  background: var(--bg-elev);
  text-decoration: none;
  transition: transform 100ms ease-out, border-color 200ms ease;
}
.next a:active { transform: scale(0.985); }
.next h3 {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  margin: 14px 0 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.25rem, 3.8vw, 3.375rem); line-height: 1; letter-spacing: -0.015em;
}
.next h3 em { font-style: italic; font-weight: 500; }
.next svg { width: 0.5em; height: 0.5em; flex: none; margin-bottom: 0.15em; transition: transform var(--spring-dur) var(--spring); }
.next a > p { margin: 0; color: var(--ink-2); max-width: 40ch; }
@media (hover: hover) {
  .next a:hover { border-color: var(--ink); }
  .next a:hover svg { transform: translate(4px, -4px); }
}

@media (min-width: 960px) { .flow--3 { grid-template-columns: repeat(3, 1fr); } }
.band-note { margin: 0; padding-bottom: clamp(72px, 10vw, 140px); color: var(--ink-2); max-width: 62ch; }

/* Client list on the home page */
.clients { padding-bottom: clamp(72px, 10vw, 140px); }
.clients ul { margin-top: 16px; border-top: 1px solid var(--ink); }
.clients a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.clients b { font-family: var(--font-display); font-size: clamp(1.875rem, 3.2vw, 2.75rem); line-height: 1.05; letter-spacing: -0.015em; }
.clients span { grid-column: 1; color: var(--ink-2); }
.clients svg { grid-column: 2; grid-row: 1 / span 2; width: 16px; height: 16px; transition: transform var(--spring-dur) var(--spring); }
@media (min-width: 960px) {
  .clients a { grid-template-columns: 5fr 6fr auto; }
  .clients span { grid-column: 2; grid-row: 1; }
  .clients svg { grid-column: 3; grid-row: 1; }
}
@media (hover: hover) { .clients a:hover svg { transform: translate(3px, -3px); } }

/* ---------- Service page mock-ups (same artboard system as the home hero) ---------- */

/* Web design: desktop and phone versions of one site */
.artboard--web .m-browser { left: 2%; top: 7%; width: 74%; }
.m-phone {
  right: 2%; top: 25%; width: 30%;
  padding: 0.4em; border-radius: 2.1em;
  background: #151514; --d: 160ms;
}
.m-phone-screen { border-radius: 1.7em; overflow: hidden; background: #fffdf8; }
.m-notch { display: grid; place-items: center; height: 1.7em; }
.m-notch i { width: 3.6em; height: 1em; border-radius: 1em; background: #151514; }
.m-phone .m-site { padding: 0.3em 0.8em 1em; }
.m-phone .m-nav { margin-bottom: 0.9em; }
.m-phone .m-nav b { font-size: 0.72em; }
.m-phone .m-nav span { flex-direction: column; gap: 0.22em; }
.m-phone .m-nav span i { width: 1.1em; height: 0.16em; }
.m-phone .m-h { font-size: 1.4em; }
.m-phone .m-btn { font-size: 0.58em; }
.m-phone .m-img img { aspect-ratio: 4 / 5; }
.m-scores { left: 5%; bottom: 4%; width: 46%; padding: 0.9em 1.1em 1em; --d: 320ms; }
.m-scores ul { display: grid; gap: 0.45em; }
.m-scores li { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; font-size: 0.8em; }
.m-scores b {
  display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%;
  border: 0.18em solid #0cce6b; color: #0a7f43; font-size: 0.82em; font-variant-numeric: tabular-nums;
}

/* AI optimisation: the answer, its sources and what the AI could read */
.artboard--ai .m-ai { left: 3%; top: 9%; bottom: auto; width: 90%; padding: 1.2em 1.3em; font-size: 1.08em; --d: 0ms; }
.artboard--ai .m-q, .artboard--ai .m-a { font-size: 0.95em; }
.m-sources { display: grid; gap: 0.45em; margin-top: 1em; padding-top: 0.9em; border-top: 1px solid #ece8df; }
.m-sources > span { font-size: 0.66em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6b675f; }
.m-source { display: flex; align-items: center; gap: 0.6em; padding: 0.5em 0.7em; border-radius: 0.6em; background: #f4f1ea; font-size: 0.8em; }
.m-source i { width: 1.3em; height: 1.3em; border-radius: 0.35em; background: #cfc9bc; flex: none; }
.m-source small { margin-left: auto; color: #6b675f; }
.m-source.is-you { background: #e4ebe0; box-shadow: inset 0 0 0 1px #b8c8b0; }
.m-source.is-you i { background: #3f5a3c; }
.artboard--ai .m-map { left: 5%; right: auto; top: 52%; width: 50%; --d: 140ms; }
.m-check { right: 3%; top: 71%; width: 47%; padding: 1em 1.1em 1.1em; background: #161615; color: #e9e5dc; --d: 260ms; }
.m-check .m-ai-head { color: #8d897f; }
.m-check ul { display: grid; gap: 0.35em; font: 500 0.78em/1.4 var(--font-mono); }
.m-check li { display: flex; gap: 0.6em; }
.m-check li::before { content: "✓"; color: #0cce6b; }

/* Local SEO: a "near me" search on the map, and the business profile */
.m-bigmap {
  left: 0; top: 0; width: 100%; height: 70%;
  border-radius: 1.2em; --d: 0ms;
  background:
    radial-gradient(30% 26% at 84% 24%, #cfdcc0 0 98%, transparent 100%),
    radial-gradient(45% 30% at 0% 100%, #c6d9de 0 98%, transparent 100%),
    linear-gradient(90deg, transparent 40%, #fbf9f4 40% 43%, transparent 43%),
    linear-gradient(0deg, transparent 50%, #fbf9f4 50% 53%, transparent 53%),
    linear-gradient(30deg, transparent 58%, #f3efe6 58% 60%, transparent 60%),
    linear-gradient(-62deg, transparent 30%, #f3efe6 30% 32%, transparent 32%),
    #e8e3d6;
}
.m-search {
  position: absolute; left: 4%; right: 4%; top: 4.5%;
  display: flex; align-items: center; gap: 0.6em;
  height: 2.7em; padding: 0 1em; border-radius: 2em;
  background: #fffdf8; box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.12);
  font-size: 0.9em;
}
.m-search svg { width: 1.1em; height: 1.1em; color: #6b675f; flex: none; }
.m-bigmap .m-pin { left: 56%; top: 54%; width: 2.4em; height: 3em; margin: -3em 0 0 -1.2em; }
.m-gpin { position: absolute; width: 1.2em; height: 1.5em; margin: -1.5em 0 0 -0.6em; color: #a39d91; }
.m-gpin svg { display: block; width: 100%; height: 100%; }
.m-tag {
  position: absolute; left: 60%; top: 40%;
  padding: 0.3em 0.7em; border-radius: 0.5em;
  background: #fffdf8; box-shadow: 0 0.3em 0.8em rgba(0, 0, 0, 0.15);
  font-size: 0.72em; font-weight: 600; white-space: nowrap;
}
.m-gbp { left: 6%; bottom: 3%; width: 76%; padding: 1em 1.2em 1.1em; --d: 180ms; }
.m-gbp b { display: block; font-family: var(--font-display); font-size: 1.35em; letter-spacing: -0.01em; }
.m-gbp .m-stars, .m-gbp .m-meta { display: block; margin-top: 0.2em; }
.m-actions { display: flex; gap: 0.45em; margin-top: 0.8em; }
.m-actions span { padding: 0.45em 0.85em; border-radius: 2em; border: 1px solid #dcd7cc; font-size: 0.7em; font-weight: 600; color: #3f5a3c; }
.m-actions span:first-child { background: #3f5a3c; border-color: #3f5a3c; color: #f8f5ee; }
.m-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35em; margin-top: 0.8em; }
.m-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.45em; background: #d9d3c6; }

/* Landscape positions for wider screens. Card sizes are in em, which the wide artboard
   halves (1.15cqi instead of 2.3cqi), so widths here are half of the portrait ones. */
@media (min-width: 760px) {
  .artboard--home .m-browser { left: 31%; top: 7%; width: 40%; }
  .artboard--home .m-map { right: 7%; top: 13%; width: 24%; }
  .artboard--home .m-ai { left: 7%; top: 47%; bottom: auto; width: 33%; }

  .artboard--web .m-browser { left: 30%; top: 7%; width: 40%; }
  .artboard--web .m-phone { right: auto; left: 65%; top: 17%; width: 15%; }
  .artboard--web .m-scores { left: 14%; top: 50%; bottom: auto; width: 23%; }

  .artboard--ai .m-ai { left: 10%; top: 13%; width: 46%; }
  .artboard--ai .m-map { left: 59%; top: 12%; width: 25%; }
  .artboard--ai .m-check { left: 62%; right: auto; top: 56%; width: 26%; }

  .artboard--local .m-bigmap { height: 100%; }
  .artboard--local .m-search { right: auto; width: 40%; }
  .artboard--local .m-bigmap .m-pin { left: 40%; top: 55%; }
  .artboard--local .m-tag { left: 44%; top: 42%; }
  .artboard--local .m-gbp { left: auto; right: 5%; bottom: 7%; width: 37%; }
}

/* ---------- 404 ---------- */

.page-intro {
  padding-top: clamp(56px, 10vw, 160px);
  padding-bottom: clamp(72px, 10vw, 160px);
}
.page-intro .display-l { margin: 18px 0 clamp(24px, 3vw, 40px); max-width: 14ch; }
.page-intro .lede { max-width: 40ch; color: var(--ink-2); }

/* ---------- Reveal on scroll (only when JS runs) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 900ms var(--spring);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* In dark mode the always-dark sections lift slightly so they still read as bands */
@media (prefers-color-scheme: dark) {
  .band, .contact { background: #15181c; }
  .flow .dot { background: #15181c; }
}

/* ---------- Accessibility preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation: none !important; }
  .js .reveal, .js .m-card, .js .m-pin { transform: none; transition: opacity 300ms ease !important; }
  .menu-panel { transform: none; filter: none; transition: opacity 200ms ease !important; }
  .ticker-track { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --material: var(--bg); }
  .site-header, .menu-panel { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Town list in the "Local to Rossendale" section */
.tags--tight { padding-block: 4px 20px; }
