/* ==========================================================================
   The SEO Guy  |  theseoguy.online
   Main stylesheet. Colors and fonts live in the :root tokens below;
   change them there and the whole site follows.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License, see /fonts/OFL-LICENSES.txt) */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Palette */
  --bg: #FFFFFF;
  --surface: #F3F6F8;
  --surface-2: #EAF0F3;
  --ink: #0D1B2A;
  --ink-2: #33455A;
  --muted: #5B6B7D;
  --line: #DCE3E9;
  --line-strong: #C3CED8;
  --accent: #0B6E55;
  --accent-hover: #08573F;
  --accent-tint: #E3F1EB;
  --navy: #0D1B2A;
  --navy-2: #172A3E;
  --on-navy: #EAF0F4;
  --on-navy-muted: #A8B7C5;
  --amber: #E09B2D;

  /* Search-result vernacular (used only in the SERP illustration) */
  --serp-title: #1A0DAB;
  --serp-text: #4D5156;
  --serp-url: #202124;

  /* Status colors (Core Web Vitals) */
  --good: #0C8A5E;
  --warn: #B26B00;
  --poor: #C0392B;

  /* Type */
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape & layout */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .05), 0 10px 30px rgba(13, 27, 42, .07);
  --shadow-lg: 0 2px 4px rgba(13, 27, 42, .05), 0 24px 48px rgba(13, 27, 42, .10);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.35rem + 3.1vw, 3.45rem); font-weight: 800; letter-spacing: -0.028em; line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 700; letter-spacing: -0.022em; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
strong { font-weight: 600; color: var(--ink); }

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

::selection { background: var(--accent-tint); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 8vw, 104px); }
.section--alt { background: var(--surface); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--split { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.section-head--split > div { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.26rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-on-dark { background: #fff; color: var(--navy); }
.btn-on-dark:hover { background: var(--accent-tint); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .94rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.025em;
}
.logo:hover { color: var(--ink); }
.logo b { color: var(--accent); font-weight: 800; }
.logo-mark { width: 34px; height: 34px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) {
  position: relative;
  color: var(--ink-2); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 8px 13px; border-radius: 6px;
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav .nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(13, 27, 42, .08);
  }
  .js .nav { display: none; }
  .js .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 12px 10px; font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: var(--accent-tint); }
  .nav .nav-cta { margin: 10px 0 0; }
}

/* --------------------------------------------------------------------------
   Home: hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px) clamp(72px, 9vw, 112px);
  background:
    radial-gradient(circle at 1px 1px, rgba(13, 27, 42, .07) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 72px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 4px 0 0; padding: 0; list-style: none;
  color: var(--ink-2); font-size: .98rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent); }

.hero-visual { position: relative; padding-bottom: 56px; }

/* SERP illustration */
.serp {
  margin: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px 20px 20px;
  font-family: Arial, "Helvetica Neue", sans-serif;
}
.serp-bar {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; color: var(--serp-url); font-size: .95rem;
  box-shadow: 0 1px 6px rgba(32, 33, 36, .1);
}
.serp-bar svg { width: 18px; height: 18px; color: var(--serp-text); }
.serp-bar .caret { width: 1.5px; height: 18px; background: var(--serp-url); margin-left: -8px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.serp-tabs { display: flex; gap: 18px; margin: 12px 4px 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--serp-text); }
.serp-tabs span:first-child { color: var(--serp-title); box-shadow: inset 0 -3px 0 var(--serp-title); padding-bottom: 8px; margin-bottom: -11px; }

.serp-result { position: relative; padding: 16px 4px 4px; }
.serp-result--you {
  margin: 12px -8px 0; padding: 14px 12px 14px;
  border-radius: 10px; background: #F6FBF9;
  box-shadow: inset 0 0 0 1.5px rgba(11, 110, 85, .35);
}
.serp-site { display: flex; align-items: center; gap: 10px; }
.serp-fav { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; border: 1px solid var(--line); }
.serp-fav svg { width: 18px; height: 18px; }
.serp-name { display: block; font-size: .86rem; color: var(--serp-url); line-height: 1.2; }
.serp-url { display: block; font-size: .76rem; color: var(--serp-text); line-height: 1.3; }
.serp-title { margin-top: 8px; font-size: 1.16rem; line-height: 1.3; color: var(--serp-title); }
.serp-snippet { margin-top: 4px; font-size: .86rem; line-height: 1.55; color: var(--serp-text); }
.rank-badge {
  position: absolute; top: -12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px;
}
.rank-badge svg { width: 13px; height: 13px; }
.serp-ghost { display: flex; flex-direction: column; gap: 8px; padding: 18px 4px 2px; opacity: .8; }
.serp-ghost i { display: block; height: 9px; border-radius: 5px; background: var(--surface-2); }
.serp-ghost i:nth-child(1) { width: 34%; height: 8px; }
.serp-ghost i:nth-child(2) { width: 72%; height: 12px; background: #E3E6F7; }
.serp-ghost i:nth-child(3) { width: 92%; }
.serp-ghost i:nth-child(4) { width: 64%; }

.cwv-card {
  position: absolute; left: -28px; bottom: 0; width: min(300px, 86%);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px 16px 12px;
}
.cwv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cwv-head .eyebrow { font-size: .7rem; }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 8px;
}
.cwv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cwv-list li {
  display: grid; grid-template-columns: 10px 44px 1fr auto; align-items: baseline; gap: 8px;
  font-size: .9rem; padding-block: 3px; border-top: 1px dashed var(--line);
}
.cwv-list li:first-child { border-top: 0; }
.cwv-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); align-self: center; }
.cwv-list .metric { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.cwv-list strong { font-family: var(--font-mono); font-size: .9rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.cwv-list small { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Promise strip
   -------------------------------------------------------------------------- */
.promise-strip { border-block: 1px solid var(--line); background: var(--bg); }
.promise-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.promise {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 24px 20px; border-left: 1px solid var(--line);
}
.promise:first-child { border-left: 0; padding-left: 0; }
.promise svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.promise strong { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.3; }
.promise span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.45; margin-top: 3px; }

/* --------------------------------------------------------------------------
   Cards: services overview
   -------------------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 26px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.service-icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card p { color: var(--ink-2); }
.service-card .text-link { margin-top: auto; padding-top: 6px; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230B6E55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  list-style: none; margin: 0; padding: 0; counter-reset: step;
}
.step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 28px; border-top: 2px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent);
}
.step-num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); letter-spacing: .06em; }
.step p { color: var(--ink-2); font-size: 1rem; }
.step .step-out { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); margin-top: auto; padding-top: 6px; }

/* --------------------------------------------------------------------------
   Audience
   -------------------------------------------------------------------------- */
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.audience-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
}
.audience-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.audience-card .tz { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.audience-card p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-block; font-size: .88rem; line-height: 1.3; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}

/* --------------------------------------------------------------------------
   Blog cards
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card h3 { font-size: 1.18rem; line-height: 1.3; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card p { color: var(--ink-2); font-size: .98rem; }
.post-cat {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint); border-radius: 4px; padding: 3px 8px;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .76rem; color: var(--muted);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--navy); color: var(--on-navy); padding-block: clamp(56px, 7vw, 88px); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-navy-muted); margin-top: 14px; max-width: 54ch; }
.cta-band .eyebrow { color: #7FD3B4; display: block; margin-bottom: 12px; }
.url-form {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius);
  padding: 24px;
}
.url-form label { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1rem; }
.url-form .url-row { display: flex; gap: 10px; flex-wrap: wrap; }
.url-form input {
  flex: 1 1 220px; min-width: 0; min-height: 50px;
  border-radius: var(--radius-sm); border: 1.5px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06); color: #fff;
  padding: 0 14px; font: inherit; font-family: var(--font-mono); font-size: .95rem;
}
.url-form input::placeholder { color: #8093A5; }
.url-form input:focus { outline: none; border-color: #7FD3B4; background: rgba(255, 255, 255, .1); }
.url-form .btn { min-height: 50px; }
.url-form small { color: var(--on-navy-muted); font-size: .88rem; }

/* --------------------------------------------------------------------------
   Inner page hero & breadcrumbs
   -------------------------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(13, 27, 42, .06) 1px, transparent 0) 0 0 / 22px 22px,
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 72px);
}
.page-hero .container { display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { max-width: 20ch; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */
.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--ink-2); text-decoration: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.jump-nav a:hover { border-color: var(--accent); color: var(--accent); }

.service-block {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block__intro { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: 96px; }
.service-block__intro p { color: var(--ink-2); }
.best-for { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .96rem; color: var(--ink-2); }
.best-for b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.include-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.include {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px 16px;
  background: var(--bg);
}
.include h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.include h3 svg { width: 18px; height: 18px; color: var(--accent); }
.include p { font-size: .95rem; color: var(--ink-2); line-height: 1.55; }
.deliverable {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: .95rem; color: var(--ink-2);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px;
}
.deliverable b { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px;
}
.plan--featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -13px; left: 24px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; padding: 4px 11px;
}
.plan-type { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.plan-price span { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .95rem; }
.plan p { color: var(--ink-2); }
.plan .btn { margin-top: auto; }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 20px;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); display: grid; gap: 10px; max-width: 70ch; }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.portrait { position: relative; margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.portrait figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .92rem; color: var(--ink-2);
}
.portrait figcaption b { font-family: var(--font-display); color: var(--ink); }
.prose-block { display: flex; flex-direction: column; gap: 18px; color: var(--ink-2); max-width: 64ch; }
.prose-block h2 { margin-top: 12px; }

.principles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.principle {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.principle .service-icon { width: 42px; height: 42px; }
.principle > div { display: flex; flex-direction: column; gap: 6px; }
.principle p { color: var(--ink-2); font-size: 1rem; }

.tool-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.tool-list li {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--bg);
}
.tool-list b { font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
.tool-list span { font-size: .9rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink); }
.field label .opt { font-family: var(--font-body); font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem; padding: 10px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2333455A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--poor); }
.field .hint { font-size: .86rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-status { border-radius: var(--radius-sm); padding: 14px 16px; font-size: .96rem; }
.form-status.is-success { background: var(--accent-tint); color: var(--accent-hover); border: 1px solid rgba(11, 110, 85, .25); }
.form-status.is-info { background: #FFF6E6; color: #7A4B00; border: 1px solid #F1D29A; }
.form-status.is-error { background: #FDECEA; color: #8E2A1F; border: 1px solid #F3B8B0; }

.contact-aside { display: flex; flex-direction: column; gap: 20px; }
.contact-card { background: var(--surface); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 18px; }
.contact-card .card-title { font-size: 1.15rem; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line .service-icon { width: 40px; height: 40px; background: var(--bg); }
.contact-line .service-icon svg { width: 20px; height: 20px; }
.contact-line > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-line .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-line .value { font-family: var(--font-display); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-line .value a { color: var(--ink); text-decoration: none; }
.contact-line .value a:hover { color: var(--accent); text-decoration: underline; }
.copy-btn {
  align-self: flex-start; margin-top: 4px;
  font: inherit; font-family: var(--font-mono); font-size: .74rem;
  color: var(--accent); background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 3px 10px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--accent); }
a.copy-btn { display: inline-block; text-decoration: none; }

.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: ns; }
.next-steps li { position: relative; padding-left: 44px; color: var(--ink-2); font-size: .98rem; counter-increment: ns; }
.next-steps li::before {
  content: counter(ns); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .82rem; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.next-steps b { display: block; color: var(--ink); font-family: var(--font-display); }

/* --------------------------------------------------------------------------
   Blog index
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-chip {
  font: inherit; font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--ink-2); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip .count { font-family: var(--font-mono); font-weight: 400; font-size: .76rem; opacity: .7; margin-left: 4px; }

.featured-post {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 20px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.featured-post:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.featured-post .featured-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 4vw, 40px); }
.featured-post h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.featured-post h2 a { color: var(--ink); text-decoration: none; }
.featured-post h2 a::after { content: ""; position: absolute; inset: 0; }
.featured-post p { color: var(--ink-2); }
.featured-visual { background: var(--navy); display: grid; place-items: center; padding: 28px; min-height: 240px; }
.featured-visual svg { width: 100%; max-width: 380px; height: auto; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.newsletter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center;
  background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
}
.newsletter .inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter .inline-form input {
  flex: 1 1 220px; min-width: 0; min-height: 48px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg);
  font: inherit; padding: 0 14px;
}
.newsletter .inline-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.newsletter .form-status { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   Article (blog post)
   -------------------------------------------------------------------------- */
.article-header { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); background: var(--surface); }
.article-header .container { display: flex; flex-direction: column; gap: 16px; }
.article-header h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); max-width: 26ch; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: .95rem; color: var(--muted); }
.byline .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}
.byline b { color: var(--ink); font-family: var(--font-display); }
.byline .sep { color: var(--line-strong); }

.article-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(36px, 5vw, 56px);
}
.toc { position: sticky; top: 96px; align-self: start; font-size: .92rem; }
.toc p { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }

.prose { max-width: 70ch; color: var(--ink-2); font-size: 1.1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.callout {
  background: var(--accent-tint); border-radius: var(--radius-sm); padding: 18px 20px;
  color: var(--ink); font-size: 1.02rem;
}
.callout b:first-child { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-family: var(--font-display); font-weight: 600; color: var(--ink); background: var(--surface); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td.num { font-family: var(--font-mono); font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: .8rem; padding: 1px 8px; border-radius: 999px; }
.pill.good { background: #E1F4EC; color: #08633F; }
.pill.warn { background: #FDF1DC; color: #7A4B00; }
.pill.poor { background: #FBE4E1; color: #8E2A1F; }

.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 48px; max-width: 70ch;
}
.author-box .avatar {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700;
}
.author-box > div { display: flex; flex-direction: column; gap: 6px; }
.author-box .card-title { font-size: 1.1rem; }
.author-box p { color: var(--ink-2); font-size: 1rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 34ch; }
.footer-brand p { color: var(--ink-2); }
.footer-title { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.social { display: flex; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink-2); background: var(--bg);
}
.social a:hover { color: var(--accent); border-color: var(--accent); }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--line); padding-block: 20px 28px;
  font-size: .88rem; color: var(--muted);
}
.footer-bottom .mono { font-size: .8rem; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.not-found { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.not-found .code { font-family: var(--font-mono); font-size: .9rem; color: var(--accent); }
.not-found .hero-actions { justify-content: center; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .services-grid, .post-grid, .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise:nth-child(3) { border-left: 0; padding-left: 0; }
  .promise:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; max-width: 52ch; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; background: var(--surface); border-radius: var(--radius-sm); padding: 16px 18px; }
}

@media (max-width: 920px) {
  .hero-grid, .cta-grid, .about-grid, .contact-grid, .service-block, .featured-post, .newsletter { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; }
  .service-block__intro { position: static; }
  .portrait { max-width: 420px; }
  .featured-visual { min-height: 200px; order: -1; }
}

@media (max-width: 640px) {
  .services-grid, .post-grid, .plans-grid, .process-grid, .audience-grid,
  .principles-grid, .include-grid, .field-row { grid-template-columns: minmax(0, 1fr); }
  .promise-grid { grid-template-columns: minmax(0, 1fr); }
  .promise, .promise:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-block: 18px; }
  .promise:first-child { border-top: 0; }
  .hero-visual { padding-bottom: 0; }
  .serp-ghost + .serp-ghost { display: none; }
  .cwv-card { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 16px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { flex: 1 1 100%; }
  .plan-badge { left: 20px; }
}
