/* AbduGeek — bold, chunky, brand-coloured (Sky by default) */

/* Archivo variable (width 62–125, weight 400–900), self-hosted for speed and privacy */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  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: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand colour: Sky by default. Visitors can swap it with the colour picker (main.js),
     which overrides these three on <html>. */
  --brand: #9FD8FF;
  --brand-deep: #6CC0F5;
  --tint: #E6F5FF;
  --black: #000;
  --white: #FFF;
  --blue: #3D5AFE;
  --amber: #FFC56E;
  --mint: #8DE5BE;
  --grey: #4A4A4A;
  --link: #1A0DAB;

  --font: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  /* Restrained scale: confident, never shouting. Headings use text-wrap: balance so no word sits alone. */
  --step-1: 1.2rem;
  --step-2: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --step-3: clamp(1.6rem, 1.25rem + 1.4vw, 2.3rem);
  --step-4: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);

  --line: 3px solid var(--black);
  --shadow: 6px 6px 0 var(--black);
  --shadow-lg: 10px 10px 0 var(--black);
  --radius: 18px;
  --radius-sm: 12px;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(72px, 9vw, 120px);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  text-wrap: balance;
  margin: 0;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  background: var(--black); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px;
  border: var(--line); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--black);
  font: 800 var(--step-0)/1 var(--font); font-stretch: 110%;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--black); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--black); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: var(--step--1); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #1f1f1f; }
.btn-white { background: var(--white); color: var(--black); }
.btn-brand { background: var(--brand); color: var(--black); }
.site-footer .btn, .result .btn { box-shadow: 4px 4px 0 var(--brand); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--brand);
  border-bottom: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--black); color: var(--brand);
  border-radius: 10px;
  font-weight: 900; font-stretch: 125%; font-size: 1.4rem;
  transform: rotate(-6deg);
  transition: transform .2s;
}
.brand:hover .brand-mark { transform: rotate(6deg); }
.brand-name { font-weight: 900; font-stretch: 125%; font-size: 1.35rem; letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: inline-flex; align-items: center;
  padding: 10px 14px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  border: 2px solid transparent;
}
.nav-link:hover, .nav-link[aria-current="page"] { border-color: var(--black); background: var(--white); }
.site-nav .btn { margin-left: 10px; }

.nav-group { position: relative; }
.nav-group > .nav-link::after {
  content: ""; width: 7px; height: 7px; margin-left: 8px; margin-top: -4px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
}
.nav-panel {
  position: absolute; top: calc(100% + 10px); left: -10px;
  min-width: 280px; padding: 10px;
  background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-panel::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
/* Services mega menu: centred under the header, grouped by category */
.nav-panel-mega {
  position: fixed; top: 74px; left: 0; right: 0; margin-inline: auto;
  width: min(1060px, calc(100vw - 32px)); padding: 18px;
}
.nav-panel-mega::before { inset: -18px 0 auto; height: 18px; }
.mega { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px 22px; }
.mega-wide ul { display: grid; grid-template-columns: 1fr 1fr; }
.mega-title { margin: 4px 10px 6px; font-weight: 900; font-stretch: 125%; font-size: var(--step--1); }
.mega-group ul + .mega-title { margin-top: 14px; }
.mega .nav-panel a, .nav-panel-mega a { padding: 6px 10px; font-size: .95rem; }
.nav-panel-mega .nav-icon { width: 26px; height: 26px; }
.mega-all { margin-top: 12px; font-weight: 800 !important; text-decoration: underline !important; text-underline-offset: 3px; }
.nav-group:hover .nav-panel, .nav-group:focus-within .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.nav-panel a:hover, .nav-panel a[aria-current="page"] { background: var(--tint); }
.nav-icon { width: 30px; height: 30px; flex: none; --icon-fill: var(--brand); }

.nav-toggle {
  display: none; position: relative;
  width: 48px; height: 48px;
  background: var(--white); border: var(--line); border-radius: 12px; cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 20px; height: 3px;
  background: var(--black); border-radius: 2px; transition: transform .2s, background-color .2s;
}
.nav-toggle-bar { top: 20.5px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bar::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Icons ---------- */

.icon { width: 64px; height: 64px; --icon-fill: var(--brand); }
.icon .f, .nav-icon .f { fill: var(--icon-fill); }
.icon-xl { width: 96px; height: 96px; }
.icon-hero { width: min(260px, 60%); height: auto; }

/* ---------- Home hero ---------- */

.hero {
  background: var(--brand);
  border-bottom: var(--line);
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-hello {
  display: inline-block;
  padding: 8px 16px; margin-bottom: 24px;
  background: var(--white); border: var(--line); border-radius: 999px;
  font-weight: 700; transform: rotate(-1.5deg);
}
.hero h1 { font-size: var(--step-4); max-width: 22ch; line-height: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
}
.hero-lede { font-size: var(--step-1); line-height: 1.5; max-width: 46ch; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.facts {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 40px 0 0;
}
.facts div {
  padding: 14px 18px;
  background: var(--white); border: var(--line); border-radius: var(--radius-sm);
}
.facts div:nth-child(2) { background: var(--amber); }
.facts div:nth-child(3) { background: var(--mint); }
.facts dt { font-weight: 900; font-stretch: 125%; font-size: var(--step-2); line-height: 1; }
.facts dd { margin: 4px 0 0; font-size: var(--step--1); font-weight: 600; }

.hero-visual { position: relative; padding: 0 0 0 0; }

/* SERP card */
.serp {
  position: relative;
  background: var(--white);
  border: var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 22px clamp(18px, 3vw, 28px) 24px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  transform: rotate(1.5deg);
}
.serp-bar {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 18px;
  border: 2px solid var(--black); border-radius: 999px;
  font-size: 1.05rem; color: #202124;
}
.serp-icon { width: 20px; height: 20px; color: var(--black); flex: none; }
.serp-caret { width: 2px; height: 22px; background: #202124; margin-left: -10px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.serp-result { padding: 14px 0; }
.serp-result.is-first {
  margin: 16px -12px 4px; padding: 16px 14px;
  background: var(--tint); border: 2px solid var(--black); border-radius: 14px;
}
.serp-url { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: #202124; }
.serp-url img { border-radius: 50%; }
.serp-title { margin-top: 4px; font-size: 1.3rem; line-height: 1.3; }
.serp-title a { color: var(--link); text-decoration: none; }
.serp-title a:hover { text-decoration: underline; }
.serp-snippet { margin-top: 4px; font-size: .9rem; line-height: 1.55; color: #4D5156; }
.serp-sitelinks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-top: 10px; }
.serp-sitelinks a { color: var(--link); text-decoration: none; font-size: .95rem; }
.serp-sitelinks a:hover { text-decoration: underline; }
.serp-result.is-ghost span { display: block; height: 10px; margin-top: 9px; border-radius: 6px; background: #EEE; }
.serp-result.is-ghost span:nth-child(1) { width: 30%; }
.serp-result.is-ghost span:nth-child(2) { width: 64%; height: 14px; background: #E2E6F5; }
.serp-result.is-ghost span:nth-child(3) { width: 90%; }

/* Spinning badge */
.badge {
  position: absolute; right: -18px; bottom: -48px;
  width: 150px; height: 150px;
  background: var(--amber); border: var(--line); border-radius: 50%;
  box-shadow: 4px 4px 0 var(--black);
  display: grid; place-items: center;
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge text { font: 800 17px var(--font); font-stretch: 110%; letter-spacing: .06em; fill: var(--black); }
.badge-center { font-weight: 900; font-stretch: 125%; font-size: 2.3rem; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */

.marquee {
  background: var(--black); color: var(--brand);
  border-bottom: var(--line);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee ul { display: flex; flex: none; }
.marquee li {
  display: flex; align-items: center;
  font-weight: 900; font-stretch: 125%; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  white-space: nowrap;
  padding-right: 48px;
}
.marquee li::after { content: "✦"; margin-left: 48px; color: var(--amber); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-space); }
.section-tint { background: var(--tint); border-block: var(--line); }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 16px 48px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 { font-size: var(--step-3); max-width: 24ch; }
.section-head p { font-size: var(--step-1); line-height: 1.5; font-weight: 500; max-width: 42ch; }

/* ---------- Niche cards ---------- */

.niches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.niche a {
  display: flex; flex-direction: column; height: 100%;
  padding: 26px 24px;
  border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.niche a:hover { transform: translate(-4px, -4px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.niche-art {
  display: grid; place-items: center;
  height: 150px; margin-bottom: 20px;
  border: var(--line); border-radius: 14px;
  background: var(--white);
}
.niche-art .icon { transition: transform .3s ease; }
.niche a:hover .niche-art .icon { transform: scale(1.12) rotate(-6deg); }
.niche h3 { font-size: var(--step-2); }
.niche a > p { margin-top: 8px; font-weight: 500; }
.niche-searches { display: grid; gap: 6px; margin: 18px 0 22px; }
.niche-searches li {
  padding: 6px 12px;
  background: var(--white); border: 2px solid var(--black); border-radius: 999px;
  font-size: .8rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800;
}
.tile-more::after {
  content: ""; width: 22px; height: 3px; background: currentColor;
  transition: width .2s;
}
a:hover > .tile-more::after { width: 34px; }

.niche-amber a { background: var(--amber); }
.niche-black a { background: var(--black); color: var(--white); }
.niche-black .niche-art { border-color: var(--white); }
.niche-black .niche-searches li { background: #1c1c1c; color: var(--white); border-color: #555; }
.niche-mint a { background: var(--mint); }
.niche-blue a { background: var(--blue); color: var(--white); }
.niche-blue .niche-searches li { color: var(--black); }
.niche-amber .icon { --icon-fill: var(--amber); }
.niche-mint .icon { --icon-fill: var(--mint); }
.niche-brand a { background: var(--brand); }
.niche-white a { background: var(--white); }
.niche-brand .icon { --icon-fill: var(--brand); }
.niche-white .icon { --icon-fill: var(--brand); }

/* ---------- Service groups (home) ---------- */

.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.group { padding: 26px; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.group-wide { grid-column: 1 / -1; }
.group-brand { background: var(--brand); }
.group-amber { background: var(--amber); }
.group-mint { background: var(--mint); }
.group-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.group-head .icon { flex: none; --icon-fill: var(--white); }
.group-white .group-head .icon { --icon-fill: var(--brand); }
.group h3 { font-size: var(--step-2); }
.group-head p { font-weight: 500; }
.group-links { display: flex; flex-wrap: wrap; gap: 8px; }
.group-links a {
  display: inline-flex; padding: 8px 14px; background: var(--white); color: var(--black);
  border: 2px solid var(--black); border-radius: 999px; font-weight: 700; font-size: var(--step--1);
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.group-links a:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--black); }
.groups-all { margin-top: 32px; text-align: center; }
.cat-title { font-size: var(--step-2); margin: clamp(40px, 5vw, 64px) 0 6px; }
.cat-title:first-of-type { margin-top: 0; }
.cat-blurb { margin-bottom: 22px; font-weight: 500; }
.niche-blue .icon { --icon-fill: var(--blue); }

/* ---------- Service tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tile a {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 26px;
  background: var(--white);
  border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s;
}
.tile a:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-lg); }
.tile .icon { margin-bottom: 6px; transition: transform .25s; }
.tile a:hover .icon { transform: rotate(-8deg) scale(1.08); }
.tile h3 { font-size: var(--step-1); }
.tile p { font-weight: 500; margin-bottom: 12px; }
.tile-brand .icon { --icon-fill: var(--brand); }
.tile-blue .icon { --icon-fill: var(--blue); }
.tile-amber .icon { --icon-fill: var(--amber); }
.tile-mint .icon { --icon-fill: var(--mint); }
.tile-white .icon { --icon-fill: var(--brand); }
.tile-black .icon { --icon-fill: var(--brand); }
.tile-brand a:hover { background: var(--brand); }
.tile-blue a:hover { background: #DCE2FF; }
.tile-amber a:hover { background: #FFF0D4; }
.tile-mint a:hover { background: #D8F7E9; }
.tile-white a:hover, .tile-black a:hover { background: var(--tint); }

/* ---------- Featured result ---------- */

.result {
  background: var(--black); color: var(--white);
  padding-block: var(--section-space);
  overflow: hidden;
}
.result-number {
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(3.2rem, 1rem + 10vw, 9rem);
  line-height: .85; letter-spacing: -0.04em;
  color: var(--brand);
  white-space: nowrap;
}
.result-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 48px; margin-top: clamp(24px, 4vw, 48px);
}
.result h2 { font-size: var(--step-3); }
.result-body > p { font-size: var(--step-1); line-height: 1.5; color: rgba(255,255,255,.85); }
.result-body .tags { grid-column: 2; }

/* ---------- Tags ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 7px 14px;
  border: 2px solid var(--black); border-radius: 999px;
  background: var(--white);
  font-size: var(--step--1); font-weight: 700;
}
.tags-on-dark li { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.tags-tools { margin-top: 28px; }
.tags-tools li:nth-child(3n+1) { background: var(--brand); }
.tags-tools li:nth-child(3n+2) { background: var(--amber); }
.tags-tools li:nth-child(3n) { background: var(--mint); }

/* ---------- Clients ---------- */

.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.client {
  padding: 28px;
  border: var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.client h3 { font-size: var(--step-2); }
.client-meta { margin-top: 4px; font-size: var(--step--1); font-weight: 700; opacity: .75; }
.client > p:nth-of-type(2) { margin-top: 14px; margin-bottom: 18px; }
.client-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.client-services {
  padding: 6px 12px; border: 2px solid var(--black); border-radius: 999px;
  background: var(--white); font-size: .8rem; font-weight: 800;
}
.client-link, .more-clients .client-link {
  font-size: .8rem; font-weight: 700; opacity: .75;
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.client-link:hover { opacity: 1; }

.more-title { margin: clamp(48px, 6vw, 72px) 0 20px; font-size: var(--step-2); }
.more-clients {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white); border: var(--line); border-radius: var(--radius); overflow: hidden;
}
.more-clients li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 16px 20px; margin: -2px 0 0 -2px;
  border-top: 2px solid var(--black); border-left: 2px solid var(--black);
}
.more-clients li:hover { background: var(--tint); }
.more-name { font-weight: 800; }
.more-meta { font-size: var(--step--1); color: var(--grey); }
.client-amber { background: var(--amber); }
.client-blue { background: var(--blue); color: var(--white); }
.client-blue .client-services { color: var(--black); }
.client-brand { background: var(--brand); }
.client-mint { background: var(--mint); }
.client-white { background: var(--white); }

/* ---------- Process ---------- */

.process { background: var(--blue); color: var(--white); border-block: var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 26px;
  background: var(--white); color: var(--black);
  border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.steps li:nth-child(even) { transform: translateY(24px); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 18px;
  background: var(--brand); border: var(--line); border-radius: 50%;
  font-weight: 900; font-stretch: 125%; font-size: 1.4rem;
}
.steps h3 { font-size: var(--step-1); margin-bottom: 8px; }
.steps p { font-size: var(--step--1); line-height: 1.6; }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-card {
  aspect-ratio: 1;
  display: grid; place-items: center; align-content: center; gap: 12px;
  background: var(--brand);
  border: var(--line); border-radius: 28px; box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
  background-image: radial-gradient(rgba(0,0,0,.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.about-mark {
  display: grid; place-items: center;
  width: 55%; aspect-ratio: 1;
  background: var(--black); color: var(--brand);
  border-radius: 24%;
  font-weight: 900; font-stretch: 125%; font-size: clamp(5rem, 3rem + 6vw, 9rem); line-height: 1;
  transform: rotate(6deg);
}
.about-card p { font-weight: 900; font-stretch: 125%; font-size: var(--step-2); }
.about-copy h2 { font-size: var(--step-3); margin-bottom: 24px; max-width: 20ch; }
.about-copy > p { font-size: var(--step-1); line-height: 1.55; font-weight: 500; max-width: 54ch; }
.about-copy > p + p { margin-top: 14px; }

/* ---------- Contact ---------- */

.contact { background: var(--brand); border-top: var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact-copy h1, .contact-copy h2 { font-size: var(--step-3); line-height: 1.05; max-width: 16ch; }
.contact-copy > p { margin-top: 22px; font-size: var(--step-1); line-height: 1.5; font-weight: 500; max-width: 40ch; }
.contact-list { margin-top: 32px; border: var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.contact-list li {
  display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px;
  padding: 14px 18px; border-top: 2px solid var(--black);
  overflow-wrap: anywhere; font-weight: 600;
}
.contact-list li:first-child { border-top: 0; }
.contact-list span { font-weight: 800; }
.contact-list a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.contact-form {
  display: grid; gap: 18px;
  padding: clamp(20px, 3.5vw, 36px);
  background: var(--white);
  border: var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 800; font-size: var(--step--1); }
.field legend { padding: 0; margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--black);
  font: 500 var(--step-0)/1.4 var(--font);
  transition: box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--blue); }
.field [aria-invalid="true"] { border-color: #D3002D; box-shadow: 4px 4px 0 #D3002D; }

.budget { display: flex; flex-wrap: wrap; gap: 8px; }
.budget label {
  position: relative; display: inline-flex; align-items: center;
  padding: 10px 16px; border: 2px solid var(--black); border-radius: 999px;
  cursor: pointer; font-weight: 700; font-size: var(--step--1);
  transition: background-color .15s;
}
.budget input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.budget label:hover { background: var(--tint); }
.budget label:has(input:checked) { background: var(--black); color: var(--brand); }
.budget label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-error { color: #B00024; font-weight: 700; font-size: var(--step--1); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Inner page hero ---------- */

.page-hero {
  border-bottom: var(--line);
  padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 88px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.13) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(100deg, transparent 45%, #000 90%);
  -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 90%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.hero-brand { background: var(--brand); }
.hero-amber { background: var(--amber); }
.hero-mint { background: var(--mint); }
.hero-white { background: var(--tint); }
.hero-blue { background: var(--blue); color: var(--white); }
.hero-black { background: var(--black); color: var(--white); }
.hero-blue::before, .hero-black::before { background-image: radial-gradient(rgba(255,255,255,.2) 1.5px, transparent 1.5px); }
.hero-blue .btn-white, .hero-black .btn-white { color: var(--black); }
.hero-blue .btn, .hero-black .btn { box-shadow: 4px 4px 0 var(--brand); }
.hero-blue .btn-black, .hero-black .btn-black { background: var(--brand); color: var(--black); }

.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; align-items: center; }
.page-hero h1 { font-size: var(--step-4); line-height: 1.02; max-width: 22ch; margin-top: 18px; }
.page-hero .hero-lede { margin-top: 24px; max-width: 52ch; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--step--1); font-weight: 700; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.page-hero-art {
  aspect-ratio: 1; display: grid; place-items: center;
  background: var(--white); border: var(--line); border-radius: 32px; box-shadow: var(--shadow-lg);
  transform: rotate(4deg);
}
.page-hero-art .icon { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.art-brand .icon, .art-white .icon { --icon-fill: var(--brand); }
.art-amber .icon { --icon-fill: var(--amber); }
.art-mint .icon { --icon-fill: var(--mint); }
.art-blue .icon { --icon-fill: var(--blue); }
.art-black .icon { --icon-fill: var(--brand); }

/* ---------- Service page blocks ---------- */

.included { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.included li {
  padding: 26px;
  border: var(--line); border-radius: var(--radius);
  background: var(--white);
  position: relative;
}
.included li::before {
  content: ""; display: block; width: 36px; height: 36px; margin-bottom: 16px;
  border: var(--line); border-radius: 10px; background: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background-size: 22px; background-position: center; background-repeat: no-repeat;
}
.included li:nth-child(3n+2)::before { background-color: var(--amber); }
.included li:nth-child(3n)::before { background-color: var(--mint); }
.included h3 { font-size: var(--step-1); margin-bottom: 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.split h2 { font-size: var(--step-3); margin-bottom: 28px; }
.checklist { display: grid; gap: 12px; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px;
  background: var(--white); border: var(--line); border-radius: var(--radius-sm);
  font-weight: 600;
}
.checklist li::before {
  content: "✓"; flex: none;
  display: grid; place-items: center; width: 26px; height: 26px;
  background: var(--black); color: var(--brand); border-radius: 50%;
  font-weight: 900; font-size: .85rem;
}
.chip-links { display: grid; gap: 12px; }
.chip-links a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  background: var(--white); border: var(--line); border-radius: var(--radius-sm); box-shadow: 4px 4px 0 var(--black);
  font-weight: 800; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.chip-links a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--black); }
.chip-links .nav-icon { width: 40px; height: 40px; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.faq h2 { font-size: var(--step-3); max-width: 12ch; }
.faq-list { display: grid; gap: 14px; }
.faq-item { border: var(--line); border-radius: var(--radius); background: var(--white); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px;
  font-weight: 800; font-size: var(--step-1); line-height: 1.3;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none;
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--brand); border: 2px solid var(--black); border-radius: 50%;
  font-size: 1.4rem; font-weight: 900; line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 22px; max-width: 64ch; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--brand); border-top: var(--line); padding-block: clamp(40px, 5vw, 64px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { font-size: var(--step-3); max-width: 26ch; }
.cta-band p { margin-top: 8px; font-size: var(--step-0); font-weight: 500; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Industry page blocks ---------- */

.searches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.searches li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--white); border: var(--line); border-radius: 999px; box-shadow: 4px 4px 0 var(--black);
  font-family: Arial, "Helvetica Neue", sans-serif; font-size: 1rem;
}
.searches li:nth-child(odd) { transform: rotate(-1deg); }
.searches li:nth-child(even) { transform: rotate(1deg); }
.searches svg { width: 20px; height: 20px; flex: none; }

.challenges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.challenges li {
  padding: 28px;
  background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.challenges h3 { font-size: var(--step-2); margin-bottom: 10px; }

.playbook { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: play; }
.playbook li {
  counter-increment: play;
  padding: 26px; border: var(--line); border-radius: var(--radius);
}
.playbook li::before {
  content: counter(play, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font-weight: 900; font-stretch: 125%; font-size: 2.6rem; line-height: 1;
  -webkit-text-stroke: 2px var(--black); color: var(--brand);
}
.playbook h3 { font-size: var(--step-1); margin-bottom: 8px; }

.proof { background: var(--black); color: var(--white); padding-block: clamp(56px, 7vw, 96px); }
.proof-label {
  display: inline-block; padding: 6px 14px; margin-bottom: 18px;
  background: var(--brand); color: var(--black); border-radius: 999px; font-weight: 800; font-size: var(--step--1);
}
.proof h2 { font-size: var(--step-3); color: var(--brand); }
.proof-inner > p:last-child { margin-top: 18px; font-size: var(--step-1); max-width: 56ch; color: rgba(255,255,255,.88); }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ways li { padding: 28px; background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ways h3 { font-size: var(--step-2); margin-bottom: 10px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--black); color: var(--white); padding-top: clamp(56px, 7vw, 88px); overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-intro {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: 36px; border-bottom: 2px solid #333;
}
.footer-intro .footer-pitch { font-size: var(--step-2); font-weight: 900; font-stretch: 115%; line-height: 1.2; margin-bottom: 0; }
/* Child pages (e.g. ChatGPT SEO under AI SEO) hang off a continuous guide line */
.site-footer li.sub { margin: 0 0 0 3px; padding: 4px 0 4px 14px; border-left: 2px solid var(--brand); }
.site-footer li.sub:has(+ li:not(.sub)), .site-footer li.sub:last-child { margin-bottom: 4px; }
.site-footer li:not(.sub) + li.sub { margin-top: 8px; }
.footer-pitch { font-size: var(--step-2); font-weight: 900; font-stretch: 115%; line-height: 1.2; margin-bottom: 0; }
.site-footer h2 { font-size: var(--step-0); font-stretch: 100%; color: var(--brand); margin-bottom: 14px; }
.footer-sub { margin-top: 28px; }
.site-footer li + li { margin-top: 8px; }
.site-footer ul a { text-decoration: none; color: rgba(255,255,255,.85); }
.site-footer ul a:hover { color: var(--brand); text-decoration: underline; }
.footer-word { display: block; width: 100%; height: auto; margin-top: clamp(40px, 6vw, 72px); overflow: visible; }
.footer-word text { font-family: var(--font); font-weight: 900; font-stretch: 125%; fill: transparent; stroke: var(--brand); stroke-width: 1.5px; paint-order: stroke; }
.footer-legal { padding: 22px 0 28px; font-size: var(--step--1); color: rgba(255,255,255,.6); }

/* ---------- 404 ---------- */

.not-found { background: var(--brand); padding-block: clamp(80px, 12vw, 160px); border-bottom: var(--line); }
.nf-code { font-weight: 900; font-stretch: 125%; font-size: clamp(6rem, 3rem + 14vw, 14rem); line-height: .8; }
.not-found h1 { font-size: var(--step-3); margin-top: 20px; }
.not-found p:not(.nf-code) { margin-top: 12px; font-size: var(--step-1); }


/* ---------- Locations ---------- */

.niches-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip-links-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.searches li[dir="rtl"] { font-family: Tahoma, "Geeza Pro", Arial, sans-serif; }

/* ---------- Social icons ---------- */

.socials, .post-body .socials { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.socials li, .site-footer .socials li, .post-body .socials li { margin: 0; padding: 0; list-style: none; }
.socials li::marker { content: none; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--white); color: var(--black); border: 2px solid var(--black); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--black); transition: transform .15s, box-shadow .15s, background-color .15s;
}
.socials a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--black); background: var(--brand); }
.socials svg { width: 20px; height: 20px; }
.socials-large a { width: 52px; height: 52px; }
.socials-large svg { width: 24px; height: 24px; }
.socials-footer { --mr-ink: #000; }
.socials-footer a:hover { --mr-ink: #fff; }
.socials-footer a { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); box-shadow: none; }
.socials-footer a:hover { background: var(--brand); color: var(--black); border-color: var(--brand); box-shadow: none; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 22px; }
.share-label { font-weight: 800; font-size: var(--step--1); }
.share .socials { margin: 0; }
.share-copy {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; cursor: pointer;
  background: var(--white); color: var(--black); border: 2px solid var(--black); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--black); transition: transform .15s, box-shadow .15s, background-color .15s;
}
.share-copy:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--black); background: var(--brand); }
.share-copy svg { width: 20px; height: 20px; }
.share-copy.is-copied { background: var(--mint); }
.post-body .share { margin-top: 2.4em; padding-top: 22px; border-top: 3px solid var(--black); }

/* ---------- Blog cards ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.post-card a:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-lg); }
.post-card-art { display: block; border-bottom: var(--line); }
.cover-art { display: block; width: 100%; height: auto; }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px; flex: 1; }
.post-card h3 { font-size: var(--step-1); line-height: 1.15; }
.post-card p { font-size: var(--step--1); }
.post-cat {
  align-self: flex-start; display: inline-block; padding: 4px 12px;
  background: var(--black); color: var(--white); border-radius: 999px; font-weight: 800; font-size: .8rem;
}
.post-meta { margin-top: auto; padding-top: 6px; font-size: .85rem; font-weight: 700; color: var(--grey); }
.blog-cats { margin-bottom: 32px; }

/* ---------- Article ---------- */

.post-hero { border-bottom: var(--line); padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 5vw, 64px); }
.post-hero .post-cat { margin-top: 20px; }
.post-hero h1 { font-size: var(--step-3); max-width: 22ch; margin-top: 14px; }
.post-hero .hero-lede { margin-top: 18px; }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-weight: 600; font-size: var(--step--1); line-height: 1.5; }
.post-byline a { font-weight: 800; }
.byline-mark, .author-mark {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px;
  background: var(--black); color: var(--brand); border-radius: 12px;
  font-weight: 900; font-stretch: 125%; font-size: 1.4rem; text-decoration: none; transform: rotate(-6deg);
}
.hero-blue .post-cat, .hero-black .post-cat { background: var(--white); color: var(--black); }
.hero-black .byline-mark { background: var(--brand); color: var(--black); }
.post-cover { margin-top: clamp(-32px, -2vw, -16px); }
.cover-large { border: var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); margin-top: 32px; }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 6vw, 72px); }
.post-toc { position: sticky; top: 100px; align-self: start; }
.toc-title { font-weight: 900; font-stretch: 125%; margin-bottom: 10px; }
.post-toc ol { list-style: none; display: grid; gap: 4px; border-left: 3px solid var(--black); }
.post-toc a { display: block; padding: 4px 12px; font-weight: 600; font-size: var(--step--1); text-decoration: none; line-height: 1.35; }
.post-toc a:hover { background: var(--tint); text-decoration: underline; }
.post-body { max-width: 70ch; font-size: 1.1rem; line-height: 1.75; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: var(--step-2); margin-top: 1.8em; scroll-margin-top: 100px; }
.post-body h3 { font-size: var(--step-1); margin-top: 1.5em; scroll-margin-top: 100px; }
.post-body a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--brand-deep); }
.post-body a:hover { background: var(--tint); }
.post-body ul, .post-body ol { padding-left: 1.3em; list-style: revert; }
.post-body li + li { margin-top: .35em; }
.post-body li::marker { font-weight: 800; }
.post-body code { padding: 1px 6px; background: var(--tint); border: 1.5px solid var(--black); border-radius: 6px; font-size: .9em; }
.post-body blockquote { margin: 1.4em 0; padding: 18px 22px; background: var(--tint); border-left: 6px solid var(--black); border-radius: 0 14px 14px 0; font-weight: 600; }
.table-wrap { overflow-x: auto; border: var(--line); border-radius: 14px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.post-body th { background: var(--brand); text-align: left; font-weight: 800; }
.post-body th, .post-body td { padding: 10px 14px; border-bottom: 2px solid var(--black); vertical-align: top; }
.post-body tr:last-child td { border-bottom: 0; }
.tldr { padding: 22px 24px; background: var(--brand); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tldr-title { font-weight: 900; font-stretch: 125%; font-size: var(--step-1); }
.tldr ul { margin-top: 8px; }
.post-cta {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  margin: 1.8em 0 !important; padding: 22px; background: var(--white);
  border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.post-cta-brand { background: var(--tint); }
.post-cta-amber { background: #FFF0D4; }
.post-cta-mint { background: #D8F7E9; }
.post-cta-blue { background: #DCE2FF; }
.post-cta .icon { width: 56px; height: 56px; --icon-fill: var(--brand); }
.post-cta-title { font-weight: 900; font-stretch: 125%; font-size: var(--step-1); line-height: 1.2; }
.post-cta p { font-size: 1rem; line-height: 1.55; }
.post-body .post-cta a.btn { color: var(--white); text-decoration: none; background: var(--black); }
.post-body .post-cta a.btn:hover { background: #1f1f1f; }
.author-box {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 2.4em !important; padding: 24px;
  background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.author-name { font-weight: 900; font-stretch: 115%; font-size: var(--step-1); }
.author-box p + p { margin-top: 6px; font-size: 1rem; line-height: 1.6; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.post-nav-link { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; background: var(--white); border: var(--line); border-radius: var(--radius-sm); font-weight: 800; text-decoration: none; }
.post-nav-link span { font-size: .8rem; color: var(--grey); }
.post-nav-link:hover { background: var(--brand); }

@media (max-width: 960px) {
  .post-grid, .niches-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-toc { position: static; }
}
@media (max-width: 640px) {
  .post-grid, .niches-4, .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-cta { grid-template-columns: minmax(0, 1fr); }
  .author-box { flex-direction: column; }
}

/* ---------- Colour picker (floating, bottom-left) ---------- */

.theme-picker { position: fixed; left: 16px; bottom: 16px; z-index: 90; }
.theme-toggle {
  display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0;
  background: var(--white); border: 2px solid var(--black); border-radius: 50%;
  box-shadow: 2px 2px 0 var(--black); cursor: pointer;
  opacity: .55; transition: opacity .15s, transform .15s, box-shadow .15s;
}
.theme-toggle:hover, .theme-toggle[aria-expanded="true"] { opacity: 1; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--black); }
.theme-dot {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--black);
  background: conic-gradient(#9FD8FF, #C7B8FF, #FFB27A, #FDD746, #B9D3A4, #9FD8FF);
  position: relative;
}
.theme-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); border: 2px solid var(--black); }
.theme-panel {
  position: absolute; left: 0; bottom: 46px; width: 252px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 14px;
  background: var(--white); border: var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.theme-panel[hidden] { display: none; }
.theme-title { font-weight: 800; font-size: var(--step--1); margin-bottom: 10px; }
.theme-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.theme-swatch {
  width: 40px; height: 40px; padding: 0; border: 2px solid var(--black); border-radius: 50%;
  background: var(--swatch); cursor: pointer; transition: transform .15s;
}
.theme-swatch:hover { transform: scale(1.08); }
.theme-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--black); }
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--black); }
.theme-custom { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--step--1); cursor: pointer; }
.theme-custom input { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.theme-custom input {
  width: 30px; height: 30px; padding: 0; border: 2px solid var(--black); border-radius: 50%;
  background: none; cursor: pointer; overflow: hidden;
}
.theme-custom input::-webkit-color-swatch-wrapper { padding: 0; }
.theme-custom input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.theme-custom input::-moz-color-swatch { border: 0; border-radius: 50%; }
.theme-reset { padding: 0; background: none; border: 0; font: 700 var(--step--1) var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Back to top: rocket-boot hero ---------- */

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 64px; height: 64px;
  background: var(--tint); border: var(--line); border-radius: 50%; box-shadow: 4px 4px 0 var(--black);
  opacity: 0; visibility: hidden; transform: translateY(24px) scale(.8);
  transition: opacity .25s, transform .25s cubic-bezier(.3, 1.6, .5, 1), visibility .25s, box-shadow .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: 6px 6px 0 var(--black); }
.rocketeer {
  position: absolute; left: 50%; bottom: 10px; width: 46px; height: auto;
  margin-left: -23px; overflow: visible;
  transition: transform .3s ease;
}
/* Hero details: capes flutter, jets idle low */
.hero-cape { transform-origin: 50% 33%; }
.hero-flames { transform-origin: 50% 81%; transform: scaleY(.35); transition: transform .2s; }
.to-top:hover .rocketeer, .to-top:focus-visible .rocketeer { transform: translateY(-6px); }
.to-top:hover .hero-cape, .to-top:focus-visible .hero-cape { animation: cape-flutter .5s ease-in-out infinite alternate; }
.to-top:hover .hero-flames, .to-top:focus-visible .hero-flames { transform: scaleY(.85); animation: flicker .12s steps(2) infinite; }
@keyframes cape-flutter { from { transform: skewX(-4deg) scaleX(1.03); } to { transform: skewX(4deg) scaleX(1.06); } }
@keyframes flicker { 50% { transform: scaleY(1); } }

/* The rope or web: anchored at the raised hand, it shoots all the way to the top of the screen */
.to-top-rope {
  position: absolute; left: 43px; bottom: calc(100% + 9px); width: 3px; height: var(--rope-len, 0px);
  background: var(--rope-color, #000); border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.55);
  transform-origin: 50% 100%; transform: scaleY(0); pointer-events: none;
}
.to-top-rope::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 8px; margin-left: -6px;
  border: 2.5px solid #000; border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--rope-color, #000);
}

/* Launch styles, chosen by the hero's data-launch */
.to-top.is-launching .hero-cape { animation: cape-flutter .12s linear infinite alternate; }
.to-top.is-launching .hero-flames { transform: scaleY(1.6); animation: none; }
.to-top.is-launching[data-launch="rope"] .to-top-rope { animation: rope-out .32s ease-out forwards, rope-fade .25s ease-in 1.15s forwards; }
.to-top.is-launching[data-launch="rope"] .rocketeer { animation: pull-up .85s cubic-bezier(.55, 0, .75, .25) .32s forwards; }
.to-top.is-launching[data-launch="rocket"] .rocketeer,
.to-top.is-launching[data-launch="fly"] .rocketeer { animation: launch .95s cubic-bezier(.55, 0, .8, .2) .1s forwards; }
.to-top.is-launching[data-launch="leap"] .rocketeer { animation: leap 1s cubic-bezier(.5, 0, .6, .2) forwards; }
@keyframes rope-out { to { transform: scaleY(1); } }
@keyframes rope-fade { to { opacity: 0; } }
@keyframes pull-up { 0% { transform: translateY(-6px); } 100% { transform: translateY(-110vh) scale(.92, 1.08); } }
@keyframes launch {
  0% { transform: translateY(-6px); }
  15% { transform: translateY(2px) scale(1.04, .94); }
  100% { transform: translateY(-110vh) scale(.9, 1.1); }
}
@keyframes leap {
  0% { transform: translateY(-6px); }
  28% { transform: translateY(8px) scale(1.1, .78); }
  100% { transform: translateY(-110vh) scale(.92, 1.12) rotate(-6deg); }
}

/* ---------- Hero picker (floating, above the colour picker) ---------- */

.hero-picker { position: fixed; left: 16px; bottom: 70px; z-index: 90; }
.hero-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; overflow: hidden;
  background: var(--tint); border: 2px solid var(--black); border-radius: 50%;
  box-shadow: 3px 3px 0 var(--black); cursor: pointer; opacity: .85;
  transition: opacity .15s, transform .15s, box-shadow .15s;
}
.hero-toggle:hover, .hero-toggle[aria-expanded="true"] { opacity: 1; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--black); }
.hero-toggle svg { width: 40px; height: auto; margin-top: 20px; }
.hero-section { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--black); }
.hero-panel {
  position: absolute; left: 0; bottom: 58px; width: 252px; padding: 14px;
  background: var(--white); border: var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.hero-panel[hidden] { display: none; }
.hero-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-option {
  display: grid; justify-items: center; gap: 2px; padding: 6px 2px 6px; cursor: pointer;
  background: var(--white); border: 2px solid var(--black); border-radius: 12px;
  font: 700 .7rem/1.15 var(--font); color: var(--black); text-align: center;
}
.hero-option svg { width: 34px; height: 51px; }
.hero-option:hover { background: var(--tint); }
.hero-option[aria-pressed="true"] { background: var(--brand); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black); }
@media (max-width: 360px) { .theme-panel { width: min(252px, calc(100vw - 28px)); } }

.to-top-smoke { position: absolute; inset: auto 0 -6px; height: 20px; pointer-events: none; }
.to-top-smoke i {
  position: absolute; bottom: 0; left: 50%; width: 20px; height: 20px; margin-left: -10px;
  background: var(--white); border: 2px solid var(--black); border-radius: 50%;
  opacity: 0; transform: scale(.2);
}
.to-top.is-launching .to-top-smoke i { animation: puff .7s ease-out forwards; }
.to-top.is-launching .to-top-smoke i:nth-child(1) { --dx: -26px; }
.to-top.is-launching .to-top-smoke i:nth-child(2) { --dx: 0px; animation-delay: .05s; }
.to-top.is-launching .to-top-smoke i:nth-child(3) { --dx: 26px; animation-delay: .1s; }
@keyframes puff {
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), 6px) scale(1.4); }
}



/* ---------- Article figures (illustrations built from real text) ---------- */

.fig { margin: 2em 0 !important; }
.fig figcaption { margin-top: 12px; font-size: .9rem; line-height: 1.5; color: var(--grey); font-weight: 500; }
.fig > :first-child {
  background: var(--white); border: var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 26px); font-size: .98rem; line-height: 1.5;
  background-image: radial-gradient(rgba(0,0,0,.07) 1.2px, transparent 1.2px); background-size: 18px 18px;
}
/* flow */
.post-body .fig-flow { list-style: none; padding-left: clamp(16px, 3vw, 26px); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; counter-reset: none; }
.post-body .fig-flow li { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 14px; background: var(--white); border: 2px solid var(--black); border-radius: 14px; }
.fig-flow li:nth-child(3n+1) { background: var(--tint) !important; }
.fig-flow li:nth-child(3n+2) { background: #FFF0D4 !important; }
.fig-flow li:nth-child(3n) { background: #D8F7E9 !important; }
.fig-flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -13px; width: 12px; height: 12px; z-index: 1;
  border-top: 3px solid var(--black); border-right: 3px solid var(--black); transform: translateY(-50%) rotate(45deg); background: transparent;
}
.fig-num { display: grid; place-items: center; width: 30px; height: 30px; background: var(--black); color: var(--brand); border-radius: 50%; font-weight: 900; font-size: .85rem; }
.fig-flow strong { font-weight: 900; font-stretch: 115%; line-height: 1.2; }
.fig-flow span:not(.fig-num) { font-size: .9rem; line-height: 1.45; }
/* code window */
.fig-window { padding: 0 !important; overflow: hidden; background: #0E0E0E !important; color: #F2F2F2; }
.fig-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--brand); border-bottom: var(--line); color: var(--black); font-weight: 800; font-size: .85rem; }
.fig-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--white); border: 2px solid var(--black); }
.fig-bar span { margin-left: 8px; }
.fig-window pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 500 .88rem/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre; }
.post-body .fig-window code { padding: 0; background: none; border: 0; font-size: inherit; color: inherit; }
/* chat */
.fig-chat { display: grid; gap: 12px; }
.fig-chat-label { font-weight: 900; font-stretch: 115%; font-size: .85rem; }
.fig-q { justify-self: end; max-width: 85%; padding: 10px 16px; background: var(--black); color: var(--white); border-radius: 18px 18px 4px 18px; font-weight: 600; }
.fig-a { max-width: 92%; padding: 14px 16px; background: var(--white); border: 2px solid var(--black); border-radius: 18px 18px 18px 4px; }
.post-body .fig-sources, .fig-sources { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.post-body .fig-sources li { margin: 0; padding: 3px 10px; background: var(--tint); border: 1.5px solid var(--black); border-radius: 999px; font-size: .78rem; font-weight: 700; }
/* SERP with AI Overview */
.fig-serp { font-family: Arial, "Helvetica Neue", sans-serif; }
.fig-search { padding: 10px 16px; border: 2px solid var(--black); border-radius: 999px; background: var(--white); font-size: .95rem; }
.fig-aio { margin-top: 14px; padding: 14px 16px; background: linear-gradient(135deg, #EEF4FF, #F6F0FF); border: 2px solid var(--black); border-radius: 14px; }
.fig-aio-label { font-weight: 700; font-size: .8rem; margin-bottom: 6px; }
.post-body .fig-results { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 10px; }
.post-body .fig-results li { margin: 0; display: grid; }
.fig-url { font-size: .78rem; color: #202124; }
.fig-title { color: #1A0DAB; font-size: 1.05rem; }
/* hub */
.fig-hub { display: grid; justify-items: center; gap: 16px; }
.fig-hub-core { padding: 12px 22px; background: var(--brand); border: var(--line); border-radius: 999px; box-shadow: 4px 4px 0 var(--black); font-weight: 900; font-stretch: 115%; }
.post-body .fig-hub ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.post-body .fig-hub li { margin: 0; padding: 10px 12px; text-align: center; background: var(--white); border: 2px solid var(--black); border-radius: 12px; font-weight: 700; font-size: .9rem; position: relative; }
.fig-hub ul::before { content: ""; grid-column: 1 / -1; height: 3px; background: var(--black); margin: -8px 12% 2px; border-radius: 2px; }
/* matrix */
.fig-matrix { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 8px; }
.post-body .fig-matrix ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.post-body .fig-matrix li { margin: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 2px solid var(--black); border-radius: 12px; font-size: .9rem; }
.fig-matrix li strong { font-weight: 900; font-stretch: 115%; }
.fig-matrix li:nth-child(1) { background: #D8F7E9; }
.fig-matrix li:nth-child(2) { background: var(--tint); }
.fig-matrix li:nth-child(3) { background: #FFF0D4; }
.fig-matrix li:nth-child(4) { background: #F2F2F2; }
.fig-matrix-plain { display: block; }
.fig-axis { font-weight: 800; font-size: .78rem; color: var(--grey); }
.fig-axis-y { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.fig-axis-x { grid-column: 2; text-align: center; }
/* compare */
.fig-compare { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.fig-col { padding: 14px; border: 2px solid var(--black); border-radius: 14px; background: var(--white); }
.fig-col-0 { background: #F2F2F2; }
.fig-col-1 { background: #D8F7E9; }
.fig-col-2 { background: var(--tint); }
.fig-col-head { font-weight: 900; font-stretch: 115%; margin-bottom: 8px; }
.post-body .fig-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.post-body .fig-col li { margin: 0; padding-top: 8px; border-top: 1.5px dashed rgba(0,0,0,.35); font-size: .9rem; }
.post-body .fig-col li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 760px) {
  .post-body .fig-flow, .fig-compare { grid-auto-flow: row; }
  .fig-flow li:not(:last-child)::after { top: auto; bottom: -13px; right: 50%; transform: translateX(50%) rotate(135deg); }
  .post-body .fig-hub ul { grid-template-columns: 1fr 1fr; }
}


/* ---------- WhatsApp chat (floating, bottom-right; rocket sits above it) ---------- */

.wa-chat { position: fixed; right: 18px; bottom: 18px; z-index: 95; }
.wa-toggle {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; padding: 0; cursor: pointer;
  background: #25D366; color: var(--white); border: var(--line); border-radius: 50%; box-shadow: 4px 4px 0 var(--black);
  transition: transform .15s, box-shadow .15s;
}
.wa-toggle:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--black); }
.wa-toggle svg { width: 30px; height: 30px; }
.wa-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; background: var(--amber); border: 2px solid var(--black); border-radius: 50%; }
.wa-chat.is-open .wa-dot { display: none; }
.wa-panel {
  position: absolute; right: 0; bottom: 74px; width: min(340px, calc(100vw - 36px));
  background: var(--white); border: var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.wa-panel[hidden] { display: none; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #075E54; color: var(--white); border-bottom: var(--line); }
.wa-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: var(--black); color: var(--brand); border: 2px solid var(--white); border-radius: 50%; font-weight: 900; font-stretch: 125%; }
.wa-name { font-weight: 900; line-height: 1.2; }
.wa-sub { font-size: .8rem; opacity: .9; line-height: 1.3; }
.wa-close { margin-left: auto; width: 32px; height: 32px; padding: 0; background: transparent; color: var(--white); border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.wa-body { padding: 16px; background: #ECE5DD; display: grid; gap: 12px; }
.wa-bubble { justify-self: start; max-width: 85%; padding: 10px 14px; background: var(--white); border: 2px solid var(--black); border-radius: 4px 16px 16px 16px; font-weight: 600; }
.wa-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-quick a { padding: 8px 12px; background: var(--white); color: var(--black); border: 2px solid var(--black); border-radius: 999px; font-weight: 700; font-size: .85rem; text-decoration: none; }
.wa-quick a:hover { background: #DCF8C6; }
.wa-form { display: flex; gap: 8px; padding: 12px; border-top: 2px solid var(--black); }
.wa-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 2px solid var(--black); border-radius: 999px; font: 500 .95rem var(--font); }
.wa-form input:focus { outline: none; box-shadow: 3px 3px 0 var(--blue); }
.wa-form button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; background: #25D366; color: var(--white); border: 2px solid var(--black); border-radius: 50%; cursor: pointer; }
.wa-form button svg { width: 22px; height: 22px; }
.to-top { bottom: 92px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 12px 16px; background: #D8F7E9; border: 2px solid var(--black); border-radius: var(--radius-sm); font-weight: 700; }
@media (max-width: 360px) {
  .wa-toggle { width: 52px; height: 52px; }
  .to-top { bottom: 84px; }
  .to-top-rope { left: 36px; bottom: calc(100% + 11px); }
}

/* ---------- Foldables ---------- */

/* Cover screens (Galaxy Z Fold outer display, foldable iPhone folded) */
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .brand-name { font-size: 1.1rem; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.2rem; }
  .btn { padding: 0 18px; }
  .hero-hello { font-size: .85rem; }
  .to-top { width: 54px; height: 54px; }
  .rocketeer { width: 38px; margin-left: -19px; }
  .socials a, .share-copy { width: 38px; height: 38px; }
}

/* Unfolded across a hinge (dual-screen / spanning): put each half of the hero on its own panel */
@media (horizontal-viewport-segments: 2) {
  .hero-grid, .page-hero-grid, .contact-grid, .about-grid {
    grid-template-columns: env(viewport-segment-width 0 0, 1fr) env(viewport-segment-width 1 0, 1fr);
    column-gap: calc(env(viewport-segment-left 1 0, 0px) - env(viewport-segment-right 0 0, 0px) + 2 * var(--gutter));
  }
  .hero .wrap, .page-hero .wrap { max-width: none; }
}
/* Half-folded like a laptop (tabletop): content on top, controls on the bottom half */
@media (vertical-viewport-segments: 2) {
  .hero { min-height: env(viewport-segment-height 0 0, 50vh); }
  .theme-picker, .to-top { bottom: calc(env(viewport-segment-height 1 0, 50vh) - 70px); }
}

.fold-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 120; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 12px; background: var(--brand); color: var(--black);
  border: var(--line); border-radius: 999px; box-shadow: 4px 4px 0 var(--black);
  font-weight: 800; font-size: var(--step--1); white-space: nowrap;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.fold-toast.is-shown { transform: translate(-50%, 0); }
.fold-toast svg { width: 28px; height: 28px; flex: none; }
.to-top.is-waving .rocketeer { animation: wave .9s ease-in-out 2; }
.to-top.is-waving { opacity: 1; visibility: visible; transform: none; }
@keyframes wave { 25% { transform: rotate(-8deg) translateY(-6px); } 75% { transform: rotate(8deg) translateY(-6px); } }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .niches, .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mega-wide { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 600px; margin-bottom: 40px; }
  .tiles, .clients, .included, .playbook, .ways, .more-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(even) { transform: none; }
  .section-head, .result-body, .faq-grid, .contact-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .result-body .tags { grid-column: auto; }
  .searches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .about-card { max-width: 320px; }
}

/* The full menu needs ~1100px; below that (tablets, unfolded foldables) it becomes the hamburger drawer */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    max-height: calc(100vh - 76px); overflow-y: auto;
    padding: 12px var(--gutter) 24px;
    background: var(--brand); border-bottom: var(--line);
  }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 12px 4px; font-size: var(--step-1); border: 0; }
  .nav-link:hover, .nav-link[aria-current="page"] { background: transparent; border: 0; text-decoration: underline; }
  .nav-group > .nav-link::after { display: none; }
  .nav-panel, .nav-panel-mega {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; box-shadow: none; padding: 6px; margin-bottom: 8px;
  }
  .mega, .mega-wide ul { grid-template-columns: 1fr; }
  .nav-panel-mega { width: auto; margin: 0 0 8px; }
  .site-nav .btn { margin: 12px 0 0; min-height: 52px; }
}

@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-art { max-width: 220px; order: -1; transform: rotate(4deg) scale(.9); transform-origin: left; }
}

@media (max-width: 640px) {
  .groups, .niches, .tiles, .clients, .included, .playbook, .ways, .steps, .challenges, .searches, .split, .field-row, .more-clients { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .badge { width: 112px; height: 112px; right: -6px; bottom: -40px; }
  .badge text { font-size: 19px; }
  .badge-center { font-size: 1.7rem; }
  .serp { transform: none; }
  .serp-sitelinks { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .form-actions .btn { flex: 1 1 100%; }
  .page-hero-art { max-width: 160px; }
}

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