/* ==========================================================================
   SEO Consultant NZ — main stylesheet
   Naming: BEM. Rule: every element carries at most ONE class.
   Modifiers are standalone classes (e.g. .button--ghost) that share the
   base rules through grouped selectors, so no element ever needs two classes.
   State is expressed with ARIA / data attributes, never extra classes.
   ========================================================================== */

/* ---------- Fonts (self-hosted, subset, swap) ---------- */
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif"; src: url("../fonts/serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif"; src: url("../fonts/serif-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif"; src: url("../fonts/serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Source Serif"; src: url("../fonts/serif-latin-ext-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Source Serif"; src: url("../fonts/serif-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif"; src: url("../fonts/serif-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --ink: #172231;          /* brand navy: text, dark sections */
  --ink-soft: #2a3747;
  --paper: #ffffff;
  --mist: #f1f4f7;         /* cool section ground */
  --gold: #e2b23a;         /* brand gold, used as a highlighter */
  --gold-deep: #b98a14;
  --gold-wash: #fbf1d6;
  --link: #1f4fd1;         /* SERP blue: inline links + result titles */
  --rank: #17784a;         /* SERP green: URLs, upward movement */
  --muted: #556275;
  --line: #d8dee6;
  --line-dark: #3a4858;

  --font-ui: "Bricolage", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-text: "Source Serif", Georgia, "Times New Roman", serif;

  /* modular scale 1.25 on an 18px body */
  --fs-sm: 0.889rem;
  --fs-base: 1.125rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.44rem);
  --fs-2xl: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 4vw, 4.4rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: clamp(4rem, 3rem + 5vw, 7.5rem);

  --wrap: 75rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --measure: 66ch;
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 18px;
  --shadow-panel: 0 1px 0 rgba(23, 34, 49, 0.04), 0 24px 48px -24px rgba(23, 34, 49, 0.28);
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: var(--fs-base); line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-ui); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--ink); }
strong { font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: var(--gutter); top: -4rem; z-index: 100; padding: 0.75rem 1rem; background: var(--ink); color: var(--paper); font-family: var(--font-ui); border-radius: var(--radius-s); }
.skip-link:focus { top: 0.75rem; }

/* ---------- Buttons (base + standalone modifiers) ---------- */
.button, .button--ghost, .button--light, .button--ink {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.8rem 1.5rem;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 650; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius-s); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.button { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.button:hover { background: #ebc154; border-color: #ebc154; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--paper); }
.button--light { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, 0.55); }
.button--light:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.08); }
.button--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button--ink:hover { background: var(--ink-soft); }
.button:active, .button--ghost:active, .button--light:active, .button--ink:active { transform: translateY(1px); }

/* ---------- Site header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.site-header__brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.site-header__logo { width: 2.6rem; height: auto; }
.site-header__wordmark { display: flex; flex-direction: column; font-family: var(--font-ui); line-height: 1.1; }
.site-header__name { font-weight: 750; font-size: 1.1rem; letter-spacing: -0.01em; }
.site-header__tagline { font-size: 0.8rem; color: var(--muted); }
.site-header__toggle { display: none; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: var(--radius-s); cursor: pointer; }
.site-header__toggle-bars { display: block; width: 1.1rem; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }

/* ---------- Primary navigation ---------- */
.nav { display: flex; align-items: center; gap: var(--space-3); }
.nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav__item { position: relative; }
.nav__link, .nav__trigger { display: flex; align-items: center; gap: 0.35rem; padding: 0.6rem 0.75rem; font-family: var(--font-ui); font-size: 0.98rem; font-weight: 550; color: var(--ink); text-decoration: none; background: none; border: 0; border-radius: var(--radius-s); cursor: pointer; }
.nav__link:hover, .nav__trigger:hover { background: var(--mist); }
.nav__link[aria-current="page"], .nav__trigger[data-current="true"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.nav__chevron { width: 0.6rem; height: 0.6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease; }
.nav__trigger[aria-expanded="true"] .nav__chevron { transform: translateY(2px) rotate(225deg); }
.nav__panel { position: absolute; top: calc(100% + 0.6rem); left: -1rem; width: min(40rem, 90vw); padding: var(--space-3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-panel); }
.nav__panel[hidden] { display: none; }
.nav__sublist { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem var(--space-3); list-style: none; }
.nav__subitem { display: block; }
.nav__sublink { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.65rem 0.75rem; border-radius: var(--radius-s); text-decoration: none; color: var(--ink); }
.nav__sublink:hover { background: var(--mist); }
.nav__subtitle { font-family: var(--font-ui); font-weight: 650; font-size: 0.98rem; }
.nav__subtext { font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.nav__panel-foot { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); font-family: var(--font-ui); font-size: 0.95rem; }
.nav__cta { display: flex; align-items: center; gap: var(--space-2); }
.nav__phone { font-family: var(--font-ui); font-weight: 600; font-size: 0.98rem; color: var(--ink); text-decoration: none; white-space: nowrap; }

@media (max-width: 68rem) {
  .site-header__toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; display: block; padding: var(--space-3) var(--gutter) var(--space-6); background: var(--paper); overflow-y: auto; }
  .nav[data-open="false"] { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link, .nav__trigger { width: 100%; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1.1rem; }
  .nav__panel { position: static; width: auto; padding: 0 0 var(--space-2); border: 0; box-shadow: none; }
  .nav__sublist { grid-template-columns: 1fr; }
  .nav__cta { flex-direction: column; align-items: stretch; margin-top: var(--space-4); }
  .nav__phone { padding: 0.75rem 0; text-align: center; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { max-width: var(--wrap); margin: 0 auto; padding: var(--space-3) var(--gutter) 0; font-family: var(--font-ui); font-size: 0.9rem; }
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; color: var(--muted); }
.breadcrumb__item { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: var(--line); }
.breadcrumb__link { color: var(--muted); text-decoration: none; }
.breadcrumb__link:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb__current { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { max-width: var(--wrap); margin: 0 auto; padding: var(--space-5) var(--gutter) var(--space-7); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6); align-items: center; }
.hero__content { display: flex; flex-direction: column; gap: var(--space-3); }
.hero__byline { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-ui); font-size: 0.98rem; color: var(--muted); }
.hero__avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gold-wash); object-fit: cover; object-position: 50% 12%; }
.hero__title { font-size: var(--fs-3xl); line-height: 1.02; letter-spacing: -0.035em; font-weight: 750; }
.hero__lead { font-size: var(--fs-md); line-height: 1.55; max-width: 38em; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: var(--space-1); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-top: var(--space-2); list-style: none; font-family: var(--font-ui); font-size: 0.95rem; color: var(--muted); }
.hero__fact { display: flex; align-items: center; gap: 0.5rem; }
.hero__fact::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--gold); border-radius: 1px; transform: rotate(45deg); }
.hero__aside { position: relative; }
@media (max-width: 60rem) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-5); padding-bottom: var(--space-6); }
}

/* ---------- SERP panel (signature element) ---------- */
.serp { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-panel); padding: var(--space-3); font-family: Arial, Helvetica, sans-serif; }
.serp__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 1px 4px rgba(23, 34, 49, 0.08); }
.serp__glass { width: 1rem; height: 1rem; border: 2px solid var(--muted); border-radius: 50%; position: relative; flex: none; }
.serp__glass::after { content: ""; position: absolute; width: 2px; height: 0.45rem; background: var(--muted); right: -0.3rem; bottom: -0.35rem; transform: rotate(-45deg); }
.serp__query { font-size: 1rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp__caret { display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: var(--ink); animation: serp-caret 1s steps(1) infinite; }
.serp__meta { padding: 0.9rem 0.25rem 0.25rem; font-size: 0.8rem; color: var(--muted); }
.serp__results { display: flex; flex-direction: column; list-style: none; }
.serp__result, .serp__result--you { position: relative; display: grid; grid-template-columns: 2rem 1fr; gap: 0.25rem 0.75rem; padding: 0.85rem 0.25rem; border-top: 1px solid var(--mist); }
.serp__result--you { z-index: 1; background: var(--gold-wash); border-radius: var(--radius-m); padding: 0.85rem 0.75rem; border-top-color: transparent; box-shadow: 0 0 0 1.5px var(--gold); }
.serp__rank { grid-row: span 3; font-family: var(--font-ui); font-weight: 700; font-size: 0.85rem; color: var(--muted); padding-top: 0.15rem; }
.serp__url { font-size: 0.8rem; color: var(--rank); }
.serp__title { font-size: 1.05rem; color: var(--link); line-height: 1.3; }
.serp__snippet { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.serp__ghost { display: block; height: 0.55rem; width: 85%; margin: 0.3rem 0; background: var(--mist); border-radius: 3px; }
.serp__note { margin-top: var(--space-2); font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); }
.serp__query-text { white-space: pre; }
.serp[data-play="ready"] .serp__result--you { transform: translateY(var(--serp-up, 300%)); }
.serp[data-play="ready"] .serp__result { transform: translateY(calc(var(--serp-down, 100%) * -1)); }
.serp[data-play="true"] .serp__result--you { animation: serp-climb 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.serp[data-play="true"] .serp__result { animation: serp-drop 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes serp-climb { from { transform: translateY(var(--serp-up, 300%)); } to { transform: translateY(0); } }
@keyframes serp-drop { from { transform: translateY(calc(var(--serp-down, 100%) * -1)); } to { transform: translateY(0); } }
@keyframes serp-caret { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
.section, .section--mist, .section--ink, .section--gold { padding: var(--space-7) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #e9eef4; }
.section--gold { background: var(--gold); color: var(--ink); }
.section__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section__head { display: flex; flex-direction: column; gap: var(--space-2); max-width: 48rem; margin-bottom: var(--space-5); }
.section__title { font-size: var(--fs-2xl); }
.section__lead { font-size: var(--fs-md); color: var(--muted); line-height: 1.55; }
.section--ink .section__lead, .section--ink .split__text { color: #b7c3d1; }

/* ---------- Split layout (sticky heading left, content right) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-6); align-items: start; }
.split__aside { position: sticky; top: calc(var(--header-h) + var(--space-4)); display: flex; flex-direction: column; gap: var(--space-2); }
.split__title { font-size: var(--fs-2xl); }
.split__text { color: var(--muted); font-size: var(--fs-base); }
.split__main { min-width: 0; }
@media (max-width: 60rem) { .split { grid-template-columns: 1fr; gap: var(--space-4); } .split__aside { position: static; } }

/* ---------- Prose (long-form copy; children are unclassed by design) ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 1.8em; }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--gold-deep); }
.prose blockquote { font-size: var(--fs-md); font-style: italic; color: var(--ink-soft); }
.section--ink .prose a { color: #9fc0ff; }

/* ---------- Audience rows ---------- */
.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; border-top: 2px solid var(--ink); }
.audience__item { padding: var(--space-4) var(--space-4) var(--space-3) 0; display: flex; flex-direction: column; gap: 0.75rem; }
.audience__item + .audience__item { padding-left: var(--space-4); border-left: 1px solid var(--line); }
.audience__title { font-size: var(--fs-lg); }
.audience__text { color: var(--ink-soft); }
.audience__link { margin-top: auto; font-family: var(--font-ui); font-weight: 600; }
@media (max-width: 52rem) {
  .audience { grid-template-columns: 1fr; }
  .audience__item, .audience__item + .audience__item { padding: var(--space-3) 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Service index (rule-separated list, not cards) ---------- */
.services { list-style: none; border-top: 1px solid var(--line); }
.services__item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-1) var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.services__title { font-size: var(--fs-lg); }
.services__link { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0% 0.35em; background-position: 0 88%; background-repeat: no-repeat; transition: background-size 0.25s ease; }
.services__link:hover { background-size: 100% 0.35em; }
.services__body { display: flex; flex-direction: column; gap: 0.6rem; color: var(--ink-soft); }
.services__keywords { font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted); }
.section--ink .services, .section--ink .services__item { border-color: var(--line-dark); }
.section--ink .services__link { color: var(--paper); }
.section--ink .services__body { color: #c9d3de; }
.section--ink .services__keywords { color: #97a6b8; }
.section--ink .services__keywords a, .section--ink .prose a, .section--ink .faq__answer a { color: #a9c4ff; }
@media (max-width: 52rem) { .services__item { grid-template-columns: 1fr; } }

/* ---------- Steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-4) var(--space-4); }
.steps__item { counter-increment: step; display: flex; flex-direction: column; gap: 0.6rem; padding-top: var(--space-2); border-top: 2px solid currentColor; }
.steps__item::before { content: counter(step); font-family: var(--font-ui); font-weight: 750; font-size: 2.6rem; line-height: 1; color: var(--gold-deep); }
.section--ink .steps__item::before { color: var(--gold); }
.steps__title { font-size: var(--fs-md); }
.steps__text { color: inherit; opacity: 0.86; }

/* ---------- Data table (keyword demand evidence) ---------- */
.table { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); }
.table__grid { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 0.95rem; }
.table__caption { caption-side: bottom; padding: 0.75rem 1rem; text-align: left; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }
.table__th { text-align: left; padding: 0.8rem 1rem; background: var(--mist); font-weight: 650; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table__td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--mist); }
.table__num { padding: 0.75rem 1rem; border-bottom: 1px solid var(--mist); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Callout figure ---------- */
.callout { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: center; padding: var(--space-4); background: var(--gold-wash); border-radius: var(--radius-m); }
.callout__figure { font-family: var(--font-ui); font-weight: 750; font-size: var(--fs-2xl); line-height: 1; letter-spacing: -0.03em; }
.callout__text { color: var(--ink-soft); }
.callout__source { display: block; margin-top: 0.35rem; font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); }
@media (max-width: 40rem) { .callout { grid-template-columns: 1fr; } }

/* ---------- Clients / proof ---------- */
.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.clients__item { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2); min-height: 9rem; padding: var(--space-3); background: var(--paper); }
.clients__logo { margin-bottom: auto; height: 2.6rem; width: auto; object-fit: contain; object-position: left center; }
.clients__name { font-family: var(--font-ui); font-weight: 650; font-size: 1.05rem; }
.clients__work { font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted); }
@media (max-width: 52rem) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .clients { grid-template-columns: 1fr; } }

/* ---------- Tiles (hub pages) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--space-3); list-style: none; }
.tiles__item { display: flex; }
.tiles__link, .tiles__link--soon, .tiles__panel { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; padding: var(--space-4) var(--space-3); color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.tiles__link:hover { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tiles__panel { background: var(--paper); }
.tiles__link--soon { background: transparent; border-style: dashed; color: var(--muted); }
.tiles__title { font-size: var(--fs-md); }
.tiles__text { font-size: 1rem; color: var(--ink-soft); }
.tiles__meta { margin-top: auto; padding-top: var(--space-1); font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted); }

/* ---------- Comparison list (two columns: pros/cons, do/don't) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.compare__col { padding: var(--space-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); }
.compare__title { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.compare__list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.compare__yes, .compare__no { position: relative; padding-left: 1.8rem; }
.compare__yes::before, .compare__no::before { position: absolute; left: 0; top: 0.05em; font-family: var(--font-ui); font-weight: 800; }
.compare__yes::before { content: "✓"; color: var(--rank); }
.compare__no::before { content: "✕"; color: #b42318; }
@media (max-width: 52rem) { .compare { grid-template-columns: 1fr; } }

/* ---------- Pricing plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); list-style: none; align-items: stretch; }
.plan, .plan--featured { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); }
.plan--featured { border: 2px solid var(--ink); box-shadow: var(--shadow-panel); }
.plan__flag { align-self: flex-start; padding: 0.25rem 0.6rem; font-family: var(--font-ui); font-size: 0.82rem; font-weight: 650; background: var(--gold); border-radius: var(--radius-s); }
.plan__name { font-size: var(--fs-lg); }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem; font-family: var(--font-ui); }
.plan__amount { font-size: var(--fs-xl); font-weight: 750; letter-spacing: -0.02em; }
.plan__term { font-size: 0.95rem; color: var(--muted); }
.plan__text { color: var(--ink-soft); }
.plan__features { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; padding: var(--space-2) 0; border-top: 1px solid var(--line); }
.plan__feature { position: relative; padding-left: 1.6rem; font-size: 1rem; }
.plan__feature::before { content: "✓"; position: absolute; left: 0; font-family: var(--font-ui); font-weight: 800; color: var(--rank); }
.plan__action, .plan__cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.8rem 1.5rem; font-family: var(--font-ui); font-weight: 650; text-decoration: none; border: 2px solid var(--ink); border-radius: var(--radius-s); transition: background-color 0.15s ease, color 0.15s ease; }
.plan__action { color: var(--ink); background: transparent; }
.plan__action:hover { background: var(--ink); color: var(--paper); }
.plan__cta { color: var(--paper); background: var(--ink); }
.plan__cta:hover { background: var(--ink-soft); }
@media (max-width: 60rem) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ (native details/summary) ---------- */
.faq { list-style: none; border-top: 1px solid var(--line); max-width: 54rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; font-family: var(--font-ui); font-size: var(--fs-md); font-weight: 650; line-height: 1.3; cursor: pointer; list-style: none; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; font-size: 1.4rem; font-weight: 500; border: 1.5px solid var(--ink); border-radius: 50%; transition: transform 0.2s ease; }
.faq__item[open] .faq__question::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 var(--space-3); max-width: var(--measure); color: var(--ink-soft); }
.faq__answer > * + * { margin-top: 0.8em; }
.section--ink .faq, .section--ink .faq__item { border-color: var(--line-dark); }
.section--ink .faq__question::after { border-color: var(--paper); }
.section--ink .faq__answer { color: #c9d3de; }

/* ---------- Author / E-E-A-T box ---------- */
.author { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: center; padding: var(--space-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); }
.author__photo { width: 8rem; height: 8rem; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--gold-wash); }
.author__body { display: flex; flex-direction: column; gap: 0.6rem; }
.author__name { font-size: var(--fs-lg); }
.author__role { font-family: var(--font-ui); font-size: 0.95rem; color: var(--muted); }
.author__text { color: var(--ink-soft); }
.author__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; font-family: var(--font-ui); font-size: 0.95rem; }
@media (max-width: 40rem) { .author { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta { background: var(--gold); overflow: hidden; }
.cta__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-4); align-items: end; }
.cta__content { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6) 0; }
.cta__title { font-size: var(--fs-2xl); letter-spacing: -0.03em; }
.cta__text { font-size: var(--fs-md); max-width: 36em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: var(--space-1); }
.cta__figure { align-self: end; }
.cta__photo { width: 100%; max-width: 22rem; margin-left: auto; }
@media (max-width: 52rem) { .cta__inner { grid-template-columns: 1fr; } .cta__figure { display: none; } }

/* ---------- Enquiry form ---------- */
.enquiry { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-6); align-items: start; }
.enquiry__intro { display: flex; flex-direction: column; gap: var(--space-2); }
.enquiry__title { font-size: var(--fs-2xl); }
.enquiry__text { color: inherit; opacity: 0.88; }
.enquiry__contact { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; padding-top: var(--space-2); font-family: var(--font-ui); }
.enquiry__link { color: inherit; font-weight: 600; }
@media (max-width: 60rem) { .enquiry { grid-template-columns: 1fr; gap: var(--space-4); } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); padding: var(--space-4); background: var(--paper); color: var(--ink); border-radius: var(--radius-l); box-shadow: var(--shadow-panel); }
.form__title { grid-column: 1 / -1; font-size: var(--fs-lg); }
.form__field, .form__field--wide { display: flex; flex-direction: column; gap: 0.35rem; }
.form__field--wide { grid-column: 1 / -1; }
.form__label { font-family: var(--font-ui); font-size: 0.92rem; font-weight: 600; }
.form__optional { font-weight: 400; color: var(--muted); }
.form__input, .form__select, .form__textarea { width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid #b9c3cf; border-radius: var(--radius-s); }
.form__textarea { min-height: 7.5rem; resize: vertical; }
.form__input:focus, .form__select:focus, .form__textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(31, 79, 209, 0.2); }
.form__input[aria-invalid="true"], .form__select[aria-invalid="true"] { border-color: #b42318; }
.form__error { font-family: var(--font-ui); font-size: 0.85rem; color: #b42318; }
.form__error:empty { display: none; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { grid-column: 1 / -1; }
.form__note { grid-column: 1 / -1; font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); }
.form__status { grid-column: 1 / -1; padding: 0.85rem 1rem; font-family: var(--font-ui); background: #e7f5ee; color: #0f5132; border-radius: var(--radius-s); }
.form__status[hidden] { display: none; }
.form__status[data-state="error"] { background: #fdecea; color: #8a1c13; }
@media (max-width: 40rem) { .form { grid-template-columns: 1fr; padding: var(--space-3); } }

/* ---------- Booking (strategy call page) ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-6); align-items: start; }
.booking__agenda { list-style: none; counter-reset: agenda; display: flex; flex-direction: column; gap: var(--space-2); }
.booking__point { counter-increment: agenda; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; align-items: start; }
.booking__point::before { content: counter(agenda); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; font-family: var(--font-ui); font-weight: 750; background: var(--gold); border-radius: 50%; }
.booking__embed { min-height: 4rem; }
@media (max-width: 60rem) { .booking { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ---------- Site footer ---------- */
.site-footer { background: var(--ink); color: #c4cfdb; font-family: var(--font-ui); font-size: 0.95rem; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: var(--space-6) var(--gutter) var(--space-4); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-5); }
.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__logo { width: 3rem; filter: invert(1); }
.site-footer__about { font-family: var(--font-text); color: #c4cfdb; max-width: 30em; }
.site-footer__nap { font-style: normal; display: flex; flex-direction: column; gap: 0.3rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-4); }
.site-footer__col { display: flex; flex-direction: column; gap: 0.85rem; }
.site-footer__title { font-size: 1rem; color: var(--paper); letter-spacing: 0; }
.site-footer__list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__item { display: block; }
.site-footer__link { color: #c4cfdb; text-decoration: none; }
.site-footer__link:hover { color: var(--paper); text-decoration: underline; }
.site-footer__legal { max-width: var(--wrap); margin: 0 auto; padding: var(--space-3) var(--gutter) var(--space-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); border-top: 1px solid var(--line-dark); font-size: 0.85rem; color: #8e9bab; }
.site-footer__social { display: flex; gap: 1rem; list-style: none; }
@media (max-width: 52rem) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 40rem) {
  .mobile-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(23, 34, 49, 0.08); }
  .mobile-bar__call, .mobile-bar__book { display: flex; align-items: center; justify-content: center; min-height: 3rem; font-family: var(--font-ui); font-weight: 650; text-decoration: none; border-radius: var(--radius-s); }
  .mobile-bar__call { color: var(--ink); border: 1.5px solid var(--ink); }
  .mobile-bar__book { color: var(--ink); background: var(--gold); }
  .site-footer { padding-bottom: 4.5rem; }
}

/* ---------- Utility-free helpers expressed as blocks ---------- */
.stack { display: flex; flex-direction: column; gap: var(--space-5); }
.lede { font-size: var(--fs-md); line-height: 1.6; max-width: var(--measure); color: var(--ink-soft); }
.note { font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted); max-width: var(--measure); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.enquiry__item { display: block; }
.clients__meta { display: flex; flex-direction: column; gap: 0.15rem; }

/* ---------- Intro (inner-page hero) ---------- */
.intro { border-bottom: 1px solid var(--line); }
.intro__inner { max-width: var(--wrap); margin: 0 auto; padding: var(--space-4) var(--gutter) var(--space-6); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6); align-items: start; }
.intro__content { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-2); }
.intro__title { font-size: var(--fs-3xl); line-height: 1.03; letter-spacing: -0.035em; font-weight: 750; }
.intro__lead { font-size: var(--fs-md); line-height: 1.55; color: var(--ink-soft); max-width: 38em; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.intro__panel { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--mist); border-radius: var(--radius-l); }
.intro__panel-title { font-size: var(--fs-md); }
.intro__list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.intro__item { position: relative; padding-left: 1.7rem; font-size: 1.02rem; line-height: 1.5; }
.intro__item::before { content: ""; position: absolute; left: 0.1rem; top: 0.5em; width: 0.6rem; height: 0.6rem; background: var(--gold); border-radius: 1px; transform: rotate(45deg); }
.intro__panel-note { font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted); }
@media (max-width: 60rem) { .intro__inner { grid-template-columns: 1fr; gap: var(--space-4); } }
.plan__placeholder { padding: 0 0.3em; background: #ffe58f; border-radius: 3px; }
.estimate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; list-style: none; }
.estimate__step { display: flex; flex-direction: column; gap: 0.35rem; padding: var(--space-3); background: var(--paper); }
.estimate__label { font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); }
.estimate__value { font-family: var(--font-ui); font-weight: 750; font-size: var(--fs-lg); letter-spacing: -0.02em; }
@media (max-width: 52rem) { .estimate { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.booking__text { padding-top: 0.2rem; }
.author__item { display: block; }
