/* ==========================================================================
   Assured Technologies — space theme
   Vanilla CSS. All colours as custom properties.
   Swap the --accent-* block to re-skin the accent colour.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Dark neutral palette */
  --bg: #05060a;
  --bg-1: #080a11;
  --bg-2: #0c0f18;
  --text: #e9ebf2;
  --text-dim: #9aa1b8;
  --text-mute: #6b7189;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Accent — placeholder cyan. Change these four values to re-skin. */
  --accent: #34e3e3;
  --accent-2: #4aa8ff;
  --accent-ink: #04211f;          /* text on a solid accent surface */
  --accent-rgb: 52, 227, 227;      /* keep in sync with --accent */

  /* Derived accent tints */
  --accent-soft: rgba(var(--accent-rgb), 0.12);
  --accent-line: rgba(var(--accent-rgb), 0.38);
  --accent-glow: rgba(var(--accent-rgb), 0.30);

  /* Glass surfaces */
  --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);

  /* Type */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion — slow, weighty, ease-out only */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-reveal: 800ms;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3rem, 6vw, 5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
}

/* Registered so the looping hover gradient can animate its angle smoothly.
   Without @property support the angle jumps instead of spinning — still fine. */
@property --gx {
  syntax: "<angle>";
  inherits: false;
  initial-value: 120deg;
}
@keyframes gx-spin { to { --gx: 480deg; } }
@keyframes btn-flow { to { background-position: 220% 50%; } }

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
svg { fill: currentColor; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* line-style icons, sized by the parent's font-size unless overridden */
.ico {
  width: 1em; height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

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

/* --- Utilities ------------------------------------------------------------ */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.visually-hidden,
.skip-link:not(:focus):not(:active) {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Cosmic background -------------------------------------------------- */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 800px at 78% -8%, rgba(74, 168, 255, 0.10), transparent 60%),
    radial-gradient(900px 700px at 12% 8%, rgba(var(--accent-rgb), 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg) 40%, var(--bg-2));
}

.cosmos__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cosmos__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.cosmos__glow--1 {
  width: 46vw; height: 46vw;
  inset-block-start: -14vw;
  inset-inline-end: -10vw;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  animation: drift-a 34s ease-in-out infinite alternate;
}

.cosmos__glow--2 {
  width: 38vw; height: 38vw;
  inset-block-start: 46%;
  inset-inline-start: -14vw;
  background: radial-gradient(circle, rgba(74, 168, 255, 0.28), transparent 70%);
  animation: drift-b 44s ease-in-out infinite alternate;
}

.cosmos__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4vw, 5vw, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(5vw, -4vw, 0) scale(1.15); }
}

/* --- Glass surface --------------------------------------------------------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass::before {
  content: "";
  --gx: 120deg;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--gx),
      rgba(var(--accent-rgb), 0.7),
      rgba(74, 168, 255, 0.15),
      transparent 38%,
      transparent 60%,
      rgba(var(--accent-rgb), 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}
/* Looping animated-gradient edge on hover / keyboard focus */
.glass:hover::before,
.glass:focus-within::before {
  opacity: 1;
  animation: gx-spin 3.4s linear infinite;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --btn-pad-y: 0.9rem;
  --btn-pad-x: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out), background-color 400ms var(--ease-out), border-color 400ms var(--ease-out);
  will-change: transform;
}

.btn--block { display: flex; width: 100%; }

.btn--primary {
  color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 45%, var(--accent) 90%);
  background-size: 220% 220%;
  background-position: 0% 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.2), 0 18px 40px -18px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 24px 50px -16px var(--accent-glow);
  animation: btn-flow 3s linear infinite;
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: 0 18px 44px -24px var(--accent-glow);
}

/* --- Top bar --------------------------------------------------------------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.82rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.55rem;
  color: var(--text-dim);
}
.topbar__contact,
.topbar__social { display: flex; flex-wrap: wrap; gap: 0.4rem 1.35rem; align-items: center; }
.topbar__contact li,
.topbar__contact a { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar__contact .ico {
  width: 14px; height: 14px;
  color: var(--accent);
  flex: none;
  transition: transform 300ms var(--ease-out);
}
.topbar__contact a:hover { color: var(--accent); }
.topbar__contact a:hover .ico { transform: translateY(-1px) scale(1.14); }

.topbar__social a {
  display: inline-grid;
  place-items: center;
  width: 1.75rem; height: 1.75rem;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: color 300ms var(--ease-out), border-color 300ms var(--ease-out), background-color 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.topbar__social .ico { width: 13px; height: 13px; }
.topbar__social a:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: rgba(var(--accent-rgb), 0.1);
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .topbar__loc { display: none; }
}
@media (max-width: 520px) {
  .topbar__contact li:nth-child(2) { display: none; } /* email — available in footer & contact */
  .topbar__inner { padding-block: 0.45rem; }
}

/* --- Header ------------------------------------------------------------- */
/* NOTE: the blurred backdrop lives on ::before, not on .site-header itself.
   Putting backdrop-filter on the header would make it a containing block for
   the position:fixed mobile nav drawer, trapping it inside the header. */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 7, 12, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 300ms var(--ease-out);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header.is-stuck::before { background: rgba(6, 7, 12, 0.9); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  box-shadow: 0 0 24px -6px var(--accent-glow);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav__list { display: flex; gap: 1.9rem; }
.nav__link {
  position: relative;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--text-dim);
  padding-block: 0.35rem;
  transition: color 300ms var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease-out);
}
.nav__link:hover,
.nav__link.is-current { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-current::after { transform: scaleX(1); }

/* --- Services dropdown --- */
.nav__item { position: relative; display: flex; align-items: center; gap: 0.25rem; }
.nav__sub-toggle {
  display: inline-grid;
  place-items: center;
  width: 1.4rem; height: 1.4rem;
  border-radius: 6px;
  color: var(--text-mute);
  transition: color 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.nav__sub-toggle .ico { width: 13px; height: 13px; }
.nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 236px;
  margin-top: 0.7rem;
  padding: 0.45rem;
  display: grid;
  gap: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s linear 260ms;
  z-index: 60;
}
.nav__submenu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -0.9rem;
  height: 0.9rem;
}
.nav__submenu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  color: var(--text-dim);
  white-space: nowrap;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out);
}
.nav__submenu a:hover,
.nav__submenu a:focus-visible {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--text);
}
.nav__item--menu:hover .nav__submenu,
.nav__item--menu:focus-within .nav__submenu,
.nav__item--menu.is-open .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s;
}
.nav__item--menu:hover .nav__sub-toggle,
.nav__item--menu:focus-within .nav__sub-toggle,
.nav__item--menu.is-open .nav__sub-toggle {
  color: var(--accent);
  transform: rotate(180deg);
}

.nav__close { display: none; font-size: 2rem; line-height: 1; color: var(--text-dim); }

.nav-scrim { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 300ms var(--ease-out), opacity 200ms var(--ease-out);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 360px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 5rem 2rem 2rem;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 500ms var(--ease-out), visibility 0s linear 500ms;
    overflow-y: auto;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 500ms var(--ease-out), visibility 0s;
  }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(3, 4, 8, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms var(--ease-out);
  }
  body.nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .nav__list { flex-direction: column; gap: 1.25rem; width: 100%; }
  .nav__link { font-size: 1.1rem; }
  .nav__close { display: block; position: absolute; top: 1.25rem; right: 1.5rem; }
  .nav__cta { width: 100%; }
  body.nav-open { overflow: hidden; }

  /* submenu collapses inline inside the drawer */
  .nav__item--menu { flex-wrap: wrap; width: 100%; justify-content: space-between; }
  .nav__sub-toggle { width: 2rem; height: 2rem; color: var(--text-dim); }
  .nav__sub-toggle .ico { width: 15px; height: 15px; }
  .nav__submenu {
    order: 3;
    position: static;
    left: auto;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 420ms var(--ease-out);
  }
  .nav__submenu::before { display: none; }
  .nav__item--menu:hover .nav__submenu,
  .nav__item--menu:focus-within .nav__submenu { max-height: 0; }
  .nav__item--menu.is-open .nav__submenu { max-height: 620px; margin-top: 0.6rem; }
  .nav__submenu a {
    padding: 0.55rem 0 0.55rem 0.9rem;
    margin-left: 0.4rem;
    border-left: 1px solid var(--line-strong);
    font-size: 0.98rem;
    white-space: normal;
  }
}

/* --- Section scaffolding ---------------------------------------------------- */
.section { padding-block: var(--section-y); }

.section__head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2rem, 4.5vw, 3.25rem);
}
.section__head .eyebrow { display: block; margin-bottom: 1rem; }
.section__head h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); }
.section__intro { margin-top: 1.1rem; color: var(--text-dim); }
.section__cta { text-align: center; margin-top: clamp(2rem, 4.5vw, 3rem); }

/* --- Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 9vw, 8rem) var(--section-y);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.hero__copy .eyebrow { display: block; margin-bottom: 1.25rem; }
.hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.3vw, 3.6rem);
  font-weight: 700;
}
.hero__lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--text-dim);
  font-size: 1.1rem;
}
.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__core {
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--accent);
  background: radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), 0.25), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 80px -10px var(--accent-glow), inset 0 0 40px -12px rgba(var(--accent-rgb), 0.4);
}
.hero__core::before { display: none; }

.orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: spin linear infinite;
}
.orbit--1 { width: 62%; height: 62%; animation-duration: 26s; }
.orbit--2 { width: 84%; height: 84%; animation-duration: 40s; animation-direction: reverse; border-color: rgba(var(--accent-rgb), 0.22); }
.orbit--3 { width: 100%; height: 100%; animation-duration: 60s; }
.orbit__dot {
  position: absolute;
  inset-block-start: -6px;
  inset-inline-start: calc(50% - 6px);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px 2px var(--accent-glow);
}
.orbit__dot--sm { width: 7px; height: 7px; inset-block-start: -4px; background: var(--accent-2); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero { padding-block: clamp(2rem, 7vw, 3.5rem) var(--section-y); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { order: -1; }
  .hero__visual { max-width: 300px; margin: 1rem auto 0; }
}

/* --- Card grid (services) -------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  position: relative;
  overflow: hidden;
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 500ms var(--ease-out), border-color 500ms var(--ease-out);
}
/* corner glow that fades up on hover */
.card::after {
  content: "";
  position: absolute;
  inset-block-start: -32%;
  inset-inline-end: -22%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
}
.card__icon {
  width: 42px; height: 42px;
  margin-bottom: 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 20px -8px var(--accent-glow);
  transition: transform 500ms var(--ease-out), background-color 500ms var(--ease-out);
}
.card__icon .ico { width: 21px; height: 21px; }
.card__title { font-size: 1.2rem; }
.card p { color: var(--text-dim); font-size: 0.96rem; }
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
}
.card:hover::after { opacity: 1; }
.card:hover .card__icon {
  transform: translateY(-2px) rotate(-5deg);
  background: rgba(var(--accent-rgb), 0.17);
}

/* --- Stats: one continuous readout strip (not four cards) --------------- */
.stats__panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(1.6rem, 4vw, 2.6rem);
  overflow: hidden;
}
/* slow shimmer that travels across the strip (::before stays the glass border) */
.stats__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.05) 50%, transparent 58%);
  transform: translateX(-100%);
  animation: stats-sweep 7s var(--ease-out) infinite;
}
@keyframes stats-sweep {
  0%        { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
.stats__item {
  position: relative;
  text-align: center;
  padding: 0.5rem clamp(0.75rem, 2.5vw, 1.75rem);
}
.stats__item + .stats__item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 62%;
  background: linear-gradient(180deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}
.stats__num {
  display: block;
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem);
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(var(--accent-rgb), 0.35);
}
/* underline that draws itself in when the strip reveals */
.stats__num::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 700ms var(--ease-out);
}
.stats__panel.is-visible .stats__num::after { transform: translateX(-50%) scaleX(1); }
.stats__panel.is-visible .stats__item:nth-child(2) .stats__num::after { transition-delay: 120ms; }
.stats__panel.is-visible .stats__item:nth-child(3) .stats__num::after { transition-delay: 240ms; }
.stats__panel.is-visible .stats__item:nth-child(4) .stats__num::after { transition-delay: 360ms; }
.stats__label {
  display: block;
  margin-top: 1.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

@media (max-width: 620px) {
  .stats__panel { grid-template-columns: repeat(2, 1fr); row-gap: 1.75rem; }
  /* re-draw dividers for a 2×2 layout */
  .stats__item + .stats__item::before { content: none; }
  .stats__item:nth-child(even)::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 50%;
    transform: translateY(-50%);
    width: 1px; height: 62%;
    background: linear-gradient(180deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
  }
  .stats__item:nth-child(3)::after,
  .stats__item:nth-child(4)::after {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  }
}

/* --- Feature rows ----------------------------------------------------------- */
.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 5rem);
}
.feature--reverse .feature__media { order: 2; }
/* this row's media column carries the module tags, so it's taller — top-align it */
#mobile-apps .feature__inner { align-items: start; }
.feature__copy .eyebrow { display: block; margin-bottom: 1rem; }
.feature__copy h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem); }
.feature__copy p { margin-top: 1.1rem; color: var(--text-dim); }
.feature__copy .btn { margin-top: 1.75rem; }

.feature__media { position: relative; }
.panel {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(1.1rem, 3vw, 1.9rem);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(var(--accent-rgb), 0.16), transparent 55%),
    var(--glass-bg);
}
.panel::after {
  content: "";
  position: absolute;
  inset-block-end: -40%;
  inset-inline-start: -10%;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(30px);
}
.panel > .mock { position: relative; z-index: 1; width: 100%; height: 100%; }

/* Shared mock atoms */
.mock--browser,
.mock--phone {
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

/* -- Website Development: a site building itself -- */
.mock--browser { display: flex; flex-direction: column; border-radius: 14px; }
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}
.mock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.mock__dot:first-child { background: rgba(var(--accent-rgb), 0.7); }
.mock__addr {
  position: relative;
  flex: 1;
  height: 13px;
  margin-left: 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.mock__addr-fill {
  position: absolute;
  inset: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.9), transparent);
  animation: addr-load 2.8s var(--ease-out) infinite;
}
@keyframes addr-load {
  0%   { transform: translateX(-120%); }
  60%, 100% { transform: translateX(420%); }
}
.mock__live {
  flex: none;
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-left: 8px;
  position: relative;
}
.mock__live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent-glow);
  animation: blink 1.8s var(--ease-out) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.mock__view {
  position: relative;
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.sk { display: block; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.sk--h { width: 52%; height: 15px; background: rgba(var(--accent-rgb), 0.32); }
.sk--t { width: 100%; height: 8px; }
.sk--t2 { width: 74%; }
.sk--img {
  width: 100%;
  flex: 1;
  min-height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(74, 168, 255, 0.10));
}
.sk--btn {
  width: 92px; height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.sk__sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.10) 50%, transparent 62%);
  transform: translateX(-100%);
  animation: sweep 3.6s var(--ease-out) infinite;
}
@keyframes sweep {
  0%   { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* -- Web Design: a moving selection over a layout, cycling palette -- */
.mock--design { position: relative; }
.dl {
  position: absolute;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}
.dl--a { top: 6%; left: 4%; width: 44%; height: 52%; }
.dl--b {
  top: 20%; right: 5%; width: 40%; height: 66%;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.14), transparent);
}
.dl--c { bottom: 6%; left: 10%; width: 58%; height: 24%; }
.dsel {
  position: absolute;
  /* rests on the tall rectangle (.dl--b); .dl--b is right:5% width:40% -> left 55% */
  top: 20%; left: 55%; width: 40%; height: 66%;
  border: 1.5px dashed var(--accent);
  border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
  animation: dsel-move 9.5s var(--ease-out) infinite;
}
.dsel::before, .dsel::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent-glow);
}
.dsel::before { top: -4px; left: -4px; }
.dsel::after { bottom: -4px; right: -4px; }
@keyframes dsel-move {
  0%, 16%   { top: 20%; left: 55%; width: 40%; height: 66%; }  /* B — tall rectangle (home) */
  29%, 45%  { top: 70%; left: 10%; width: 58%; height: 24%; }  /* C — wide bottom bar */
  58%, 74%  { top: 6%;  left: 4%;  width: 44%; height: 52%; }  /* A — square card */
  87%, 100% { top: 20%; left: 55%; width: 40%; height: 66%; }  /* back to B */
}
.dsw { position: absolute; bottom: 8%; right: 6%; display: flex; gap: 7px; animation: hue-loop 9s linear infinite; }
.dsw i { width: 15px; height: 15px; border-radius: 50%; background: var(--accent-line); }
.dsw i:nth-child(1) { background: var(--accent); }
.dsw i:nth-child(2) { background: var(--accent-2); }
.dsw i:nth-child(3) { background: #fff; }
.dsw i:nth-child(4) { background: color-mix(in srgb, var(--accent) 55%, #fff); }
.dsw i:nth-child(5) { background: color-mix(in srgb, var(--accent-2) 60%, #05060a); }
@keyframes hue-loop { to { filter: hue-rotate(360deg); } }

/* -- Mobile Apps: phone with staggered icons + push notification -- */
.panel--app { display: grid; place-items: center; }
.mock--phone {
  position: relative;
  width: 60%;
  max-width: 188px;
  height: 100%;
  border-radius: 26px;
  padding: 24px 14px 18px;
}
.ph__notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.ph__apps {
  position: absolute;
  inset: 46px 16px 40px;   /* app area sits between the notch and the divider */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-content: start;
}
.ph__apps i {
  aspect-ratio: 1;
  border-radius: 24%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  opacity: 0;
  transform: scale(0.5);
  animation: app-pop 4.8s var(--ease-out) infinite;
}
/* scattered accent tiles — spread across every row and column */
.ph__apps i:nth-child(2),
.ph__apps i:nth-child(7),
.ph__apps i:nth-child(9),
.ph__apps i:nth-child(12) {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: var(--accent-line);
}
.ph__apps i:nth-child(4),
.ph__apps i:nth-child(10) {
  background: rgba(74, 168, 255, 0.16);
  border-color: rgba(74, 168, 255, 0.4);
}
.ph__apps i:nth-child(1)  { animation-delay: 0s; }
.ph__apps i:nth-child(2)  { animation-delay: 0.09s; }
.ph__apps i:nth-child(3)  { animation-delay: 0.18s; }
.ph__apps i:nth-child(4)  { animation-delay: 0.27s; }
.ph__apps i:nth-child(5)  { animation-delay: 0.36s; }
.ph__apps i:nth-child(6)  { animation-delay: 0.45s; }
.ph__apps i:nth-child(7)  { animation-delay: 0.54s; }
.ph__apps i:nth-child(8)  { animation-delay: 0.63s; }
.ph__apps i:nth-child(9)  { animation-delay: 0.72s; }
.ph__apps i:nth-child(10) { animation-delay: 0.81s; }
.ph__apps i:nth-child(11) { animation-delay: 0.9s; }
.ph__apps i:nth-child(12) { animation-delay: 0.99s; }
@keyframes app-pop {
  0%       { opacity: 0; transform: scale(0.5); }
  12%      { opacity: 1; transform: scale(1); }
  80%      { opacity: 1; transform: scale(1); }
  92%, 100% { opacity: 0; transform: scale(0.5); }
}
.ph__push {
  position: absolute;
  top: 26px; left: 10px; right: 10px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(18, 22, 32, 0.94);
  border: 1px solid var(--accent-line);
  box-shadow: 0 10px 26px -10px var(--accent-glow);
  transform: translateY(-170%);
  opacity: 0;
  animation: push-drop 5s var(--ease-out) infinite;
}
.ph__push i {
  width: 16px; height: 16px;
  border-radius: 5px;
  flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.ph__push u {
  display: block;
  height: 6px;
  width: 68%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
}
@keyframes push-drop {
  0%, 4%   { opacity: 0; transform: translateY(-170%); }
  12%, 42% { opacity: 1; transform: translateY(0); }
  54%      { opacity: 0; transform: translateY(-50%); }
  100%     { opacity: 0; transform: translateY(-170%); }
}
.ph__divider {
  position: absolute;
  inset-inline: 20%;
  inset-block-end: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 25%, var(--line-strong) 75%, transparent);
}

/* -- Social: signal pulse (kept) + rising engagement -- */
.panel--social { display: grid; place-items: center; }
.mock--social { position: relative; display: grid; place-items: center; }
.sig__core {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px 3px var(--accent-glow);
  animation: pulse-core 3.6s var(--ease-out) infinite;
}
@keyframes pulse-core { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.sig {
  position: absolute;
  width: 36%;
  aspect-ratio: 1;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  animation: ripple 3.6s var(--ease-out) infinite;
}
.sig--2 { animation-delay: 1.2s; }
.sig--3 { animation-delay: 2.4s; }
@keyframes ripple {
  0%   { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.7); opacity: 0; }
}
.pop {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 18px -6px var(--accent-glow);
  opacity: 0;
}
.pop--sm { width: 22px; height: 22px; font-size: 0.62rem; color: var(--text); }
.pop--1 { left: 15%;  bottom: 26%; animation: rise 4.4s var(--ease-out) infinite; }
.pop--2 { right: 16%; bottom: 20%; animation: rise 4.8s var(--ease-out) 1.2s infinite; }
.pop--3 { left: 49%;  bottom: 12%; animation: rise 4.6s var(--ease-out) 2.6s infinite; }
.pop--4 { right: 21%; top: 19%;    animation: bob 5.2s var(--ease-out) 0.6s infinite; }
.pop--5 { left: 23%;  top: 24%;    animation: bob 4.9s var(--ease-out) 1.9s infinite; }
.pop--6 { right: 30%; bottom: 41%; animation: rise 5.0s var(--ease-out) 3.1s infinite; }
.pop--7 { left: 11%;  bottom: 47%; animation: bob 5.4s var(--ease-out) 2.1s infinite; }
.pop--8 { right: 12%; top: 43%;    animation: rise 4.7s var(--ease-out) 3.7s infinite; }
@keyframes rise {
  0%   { opacity: 0; transform: translateY(24px) scale(0.6); }
  18%  { opacity: 1; transform: translateY(0) scale(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-74px) scale(0.9); }
}
@keyframes bob {
  0%   { opacity: 0; transform: translateY(12px) scale(0.7); }
  16%  { opacity: 1; transform: translateY(0) scale(1); }
  74%  { opacity: 1; transform: translateY(-7px) scale(1); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.85); }
}
.spark {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px 1px var(--accent-glow);
  opacity: 0;
  animation: spark-drift 7s ease-in-out infinite;
}
.spark--1 { left: 31%; top: 21%; animation-duration: 6.5s; }
.spark--2 { right: 25%; top: 33%; animation-duration: 8s; animation-delay: 1.5s; }
.spark--3 { left: 19%; bottom: 29%; animation-duration: 7.2s; animation-delay: 3s; }
.spark--4 { right: 33%; bottom: 23%; animation-duration: 9s; animation-delay: 2s; }
@keyframes spark-drift {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  50%      { opacity: 0.85; transform: translate(9px, -11px); }
}

/* --- Chip list -------------------------------------------------------------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.chip-list li {
  padding: 0.5rem 0.95rem;
  font-size: 0.83rem;
  font-family: var(--font-head);
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
.chip-list li:hover { border-color: var(--accent-line); color: var(--text); }

/* Feature-module tags under the phone mock — deliberately NOT pill-shaped,
   so they don't read as buttons next to the CTA. */
.feature__list-label {
  margin-top: 1.6rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.chip-list--features {
  margin-top: 0.9rem;
  gap: 0.5rem;
}
.chip-list--features li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: border-color 300ms var(--ease-out), color 300ms var(--ease-out), background-color 300ms var(--ease-out);
}
.chip-list--features li::before {
  content: "";
  width: 5px; height: 5px;
  flex: none;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.chip-list--features li:hover {
  color: var(--text);
  border-color: var(--accent-line);
  background: rgba(var(--accent-rgb), 0.1);
}

@media (max-width: 820px) {
  .feature__inner { grid-template-columns: 1fr; }
  .feature__media { max-width: 460px; order: 2; }   /* lead with the copy on small screens */
  .feature__copy { order: 1; }
}

/* --- Local SEO: rank board + offering list ------------------------------- */
.local__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: center;
}
.rankboard {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.1rem);
  overflow: hidden;
}
.rankboard__pin {
  position: absolute;
  bottom: 1rem; right: 1rem;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--accent);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--accent-line);
  animation: pin-bob 3.6s ease-in-out infinite;
}
.rankboard__pin .ico { width: 16px; height: 16px; }
@keyframes pin-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.rankboard__rows { display: flex; flex-direction: column; gap: 0.55rem; }
.rankboard__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-mute);
}
.rankboard__row b { font-family: var(--font-head); font-size: 0.9rem; min-width: 2.2ch; }
.rankboard__row i {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent);
}
.rankboard__row--you {
  color: var(--text);
  border-color: var(--accent-line);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 0 26px -8px var(--accent-glow);
  animation: rank-rise 5s var(--ease-out) infinite;
}
.rankboard__row--you i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.rankboard__row--you em {
  font-style: normal;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
@keyframes rank-rise {
  0%, 100%  { transform: translateY(0) scale(1); }
  45%, 60%  { transform: translateY(-4px) scale(1.02); }
}
.rankboard__stars { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 1.15rem; }
.rankboard__stars .ico {
  width: 19px; height: 19px;
  fill: currentColor;
  stroke: none;
  color: var(--line-strong);
  animation: star-lit 4s var(--ease-out) infinite;
}
.rankboard__stars .ico:nth-child(2) { animation-delay: 0.16s; }
.rankboard__stars .ico:nth-child(3) { animation-delay: 0.32s; }
.rankboard__stars .ico:nth-child(4) { animation-delay: 0.48s; }
.rankboard__stars .ico:nth-child(5) { animation-delay: 0.64s; }
.rankboard__score {
  margin-left: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}
@keyframes star-lit {
  0%, 12%   { color: var(--line-strong); transform: scale(1); }
  28%, 82%  { color: var(--accent); transform: scale(1.14); }
  96%, 100% { color: var(--line-strong); transform: scale(1); }
}

.local__list { display: flex; flex-direction: column; gap: 1rem; }
.local__item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: transform 400ms var(--ease-out), border-color 400ms var(--ease-out), background-color 400ms var(--ease-out);
}
.local__item:hover {
  transform: translateX(5px);
  border-color: var(--accent-line);
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.09), rgba(255, 255, 255, 0.02));
}
.local__icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 20px -8px var(--accent-glow);
  transition: transform 400ms var(--ease-out);
}
.local__item:hover .local__icon { transform: scale(1.08) rotate(-5deg); }
.local__icon .ico { width: 20px; height: 20px; }
.local__item h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.local__item p { font-size: 0.92rem; color: var(--text-dim); }

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

/* --- Google: organic vs paid split panel ------------------------------- */
.section__head--left {
  text-align: left;
  margin-inline: 0;
  max-width: 42rem;
}
.section__cta--left { text-align: left; }

.duo__panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.duo__cols {
  display: flex;
  align-items: stretch;
}
.duo__side {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  transition: flex-grow 500ms var(--ease-out);
}
/* hover tint fills the whole column, all the way to the panel edges
   (the panel clips the overflow) — not just the padded content box */
.duo__side::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: -100%;
  background: rgba(var(--accent-rgb), 0.06);
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
  pointer-events: none;
}
.duo__side > * { position: relative; }
.duo__side:hover::before { opacity: 1; }
.duo__tag {
  font-family: var(--font-head);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
}
.duo__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 22px -8px var(--accent-glow);
  margin-top: 0.4rem;
  transition: transform 500ms var(--ease-out);
}
.duo__side:hover .duo__icon { transform: translateY(-3px) scale(1.06); }
.duo__icon .ico { width: 22px; height: 22px; }
.duo__side h3 { font-size: 1.3rem; margin-top: 0.2rem; }
.duo__side p {
  flex: 1;
  font-size: 0.93rem;
  color: var(--text-dim);
}
.duo__meta {
  margin-top: 0.4rem;
  padding-top: 0.85rem;
  width: 100%;
  border-top: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}
.duo__divider {
  flex: none;
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, var(--accent-line) 14%, var(--accent-line) 100%);
}
/* footer: the divider carries on down the centre to a node, then the CTA */
.duo__foot {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem clamp(1.75rem, 4vw, 2.5rem);
}
.duo__foot::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 1.5rem;
  background: linear-gradient(180deg, var(--accent-line), transparent);
}
.duo__node {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15), 0 0 20px 2px var(--accent-glow);
  animation: duo-node 3.6s ease-in-out infinite;
}
.duo__foot .btn { position: relative; }
@keyframes duo-node {
  0%, 100% { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16), 0 0 20px 2px var(--accent-glow); }
  50%      { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0.04), 0 0 30px 5px var(--accent-glow); }
}

@media (max-width: 720px) {
  .duo__cols { flex-direction: column; }
  .duo__side::before { bottom: 0; }   /* no downward bleed once the halves stack */
  .duo__divider {
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  }
}

/* --- Portfolio logo wall ------------------------------------------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.logo-wall li {
  display: grid;
  place-items: center;
  min-height: 128px;
  padding: 1.5rem 1.75rem;
  background: var(--bg-1);
  transition: background-color 300ms var(--ease-out);
}
.logo-wall li:hover { background: var(--bg-2); }
.logo-wall img {
  width: auto;
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
  /* normalise brand-coloured logos to a single tone on the dark wall */
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
}
.logo-wall li:hover img { opacity: 0.95; transform: scale(1.04); }

/* --- Testimonials slider ------------------------------------------------- */
/* --slider-delay MUST match the autoplay DELAY in main.js (initSlider). */
.slider { --slider-delay: 8s; max-width: 780px; margin-inline: auto; }
.slider__viewport { overflow: hidden; padding: 0.75rem 0; margin: -0.75rem 0; }
.slider__track {
  display: flex;
  transition: transform 800ms var(--ease-out);
}
.slide {
  flex: 0 0 100%;
  padding: 0.5rem;
  opacity: 0.35;
  transition: opacity 700ms var(--ease-out);
}
.slide.is-active { opacity: 1; }

.quote {
  padding: clamp(2rem, 5vw, 3rem);
}
.slide.is-active .quote { animation: quote-float 7s ease-in-out infinite; }
.slide.is-active .quote::before { opacity: 0.85; }
@keyframes quote-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.quote p {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
  line-height: 1.6;
}
/* Content of the active slide rises in on entry */
.slide .quote > p,
.slide .quote > footer {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.slide.is-active .quote > p { opacity: 1; transform: none; transition-delay: 120ms; }
.slide.is-active .quote > footer { opacity: 1; transform: none; transition-delay: 260ms; }

.quote footer {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
}
.quote__logo {
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 22px -8px var(--accent-glow);
}
.quote__who { display: flex; flex-direction: column; gap: 0.15rem; }
.quote cite {
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
}
.quote__who span {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.slider__btn {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  transition: border-color 300ms var(--ease-out), color 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.slider__btn:hover { border-color: var(--accent-line); color: var(--text); transform: translateY(-2px); }

.slider__dots { display: flex; align-items: center; gap: 0.5rem; }
.slider__dots button {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  overflow: hidden;
  transition: width 400ms var(--ease-out), background-color 300ms var(--ease-out);
}
/* .is-active is toggled off→on (with a reflow) by the JS on every advance,
   so these animations restart deterministically each time. */
.slider__dots button.is-active {
  width: 30px;
  background: rgba(var(--accent-rgb), 0.22);
  box-shadow: 0 0 12px -2px var(--accent-glow);
  animation: dot-pop 450ms var(--ease-out);
}
@keyframes dot-pop {
  0%   { transform: scale(0.55); }
  55%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
/* progress fill — runs for exactly one autoplay interval, then the slide advances */
.slider__dots button.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
  animation: dot-progress var(--slider-delay, 8s) linear forwards;
}
@keyframes dot-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
/* JS adds .is-paused (keyboard focus / hidden tab) — freezes the fill in place */
.slider.is-paused .slider__dots button.is-active::after {
  animation-play-state: paused;
}

/* --- About -------------------------------------------------------------- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 5rem);
  align-items: center;
}
.about__copy .eyebrow { display: block; margin-bottom: 1rem; }
.about__copy h2 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.7rem); }
.about__copy p { margin-top: 1.1rem; color: var(--text-dim); }
.about__copy .btn { margin-top: 1.75rem; }
.about__values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.about__values li {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon desc";
  column-gap: 1.1rem;
  row-gap: 0.3rem;
  align-items: start;
}
.value-card__icon {
  grid-area: icon;
  align-self: start;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 20px -8px var(--accent-glow);
  transition: transform 400ms var(--ease-out), background-color 400ms var(--ease-out);
}
.value-card__icon .ico { width: 22px; height: 22px; }
.about__values li:hover .value-card__icon {
  transform: translateY(-2px) rotate(-4deg);
  background: rgba(var(--accent-rgb), 0.17);
}
.about__values strong {
  grid-area: title;
  align-self: center;
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.about__values span:not(.value-card__icon) {
  grid-area: desc;
  font-size: 0.88rem;
  color: var(--text-dim);
}

@media (max-width: 820px) {
  .about__inner { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .about__values { grid-template-columns: 1fr; }
}

/* --- Contact ---------------------------------------------------------------- */
.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.contact__copy .eyebrow { display: block; margin-bottom: 1rem; }
.contact__copy h2 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.7rem); }
.contact__copy p { margin-top: 1.1rem; color: var(--text-dim); }
.contact__note { font-size: 0.9rem; color: var(--text-mute); }
.contact-methods {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.75rem;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: transform 400ms var(--ease-out), border-color 400ms var(--ease-out), background-color 400ms var(--ease-out);
}
.contact-method:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.02));
}
.contact-method--static { cursor: default; }
.contact-method__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 11px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--accent-line);
  overflow: hidden;
  transition: background-color 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
/* soft glow that breathes — staggered so the three don't pulse in unison */
.contact-method__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.45), transparent 70%);
  animation: badge-breathe 4s ease-in-out infinite;
}
.contact-methods li:nth-child(2) .contact-method__badge::before { animation-delay: 1.3s; }
.contact-methods li:nth-child(3) .contact-method__badge::before { animation-delay: 2.6s; }
@keyframes badge-breathe {
  0%, 100% { opacity: 0.3;  transform: scale(0.85); }
  50%      { opacity: 0.7;  transform: scale(1.1); }
}
.contact-method__badge .ico { position: relative; width: 20px; height: 20px; }
.contact-method:hover .contact-method__badge {
  background: rgba(var(--accent-rgb), 0.18);
  box-shadow: 0 0 26px -4px var(--accent-glow);
}
.contact-method:hover .contact-method__badge .ico { animation: ico-nudge 500ms var(--ease-out); }
@keyframes ico-nudge {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-3px); }
}
.contact-method__text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.contact-method__k {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-method__v {
  font-size: 0.95rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact__form { padding: clamp(1.75rem, 4vw, 2.75rem); display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; border: 0; padding: 0; }
.field > label,
.field legend {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.field--split { grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--split > div { display: grid; gap: 0.5rem; }

input, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 120px; }

.radio-row { display: flex; gap: 1.5rem; }
.radio, .check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  letter-spacing: 0;
  cursor: pointer;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1rem;
}
.radio input, .check input { width: auto; accent-color: var(--accent); }

.form-status { font-size: 0.9rem; color: var(--accent); min-height: 1.2em; }
.form-status.is-error { color: #ff8080; }

@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .field--split, .check-grid { grid-template-columns: 1fr; }
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.site-footer__brand p {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.site-footer__social {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}
.site-footer__social li {
  animation: float-y 5s ease-in-out infinite;
}
.site-footer__social li:nth-child(2) { animation-delay: 0.8s; }
.site-footer__social li:nth-child(3) { animation-delay: 1.6s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  transition: color 350ms var(--ease-out), border-color 350ms var(--ease-out), background 350ms var(--ease-out), transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}
.site-footer__social .ico { width: 18px; height: 18px; }
.site-footer__social a:hover {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px var(--accent-glow);
}
.site-footer__social a:hover .ico { animation: ico-nudge 500ms var(--ease-out); }
.site-footer__col h2 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1.1rem;
}
.site-footer__col ul { display: grid; gap: 0.65rem; }
.site-footer__col a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 250ms var(--ease-out);
}
.site-footer__col a:hover { color: var(--accent); }

.site-footer__bottom {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.site-footer__bottom ul { display: flex; gap: 1.5rem; }
.site-footer__bottom a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

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

/* Page title banner
   Drop a real photo in by setting --banner-img on .page-banner, e.g.
   style="--banner-img: url('assets/img/about-banner.jpg')"
   Until then it renders a self-contained cosmic gradient. */
.page-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: clamp(220px, 30vw, 340px);
  padding-block: clamp(2.25rem, 6vw, 3.75rem);
  border-bottom: 1px solid var(--line);
}
.page-banner__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    /* dim theme-colour wash — kept subtle so the banner stays dark */
    linear-gradient(118deg, rgba(var(--accent-rgb), 0.11) 0%, rgba(var(--accent-rgb), 0.03) 38%, transparent 62%),
    /* dark legibility gradient (also works once a photo is dropped in) */
    linear-gradient(180deg, rgba(3, 4, 8, 0.5) 0%, rgba(3, 4, 8, 0.86) 62%, var(--bg) 100%),
    /* the photo (set --banner-img) sits above the dark base below */
    var(--banner-img, none),
    linear-gradient(162deg, #090c14 0%, #06080d 58%, var(--bg) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* slowly drifting nebula glow */
.page-banner__media::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(38% 52% at 24% 22%, rgba(74, 168, 255, 0.15), transparent 72%),
    radial-gradient(44% 58% at 80% 84%, rgba(var(--accent-rgb), 0.12), transparent 72%);
  filter: blur(26px);
  will-change: transform;
  animation: banner-drift 36s ease-in-out infinite alternate;
}
/* slowly drifting starfield */
.page-banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='%23cfe6ff'%3E%3Ccircle cx='18' cy='36' r='1'/%3E%3Ccircle cx='96' cy='14' r='.7'/%3E%3Ccircle cx='168' cy='58' r='1.1'/%3E%3Ccircle cx='242' cy='30' r='.8'/%3E%3Ccircle cx='60' cy='104' r='.7'/%3E%3Ccircle cx='134' cy='132' r='1'/%3E%3Ccircle cx='210' cy='110' r='.7'/%3E%3Ccircle cx='276' cy='150' r='.9'/%3E%3Ccircle cx='30' cy='176' r='1'/%3E%3Ccircle cx='104' cy='210' r='.7'/%3E%3Ccircle cx='180' cy='196' r='.8'/%3E%3Ccircle cx='248' cy='234' r='1'/%3E%3Ccircle cx='66' cy='262' r='.8'/%3E%3Ccircle cx='150' cy='276' r='1.1'/%3E%3C/g%3E%3C/svg%3E");
  animation: banner-stars 120s linear infinite;
}
@keyframes banner-drift {
  from { transform: translate3d(-4%, -3%, 0) scale(1); }
  to   { transform: translate3d(5%, 4%, 0) scale(1.14); }
}
@keyframes banner-stars {
  from { background-position: 0 0; }
  to   { background-position: -300px -90px; }
}
.page-banner__inner { position: relative; }
.page-banner__crumbs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.page-banner__crumbs a { color: var(--text-dim); transition: color 250ms var(--ease-out); }
.page-banner__crumbs a:hover { color: var(--accent); }
.page-banner__crumbs [aria-current] { color: var(--accent); }
.page-banner h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem);
  letter-spacing: -0.02em;
}
.page-banner p {
  margin-top: 0.6rem;
  max-width: 42rem;
  color: var(--text-dim);
  font-size: 1.02rem;
}

.page-hero {
  position: relative;
  padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(2.5rem, 6vw, 4rem);
}
.page-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.page-hero__copy { max-width: 42rem; }
.page-hero .eyebrow { display: block; margin-bottom: 1.1rem; }
.page-hero__copy h1,
.page-hero__copy h2 {
  font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem);
  font-weight: 700;
}
.page-hero__lead {
  margin-top: 1.4rem;
  color: var(--text-dim);
  font-size: 1.08rem;
}
.page-hero__lead + .page-hero__lead { margin-top: 1rem; }

/* service satellites orbiting a client core */
.hub {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-inline: auto;
  overflow: visible;
}
.hub__ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}
.hub__ring--accent { stroke: rgba(var(--accent-rgb), 0.22); }

.hub__glow {
  fill: rgba(var(--accent-rgb), 0.18);
  filter: blur(12px);
}
.hub__core {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 16px var(--accent-glow));
  animation: hub-pulse 4.2s ease-in-out infinite;
}
.hub__coreRing {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: hub-ring 4.2s ease-in-out infinite;
}
@keyframes hub-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
@keyframes hub-ring {
  0%, 100% { transform: scale(1);    opacity: 0.5; }
  50%      { transform: scale(1.14); opacity: 0.9; }
}

.hub__chip {
  fill: rgba(10, 13, 20, 0.94);
  stroke: var(--accent-line);
  stroke-width: 1;
  filter: drop-shadow(0 0 12px -3px var(--accent-glow));
}
.hub__ico {
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* gentle life on each chip, offset so they don't breathe in unison */
.hub__sat {
  transform-box: fill-box;
  transform-origin: center;
  animation: hub-chip 5s ease-in-out infinite;
}
.hub__sat:nth-of-type(2) { animation-delay: -1.2s; }
.hub__sat:nth-of-type(3) { animation-delay: -2.4s; }
.hub__sat:nth-of-type(4) { animation-delay: -3.1s; }
.hub__sat:nth-of-type(5) { animation-delay: -4s; }
@keyframes hub-chip {
  0%, 100% { opacity: 0.78; }
  50%      { opacity: 1; }
}

@media (max-width: 860px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__copy { max-width: 46rem; order: -1; }
  .hub { max-width: 300px; }
}

.prose-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.prose-split__head .eyebrow { display: block; margin-bottom: 0.9rem; }
.prose-split__head h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.6rem); }
.prose-split__body > p { color: var(--text-dim); }
.prose-split__body > p + p { margin-top: 1.15rem; }
@media (max-width: 820px) {
  .prose-split { grid-template-columns: 1fr; }
}

/* value cards sit full-width below the Who-we-are prose */
.who__values {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* --- Animated analytics dashboard (About / How we work) --------------- */
.dash {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding: clamp(0.9rem, 2vw, 1.4rem);
  overflow: hidden;
}
.dash__topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.4rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.dash__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.dash__dot:first-child { background: rgba(var(--accent-rgb), 0.7); }
.dash__label {
  margin-left: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--text);
}
.dash__pill {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
}
.dash__main { display: flex; gap: clamp(0.6rem, 1.5vw, 1rem); padding-top: 0.9rem; }
.dash__side {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.3rem;
}
.dash__side span {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.dash__side span.is-on {
  background: rgba(var(--accent-rgb), 0.16);
  border-color: var(--accent-line);
}
.dash__content {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: clamp(0.6rem, 1.5vw, 0.9rem);
}
.dash__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.4vw, 0.9rem);
}
.dash__panel,
.dash__kpi {
  padding: clamp(0.8rem, 1.8vw, 1.1rem);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.dash__k {
  display: block;
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.dash__v {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.5rem);
  color: var(--text);
}
.dash__mini { display: block; width: 100%; height: 34px; margin-top: 0.6rem; }
.dash__mini-area { fill: rgba(var(--accent-rgb), 0.14); stroke: none; opacity: 0; }
.dash__mini-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.dash.is-visible .dash__mini-area { animation: dash-fade 0.7s var(--ease-out) 0.3s forwards; }
.dash.is-visible .dash__mini-line { animation: dash-fade 0.7s var(--ease-out) 0.3s forwards; }
.dash.is-visible .dash__kpi:nth-child(2) .dash__mini-area,
.dash.is-visible .dash__kpi:nth-child(2) .dash__mini-line { animation-delay: 0.42s; }
.dash.is-visible .dash__kpi:nth-child(3) .dash__mini-area,
.dash.is-visible .dash__kpi:nth-child(3) .dash__mini-line { animation-delay: 0.54s; }

.dash__panel--chart { position: relative; }
.dash__chart { display: block; width: 100%; aspect-ratio: 320 / 132; margin-top: 0.6rem; overflow: visible; }
.dash__gl { stroke: var(--line); stroke-width: 1; }
.dash__area {
  fill: rgba(var(--accent-rgb), 0.12);
  stroke: none;
  opacity: 0;
}
.dash.is-visible .dash__area { animation: dash-fade 1.4s var(--ease-out) 0.4s forwards; }
.dash__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.4));
}
.dash.is-visible .dash__line { animation: dash-fade 0.9s var(--ease-out) 0.25s forwards; }
.dash__head {
  fill: var(--accent);
  stroke: none;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.dash.is-visible .dash__head { animation: dash-head-in 0.5s var(--ease-out) 0.6s forwards, dash-head-pulse 2.4s ease-in-out 1s infinite; }
/* live scan line sweeping the chart */
.dash__panel--chart::after {
  content: "";
  position: absolute;
  inset-block: clamp(0.8rem, 1.8vw, 1.1rem);
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.5), transparent);
  animation: dash-scan 5.5s linear infinite;
}

.dash__panel--bars { display: flex; flex-direction: column; }
.dash__bars {
  position: relative;
  margin-top: 0.85rem;
  padding-top: 0.5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: end;
  gap: clamp(0.3rem, 1vw, 0.6rem);
  height: clamp(90px, 14vw, 120px);
  border-bottom: 1px solid var(--line-strong);
}
/* faint chart gridlines behind the bars */
.dash__bars::before {
  content: "";
  position: absolute;
  inset: 0.5rem 0 0;
  background: repeating-linear-gradient(to top, transparent 0 calc(33.33% - 1px), var(--line) calc(33.33% - 1px) 33.33%);
  pointer-events: none;
}
.dash__bars span {
  position: relative;
  z-index: 1;
  height: var(--h, 40%);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), 0.22));
  box-shadow: 0 0 12px -4px var(--accent-glow);
  transform: scaleY(0);
  transform-origin: bottom;
}
.dash.is-visible .dash__bars span {
  animation:
    dash-bar 0.7s var(--ease-out) forwards,
    dash-bar-live 3.6s ease-in-out 1.1s infinite;
}
.dash__bars span:nth-child(1) { animation-delay: 0.30s, 1.10s; }
.dash__bars span:nth-child(2) { animation-delay: 0.37s, 1.55s; }
.dash__bars span:nth-child(3) { animation-delay: 0.44s, 0.95s; }
.dash__bars span:nth-child(4) { animation-delay: 0.51s, 1.80s; }
.dash__bars span:nth-child(5) { animation-delay: 0.58s, 1.25s; }
.dash__bars span:nth-child(6) { animation-delay: 0.65s, 2.05s; }
.dash__bars span:nth-child(7) { animation-delay: 0.72s, 1.40s; }
.dash__bars span:nth-child(8) { animation-delay: 0.79s, 0.80s; }
.dash__bars span:nth-child(9) { animation-delay: 0.86s, 1.65s; }

@keyframes dash-stroke { to { stroke-dashoffset: 0; } }
@keyframes dash-fade { to { opacity: 1; } }
@keyframes dash-bar { to { transform: scaleY(1); } }
/* live "event counts ticking" — each bar breathes between full and --s height */
@keyframes dash-bar-live {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(var(--s, 0.85)); }
}
@keyframes dash-head-in { to { opacity: 1; } }
@keyframes dash-head-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(var(--accent-rgb), 0.6)); }
  50%      { transform: scale(1.5); filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.8)); }
}
@keyframes dash-scan {
  0%   { left: 0; opacity: 0; }
  12%  { opacity: 0.9; }
  88%  { opacity: 0.9; }
  100% { left: calc(100% - 2px); opacity: 0; }
}

@media (max-width: 720px) {
  .dash__kpis { grid-template-columns: repeat(2, 1fr); }
  .dash__kpi:nth-child(3) { display: none; }
}
@media (max-width: 520px) {
  .dash__side { display: none; }
  .dash__mini { display: none; }
}

.cta-band__inner {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-band__inner .eyebrow { margin-bottom: 0.2rem; }
.cta-band__inner h2 {
  font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.7rem);
  max-width: 22ch;
}
.cta-band__inner p { color: var(--text-dim); max-width: 44ch; }
.cta-band__inner .btn { margin-top: 0.75rem; }

/* --- Services page: categorised image cards --------------------------
   Three categories, three full-bleed image cards each. A card rests as
   its artwork + name; on hover / focus / :target a frosted plate rises
   over the image with the detail and a link. Images hold a slow,
   desynced idle pan. No JS here — reveal + :target are pure CSS.        */
.svc-cat { margin-top: clamp(2.25rem, 5.5vw, 3.75rem); }
.svc-cat:first-of-type { margin-top: clamp(1.75rem, 4vw, 2.75rem); }

.svc-cat__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: clamp(1rem, 2.4vw, 1.5rem);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.svc-cat__tick {
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 12px 0 var(--accent-glow);
}
.svc-cat__name {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 600;
}
.svc-cat__note { color: var(--text-mute); font-size: 0.9rem; }

.svc-cat__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.85rem, 1.6vw, 1.15rem);
}

.svc-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0a0e16;
  color: var(--text);
  scroll-margin-top: 6rem;
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  will-change: transform, opacity;
  transition:
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 420ms var(--ease-out),
    box-shadow 480ms var(--ease-out);
}
.svc-cat__grid.is-visible .svc-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.svc-cat__grid.is-visible .svc-card:nth-child(1) { transition-delay: 0ms; }
.svc-cat__grid.is-visible .svc-card:nth-child(2) { transition-delay: 110ms; }
.svc-cat__grid.is-visible .svc-card:nth-child(3) { transition-delay: 220ms; }

/* artwork — bleeds so the idle pan never shows a seam */
.svc-card__img {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.5;
  filter: grayscale(0.32) contrast(1.04);
  will-change: transform;
  transform: translateZ(0);
  transition: opacity 620ms var(--ease-out), filter 620ms var(--ease-out);
  animation: svc-kb 40s ease-in-out infinite alternate;
}
.svc-card:nth-child(2) .svc-card__img { animation-delay: -13s; animation-duration: 46s; }
.svc-card:nth-child(3) .svc-card__img { animation-delay: -27s; animation-duration: 52s; }
@keyframes svc-kb {
  from { transform: translate3d(0.8%, 1%, 0) scale(1.05); }
  to   { transform: translate3d(-0.8%, -1.2%, 0) scale(1.09); }
}
.svc-card__grad {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(4, 6, 12, 0.12) 0%, rgba(4, 6, 12, 0.5) 52%, rgba(4, 6, 12, 0.93) 100%);
}

/* top-corner brackets — the console-panel signature */
.svc-card::before,
.svc-card::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  opacity: 0.4;
  transition: opacity 420ms var(--ease-out), transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  pointer-events: none;
}
.svc-card::before { left: 12px; border-right: 0; border-bottom: 0; transform: translate3d(3px, 3px, 0); }
.svc-card::after  { right: 12px; border-left: 0; border-bottom: 0; transform: translate3d(-3px, 3px, 0); }
.svc-card:hover::before, .svc-card:hover::after,
.svc-card:focus-visible::before, .svc-card:focus-visible::after,
.svc-card:target::before, .svc-card:target::after { opacity: 1; transform: translate3d(0, 0, 0); }

.svc-card__plate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: clamp(1rem, 2.2vw, 1.4rem);
}
.svc-card__plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 9, 15, 0), rgba(6, 9, 15, 0.72));
  opacity: 0;
  transition: opacity 520ms var(--ease-out);
}
.svc-card:hover .svc-card__plate::before,
.svc-card:focus-visible .svc-card__plate::before,
.svc-card:target .svc-card__plate::before { opacity: 1; }

.svc-card__kicker {
  font-family: var(--font-head);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.svc-card__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.02rem, 0.92rem + 0.4vw, 1.26rem);
  font-weight: 500;
  line-height: 1.15;
}
.svc-card__reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition:
    grid-template-rows 560ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 400ms var(--ease-out),
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-card__reveal-inner {
  overflow: hidden;
  min-height: 0;
}
.svc-card:hover .svc-card__reveal,
.svc-card:focus-visible .svc-card__reveal,
.svc-card:target .svc-card__reveal {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.svc-card__desc {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.55;
}
.svc-card__go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-family: var(--font-head);
  font-size: 0.76rem;
  color: var(--accent);
  transition: gap 300ms var(--ease-out);
}
.svc-card__go .ico { width: 14px; height: 14px; }
.svc-card:hover .svc-card__go { gap: 0.7rem; }

.svc-card:hover { border-color: var(--accent-line); }
.svc-card:hover .svc-card__img,
.svc-card:focus-visible .svc-card__img,
.svc-card:target .svc-card__img {
  opacity: 0.92;
  filter: grayscale(0) contrast(1.05);
}
.svc-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.svc-card:target {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 44px -12px var(--accent-glow);
}

/* touch / no-hover: show the detail, no reveal-on-hover */
@media (hover: none) {
  .svc-card__reveal { grid-template-rows: 1fr; opacity: 1; transform: none; }
  .svc-card__plate::before { opacity: 1; }
  .svc-card__img { opacity: 0.82; filter: grayscale(0) contrast(1.05); }
}

@media (max-width: 900px) {
  .svc-cat__grid { grid-template-columns: repeat(2, 1fr); }
  .svc-cat__grid.is-visible .svc-card:nth-child(3) { transition-delay: 90ms; }
}
@media (max-width: 600px) {
  .svc-cat__grid { grid-template-columns: 1fr; }
  .svc-card { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card {
    transition: opacity 240ms linear, border-color 200ms linear, box-shadow 200ms linear;
    transform: none;
    will-change: auto;
  }
  .svc-card__img {
    animation: none;
    transform: translateZ(0) scale(1.05);
    will-change: auto;
  }
  .svc-card::before,
  .svc-card::after { transition: opacity 200ms linear; transform: none; }
  .svc-card__reveal {
    transition: grid-template-rows 240ms linear, opacity 200ms linear;
    transform: none;
  }
}

/* --- Service detail page (e.g. google-ads.html) --------------------------
   Reused across service pages: overview + animated ad preview, an
   includes grid, a numbered stepper, a pull quote and related links.
   Section reveals hang off the shared `.reveal` -> `.is-visible` hook.   */
.page-banner .eyebrow { display: block; margin-bottom: 0.7rem; }

.svcx-overview {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}
.svcx-overview__copy { max-width: 40rem; }
.svcx-overview__copy .eyebrow { display: block; margin-bottom: 0.9rem; }
.svcx-overview__copy h2 {
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.7rem);
  margin-bottom: 1rem;
}
.svcx-overview__copy p { color: var(--text-dim); }
.svcx-overview__copy p + p { margin-top: 1rem; }
@media (max-width: 860px) {
  .svcx-overview { grid-template-columns: 1fr; }
  .svcx-overview__copy { order: -1; max-width: 46rem; }
}

/* animated Google-ad preview */
.ad-preview {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: var(--radius);
  font-family: var(--font-body);
}
.ad-preview.glass {
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform 460ms var(--ease-out),
    box-shadow 460ms var(--ease-out);
}
/* the animated gradient edge runs by default here, not just on hover */
.ad-preview.glass::before {
  opacity: 1;
  animation: gx-spin 3.6s linear infinite;
}
.ad-preview:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow), 0 0 46px -12px var(--accent-glow);
}
.ad-preview.glass:hover::before { animation-duration: 1.5s; }
.ad-preview:hover .ad-preview__bar { border-color: var(--accent-line); }

.ad-preview__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mute);
  font-size: 0.9rem;
  transition: border-color 400ms var(--ease-out);
}
.ad-preview__bar .ico { width: 16px; height: 16px; color: var(--text-mute); flex: none; }
/* the query types itself out, holds, clears and repeats.
   width:max-content keeps the box exactly as wide as the text, so the
   caret sits right after the last character; max-width does the reveal. */
.ad-preview__bar span {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  width: max-content;
  max-width: 0;
  border-right: 1.5px solid transparent;
}
.ad-preview.is-visible .ad-preview__bar span {
  animation: ad-type 6.5s steps(32, end) 0.5s infinite,
             ad-caret 0.85s steps(1, end) infinite;
}
@keyframes ad-type {
  0% { max-width: 0; }
  28% { max-width: 32ch; }
  76% { max-width: 32ch; }
  84% { max-width: 0; }
  100% { max-width: 0; }
}
@keyframes ad-caret {
  0%, 100% { border-right-color: var(--accent); }
  50% { border-right-color: transparent; }
}
.ad-preview__result {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1.1rem;
  padding-left: 0.2rem;
}
.ad-preview__result > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.ad-preview.is-visible .ad-preview__result > * { opacity: 1; transform: none; }
.ad-preview.is-visible .ad-preview__result > :nth-child(1) { transition-delay: 120ms; }
.ad-preview.is-visible .ad-preview__result > :nth-child(2) { transition-delay: 200ms; }
.ad-preview.is-visible .ad-preview__result > :nth-child(3) { transition-delay: 280ms; }
.ad-preview.is-visible .ad-preview__result > :nth-child(4) { transition-delay: 360ms; }
.ad-preview.is-visible .ad-preview__result > :nth-child(5) { transition-delay: 440ms; }
.ad-preview__tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  padding: 0.05rem 0.4rem;
}
.ad-preview__url { color: var(--text-dim); font-size: 0.82rem; }
.ad-preview__headline {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.25;
}
.ad-preview__desc { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; }
.ad-preview__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-top: 0.65rem;
  font-size: 0.76rem;
}
.ad-preview__links span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.62rem;
  font-family: var(--font-head);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.06);
  transition: background-color 260ms var(--ease-out), border-color 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.ad-preview__links span::after {
  content: "\2197";
  font-size: 0.9em;
  opacity: 0.65;
}
.ad-preview:hover .ad-preview__links span { border-color: var(--accent); }
.ad-preview__links span:hover {
  background: rgba(var(--accent-rgb), 0.16);
  transform: translateY(-1px);
}
.ad-preview__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.1), transparent);
  transform: translateY(-100%);
}
.ad-preview.is-visible .ad-preview__scan {
  animation: ad-scan 2.6s var(--ease-out) 0.2s 1 forwards;
}
@keyframes ad-scan { to { transform: translateY(260%); } }

/* generic figure: a labelled stat + animated meter bars */
.svcx-figure {
  align-self: center;
  padding: clamp(1.2rem, 3vw, 1.75rem);
  border-radius: var(--radius);
}
.svcx-figure__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.svcx-figure__ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.svcx-figure__ico .ico { width: 16px; height: 16px; }
.svcx-figure__label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.svcx-figure__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 1.1rem 0 1.3rem;
}
.svcx-figure__stat strong {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.svcx-figure__stat span { color: var(--text-mute); font-size: 0.85rem; }
.svcx-figure__bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.svcx-figure__bars li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.svcx-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.svcx-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 950ms var(--ease-out);
}
.svcx-figure.is-visible .svcx-bar__fill { width: var(--v, 0%); }
.svcx-figure.is-visible .svcx-figure__bars li:nth-child(2) .svcx-bar__fill { transition-delay: 130ms; }
.svcx-figure.is-visible .svcx-figure__bars li:nth-child(3) .svcx-bar__fill { transition-delay: 260ms; }
@media (max-width: 460px) {
  .svcx-figure__bars li { grid-template-columns: 6.75rem 1fr; }
}
/* animated gradient edge runs by default on every service figure, like the Google Ads preview */
.svcx-figure.glass::before {
  opacity: 1;
  animation: gx-spin 3.6s linear infinite;
}
.svcx-figure.glass:hover::before { animation-duration: 1.6s; }

/* what's included */
.svcx-includes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.svcx-include {
  position: relative;
  overflow: hidden;
  padding: clamp(1.3rem, 2.6vw, 1.7rem);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 640ms var(--ease-out),
    transform 640ms var(--ease-out),
    border-color 500ms var(--ease-out);
}
/* colored wash that sweeps down from the top edge on hover */
.svcx-include::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.15), transparent 78%);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
  transition: opacity 380ms var(--ease-out), transform 460ms var(--ease-out);
}
.svcx-include:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
}
.svcx-include:hover::after { opacity: 1; transform: scaleY(1); }
.svcx-include:hover .svcx-include__ico {
  transform: translateY(-2px) rotate(-5deg);
  background: rgba(var(--accent-rgb), 0.16);
}
.svcx-include__ico { transition: transform 500ms var(--ease-out), background-color 500ms var(--ease-out); }
.svcx-includes.is-visible .svcx-include { opacity: 1; transform: none; }
.svcx-includes.is-visible .svcx-include:nth-child(2) { transition-delay: 70ms; }
.svcx-includes.is-visible .svcx-include:nth-child(3) { transition-delay: 140ms; }
.svcx-includes.is-visible .svcx-include:nth-child(4) { transition-delay: 210ms; }
.svcx-includes.is-visible .svcx-include:nth-child(5) { transition-delay: 280ms; }
.svcx-includes.is-visible .svcx-include:nth-child(6) { transition-delay: 350ms; }
.svcx-include__ico {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.7rem;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.svcx-include__ico .ico { width: 18px; height: 18px; }
.svcx-include h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.svcx-include p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; }

/* how we work — numbered stepper */
.svcx-steps {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: clamp(1.4rem, 3.5vw, 2.4rem);
  max-width: 46rem;
  margin: 0;
  padding: 0 0 0 3.25rem;
  list-style: none;
}
.svcx-steps::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 6px;
  bottom: 6px;
  z-index: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-line) 60%, transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 900ms var(--ease-out);
}
.svcx-steps.is-visible::before { transform: scaleY(1); }
.svcx-step {
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
.svcx-steps.is-visible .svcx-step { opacity: 1; transform: none; }
.svcx-steps.is-visible .svcx-step:nth-child(2) { transition-delay: 140ms; }
.svcx-steps.is-visible .svcx-step:nth-child(3) { transition-delay: 260ms; }
.svcx-steps.is-visible .svcx-step:nth-child(4) { transition-delay: 380ms; }
.svcx-steps.is-visible .svcx-step:nth-child(5) { transition-delay: 500ms; }
.svcx-step__node {
  position: absolute;
  left: -3.25rem;
  top: -2px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-1);
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 0 4px var(--bg);
}
.svcx-step h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.svcx-step p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

/* a highlight that travels down the spine (behind the numbers) and, near
   the last step, converges into a short pulse rather than parking on it */
.svcx-steps::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  z-index: 1;
  width: 4px;
  height: 44px;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent, var(--accent) 45%, transparent);
  opacity: 0;
  pointer-events: none;
}
.svcx-steps.is-visible::after { animation: steps-flow 3.8s var(--ease-out) 1.1s infinite; }
@keyframes steps-flow {
  0% { top: 0; height: 44px; opacity: 0; }
  10% { opacity: 1; }
  66% { top: calc(100% - 96px); height: 44px; opacity: 1; }
  84% { top: calc(100% - 46px); height: 16px; opacity: 0.5; }
  100% { top: calc(100% - 34px); height: 4px; opacity: 0; }
}
/* nodes flash as the timeline reaches them */
.svcx-steps.is-visible .svcx-step__node { animation: node-flash 900ms var(--ease-out) both; }
.svcx-steps.is-visible .svcx-step:nth-child(1) .svcx-step__node { animation-delay: 0.15s; }
.svcx-steps.is-visible .svcx-step:nth-child(2) .svcx-step__node { animation-delay: 0.29s; }
.svcx-steps.is-visible .svcx-step:nth-child(3) .svcx-step__node { animation-delay: 0.41s; }
.svcx-steps.is-visible .svcx-step:nth-child(4) .svcx-step__node { animation-delay: 0.53s; }
.svcx-steps.is-visible .svcx-step:nth-child(5) .svcx-step__node { animation-delay: 0.65s; }
@keyframes node-flash {
  0% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 0 var(--accent-glow); }
  40% {
    box-shadow: 0 0 0 4px var(--bg), 0 0 20px 3px var(--accent-glow);
    border-color: var(--accent);
  }
  100% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 0 var(--accent-glow); }
}

/* how we work — steps beside an animated illustration */
.svcx-process {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.svcx-process .svcx-steps { max-width: none; }
@media (max-width: 900px) {
  .svcx-process { grid-template-columns: 1fr; gap: 2rem; }
  .svcx-process__art { max-width: 220px; margin: 0.5rem auto 0; }
}

/* the timeline as a Google Ads search result climbing the page: a mini
   SERP where the sponsored "Ad" result is selected up through the ranks
   to the top slot, then clicked. Loops. */
.proc-art {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  margin-inline: auto;
  overflow: visible;
}
.proc-art__ripple { transform-box: fill-box; transform-origin: center; }
.proc-art__cursor { transform-box: fill-box; transform-origin: center; }
.proc-art__query { transform-box: fill-box; transform-origin: left center; }

.proc-art__box,
.proc-art__mag {
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}
.proc-art__box { fill: none; stroke: var(--line-strong); stroke-width: 2.5; }
.proc-art__mag { fill: none; stroke: var(--text-mute); stroke-width: 2.5; stroke-linecap: round; }
.svcx-process__art.is-visible .proc-art__box,
.svcx-process__art.is-visible .proc-art__mag { opacity: 1; }

.proc-art__query {
  fill: var(--text-mute);
  transform: scaleX(0);
  transition: transform 700ms var(--ease-out) 300ms;
}
.svcx-process__art.is-visible .proc-art__query { transform: scaleX(1); }

.proc-art__row {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: calc(var(--i) * 140ms + 450ms);
}
.proc-art__row rect { fill: var(--line); }
.proc-art__row .proc-art__row-title { fill: var(--accent); opacity: 0.55; }
.svcx-process__art.is-visible .proc-art__row { opacity: 1; transform: none; }

.proc-art__badge { fill: rgba(var(--accent-rgb), 0.16); stroke: var(--accent); stroke-width: 1.5; opacity: 0; transition: opacity 500ms var(--ease-out) 900ms; }
.proc-art__badge-txt { fill: var(--accent); font-family: var(--font-head); font-weight: 700; font-size: 9px; opacity: 0; transition: opacity 500ms var(--ease-out) 900ms; }
.svcx-process__art.is-visible .proc-art__badge,
.svcx-process__art.is-visible .proc-art__badge-txt { opacity: 1; }

.proc-art__focus {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  opacity: 0;
}
.svcx-process__art.is-visible .proc-art__focus { animation: serp-focus 5s cubic-bezier(0.65, 0, 0.35, 1) 1s infinite; }
@keyframes serp-focus {
  0% { transform: translateY(0); opacity: 0; }
  12% { transform: translateY(0); opacity: 0; }
  29% { transform: translateY(0); opacity: 1; }
  38% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(46px); opacity: 1; }
  60% { transform: translateY(46px); opacity: 1; }
  71% { transform: translateY(92px); opacity: 1; }
  85% { transform: translateY(92px); opacity: 1; }
  90% { transform: translateY(0); opacity: 1; }
  96% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}

.proc-art__cursor {
  fill: var(--text);
  stroke: var(--bg);
  stroke-width: 1.5;
  opacity: 0;
}
.svcx-process__art.is-visible .proc-art__cursor { animation: serp-cursor 5s ease 1s infinite; }
@keyframes serp-cursor {
  0% { transform: translate(34px, 44px) scale(1); opacity: 0; animation-timing-function: ease-out; }
  7% { transform: translate(34px, 44px) scale(1); opacity: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.25, 1); }
  20% { transform: translate(0, 3px) scale(1); animation-timing-function: cubic-bezier(0.34, 1.28, 0.64, 1); }
  24% { transform: translate(0, 0) scale(1); animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); }
  35% { transform: translate(0, 0) scale(1); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
  44% { transform: translate(6px, 47px) scale(1); animation-timing-function: cubic-bezier(0.34, 1.24, 0.64, 1); }
  47% { transform: translate(6px, 46px) scale(1); animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); }
  57% { transform: translate(6px, 46px) scale(1); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
  65% { transform: translate(-10px, 93px) scale(1); animation-timing-function: cubic-bezier(0.34, 1.24, 0.64, 1); }
  68% { transform: translate(-10px, 92px) scale(1); animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); }
  79% { transform: translate(-10px, 92px) scale(1); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
  86% { transform: translate(0, 0) scale(1); animation-timing-function: cubic-bezier(0.4, 0, 0.3, 1); }
  89% { transform: translate(0, 0) scale(0.8); animation-timing-function: ease-in-out; }
  93% { transform: translate(0, 0) scale(1); animation-timing-function: ease-out; }
  97% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 0; }
}

.proc-art__ripple { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; }
.svcx-process__art.is-visible .proc-art__ripple { animation: serp-ripple 5s linear 1s infinite; }
@keyframes serp-ripple {
  0%, 88% { transform: scale(0.2); opacity: 0; }
  92% { transform: scale(0.5); opacity: 0.7; }
  99% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(0.2); opacity: 0; }
}

/* pull quote */
.svcx-quote {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  text-align: center;
}
.svcx-quote p { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem); line-height: 1.5; }
.svcx-quote footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* related services */
.svcx-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(0.85rem, 2vw, 1.15rem);
}
.svcx-related__item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-bg);
  color: var(--text);
  transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out);
}
/* corner glow that fades up on hover — matches the homepage service cards */
.svcx-related__item::after {
  content: "";
  position: absolute;
  inset-block-start: -46%;
  inset-inline-end: -16%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
}
.svcx-related__item:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}
.svcx-related__item:hover::after { opacity: 1; }
.svcx-related__ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  transition: transform 500ms var(--ease-out), background-color 500ms var(--ease-out);
}
.svcx-related__ico .ico { width: 18px; height: 18px; }
.svcx-related__item:hover .svcx-related__ico {
  transform: translateY(-2px) rotate(-5deg);
  background: rgba(var(--accent-rgb), 0.16);
}
.svcx-related__text { display: flex; flex-direction: column; gap: 0.1rem; }
.svcx-related__kicker {
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.svcx-related__name { font-family: var(--font-head); font-weight: 500; }
.svcx-related__arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--text-mute);
  transition: transform 300ms var(--ease-out), color 300ms var(--ease-out);
}
.svcx-related__item:hover .svcx-related__arrow { transform: translateX(4px); color: var(--accent); }

/* shared image carousel for project / app showcases (used on several service pages) */
.svcx-shots { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.svcx-shots__group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2.5vw, 1.5rem);
}
@media (max-width: 860px) {
  .svcx-shots__group { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .svcx-shots__group { grid-template-columns: 1fr; }
}
.svcx-shot { margin: 0; }
.svcx-shot__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.02));
}
.svcx-shot--app .svcx-shot__img { aspect-ratio: 4 / 3; }
.svcx-shot__cap {
  margin-top: 0.9rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text);
}
.svcx-shot__cap span { margin-left: 0.6rem; font-size: 0.85rem; color: var(--text-mute); }

@media (prefers-reduced-motion: reduce) {
  .ad-preview__result > *,
  .svcx-include,
  .svcx-step {
    transition: opacity 200ms linear;
    transform: none;
  }
  .ad-preview__scan { display: none; }
  .ad-preview__bar span {
    width: auto;
    max-width: none;
    animation: none;
    border-right-color: transparent;
  }
  .ad-preview.glass::before { animation: none; }
  .ad-preview:hover { transform: none; }
  .svcx-steps::before { transition: none; transform: scaleY(1); }
  .svcx-steps::after { display: none; }
  .svcx-steps.is-visible .svcx-step__node { animation: none; }
  .proc-art__focus,
  .proc-art__cursor,
  .proc-art__ripple { animation: none; }
  .proc-art__box,
  .proc-art__mag,
  .proc-art__badge,
  .proc-art__badge-txt,
  .proc-art__row { transition: none; opacity: 1; transform: none; }
  .proc-art__query { transition: none; transform: scaleX(1); }
  .proc-art__focus { opacity: 1; transform: translateY(0); }
  .proc-art__cursor { opacity: 1; transform: translate(0, 0); }
  .proc-art__ripple { opacity: 0; }
  .svcx-include:hover { transform: none; }
  .svcx-related__item:hover { transform: none; }
  .svcx-related__item:hover .svcx-related__ico { transform: none; }
  .svcx-figure.glass::before { animation: none; }
  .svcx-bar__fill { transition: width 250ms linear; }
}

/* --- Service detail: Google SEO -----------------------------------------
   Bespoke body for services/google-seo.html — the three-front triptych
   and the compounding growth timeline. Other service pages get their own.  */
.seo-pillars {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.35rem);
}
.seo-pillar {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-bg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 500ms var(--ease-out), border-color 320ms var(--ease-out);
}
/* corner glow that fades up on hover — matches the homepage service cards */
.seo-pillar::after {
  content: "";
  position: absolute;
  inset-block-start: -32%;
  inset-inline-end: -22%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
}
.seo-pillars.is-visible .seo-pillar { opacity: 1; transform: none; }
.seo-pillars.is-visible .seo-pillar:nth-child(2) { transition-delay: 110ms; }
.seo-pillars.is-visible .seo-pillar:nth-child(3) { transition-delay: 220ms; }
.seo-pillar:hover { border-color: var(--accent-line); transform: translateY(-6px); }
.seo-pillar:hover::after { opacity: 1; }
.seo-pillar__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.35rem;
  border-radius: 11px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 20px -8px var(--accent-glow);
  transition: transform 500ms var(--ease-out), background-color 500ms var(--ease-out);
}
.seo-pillar__ico .ico { width: 21px; height: 21px; }
.seo-pillar:hover .seo-pillar__ico {
  transform: translateY(-2px) rotate(-5deg);
  background: rgba(var(--accent-rgb), 0.17);
}
.seo-pillar h3 { font-size: 1.15rem; }
.seo-pillar > p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; }
.seo-pillar ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
}
.seo-pillar li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.86rem;
  color: var(--text-dim);
}
.seo-pillar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 820px) {
  .seo-pillars { grid-template-columns: 1fr; }
}

.seo-timeline {
  position: relative;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}
.seo-timeline__curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(120px, 20vw, 200px);
  overflow: visible;
}
.seo-timeline__area {
  fill: rgba(var(--accent-rgb), 0.08);
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}
.seo-timeline__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
}
/* bright pulse that keeps riding up the growth curve once it's drawn */
.seo-timeline__spark {
  fill: none;
  stroke: #eafeff;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 90 3200;
  stroke-dashoffset: 3200;
  opacity: 0;
  filter: drop-shadow(0 0 6px var(--accent));
}
.seo-timeline.is-visible .seo-timeline__area { opacity: 1; }
.seo-timeline.is-visible .seo-timeline__line {
  transition: stroke-dashoffset 1600ms var(--ease-out) 150ms;
  stroke-dashoffset: 0;
}
.seo-timeline.is-visible .seo-timeline__spark {
  opacity: 1;
  animation: seo-spark 3.8s linear 2s infinite;
}
@keyframes seo-spark {
  0% { stroke-dashoffset: 3200; }
  100% { stroke-dashoffset: 110; }
}
.seo-timeline__phases {
  position: relative;
  list-style: none;
  margin: 0;
  padding: clamp(135px, 22vw, 220px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.85rem, 2vw, 1.4rem);
}
.seo-phase {
  position: relative;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
.seo-timeline.is-visible .seo-phase { opacity: 1; transform: none; }
.seo-timeline.is-visible .seo-phase:nth-child(2) { transition-delay: 170ms; }
.seo-timeline.is-visible .seo-phase:nth-child(3) { transition-delay: 320ms; }
.seo-timeline.is-visible .seo-phase:nth-child(4) { transition-delay: 470ms; }
.seo-phase__dot {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px 0 var(--accent-glow);
  transform: scale(0);
}
.seo-timeline.is-visible .seo-phase__dot {
  animation: seo-dot-pop 520ms var(--ease-out) forwards, seo-dot-glow 3.8s ease-in-out 1.4s infinite;
}
.seo-timeline.is-visible .seo-phase:nth-child(1) .seo-phase__dot { animation-delay: 0.35s, 1.4s; }
.seo-timeline.is-visible .seo-phase:nth-child(2) .seo-phase__dot { animation-delay: 0.75s, 1.6s; }
.seo-timeline.is-visible .seo-phase:nth-child(3) .seo-phase__dot { animation-delay: 1.15s, 1.8s; }
.seo-timeline.is-visible .seo-phase:nth-child(4) .seo-phase__dot { animation-delay: 1.55s, 2s; }
@keyframes seo-dot-pop {
  0% { transform: scale(0); }
  62% { transform: scale(1.55); }
  100% { transform: scale(1); }
}
@keyframes seo-dot-glow {
  0%, 100% { box-shadow: 0 0 0 4px var(--bg), 0 0 10px 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 4px var(--bg), 0 0 22px 3px var(--accent-glow); }
}
.seo-phase__when {
  display: block;
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.seo-phase h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.seo-phase p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.55; }
@media (max-width: 820px) {
  .seo-timeline__curve { display: none; }
  .seo-timeline__phases { grid-template-columns: 1fr; padding-top: 0; gap: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-pillar,
  .seo-phase { transition: opacity 200ms linear; transform: none; }
  .seo-pillar:hover { transform: none; }
  .seo-timeline__line { transition: none; stroke-dashoffset: 0; }
  .seo-timeline__area { transition: none; opacity: 1; }
  .seo-timeline__spark { animation: none; opacity: 0; }
  .seo-timeline.is-visible .seo-phase__dot { animation: none; transform: none; }
}

/* --- Service detail: Google Map SEO -----------------------------------
   Bespoke body for services/google-map-seo.html — an annotated map + pack
   diagram, a groundwork/ongoing split, and a star-rated review card.     */

/* first-section illustration: a Google Business Profile listing card */
.gbp-card { display: flex; flex-direction: column; gap: 0.55rem; }
.gbp-card__badge {
  align-self: flex-start;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  background: rgba(var(--accent-rgb), 0.06);
  opacity: 0;
  transform: translateY(-6px);
}
.svcx-figure.is-visible .gbp-card__badge {
  transition: opacity 420ms var(--ease-out) 150ms, transform 420ms var(--ease-out) 150ms;
  opacity: 1;
  transform: none;
}
.gbp-card__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);
  letter-spacing: -0.01em;
  margin-top: 0.15rem;
}
.gbp-card__rating { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-dim); }
.gbp-card__rating strong { font-family: var(--font-head); font-size: 1rem; color: var(--text); }
.gbp-card__stars { display: inline-flex; gap: 0.1rem; }
.gbp-card__stars .ico {
  width: 14px;
  height: 14px;
  color: var(--line-strong);
  fill: currentColor;
  stroke: none;
}
.svcx-figure.is-visible .gbp-card__stars .ico {
  animation: gbp-star 320ms var(--ease-out) forwards;
  animation-delay: calc(var(--s) * 90ms + 320ms);
}
@keyframes gbp-star {
  0% { color: var(--line-strong); transform: scale(0.6); }
  60% { transform: scale(1.25); }
  100% { color: var(--accent); transform: scale(1); }
}
.gbp-card__cat { font-size: 0.85rem; color: var(--text-mute); }
.gbp-card__open { color: var(--accent); }
.gbp-card__open::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.35rem;
  vertical-align: middle;
  animation: gbp-live 2.4s ease-in-out infinite;
}
@keyframes gbp-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0); }
}
.gbp-card__actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.gbp-card__act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.2rem;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0;
  transform: translateY(8px);
}
.gbp-card__act .ico { width: 15px; height: 15px; }
.svcx-figure.is-visible .gbp-card__act {
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  transition-delay: calc(var(--i) * 90ms + 500ms);
  opacity: 1;
  transform: none;
  animation: gbp-tap 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.5s + 1.4s);
}
@keyframes gbp-tap {
  0%, 14%, 100% { background: var(--accent-soft); border-color: var(--accent-line); }
  5% { background: rgba(var(--accent-rgb), 0.22); border-color: var(--accent); }
}
.gbp-card__photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; margin-top: 0.3rem; }
.gbp-card__photos span {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background:
    linear-gradient(130deg, rgba(var(--accent-rgb), 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  opacity: 0;
  transform: scale(0.85);
}
.svcx-figure.is-visible .gbp-card__photos span {
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + 850ms);
  opacity: 1;
  transform: none;
}

.gmb-pack {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) 1.2fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 750ms var(--ease-out), transform 750ms var(--ease-out);
}
.gmb-pack.is-visible { opacity: 1; transform: none; }
.gmb-map {
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 48%, rgba(var(--accent-rgb), 0.07), transparent 68%),
    #080b12;
}
.gmb-map__svg { display: block; width: 100%; height: auto; overflow: visible; }
.gmb-map__block { fill: rgba(255, 255, 255, 0.028); }
.gmb-map__park { fill: rgba(94, 196, 130, 0.12); }
.gmb-map__road { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 9; stroke-linecap: round; }
.gmb-map__road--hwy { stroke: rgba(255, 255, 255, 0.08); stroke-width: 11; }
.gmb-map__ring { fill: none; stroke: rgba(var(--accent-rgb), 0.16); stroke-width: 1; }
.gmb-map__ping {
  fill: none;
  stroke: rgba(var(--accent-rgb), 0.55);
  stroke-width: 1.5;
  transform-origin: 126px 126px;
  animation: gmb-ping 3.6s var(--ease-out) infinite;
}
@keyframes gmb-ping {
  0% { transform: scale(0.4); opacity: 0.75; }
  75%, 100% { transform: scale(4.4); opacity: 0; }
}
.gmb-map__comp { fill: var(--text-mute); opacity: 0.5; }
.gmb-map__shadow { fill: rgba(0, 0, 0, 0.4); opacity: 0; }
.gmb-map__marker { opacity: 0; transform: translateY(-18px); }
.gmb-map__pin { fill: var(--accent); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }
.gmb-map__pindot { fill: #06080d; }
.gmb-map__badge { opacity: 0; }
.gmb-map__badge rect { fill: #0e131c; stroke: var(--accent-line); stroke-width: 1; }
.gmb-map__badge-txt {
  fill: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.02em;
}
.gmb-map__search rect { fill: #0e131c; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.gmb-map__search-mag { fill: none; stroke: var(--text-mute); stroke-width: 1.6; stroke-linecap: round; }
.gmb-map__search-txt { fill: rgba(255, 255, 255, 0.14); }
.gmb-pack.is-visible .gmb-map__marker {
  animation: gmb-pin-drop 720ms cubic-bezier(0.34, 1.45, 0.6, 1) 220ms forwards;
}
.gmb-pack.is-visible .gmb-map__shadow {
  transition: opacity 400ms var(--ease-out) 820ms;
  opacity: 1;
}
.gmb-pack.is-visible .gmb-map__badge {
  transition: opacity 460ms var(--ease-out) 980ms;
  opacity: 1;
}
@keyframes gmb-pin-drop {
  0% { transform: translateY(-18px); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

.gmb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.gmb-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}
.gmb-list__item--you {
  border-color: var(--accent-line);
  background: rgba(var(--accent-rgb), 0.06);
  box-shadow: 0 0 34px -16px var(--accent-glow);
}
.gmb-list__rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mute);
  border: 1px solid var(--line-strong);
}
.gmb-list__item--you .gmb-list__rank {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
.gmb-list__body { display: flex; flex-direction: column; gap: 0.22rem; min-width: 0; }
.gmb-list__name { font-family: var(--font-head); font-weight: 500; }
.gmb-list__meta { font-size: 0.8rem; color: var(--text-dim); }
.gmb-list__meta strong { color: var(--text); }
.gmb-list__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.gmb-list__chips span {
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.gmb-tune {
  list-style: none;
  margin: clamp(1.5rem, 3.5vw, 2.25rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
}
.gmb-tune__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-bg);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease-out), transform 500ms var(--ease-out), border-color 320ms var(--ease-out);
}
/* corner glow that fades up on hover — matches the other service cards */
.gmb-tune__card::after {
  content: "";
  position: absolute;
  inset-block-start: -32%;
  inset-inline-end: -22%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
}
.gmb-tune.is-visible .gmb-tune__card { opacity: 1; transform: none; }
.gmb-tune.is-visible .gmb-tune__card:nth-child(2) { transition-delay: 80ms; }
.gmb-tune.is-visible .gmb-tune__card:nth-child(3) { transition-delay: 160ms; }
.gmb-tune.is-visible .gmb-tune__card:nth-child(4) { transition-delay: 240ms; }
.gmb-tune.is-visible .gmb-tune__card:nth-child(5) { transition-delay: 320ms; }
.gmb-tune.is-visible .gmb-tune__card:nth-child(6) { transition-delay: 400ms; }
.gmb-tune__card:hover { border-color: var(--accent-line); transform: translateY(-6px); }
.gmb-tune__card:hover::after { opacity: 1; }
.gmb-tune__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.3rem;
  border-radius: 11px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 20px -8px var(--accent-glow);
  transition: transform 500ms var(--ease-out), background-color 500ms var(--ease-out);
}
.gmb-tune__ico .ico { width: 20px; height: 20px; }
.gmb-tune__card:hover .gmb-tune__ico {
  transform: translateY(-2px) rotate(-5deg);
  background: rgba(var(--accent-rgb), 0.17);
}
.gmb-tune__card strong {
  display: block;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  margin-bottom: 0.05rem;
}
@media (max-width: 780px) {
  .gmb-pack { grid-template-columns: 1fr; justify-items: center; }
  .gmb-map { max-width: 320px; width: 100%; }
  .gmb-list { width: 100%; }
}

/* groundwork / ongoing split */
.gmb-tracks {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.9rem, 2vw, 1.35rem);
}
.gmb-track {
  position: relative;
  overflow: hidden;
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-bg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 500ms var(--ease-out), border-color 320ms var(--ease-out);
}
/* corner glow that fades up on hover — matches the other service cards */
.gmb-track::after {
  content: "";
  position: absolute;
  inset-block-start: -32%;
  inset-inline-end: -22%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
}
.gmb-tracks.is-visible .gmb-track { opacity: 1; transform: none; }
.gmb-tracks.is-visible .gmb-track:nth-child(2) { transition-delay: 120ms; }
.gmb-track:hover { border-color: var(--accent-line); transform: translateY(-6px); }
.gmb-track:hover::after { opacity: 1; }
.gmb-track > header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.gmb-track > header .ico {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
  transition: transform 500ms var(--ease-out);
}
.gmb-track:hover > header .ico { transform: scale(1.15) rotate(-8deg); }
.gmb-track h3 { font-size: 1.1rem; }
.gmb-track > header span {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.gmb-track ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.gmb-track li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out);
}
.gmb-tracks.is-visible .gmb-track li { opacity: 1; transform: none; }
.gmb-tracks.is-visible .gmb-track li:nth-child(1) { transition-delay: 260ms; }
.gmb-tracks.is-visible .gmb-track li:nth-child(2) { transition-delay: 330ms; }
.gmb-tracks.is-visible .gmb-track li:nth-child(3) { transition-delay: 400ms; }
.gmb-tracks.is-visible .gmb-track li:nth-child(4) { transition-delay: 470ms; }
.gmb-tracks.is-visible .gmb-track li:nth-child(5) { transition-delay: 540ms; }
.gmb-tracks.is-visible .gmb-track li:nth-child(6) { transition-delay: 610ms; }
.gmb-track li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.15em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
@media (max-width: 720px) {
  .gmb-tracks { grid-template-columns: 1fr; }
}

/* star-rated review card */
.gmb-quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.1rem, 3.5vw, 2.25rem);
  align-items: center;
  max-width: 50rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
}
.gmb-quote .quote__logo {
  width: clamp(64px, 11vw, 96px);
  height: clamp(64px, 11vw, 96px);
}
.gmb-quote__stars { display: flex; gap: 0.25rem; margin-bottom: 0.7rem; color: var(--accent); }
.gmb-quote__stars .ico { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.gmb-quote blockquote { margin: 0; }
.gmb-quote blockquote p { font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.25rem); line-height: 1.55; }
.gmb-quote figcaption { margin-top: 0.9rem; }
@media (max-width: 560px) {
  .gmb-quote { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .gmb-pack,
  .gmb-track,
  .gmb-track li,
  .gmb-tune__card { transition: opacity 200ms linear; transform: none; }
  .gmb-track:hover,
  .gmb-track:hover > header .ico,
  .gmb-tune__card:hover,
  .gmb-tune__card:hover .gmb-tune__ico { transform: none; }
  .gmb-map__ping,
  .gmb-map__marker { animation: none; }
  .gmb-map__ping { opacity: 0; }
  .gmb-map__marker { opacity: 1; transform: none; }
  .gmb-map__shadow,
  .gmb-map__badge { opacity: 1; }
  .gbp-card__badge,
  .gbp-card__act,
  .gbp-card__photos span { transition: none; opacity: 1; transform: none; }
  .svcx-figure.is-visible .gbp-card__act { animation: none; }
  .gbp-card__stars .ico { animation: none; color: var(--accent); }
  .gbp-card__open::before { animation: none; }
}

/* --- Service detail: Reputation Marketing ---------------------------------
   Bespoke body for services/reputation-marketing.html — a review-score
   summary figure and a four-stage flywheel with an orbiting loop track.   */

/* first-section illustration: a Google-style review score summary */
.rep-score { display: flex; flex-direction: column; gap: 1.1rem; }
.rep-score__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.rep-score__big { display: flex; flex-direction: column; gap: 0.35rem; }
.rep-score__big strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.rep-score__stars { display: inline-flex; gap: 0.12rem; }
.rep-score__stars .ico {
  width: 16px;
  height: 16px;
  color: var(--line-strong);
  fill: currentColor;
  stroke: none;
}
.svcx-figure.is-visible .rep-score__stars .ico {
  animation: gbp-star 320ms var(--ease-out) forwards;
  animation-delay: calc(var(--s) * 90ms + 300ms);
}
.rep-score__count { font-size: 0.8rem; color: var(--text-mute); }
.rep-score__trend {
  flex: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(var(--accent-rgb), 0.06);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
}
.svcx-figure.is-visible .rep-score__trend {
  transition: opacity 420ms var(--ease-out) 520ms, transform 420ms var(--ease-out) 520ms;
  opacity: 1;
  transform: none;
}
.rep-score__hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.rep-score__hist li {
  display: grid;
  grid-template-columns: 0.7rem 1fr;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-mute);
}
.rep-score__bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.rep-score__bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 900ms var(--ease-out);
}
.svcx-figure.is-visible .rep-score__bar > span { width: var(--v, 0%); }
.svcx-figure.is-visible .rep-score__hist li:nth-child(2) .rep-score__bar > span { transition-delay: 110ms; }
.svcx-figure.is-visible .rep-score__hist li:nth-child(3) .rep-score__bar > span { transition-delay: 220ms; }
.svcx-figure.is-visible .rep-score__hist li:nth-child(4) .rep-score__bar > span { transition-delay: 330ms; }
.svcx-figure.is-visible .rep-score__hist li:nth-child(5) .rep-score__bar > span { transition-delay: 440ms; }

.rep-flywheel { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.rep-flywheel__stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.85rem, 2vw, 1.25rem);
}
.rep-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-bg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 640ms var(--ease-out), transform 500ms var(--ease-out), border-color 320ms var(--ease-out);
}
/* corner glow that fades up on hover — matches the other service cards */
.rep-stage::after {
  content: "";
  position: absolute;
  inset-block-start: -32%;
  inset-inline-end: -22%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
}
.rep-flywheel.is-visible .rep-stage { opacity: 1; transform: none; }
.rep-flywheel.is-visible .rep-stage:nth-child(2) { transition-delay: 90ms; }
.rep-flywheel.is-visible .rep-stage:nth-child(3) { transition-delay: 180ms; }
.rep-flywheel.is-visible .rep-stage:nth-child(4) { transition-delay: 270ms; }
.rep-stage:hover { border-color: var(--accent-line); transform: translateY(-6px); }
.rep-stage:hover::after { opacity: 1; }
.rep-stage__ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  transition: transform 500ms var(--ease-out), background-color 500ms var(--ease-out);
}
.rep-stage__ico .ico { width: 18px; height: 18px; }
.rep-stage:hover .rep-stage__ico {
  transform: translateY(-2px) rotate(-5deg);
  background: rgba(var(--accent-rgb), 0.17);
}
.rep-stage h3 { font-size: 1.05rem; margin: 0.7rem 0 0.3rem; }
.rep-stage p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }

.rep-flywheel__track {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 560px;
  max-width: 100%;
  height: 42px;
  margin: clamp(1rem, 2.5vw, 1.5rem) auto 0;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 999px;
  background: var(--bg-1);
}
.rep-flywheel__track > span {
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.rep-flywheel__track > span b { font-weight: inherit; color: var(--accent); margin: 0 0.5rem; }
/* a gradient light traces just inside the pill border, from top centre round
   the right side, easing through the bottom centre, round the left, and back;
   it slows near each centre and quickens around the rounded ends */
.rep-flywheel__track::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.16) 30%, var(--accent) 82%, #eafeff);
  filter: drop-shadow(0 0 5px var(--accent-glow));
  offset-path: path("M 280 3 H 539 A 18 18 0 0 1 539 39 H 21 A 18 18 0 0 1 21 3 H 280 Z");
  offset-rotate: auto;
  offset-anchor: 100% 50%;
  animation: rep-trace 6s linear(0, 0.039 7.5%, 0.116 15%, 0.25 25%, 0.385 35%, 0.462 42.5%, 0.5 50%, 0.539 57.5%, 0.616 65%, 0.75 75%, 0.884 85%, 0.962 92.5%, 1) infinite;
}
@keyframes rep-trace {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}
@media (max-width: 780px) {
  .rep-flywheel__stages { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rep-flywheel__track::before { animation: none; opacity: 0; }
}
@media (max-width: 460px) {
  .rep-flywheel__stages { grid-template-columns: 1fr; }
  .rep-flywheel__track > span { font-size: 0.56rem; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  .rep-stage { transition: opacity 200ms linear; transform: none; }
  .rep-stage:hover,
  .rep-stage:hover .rep-stage__ico { transform: none; }
  .rep-flywheel__track::before { animation: none; opacity: 0; }
  .rep-score__stars .ico { animation: none; color: var(--accent); }
  .rep-score__trend,
  .rep-score__bar > span { transition: none; }
  .rep-score__trend { opacity: 1; transform: none; }
  .svcx-figure.is-visible .rep-score__bar > span { transition: width 250ms linear; }
}

/* --- Service detail: Website Development --------------------------------
   Bespoke body for services/website-development.html — a browser window
   that assembles on scroll, a terminal-style build log, and a code-panel
   quote. A shared 3-dot "chrome" motif ties the three together.          */

/* first-section illustration: a code editor writing the markup */
.wd-code {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0a0e16;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.wd-code__tabs {
  display: flex;
  gap: 2px;
  padding: 0.5rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.wd-code__tab {
  padding: 0.35rem 0.7rem;
  font-size: 0.68rem;
  color: var(--text-mute);
  border-radius: 6px 6px 0 0;
}
.wd-code__tab--on { color: var(--accent); background: #0a0e16; }
.wd-code__body { display: grid; gap: 7px; padding: 0.9rem 0.65rem; min-height: 208px; }
.wd-code__line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  opacity: 0;
  transform: translateX(-6px);
}
.svcx-figure.is-visible .wd-code__line {
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
  transition-delay: calc(var(--i) * 85ms + 250ms);
  opacity: 1;
  transform: none;
}
.wd-code__ln {
  width: 1rem;
  flex: none;
  text-align: right;
  font-size: 0.62rem;
  color: var(--line-strong);
  user-select: none;
}
.wd-code__code {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  padding-left: var(--pad, 0);
}
.wd-code__code i {
  display: block;
  height: 7px;
  border-radius: 2px;
  width: var(--w, 20%);
}
.wd-code__code i.t-tag { background: rgba(var(--accent-rgb), 0.6); }
.wd-code__code i.t-attr { background: rgba(74, 168, 255, 0.5); }
.wd-code__code i.t-str { background: rgba(255, 255, 255, 0.22); }
.wd-code__code i.t-dim { background: rgba(255, 255, 255, 0.1); }
.wd-code__typed { width: 0; }
.svcx-figure.is-visible .wd-code__typed {
  animation: wd-code-type 5s steps(22, end) 1.9s infinite;
}
@keyframes wd-code-type {
  0% { width: 0; }
  42% { width: 52px; }
  72% { width: 52px; }
  100% { width: 0; }
}
.wd-code__cursor {
  width: 2px;
  height: 13px;
  flex: none;
  background: var(--accent);
  animation: wd-blink 1s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .wd-code__line { transition: none; opacity: 1; transform: none; }
  .wd-code__typed { animation: none; width: 52px; }
  .wd-code__cursor { animation: none; }
}

.wd-build {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 860px) {
  .wd-build { grid-template-columns: 1fr; }
}

.wd-window {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0e16;
}
.wd-window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.wd-window__bar > span:not(.wd-window__url) {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.wd-window__url {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--text-mute);
}
.wd-window__page {
  position: relative;
  overflow: hidden;
  height: 260px;
  padding: clamp(0.9rem, 2.5vw, 1.4rem);
}
/* the page content scrolls itself, as if someone is reading down the site */
.wd-window__scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wd-build.is-visible .wd-window__scroll {
  animation: wd-browse 12s ease-in-out 1.4s infinite;
}
@keyframes wd-browse {
  0%, 9% { transform: translateY(0); }
  47%, 55% { transform: translateY(calc(-100% + 224px)); }
  93%, 100% { transform: translateY(0); }
}
.wd-block {
  flex: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.wd-build.is-visible .wd-block { opacity: 1; transform: none; }
.wd-build.is-visible .wd-block:nth-child(2) { transition-delay: 80ms; }
.wd-build.is-visible .wd-block:nth-child(3) { transition-delay: 160ms; }
.wd-build.is-visible .wd-block:nth-child(4) { transition-delay: 240ms; }
.wd-build.is-visible .wd-block:nth-child(5) { transition-delay: 320ms; }
.wd-build.is-visible .wd-block:nth-child(6) { transition-delay: 400ms; }
.wd-build.is-visible .wd-block:nth-child(7) { transition-delay: 480ms; }
.wd-build.is-visible .wd-block:nth-child(8) { transition-delay: 560ms; }
.wd-block--nav { height: 22px; }
.wd-block--hero {
  height: 74px;
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.16), rgba(255, 255, 255, 0.04));
}
.wd-block--media {
  height: 96px;
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.03));
}
.wd-block--row { display: flex; gap: 10px; background: none; }
.wd-block--row > div { flex: 1; height: 46px; border-radius: 5px; background: rgba(255, 255, 255, 0.055); }
.wd-block--text { height: 34px; }
.wd-block--foot { height: 26px; }

.wd-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.wd-specs li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
}
.wd-build.is-visible .wd-specs li { opacity: 1; transform: none; }
.wd-build.is-visible .wd-specs li:nth-child(2) { transition-delay: 70ms; }
.wd-build.is-visible .wd-specs li:nth-child(3) { transition-delay: 140ms; }
.wd-build.is-visible .wd-specs li:nth-child(4) { transition-delay: 210ms; }
.wd-build.is-visible .wd-specs li:nth-child(5) { transition-delay: 280ms; }
.wd-build.is-visible .wd-specs li:nth-child(6) { transition-delay: 350ms; }
.wd-specs__mark {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 0.1rem;
}
.wd-specs strong {
  display: block;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.wd-specs li > span:last-child { font-size: 0.88rem; color: var(--text-dim); line-height: 1.55; }

/* terminal build log */
.wd-term {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 46rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #080b12;
}
.wd-term__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.wd-term__bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.wd-term__bar em {
  margin-left: 0.6rem;
  font-style: normal;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--text-mute);
}
.wd-term__body {
  padding: clamp(1rem, 3vw, 1.6rem);
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.85;
}
.wd-term__body p {
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}
.wd-term.is-visible .wd-term__body p { opacity: 1; transform: none; }
.wd-term.is-visible .wd-term__body p:nth-child(1) { transition-delay: 60ms; }
.wd-term.is-visible .wd-term__body p:nth-child(2) { transition-delay: 150ms; }
.wd-term.is-visible .wd-term__body p:nth-child(3) { transition-delay: 240ms; }
.wd-term.is-visible .wd-term__body p:nth-child(4) { transition-delay: 330ms; }
.wd-term.is-visible .wd-term__body p:nth-child(5) { transition-delay: 420ms; }
.wd-term.is-visible .wd-term__body p:nth-child(6) { transition-delay: 510ms; }
.wd-term.is-visible .wd-term__body p:nth-child(7) { transition-delay: 600ms; }
.wd-term.is-visible .wd-term__body p:nth-child(8) { transition-delay: 690ms; }
.wd-term.is-visible .wd-term__body p:nth-child(9) { transition-delay: 780ms; }
.wd-term.is-visible .wd-term__body p:nth-child(10) { transition-delay: 870ms; }
.wd-term__p { color: var(--accent); font-weight: 700; margin-right: 0.5rem; }
.wd-term__ok { color: var(--accent-2); margin-right: 0.5rem; }
.wd-term__cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 5px;
  vertical-align: -0.15em;
  background: var(--accent);
}
.wd-term.is-visible .wd-term__cursor { animation: wd-blink 1.1s steps(1) infinite 1s; }
@keyframes wd-blink { 50% { opacity: 0; } }

/* code-panel quote */
.wd-quote {
  max-width: 44rem;
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-bg);
}
.wd-quote__bar {
  display: flex;
  gap: 7px;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.wd-quote__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.wd-quote__body { padding: clamp(1.4rem, 4vw, 2.4rem); }
.wd-quote__c {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--accent);
  opacity: 0.85;
}
.wd-quote blockquote { margin: 0.8rem 0; }
.wd-quote blockquote p {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.4rem);
  line-height: 1.45;
  color: var(--text);
}
.wd-quote figcaption { color: var(--text-mute); }

@media (prefers-reduced-motion: reduce) {
  .wd-block,
  .wd-specs li,
  .wd-term__body p { transition: opacity 200ms linear; transform: none; }
  .wd-window__scroll { animation: none; }
  .wd-term__cursor { animation: none; }
}

/* --- Service detail: Website Design -----------------------------------
   Bespoke body for services/website-design.html — a design-system board,
   a before/after comparison with a slim process rail, and a quote on an
   accent wash.                                                          */

/* first-section illustration: a design board — type, palette, layout grid */
.wds-fig { display: flex; flex-direction: column; gap: 1rem; }
.wds-fig__type { display: flex; align-items: baseline; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.wds-fig__aa {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
}
.svcx-figure.is-visible .wds-fig__aa {
  transition: opacity 500ms var(--ease-out) 150ms, transform 500ms var(--ease-out) 150ms;
  opacity: 1;
  transform: none;
}
.wds-fig__scale { display: flex; align-items: baseline; gap: 6px; }
.wds-fig__scale i { width: 8px; border-radius: 2px; background: var(--line-strong); }
.wds-fig__scale i:nth-child(1) { height: 10px; }
.wds-fig__scale i:nth-child(2) { height: 18px; }
.wds-fig__scale i:nth-child(3) { height: 28px; background: rgba(var(--accent-rgb), 0.5); }
.wds-fig__swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.wds-fig__swatches span { height: 30px; border-radius: 7px; border: 1px solid var(--line); opacity: 0; transform: scale(0.6); }
.wds-fig__swatches span:nth-child(1) { background: var(--accent); }
.wds-fig__swatches span:nth-child(2) { background: rgba(var(--accent-rgb), 0.55); }
.wds-fig__swatches span:nth-child(3) { background: rgba(var(--accent-rgb), 0.28); }
.wds-fig__swatches span:nth-child(4) { background: rgba(255, 255, 255, 0.14); }
.wds-fig__swatches span:nth-child(5) { background: rgba(255, 255, 255, 0.06); }
.svcx-figure.is-visible .wds-fig__swatches span {
  animation: wds-pop 380ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 70ms + 300ms);
}
@keyframes wds-pop { 60% { transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
.wds-fig__canvas {
  position: relative;
  height: 120px;
  display: flex;
  gap: 10%;
  padding: 0 8%;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.wds-fig__col {
  flex: 1;
  align-self: stretch;
  border-inline: 1px dashed rgba(var(--accent-rgb), 0.2);
  background: linear-gradient(rgba(var(--accent-rgb), 0.06), transparent);
  opacity: 0;
}
.svcx-figure.is-visible .wds-fig__col {
  transition: opacity 400ms var(--ease-out);
  transition-delay: calc(var(--i) * 90ms + 500ms);
  opacity: 1;
}
.wds-fig__shape {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 26px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.3), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transform: translateY(10px);
}
.svcx-figure.is-visible .wds-fig__shape {
  transition: opacity 500ms var(--ease-out) 900ms, transform 500ms var(--ease-out) 900ms;
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .wds-fig__aa,
  .wds-fig__swatches span,
  .wds-fig__col,
  .wds-fig__shape { animation: none; transition: none; opacity: 1; transform: none; }
}

.wds-board {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.9rem, 2vw, 1.35rem);
}
.wds-panel {
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-bg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 680ms var(--ease-out), transform 680ms var(--ease-out);
}
.wds-board.is-visible .wds-panel { opacity: 1; transform: none; }
.wds-board.is-visible .wds-panel:nth-child(2) { transition-delay: 90ms; }
.wds-board.is-visible .wds-panel:nth-child(3) { transition-delay: 180ms; }
.wds-board.is-visible .wds-panel:nth-child(4) { transition-delay: 270ms; }
.wds-panel__label {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.wds-type {
  display: inline-block;
  margin-right: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 0.9;
  color: var(--text);
}
.wds-type--xl { font-size: 2.6rem; }
.wds-type--lg { font-size: 1.8rem; color: var(--text-dim); }
.wds-type--md { font-size: 1.2rem; color: var(--text-dim); }
.wds-type--sm { font-size: 0.85rem; color: var(--text-mute); }
.wds-swatches { display: flex; gap: 0.5rem; }
.wds-swatches span {
  width: 100%;
  max-width: 46px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--c);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.wds-comp { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.wds-comp__btn {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.wds-comp__tag {
  font-family: var(--font-head);
  font-size: 0.64rem;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.wds-comp__input {
  width: 108px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
}
.wds-comp__card {
  width: 54px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}
.wds-cols { display: flex; gap: 6px; height: 58px; }
.wds-cols i {
  flex: 1;
  border-radius: 3px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}
@media (max-width: 760px) {
  .wds-board { grid-template-columns: 1fr; }
}

.wds-notes {
  list-style: none;
  margin: clamp(1.1rem, 2.5vw, 1.6rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.85rem, 2vw, 1.5rem);
}
.wds-notes li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.wds-notes strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 500;
}
@media (max-width: 680px) {
  .wds-notes { grid-template-columns: 1fr; gap: 0; }
  .wds-notes li { padding-block: 1rem; }
  .wds-notes li + li { border-top: 0; }
}

/* before / after */
.wds-compare {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
}
.wds-frame {
  position: relative;
  overflow: hidden;
  padding: clamp(0.9rem, 2vw, 1.3rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0a0e16;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.wds-compare.is-visible .wds-frame { opacity: 1; transform: none; }
.wds-compare.is-visible .wds-frame--after { transition-delay: 170ms; }
.wds-frame--after {
  border-color: var(--accent-line);
  box-shadow: 0 0 44px -20px var(--accent-glow);
}
.wds-frame__tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  font-family: var(--font-head);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.wds-frame--before .wds-frame__tag { color: var(--text-mute); border: 1px solid var(--line-strong); }
.wds-frame--after .wds-frame__tag { color: var(--accent-ink); background: var(--accent); }
.wds-mock { display: flex; flex-direction: column; gap: 8px; padding-top: 1.7rem; }
.wds-mock--old > i {
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
}
.wds-mock--old > i:nth-child(4) { width: 72%; }
.wds-mock--old > i:nth-child(7) { width: 46%; }
.wds-mock__btn {
  width: 58px;
  height: 15px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}
.wds-mock--new .wds-mock__hero {
  height: 46px;
  border-radius: 6px;
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.24), rgba(255, 255, 255, 0.05));
}
.wds-mock--new .wds-mock__h {
  height: 12px;
  width: 55%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}
.wds-mock--new > i {
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}
.wds-mock--new > i.short { width: 42%; }
.wds-mock__cta {
  width: 86px;
  height: 22px;
  margin-top: 2px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  animation: wds-cta 2.8s var(--ease-out) infinite;
}
@keyframes wds-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
  50% { box-shadow: 0 0 18px 0 var(--accent-glow); }
}
.wds-mock__row { display: flex; gap: 8px; margin-top: 4px; }
.wds-mock__row b {
  flex: 1;
  height: 30px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
@media (max-width: 640px) {
  .wds-compare { grid-template-columns: 1fr; }
}

.wds-flow {
  position: relative;
  list-style: none;
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.wds-flow::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 5px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1100ms var(--ease-out) 120ms;
}
.wds-flow.is-visible::before { transform: scaleX(1); }
.wds-flow li {
  position: relative;
  padding-top: 1.5rem;
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 520ms var(--ease-out);
}
.wds-flow.is-visible li { opacity: 1; }
.wds-flow.is-visible li:nth-child(2) { transition-delay: 220ms; }
.wds-flow.is-visible li:nth-child(3) { transition-delay: 420ms; }
.wds-flow.is-visible li:nth-child(4) { transition-delay: 620ms; }
.wds-flow.is-visible li:nth-child(5) { transition-delay: 820ms; }
.wds-flow__dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
@media (max-width: 620px) {
  .wds-flow { grid-template-columns: 1fr; gap: 0.7rem; }
  .wds-flow::before { display: none; }
  .wds-flow li { padding: 0 0 0 1.4rem; text-align: left; }
  .wds-flow__dot { top: 0.2em; left: 0; transform: none; }
}

/* quote on accent wash */
.wds-quote {
  max-width: 46rem;
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.13), rgba(var(--accent-rgb), 0.02) 55%),
    var(--glass-bg);
}
.wds-quote p {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.2rem, 1rem + 1.1vw, 1.7rem);
  line-height: 1.4;
  color: var(--text);
}
.wds-quote cite {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1.5rem;
  font-style: normal;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--text);
}
.wds-quote cite span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.wds-quote cite::after {
  content: "";
  width: 32px;
  height: 2px;
  margin-top: 0.55rem;
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .wds-panel,
  .wds-frame,
  .wds-flow li { transition: opacity 200ms linear; transform: none; }
  .wds-flow::before { transition: none; transform: scaleX(1); }
  .wds-mock__cta { animation: none; }
}

/* --- Service detail: Mobile App Development --------------------------
   Bespoke body for services/mobile-app-development.html — a phone
   showcase with a looping push notification, a version-number timeline,
   and a stat-led quote.                                                 */

/* first-section illustration: an app screen with a looping push notification */
.mad-fig { position: relative; display: flex; justify-content: center; padding: 1.4rem 0; }
/* chat bubbles popping up around the phone, as if a conversation is going */
.mad-fig__bubble {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  opacity: 0;
  transform: scale(0.6) translateY(6px);
  transform-origin: bottom;
}
.mad-fig__bubble i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}
.mad-fig__bubble i:first-child { width: 46px; }
.mad-fig__bubble i:last-child { width: 30px; }
.mad-fig__bubble.is-out {
  border-color: var(--accent-line);
  background: rgba(var(--accent-rgb), 0.12);
}
.mad-fig__bubble.is-out i { background: rgba(var(--accent-rgb), 0.55); }
.mad-fig__bubble--l1 { left: 2%; top: 16%; border-bottom-left-radius: 3px; }
.mad-fig__bubble--l2 { left: 8%; top: 54%; border-bottom-left-radius: 3px; }
.mad-fig__bubble--r1 { right: 2%; top: 32%; border-bottom-right-radius: 3px; }
.mad-fig__bubble--r2 { right: 7%; top: 68%; border-bottom-right-radius: 3px; }
.svcx-figure.is-visible .mad-fig__bubble {
  animation: mad-bubble 6.5s var(--ease-out) infinite;
  animation-delay: calc(var(--i) * 0.8s + 0.6s);
}
@keyframes mad-bubble {
  0% { opacity: 0; transform: scale(0.6) translateY(6px); }
  7% { opacity: 1; transform: scale(1) translateY(0); }
  11% { transform: scale(1.05) translateY(0); }
  15% { transform: scale(1) translateY(0); }
  56% { opacity: 1; transform: scale(1) translateY(0); }
  66%, 100% { opacity: 0; transform: scale(0.62) translateY(-4px); }
}
@media (max-width: 640px) {
  .mad-fig__bubble { display: none; }
}
.mad-fig__phone {
  position: relative;
  width: 132px;
  padding: 16px 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: #0a0e16;
}
.mad-fig__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: 3px;
  background: var(--line-strong);
}
.mad-fig__screen {
  position: relative;
  overflow: hidden;
  min-height: 228px;
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.mad-fig__push {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid var(--accent-line);
  background: rgba(var(--accent-rgb), 0.1);
  opacity: 0;
  transform: translateY(-16px);
}
.svcx-figure.is-visible .mad-fig__push { animation: mad-push 5s var(--ease-out) 1s infinite; }
@keyframes mad-push {
  0% { opacity: 0; transform: translateY(-16px); }
  10%, 60% { opacity: 1; transform: translateY(0); }
  72%, 100% { opacity: 0; transform: translateY(-16px); }
}
.mad-fig__push-ico {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 5px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.16);
}
.mad-fig__push-ico .ico { width: 11px; height: 11px; }
.mad-fig__push-lines { display: grid; gap: 4px; flex: 1; }
.mad-fig__push-lines i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.mad-fig__push-lines i:last-child { width: 60%; }
.mad-fig__hero {
  height: 52px;
  border-radius: 7px;
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.2), rgba(255, 255, 255, 0.04));
  opacity: 0;
  transform: translateY(8px);
}
.svcx-figure.is-visible .mad-fig__hero {
  transition: opacity 460ms var(--ease-out) 300ms, transform 460ms var(--ease-out) 300ms;
  opacity: 1;
  transform: none;
}
.mad-fig__list { display: grid; gap: 6px; }
.mad-fig__list i { height: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); opacity: 0; transform: translateX(-6px); }
.svcx-figure.is-visible .mad-fig__list i {
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
  transition-delay: calc(var(--i) * 90ms + 450ms);
  opacity: 1;
  transform: none;
}
.mad-fig__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 9px 4px 2px; }
.mad-fig__tabs span { height: 6px; border-radius: 3px; background: var(--line-strong); }
.mad-fig__tabs span:nth-child(1) { background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .mad-fig__push,
  .mad-fig__bubble { animation: none; opacity: 1; transform: none; }
  .mad-fig__hero,
  .mad-fig__list i { transition: none; opacity: 1; transform: none; }
}

.mad-showcase {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) 1.25fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 880px) {
  .mad-showcase { grid-template-columns: 1fr; justify-items: center; }
  .mad-side { width: 100%; max-width: 34rem; }
}

.mad-phone {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 224px;
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 30px;
  border: 1px solid var(--line-strong);
  background: #0a0e16;
  box-shadow: 0 34px 70px -42px rgba(0, 0, 0, 0.9), inset 0 0 0 2px rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
}
.mad-showcase.is-visible .mad-phone { opacity: 1; transform: none; }
.mad-phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 15px;
  border-radius: 0 0 11px 11px;
  background: var(--line-strong);
  z-index: 3;
}
.mad-phone__screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow: hidden;
  padding: 26px 12px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, #0c1320, #0a0e16);
}
.mad-phone__bar { height: 8px; width: 42%; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.mad-phone__hero {
  height: 62px;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.24), rgba(255, 255, 255, 0.05));
}
.mad-phone__row { height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.mad-phone__tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.mad-phone__tabs i { width: 16px; height: 16px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); }
.mad-phone__tabs i:first-child { background: var(--accent); }
.mad-phone__push {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 30px;
  z-index: 4;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(20, 24, 34, 0.97);
  border: 1px solid var(--accent-line);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.85);
  transform: translateY(-150%);
  animation: mad-push 6s var(--ease-out) infinite;
}
.mad-phone__push > span:first-child {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
}
.mad-phone__push b { display: block; font-family: var(--font-head); font-size: 0.6rem; color: var(--text); }
.mad-phone__push em { font-style: normal; font-size: 0.56rem; color: var(--text-dim); }
@keyframes mad-push {
  0% { transform: translateY(-150%); }
  9%, 40% { transform: translateY(0); }
  50%, 100% { transform: translateY(-150%); }
}

.mad-side { display: flex; flex-direction: column; gap: clamp(1rem, 2.5vw, 1.5rem); }
.mad-stores { display: flex; gap: 0.75rem; }
.mad-store {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
}
.mad-store span { display: block; font-family: var(--font-head); font-size: 0.68rem; color: var(--text); }
.mad-store b { font-family: var(--font-head); font-size: 0.95rem; color: var(--accent); }
.mad-store em { display: block; font-style: normal; font-size: 0.64rem; color: var(--text-mute); }

.mad-scope { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.mad-scope li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.mad-scope li:last-child { padding-bottom: 0; border-bottom: 0; }
.mad-scope__badge {
  font-family: var(--font-head);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  white-space: nowrap;
}

/* version timeline */
.mad-versions {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 46rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: clamp(1.1rem, 3vw, 1.75rem);
}
.mad-versions li {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 1rem;
  align-items: start;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.mad-versions.is-visible li { opacity: 1; transform: none; }
.mad-versions.is-visible li:nth-child(2) { transition-delay: 110ms; }
.mad-versions.is-visible li:nth-child(3) { transition-delay: 220ms; }
.mad-versions.is-visible li:nth-child(4) { transition-delay: 330ms; }
.mad-versions.is-visible li:nth-child(5) { transition-delay: 440ms; }
.mad-versions__tag {
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 0.12rem;
}
.mad-versions li > div {
  padding-left: 1.4rem;
  border-left: 1px solid var(--line-strong);
}
.mad-versions__now > div { border-left-color: var(--accent); }
.mad-versions li h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.mad-versions li p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.55; }
.mad-versions__now .mad-versions__tag::after {
  content: " \25CF";
  color: var(--accent);
  animation: mad-blink 1.7s steps(1, end) infinite;
}
@keyframes mad-blink { 50% { opacity: 0; } }
@media (max-width: 520px) {
  .mad-versions li { grid-template-columns: 1fr; gap: 0.35rem; }
  .mad-versions li > div { padding-left: 1rem; }
}

/* version timeline paired with an app-store "update available" card */
.mad-process {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.mad-process .mad-versions { margin-top: 0; max-width: none; }
@media (max-width: 900px) {
  .mad-process { grid-template-columns: 1fr; gap: 2.25rem; }
  .mad-process__art { max-width: 300px; margin: 0 auto; }
}
.mad-update {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-bg);
}
.mad-update::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
}
.mad-process__art.is-visible .mad-update::before { animation: mad-ship-sweep 4.6s var(--ease-out) 1.4s infinite; }
@keyframes mad-ship-sweep {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 1; }
  34%, 100% { transform: translateX(360%); opacity: 0; }
}
.mad-update__head { display: flex; align-items: center; gap: 0.7rem; }
.mad-update__icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
}
.mad-update__dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-1);
  opacity: 0;
  transform: scale(0);
}
.mad-process__art.is-visible .mad-update__dot { animation: mad-badge 4.6s var(--ease-out) 1.4s infinite; }
@keyframes mad-badge {
  0%, 6% { opacity: 0; transform: scale(0); }
  14% { opacity: 1; transform: scale(1.25); }
  20% { transform: scale(1); }
  62% { opacity: 1; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(0); }
}
.mad-update__name { display: grid; gap: 5px; flex: 1; }
.mad-update__name i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
.mad-update__name i:first-child { width: 60%; }
.mad-update__name i:last-child { width: 36%; background: rgba(255, 255, 255, 0.08); }
.mad-update__ver {
  flex: none;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  background: rgba(var(--accent-rgb), 0.06);
}
.mad-update__whatsnew {
  margin: 1rem 0 0.6rem;
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.mad-update__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mad-update__notes li {
  height: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateX(-6px);
}
.mad-update__notes li:nth-child(1) { width: 92%; }
.mad-update__notes li:nth-child(2) { width: 78%; }
.mad-update__notes li:nth-child(3) { width: 85%; }
.mad-process__art.is-visible .mad-update__notes li {
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
  transition-delay: calc(var(--i) * 100ms + 400ms);
  opacity: 1;
  transform: none;
}
.mad-update__btn {
  display: block;
  margin-top: 1rem;
  padding: 0.5rem;
  text-align: center;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--accent-ink);
  background: var(--accent);
}
.mad-process__art.is-visible .mad-update__btn { animation: mad-update-btn 4.6s var(--ease-out) 1.4s infinite; }
@keyframes mad-update-btn {
  0%, 20%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); transform: scale(1); }
  30% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); transform: scale(1.03); }
  40% { transform: scale(1); }
}
.mad-update__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--text-mute);
}
.mad-update__stars { color: var(--accent); font-family: var(--font-head); font-weight: 600; }
.mad-update__ship { display: inline-flex; align-items: center; gap: 0.4rem; }
.mad-update__ship > span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.mad-process__art.is-visible .mad-update__ship > span { animation: mad-ship-dot 1.8s ease-in-out infinite; }
@keyframes mad-ship-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mad-update::before,
  .mad-update__dot,
  .mad-update__btn,
  .mad-update__ship > span { animation: none; }
  .mad-update__dot { opacity: 1; transform: scale(1); }
  .mad-update__notes li { transition: none; opacity: 1; transform: none; }
}

/* stat-led quote */
.mad-quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: center;
  max-width: 52rem;
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-bg);
}
.mad-quote__stat { border-left: 2px solid var(--accent); padding-left: clamp(1rem, 3vw, 1.5rem); }
.mad-quote__stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 1.6rem + 3vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.mad-quote__stat span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.mad-quote__stat em {
  display: block;
  margin-top: 0.7rem;
  max-width: 12rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-mute);
}
.mad-quote blockquote { margin: 0; }
.mad-quote blockquote p {
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-dim);
}
.mad-quote figcaption { margin-top: 1rem; font-family: var(--font-head); }
.mad-quote cite { font-style: normal; font-weight: 600; color: var(--text); }
.mad-quote figcaption span {
  margin-left: 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
@media (max-width: 620px) {
  .mad-quote { grid-template-columns: 1fr; }
  .mad-quote__stat { border-left: 0; border-top: 2px solid var(--accent); padding-left: 0; padding-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mad-phone,
  .mad-versions li { transition: opacity 200ms linear; transform: none; }
  .mad-phone__push { animation: none; transform: translateY(0); }
  .mad-versions__now .mad-versions__tag::after { animation: none; }
}

/* --- Service detail: Social Media Marketing -------------------------
   Bespoke body for services/social-media-marketing.html — an A/B
   creative-test board, a reach-to-revenue funnel, and a quote framed
   as a social post.                                                    */

/* first-section illustration: a sponsored social post with live engagement */
.smm-fig {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
}
.smm-fig__head { display: flex; align-items: center; gap: 0.55rem; padding: 0.75rem 0.85rem; }
.smm-fig__avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; background: linear-gradient(150deg, var(--accent), var(--accent-2)); }
.smm-fig__id { display: grid; gap: 5px; flex: 1; }
.smm-fig__id i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.smm-fig__id i:first-child { width: 45%; }
.smm-fig__id i:last-child { width: 28%; background: rgba(255, 255, 255, 0.08); }
.smm-fig__badge {
  flex: none;
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.smm-fig__media {
  height: 118px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(255, 255, 255, 0.03));
  opacity: 0;
}
.svcx-figure.is-visible .smm-fig__media { transition: opacity 550ms var(--ease-out) 200ms; opacity: 1; }
.smm-fig__actions { display: flex; gap: 1.1rem; padding: 0.7rem 0.85rem 0.85rem; }
.smm-fig__act { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-head); font-size: 0.78rem; color: var(--text-mute); }
.smm-fig__act .ico { width: 15px; height: 15px; }
.smm-fig__act--like { color: var(--accent); }
.smm-fig__act--like .ico { fill: currentColor; stroke: none; transform-origin: center; }
.svcx-figure.is-visible .smm-fig__act--like .ico { animation: smm-like 4.5s var(--ease-out) 1.2s infinite; }
@keyframes smm-like {
  0%, 40%, 100% { transform: scale(1); }
  12% { transform: scale(1.4); }
  24% { transform: scale(0.92); }
  30% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .smm-fig__media { transition: none; opacity: 1; }
  .smm-fig__act--like .ico { animation: none; }
}

.smm-ab {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.85rem, 2vw, 1.35rem);
}
.smm-var {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-bg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 660ms var(--ease-out), transform 660ms var(--ease-out);
}
.smm-ab.is-visible .smm-var { opacity: 1; transform: none; }
.smm-ab.is-visible .smm-var:nth-child(2) { transition-delay: 100ms; }
.smm-ab.is-visible .smm-var:nth-child(3) { transition-delay: 200ms; }
/* the winning variant gets a quiet accent cue, not a whole different palette */
.smm-var--win { border-color: var(--accent-line); }
.smm-var__id {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-mute);
}
.smm-var__thumb {
  height: 84px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}
.smm-var--win .smm-var__thumb {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.02));
}
.smm-var__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
}
.smm-var__row em { font-style: normal; color: var(--text-mute); }
.smm-var__row b { font-family: var(--font-head); color: var(--text); }
.smm-var__tag {
  align-self: flex-start;
  margin-top: 0.2rem;
  font-family: var(--font-head);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
}
.smm-var--win .smm-var__tag {
  color: var(--accent);
  border-color: var(--accent-line);
  background: rgba(var(--accent-rgb), 0.06);
}
@media (max-width: 640px) { .smm-ab { grid-template-columns: 1fr; } }

.smm-scope {
  list-style: none;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.85rem, 2vw, 1.4rem) clamp(1.5rem, 3vw, 2.5rem);
}
.smm-scope li {
  padding-left: 1rem;
  border-left: 2px solid var(--accent-line);
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.smm-scope strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 500;
}
@media (max-width: 720px) { .smm-scope { grid-template-columns: 1fr; } }

/* how the spend performs — a compact campaign readout panel */
.smm-flow {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 40rem;
  padding: clamp(1.2rem, 3vw, 1.75rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-bg);
}
.smm-flow__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.smm-flow__title {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.smm-flow__spend { font-family: var(--font-head); font-size: 0.82rem; color: var(--text); }
.smm-flow__rows { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.smm-flow__row {
  display: grid;
  grid-template-columns: 6.25rem 4.25rem 1fr 2.75rem;
  align-items: center;
  gap: 0.7rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 440ms var(--ease-out), transform 440ms var(--ease-out);
  transition-delay: calc(var(--i) * 110ms + 150ms);
}
.smm-flow.is-visible .smm-flow__row { opacity: 1; transform: none; }
.smm-flow__label { font-size: 0.82rem; color: var(--text-dim); }
.smm-flow__val { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--text); }
.smm-flow__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.smm-flow__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 800ms var(--ease-out);
  transition-delay: calc(var(--i) * 110ms + 300ms);
}
.smm-flow.is-visible .smm-flow__fill { width: var(--w); }
.smm-flow__row--out .smm-flow__fill { background: var(--accent); }
.smm-flow__conv {
  justify-self: end;
  font-family: var(--font-head);
  font-size: 0.72rem;
  color: var(--accent);
}
.smm-flow__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.smm-flow__foot b {
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin-right: 0.15rem;
}
@media (max-width: 560px) {
  .smm-flow__row { grid-template-columns: 1fr auto; }
  .smm-flow__val { grid-column: 1; grid-row: 2; }
  .smm-flow__track { grid-column: 1 / -1; grid-row: 3; }
  .smm-flow__conv { grid-row: 1; }
}

/* quote framed as a social post */
.smm-quote {
  max-width: 40rem;
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-bg);
}
.smm-quote > header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.smm-quote__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--accent-line);
}
.smm-quote__handle { display: flex; flex-direction: column; gap: 0.1rem; }
.smm-quote__handle strong { font-family: var(--font-head); font-weight: 600; color: var(--text); }
.smm-quote__handle span { font-size: 0.78rem; color: var(--text-mute); }
.smm-quote blockquote { margin: 0; }
.smm-quote blockquote p {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--text);
}
.smm-quote__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-mute);
}
.smm-quote__meta i { font-style: normal; color: var(--accent); margin-right: 0.3rem; }

@media (prefers-reduced-motion: reduce) {
  .smm-var { transition: opacity 200ms linear; transform: none; }
  .smm-flow__row { transition: none; opacity: 1; transform: none; }
  .smm-flow__fill { transition: width 250ms linear; }
}

/* --- Service detail: Business Consulting --------------------------------
   Bespoke body for services/business-consulting.html — an impact/effort
   priority matrix, a 12-month roadmap gantt, and a quote with a
   highlighted key phrase.                                               */

/* first-section illustration: a growth board — KPI, rising bars, milestones */
.bc-fig { display: flex; flex-direction: column; gap: 1rem; }
.bc-fig__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.bc-fig__kpi { display: flex; flex-direction: column; gap: 0.2rem; }
.bc-fig__kpi strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.bc-fig__kpi span { font-size: 0.8rem; color: var(--text-mute); }
.bc-fig__tag {
  flex: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(var(--accent-rgb), 0.06);
}
.bc-fig__chart {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  align-items: end;
  height: 120px;
}
.bc-fig__chart li { height: 100%; display: flex; align-items: flex-end; }
.bc-fig__bar {
  width: 100%;
  height: 0;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), 0.25));
}
.bc-fig__chart li:not(:last-child) .bc-fig__bar {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.5), rgba(var(--accent-rgb), 0.15));
}
.svcx-figure.is-visible .bc-fig__bar {
  transition: height 700ms var(--ease-out);
  transition-delay: calc(var(--i) * 100ms + 250ms);
  height: var(--h);
}
.bc-fig__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.bc-fig__steps span { height: 5px; border-radius: 3px; background: var(--line-strong); opacity: 0; }
.svcx-figure.is-visible .bc-fig__steps span {
  transition: opacity 400ms var(--ease-out), background-color 400ms var(--ease-out);
  transition-delay: calc(var(--i) * 120ms + 800ms);
  opacity: 1;
  background: rgba(var(--accent-rgb), 0.6);
}
@media (prefers-reduced-motion: reduce) {
  .svcx-figure.is-visible .bc-fig__bar { transition: none; }
  .bc-fig__steps span { transition: none; opacity: 1; background: rgba(var(--accent-rgb), 0.6); }
}

.bc-matrix {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 820px) { .bc-matrix { grid-template-columns: 1fr; } }
.bc-matrix__axes {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.bc-matrix__frame {
  position: relative;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-bg);
}
.bc-matrix__frame::before,
.bc-matrix__frame::after {
  content: "";
  position: absolute;
  background: var(--line);
}
.bc-matrix__frame::before { left: 8%; right: 8%; top: 50%; height: 1px; }
.bc-matrix__frame::after { top: 8%; bottom: 8%; left: 50%; width: 1px; }
.bc-matrix__q {
  position: absolute;
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.bc-matrix__q--tl { top: 0.75rem; left: 0.9rem; color: var(--accent); }
.bc-matrix__q--tr { top: 0.75rem; right: 0.9rem; }
.bc-matrix__q--bl { bottom: 0.75rem; left: 0.9rem; }
.bc-matrix__q--br { bottom: 0.75rem; right: 0.9rem; }
.bc-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  margin: -6px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.4);
  border: 1px solid var(--accent-line);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.bc-matrix.is-visible .bc-dot { opacity: 1; transform: none; }
.bc-matrix.is-visible .bc-dot:nth-of-type(2) { transition-delay: 90ms; }
.bc-matrix.is-visible .bc-dot:nth-of-type(3) { transition-delay: 170ms; }
.bc-matrix.is-visible .bc-dot:nth-of-type(4) { transition-delay: 250ms; }
.bc-matrix.is-visible .bc-dot:nth-of-type(5) { transition-delay: 330ms; }
.bc-matrix.is-visible .bc-dot:nth-of-type(6) { transition-delay: 410ms; }
.bc-dot--key {
  width: 18px;
  height: 18px;
  margin: -9px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.13), 0 0 18px 0 var(--accent-glow);
}
.bc-matrix__side > p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.65; }
.bc-matrix__side ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.bc-matrix__side li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--text-dim);
}
.bc-matrix__side li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--accent);
}

/* 12-month roadmap gantt */
.bc-plan {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 48rem;
  display: grid;
  gap: 0.7rem;
}
.bc-plan__head,
.bc-plan__row {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 1rem;
  align-items: center;
}
.bc-plan__head {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.bc-plan__head > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.bc-plan__name { font-size: 0.86rem; color: var(--text-dim); }
.bc-plan__track {
  position: relative;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(25% - 1px),
    var(--line) calc(25% - 1px),
    var(--line) 25%
  );
}
.bc-plan__bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: calc(var(--start) / 4 * 100%);
  width: calc(var(--span) / 4 * 100%);
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 800ms var(--ease-out);
}
.bc-plan.is-visible .bc-plan__bar { transform: scaleX(1); }
.bc-plan.is-visible .bc-plan__row:nth-child(3) .bc-plan__bar { transition-delay: 120ms; }
.bc-plan.is-visible .bc-plan__row:nth-child(4) .bc-plan__bar { transition-delay: 240ms; }
.bc-plan.is-visible .bc-plan__row:nth-child(5) .bc-plan__bar { transition-delay: 360ms; }
.bc-plan.is-visible .bc-plan__row:nth-child(6) .bc-plan__bar { transition-delay: 480ms; }
.bc-plan__bar--dotted { background: none; border: 1px dashed var(--accent-line); }
@media (max-width: 620px) {
  .bc-plan__head { display: none; }
  .bc-plan__row { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* quote with a highlighted phrase */
.bc-quote {
  max-width: 44rem;
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  text-align: center;
}
.bc-quote p {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.3rem, 1rem + 1.8vw, 2rem);
  line-height: 1.45;
  color: var(--text);
}
.bc-quote mark {
  color: inherit;
  padding: 0 0.12em;
  background: linear-gradient(180deg, transparent 58%, rgba(var(--accent-rgb), 0.32) 58%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.bc-quote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--text);
}
.bc-quote cite span {
  margin-left: 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .bc-dot,
  .bc-plan__bar { transition: opacity 200ms linear; transform: none; }
}

/* --- Legal pages (privacy policy, terms) — plain long-form prose ------- */
.legal {
  max-width: 46rem;
  margin-inline: auto;
}
.legal > * + * { margin-top: 1.1rem; }
.legal__lead {
  font-size: 1.05rem;
  color: var(--text);
}
.legal p,
.legal ul:not(.contact-methods) li {
  color: var(--text-dim);
  line-height: 1.75;
}
.legal h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  color: var(--text);
}
.legal h2 + * { margin-top: 0.8rem; }
.legal ul:not(.contact-methods) {
  margin-left: 0;
  padding-left: 1.3rem;
  list-style: disc;
  display: grid;
  gap: 0.65rem;
}
.legal ul:not(.contact-methods) li { padding-left: 0.25rem; }
.legal ul:not(.contact-methods) li::marker { color: var(--accent); }
.legal .contact-methods { margin-top: 1.75rem; }
.legal a:not(.contact-method) {
  color: var(--accent);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
.legal a:not(.contact-method):hover { color: var(--text); }

/* --- Custom cursor -------------------------------------------------------- */
/* A trailing glow that replaces the plain arrow on fine-pointer devices.
   Native cursor is only hidden once JS confirms it can drive this (html.has-cursor),
   so a script failure leaves the normal cursor intact. */
.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
  }
  .cursor__dot,
  .cursor__ring {
    position: absolute;
    top: 0; left: 0;
    border-radius: 50%;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
    mix-blend-mode: screen;
  }
  .cursor__dot {
    width: 6px; height: 6px;
    background: var(--accent);
    box-shadow: 0 0 10px 2px var(--accent-glow);
  }
  .cursor__ring {
    width: 30px; height: 30px;
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    transition:
      width 0.3s var(--ease-out),
      height 0.3s var(--ease-out),
      border-color 0.3s var(--ease-out),
      background-color 0.3s var(--ease-out);
  }
  .cursor.is-interactive .cursor__ring {
    width: 52px; height: 52px;
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
  }
  .cursor.is-press .cursor__ring { width: 22px; height: 22px; }

  html.has-cursor * { cursor: none !important; }
  html.has-cursor input,
  html.has-cursor textarea,
  html.has-cursor select { cursor: text !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { display: none !important; }
}

/* --- Scroll reveal ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Stagger children within a grid/flex group */
.card.reveal:nth-child(2),
.local__item.reveal:nth-child(2),
.about__values.reveal { transition-delay: 80ms; }
.card.reveal:nth-child(3) { transition-delay: 160ms; }
.card.reveal:nth-child(4) { transition-delay: 60ms; }
.card.reveal:nth-child(5) { transition-delay: 120ms; }
.card.reveal:nth-child(6) { transition-delay: 180ms; }

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cosmos__glow { animation: none; }
  .orbit { animation: none; }
  .slide { opacity: 1; }
  .slide .quote > p,
  .slide .quote > footer { opacity: 1; transform: none; }
  .slider__dots button.is-active::after { display: none; }
}
