/* The Marketing Cartel · home sections 03 → 11 · DESKTOP layer (≥1024px; linked with media="(min-width: 1024px)").
   The E03 desktop pass, unchanged except the removed phone overrides (the phone is rebuilt in sections.css). */

/* ---------- 03 · Services ---------- */
/* E04: the markup shows all four panels (the phone stacks them); until desktop.js arms, the card shows the first */
#services:not(.is-armed) .svc-panel:not([data-active="true"]) { display: none; }
.svc { --card-h: clamp(430px, 55vh, 496px); position: relative; background: var(--bg); }
.svc__inner { display: grid; gap: clamp(28px, 4vh, 44px); padding-block: var(--section-y); }
@media (min-width: 768px) {
  /* one viewport tall, content centred under the navbar: identical with or without the pin, so arming it moves nothing */
  .svc { display: grid; align-content: center; min-height: 100vh; }
  .svc__inner { padding-block: calc(var(--nav-top) + var(--nav-h) + 20px) 40px; }
}
.svc__head { display: grid; grid-template-columns: 1fr minmax(0, 30rem); gap: var(--space-8); align-items: end; }
.svc__head h2 { margin-top: var(--space-3); font-size: var(--text-h2); }
.svc__lead { font-size: var(--text-lead); line-height: var(--lh-lead); color: var(--fg-muted); }
.svc__body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

/* the card (#16): each service is its own card surface, stacked in one frame, so a change can show two at once
   (outgoing + incoming). Resting look identical to the single card it replaced. The change itself ("in place") is in
   sections.js (Arthur 28/09: the #11 flip is out). */
.svc-card__inner { position: relative; height: var(--card-h); }
.svc-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 26% 1fr;
  padding: 12px;
  border-radius: var(--r-xl);
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-3);
  backface-visibility: hidden;
}
.svc-panel[hidden] { display: none; }
.svc-panel__body { display: flex; flex-direction: column; gap: var(--space-3); padding: 26px 22px 12px; }
.svc-panel__count { font: 600 .75rem / 1 var(--font-mono); letter-spacing: .04em; color: var(--fg-muted); } /* fg-subtle on bg-raised = 4.22:1 light (fails AA) */
.svc-panel h3 { font-size: clamp(2rem, 1.2rem + 1.6vw, 2.75rem); letter-spacing: var(--track-heading); line-height: 1; }
.svc-panel__desc { font-size: 1.1875rem; line-height: var(--lh-lead); color: var(--fg-muted); max-width: 32rem; }
.svc-panel__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-1) 0 0; padding: 0; list-style: none; }
.svc-panel__cta { align-self: flex-start; margin-top: auto; }

/* the vignettes (.svc-vis / .vis-*) are shared by both widths: sections.css */

/* the list (#30): the active service is lit, the rest wait; a thin rail shows progress through the pin */
.svc__list { position: relative; padding-left: 26px; }
.svc__progress { position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.svc__progress i { display: block; height: 100%; background: var(--brand); transform-origin: 50% 0; transform: scaleY(.25); transition: transform var(--d-ui) var(--e-out); }
.svc-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.svc-item {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  text-align: left;
  color: var(--fg);
  cursor: pointer;
}
.svc-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 22%, transparent);
  opacity: 0;
  transition: opacity var(--d-ui) var(--e-out);
}
.svc-item:not([aria-pressed="true"]) b { color: var(--fg-muted); }  /* secondary, still AA — no opacity dimming */
.svc-item:not([aria-pressed="true"]) .tag__icon { background: var(--bg-sunken); color: var(--fg-muted); }
.svc-item:hover::before { opacity: .45; }
.svc-item[aria-pressed="true"]::before { opacity: 1; }
.svc-item .tag__icon { width: 40px; height: 40px; border-radius: 12px; }
.svc-item b { display: block; font: 780 1.25rem / 1.2 var(--font-sans); letter-spacing: -.015em; }
.svc-item b + span { display: block; margin-top: 4px; font-size: var(--text-sm); color: var(--fg-muted); }


/* ---------- shared: section rhythm + reveal (space reserved: only opacity/transform change) ---------- */
.cases, .how, .about { position: relative; padding-block: var(--section-y); }
/* nav anchors land on the CONTENT, not on the section's top padding: html's scroll-padding already clears the navbar,
   so each section pulls its landing point down by its own top padding (minus a small breath). Arthur, 28/09: the
   links dropped him far above every section. Services lands exactly at its pin start (its layout sits under the nav). */
.cases, .how, .about, .team, .testimonials, .faq, .cta { scroll-margin-top: calc(var(--space-4) - var(--section-y)); }
.blog { scroll-margin-top: calc(var(--space-4) - var(--section-y) * .5); }
@media (min-width: 768px) { .svc { scroll-margin-top: calc(-1 * (var(--nav-top) + var(--nav-h) + var(--space-6))); } }
.js .reveal { opacity: 0; transform: translateY(var(--reveal-distance)); transition: opacity var(--d-reveal) var(--e-out), transform var(--d-reveal) var(--e-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; } }

/* ---------- 04 · Cases ---------- */
.cases__inner { display: grid; gap: clamp(36px, 5vh, 56px); }
.cases__head { display: grid; grid-template-columns: 1fr minmax(0, 30rem); gap: var(--space-8); align-items: end; }
.cases__head h2 { margin-top: var(--space-3); font-size: var(--text-h2); }
.cases__aside { display: grid; gap: var(--space-4); justify-items: start; }
.cases__lead { font-size: var(--text-lead); line-height: var(--lh-lead); color: var(--fg-muted); }
.cases__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.case-card { position: relative; overflow: hidden; isolation: isolate; height: clamp(400px, 48vh, 460px); border-radius: var(--r-xl);
  background: radial-gradient(90% 90% at 100% 100%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%),
              radial-gradient(80% 80% at 0% 0%, color-mix(in oklab, var(--violet-400) 22%, transparent), transparent 60%), var(--bg-sunken);
  box-shadow: inset 0 0 0 1px var(--line); }
.case-card__media { position: absolute; inset: 0; z-index: -1; }
.case-card__device { position: absolute; right: -6%; bottom: -14%; width: 78%; transition: transform var(--d-reveal) var(--e-out); }
.case-card:hover .case-card__device { transform: translateY(-8px) scale(1.015); }
.case-card__tag { position: absolute; left: 32px; bottom: 32px; }
.case-card__overlay { display: grid; justify-items: start; gap: var(--space-2); padding: 32px; }
.case-card__overlay h3 { font-size: var(--text-h3); }
.case-card__overlay p { margin-bottom: var(--space-3); color: var(--fg-muted); font-size: var(--text-sm); }
.cases__metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.stat { display: grid; grid-template-rows: auto auto 1fr; gap: 8px; padding: 28px 24px 26px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { order: 0; margin: 0; display: flex; align-items: flex-start; gap: 2px; font: 800 clamp(2.5rem, 1.6rem + 2vw, 3.5rem) / .95 var(--font-sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat__value span { font-size: .5em; color: var(--brand); letter-spacing: 0; margin-top: .1em; }
.stat__label { order: 1; font: var(--w-ui) var(--text-sm) / 1.35 var(--font-sans); color: var(--fg); }
.stat__src { order: 2; align-self: end; margin-top: 6px; font: 500 .75rem / 1.3 var(--font-sans); color: var(--fg-muted); }

/* ---------- 05 · How it works ---------- */
.how { background: var(--bg-sunken); }
.how__inner { display: grid; gap: clamp(36px, 5vh, 56px); }
.how__head { display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.how__head h2 { font-size: var(--text-h2); }
.how__lead { max-width: 36rem; font-size: var(--text-lead); line-height: var(--lh-lead); color: var(--fg-muted); }
.how__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.how__steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 43px; height: 1px; background: color-mix(in oklab, var(--brand) 30%, transparent); }
.step { position: relative; display: grid; align-content: start; gap: var(--space-3); padding: 28px 26px 30px; border-radius: var(--r-lg); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.step__num { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: var(--space-3); border-radius: var(--r-full); background: var(--grad-brand); color: var(--on-brand); font: 700 .75rem / 1 var(--font-mono); }
.step h3 { font-size: var(--text-h4); }
.step p { color: var(--fg-muted); font-size: var(--text-body); }
.how__steps .step:nth-child(2) { --i: 1; } .how__steps .step:nth-child(3) { --i: 2; } .how__steps .step:nth-child(4) { --i: 3; }

/* ---------- 06 · About ---------- */
.about { overflow: clip; isolation: isolate; }
.about__bg { position: absolute; inset: 0; z-index: -1; }
/* #1 no-want: never over the content. In About the lines live in the top-left and bottom-right corners only */
.about__bg.bg-topo {
  -webkit-mask-image: url("../sg/textures/topo-lines.svg"),
    radial-gradient(40% 55% at 0% 0%, #000 0%, transparent 100%), radial-gradient(40% 55% at 100% 100%, #000 0%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-composite: source-in, source-over;
  mask-image: url("../sg/textures/topo-lines.svg"),
    radial-gradient(40% 55% at 0% 0%, #000 0%, transparent 100%), radial-gradient(40% 55% at 100% 100%, #000 0%, transparent 100%);
  mask-size: 100% 100%;
  mask-composite: intersect, add;
}
.about__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
/* E04: the copy comes first in the DOM (the phone reads it first); the desktop keeps the card on the left */
.about__media { grid-column: 1; grid-row: 1; }
.about__copy { grid-column: 2; grid-row: 1; }
.about__copy { display: grid; justify-items: start; gap: var(--space-5); }
.about__copy h2 { font-size: var(--text-h2); }
.about__lead { font-size: var(--text-lead); line-height: var(--lh-lead); color: var(--fg); }
.about__body { color: var(--fg-muted); max-width: 34rem; }
.about__media { display: grid; place-items: center; perspective: 1000px; }
.member-card { width: min(100%, 420px); transform-style: preserve-3d; transition: transform var(--d-spring) var(--e-spring); }
.member-card__face { position: relative; display: grid; gap: var(--space-5); padding: 28px; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(120% 70% at 100% 0%, color-mix(in oklab, var(--violet-400) 26%, transparent), transparent 60%),
              radial-gradient(90% 60% at 0% 100%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%), var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line), var(--highlight-top), var(--shadow-3); }
.member-card__face.has-grain::after { opacity: calc(var(--grain-opacity) * .35); }
.member-card__top { display: flex; align-items: center; gap: 10px; }
.member-card__logo { width: 34px; height: 34px; }
.member-card__brand { font: 780 .9375rem / 1 var(--font-sans); letter-spacing: -.02em; }
.member-card__est { margin-left: auto; padding: 5px 10px; border-radius: var(--r-full); background: var(--brand-soft); color: var(--fg-accent); font: 700 .6875rem / 1 var(--font-mono); }
.member-card__place { font: 800 2.25rem / 1 var(--font-sans); letter-spacing: -.035em; }
.member-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0; }
.member-card__facts dt { font: 600 .6875rem / 1.2 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--fg-muted); }
.member-card__facts dd { margin: 3px 0 0; font: var(--w-ui) .9375rem / 1.3 var(--font-sans); }
.member-card__crew { display: flex; align-items: center; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.member-card__crew img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg-raised); }
.member-card__crew img + img { margin-left: -10px; }
.member-card__more { display: grid; place-items: center; width: 46px; height: 46px; margin-left: -10px; border-radius: 50%; background: var(--bg-inverse); color: var(--fg-inverse); box-shadow: 0 0 0 3px var(--bg-raised); font: 700 .8125rem / 1 var(--font-sans); }
.member-card__glare { position: absolute; inset: -40%; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgb(255 255 255 / .38), transparent 70%);
  transform: translate(var(--gx, 0), var(--gy, 0)); transition: opacity var(--d-ui) var(--e-out); mix-blend-mode: soft-light; }
.member-card.is-tilting .member-card__glare { opacity: 1; }
.recog { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-8); margin-top: clamp(48px, 7vh, 80px); padding: 22px 28px; border-radius: var(--r-lg); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); }
.recog__label { font: var(--w-strong) var(--text-xs) / 1 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--fg-muted); }
.recog__item { display: flex; align-items: center; gap: 12px; }
.recog__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--fg-accent); }
.recog__mark svg { width: 16px; height: 16px; }
.recog__item > div > b { display: block; font: 700 .9375rem / 1.2 var(--font-sans); }
.recog__item > div > span { display: block; margin-top: 2px; font-size: var(--text-xs); color: var(--fg-muted); }


/* ---------- 07 · Team — #9 hover-stack ----------
   The ref's mechanics (Hyperiux hover-stack, read from its source): cards fanned at a fixed overlap with small rotations;
   the open card straightens, lifts and scales 1.035 on an overshooting curve; cards before it slide left, cards after
   it slide right, so it is fully visible. Our card style, not the ref's. Every move is transform; the ring and the
   deeper shadow of the open card fade in on a pseudo-element (opacity). The list reserves its full height (CLS 0). */
.team { position: relative; padding-block: var(--section-y); overflow-x: clip; }
.team__inner { display: grid; gap: clamp(28px, 4vh, 48px); }
.team__head { display: grid; grid-template-columns: 1fr minmax(0, 26rem); gap: var(--space-8); align-items: end; }
.team__head h2 { margin-top: var(--space-3); font-size: var(--text-h2); }
.team__lead { font-size: var(--text-lead); line-height: var(--lh-lead); color: var(--fg-muted); }
.team-stack {
  --w: 224px; --h: 304px; --o: 112px;           /* card size and the overlap step */
  --push: calc(var(--w) - var(--o) + 14px);     /* how far the neighbours move: the open card ends up fully visible */
  --lead: 2;                                    /* Wilbur's index: he sits near the centre line */
  --shift: -40px;                               /* balances the "whole team" card's extra offset on the right */
  position: relative; height: calc(var(--h) + 96px); margin: 0; padding: 0; list-style: none;
}
.team-card {
  --tx: 0px; --ty: 0px; --r: var(--rot, 0deg); --s: 1;
  position: absolute; top: 56px; left: calc(50% + var(--shift) - var(--w) / 2 + (var(--i) - var(--lead)) * var(--o));
  z-index: calc(var(--i) + 1);
  display: flex; flex-direction: column; width: var(--w); height: var(--h); padding: 12px 12px 18px;
  border-radius: var(--r-lg); background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line), var(--highlight-top), var(--shadow-2);
  transform: translate3d(var(--tx), var(--ty), 0) rotate(var(--r)) scale(var(--s));
  transform-origin: 50% 100%;
  transition: transform 340ms cubic-bezier(.4, 0, .2, 1);
}
.team-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px var(--brand), var(--shadow-3); transition: opacity 300ms var(--e-out); }
.team-card.is-before { --tx: calc(-1 * var(--push)); --ty: -8px; transition: transform 500ms var(--e-out); }
.team-card.is-after  { --tx: var(--push); --ty: 8px; transition: transform 500ms var(--e-out); }
.team-card.is-open { --ty: -28px; --r: 0deg; --s: 1.035; z-index: 20; transition: transform 500ms cubic-bezier(.22, 1.6, .32, 1); }
.team-card.is-open::after { opacity: 1; }
.team-card__photo { position: relative; flex: none; aspect-ratio: 1; border-radius: calc(var(--r-lg) - 12px); overflow: hidden;
  background: radial-gradient(80% 70% at 50% 100%, color-mix(in oklab, var(--violet-400) 30%, transparent), transparent 70%), var(--bg-sunken); }
.team-card__photo img { position: absolute; left: 50%; bottom: -6%; width: 104%; max-width: none; height: auto; transform: translateX(-50%); }
.team-card__name { margin-top: 14px; padding-inline: 6px; font: 750 1.0625rem / 1.2 var(--font-sans); letter-spacing: -.015em; white-space: nowrap; }
.team-card__role { margin-top: 4px; padding-inline: 6px; font-size: var(--text-sm); color: var(--fg-muted); white-space: nowrap; }
/* "Meet the whole team": no photo frame, just the circle; it tucks behind its neighbour (z below Michelle), and sits a
   little further out so its "+" stays visible at rest */
.team-card--all { z-index: 0; left: calc(50% + var(--shift) - var(--w) / 2 + (var(--i) - var(--lead)) * var(--o) + 56px); padding: 0;
  background: color-mix(in oklab, var(--brand-soft) 55%, var(--bg-raised)); }
.team-card__link { display: grid; align-content: center; justify-items: center; gap: 6px; height: 100%; padding: 0 16px;
  border-radius: inherit; color: var(--fg); text-align: center; text-decoration: none; }
.team-card__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.team-card__plus { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 10px; border-radius: 50%;
  background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fg-accent);
  transition: transform var(--d-spring) var(--e-spring); }
.team-card__plus svg { width: 24px; height: 24px; }
.team-card--all.is-open .team-card__plus { transform: rotate(90deg); }
/* its content is always centred, open or tucked (Arthur, 25/09: partly hidden at rest is fine) */
.team-card--all .team-card__name, .team-card--all .team-card__role { margin: 0; padding: 0; white-space: normal; }
@media (prefers-reduced-motion: reduce) { .team-card, .team-card.is-open, .team-card.is-before, .team-card.is-after { transition: none; } }

/* ---------- 07b · Statement — #10 variable-text-proximity + #18 tilt ----------
   A dark band in both themes (color-scheme: dark flips every role inside). Letters are inline-block with widths locked
   at the resting weight; the pointer raises wght and lowers wdth together, so no line ever reflows. */
.statement { color-scheme: dark; --grain-opacity: .16; --grain-blend: screen;
  position: relative; overflow: clip; padding-block: clamp(6rem, 3rem + 7vw, 9rem); /* its own, roomier band (Arthur 28/09) */ background: color-mix(in oklab, var(--night) 72%, #000); color: var(--fg); }
.statement__glow { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 70% at 88% 40%, color-mix(in oklab, var(--violet-600) 55%, transparent), transparent 70%),
              radial-gradient(40% 60% at 0% 100%, color-mix(in oklab, var(--pink-700) 28%, transparent), transparent 70%); }
.statement__inner { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(40px, 5vw, 88px); align-items: center; }
.statement__figure { display: grid; gap: var(--space-7); margin: 0; }
/* Archivo until the statement nears the viewport; then the 28 KB statement cut (widths re-locked on load) */
.vtp { font: 400 clamp(2.5rem, 1rem + 3.2vw, 3.75rem) / 1.12 var(--font-sans); letter-spacing: -.015em;
  cursor: default; -webkit-user-select: none; user-select: none; }
.statement.is-near .vtp { font-family: 'Roboto Flex Statement', var(--font-statement); }
.vtp-w { white-space: nowrap; }
.vtp-ch { display: inline-block; font-variation-settings: "wght" 400, "wdth" 100; }
.statement__by { display: flex; align-items: center; gap: 14px; font-size: var(--text-body); color: var(--fg-muted); }
.statement__by b { color: var(--fg); font-weight: 700; }
.statement__dash { width: 40px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.statement__photo { perspective: 900px; }
.statement__float { animation: statement-float 6s ease-in-out infinite; }
@keyframes statement-float { 50% { transform: translateY(-12px); } }
.statement__card { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-lg); rotate: 4deg;
  background: radial-gradient(90% 70% at 50% 100%, color-mix(in oklab, var(--pink-500) 35%, transparent), transparent 70%), var(--grad-brand);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 30px 60px -20px rgb(0 0 0 / .7);
  transform-style: preserve-3d; transition: transform var(--d-spring) var(--e-spring); }
.statement__card img { position: absolute; left: 50%; bottom: -4%; width: 118%; max-width: none; height: auto; transform: translateX(-50%); }
.statement__card.is-tilting .member-card__glare { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .statement__float { animation: none; } }

/* ---------- 08 · Testimonials — #22 layout ----------
   #22's no-wants applied: rounded cards (not square), no hashtag border, a raised surface with a gradient mark (not
   washed out), the quote glyph centred in its circle, generous right padding, one text size for all three. */
.testimonials { position: relative; padding-block: var(--section-y); }
.testimonials__inner { display: grid; gap: clamp(40px, 6vh, 64px); }
.testimonials__head { display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.testimonials__head h2 { font-size: var(--text-h2); }
.testimonials__lead { max-width: 34rem; font-size: var(--text-lead); line-height: var(--lh-lead); color: var(--fg-muted); }
.tst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); align-items: start;
  width: min(100%, 73rem); margin: 0 auto; padding: 0; list-style: none; }
.tst-grid > :nth-child(2) { margin-top: 48px; }
.tst-grid > :nth-child(3) { margin-top: 96px; }
.tst-card figure { display: grid; gap: var(--space-5); height: 100%; margin: 0; padding: 30px 40px 30px 30px; border-radius: var(--r-xl);
  background: radial-gradient(90% 60% at 100% 0%, color-mix(in oklab, var(--violet-400) 14%, transparent), transparent 70%), var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line), var(--highlight-top), var(--shadow-2); }
.tst-card__top { display: flex; align-items: center; justify-content: space-between; }
.tst-card__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color: var(--on-brand); }
.tst-card__mark svg { width: 20px; height: 20px; }
.tst-card__stars { display: flex; gap: 2px; color: var(--accent); }
.tst-card__stars svg { width: 16px; height: 16px; }
.tst-card blockquote p { font-size: 1.0625rem; line-height: 1.6; color: var(--fg); }
.tst-card mark { color: inherit; font-weight: 650; background: linear-gradient(transparent 60%, color-mix(in oklab, var(--accent) 24%, transparent) 60%); }
.tst-card__who { display: flex; align-items: center; gap: 12px; padding-top: var(--space-5); border-top: 1px solid var(--line); }
.tst-card__avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: #fff; font: 700 .8125rem / 1 var(--font-sans); }
.tst-grid > :nth-child(1) .tst-card__avatar { background: var(--violet-700); }
.tst-grid > :nth-child(2) .tst-card__avatar { background: var(--pink-700); }
.tst-grid > :nth-child(3) .tst-card__avatar { background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tst-card__who b { display: block; font: 700 .9375rem / 1.25 var(--font-sans); }
.tst-card__who span span { display: block; margin-top: 2px; font-size: var(--text-sm); color: var(--fg-muted); }
.testimonials__foot { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--text-sm); color: var(--fg-muted); }
.testimonials__foot svg { width: 16px; height: 16px; color: var(--accent); }
.testimonials__foot b { color: var(--fg); }
.testimonials__foot a { color: var(--fg-accent); font-weight: var(--w-ui); text-underline-offset: 3px; }


/* ---------- 08c · Blog — #12 (tommyjepsen): 3 cards, lots of air. No tilt, no motion beyond the reveal; hover only tints
   the image and underlines the title. The whole card is the hitbox (the title link stretches over it). ---------- */
/* Testimonials and Blog share the surface: the full rhythm on both sides read as a hole (Arthur, 25/09), so the blog
   opens at half the rhythm */
.blog { position: relative; padding-block: calc(var(--section-y) * .5) var(--section-y); }
.blog__inner { display: grid; gap: clamp(40px, 6vh, 64px); }
.blog__head { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: end; }
.blog__head h2 { margin-top: var(--space-3); font-size: var(--text-h2); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.2vw, 48px); margin: 0; padding: 0; list-style: none; }
/* each post is a card (Arthur, 25/09: the loose elements needed a container) */
.blog-card { position: relative; display: flex; flex-direction: column; gap: var(--space-5); height: 100%; padding: 12px 12px 24px; border-radius: var(--r-xl);
  background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line), var(--highlight-top), var(--shadow-2); }
.blog-card > :not(.blog-card__media) { margin-inline: 12px; }
.blog-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--r-xl) - 12px); background: var(--bg-sunken); }
/* the brand thumbnails (.blog-thumb / .bt-*) are shared by both widths: sections.css */
.blog-card { transition: opacity var(--d-micro) var(--e-out); }
.blog-card:hover { opacity: .78; }   /* the ref's hover: the whole card fades a little, nothing moves */
.blog-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--text-xs); color: var(--fg-muted); }
.blog-card__tag { padding: 5px 10px; border-radius: var(--r-full); background: var(--brand-soft); color: var(--fg-accent); font: var(--w-strong) .75rem / 1 var(--font-sans); }
.blog-card__title { font: 650 var(--text-h4) / 1.28 var(--font-sans); letter-spacing: -.018em; text-wrap: balance; }
.blog-card__link { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color var(--d-micro) var(--e-out); }
.blog-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.blog-card:hover .blog-card__link { text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) { .blog-card { transition: none; } }
.blog-card__link:focus-visible { outline: none; }
:root:not([data-input="pointer"]) .blog-card:has(.blog-card__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.blog-card__excerpt { margin-top: calc(-1 * var(--space-2)); color: var(--fg-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.blog-card__author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: var(--space-1); font-size: var(--text-sm); color: var(--fg-muted); }
.blog-card__initials { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); }
.blog-card__initials svg { width: 22px; height: 22px; }
.blog-card__author b { color: var(--fg); font-weight: var(--w-strong); }
.blog-grid > :nth-child(2) { --i: 1; } .blog-grid > :nth-child(3) { --i: 2; }

/* ---------- 09 · FAQ — model A (faq-05 split + faqs-01 small CTA) ----------
   #24 no-want: no box, border, fill or ring around an item or its answer on click — only the hairline dividers
   between questions. The keyboard keeps the system focus ring (:focus-visible). The list reserves the tallest open
   state (sections.js), so opening/closing never moves the page; the answer fades in and settles (opacity/transform). */
.faq { position: relative; padding-block: var(--section-y); }
/* the faq-05 frame: one hairline around two columns, a hairline between them (a frame, not a filled card) */
.faq__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--line); }
.faq__intro { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-10); padding: clamp(32px, 4vw, 56px); border-right: 1px solid var(--line); }
.faq__text { display: grid; justify-items: start; gap: var(--space-5); }
.faq__text h2 { margin-top: calc(var(--space-3) - var(--space-5)); font-size: var(--text-h2); }
.faq__lead { max-width: 26rem; font-size: var(--text-lead); line-height: var(--lh-lead); color: var(--fg-muted); }
/* the faqs-01 strip: faces + line + a quiet button (its dashed border is a global no-want: a sunken surface instead) */
.faq-help { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 14px 14px 16px; border-radius: var(--r-lg); background: var(--bg-sunken); }
.faq-help__faces { display: flex; }
.faq-help__faces img { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-raised); box-shadow: 0 0 0 3px var(--bg-sunken); }
.faq-help__faces img + img { margin-left: -10px; }
.faq-help__text b { display: block; white-space: nowrap; font: var(--w-strong) .9375rem / 1.25 var(--font-sans); }
.faq-help__text span { display: block; margin-top: 2px; font-size: var(--text-xs); color: var(--fg-muted); }
.faq-help__btn { white-space: nowrap; background: var(--bg-raised); }
.faq-list { align-self: start; padding: clamp(16px, 2vw, 28px) clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); }
/* E04: "Still have questions?" follows the questions in the DOM (the phone reads it after them). Desktop: the same look —
   the intro column holds the text (row 1) and the help card (row 2); the list spans both rows on the right and draws
   the column divider (its border sits where the intro's used to: margin-left −1px) */
.faq__inner { grid-template-rows: 1fr auto; }
.faq__intro { grid-column: 1; grid-row: 1; padding-bottom: 0; border-right: 0; padding-right: calc(clamp(32px, 4vw, 56px) + 1px); }   /* +1px: the old border's width, so every line wraps as in E03 */
.faq-list { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; margin-left: -1px; border-left: 1px solid var(--line); }
.faq-help { grid-column: 1; grid-row: 2; margin: var(--space-10) calc(clamp(32px, 4vw, 56px) + 1px) clamp(32px, 4vw, 56px) clamp(32px, 4vw, 56px); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item__h { margin: 0; font: inherit; letter-spacing: normal; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 24px 0; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--fg); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  font: 700 clamp(1.0625rem, .96rem + .3vw, 1.1875rem) / 1.3 var(--font-sans); letter-spacing: -.016em; }
.faq-q__icon { position: relative; isolation: isolate; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: var(--fg); }
.faq-q__icon::before, .faq-q__icon::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transition: opacity var(--d-ui) var(--e-out); }
.faq-q__icon::before { background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--line); }
.faq-q__icon::after { background: var(--grad-brand); opacity: 0; }
.faq-q__icon svg { width: 16px; height: 16px; transition: transform var(--d-ui) var(--e-out); }
.faq-q:hover .faq-q__icon::before { box-shadow: inset 0 0 0 1px var(--line-strong); }
.faq-q[aria-expanded="true"] .faq-q__icon { color: var(--on-brand); }
.faq-q[aria-expanded="true"] .faq-q__icon::after { opacity: 1; }
.faq-q[aria-expanded="true"] .faq-q__icon svg { transform: rotate(45deg); }
.faq-a > p { max-width: 38rem; padding: 0 60px 28px 0; color: var(--fg-muted); font-size: var(--text-body); line-height: var(--lh-body);
  transition: opacity var(--d-ui) var(--e-out), transform var(--d-ui) var(--e-out); }
.faq-a.is-entering > p { opacity: 0; transform: translateY(-8px); transition: none; }
.faq-a a { color: var(--fg-accent); font-weight: var(--w-ui); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html:not(.js) .faq-a[hidden] { display: block; content-visibility: visible; }   /* no JS: every answer readable */
@media (prefers-reduced-motion: reduce) {
  .faq-a > p, .faq-q__icon svg { transition: none; }
  .faq-a.is-entering > p { opacity: 1; transform: none; }
}

/* ---------- 10 · Final CTA + contact — #2 button, #27 contact card (no corner crosses). Background: the About topo
   lines (#1), accented (Arthur, 25/09: it replaces the #4 grid): a heavier stroke in the brand gradient, strongest at
   the section's edges and faded behind the card. Static. ---------- */
.cta { position: relative; isolation: isolate; overflow: clip; padding-block: var(--section-y); }
.cta__topo { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, color-mix(in oklab, var(--violet-400) 72%, transparent), color-mix(in oklab, var(--pink-400) 60%, transparent));
  -webkit-mask-image: url("../sg/textures/topo-lines-bold.svg"), radial-gradient(62% 70% at 50% 50%, transparent 30%, #000 85%);
  -webkit-mask-size: 100% 100%, 100% 100%;
  -webkit-mask-composite: source-in;
  mask-image: url("../sg/textures/topo-lines-bold.svg"), radial-gradient(62% 70% at 50% 50%, transparent 30%, #000 85%);
  mask-size: 100% 100%, 100% 100%;
  mask-composite: intersect; }
.cta__glow { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(45% 60% at 18% 30%, color-mix(in oklab, var(--violet-400) 16%, transparent), transparent 70%),
              radial-gradient(35% 50% at 85% 20%, color-mix(in oklab, var(--pink-400) 12%, transparent), transparent 70%); }
.cta__copy { display: grid; justify-items: start; gap: var(--space-5); }
.cta__copy h2 { margin-top: calc(var(--space-3) - var(--space-5)); font-size: var(--text-h2); }
.cta__lead { max-width: 36rem; font-size: var(--text-lead); line-height: var(--lh-lead); color: var(--fg-muted); }
.cta__promises { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: var(--text-sm); font-weight: var(--w-ui); color: var(--fg); }
.cta__promises li { display: inline-flex; align-items: center; gap: 8px; }
.cta__promises svg { width: 16px; height: 16px; padding: 3px; box-sizing: content-box; border-radius: 50%; background: var(--brand-soft); color: var(--fg-accent); }

/* the #27 card: offer + details on the left, the audit form on a sunken panel on the right. Rounded (the system), no
   corner crosses (#27 no-want). Opaque, so the #4 grid only shows around and below it. */
.contact-card { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--r-xl);
  background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line), var(--highlight-top), var(--shadow-3); }
.contact-card__main { display: grid; align-content: space-between; gap: var(--space-9); padding: clamp(32px, 4vw, 56px); }
/* E04: the details follow the form in the DOM (the phone reads copy → form → details). Desktop: same look — the main
   column holds the copy (row 1) and the details (row 2), the form spans both rows on the right */
.contact-card { grid-template-rows: 1fr auto; }
.contact-card__main { grid-column: 1; grid-row: 1; padding-bottom: var(--space-9); }
.contact-card__details { grid-column: 1; grid-row: 2; padding: 0 clamp(32px, 4vw, 56px) clamp(32px, 4vw, 56px); }
.contact-card__form { grid-column: 2; grid-row: 1 / span 2; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-6); padding-top: var(--space-7); border-top: 1px solid var(--line); }
.contact-info__item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.contact-info__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: var(--r-md); background: var(--bg-sunken); color: var(--fg); }
.contact-info__icon svg { width: 20px; height: 20px; }
.contact-info__label { display: block; font: var(--w-strong) .9375rem / 1.25 var(--font-sans); color: var(--fg); }
.contact-info__value { display: block; margin-top: 3px; font-size: var(--text-sm); line-height: 1.35; color: var(--fg-muted); overflow-wrap: anywhere; }
a.contact-info__value:hover { color: var(--fg-accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-card__form { display: grid; align-items: center; padding: clamp(28px, 3vw, 44px); background: var(--bg-sunken); border-left: 1px solid var(--line); }
.audit-slot { min-height: 634px; }   /* E05: the game plan's tallest question step at desktop (Q2/Q3, measured): nothing moves when it arrives or between questions */
.audit-form { display: grid; gap: var(--space-4); }
.audit-form__title { margin-bottom: var(--space-1); font: 750 var(--text-h4) / 1.2 var(--font-sans); letter-spacing: -.018em; }
.audit-form__submit { width: 100%; margin-top: var(--space-2); }
.audit-form__note { font-size: var(--text-xs); color: var(--fg-muted); text-align: center; }
.audit-form__note a { color: var(--fg); font-weight: var(--w-strong); }
.field { display: grid; gap: 6px; }
.field__label { font: var(--w-strong) var(--text-xs) / 1.2 var(--font-sans); color: var(--fg); }
.field__label span { font-weight: 400; color: var(--fg-muted); }
.input { width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: var(--bg-raised); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong); font: 400 var(--text-body) / 1 var(--font-sans); }
.input::placeholder { color: var(--fg-muted); } /* fg-subtle on bg-raised = 4.22:1 light (fails AA); still reads as a hint next to --fg values */
.input:hover { box-shadow: inset 0 0 0 1px var(--fg-muted); }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------- 11 · Footer ----------
   The page's sunken surface (Arthur, 25/09: chosen over the dark band). NAP + a static map card that opens Google Maps. */
.site-footer { position: relative; padding-block: clamp(64px, 7vw, 104px) 28px; background: var(--bg-sunken); color: var(--fg); }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .9fr); gap: clamp(32px, 4vw, 64px); }
.site-footer__brand { grid-row: span 2; display: grid; justify-items: start; align-content: start; gap: var(--space-6); }
.site-footer__col:last-of-type { grid-row: span 2; }
.site-footer__logo { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); font: 780 1.125rem / 1 var(--font-sans); letter-spacing: -.02em; }
.site-footer__logo svg { width: 42px; height: 42px; }
.site-footer__tag { max-width: 21rem; font: 720 1.5rem / 1.2 var(--font-sans); letter-spacing: -.022em; text-wrap: balance; }
.site-footer__nap { display: grid; gap: 12px; font-style: normal; font-size: var(--text-sm); line-height: 1.45; color: var(--fg-muted); }
.site-footer__row { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.site-footer__row svg { width: 18px; height: 18px; margin-top: 1px; color: var(--fg-accent); }
.site-footer__row a { color: var(--fg); font-weight: var(--w-ui); }
.site-footer__row a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the map card: a static brand-duotone map, one per theme as a CSS background (only the shown one is fetched, and
   only once the footer renders) */
/* under the Services + Company columns, closing the gap to the brand column's height */
.footer-map { position: relative; grid-column: 2 / 4; grid-row: 2; align-self: end; }
.footer-map__link { position: relative; display: block; height: 176px; overflow: hidden; border-radius: var(--r-lg); color: var(--fg); isolation: isolate; }
.footer-map__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.footer-map__img { position: absolute; inset: 0; z-index: -1; background: url("assets/map/office-light.webp") 50% 50% / cover no-repeat var(--bg-sunken);
  transition: transform var(--d-ui) var(--e-out); }
:root[data-theme="dark"] .footer-map__img { background-image: url("assets/map/office-dark.webp"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer-map__img { background-image: url("assets/map/office-dark.webp"); } }
.footer-map__link:hover .footer-map__img { transform: scale(1.04); }
.footer-map__pin { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 50% 0;
  background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-2); transform: translate(-50%, -100%) rotate(-45deg); }
.footer-map__pin svg { width: 18px; height: 18px; transform: rotate(45deg); }
.footer-map__cta { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-full);
  background: var(--frost-bg); box-shadow: inset 0 0 0 1px var(--frost-line), var(--shadow-1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: var(--w-ui) var(--text-xs) / 1 var(--font-sans); }
.footer-map__cta svg { width: 14px; height: 14px; }
.footer-map__credit { position: absolute; right: 8px; bottom: 6px; font-size: 10px; line-height: 1; color: var(--fg-muted); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .footer-map__img { transition: none; } }
.site-footer__social { display: flex; gap: 8px; }
.site-footer__social a { position: relative; isolation: isolate; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-button); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.site-footer__social a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--brand-soft); opacity: 0; transition: opacity var(--d-micro) var(--e-out); }
.site-footer__social a:hover::before { opacity: 1; }
.site-footer__social svg { width: 19px; height: 19px; }
.site-footer__col h2 { margin-bottom: var(--space-5); font: var(--w-strong) var(--text-xs) / 1.2 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--fg-muted); }
.site-footer__col ul { display: grid; gap: 4px; }
.site-footer__col a { display: block; padding-block: 5px; font-size: var(--text-sm); font-weight: var(--w-ui); color: var(--fg); }
.site-footer__col a:hover { color: var(--fg-accent); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__more { margin-top: 10px; font-size: var(--text-sm); color: var(--fg-muted); }
.site-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(48px, 6vw, 88px);
  padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--text-xs); color: var(--fg-muted); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer__legal a { display: block; padding-block: 4px; }
.site-footer__legal a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }


/* ---------- performance: sections below the fold skip layout and paint until they near the viewport ----------
   The page's first full layout (forced when nav.js measures its pill on load) had grown to ~130 ms with batch 3, which
   pushed TBT to ~85 ms. content-visibility:auto keeps the far sections out of that layout; `auto` in
   contain-intrinsic-size remembers each section's real height once rendered. The estimates are CONTENT-box heights
   (padding excluded) measured at 1440 — wrong estimates make the page jump when a section above the viewport renders. Not on Services (its pin needs real
   geometry) nor on the Statement (it measures its letters). Measured: TBT median 85 → ~48 ms. */
#cases, #how, #about, #team, #testimonials, #blog, #faq, #contact, .site-footer { content-visibility: auto; }
#cases { contain-intrinsic-size: auto 864px; }
#how { contain-intrinsic-size: auto 469px; }
#about { contain-intrinsic-size: auto 566px; }
#team { contain-intrinsic-size: auto 580px; }
#testimonials { contain-intrinsic-size: auto 711px; }
#blog { contain-intrinsic-size: auto 658px; }
#faq { contain-intrinsic-size: auto 615px; }
#contact { contain-intrinsic-size: auto 605px; }
.site-footer { contain-intrinsic-size: auto 633px; }
