/*
Theme Name: Alchemy Med
Theme URI: https://www.alchemymed.co.uk/
Author: Alchemy Med / Commotion
Description: Alchemy Med — surgeon marketing site (The Operator direction), 20-Jul: page content moved into the block editor (Gutenberg).
Version: 4.3
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: Proprietary
Text Domain: alchemy-med
*/

/* ============================================================
   Direction 02 — The Operator  ·  ALCHEMY BRAND BUILD
   Modern professional services. Clean, balanced, commercial.

   Palette: Alchemy Brand Identity Presentation v0.2 (board 0.3)
     01 #efefef  02 #e1e1e1  03 #151516  04 #2ad88d  05 #38a9eb  06 #0f232e
   Per Sam (01 Jun mtg): #06 dark blue is the brand dark (he likes it);
   #04/#05 are accents only, dialled back ~30% with opacity pulled back;
   site previously felt "too white" → brand colour added via dark blocks,
   tints and accents. Type: Inter (brand-specified).
   ============================================================ */

:root {
  /* Neutrals */
  --bg: #F3F4F4;            /* cool off-white (was cream) — less "white", brand-neutral */
  --bg-alt: #FFFFFF;
  --ink: #151516;          /* brand 03 — body text */
  --ink-soft: #2A2E30;
  --grey: #66707A;
  --grey-soft: #9AA0A6;
  --line: #E1E1E1;         /* brand 02 */
  --line-strong: #D2D2D2;

  /* Brand colour */
  --brand: #0F232E;        /* brand 06 — primary dark: buttons, dark sections, headings accents */
  --brand-hover: #1B3D4E;  /* lighter shade of #06 for hover */
  --accent: #2A78A6;       /* brand 05 dialled back ~30% — links, eyebrows, small accents */
  --accent-bright: #38A9EB;/* brand 05 full — used sparingly for a single pop */
  --mint: #3FA47C;         /* brand 04 — sparing positive accent */
  --tint: #E9F0F4;         /* faint brand-blue wash (replaces lilac fills) */
  --tint-soft: #F1F5F7;

  /* Type — Inter only, per brand guide */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;  /* thesis typed line only */
  --font-eyebrow: 'Inter', system-ui, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(48px, 6.5vw, 92px);

  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 35, 46, 0.04), 0 1px 3px rgba(15, 35, 46, 0.06);
  --shadow-md: 0 2px 6px rgba(15, 35, 46, 0.06), 0 8px 24px rgba(15, 35, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 35, 46, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.018em; line-height: 1.08; }
p { margin: 0; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main > section { padding-top: var(--section); padding-bottom: var(--section); }

/* ===== Typography utilities ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-eyebrow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

em { font-style: italic; color: var(--ink); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 35, 46, 0.25), 0 6px 18px rgba(15, 35, 46, 0.18);
}
.btn--primary::after { content: "→"; transition: transform 0.25s var(--ease); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--primary:hover::after { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--brand); background: var(--brand); color: #fff; }

.btn--small { padding: 10px 16px; font-size: 14px; }
.btn--large { padding: 18px 28px; font-size: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ===== Section headers — varied per section, no shared template ===== */
.section-header {
  max-width: 760px;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.022em;
  line-height: 1.08;
}
.section-header h2 em {
  font-style: italic;
  color: var(--accent);
}
.section-header .lede {
  margin-top: 20px;
  font-size: 17px;
  color: var(--grey);
  max-width: 60ch;
  line-height: 1.55;
}

/* Display-scale H2 — used for section moments where the heading IS the statement */
.h2--display {
  font-size: clamp(36px, 5vw, 64px) !important;
  letter-spacing: -0.025em !important;
  line-height: 1.04 !important;
  max-width: 22ch;
}

/* Quiet H2 — used for secondary sections */
.h2--small {
  font-size: clamp(22px, 2.4vw, 30px) !important;
  letter-spacing: -0.016em !important;
  font-weight: 600 !important;
}

/* Section variants — different vertical rhythm per section */
.section-header--problem { max-width: 880px; margin-bottom: 44px; }
.section-header--problem .lede { color: var(--ink-soft); font-size: 18px; }

.section-header--approach { max-width: 720px; margin-bottom: 48px; }
.section-header--approach .lede { font-style: italic; color: var(--ink-soft); }

.section-header--insights {
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  max-width: none;
}
.section-header--insights h2 { margin: 0; }

.section-header--work { max-width: 680px; margin-bottom: 44px; }
.section-header--services { max-width: 680px; margin-bottom: 40px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 244, 244, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(243, 244, 244, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo img { height: 28px; width: auto; }
.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 1.5px; background: var(--ink);
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 var(--gutter);
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav a { font-size: 28px; font-family: var(--font-display); font-weight: 600; }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: 40px; padding-bottom: var(--section); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero__content { max-width: 600px; }
.hero__title {
  font-size: clamp(40px, 5.8vw, 76px);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin-top: 20px;
  line-height: 1.02;
}
.hero__title::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  background: var(--accent-bright);
  border-radius: 2px;
  margin-top: 32px;
}
.hero__dek {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--grey);
  max-width: 50ch;
}
.hero__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* Hero credit — quiet, sentence-case, single line */
.hero__credit {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--grey);
  max-width: 44ch;
  line-height: 1.55;
}

.hero__media-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--tint-soft);
}
.hero__media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__caption {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.hero__caption strong { font-weight: 600; color: var(--ink); }
.hero__caption span { color: var(--grey); }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__media-frame { aspect-ratio: 4 / 3; }
}

/* ============================================================
   Proof bar
   ============================================================ */
.proof { padding-top: 0; padding-bottom: 0; }
.proof .container { padding-top: 40px; padding-bottom: 40px; }
.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--tint);
  border-radius: var(--r-lg);
  padding: 48px clamp(24px, 4vw, 56px);
}
.proof__cell {
  position: relative;
  padding: 12px 28px;
}
.proof__cell + .proof__cell::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  height: 60%;
  width: 1px;
  background: rgba(15, 35, 46, 0.16);
  transform: translateY(-50%);
}
.proof__number {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1;
}
.proof__symbol {
  font-weight: 500;
  color: var(--mint);
  margin-left: 2px;
}
.proof__label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 22ch;
}

@media (max-width: 880px) {
  .proof__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; padding: 32px 24px; }
  .proof__cell:nth-child(2)::before { display: none; }
  .proof__cell + .proof__cell::before { display: none; }
}
@media (max-width: 540px) {
  .proof__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Thesis
   ============================================================ */
/* .statboxes and .thesis share the page background, so there is no visible
   edge between them — the band around the thesis line runs from the stats
   disclaimer down to .calc-home's border-top. Balance is therefore:
       above = .statboxes padding-bottom + .thesis padding-top
       below = .thesis padding-bottom
   Dropping the stats section's bottom padding leaves .thesis's own padding
   (full var(--section), both sides) as the ONLY spacing, so the line is
   vertically centred in its band at full spacing: 92px above, 92px below.
   Do not re-add padding-bottom here or the top side grows on its own. */
.statboxes { padding-bottom: 0; }
/* thesis band at 2x the standard section rhythm (Tony 21/7). Both sides use
   the same value, so doubling keeps the line centred. */
.thesis { padding-top: calc(var(--section) * 2); padding-bottom: calc(var(--section) * 2); }
.thesis__inner {
  max-width: 880px;
  text-align: center;
}
.thesis__body {
  /* no margin: .thesis__inner holds only this block, so any margin here
     offsets it from centre against the section's symmetric padding */
  margin-top: 0;
  font-family: var(--font-display);
  /* 130% of .section-header h2 — clamp(28px, 3.4vw, 44px) × 1.3 */
  font-size: clamp(36px, 4.4vw, 57px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.thesis__body em {
  color: var(--accent);
  font-style: italic;
}

/* ============================================================
   Featured work
   ============================================================ */
.work .container { display: grid; gap: clamp(44px, 5vw, 80px); }
.work .section-header { margin-bottom: 0; }

.case-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.case-card--reverse { direction: rtl; }
.case-card--reverse > * { direction: ltr; }

.case-card__media {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.case-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.case-card:hover .case-card__media { box-shadow: var(--shadow-lg); }
.case-card:hover .case-card__media img { transform: scale(1.03); }

.case-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.case-card__tags li {
  font-family: var(--font-eyebrow);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 10px;
  background: var(--tint);
  border-radius: 4px;
}
.case-card__body h3 {
  font-size: clamp(26px, 2.8vw, 36px);
  margin-top: 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.case-card__subtitle {
  margin-top: 14px;
  font-size: 14px;
  color: var(--grey);
  font-weight: 500;
}
.case-card__lede {
  margin-top: 18px;
  color: var(--grey);
  line-height: 1.55;
  max-width: 50ch;
}
.case-card__body .link-arrow { margin-top: 24px; }

@media (max-width: 880px) {
  .case-card { grid-template-columns: 1fr; }
  .case-card--reverse { direction: ltr; }
}

/* ============================================================
   Problem
   ============================================================ */
.failures {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.failure {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.failure__num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1;
}
.failure__body { max-width: 64ch; }
.failure__body h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.failure__body p {
  margin-top: 8px;
  color: var(--grey);
}

@media (max-width: 640px) {
  .failure { grid-template-columns: 1fr; gap: 8px; }
  .failure__num { font-size: 36px; }
}

/* ============================================================
   Services
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px 40px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 169, 235, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--tint);
}
.service:hover::before { opacity: 1; }

.service__num {
  font-family: var(--font-eyebrow);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--grey-soft);
  font-weight: 500;
}
.service h3 {
  font-size: 24px;
  margin-top: 12px;
  letter-spacing: -0.018em;
}
.service p {
  margin-top: 14px;
  color: var(--grey);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Approach
   ============================================================ */
.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
  border-top: 1px solid var(--line);
}
.approach__step {
  padding: 40px 0 0 0;
  position: relative;
}
.approach__step:last-child { padding-right: 0; }
.approach__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand);
  display: inline-block;
  padding: 5px 10px;
  background: var(--tint);
  border-radius: 100px;
}
.approach__step h3 {
  font-size: 28px;
  margin-top: 18px;
  letter-spacing: -0.02em;
}
.approach__step p {
  margin-top: 14px;
  color: var(--grey);
  line-height: 1.55;
  max-width: 38ch;
}

@media (max-width: 880px) {
  .approach__grid { grid-template-columns: 1fr; }
  .approach__step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 32px 0;
  }
  .approach__step:last-child { border-bottom: 0; }
}

/* ============================================================
   Testimonial
   ============================================================ */
.testimonial { background: var(--brand); color: #fff; }
.testimonial blockquote {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote p {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.32;
  color: #fff;
}
.testimonial blockquote p em {
  color: #9AD6F5;
  font-style: italic;
}
.testimonial cite {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 40px;
  font-style: normal;
  font-size: 14px;
}
.testimonial cite strong { font-weight: 600; }
.testimonial cite span { color: rgba(255, 255, 255, 0.6); }

/* ============================================================
   Insights
   ============================================================ */
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.insight {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.insight__media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--tint-soft);
}
.insight__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.insight:hover .insight__media img { transform: scale(1.04); }
.insight__tag {
  display: inline-block;
  font-family: var(--font-eyebrow);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.insight__body h3 {
  font-size: 21px;
  margin-top: 10px;
  letter-spacing: -0.016em;
  line-height: 1.25;
}
.insight__body h3 a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}
.insight__body h3 a:hover { background-size: 100% 1px; }
.insight__body p {
  margin-top: 10px;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .insights__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   Audit (lead magnet)
   ============================================================ */
.audit__inner {
  background: var(--tint);
  border-radius: var(--r-lg);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.audit__copy h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.audit__copy p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 42ch;
}
.audit__form {
  display: flex;
  background: #fff;
  border-radius: var(--r-md);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(56, 169, 235, 0.18);
}
.audit__form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.audit__form input::placeholder { color: var(--grey-soft); }
.audit__form button {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 6px;
  transition: background 0.2s var(--ease);
}
.audit__form button:hover { background: var(--brand-hover); }

@media (max-width: 720px) {
  .audit__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   Closing CTA
   ============================================================ */
.closing { background: var(--brand); color: #fff; text-align: center; }
.closing__inner { max-width: 820px; margin: 0 auto; }
.closing h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.022em;
  color: #fff;
}
.closing p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.55;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
/* Primary CTA on the dark brand block — invert so it stays visible */
.closing .btn--primary {
  margin-top: 40px;
  background: var(--accent-bright);
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 6px 18px rgba(0,0,0,0.22);
}
.closing .btn--primary:hover { background: #5FBCF0; }
.closing__note {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-eyebrow);
  letter-spacing: 0.06em;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 64px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.site-footer__brand .logo img { height: 28px; }
.site-footer__brand p {
  margin-top: 18px;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.55;
  max-width: 36ch;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.site-footer__cols h4 {
  font-family: var(--font-eyebrow);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
  margin-bottom: 16px;
}
.site-footer__cols a {
  display: block;
  font-size: 15px;
  padding: 5px 0;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.site-footer__cols a:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--grey);
}
.site-footer__bottom a:hover { color: var(--accent); }

@media (max-width: 880px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ============================================================
   Calculator teaser (links to revenue-calculator.html)
   ============================================================ */
.calc-teaser .container { }
.calc-teaser__inner {
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.calc-teaser__inner::after {
  content: "";
  position: absolute;
  top: -60px; right: -40px;
  width: 220px; height: 220px;
  background: rgba(56, 169, 235, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.calc-teaser__eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9AD6F5;
}
.calc-teaser h2 {
  margin-top: 14px;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: #fff;
}
.calc-teaser p {
  margin-top: 16px;
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  line-height: 1.55;
  max-width: 46ch;
}
.calc-teaser__cta { position: relative; z-index: 1; justify-self: start; }
.calc-teaser .btn--primary {
  background: var(--accent-bright);
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 6px 18px rgba(0,0,0,0.22);
}
.calc-teaser .btn--primary:hover { background: #5FBCF0; }
@media (max-width: 760px) {
  .calc-teaser__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   FAQs (native accordion, no JS)
   ============================================================ */
.faqs__list {
  max-width: 860px;
  border-top: 1px solid var(--line);
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 26px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.faq[open] > summary::after { transform: rotate(45deg); }
.faq__answer {
  padding: 0 0 26px;
  max-width: 70ch;
  color: var(--grey);
  line-height: 1.6;
}

/* ===== Selection ===== */
::selection { background: var(--brand); color: #fff; }

/* ============================================================
   SAM CHANGES 01/07/26 — new sections
   ============================================================ */

/* ---- A7: Video placeholder under hero ---- */
.video-ph { padding-top: 0 !important; }
.video-ph__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, #1B3D4E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}
.video-ph__play {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.video-ph__frame:hover .video-ph__play { transform: scale(1.08); background: rgba(56,169,235,0.25); }
.video-ph__play::after {
  content: "";
  display: block;
  margin-left: 5px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.video-ph__label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

/* ---- A1: Stats collage — interactive v2 (count-up, wiggle, shine; no blur veil) ---- */
.statboxes__collage {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(18px, 2.5vw, 30px);
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.statboxes__col { display: grid; gap: clamp(18px, 2.5vw, 30px); }
.statbox--a { aspect-ratio: 4 / 3; width: 88%; }
.statbox--b { aspect-ratio: 4 / 3; width: 96%; margin-left: auto; transform: translateY(clamp(10px, 2vw, 26px)); }
.statbox--c { aspect-ratio: 3 / 3.6; height: 100%; }

.statbox {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.45s var(--ease), translate 0.45s var(--ease);
}
.statbox:hover { box-shadow: var(--shadow-lg); translate: 0 -5px; }
.statbox--b:hover { translate: 0 -5px; } /* offset transform preserved via translate property */

/* image: clear, slow zoom + pan on hover */
.statbox__img { position: absolute; inset: 0; z-index: -2; }
.statbox__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.8s var(--ease);
}
.statbox:hover .statbox__img img { transform: scale(1.09) translateY(-2%); }

/* permanent soft scrim for legibility (no blur, no rise) */
.statbox::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15,35,46,0.05) 35%, rgba(15,35,46,0.55) 78%, rgba(15,35,46,0.72) 100%);
  transition: opacity 0.45s var(--ease);
}
.statbox:hover::before { opacity: 0.9; }

/* shine sweep on hover */
.statbox::after {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%;
  left: -75%;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}
.statbox:hover::after { left: 125%; }

/* stat content bottom-anchored */
.statbox__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(18px, 2.5vw, 28px);
  text-align: center;
}
.statbox__number {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(15, 35, 46, 0.65);
  display: inline-block;
}
.statbox__number b { font-weight: 800; font-variant-numeric: tabular-nums; }
.statbox__number span {
  color: var(--accent-bright);
  font-weight: 600;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* symbol pops once counting finishes */
.statboxes.is-counted .statbox__number span { animation: alcSymbolPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.15s both; }
@keyframes alcSymbolPop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
/* number scales 5% on hover (no rotation, per Sam 17/7 call) */
.statbox__number { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.statbox:hover .statbox__number { transform: scale(1.05); }
.statbox__label {
  margin-top: 10px;
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  max-width: 26ch;
  margin-left: auto; margin-right: auto;
  line-height: 1.4;
  text-shadow: 0 1px 12px rgba(15, 35, 46, 0.6);
}

@media (max-width: 760px) {
  .statboxes__collage { grid-template-columns: 1fr; }
  .statbox--a, .statbox--b, .statbox--c { width: 100%; aspect-ratio: 16 / 9; transform: none; margin: 0; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .statbox, .statbox__img img, .statbox::before, .statbox::after, .statbox__number, .statbox__number span { transition: none; animation: none !important; }
}

/* ---- A4: Embedded calculator on home ---- */
.calc-home { background: var(--tint-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-home .section-header { max-width: 720px; }

/* ---- A2: Why choose us — checkmark grid (Dentia ref) ---- */
.whychoose__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.whychoose__checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 48px);
}
.check-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.check-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.check-icon::after {
  content: "";
  width: 14px; height: 8px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check-item h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.check-item p { margin-top: 6px; font-size: 15px; color: var(--grey); line-height: 1.5; }
@media (max-width: 880px) {
  .whychoose__inner { grid-template-columns: 1fr; }
  .whychoose__checks { grid-template-columns: 1fr; }
}

/* ---- B3: What's included in ongoing service ---- */
.included { background: var(--brand); color: #fff; }
.included .section-header h2 { color: #fff; }
.included .section-header .lede { color: rgba(255,255,255,0.7); }
.included__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.included__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.included__item .check-icon { width: 40px; height: 40px; background: var(--accent-bright); }
.included__item .check-icon::after { border-color: var(--brand); }
.included__item h4 { color: #fff; font-size: 17px; font-weight: 600; }
.included__item p { margin-top: 6px; font-size: 14.5px; color: rgba(255,255,255,0.65); line-height: 1.5; }
@media (max-width: 720px) { .included__grid { grid-template-columns: 1fr; } }

/* ---- A5/A6: Testimonial slider ---- */
.testimonial__slider { position: relative; max-width: 1060px; margin: 0 auto; }
.testi-slide {
  display: none;
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  text-align: left;
}
.testi-slide.is-active { display: grid; }
.testi-slide__img {
  border-radius: var(--r-xl);           /* rounded-edge box per Sam */
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.testi-slide__img img { width: 100%; height: 100%; object-fit: cover; }
.testi-slide blockquote { margin: 0; }
.testi-slide blockquote p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.016em;
  line-height: 1.35;
  color: #fff;
}
.testi-slide blockquote p em { color: #9AD6F5; font-style: italic; }
.testi-slide cite { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; font-style: normal; font-size: 14px; }
.testi-slide cite strong { font-weight: 600; color: #fff; }
.testi-slide cite span { color: rgba(255,255,255,0.6); }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; }
.testi-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.testi-dot.is-active { background: var(--accent-bright); transform: scale(1.25); }
.testi-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.testi-arrow:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
@media (max-width: 760px) {
  .testi-slide { grid-template-columns: 1fr; text-align: center; }
  .testi-slide__img { max-width: 260px; margin: 0 auto; aspect-ratio: 1; }
  .testi-slide cite { align-items: center; }
}

/* ---- A8/C3: Blog grid + category chips ---- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
}
.cat-chip:hover { border-color: var(--brand); color: var(--brand); }
.cat-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.bloggrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 960px) { .bloggrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bloggrid { grid-template-columns: 1fr; } }

/* ---- Subpage hero ---- */
.page-hero { padding-top: 48px; padding-bottom: clamp(32px, 5vw, 56px) !important; }
.page-hero h1 {
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 800;
  letter-spacing: -0.026em;
  line-height: 1.03;
  max-width: 20ch;
}
.page-hero .lede { margin-top: 20px; font-size: 18px; color: var(--grey); max-width: 62ch; line-height: 1.55; }
.page-hero .eyebrow { margin-bottom: 14px; }

/* ---- C1: About — team / values / pricing ---- */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.team-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.team-card__photo {
  /* 3:4 to match the headshots — a square frame cropped the tops of heads */
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--tint) 0%, var(--tint-soft) 100%);
  display: flex; align-items: center; justify-content: center;
}
/* anchor to the top so any headroom is kept and heads are never clipped */
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-card__photo .initials {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
}
.team-card__body { padding: 24px; }
.team-card__body h3 { font-size: 20px; }
.team-card__role { margin-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.team-card__body p { margin-top: 12px; font-size: 15px; color: var(--grey); line-height: 1.55; }
@media (max-width: 820px) { .team__grid { grid-template-columns: 1fr; } }

.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  background: var(--tint-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.value-card h4 { font-size: 18px; font-weight: 600; }
.value-card p { margin-top: 10px; font-size: 15px; color: var(--grey); line-height: 1.55; }
@media (max-width: 820px) { .values__grid { grid-template-columns: 1fr; } }

.pricing__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; }
.price-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  position: relative;
}
.price-card--feature { background: var(--brand); border-color: var(--brand); }
.price-card--feature h3, .price-card--feature .price-card__amount { color: #fff; }
.price-card--feature p { color: rgba(255,255,255,0.7); }
.price-card h3 { font-size: 20px; }
.price-card__amount {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.price-card__amount small { font-size: 15px; font-weight: 500; color: inherit; opacity: 0.6; letter-spacing: 0; }
.price-card p { margin-top: 14px; font-size: 15px; color: var(--grey); line-height: 1.55; }
@media (max-width: 720px) { .pricing__grid { grid-template-columns: 1fr; } }

/* ---- Service pages / all-services ---- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc-card h3 { font-size: 22px; letter-spacing: -0.016em; }
.svc-card p { margin-top: 12px; color: var(--grey); line-height: 1.55; flex: 1; }
.svc-card .link-arrow { margin-top: 20px; }
.svc-note {
  background: var(--tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 72ch;
}
@media (max-width: 720px) { .svc-grid { grid-template-columns: 1fr; } }

/* Highlight band (messaging moments) */
.band { background: var(--tint-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__inner { max-width: 860px; margin: 0 auto; text-align: center; }
.band__inner h2 { font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.02em; line-height: 1.15; }
.band__inner h2 em { color: var(--accent); font-style: italic; }
.band__inner p { margin-top: 18px; font-size: 17px; color: var(--grey); line-height: 1.6; max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ---- Shared calculator styles (also used by home embed) ---- */
/* =============================================
     ALCHEMY ROI CALCULATOR — brand-aligned
     Palette: #0F232E (brand dark), #2A78A6 (dialled-back blue), Inter
  ============================================= */
  .calc-page { padding-top: 56px; padding-bottom: var(--section); }
  .calc-page__intro { max-width: 760px; margin: 0 auto 40px; text-align: center; }
  .calc-page__intro h1 {
    font-size: clamp(32px, 4.4vw, 52px);
    letter-spacing: -0.025em;
    line-height: 1.05;
  }
  .calc-page__intro p {
    margin-top: 18px;
    font-size: 18px;
    color: var(--grey);
    line-height: 1.55;
  }

  .alc-calc-container {
    font-family: 'Inter', inherit;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px;
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
    box-shadow: var(--shadow-md);
    position: relative;
  }
  .alc-calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
  .alc-calc-panel { background: var(--tint-soft); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
  .alc-calc-panel-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-soft); margin: 0 0 24px 0; }
  .alc-calc-slider-group { margin-bottom: 28px; }
  .alc-calc-slider-group:last-of-type { margin-bottom: 0; }
  .alc-calc-slider-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
  .alc-calc-slider-label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
  .alc-calc-slider-value { font-size: 16px; font-weight: 700; color: #2A78A6; min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }

  .alc-calc-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 100px; outline: none; cursor: pointer; background: linear-gradient(to right, #2A78A6 57%, #E1E1E1 57%); display: block; }
  .alc-calc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #2A78A6; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(42,120,166,0.25), 0 2px 8px rgba(42,120,166,0.35); cursor: pointer; transition: box-shadow 0.15s ease, transform 0.15s ease; }
  .alc-calc-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 4px rgba(42,120,166,0.15), 0 4px 12px rgba(42,120,166,0.4); transform: scale(1.1); }
  .alc-calc-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #2A78A6; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(42,120,166,0.25), 0 2px 8px rgba(42,120,166,0.35); cursor: pointer; }
  .alc-calc-slider::-moz-range-track { height: 5px; border-radius: 100px; border: none; }

  .alc-calc-seg-label { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; display: block; }
  .alc-calc-seg-group { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); background: #fff; }
  .alc-calc-seg-group input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
  .alc-calc-seg-btn { display: block; padding: 11px 8px; text-align: center; cursor: pointer; border-right: 1.5px solid var(--line); font-size: 12px; font-weight: 600; color: var(--grey); line-height: 1.3; transition: background 0.2s ease, color 0.2s ease; user-select: none; -webkit-user-select: none; }
  .alc-calc-seg-btn:last-child { border-right: none; }
  .alc-calc-seg-btn:hover { background: var(--tint); color: #2A78A6; }
  .alc-calc-seg-btn .alc-calc-seg-name { display: block; font-size: 12px; }
  .alc-calc-seg-btn .alc-calc-seg-pct { display: block; font-size: 14px; font-weight: 700; margin-top: 2px; color: inherit; }
  input[type="radio"]:checked + .alc-calc-seg-btn { background: #2A78A6; color: #fff; box-shadow: inset 0 1px 3px rgba(0,0,0,0.15); }

  .alc-calc-results-panel { display: flex; flex-direction: column; gap: 16px; }
  .alc-calc-metric { background: #fff; border-radius: 12px; padding: 20px 22px; border: 1px solid var(--line); }
  .alc-calc-metric-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--grey-soft); margin-bottom: 6px; }
  .alc-calc-metric-value { font-size: 28px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }

  .alc-calc-metric-hero { background: linear-gradient(135deg, #0F232E 0%, #1B3D4E 100%); border-radius: 14px; padding: 26px 22px; position: relative; overflow: hidden; }
  .alc-calc-metric-hero::before { content: ''; position: absolute; top: -30px; right: -30px; width: 130px; height: 130px; background: rgba(56,169,235,0.10); border-radius: 50%; }
  .alc-calc-metric-hero::after { content: ''; position: absolute; bottom: -50px; left: -20px; width: 160px; height: 160px; background: rgba(56,169,235,0.06); border-radius: 50%; }
  .alc-calc-metric-hero .alc-calc-metric-title { color: rgba(255,255,255,0.65); }
  .alc-calc-metric-hero .alc-calc-metric-value { font-size: 42px; font-weight: 800; color: #fff; letter-spacing: -1.5px; line-height: 1.1; position: relative; z-index: 1; }
  .alc-calc-metric-hero .alc-calc-metric-sub { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; position: relative; z-index: 1; }

  .alc-calc-hook { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px; padding: 18px 20px; }
  .alc-calc-hook-eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #B45309; margin-bottom: 8px; }
  .alc-calc-hook p { font-size: 13px; line-height: 1.6; color: #78350F; margin: 0; }
  .alc-calc-hook .alc-calc-hook-bold { font-weight: 700; color: #92400E; }

  .alc-calc-cta { display: block; width: 100%; padding: 17px 20px; background: #0F232E; color: #fff; font-family: 'Inter', inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; text-decoration: none; border: none; border-radius: 12px; cursor: pointer; box-shadow: 0 1px 3px rgba(15,35,46,0.3), 0 6px 20px rgba(15,35,46,0.25); transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease; box-sizing: border-box; }
  .alc-calc-cta:hover { background: #1B3D4E; box-shadow: 0 2px 6px rgba(15,35,46,0.35), 0 10px 28px rgba(15,35,46,0.35); transform: translateY(-2px); }
  .alc-calc-cta-arrow { display: inline-block; margin-left: 6px; transition: transform 0.2s ease; }
  .alc-calc-cta:hover .alc-calc-cta-arrow { transform: translateX(3px); }
  .alc-calc-divider { height: 1px; background: var(--line); margin: 24px 0; }

  @media (max-width: 768px) {
    .alc-calc-container { padding: 24px 20px; border-radius: 16px; }
    .alc-calc-grid { grid-template-columns: 1fr; gap: 20px; }
    .alc-calc-panel { padding: 22px 20px; }
    .alc-calc-metric-hero .alc-calc-metric-value { font-size: 36px; }
    .alc-calc-seg-btn { padding: 10px 6px; font-size: 11px; }
    .alc-calc-seg-btn .alc-calc-seg-pct { font-size: 13px; }
  }
  @media (max-width: 420px) {
    .alc-calc-metric-hero .alc-calc-metric-value { font-size: 30px; letter-spacing: -1px; }
    .alc-calc-slider-value { font-size: 14px; }
  }

/* ---- Blog post pages ---- */
.post-hero { padding-top: 48px; padding-bottom: 32px !important; }
.post-hero .container { max-width: 860px; }
.post-hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.024em; line-height: 1.08; }
.post-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; font-size: 13px; color: var(--grey); }
.post-image { padding-top: 0 !important; padding-bottom: 0 !important; }
.post-image .container { max-width: 980px; }
.post-image img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.post-body { padding-top: 40px !important; }
.post-body .container { max-width: 760px; }
.post-body h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 40px 0 16px; letter-spacing: -0.02em; }
.post-body h3 { font-size: clamp(19px, 2vw, 24px); margin: 32px 0 12px; }
.post-body h4 { font-size: 18px; margin: 28px 0 10px; }
.post-body p { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.7; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 24px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 8px; color: var(--ink-soft); line-height: 1.65; }
.post-body a { color: var(--accent); text-decoration: underline; }
.post-body img { border-radius: var(--r-lg); margin: 24px 0; }
.post-body blockquote { border-left: 3px solid var(--accent); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--grey); font-style: italic; }


/* ============================================================
   JULY-17 CHANGES (local QA build)
   ============================================================ */

/* long-form copy block */
.svc-copy { max-width: 760px; }
.svc-copy p { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.7; }

/* band: text left / image right */
.band__split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.band__split .band__inner { text-align: left; margin: 0; }
.band__split .band__inner p { margin-left: 0; margin-right: 0; }
.band__photo { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.band__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .band__split { grid-template-columns: 1fr; } }

/* what's included: cards hug their text (Sam 17/7), photo capped + mobile-safe */
.included__split {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;      /* wider text side so lines don't break early */
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.included__split .included__grid { grid-template-columns: 1fr 1fr; align-items: start; }
.included__item { height: auto; }  /* size to text */
.included__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;             /* fixed, not stretched */
}
.included__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; } /* keep the face */
@media (max-width: 880px) {
  .included__split { grid-template-columns: 1fr; }
  .included__split .included__grid { grid-template-columns: 1fr; }
  .included__photo { aspect-ratio: 4 / 3; }  /* head stays in frame on mobile */
}

/* services index: media cards with stat-style hover; no full-width underline */
a.svc-card { color: inherit; }
.svc-card--media {
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.svc-card--media:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc-card__img { display: block; aspect-ratio: 16 / 8; overflow: hidden; position: relative; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.svc-card--media:hover .svc-card__img img { transform: scale(1.07); }
.svc-card--media::after {              /* shine sweep, same as home stats */
  content: "";
  position: absolute;
  top: -20%; bottom: -20%;
  left: -75%;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}
.svc-card--media:hover::after { left: 125%; }
.svc-card__body { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 28px 30px; flex: 1; }
.svc-card__body h3 { font-size: 22px; letter-spacing: -0.016em; }
.svc-card__body p { margin-top: 10px; color: var(--grey); line-height: 1.55; flex: 1; }
.svc-card__body .link-arrow { margin-top: 18px; align-self: flex-start; border-bottom: 0; } /* hugs text, no long rule */
.svc-card--media:hover .link-arrow { color: var(--accent); }

/* free strategy call page */
.fsc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fsc-step { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.fsc-step .num { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 14px; letter-spacing: 0.06em; }
.fsc-step h3 { font-size: 20px; margin-top: 10px; }
.fsc-step p { margin-top: 10px; color: var(--grey); line-height: 1.55; font-size: 15.5px; }
@media (max-width: 820px) { .fsc-steps { grid-template-columns: 1fr; } }
.fsc-list { max-width: 720px; }
.fsc-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 10px 0; color: var(--ink-soft); line-height: 1.55; }
.fsc-list .check-icon { width: 24px; height: 24px; }
.fsc-list .check-icon::after { width: 9px; height: 5px; border-width: 0 0 2px 2px; border-style: solid; }
.fsc-cal-bare { min-height: 640px; }  /* bare cal.com embed, no card frame */

.svc-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.svc-media .img-ph { aspect-ratio: 4 / 3; }

/* case-study lead video + any videos inside article copy */
.cs-video { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--brand); max-width: 980px; margin: 0 auto; }
.cs-video iframe { border: 0; position: absolute; top: 0; height: 100%; width: 100%; }
.post-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-md); margin: 24px 0; display: block; background: var(--brand); }

/* case-study gallery (responsive) */
.cs-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.cs-gallery figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.cs-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
@media (max-width: 640px) { .cs-gallery { grid-template-columns: 1fr; } }




/* ============================================================
   ARTICLE EDITORIAL LAYOUT — blog posts & case-study copy only.
   Text stays at a readable measure; media breaks out wide to
   fill the left/right space.
   ============================================================ */
.post-body .container { max-width: 1160px; }
/* text elements: centered readable column */
.post-body p, .post-body h2, .post-body h3, .post-body h4,
.post-body ul, .post-body ol, .post-body blockquote {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
/* media: break out to the full article frame */
.post-body img, .post-body figure, .post-body iframe {
  max-width: 1160px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.post-body figure { margin: 32px auto; }
.post-body figure img { margin: 0; }
/* alternate large images pull slightly left/right for rhythm */
@media (min-width: 1100px) {
  .post-body figure:nth-of-type(odd) img,
  .post-body > img:nth-of-type(odd) { transform: translateX(-24px); }
  .post-body figure:nth-of-type(even) img,
  .post-body > img:nth-of-type(even) { transform: translateX(24px); }
}
/* the back-link row stays with the text column */
.post-body p:last-child { max-width: 720px; }
/* post hero + lead media align with the wide article frame */
.post-hero .container { max-width: 860px; }
.post-image .container { max-width: 1160px; }
.cs-video, .cs-gallery { max-width: 1160px; }

/* centre the view-all button beneath the case cards */
.work__more { display: flex; justify-content: center; margin-top: -8px; }
.work__more .btn { border-color: var(--brand); }

/* video frame: size the iframe even when inline styles were stripped */
.cs-video { position: relative; }
.cs-video > div { position: relative; padding-top: 56.25%; }
.cs-video iframe { position: absolute !important; top: 0 !important; left: 0; width: 100% !important; height: 100% !important; border: 0; margin: 0; max-width: none; }


/* ============================================================
   17-JULY CALL CHANGES
   ============================================================ */

/* 6) no orphaned words in headings */
h1, h2, h3, .thesis__body { text-wrap: balance; }

/* 2) thesis: heading line + typed second line with cursor */
.thesis__body em {
  display: block;
  /* Spacing comes from line-height ALONE so both lines sit on one rhythm.
     A margin here, or a min-height taller than the line box, makes the gap
     between line 1 and line 2 larger than the gap between wrapped lines of
     line 1. Keep line-height and min-height identical. */
  margin-top: 0;
  line-height: 1.2;               /* == .thesis__body line-height */
  min-height: 1.2em;              /* == exactly one line box */
  font-family: var(--font-serif); /* Merriweather, per Tony 20/7 */
  font-weight: 400;
  letter-spacing: -0.005em;       /* serif needs less negative tracking than Inter */
}
/* caret must not inflate the line box and unbalance the spacing */
.thesis__body em .type-caret { line-height: 1; }
.thesis__body em .type-caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: -0.12em;
  animation: alcCaret 0.9s steps(1) infinite;
}
@keyframes alcCaret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .thesis__body em .type-caret { display: none; } }

/* 3) stats disclaimer */
.stats-note {
  margin: clamp(44px, 5vw, 64px) auto 0;   /* clears the offset card */
  max-width: 1040px;
  text-align: center;
  font-size: 13px;
  color: var(--grey);
  background: var(--tint-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 18px;
}

/* 5) calculator floats: no white container; panels get gradient + soft shadow */
.alc-calc-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.alc-calc-panel {
  background: linear-gradient(160deg, #FFFFFF 0%, var(--tint-soft) 100%) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 30px rgba(15, 35, 46, 0.08) !important;
}
.alc-calc-metric { box-shadow: 0 6px 18px rgba(15, 35, 46, 0.06); }

/* 4) about: edge-to-edge intro (two text columns across the full frame) */
.about-wide .svc-copy {
  max-width: none;
  columns: 2;
  column-gap: clamp(40px, 5vw, 96px);
}
.about-wide .svc-copy p { break-inside: avoid; }
@media (max-width: 880px) { .about-wide .svc-copy { columns: 1; } }
.about-wide .pricing__grid { max-width: none; }


/* ============================================================
   QA ROUND (18 Jul)
   ============================================================ */

/* included: uniform card heights per row + no orphan words */
.included__split .included__grid { align-items: stretch; }
.included__item { height: 100%; }
.included__item p { text-wrap: pretty; }
@media (max-width: 880px) { .included__item { height: auto; } }

/* services index: 2 + 3 layout, no orphan card */
.svc-grid {
  grid-template-columns: repeat(6, 1fr);
}
.svc-grid > *:nth-child(1), .svc-grid > *:nth-child(2) { grid-column: span 3; }
.svc-grid > *:nth-child(3), .svc-grid > *:nth-child(4), .svc-grid > *:nth-child(5) { grid-column: span 2; }
.svc-grid > *:nth-child(n+3) .svc-card__body h3 { font-size: 19px; }
.svc-grid > *:nth-child(n+3) .svc-card__body { padding: 20px 22px 24px; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-grid > * { grid-column: auto !important; }
}

/* problems list: per-row animated mini-graphics */
.failure { grid-template-columns: 80px 1fr 96px; }
.failure__viz { width: 84px; height: 64px; justify-self: end; align-self: center; }
.failure__viz svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 640px) { .failure { grid-template-columns: 1fr; } .failure__viz { justify-self: start; } }
.fv-stroke { stroke: var(--accent); fill: none; stroke-width: 3; }
.fv-muted { stroke: var(--line-strong); fill: none; stroke-width: 3; }
.fv-fill { fill: var(--accent); }
.fv-soft { fill: var(--tint); }
/* animations fire when .is-inview lands on the list */
.failures.is-inview .fv-phone-bar { animation: fvOverflow 2.6s ease-in-out infinite; }
@keyframes fvOverflow { 0%,100% { transform: translateX(0); } 50% { transform: translateX(14px); } }
.failures.is-inview .fv-cursor { animation: fvWander 4.5s ease-in-out infinite; }
@keyframes fvWander {
  0%   { transform: translate(64px, 4px); }
  30%  { transform: translate(40px, 44px); }
  55%  { transform: translate(70px, 30px); }
  80%  { transform: translate(48px, 10px); }
  100% { transform: translate(64px, 4px); }
}
/* 03: doctor stays static; STOCK banner fades in over him (Sam 19/7) */
.failures.is-inview .fv-watermark { animation: fvStockFade 7s ease-in-out infinite; opacity: 0; }
@keyframes fvStockFade {
  0%, 10% { opacity: 0; }
  30%, 85% { opacity: 0.18; }
  100% { opacity: 0; }
}
.failures.is-inview .fv-rank { animation: fvSink 3s ease-in-out infinite; }
@keyframes fvSink { 0%,100% { transform: translateY(0); } 50% { transform: translateY(16px); } }
.failures.is-inview .fv-line2 { animation: fvRare 9s linear infinite; }
.failures.is-inview .fv-line3 { animation: fvRare 9s linear infinite 3s; }
.failures.is-inview .fv-line4 { animation: fvRare 9s linear infinite 6s; }
@keyframes fvRare { 0%, 30% { opacity: 0; } 36%, 95% { opacity: 0.85; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .failures .fv-phone-bar, .failures .fv-cursor, .failures .fv-rank, .failures .fv-line2, .failures .fv-line3, .failures .fv-line4 { animation: none !important; opacity: 1 !important; }
  .failures .fv-watermark { animation: none !important; opacity: 0.18 !important; }
}


/* ============================================================
   QA ROUND (19 Jul, Sam's staging notes)
   ============================================================ */

/* calculator sliders: horizontal drags go to the slider, not the page
   (mobile side-scroll fix); vertical swipes still scroll normally */
.alc-calc-slider { touch-action: pan-y; }
@media (max-width: 768px) {
  .calc-home, .calc-page, .alc-calc-container { overflow-x: clip; }
}

/* audit form: stack on mobile — in a row the button text wraps and
   drags the email box up to ~100px tall */
@media (max-width: 720px) {
  .audit__form { flex-direction: column; gap: 8px; padding: 8px; }
  .audit__form input { padding: 10px 12px; font-size: 15px; }
  .audit__form button { padding: 12px 14px; font-size: 13px; width: 100%; }
}

/* calculator disclaimer (Sam 19-Jul follow-up) */
.calc-note {
  margin: 18px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 13px;
  color: var(--grey);
}

/* ============================================================
   SERVICE PAGES (20 Jul): hub strip + media rows move into the
   draft (were theme-only), plus framed client screenshots
   ============================================================ */
.svc-hub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.svc-hub a {
  font-size: 13px; font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.svc-hub a:hover { border-color: var(--brand); color: var(--brand); }
.svc-hub a.is-current { background: var(--brand); border-color: var(--brand); color: #fff; pointer-events: none; }

.img-ph {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--tint-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-soft);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-align: center; padding: 16px;
}
.svc-media { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .svc-media { grid-template-columns: 1fr; } }

/* client screenshots: framed, same 4:3 as the photo beside them,
   pinned to the top of the page capture */
.svc-shot { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: #fff; }
.svc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* wide dashboard screenshots: letterbox instead of cropping */
.svc-shot--fit img { object-fit: contain; }

/* homepage services: whole card is the link (Tony 20/7) */
a.service { display: block; }
a.service:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a.service h3 { transition: color 0.2s var(--ease); }
a.service:hover h3 { color: var(--accent); }


/* ============================================================
   GUTENBERG COMPATIBILITY (20 Jul)
   Page content moved out of PHP templates and into the block
   editor so it can be edited from wp-admin. Core blocks render
   as <div>/<figure>, so every rule that relied on an element
   selector needs a class-based twin here.
   ============================================================ */

/* `main > section` never matches a Group block (it's a div) */
main > .alc-section,
.entry-content > .alc-section { padding-top: var(--section); padding-bottom: var(--section); }
.alc-section--tight { padding-top: 0 !important; }

/* the content wrapper must not add a width of its own */
.entry-content { max-width: none; margin: 0; }

/* Group blocks: strip only core's default TOP margin. Do NOT blanket-reset
   margin-bottom, or theme classes like .section-header (40px) get flattened
   and headings collide with the grid beneath them. */
.entry-content > .wp-block-group { margin-top: 0; }

/* WordPress re-inserts a .wp-block-group__inner-container wrapper inside every
   Group block for classic themes (wp_restore_group_inner_container). That
   wrapper becomes the only child of grid/flex containers like .team__grid, so
   3-up layouts collapse to 1. `display: contents` removes the wrapper's box
   from the layout tree, letting the real children be grid items again. */
.entry-content .wp-block-group__inner-container { display: contents; }

/* Image blocks used as card media: figure carries core margins */
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; }
.team-card__photo.wp-block-image,
.about-hero__photo.wp-block-image,
.included__photo.wp-block-image,
.band__photo.wp-block-image,
.svc-photo.wp-block-image,
.svc-shot.wp-block-image { margin: 0; }
.team-card__photo.wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Headings inside blocks: the global `h1..h6 { margin: 0 }` reset already
   handles core's defaults, so do NOT re-assert margin:0 here. Doing so beat
   `.post-body h2 { margin-left:auto; margin-right:auto }` (0,2,0 vs 0,1,1)
   and knocked article headings out of the centred text column. */

/* buttons authored as core button blocks */
.wp-block-buttons { margin: 0; }
.wp-block-button__link.btn { text-decoration: none; }

/* Services index cards as blocks: the card was an <a>; as an editable Group it
   needs a stretched link instead so the whole tile stays clickable. */
.entry-content .svc-card--media { position: relative; }
.entry-content .svc-card--media .link-arrow a::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
}
.entry-content .svc-card--media:hover .link-arrow { color: var(--accent); }
.entry-content .svc-card__img.wp-block-image { margin: 0; }
.entry-content .svc-card__img.wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* service page media rows */
.entry-content .svc-media .wp-block-image { margin: 0; }
.entry-content .svc-shot.wp-block-image img,
.entry-content .svc-photo.wp-block-image img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------
   Block conversion: specificity repairs.

   In the old templates these were <div>/<span>. As editable core
   blocks they become <p>, which loses to parent rules like
   `.team-card__body p` (0,1,1) beating `.team-card__role` (0,1,0).
   Re-assert each one under .entry-content (0,2,0) so the approved
   design wins. Values copied verbatim from the originals above.
   ------------------------------------------------------------ */
.entry-content .team-card__role {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
}
.entry-content .closing__note {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-eyebrow);
  letter-spacing: 0.06em;
}
.entry-content .price-card__amount {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}
/* link-arrow authored as a paragraph inside cards */
.entry-content .svc-card__body .link-arrow,
.entry-content .svc-copy .link-arrow {
  margin-top: 18px;
  color: var(--ink);
  flex: none;
}
.entry-content .link-arrow a { color: inherit; }
.entry-content .link-arrow { display: block; }
.entry-content .link-arrow a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.entry-content .link-arrow a::after { content: "→"; transition: transform 0.25s var(--ease); }
.entry-content .link-arrow a:hover::after { transform: translateX(3px); }
.entry-content .link-arrow::after { content: none; }

/* homepage service cards as editable blocks: whole tile stays clickable */
.entry-content .service { position: relative; }
.entry-content .service h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.entry-content .service h3 a { color: inherit; }
/* partial-rendered sections sit inside .entry-content, not directly under main */
.entry-content > section { padding-top: var(--section); padding-bottom: var(--section); }
.entry-content > section.calc-home,
.entry-content > section.statboxes { padding-top: var(--section); }

/* Responsive fix: the articles grid carries an inline
   `grid-template-columns: repeat(2,1fr)`, which inline-style precedence keeps
   at 2-up even on a 390px phone (168px cards). Force single column on small
   screens. !important is required to beat the inline style. */
@media (max-width: 640px) {
  .bloggrid { grid-template-columns: 1fr !important; }
}

/* layout wrappers that used to be inline styles on <section>/<div> in templates */
.cs-index-grid { display: grid; gap: clamp(44px, 5vw, 80px); }
.contact-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .contact-split { grid-template-columns: 1fr; } }
.entry-content .cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* Core button block: strip its own chrome so the theme's .btn look wins,
   and centre CTAs inside the centred closing panel (core defaults the flex
   container to flex-start, which left-aligned the button). */

/* ------------------------------------------------------------
   CTA buttons authored as core Button blocks.

   Core's schema forbids extra classes on the <a>, so the theme's
   classes go on the WRAPPER via the block's className. They must be
   namespaced `alc-btn--*` and NOT reuse `.btn--primary`: that class
   would then also match the wrapper div, which painted a second
   background box and rendered a duplicate ::after arrow below it.
   ------------------------------------------------------------ */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.closing__inner .wp-block-buttons,
.calc-page__intro .wp-block-buttons { justify-content: center; }

.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.wp-block-button.alc-btn--primary .wp-block-button__link {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 35, 46, 0.25), 0 6px 18px rgba(15, 35, 46, 0.18);
}
.wp-block-button.alc-btn--primary .wp-block-button__link::after { content: "→"; transition: transform 0.25s var(--ease); }
.wp-block-button.alc-btn--primary .wp-block-button__link:hover { background: var(--brand-hover); }
.wp-block-button.alc-btn--primary .wp-block-button__link:hover::after { transform: translateX(3px); }
.wp-block-button.alc-btn--ghost .wp-block-button__link {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.wp-block-button.alc-btn--ghost .wp-block-button__link:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.wp-block-button.alc-btn--large .wp-block-button__link { padding: 17px 28px; font-size: 16px; }

/* Closing panel sits on brand dark, so its CTA flips to the bright accent
   (mirrors `.closing .btn--primary`). Without this the button rendered
   navy-on-navy and was invisible. */
.closing .wp-block-button.alc-btn--primary .wp-block-button__link {
  margin-top: 0;
  background: var(--accent-bright);
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 6px 18px rgba(0,0,0,0.22);
}
.closing .wp-block-button.alc-btn--primary .wp-block-button__link:hover { background: #5FBCF0; }
.closing .wp-block-buttons { margin-top: 40px; }

/* blog category chips sit under the hero lede (they are placed inside the
   hero's container via [alchemy_blog_categories], so they inherit its gutter) */
.page-hero .cat-chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Blog post featured image: without a ratio a portrait photo renders at its full
   natural height and swamps the article. Crop to a banner like the rest of the
   media on the site (the case-study film is 16:9, blog thumbs are 4:3). */
.post-image img {
  width: 100%;
  height: auto;          /* required: WP prints height="1278" and that attribute
                            wins unless a CSS height is declared, which stops
                            aspect-ratio from ever applying */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .post-image img { aspect-ratio: 4 / 3; }
}

/* Sections hidden from the front end but kept in the editor.
   Sam can unhide by removing "alc-hidden" from the block's
   Advanced > Additional CSS class(es). Nothing is deleted. */
.alc-hidden { display: none !important; }


/* ============================================================
   THEME-ONLY BLOCKS
   Used by header.php / service templates but not by the local
   static draft. (svc-hub, img-ph, svc-media, svc-photo and
   .svc-shot now live in the draft CSS above — do not re-add.)
   ============================================================ */

/* services dropdown in main nav (Sam 5.1) */
.nav__item { position: relative; display: inline-block; }
.nav__item > a { display: inline-block; }
.nav__drop {
  position: absolute;
  top: 100%; left: -14px;
  min-width: 260px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  z-index: 60;
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { display: block; }
.nav__drop a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 6px;
  color: var(--ink-soft);
}
.nav__drop a:hover { background: var(--tint-soft); color: var(--ink); }
.nav__drop a::after { display: none; }
@media (max-width: 920px) {
  .nav__drop { position: static; display: block; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 16px; min-width: 0; }
  .nav__drop a { font-size: 17px; font-weight: 500; }
}

/* homepage services list: 5th card spans full width (Sam 4.2) */
.services__grid .service:nth-child(5) { grid-column: 1 / -1; }

/* content is never hidden behind JS (blank-sections fix) — keep LAST */
.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }
