/* ==========================================================================
   style.css — ResultKey layout, components, typography
   --------------------------------------------------------------------------
   Colours live in theme.css. Nothing in this file contains a hex value except
   pure black/white used inside rgba() shadows and image placeholders.

   Mobile-first. Breakpoints: 480 / 768 / 1024 / 1280.
   ========================================================================== */

/* ==========================================================================
   1. Non-colour design tokens
   ========================================================================== */

:root {
  /* Type families. Google Fonts with a real fallback stack — if the webfont
     never arrives the page still sets in something close in metrics. */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, "Cascadia Mono", monospace;

  /* Fluid type scale — clamp(min, preferred, max)
     The display max is tuned to the hero's LEFT COLUMN width (~640px at
     1440px), not the full container, so "Turning strategy" stays on one line. */
  --fs-display: clamp(2.75rem, 1.7rem + 3.9vw, 4.5rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2.4vw, 3rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --fs-h4: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5rem;
  --sp-11: 6rem;
  --sp-12: 8rem;

  /* Vertical rhythm between full-width sections */
  --section-y: clamp(4rem, 2rem + 8vw, 8rem);

  /* Layout */
  --container: 1240px;
  --container-narrow: 820px;
  --gutter: clamp(1.25rem, 0.75rem + 2vw, 3rem);

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Elevation, tinted by the active theme via --shadow-color.
     Alphas are far lower than a dark UI would use: on white a shadow reads as
     dirt long before it reads as depth. */
  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 8%);
  --shadow-md:
    0 4px 10px -2px hsl(var(--shadow-color) / 10%),
    0 2px 4px -2px hsl(var(--shadow-color) / 7%);
  --shadow-lg:
    0 18px 36px -12px hsl(var(--shadow-color) / 16%),
    0 6px 14px -6px hsl(var(--shadow-color) / 10%);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 560ms;

  /* Header height, read by JS and by scroll-padding */
  --header-h: 72px;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 84px;
  }
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  min-height: 100svh;

  /* The gradient is a background-IMAGE; the solid colour underneath is the
     paint-before-CSS fallback and the value contrast was measured against.
     `fixed` keeps the gradient still while content scrolls, so the page reads
     as one lit surface rather than a repeating band per section. */
  background-color: var(--bg-solid);
  background-image: var(--bg-base);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;

  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Locks scroll behind the mobile panel without the page jumping */
body.is-locked {
  overflow: hidden;
}

/* ---- Ambient glow orbs --------------------------------------------------
   Two large, heavily blurred radials fixed behind the content. z-index -1
   paints them above body's background but below body's children, so no
   wrapper element is needed. They are the ONLY animated part of the
   background: animating the gradient itself on scroll causes repaint jank. */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

body::before {
  width: min(60vw, 760px);
  aspect-ratio: 1;
  top: -18vh;
  left: -12vw;
  background: var(--bg-glow-primary);
  animation: orb-drift-a 34s ease-in-out infinite alternate;
}

body::after {
  width: min(52vw, 640px);
  aspect-ratio: 1;
  bottom: -22vh;
  right: -14vw;
  background: var(--bg-glow-secondary);
  animation: orb-drift-b 42s ease-in-out infinite alternate;
}

@keyframes orb-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 8vh, 0) scale(1.12); }
}

@keyframes orb-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-7vw, -6vh, 0) scale(1); }
}

/* ---- Grain overlay ------------------------------------------------------
   Large gradients band into visible steps on real 8-bit monitors. A few
   percent of noise dithers those steps away. CSS gradients cannot generate
   noise, so this is an inline SVG turbulence filter as a data URI — no
   network request and no image file. */
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  /* Lower than the dark build: dark noise over white shows up far more
     readily, and past ~1.5% it reads as a dirty screen rather than as grain. */
  opacity: 0.014;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

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

img,
video {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--color-link-hover);
}

/* Single global focus treatment. Visible on every interactive element,
   and never removed — only replaced when a component needs a tighter ring. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--accent-600);
  color: var(--text-primary);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

/* Small uppercase label with a leading rule — the recurring section marker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-link);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--center::before {
  display: none;
}

/* Screen-reader-only, still focusable */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 600;
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--color-on-primary);
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.62);
}

.section--surface {
  background: var(--bg-surface);
}

/* Section heading block */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  max-width: 64ch;
}

.section-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-head__title {
  font-size: var(--fs-h2);
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: var(--sp-9);
  }

  /* Title left, supporting copy right — used where the pair earns the width */
  .section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--sp-6) var(--sp-8);
    align-items: end;
    max-width: none;
  }

  .section-head--split .eyebrow {
    grid-column: 1 / -1;
  }
}

/* Thin brand rule used to close or open a band */
.rule {
  height: 1px;
  border: 0;
  background: var(--border);
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
  --btn-py: 0.8125rem;
  --btn-px: 1.5rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

/* Primary — the CTA fill. Uses the theme's designated legible step. */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 6px 20px -8px var(--glow);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
  box-shadow: 0 10px 28px -8px var(--glow);
}

/* Secondary — outlined, sits beside the primary */
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--color-link);
  background: var(--tint-weak);
}

.btn--lg {
  --btn-py: 1rem;
  --btn-px: 2rem;
  font-size: var(--fs-body);
}

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

/* Text link with a trailing arrow — the "read more" pattern */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-link);
}

.link-arrow .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease-out);
}

.link-arrow:hover .icon {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   6. Header and navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-solid) 82%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

/* Compressed state, toggled by JS past a scroll threshold */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg-solid) 94%, transparent);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
}

.site-header.is-scrolled .header-inner {
  height: calc(var(--header-h) - 10px);
}

/* ---- Logo ---- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  color: var(--text-primary);
}

.brand:hover {
  color: var(--text-primary);
}

/* Sized by height only, so the mark can never be distorted whatever its
   intrinsic aspect ratio. 32px on mobile, 40px from the tablet breakpoint up. */
.brand__mark {
  height: 32px;
  width: auto;
  transition: height var(--dur) var(--ease);
}

@media (min-width: 768px) {
  .brand__mark {
    height: 40px;
  }
}

.site-header.is-scrolled .brand__mark {
  height: 30px;
}

@media (min-width: 768px) {
  .site-header.is-scrolled .brand__mark {
    height: 34px;
  }
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand__tag {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Desktop navigation ---- */

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
  }
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease);
}

.nav__link:hover,
.nav__item:focus-within > .nav__link {
  color: var(--text-primary);
}

/* Active page marker — a short rule under the label */
.nav__link.is-active {
  color: var(--text-primary);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}

.nav__link .icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform var(--dur) var(--ease);
}

.nav__item:hover .nav__link .icon,
.nav__item:focus-within .nav__link .icon {
  transform: rotate(180deg);
}

/* ---- Dropdown ---- */

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  min-width: 300px;
  padding: var(--sp-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur);
}

.dropdown--wide {
  min-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
}

.nav__item:hover > .dropdown,
.nav__item:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__link {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.dropdown__link:hover {
  background: var(--tint-soft);
  color: var(--text-primary);
}

.dropdown__link .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-link);
}

.dropdown__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.dropdown__desc {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 2px;
}

.dropdown__footer {
  grid-column: 1 / -1;
  margin-top: var(--sp-2);
  padding: var(--sp-3);
  border-top: 1px solid var(--border);
}

/* ---- Header right cluster ---- */

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Phone number, desktop only */
.header-phone {
  display: none;
}

@media (min-width: 1280px) {
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    white-space: nowrap; /* keep "+252 614996628" on one line inside the pill */
    transition:
      border-color var(--dur-fast) var(--ease),
      background-color var(--dur-fast) var(--ease);
  }

  .header-phone:hover {
    color: var(--text-primary);
    border-color: var(--color-link);
    background: var(--tint-weak);
  }

  .header-phone .icon {
    width: 16px;
    height: 16px;
    color: var(--color-link);
  }
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
  }
}

/* ---- Theme switch ----
   Two dark identities, so the control is named by identity, not brightness. */

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.theme-switch__label {
  position: relative;
  z-index: 1;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  transition: color var(--dur) var(--ease);
  user-select: none;
}

.theme-switch__label.is-on {
  color: var(--color-on-primary);
}

/* The travelling pill */
.theme-switch__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: calc(50% - 3px);
  border-radius: var(--r-pill);
  background: var(--color-primary);
  transition:
    transform var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease);
}

[data-theme="plum"] .theme-switch__thumb {
  transform: translateX(0);
}

[data-theme="ember"] .theme-switch__thumb {
  transform: translateX(100%);
}

/* ---- Hamburger ---- */

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.menu-toggle:hover {
  border-color: var(--color-link);
  background: var(--tint-weak);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* ==========================================================================
   7. Mobile off-canvas panel
   ========================================================================== */

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  /* Scrim behind an open drawer. --shadow-color is a mid tone in the light
     theme, so the dim comes from an explicit dark ink rather than from it. */
  background: rgb(26 6 32 / 45%);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur);
}

.panel-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(400px, 88vw);
  height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-panel.is-open {
  transform: translateX(0);
}

.mobile-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.mobile-panel__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.mobile-panel__blurb {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-md);
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.mobile-nav__link:hover,
.mobile-nav__link.is-active {
  background: var(--tint-soft);
  color: var(--text-primary);
}

.mobile-nav__link.is-active {
  box-shadow: inset 2px 0 0 var(--color-primary);
}

/* Nested service list inside a <details> */
.mobile-sub {
  border-radius: var(--r-md);
  overflow: hidden;
}

.mobile-sub > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--r-md);
  list-style: none;
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.mobile-sub > summary::-webkit-details-marker {
  display: none;
}

.mobile-sub > summary:hover {
  background: var(--tint-soft);
  color: var(--text-primary);
}

.mobile-sub > summary .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.mobile-sub[open] > summary {
  color: var(--text-primary);
}

.mobile-sub[open] > summary .icon {
  transform: rotate(180deg);
}

.mobile-sub__list {
  display: flex;
  flex-direction: column;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
  margin-left: var(--sp-4);
  border-left: 1px solid var(--border);
}

.mobile-sub__list a {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  border-radius: var(--r-sm);
}

.mobile-sub__list a:hover {
  color: var(--color-link);
  background: var(--tint-weak);
}

/* Contact block at the foot of the panel */
.panel-contact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.panel-contact__row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.panel-contact__row .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-link);
}

.panel-contact__row a {
  color: var(--text-secondary);
}

.panel-contact__row a:hover {
  color: var(--color-link);
}

/* ==========================================================================
   8. Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(3rem, 1rem + 8vw, 7rem) clamp(3.5rem, 2rem + 7vw, 7rem);
  overflow: hidden;
}

/* Two soft brand glows, offset so the composition is asymmetric */
/* The two decorative glow orbs that used to sit behind the hero were radial
   gradients, so they are gone. The hero is a flat page colour now. */

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-8);
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--sp-9);
    align-items: center;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* The one word that carries the brand promise */
.hero__title em {
  font-style: normal;
  color: var(--color-link);
  position: relative;
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.09em;
  background: var(--color-primary);
  border-radius: 2px;
  opacity: 0.5;
}

.hero__lead {
  font-size: var(--fs-lead);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

/* ---- Social proof: avatar cluster ---- */

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  width: 100%;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatars__item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-solid);
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-link);
  margin-left: -12px;
  transition: transform var(--dur) var(--ease-out);
}

.avatars__item:first-child {
  margin-left: 0;
}

.avatars:hover .avatars__item {
  transform: translateY(-2px);
}

.avatars__item--count {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.hero__proof-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-link);
}

.stars .icon {
  width: 15px;
  height: 15px;
}

.hero__proof-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---- Video hook ---- */

.hero__media {
  position: relative;
}

.video-hook {
  position: relative;
  display: block;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}

.video-hook__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition:
    transform var(--dur-slow) var(--ease-out),
    opacity var(--dur) var(--ease);
}

.video-hook:hover .video-hook__bg {
  transform: scale(1.04);
  opacity: 0.68;
}

.video-hook__overlay {
  position: absolute;
  inset: 0;
  /* Flat scrim instead of the old fade — keeps the caption legible over the
     artwork without introducing a gradient. */
  background: rgb(0 0 0 / 28%);
}

.video-hook__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 8px 32px -6px var(--glow);
  transition: transform var(--dur) var(--ease-out);
}

.video-hook__play .icon {
  width: 30px;
  height: 30px;
}

.video-hook:hover .video-hook__play {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Concentric pulse behind the play head */
.video-hook__play::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--color-primary);
  opacity: 0.5;
  animation: pulse-ring 2.6s var(--ease-out) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.video-hook__caption {
  position: absolute;
  left: var(--sp-5);
  right: var(--sp-5);
  bottom: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-hook__caption strong {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  color: var(--text-primary);
}

.video-hook__caption span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---- The brand chain: Problems → Strategy → Creativity → Growth → Result ---- */

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-4) 0 0;
}

.chain__node {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.chain__node:last-child {
  color: var(--color-link);
  font-weight: 600;
}

.chain__sep {
  color: var(--accent-600);
  font-size: var(--fs-xs);
}

/* ==========================================================================
   9. Expertise: capability list + counters
   ========================================================================== */

.expertise__grid {
  display: grid;
  gap: var(--sp-8);
}

@media (min-width: 1024px) {
  .expertise__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: var(--sp-10);
    align-items: start;
  }
}

/* Capability list — each row is a link with a number and a hover slide */
.capability-list {
  border-top: 1px solid var(--border);
}

.capability {
  border-bottom: 1px solid var(--border);
}

.capability__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-2);
  color: var(--text-secondary);
  transition:
    padding-left var(--dur) var(--ease-out),
    color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.capability__link:hover {
  padding-left: var(--sp-5);
  color: var(--text-primary);
  background: var(--tint-weak);
}

.capability__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--accent-500);
  letter-spacing: 0.04em;
}

.capability__title {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 600;
  color: inherit;
  line-height: 1.3;
}

.capability__arrow {
  width: 18px;
  height: 18px;
  color: var(--color-link);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease-out);
}

.capability__link:hover .capability__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Counters ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  background: var(--bg-surface);
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  transition: background-color var(--dur) var(--ease);
}

.stat:hover {
  background: var(--bg-elevated);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat__value .stat__suffix {
  color: var(--color-link);
}

.stat__label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--sp-2);
}

.stat__detail {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.45;
}

/* A short brand-filled note under the counters */
.stats-note {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  background: var(--bg-brand);
  border-radius: var(--r-lg);
  color: var(--text-on-brand);
}

.stats-note p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-on-brand);
  opacity: 0.92;
}

.stats-note strong {
  color: var(--text-on-brand);
}

/* ==========================================================================
   10. Client / sector marquee
   ========================================================================== */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-6);
  border-block: 1px solid var(--border);
  /* Fade both ends so items enter and leave rather than clipping */
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--sp-8);
  animation: marquee-scroll 42s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

/* Track is duplicated in the markup; shifting by exactly -50% loops seamlessly */
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}

.marquee__item:hover {
  color: var(--color-link);
}

.marquee__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-600);
  flex-shrink: 0;
}

/* ==========================================================================
   11. Cards
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-600);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--tint-soft);
  color: var(--color-link);
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.card:hover .card__icon {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.card__icon .icon {
  width: 26px;
  height: 26px;
}

.card__title {
  font-size: var(--fs-h4);
}

.card__body {
  font-size: var(--fs-sm);
  line-height: 1.65;
  flex-grow: 1;
}

/* Three-up feature row */
.feature-grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   12. Portfolio grid and filter
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-7);
}

.tag {
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.tag:hover {
  color: var(--text-primary);
  border-color: var(--color-link);
}

.tag[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.portfolio-grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .portfolio-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Filter hides with a short fade rather than an instant display swap */
.work[hidden] {
  display: none;
}

.work {
  animation: work-in var(--dur) var(--ease-out) both;
}

@keyframes work-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.work__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: inherit;
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.work__link:hover {
  transform: translateY(-4px);
  border-color: var(--accent-600);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.work__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.work__link:hover .work__media img {
  transform: scale(1.05);
}

.work__badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  padding: var(--sp-1) var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  /* Sits on top of a photograph, so it needs its own dark ink to keep the
     white label readable whatever the image behind it. */
  background: rgb(26 6 32 / 72%);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: var(--r-pill);
}

.work__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  flex-grow: 1;
}

.work__title {
  font-size: var(--fs-h4);
  line-height: 1.3;
}

.work__excerpt {
  font-size: var(--fs-sm);
  flex-grow: 1;
}

.work__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

.chip {
  padding: 3px var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-link);
  background: var(--tint-weak);
  border-radius: var(--r-pill);
}

/* Message shown when a filter matches nothing */
.filter-empty {
  padding: var(--sp-9) var(--sp-5);
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}

/* ==========================================================================
   13. Testimonial carousel
   ========================================================================== */

.carousel {
  position: relative;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: var(--r-xl);
}

.carousel__track {
  display: flex;
  transition: transform var(--dur-slow) var(--ease-out);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: var(--sp-2);
}

@media (min-width: 1024px) {
  .carousel__slide {
    flex-basis: 50%;
  }
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  height: 100%;
  padding: var(--sp-7) var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.quote-card__mark {
  width: 34px;
  height: 34px;
  color: var(--accent-600);
}

.quote-card__text {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  flex-grow: 1;
}

.quote-card__foot {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.quote-card__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--tint-soft);
  color: var(--color-link);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.quote-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.quote-card__role {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.carousel__dots {
  display: flex;
  gap: var(--sp-2);
}

.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: var(--border);
  transition:
    background-color var(--dur) var(--ease),
    width var(--dur) var(--ease-out);
}

.carousel__dot[aria-selected="true"] {
  width: 26px;
  border-radius: var(--r-pill);
  background: var(--color-primary);
}

.carousel__arrows {
  display: flex;
  gap: var(--sp-2);
}

.carousel__arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

.carousel__arrow:hover:not(:disabled) {
  border-color: var(--color-link);
  background: var(--tint-weak);
}

.carousel__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel__arrow .icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   14. Process — the brand spine
   ========================================================================== */

.process {
  display: grid;
  gap: var(--sp-5);
  counter-reset: step;
}

@media (min-width: 768px) {
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .process {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--sp-3);
  }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease-out);
}

.step:hover {
  transform: translateY(-4px);
  background: var(--bg-elevated);
  border-color: var(--accent-600);
}

/* The connector: a hairline running between cards on the widest layout */
@media (min-width: 1280px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--sp-3) * -1);
    width: var(--sp-3);
    height: 1px;
    background: var(--accent-700);
  }
}

.step__num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-700);
  transition: color var(--dur) var(--ease);
}

.step:hover .step__num {
  color: var(--color-link);
}

.step__icon {
  width: 26px;
  height: 26px;
  color: var(--color-link);
}

.step__title {
  font-size: var(--fs-h4);
}

.step__body {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ==========================================================================
   15. Pricing
   ========================================================================== */

.pricing {
  display: grid;
  gap: var(--sp-5);
  align-items: start;
}

@media (min-width: 1024px) {
  .pricing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-7) var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease-out);
}

.plan:hover {
  border-color: var(--accent-600);
}

/* Recommended tier: brand-filled, lifted, and visually wider on desktop */
.plan--featured {
  background: var(--bg-brand);
  border-color: var(--accent-500);
  box-shadow: 0 18px 48px -16px var(--glow);
}

@media (min-width: 1024px) {
  .plan--featured {
    transform: scale(1.035);
    z-index: 1;
  }

  .plan--featured:hover {
    transform: scale(1.035) translateY(-4px);
  }
}

.plan--featured .plan__name,
.plan--featured .plan__price,
.plan--featured .plan__feature {
  color: var(--text-on-brand);
}

.plan--featured .plan__tagline,
.plan--featured .plan__period {
  color: var(--text-on-brand);
  opacity: 0.75;
}

.plan--featured .plan__features {
  border-top-color: hsl(0 0% 100% / 14%);
}

.plan--featured .plan__feature .icon {
  color: var(--accent-200);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  translate: -50% 0;
  padding: var(--sp-1) var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.plan__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text-primary);
}

.plan__tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.plan__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.plan__price {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.plan__period {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  flex-grow: 1;
}

.plan__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-secondary);
}

.plan__feature .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-link);
}

.plan__note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   16. Newsletter
   ========================================================================== */

.newsletter {
  position: relative;
  padding: clamp(2rem, 1.2rem + 4vw, 4rem);
  background: var(--bg-brand);
  border-radius: var(--r-xl);
  overflow: hidden;
}

/* Decorative radial removed — the newsletter block is a flat brand panel. */

.newsletter__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}

@media (min-width: 1024px) {
  .newsletter__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: var(--sp-8);
  }
}

.newsletter__title {
  color: var(--text-on-brand);
  font-size: var(--fs-h2);
}

.newsletter__copy {
  color: var(--text-on-brand);
  opacity: 0.82;
  margin-top: var(--sp-3);
  font-size: var(--fs-body);
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (min-width: 480px) {
  .field-row {
    flex-direction: row;
  }
}

.input {
  width: 100%;
  padding: 0.9375rem var(--sp-5);
  font-size: var(--fs-body);
  color: var(--text-primary);
  background: hsl(0 0% 0% / 26%);
  border: 1px solid hsl(0 0% 100% / 16%);
  border-radius: var(--r-pill);
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  outline: none;
  border-color: var(--accent-200);
  background: hsl(0 0% 0% / 34%);
}

.input:focus-visible {
  outline: 2px solid var(--accent-200);
  outline-offset: 2px;
}

/* Inline validation states */
.input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.form-message {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  border-radius: var(--r-md);
}

.form-message.is-visible {
  display: flex;
}

.form-message .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-message--success {
  color: var(--color-success);
  background: var(--color-success-bg);
}

.form-message--error {
  color: var(--color-error);
  background: var(--color-error-bg);
}

.newsletter__fine {
  font-size: var(--fs-xs);
  color: var(--text-on-brand);
  opacity: 0.62;
}

/* Honeypot — off-screen rather than display:none, which some bots detect */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   17. Blog teaser
   ========================================================================== */

.post-grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .post-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.post {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: inherit;
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.post:hover {
  transform: translateY(-4px);
  border-color: var(--accent-600);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.post__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.post:hover .post__media img {
  transform: scale(1.05);
}

.post__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  flex-grow: 1;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.post__category {
  color: var(--color-link);
  font-weight: 600;
}

.post__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.post__title {
  font-size: var(--fs-h4);
  line-height: 1.32;
}

.post__excerpt {
  font-size: var(--fs-sm);
  flex-grow: 1;
}

/* ==========================================================================
   18. Accordion (services, about, contact FAQ)
   ========================================================================== */

.accordion {
  border-top: 1px solid var(--border);
}

.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) var(--sp-2);
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--dur-fast) var(--ease);
}

.accordion__trigger:hover {
  color: var(--color-link);
}

.accordion__sign {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--color-link);
  transition:
    transform var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.accordion__sign .icon {
  width: 15px;
  height: 15px;
}

.accordion__trigger[aria-expanded="true"] .accordion__sign {
  transform: rotate(45deg);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

/* Height animated via a grid row, which works without knowing the height */
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.accordion__panel.is-open {
  grid-template-rows: 1fr;
}

.accordion__panel > div {
  overflow: hidden;
}

.accordion__body {
  padding: 0 var(--sp-2) var(--sp-5);
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 72ch;
}

/* ==========================================================================
   19. CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  background: var(--bg-brand);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  text-align: center;
  overflow: hidden;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  max-width: 62ch;
  margin-inline: auto;
}

.cta-band__title {
  color: var(--text-on-brand);
  font-size: var(--fs-h2);
}

.cta-band__copy {
  color: var(--text-on-brand);
  opacity: 0.85;
  font-size: var(--fs-lead);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

.cta-band .btn--ghost {
  color: var(--text-on-brand);
  border-color: hsl(0 0% 100% / 26%);
}

.cta-band .btn--ghost:hover {
  color: var(--text-on-brand);
  border-color: var(--text-on-brand);
  background: hsl(0 0% 100% / 10%);
}

/* ==========================================================================
   20. Footer
   ========================================================================== */

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-10);
}

.footer__grid {
  display: grid;
  gap: var(--sp-8);
  padding-bottom: var(--sp-9);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr;
    gap: var(--sp-7);
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer__blurb {
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 42ch;
}

.footer__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__links a {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  width: fit-content;
}

.footer__links a:hover {
  color: var(--color-link);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer__contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.footer__contact-row .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-link);
}

.footer__contact-row a {
  color: var(--text-secondary);
}

.footer__contact-row a:hover {
  color: var(--color-link);
}

.socials {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.socials a:hover {
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.socials .icon {
  width: 18px;
  height: 18px;
}

.footer__bar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__bar-links {
  display: flex;
  gap: var(--sp-5);
}

.footer__bar a {
  color: var(--text-muted);
}

.footer__bar a:hover {
  color: var(--color-link);
}

/* ==========================================================================
   21. Scroll reveal
   IntersectionObserver adds .is-visible. Without JS the content is already
   visible because .no-js on <html> neutralises the start state.
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* Stagger children of a revealed group */
.reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal-group.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 350ms; }

.no-js .reveal-group > * {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   22. Reduced motion
   Everything decorative stops. The marquee and the pulse ring are purely
   decorative, so they are halted outright rather than shortened.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee__track {
    animation: none;
    transform: none;
  }

  .video-hook__play::before {
    animation: none;
  }

  .reveal,
  .reveal-group > * {
    opacity: 1;
    transform: none;
  }

  .carousel__track {
    transition: none;
  }
}

/* ==========================================================================
   23. Page hero — the banner every inner page opens with
   ========================================================================== */

.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(2rem, 1.2rem + 4vw, 4rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Decorative radial removed — page heroes sit on the flat page colour. */

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 68ch;
}

.page-hero__title {
  font-size: var(--fs-h1);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--color-link);
}

.breadcrumb__sep {
  opacity: 0.5;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-link);
}

/* ==========================================================================
   24. Two-column page shell (service detail, article)
   ========================================================================== */

.shell {
  display: grid;
  gap: var(--sp-8);
  align-items: start;
}

@media (min-width: 1024px) {
  .shell {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--sp-9);
  }

  .shell--left {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .shell__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-5));
  }
}

.aside-card {
  padding: var(--sp-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.aside-card + .aside-card {
  margin-top: var(--sp-4);
}

.aside-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

/* Vertical service index used on the service pages */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-radius: var(--r-md);
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.side-nav__link:hover {
  background: var(--tint-weak);
  color: var(--text-primary);
}

.side-nav__link.is-active {
  background: var(--tint-soft);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--color-primary);
}

.side-nav__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-500);
}

/* ==========================================================================
   25. Prose — long-form article and page copy
   ========================================================================== */

.prose {
  max-width: 72ch;
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--text-secondary);
}

.prose > * + * {
  margin-top: var(--sp-5);
}

.prose h2 {
  font-size: var(--fs-h3);
  margin-top: var(--sp-8);
}

.prose h3 {
  font-size: var(--fs-h4);
  margin-top: var(--sp-6);
}

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-left: 0;
}

.prose li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: var(--fs-body);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

.prose ol {
  counter-reset: prose-item;
}

.prose ol li {
  counter-increment: prose-item;
}

.prose ol li::before {
  content: counter(prose-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-500);
}

.prose blockquote {
  padding: var(--sp-5) var(--sp-6);
  background: var(--bg-surface);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  color: var(--text-primary);
}

.prose strong {
  color: var(--text-primary);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   26. Service detail — the sub-service checklist
   ========================================================================== */

.service-items {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

@media (min-width: 640px) {
  .service-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition:
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.service-item:hover {
  border-color: var(--accent-600);
  color: var(--text-primary);
}

.service-item .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--color-link);
}

/* The "this package answers" callout */
.answer-box {
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  background: var(--bg-brand);
  border-radius: var(--r-lg);
}

.answer-box__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-brand);
  opacity: 0.7;
}

.answer-box__text {
  margin-top: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-on-brand);
}

/* ==========================================================================
   27. Forms — contact page (dark surface, unlike the newsletter's brand panel)
   ========================================================================== */

.form-grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 640px) {
  .form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field__label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.field__req {
  color: var(--color-link);
}

.field__control {
  width: 100%;
  padding: 0.8125rem var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.field__control::placeholder {
  color: var(--text-muted);
}

.field__control:hover {
  border-color: var(--accent-700);
}

.field__control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--bg-elevated);
}

.field__control:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

textarea.field__control {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

select.field__control {
  appearance: none;
  /* Chevron drawn in CSS so no image request and it follows the theme */
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% + 2px),
    calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: var(--sp-9);
  cursor: pointer;
}

.field__control[aria-invalid="true"] {
  border-color: var(--color-error);
}

.field__error {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--color-error);
}

.field__error .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Page-level form feedback banner */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-sm);
  border-radius: var(--r-md);
  border: 1px solid transparent;
}

.alert .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert--success {
  color: var(--color-success);
  background: var(--color-success-bg);
  border-color: var(--color-success);
}

.alert--error {
  color: var(--color-error);
  background: var(--color-error-bg);
  border-color: var(--color-error);
}

.alert strong {
  color: inherit;
}

/* ==========================================================================
   28. Contact info cards
   ========================================================================== */

.info-grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.info-card:hover {
  border-color: var(--accent-600);
  background: var(--bg-elevated);
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--tint-soft);
  color: var(--color-link);
}

.info-card__icon .icon {
  width: 21px;
  height: 21px;
}

.info-card__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-card__value {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.info-card__value a {
  color: var(--text-primary);
}

.info-card__value a:hover {
  color: var(--color-link);
}

/* ==========================================================================
   29. Article header and meta
   ========================================================================== */

.article-hero__media {
  margin-top: var(--sp-7);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 7;
  background: var(--bg-elevated);
}

.article-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta-row__category {
  padding: 3px var(--sp-3);
  color: var(--color-link);
  background: var(--tint-weak);
  border-radius: var(--r-pill);
  font-weight: 600;
}

/* Key/value list used on the case-study pages */
.spec-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.spec-list__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.spec-list__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-list__key {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spec-list__val {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   30. Empty state / 404
   ========================================================================== */

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  padding: clamp(3rem, 2rem + 6vw, 7rem) var(--sp-5);
  text-align: center;
}

.state__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 14vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  /* The numeral is decorative; the heading below carries the meaning */
  background: var(--color-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.state__title {
  font-size: var(--fs-h2);
}

.state__copy {
  max-width: 52ch;
  font-size: var(--fs-lead);
}

.state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-2);
}

/* ==========================================================================
   31. Lit surface application
   --------------------------------------------------------------------------
   Applied after the component definitions so the gradient treatment overrides
   the earlier flat fills without editing each rule. Same specificity, later
   in the file, so these win.
   ========================================================================== */

/* ---- Sections ------------------------------------------------------------
   Alternating bands are a flat tint now. The previous build faded a
   translucent wash over a gradient page; with a flat page the same effect is
   one solid surface colour. */
.section--surface {
  background: var(--bg-surface);
}

/* A hairline at the top of each tinted band */
.section--surface::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: var(--border);
}

/* ---- Divider rule -------------------------------------------------------- */
.rule {
  background: var(--border);
}

/* ---- Cards and panels ---------------------------------------------------- */
.card,
.work__link,
.post,
.plan,
.quote-card,
.step,
.info-card,
.aside-card,
.stat,
.marquee,
.video-hook {
  background: var(--surface);
  border-color: var(--border-soft);
}

.card:hover,
.work__link:hover,
.post:hover,
.plan:hover,
.step:hover,
.info-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-bright);
}

/* The stats block is a 1px grid of cards; its gaps show the divider colour */
.stats {
  background: var(--border-soft);
  border-color: var(--border-soft);
}

.stat:hover {
  background: var(--surface-hover);
}

/* Featured pricing tier keeps its solid brand fill — a translucent surface
   over the glow orbs made the "recommended" tier read as less prominent. */
.plan--featured {
  background: var(--bg-brand);
  border-color: var(--accent-500);
}

.plan--featured:hover {
  background: var(--bg-brand);
}

/* ---- Filter pills and small chips ---------------------------------------- */
.tag {
  background: var(--surface);
  border-color: var(--border-soft);
}

.tag:hover {
  border-color: var(--border-bright);
}

.tag[aria-pressed="true"] {
  background: var(--cta-gradient);
  border-color: transparent;
  color: var(--color-on-primary);
}

/* ---- Primary CTA ---------------------------------------------------------
   background-size 200% lets the gradient slide on hover by moving its
   position — cheaper than animating the gradient's colour stops. */
.btn--primary {
  background: var(--cta-gradient);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: var(--color-on-primary);
  border-color: transparent;
  transition:
    background-position 420ms var(--ease-out),
    box-shadow var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.btn--primary:hover {
  background: var(--cta-gradient);
  background-size: 200% 100%;
  background-position: 100% 50%;
  color: var(--color-on-primary);
  box-shadow: 0 10px 30px -8px var(--glow);
}

/* ---- Gradient text -------------------------------------------------------
   Headings, numerals and icons only. Body copy stays a solid colour: gradient
   text cannot be contrast-tested against a moving background and degrades
   badly when background-clip is unsupported. */
.stat__value,
.step__num,
.state__code {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The suffix inherits the clip, so it must not re-declare a solid colour */
.stat__value .stat__suffix {
  color: transparent;
}

/* Fallback: if background-clip:text is unsupported the text would vanish */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .stat__value,
  .step__num,
  .state__code,
  .stat__value .stat__suffix {
    background: none;
    color: var(--text-primary);
  }
}

/* ---- Header over a lit background ---------------------------------------- */
.site-header.is-scrolled {
  border-bottom-color: var(--border-soft);
}

/* ---- Reduced motion ------------------------------------------------------
   The orbs are the only animated background element; stop them entirely
   rather than shortening them. The gradients themselves are static. */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

/* Mobile: fixed backgrounds are expensive to composite on some mobile GPUs,
   and iOS Safari ignores background-attachment: fixed anyway. Scroll it. */
@media (max-width: 767px) {
  body {
    background-attachment: scroll;
  }

  body::before,
  body::after {
    filter: blur(90px);
    animation: none;
  }
}

/* ==========================================================================
   32. Living logo — pulse, blink and glow
   --------------------------------------------------------------------------
   The neon glow is done in CSS rather than baked into the image: it stays
   crisp at any size, follows the active theme, and can animate. Two effects
   run on different cycles so the mark never looks metronomic —
   a slow breathing scale/glow, and an occasional quick blink.
   ========================================================================== */

.logo-live {
  /* drop-shadow follows the alpha channel, unlike box-shadow which would
     draw a rectangle around the transparent PNG.
     Retuned for the white page: the dark build's neon bloom reads as blur or
     smudging over white, so this is a tight brand-tinted lift instead. The
     pulse and blink remain, just far gentler. */
  filter: drop-shadow(0 1px 2px var(--glow));
  animation:
    logo-breathe 4.6s ease-in-out infinite,
    logo-blink 9s steps(1, end) infinite;
  transform-origin: center;
  will-change: filter, transform, opacity;
}

@keyframes logo-breathe {
  0%, 100% {
    filter: drop-shadow(0 1px 2px var(--glow));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 2px 6px var(--glow));
    transform: scale(1.035);
  }
}

/* A brief dip rather than the dark build's neon strike — on white a hard
   flicker looks like a rendering fault, not an effect. */
@keyframes logo-blink {
  0%, 92%, 100% { opacity: 1; }
  94% { opacity: 0.72; }
  96% { opacity: 1; }
}

.brand:hover .logo-live {
  filter: drop-shadow(0 2px 8px var(--glow));
}

/* ==========================================================================
   33. Call button — circular disc with radar ripple
   ========================================================================== */

.header-phone {
  gap: var(--sp-3);
  padding-left: 4px;
}

.call-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cta-gradient);
  color: var(--color-on-primary);
  box-shadow: 0 2px 10px -2px var(--glow);
}

.call-disc .icon {
  width: 16px;
  height: 16px;
  position: relative;
  z-index: 1;
}

/* Two expanding rings, offset in time so one is always mid-flight */
.call-disc::before,
.call-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  animation: radar-ping 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.call-disc::after {
  animation-delay: 1.2s;
}

@keyframes radar-ping {
  0%   { transform: scale(1);    opacity: 0.75; }
  70%  { transform: scale(2.05); opacity: 0; }
  100% { transform: scale(2.05); opacity: 0; }
}

.header-phone:hover .call-disc {
  box-shadow: 0 4px 18px -2px var(--glow);
}

/* On small screens the number is hidden but the disc stays as a call CTA */
@media (max-width: 1279px) {
  .header-phone {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: none;
  }

  .header-phone__number {
    display: none;
  }
}

/* ==========================================================================
   34. Dot-grid trigger
   ========================================================================== */

.dot-grid {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.dot-grid:hover {
  border-color: var(--color-link);
}

.dot-grid__grid {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  gap: 3px;
}

.dot-grid__grid i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transition:
    background-color var(--dur-fast) var(--ease),
    transform var(--dur) var(--ease-out);
}

/* Corners lift toward the accent on hover — reads as "expandable" */
.dot-grid:hover .dot-grid__grid i:nth-child(odd) {
  background: var(--color-link);
  transform: scale(1.3);
}

/* ==========================================================================
   35. Contact drawer (right off-canvas)
   ========================================================================== */

.info-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  width: min(420px, 90vw);
  height: 100svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(160deg, rgb(255 255 255 / 5%), transparent 45%),
    var(--bg-solid);
  border-left: 1px solid var(--accent-500);
  /* the purple glow the brief asks for, inside and out */
  box-shadow:
    -24px 0 60px -20px var(--glow),
    inset 1px 0 0 rgb(255 255 255 / 10%);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.info-panel.is-open {
  transform: translateX(0);
}

.info-panel__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: var(--surface);
  transition:
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.info-panel__close:hover {
  border-color: var(--color-link);
  color: var(--color-link);
  transform: rotate(90deg);
}

.info-panel__close .icon {
  width: 17px;
  height: 17px;
}

.info-panel__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-8) var(--sp-6) var(--sp-7);
}

.info-panel__logo {
  width: 64px;
  height: auto;
}

.info-panel__title {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  line-height: 1.18;
}

.info-panel__copy {
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.info-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.info-block {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.info-block:hover {
  border-color: var(--color-link);
  background: var(--surface-hover);
}

.info-block__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--tint-soft);
  color: var(--color-link);
}

.info-block__icon .icon {
  width: 19px;
  height: 19px;
}

.info-block__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.info-block__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-block__value {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

a.info-block__value:hover {
  color: var(--color-link);
}

.info-panel__hours {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.info-panel__hours .icon {
  width: 15px;
  height: 15px;
  color: var(--color-link);
}

/* ==========================================================================
   36. Service card with the icon on the left
   ========================================================================== */

.card--iconleft {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: var(--sp-5);
  row-gap: var(--sp-2);
  align-items: start;
}

.card--iconleft .service-art {
  grid-row: 1 / span 3;
}

.card--iconleft .card__title,
.card--iconleft .card__body,
.card--iconleft .link-arrow {
  grid-column: 2;
}

/* The supplied artwork, framed so the mixed icon styles sit consistently */
.service-art {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  padding: 11px;
  border-radius: var(--r-md);
  background: var(--tint-soft);
  border: 1px solid var(--border-soft);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease-out);
}

.service-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card:hover .service-art {
  background: var(--tint-strong);
  border-color: var(--color-link);
  transform: scale(1.06);
}

@media (max-width: 479px) {
  .card--iconleft {
    column-gap: var(--sp-4);
  }

  .service-art {
    width: 50px;
    height: 50px;
    padding: 8px;
  }
}

/* Icon beside the heading on the service detail page */
.service-headline {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

/* ==========================================================================
   37. Request a quote
   ========================================================================== */

.quote {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}

@media (min-width: 1024px) {
  .quote {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--sp-9);
  }
}

.quote__panel {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: 0 18px 48px -24px var(--glow);
}

.quote__points {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.quote__point {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.quote__point .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-link);
}

/* ==========================================================================
   38. Meet the team
   ========================================================================== */

.team-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.member {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.member:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-lg);
}

.member__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elevated);
}

.member__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition:
    transform var(--dur-slow) var(--ease-out),
    filter var(--dur) var(--ease);
}

.member:hover .member__media img {
  transform: scale(1.05);
  filter: saturate(1);
}

/* Fade the photo into the card so the white studio backdrops do not end
   in a hard line against the dark surface */
.member__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-solid) 0%,
    rgb(26 6 32 / 8%) 22%,
    transparent 55%
  );
  pointer-events: none;
}

.member__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  margin-top: -28px;
  position: relative;
  z-index: 1;
}

.member__name {
  font-size: var(--fs-h4);
  line-height: 1.25;
}

.member__role {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-link);
}

.member__bio {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.member__social {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.member__social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.member__social a:hover {
  color: var(--color-on-primary);
  background: var(--cta-gradient);
  border-color: transparent;
}

.member__social .icon {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   39. Supplied bitmap icons — social and sector artwork
   ========================================================================== */

/* The social icons are PNGs pre-flattened to a single colour during asset
   processing, so they cannot inherit currentColor the way the inline SVGs do.
   Hover shifts opacity and the surrounding chrome instead of recolouring. */
.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity var(--dur-fast) var(--ease);
}

.socials a:hover .social-icon,
.member__social a:hover .social-icon,
.info-panel__socials a:hover .social-icon {
  opacity: 1;
}

/* The filled hover state already darkens behind the glyph; keep it readable */
.socials a:hover,
.member__social a:hover {
  background: var(--cta-gradient);
  border-color: transparent;
}

.info-panel__socials {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-soft);
}

/* ---- Sector strip -------------------------------------------------------- */

.marquee__item--photo {
  gap: var(--sp-4);
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  color: var(--text-secondary);
  transition:
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

/* The bullet is redundant once there is a photograph */
.marquee__item--photo::before {
  display: none;
}

.marquee__item--photo:hover {
  border-color: var(--color-link);
  color: var(--text-primary);
}

.marquee__thumb {
  width: 60px;
  height: 40px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--r-pill);
  /* Desaturated so a row of unrelated stock photos still reads as one strip */
  filter: saturate(0.7) contrast(1.05);
  transition: filter var(--dur) var(--ease);
}

.marquee__item--photo:hover .marquee__thumb {
  filter: saturate(1) contrast(1);
}

/* ==========================================================================
   40. Reduced motion for the new animations
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .logo-live {
    animation: none;
    filter: drop-shadow(0 0 8px var(--glow));
  }

  .call-disc::before,
  .call-disc::after {
    animation: none;
    opacity: 0;
  }

  .info-panel {
    transition: none;
  }
}

/* ==========================================================================
   41. Print
   ========================================================================== */

@media print {
  .site-header,
  .mobile-panel,
  .panel-backdrop,
  .marquee,
  .newsletter,
  .cta-band,
  .carousel__controls {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
