/* ==========================================================================
   Tradehouse site styles
   Sections map 1:1 to future Astro components (see README).
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--seo); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 16px; }

.i-sm { width: 18px; height: 18px; flex: none; }

/* ---------- Type ---------- */
.display, .h2, .h3, .h4 {
  font-family: var(--font-display); font-stretch: 112%; letter-spacing: -.02em;
}
.display { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .98; font-weight: 800; }
.h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; font-weight: 800; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; font-weight: 750; }
.h4 { font-size: 1.15rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36ch; }

.accent { color: var(--svc); }

/* ---------- Swatch (service colour square) ---------- */
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--svc, var(--ink)); flex: none; }
.swatch-lg { width: 14px; height: 14px; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: var(--r);
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .i-sm { transition: transform .2s var(--ease); }
.btn:hover .i-sm { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2b2f; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
/* On-dark variants */
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { background: var(--surface-2); }
/* On-volt variant (footer CTA band) */
.btn-on-volt { background: var(--ink); color: #fff; }
.btn-on-volt:hover { background: #fff; color: var(--ink); }
.btn-ghost-dark { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; background: #fff; color: var(--ink); }
.btn-pill { border-radius: var(--r-pill); }  /* used once: header CTA */
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.text-link .i-sm { transition: transform .2s var(--ease); }
.text-link:hover .i-sm, a:hover > .text-link .i-sm { transform: translateX(3px); }

/* ==========================================================================
   TILE: the signature interaction.
   Rests slightly off the background, fills with its service colour/gradient
   on hover. Colour comes from [data-svc] on the tile or an ancestor.
   ========================================================================== */
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface-2); color: var(--ink); border-radius: var(--r);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--svc, var(--ink)) 0%, var(--svc-2, var(--ink-2)) 100%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.tile:hover, .tile:focus-visible { color: var(--svc-ink, #fff); }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile:hover .swatch, .tile:focus-visible .swatch { background: currentColor; }
.tile .i-sm { transition: transform .3s var(--ease); }
.tile:hover .i-sm { transform: translateX(4px); }

/* Mono tile: fills ink rather than a service colour */
.tile-mono::before { background: var(--ink); }
.tile-mono:hover, .tile-mono:focus-visible { color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 244, 246, .92); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 68px; width: auto; }
.logo-dark img { height: 72px; filter: invert(1); } /* reversed logo on dark ground */

.nav { flex: 1; height: 100%; }
.nav-list { display: flex; align-items: stretch; height: 100%; gap: 4px; }
.nav-item { position: relative; display: flex; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 100%; padding: 0 14px; font-weight: 500; font-size: .98rem; color: var(--ink-2);
  transition: color .2s;
}
.nav-link:hover, .nav-trigger[aria-expanded="true"] { color: var(--ink); }
.chev { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

.header-cta { min-height: 44px; padding: 0 20px; margin-left: auto; }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-left: 8px; }
.burger svg { width: 24px; height: 24px; }
.burger .i-close { display: none; }

/* Dropdowns: flush against the trigger (top:100%, no margin); spacing is padding inside */
.menu {
  position: absolute; top: 100%; left: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 0 24px 48px -24px rgba(11,11,12,.25);
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.has-menu.is-open > .menu {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s;
}
/* Hover-open only on real pointer devices, desktop layout */
@media (hover: hover) and (min-width: 1024px) {
  .has-menu:hover > .menu {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s;
  }
  .has-menu:hover > .nav-trigger .chev { transform: rotate(180deg); }
}

.menu-list { min-width: 300px; padding: 10px; }
.menu-list a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 500; }
.menu-list a:hover { background: var(--bg); }
.menu-list .menu-more { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sm) var(--r-sm); color: var(--ink-2); font-size: .94rem; }

.menu-mega { width: 700px; padding: 24px; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mega-col { display: flex; flex-direction: column; }
.mega-col a { padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: .96rem; }
.mega-col a:hover { background: var(--bg); color: var(--ink); }
.mega-col .mega-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 750; color: var(--ink); font-size: 1.05rem;
}
.mega-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .94rem; font-weight: 500;
}
.mega-foot > a { display: inline-flex; align-items: center; gap: 8px; }
.mega-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega-foot-group { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ink-3); }
.mega-foot-group a { color: var(--ink); }
.mega-foot-group .i-sm { width: 14px; height: 14px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 64px);
  background: var(--dark); color: #fff;
}
/* Backdrop: carpenter still, lightly blurred (scaled so the soft edge never shows) */
.hero > .hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #6b5440; }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px); transform: scale(1.04); }
.hero-media::after { /* legibility shade, heaviest behind the headline */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,12,.82) 0%, rgba(11,11,12,.6) 55%, rgba(11,11,12,.45) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero-copy .btn-row { margin-top: 8px; }
.hero .display { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
.hero .lead { color: rgba(255,255,255,.85); }

.router { display: grid; gap: 8px; }
.router-title { font-weight: 600; color: rgba(255,255,255,.75); font-size: .95rem; margin-bottom: 4px; }
.router-row { display: flex; align-items: center; gap: 14px; padding: 20px 20px; font-weight: 600; font-size: 1.02rem; }
.hero-router { grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 5vw, 64px); }
.hero-router .router-title { grid-column: 1 / -1; }
/* On-dark resting state for tiles over the hero photo */
.hero .router-row { padding: 18px; font-size: .96rem; background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero .router-row:hover, .hero .router-row:focus-visible { color: var(--svc-ink); }

/* ---------- Hero visual: search → listing → enquiry (component: SearchDemo.astro) ----------
   Illustrative, generic UI: no Google branding, and "Your business" sits among the
   results rather than jumping to #1, so it doesn't imply a ranking promise.
   State classes on .phone are set by site.js: s-map, s-results, s-you, s-toast */
.hero-visual { position: relative; isolation: isolate; display: flex; justify-content: center; }
.hero-visual::before { /* volt shape backdrop (transparent PNG made from homepage-hero-shape) */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(600px, 125%); aspect-ratio: 1; transform: translate(-47%, -47%);
  background: url(../img/blobs/homepage-hero-shape.webp) center / contain no-repeat;
}
.phone {
  position: relative; overflow: hidden; width: 300px; height: 540px;
  display: flex; flex-direction: column; gap: 10px; padding: 16px 14px;
  background: #111214; border: 1px solid #2a2b2f; border-radius: 36px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 6px #0b0b0c;
}
.ps-status { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px 0; font-size: .72rem; font-weight: 600; color: #c9cbd0; }
.ps-status-icons i { display: inline-block; width: 4px; background: #c9cbd0; margin-left: 2px; border-radius: 1px; }
.ps-status-icons i:nth-child(1) { height: 5px; } .ps-status-icons i:nth-child(2) { height: 7px; } .ps-status-icons i:nth-child(3) { height: 9px; }
.ps-search { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; background: #1f2023; border-radius: 12px; font-size: .92rem; }
.ps-search svg { width: 16px; height: 16px; color: #8a8c92; flex: none; }
.ps-caret { width: 1.5px; height: 17px; background: var(--seo); margin-left: -6px; animation: ps-blink 1s steps(1) infinite; }
@keyframes ps-blink { 50% { opacity: 0; } }
.ps-map { position: relative; height: 118px; border-radius: 12px; overflow: hidden; opacity: 0; transition: opacity .5s var(--ease); }
.ps-map svg { width: 100%; height: 100%; }
.pin {
  position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: #6b6d73;
  opacity: 0; transform: translateY(-12px) rotate(-45deg); transition: opacity .3s, transform .45s var(--ease);
}
.pin-you { width: 18px; height: 18px; background: var(--seo); }
.s-map .ps-map { opacity: 1; }
.s-map .pin { opacity: 1; transform: rotate(-45deg); }
.s-map .pin:nth-of-type(1) { transition-delay: .15s; } .s-map .pin:nth-of-type(2) { transition-delay: .3s; } .s-map .pin:nth-of-type(3) { transition-delay: .45s; }
.s-you .pin-you { box-shadow: 0 0 0 6px rgba(0,87,255,.3); }
.ps-results { display: grid; gap: 8px; }
.res {
  display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: #1a1b1e;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .35s, background .35s;
}
.s-results .res { opacity: 1; transform: none; }
.s-results .res:nth-child(2) { transition-delay: .12s; } .s-results .res:nth-child(3) { transition-delay: .24s; }
.res .sk { display: block; height: 8px; border-radius: 4px; background: #2c2e33; }
.res .sk-name { width: 55%; height: 10px; }
.res .sk-meta { width: 40%; }
.sk-stars { display: block; width: 58px; height: 8px; background: repeating-linear-gradient(90deg, #3a3c42 0 9px, transparent 9px 12px); }
.res-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.res-you strong { font-size: .92rem; }
.res .stars { color: var(--web); font-size: .8rem; letter-spacing: 1px; }
.res-meta { font-size: .78rem; color: #a4a6ac; }
.res-actions { display: flex; gap: 6px; margin-top: 2px; }
.res-btn { font-size: .74rem; font-weight: 600; padding: 5px 11px; border-radius: 6px; border: 1px solid #3a3c42; }
.res-call { background: var(--ads); border-color: var(--ads); color: var(--ink); }
.s-you .res-you { background: #14203a; box-shadow: 0 0 0 2px var(--seo); }
.ps-toast {
  position: absolute; left: 10px; right: 10px; top: 12px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 16px 30px -10px rgba(0,0,0,.7);
  transform: translateY(-140%); transition: transform .5s var(--ease);
}
.ps-toast b { display: block; font-size: .86rem; }
.ps-toast span:not(.toast-dot) { font-size: .8rem; color: var(--ink-2); }
.s-toast .ps-toast { transform: none; }
.toast-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--web); box-shadow: 0 0 0 4px rgba(198,255,0,.3); }
.router-label { flex: 1; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .75); }
.section-alt { background: var(--surface); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .section-lead { color: var(--on-dark-2); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 720px; }
.section-head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-row > div { display: grid; gap: 14px; max-width: 640px; }
.section-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; }

/* ---------- Image placeholders: black/grey diagonal stripes ---------- */
.ph {
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(-45deg, #1b1c1f 0 14px, #2c2d31 14px 28px);
}
.ph-label {
  position: absolute; left: 16px; bottom: 16px;
  font: 500 .78rem/1 var(--font-body); letter-spacing: .02em; color: #d4d6db;
  background: rgba(11,11,12,.8); padding: 7px 10px; border-radius: var(--r-sm);
}

/* ---------- Services: media beside content ---------- */
.svc-row {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.svc-row:first-of-type { border-top: 0; padding-top: 0; }
.svc-row.flip .media { order: 2; }
.media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--svc); }
/* Illustrations sit on the exact service colour, so contain + matching fill reads as one image at any ratio */
.media > img { width: 100%; height: 100%; object-fit: contain; }
.svc-body { display: grid; gap: 18px; align-content: center; }
.svc-body > p { color: var(--ink-2); font-size: 1.08rem; max-width: 46ch; }
.svc-body .h3 { display: flex; align-items: center; gap: 14px; }
.svc-body .text-link { justify-self: start; margin-top: 6px; }
.tier-links { display: grid; gap: 8px; margin-top: 6px; }
.tier-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 600; }

/* ---------- Packages ---------- */
.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pkg { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-lg); }
.pkg::before { background: linear-gradient(120deg, var(--g1) 0%, var(--g2) 100%); }
.pkg:hover, .pkg:focus-visible { color: var(--g-ink); }
.pkg > p { color: inherit; opacity: .85; max-width: 44ch; }
.pkg-includes { display: grid; gap: 8px; margin-block: 4px 8px; }
.pkg-includes li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.pkg:hover .pkg-includes .swatch { background: currentColor; }
.pkg .text-link { justify-self: start; }

/* ---------- Industries ---------- */
.trade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trade { display: grid; gap: 8px; padding: 26px 24px 58px; min-height: 170px; }
.trade p { color: var(--ink-3); transition: color .3s; }
.trade:hover p { color: #c5c7cc; }
.trade-arrow { position: absolute; left: 24px; bottom: 22px; }
.trade-more { background: transparent; border: 1.5px dashed #b9bcc2; }
.trade-more:hover { border-color: var(--ink); }

/* ---------- Work: Netflix-style expanding cards ---------- */
.cases { display: flex; gap: 12px; height: 480px; }
.case {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--r-lg); color: #fff;
  transition: flex-grow .55s var(--ease);
}
.case-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.1) 30%, rgba(11,11,12,.85) 100%); }
.case::after { /* service colour edge, grows when opened */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--svc);
  transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease);
}
.case-logo {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
  opacity: 0; transition: opacity .3s var(--ease);
}
/* Client logo: white, 90% opacity, centred. A soft shadow keeps it legible on bright photos */
.case-logo img { width: clamp(96px, 26%, 150px); height: auto; opacity: .9; filter: drop-shadow(0 4px 18px rgba(11,11,12,.45)); }
.case-logo span { /* placeholder until a client's logo is supplied */
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1rem; letter-spacing: .12em;
  border: 2px solid #fff; padding: 12px 16px; border-radius: var(--r-sm); white-space: nowrap;
}
.case-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 10px; }
.case-trade { font-weight: 600; font-size: .95rem; }
/* Collapsed: trade name runs vertically up the card */
.case-spine {
  position: absolute; left: 20px; bottom: 22px; writing-mode: vertical-rl; transform: rotate(180deg);
  font-weight: 600; font-size: .95rem; white-space: nowrap; transition: opacity .25s var(--ease) .25s;
}
.case.is-open .case-spine { opacity: 0; transition-delay: 0s; }
.case-more { display: grid; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .15s var(--ease), transform .3s var(--ease), visibility 0s linear .15s; }
.case-name { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.7rem; line-height: 1.05; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .92rem; color: #d8dade; }
.case-tags li { display: inline-flex; align-items: center; gap: 8px; }
.case .text-link { justify-self: start; }

/* Open state (class set by JS on hover/focus; first card open by default) */
.case.is-open { flex-grow: 3.2; }
.case.is-open .case-logo { opacity: 1; transition-delay: .2s; }
.case.is-open .case-more { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease) .2s, transform .35s var(--ease) .2s, visibility 0s; }
.case.is-open::after { transform: scaleX(1); }
.case.is-open .case-img { transform: scale(1.04); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.why-grid > div:first-child { display: grid; gap: 20px; }
.why-grid .btn-row { margin-top: 8px; }
.why-list { display: grid; gap: 0; }
.why-list li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list p { color: var(--ink-2); margin-top: 4px; }
.why-icon { width: 24px; height: 24px; margin-top: 1px; }

/* ---------- Guides ---------- */
.guide-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.guide { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: 24px; min-height: 240px; }
.guide-cat { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-2); transition: color .3s; }
.guide:hover .guide-cat { color: inherit; }

/* ---------- Audit (gateway) ---------- */
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.audit-copy { display: grid; gap: 22px; }
.reassure { display: grid; gap: 10px; font-weight: 600; }
.reassure li { display: flex; align-items: center; gap: 12px; }

/* Callout: grey with an "i" icon */
.callout {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start;
  background: var(--surface-2); border-radius: var(--r); padding: 18px 20px; color: var(--ink-2); font-size: .98rem;
}
.callout-icon { width: 22px; height: 22px; color: var(--ink-3); margin-top: 1px; }
.callout a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.audit-form {
  display: grid; gap: 16px; background: var(--surface); padding: clamp(22px, 3.4vw, 36px);
  border-radius: var(--r-lg); border: 1px solid var(--line);
}
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .94rem; }
.field input {
  width: 100%; min-height: 50px; padding: 0 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid transparent; border-radius: var(--r);
  transition: border-color .2s, background .2s;
}
.field input:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input::placeholder { color: #9a9ca2; }
.req { color: var(--ads); margin-left: 2px; }
.req-note { font-size: .88rem; color: var(--ink-3); }
.audit-form .btn-block { margin-top: 6px; }
.form-done { display: grid; gap: 6px; padding: 8px 0; }
.form-done[hidden] { display: none; }
.form-done p { color: var(--ink-2); }
.audit-form.is-done > :not(.form-done) { display: none; }

/* ==========================================================================
   INNER PAGES (shared)
   ========================================================================== */
/* Breadcrumbs: every page except Home */
.crumbs { padding-top: 24px; font-size: .9rem; color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.page-hero { padding-block: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px); }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.page-hero-copy { display: grid; gap: 22px; justify-items: start; }
.display-sm { font-size: clamp(2.3rem, 5vw, 4.2rem); }

/* Floating blob: pages other than Home. Source art sits on pure white,
   which multiply blends away on any light section. */
.blob { width: 100%; max-width: 440px; height: auto; justify-self: center; mix-blend-mode: multiply; }

/* ---------- Lead Value Calculator ---------- */
.calc-section { padding-top: clamp(24px, 4vw, 48px); }
.calc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.calc-form {
  display: grid; gap: 26px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 40px);
}
.calc-hint { color: var(--ink-2); margin-top: -14px; }
.field-help { font-size: .92rem; color: var(--ink-3); margin-top: -3px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-out { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.25rem; }
.affix { position: relative; }
.affix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--ink-2); pointer-events: none; }
.affix input { padding-left: 30px; }
.field input[type=number] { -moz-appearance: textfield; }

/* Range: ink fill up to the thumb (--fill set by JS) */
.field input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; min-height: 0; padding: 0;
  background: transparent; border: 0; cursor: pointer;
}
.field input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--ink) var(--fill, 50%), var(--surface-2) var(--fill, 50%));
}
.field input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-2); }
.field input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
.field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: var(--web); border: 2px solid var(--ink);
}
.field input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--web); border: 2px solid var(--ink); }
.field input[type=range]:focus-visible { outline: 2px solid var(--seo); outline-offset: 4px; border-radius: 4px; }
.field input[type=range]:focus { background: transparent; }

.calc-optional { display: grid; gap: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-optional .h4 { color: var(--ink-2); }

/* Results: dark panel, key figure in volt */
.calc-results {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--dark); color: var(--on-dark); border-radius: var(--r-lg); overflow: hidden;
}
.result-main, .result-row, .result-cta { padding: 24px clamp(22px, 3vw, 32px); }
.result-main { padding-top: 30px; }
.result-row, .result-cta { border-top: 1px solid var(--dark-3); }
.result-label { font-weight: 600; color: var(--on-dark-2); font-size: .95rem; }
.result-big {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; color: var(--web); margin-block: 8px 12px;
}
.result-mid { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.7rem; line-height: 1.15; margin-block: 4px 6px; }
.result-working, .result-note { color: var(--on-dark-2); font-size: .94rem; }
.result-row.is-loss .result-mid { color: var(--ads); }
.result-cta { display: grid; gap: 16px; justify-items: start; background: var(--dark-2); }
.result-cta p { color: var(--on-dark); }
.btn-volt { background: var(--web); color: var(--web-ink); }
.btn-volt:hover { background: #fff; color: var(--ink); }

/* ---------- Free Audit ---------- */
.offer-note { font-weight: 600; color: var(--ink-2); margin-top: -8px; }
.offer-note a, .inline-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-hero-copy .btn { margin-top: 4px; }

.audit-page { padding-top: clamp(24px, 4vw, 48px); }
.form-head { display: grid; gap: 6px; margin-bottom: 4px; }
.form-cap { font-size: .94rem; color: var(--ink-3); }

.included { display: grid; margin: 0; padding: 0; list-style: none; }
.included li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); }
.included li:last-child { border-bottom: 1px solid var(--line); }
.included p { color: var(--ink-2); margin-top: 4px; }
.included-n, .step-n {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
}
.audit-page .reassure { margin-top: 4px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.steps li { display: grid; gap: 10px; align-content: start; background: var(--bg); border-radius: var(--r-lg); padding: 26px; }
.steps li .step-n { margin-bottom: 6px; }
.steps p { color: var(--ink-2); }
.callout-wide { max-width: 760px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.compare-card {
  display: grid; gap: 18px; align-content: start; grid-template-rows: auto auto 1fr auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px);
}
.compare-card > .btn { justify-self: start; }
.compare-card-dark { background: var(--dark); color: var(--on-dark); border-color: var(--dark); grid-template-rows: auto auto 1fr auto auto; }
.compare-price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 2.4rem; line-height: 1; }
.compare-card-dark .compare-price { color: var(--web); }
.ticks { display: grid; gap: 12px; align-content: start; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; }
.ticks .i-sm { margin-top: 4px; }
.compare-card-dark .ticks .i-sm { color: var(--web); }
.compare-credit { font-size: .94rem; color: var(--on-dark-2); padding-top: 16px; border-top: 1px solid var(--dark-3); }

/* ---------- Contact ---------- */
.page-hero-compact { padding-bottom: 8px; }
.blob-sm { max-width: 300px; }
.contact-cards-wrap { padding-block: 8px clamp(40px, 6vw, 72px); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-card { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); min-width: 0; }
.contact-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px;
  border-radius: var(--r); background: var(--svc); color: var(--svc-ink); transition: background .3s, color .3s;
}
.contact-icon .i-sm { width: 22px; height: 22px; }
.contact-card:hover .contact-icon, .contact-card:focus-visible .contact-icon { background: var(--svc-ink); color: var(--svc); }
.contact-value {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800; letter-spacing: -.01em;
  font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; overflow-wrap: anywhere;
}
.contact-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; }
.field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); resize: vertical;
  background: var(--bg); border: 1.5px solid transparent; border-radius: var(--r); transition: border-color .2s, background .2s;
}
.field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-grid > div:first-child { display: grid; gap: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 20px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i-sm { transition: transform .2s var(--ease); }
.faq details[open] summary .i-sm { transform: rotate(180deg); }
.faq details p { padding-bottom: 22px; color: var(--ink-2); max-width: 60ch; }

/* ==========================================================================
   FRAMEWORK TEMPLATES (T2–T13), rendered by scripts/templates.py
   ========================================================================== */
/* Inner pages (anything with breadcrumbs) use tighter section rhythm than Home */
main:has(> .crumbs) .section { padding-block: clamp(48px, 6vw, 88px); }
main:has(> .crumbs) .section-tight { padding-block: clamp(36px, 4.5vw, 64px); }
main:has(> .crumbs) .section-head { margin-bottom: clamp(24px, 3.2vw, 40px); }

/* Placeholder copy: dashed box; the text says what's needed. grep "TBC:" in src/ */
.tbc {
  display: inline; padding: 1px 6px; border-radius: 3px; color: var(--ink-2); font-weight: 500;
  outline: 1px dashed #9a9ca2; outline-offset: -1px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: repeating-linear-gradient(-45deg, rgba(11,11,12,.05) 0 6px, transparent 6px 12px);
}
.section-dark .tbc, .compare-card-dark .tbc, .tier-card.is-featured .tbc { color: var(--on-dark-2); outline-color: #6b6d73; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 6px, transparent 6px 12px); }
.tile:hover .tbc { color: inherit; outline-color: currentColor; }

/* Placeholder blob: striped organic shape, labelled with the file it's waiting for */
.blob-ph {
  position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; justify-self: center;
  border-radius: 46% 54% 58% 42% / 44% 40% 60% 56%;
  background: repeating-linear-gradient(-45deg, #d6d8dc 0 12px, #c8cbd0 12px 24px); mix-blend-mode: normal;
}
.blob-ph .ph-label { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.blob-ph .ph-label .swatch { background: var(--svc); }

/* Package pages: gradient blob matching the package card hover (--g1/--g2) */
.blob-gradient {
  aspect-ratio: 1; width: 100%; max-width: 380px; justify-self: center; mix-blend-mode: normal;
  border-radius: 46% 54% 58% 42% / 44% 40% 60% 56%;
  background: linear-gradient(120deg, var(--g1) 0%, var(--g2) 100%);
}
/* Package pages: transparent team illustration over the gradient shape */
.blob-stack { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; justify-self: center; mix-blend-mode: normal; }
.blob-stack .blob-gradient { position: absolute; inset: 9%; width: auto; max-width: none; }
.blob-stack img { position: relative; width: 100%; height: auto; }

/* No illustration (trade pages): the hero copy takes the full width */
.page-hero-grid > .page-hero-copy:only-child { grid-column: 1 / -1; max-width: 900px; }

/* Book a call band (links to /book-a-call/) */
.book-band { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.book-band > div:first-child { display: grid; gap: 12px; max-width: 560px; }
.book-band-actions { display: grid; gap: 16px; justify-items: start; }

.table-note { margin-top: 14px; color: var(--ink-2); font-size: .95rem; max-width: 80ch; }
.terms-list { margin-top: 22px; }
.not-inc-h { margin-top: 26px; margin-bottom: 12px; color: var(--ink-2); }

/* Savings: standalone, bold, in the package's own gradient. Real discounts on items sold at full price. */
.save {
  display: inline-flex; align-items: center; flex: none; padding: 6px 12px; border-radius: var(--r-sm);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.05rem; line-height: 1.1; white-space: nowrap;
  background: linear-gradient(120deg, var(--g1, var(--brand)) 0%, var(--g2, var(--seo)) 100%); color: #fff;
}
.save-sm { display: flex; width: fit-content; margin-top: 8px; padding: 4px 9px; font-size: .82rem; }
.save-lg { padding: 10px 18px; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.was { color: var(--ink-3); font-weight: 600; text-decoration-thickness: 2px; }
.pkg-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; }
.pkg:hover .save, .pkg:focus-visible .save { background: #fff; color: var(--ink); }
.hero-save { margin-top: -6px; }
.hero-then { font-size: .6em; font-weight: 700; color: var(--ink-2); }
.hero-price .was { font-size: .7em; }
.save-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 760px; margin-top: 20px; padding: 18px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, color-mix(in srgb, var(--g1) 12%, transparent), color-mix(in srgb, var(--g2) 12%, transparent)); }
.save-row p { flex: 1 1 260px; font-size: 1.05rem; }
.stack-price .now { font-weight: 800; }
.stack-price .was { margin-right: 6px; }
.stack-total .was { font-size: .8em; margin-right: 8px; }
.pt-then { display: block; font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--ink-2); margin: 2px 0 8px; }

/* Pricing page package promos */
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pp-card { position: relative; display: grid; gap: 18px; align-content: start; justify-items: start; padding: clamp(24px, 3vw, 36px); padding-top: calc(clamp(24px, 3vw, 36px) + 8px);
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pp-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(120deg, var(--g1), var(--g2)); }
.pp-head { display: grid; gap: 4px; }
.pp-head p { color: var(--ink-2); font-weight: 600; }
.pp-price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; }
.pp-price .was { font-size: .6em; margin-right: 6px; }
.pp-price span { display: block; font-family: var(--font-body); font-weight: 600; font-size: .95rem; color: var(--ink-2); margin-top: 4px; }
.pp-items { display: grid; gap: 0; width: 100%; }
.pp-items li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pp-item-price { font-weight: 700; }
.pp-detail { color: var(--ink-2); }
.pp-detail strong { color: var(--ink); }

/* Pricing headings: a solid block in the service colour (volt text on grey would be unreadable) */
.price-head .h-mark { display: inline-block; padding: 4px 14px 8px; border-radius: var(--r-sm); background: var(--svc); color: var(--svc-ink); }
.price-head .h-mark-grad { background: linear-gradient(120deg, var(--g1), var(--g2)); color: #fff; }
/* Table header rule in the section's service colour (siblings can't inherit --svc, so map it explicitly) */
.price-head[data-svc] ~ .table-wrap .price-table th { border-bottom-width: 3px; }
.price-head[data-svc="web"] ~ .table-wrap .price-table th { border-bottom-color: var(--web); }
.price-head[data-svc="seo"] ~ .table-wrap .price-table th { border-bottom-color: var(--seo); }
.price-head[data-svc="ads"] ~ .table-wrap .price-table th { border-bottom-color: var(--ads); }
.price-head[data-svc="brand"] ~ .table-wrap .price-table th { border-bottom-color: var(--brand); }

.example-grid.example-grid-2 { grid-template-columns: repeat(2, 1fr); }
.about-text { max-width: 760px; }

/* Case study brand profile */
.brand-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-areas: "primary secondary secondary" "primary mark icon" "reversed reversed reversed"; gap: 12px; }
.brand-tile { position: relative; display: grid; place-items: center; min-height: 220px; margin: 0; padding: 36px 28px 48px; border-radius: var(--r-lg); background: var(--tile-bg); border: 1px solid var(--line); overflow: hidden; }
.brand-tile img { max-width: 78%; max-height: 220px; width: auto; height: auto; object-fit: contain; }
.brand-tile figcaption { position: absolute; left: 16px; bottom: 12px; font-size: .82rem; font-weight: 600; color: var(--ink-2); background: rgba(255,255,255,.8); padding: 3px 8px; border-radius: var(--r-sm); }
.brand-primary { grid-area: primary; min-height: 460px; }
.brand-primary img { max-width: 92%; max-height: 420px; }
.brand-secondary { grid-area: secondary; }
.brand-secondary img { max-width: 72%; }
.brand-mark { grid-area: mark; }
.brand-icon { grid-area: icon; }
.brand-reversed { grid-area: reversed; min-height: 200px; }
.brand-reversed img { max-height: 130px; }
.icon-pair { display: flex; align-items: center; gap: 20px; }
.icon-pair img { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; }
.icon-sq, .icon-circle { display: block; width: 104px; height: 104px; overflow: hidden; box-shadow: 0 10px 24px -12px rgba(11,11,12,.45); }
.icon-sq { border-radius: 22px; }
.icon-circle { width: 76px; height: 76px; border-radius: 50%; }
.palette { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.palette li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--sw); color: var(--sw-ink); border: 1px solid var(--line); }
.sw-chip { width: 18px; height: 18px; border-radius: 4px; background: var(--sw-ink); opacity: .9; }
.palette code { font-size: .9rem; font-weight: 600; }

.gallery-img { margin: 0; aspect-ratio: 3 / 2; }
.gallery-wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-img figcaption { position: absolute; left: 16px; bottom: 16px; font: 500 .78rem/1 var(--font-body); color: #fff; background: rgba(11,11,12,.75); padding: 7px 10px; border-radius: var(--r-sm); }

/* Case study gallery: screens showcase, justified image pairs */
.case-gallery { display: grid; gap: 12px; }
/* Screens showcase: every screenshot shown whole, with room around it */
.screens { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; margin: 0;
  padding: clamp(56px, 6vw, 80px) clamp(24px, 5vw, 72px) clamp(32px, 4vw, 56px); border-radius: var(--r-lg); background: var(--scr-bg); }
.scr-browser { flex: 0 1 70%; min-width: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -24px rgba(11,11,12,.35), 0 0 0 1px rgba(11,11,12,.06); }
.scr-bar { display: flex; gap: 6px; align-items: center; height: 26px; padding: 0 12px; background: #ececef; border-bottom: 1px solid rgba(11,11,12,.06); }
.scr-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c7c9ce; }
.scr-browser img { display: block; width: 100%; height: auto; }
.scr-phone { position: relative; z-index: 1; flex: 0 0 auto; width: clamp(120px, 21%, 230px); margin-left: clamp(16px, 3%, 40px); align-self: flex-end;
  padding: clamp(6px, .7vw, 9px); border-radius: clamp(22px, 2.8vw, 34px); background: #111214; box-shadow: 0 24px 50px -18px rgba(11,11,12,.55); }
.scr-phone img { display: block; width: 100%; height: auto; border-radius: clamp(16px, 2.1vw, 26px); }
.screens figcaption, .pair-cell figcaption { position: absolute; left: 16px; top: 16px; font: 500 .78rem/1 var(--font-body); color: #fff; background: rgba(11,11,12,.75); padding: 7px 10px; border-radius: var(--r-sm); }
.gallery-pair { display: flex; gap: 12px; }
.pair-cell { position: relative; margin: 0; min-width: 0; border-radius: var(--r-lg); overflow: hidden; }
.pair-cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pair-cell figcaption { top: auto; bottom: 16px; }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split-media { align-items: center; }
.prose { display: grid; gap: 14px; max-width: 62ch; }
.prose p { color: var(--ink-2); font-size: 1.06rem; }
.svc-media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--svc); }
.svc-media img { width: 100%; height: 100%; object-fit: contain; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-2 { grid-template-columns: repeat(2, 1fr); }
.section-alt .steps li { background: var(--surface-2); }

/* Tier / option cards */
.tier-grid { display: grid; gap: 12px; }
.tier-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tier-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tier-grid-4 { grid-template-columns: repeat(4, 1fr); }
.tier-card { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); }
.tier-card .h4 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.tier-price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.9rem; line-height: 1; }
.tier-summary { color: inherit; opacity: .8; }
.tier-card .text-link { justify-self: start; margin-top: 4px; }
.tier-card.is-featured { background: var(--dark); color: var(--on-dark); }
.tier-extra { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; padding: 18px 22px; border-radius: var(--r-lg); }
.tier-extra span { opacity: .85; }
.hero-price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.hero-for { color: var(--ink-2); max-width: 52ch; }

.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.who-card { display: grid; gap: 16px; align-content: start; padding: 28px; border-radius: var(--r-lg); background: var(--bg); }
.who-not .ticks .i-sm { color: var(--ink-3); }

.proof-ph { padding: 36px; border: 1.5px dashed #b9bcc2; border-radius: var(--r-lg); text-align: center; }
.cases-single { height: 420px; }
.cases-single .case { flex-grow: 1; }

/* Timeline (T3 month 1/2/3, T6) */
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: tl; }
.timeline > li { position: relative; display: grid; gap: 8px; padding: 26px 22px 22px; border-radius: var(--r-lg); background: var(--surface-2); border-top: 4px solid var(--ink); }
.tl-when { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.1rem; }
.timeline p { color: var(--ink-2); }
.timeline > li { align-content: start; }
.tl-list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.tl-list li { position: relative; padding-left: 16px; }
.tl-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 1px; background: var(--ink); }

.compare-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.compare-cell { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: var(--r-lg); }
.compare-q { font-size: .88rem; font-weight: 600; opacity: .7; }
.compare-cell > span:not(.compare-q) { opacity: .85; }
.pair-card { display: inline-flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: var(--r-lg); font-size: 1.05rem; }
.pkg-inline { max-width: 640px; }

/* Price tables */
.table-wrap { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.price-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.price-table th { text-align: left; font-size: .85rem; font-weight: 600; color: var(--ink-3); padding: 0 16px 10px 0; border-bottom: 1.5px solid var(--ink); }
.price-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table td a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.price-table-full { min-width: 640px; }
.pt-price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; white-space: nowrap; }

/* Package value stack (T6) */
.stack { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; max-width: 760px; }
.stack a { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface-2); transition: background .2s; }
.stack a:hover { background: #dcdee2; }
.stack-price { font-weight: 700; }
.stack-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; max-width: 760px; margin-top: 18px; padding-top: 18px; border-top: 1.5px solid var(--ink);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.4rem; }
.stack-saving { max-width: 760px; margin-top: 8px; color: var(--ink-2); }

/* Industry leaks (T7) */
.leaks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.leak { display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: var(--r-lg); background: var(--surface-2); }
.also-for { margin-top: 22px; color: var(--ink-2); }
.also-for a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Book a call */
.book-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.book-copy { display: grid; gap: 18px; }
.book-alt { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.book-alt a { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.book-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.book-cal { display: grid; gap: clamp(28px, 4vw, 48px); }
.book-embed { min-height: 520px; display: grid; place-items: center; overflow: auto; border-radius: var(--r-lg); background: #fff; }
.book-embed iframe { width: 100% !important; }
.book-copy-row { grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 40px; }
.book-copy-row .reassure { margin: 0; }

/* Examples gallery (T5, T10) */
.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.example-card { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.ph-box { width: 100%; border-radius: var(--r-lg); }
.example-real { display: block; aspect-ratio: 4 / 3; color: #fff; }
.example-real > img { width: 100%; height: 100%; object-fit: cover; }
.example-real::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.25), rgba(11,11,12,.7)); }
.example-logo { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.example-logo img { width: 30%; opacity: .9; filter: drop-shadow(0 4px 18px rgba(11,11,12,.45)); }
.example-name { position: absolute; left: 18px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

/* Case study (T10) */
.cs-hero { padding-top: 24px; }
.cs-banner { position: relative; overflow: hidden; aspect-ratio: 21 / 9; border-radius: var(--r-lg); }
.cs-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-banner .case-shade { background: rgba(11,11,12,.3); }
.cs-logo { position: absolute; left: 50%; top: 50%; width: clamp(110px, 14vw, 180px); transform: translate(-50%, -50%); opacity: .9; filter: drop-shadow(0 4px 18px rgba(11,11,12,.45)); }
.cs-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-block: clamp(28px, 4vw, 48px) 0; }
.cs-head > div { display: grid; gap: 14px; max-width: 760px; }
.cs-trade a { font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.cs-tags { color: var(--ink); font-size: 1rem; }
.cs-tags a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cs-story { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.cs-story > div { display: grid; gap: 14px; align-content: start; }
.cs-story p { color: var(--ink-2); }
.cs-quote { margin: 0; display: grid; gap: 14px; max-width: 860px; }
.cs-quote blockquote { margin: 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; }
.cs-quote figcaption { color: var(--ink-3); }
.work-filter-note { margin-top: 20px; }
.home-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.home-quote { margin: 0; display: grid; align-content: space-between; gap: 22px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.home-quote blockquote { margin: 0; font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.35; }
.home-quote blockquote::before { content: "\201C"; } .home-quote blockquote::after { content: "\201D"; }
.home-quote figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; color: var(--on-dark-2); font-size: .94rem; }
.home-quote .text-link { color: var(--on-dark); }

/* Articles: guides + legal (T11) */
.article { padding-block: clamp(24px, 4vw, 48px) var(--section); }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px clamp(32px, 5vw, 80px); align-items: start; }
.article-head { grid-column: 1 / -1; display: grid; gap: 18px; max-width: 820px; }
.article-head .guide-cat a { color: inherit; }
.article-meta { color: var(--ink-3); font-size: .94rem; }
.article-meta a { color: var(--ink-2); }
.toc { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; padding: 22px; border-radius: var(--r-lg); background: var(--surface-2); }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .94rem; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-body { grid-column: 1; grid-row: 2; display: grid; gap: 16px; max-width: 70ch; }
.article-body h2 { margin-top: 20px; scroll-margin-top: calc(var(--header-h) + 20px); }
.article-body p { color: var(--ink-2); font-size: 1.06rem; }
.article-wrap:not(:has(.toc)) .article-body { grid-row: auto; }
.inline-cta { display: grid; gap: 14px; justify-items: start; margin-block: 8px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface-2); border-left: 4px solid var(--svc); }
.more-guides { margin-top: 20px; }
.guide-list-1 { grid-template-columns: minmax(0, 360px); }
.guide-list-2 { grid-template-columns: repeat(2, 1fr); }
.guide-list-3 { grid-template-columns: repeat(3, 1fr); }
.why-list-2 { grid-template-columns: 1fr 1fr; column-gap: 40px; }
.about-role { font-weight: 600; }
.mega-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.mega-all .i-sm { width: 14px; height: 14px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--dark); color: var(--on-dark); padding-bottom: 28px; }
.footer-cta { background: var(--web); color: var(--web-ink); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding-block: 36px; }
.footer-cta-text { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.footer-cols { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px; padding-block: 64px 44px; }
.footer-cols > div { display: grid; gap: 10px; align-content: start; }
.footer-cols a { color: var(--on-dark-2); font-size: .95rem; transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-brand { gap: 16px !important; }
.footer-brand .logo { justify-self: start; }
.footer-strap { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.05rem; color: #fff; }
.footer-h { font-family: var(--font-display); font-stretch: 112%; font-size: 1rem; font-weight: 750; margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--dark-3); color: var(--on-dark-2); font-size: .9rem; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

.sticky-bar { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .guide-list { grid-template-columns: 1fr 1fr; }
  .guide { min-height: 190px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 78px; }
  .logo img { height: 58px; }
  .header-inner { gap: 12px; }
  .burger { display: inline-flex; }
  .header-cta { min-height: 40px; padding: 0 16px; font-size: .92rem; }

  /* Mobile nav panel: fixed moderate radius, driven purely by JS classes */
  .nav {
    position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 8px);
    height: auto; max-height: calc(100svh - var(--header-h) - 24px); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: 0 24px 60px -20px rgba(11,11,12,.35);
    padding: 8px; visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  body.nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s; }
  body.nav-open .burger .i-open { display: none; }
  body.nav-open .burger .i-close { display: block; }
  .nav-list { flex-direction: column; height: auto; gap: 0; }
  .nav-item { flex-direction: column; border-bottom: 1px solid var(--line); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link { height: auto; padding: 16px 12px; font-size: 1.08rem; font-weight: 600; color: var(--ink); justify-content: space-between; width: 100%; }
  .nav-link .chev { width: 20px; height: 20px; }

  /* Accordions */
  .menu {
    position: static; width: auto; border: 0; box-shadow: none; border-radius: 0; padding: 0 4px 12px;
    display: none; visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .has-menu.is-open > .menu { display: block; }
  .mega-cols { grid-template-columns: 1fr; gap: 16px; }
  .mega-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mega-foot-group { margin-left: 0; }
  .menu-list { min-width: 0; }

  .hero-grid, .why-grid, .audit-grid { grid-template-columns: 1fr; }
  .calc-grid, .faq-grid, .compare { grid-template-columns: 1fr; }
  .split, .who-grid, .book-grid, .article-wrap, .cs-story, .book-copy-row { grid-template-columns: 1fr; }
  .tier-grid-3, .tier-grid-4, .leaks, .example-grid, .steps-4 { grid-template-columns: 1fr 1fr; }
  .timeline { grid-auto-flow: row; }
  .toc { position: static; grid-column: 1; grid-row: auto; }
  .article-body { grid-row: auto; }
  .why-list-2 { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .calc-results { position: static; }
  .hero-router { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: .85fr 1fr; gap: 28px; align-items: start; }
  .svc-row .media { aspect-ratio: 1; }
  .trade-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }

  /* Cases become a swipeable row, all info visible (no hover on touch) */
  .cases { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .cases::-webkit-scrollbar { display: none; }
  .case { flex: 0 0 min(78vw, 360px); height: 440px; scroll-snap-align: start; }
  .case, .case.is-open { flex-grow: 0; }
  .case .case-logo, .case .case-more { opacity: 1; visibility: visible; transform: none; }
  .case-spine { display: none; }
  /* Phones show details on every card, so centre the logo in the space above them */
  .case-logo { padding-bottom: 150px; }
  .case-logo img { width: 88px; }
  .case::after { transform: scaleX(1); }
}

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .header-cta { display: none; }
  .burger { margin-left: auto; }

  /* Hero: phone is cropped with a fade so the tiles stay close to the fold */
  .hero { padding-block: 26px 40px; }
  .hero-copy { gap: 18px; }
  .hero-router { grid-template-columns: 1fr; margin-top: 22px; }
  /* Phone shown smaller so the hero ends around 90% of the screen and the "What do you need?" tiles peek in.
     Scaled (not cropped) so the whole search → results → enquiry story still plays. */
  .hero-grid { gap: 14px; }
  .hero-visual { height: 196px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 92%, transparent); mask-image: linear-gradient(#000 92%, transparent); }
  .hero-visual::before { width: 220px; top: 50%; }
  .phone { width: 270px; height: 500px; flex: none; transform: scale(.5); transform-origin: top center; }
  .display, .hero .display { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .btn-row .btn { flex: 1 1 auto; }

  .pkg-grid, .trade-grid, .guide-list { grid-template-columns: 1fr; }
  .pp-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "primary primary" "secondary secondary" "mark icon" "reversed reversed"; }
  .brand-primary { min-height: 300px; }
  .palette { grid-template-columns: 1fr; }
  .icon-sq { width: 72px; height: 72px; border-radius: 16px; } .icon-circle { width: 54px; height: 54px; }
  .example-grid.example-grid-2 { grid-template-columns: 1fr; }
  .gallery-pair { flex-direction: column; }
  .gallery-pair .pair-cell { flex: none !important; width: 100%; }
  .screens { padding: 52px 16px 24px; }
  .scr-browser { flex-basis: 74%; }
  .scr-phone { width: 26%; margin-left: 10px; padding: 4px; border-radius: 16px; }
  .scr-browser { flex-basis: 70%; }
  .scr-phone img { border-radius: 12px; }
  .tier-grid-2, .tier-grid-3, .tier-grid-4, .leaks, .example-grid, .steps-4, .steps-2, .guide-list-2, .guide-list-3 { grid-template-columns: 1fr; }
  .cs-banner { aspect-ratio: 4 / 3; }
  .cases-single { height: 440px; }
  .stack a { grid-template-columns: auto 1fr auto; }
  .stack a > svg:last-child { display: none; }
  .blob-ph { max-width: 150px; }
  .blob-gradient, .blob-stack { max-width: 150px; }
  .blob-ph .ph-label { white-space: normal; width: 90%; text-align: center; justify-content: center; font-size: .66rem; }

  .svc-row, .svc-row.flip { grid-template-columns: 1fr; gap: 20px; padding-block: 28px; }
  .svc-row.flip .media { order: 0; }
  .svc-row .media { aspect-ratio: 2 / 1; border-radius: var(--r); }
  .svc-body { gap: 14px; }
  .tier-link { padding: 14px 16px; }
  .trade { min-height: 0; }
  .guide { min-height: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .section-head-row { align-items: start; }

  body.no-bar { padding-bottom: 0; }
  .no-bar .sticky-bar { display: none; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .blob { order: -1; max-width: 132px; justify-self: start; margin-left: -8px; }
  .crumbs { padding-top: 16px; }
  .page-hero { padding-top: 12px; }
  .page-hero-copy { gap: 16px; }
  .offer-note { margin-top: -4px; }
  /* Contact cards: compact rows so all three sit above the fold */
  .contact-card { position: relative; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px 48px 16px 16px; }
  .contact-icon { grid-row: 1 / span 2; align-self: center; margin: 0; }
  .contact-value { font-size: 1.15rem; }
  .contact-action { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); margin: 0; font-size: 0; }
  .sticky-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(243,244,246,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .sticky-bar .btn { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.hp { display: none !important; }

/* SEO growth promo on tier pages: flat SEO blue, upbeat, one big figure */
.grow-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4vw, 56px); border-radius: var(--r-lg); background: var(--seo); color: #fff; }
.grow-copy { display: grid; gap: 16px; justify-items: start; max-width: 620px; }
.grow-copy p { color: rgba(255,255,255,.88); font-size: 1.08rem; }
.grow-big { display: grid; justify-items: center; gap: 6px; min-width: 200px; padding: 26px 30px; border-radius: var(--r-lg); background: var(--web); color: var(--web-ink); text-align: center; transform: rotate(-3deg); }
.grow-big span { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: clamp(3.2rem, 7vw, 5rem); line-height: .95; }
.grow-big small { font-weight: 700; font-size: .95rem; max-width: 160px; }
@media (max-width: 720px) { .grow-card { grid-template-columns: 1fr; } .grow-big { justify-self: start; } }
.form-error { margin: 4px 0 0; color: #b42318; font-weight: 600; }
