/* Spaced Consulting: cobalt and teal system, light and dark themes.

   DESIGN STANDARD (the rules every element sits in; do not invent new layers)

   Surfaces: exactly two per theme. --ground for page bands, --card-bg for
   every raised panel (cards, tiles, steps, the case study band, the hero
   panel, dialogs). Sections alternate ground / section-alt automatically in
   DOM order via main > section:nth-of-type(even); never hand-pick section
   backgrounds.

   Card material: one spec. Radius 16 (20 for feature panels), 1px
   --card-border, --card-shadow at rest. Hover and focus-within: lift -4px,
   border --card-border-hover, --shadow. Everything animates 0.3s with
   --ease-out, in and out; nothing snaps.

   Chips: one spec, 0.72rem mono uppercase, radius 7, in three variants:
   blue = interactive, teal = emphasis, green = good outcomes only. Amber
   is not a chip; it marks attention states (the hero panel's flag).

   Emphasis: gradient text is reserved for stat numerals and the tagline,
   with a slow shimmer as the only ambient motion; the same gradient draws
   the kicker dash and the hero underline as hairline flourishes. Buttons
   carry a soft accent glow on their primary face and ghost hover; nothing
   else glows.

   Radius scale: 7 chip, 10 control, 16 card, 20 feature panel, 999 pill. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
}

/* Radius scale: 7 chip, 10 control, 16 card, 20 feature panel, 999 pill. */

:root {
  color-scheme: light;
  --ground: #f4f6fb;
  --section-alt: #edf1f9;
  --ink: #0f1b2d;
  --muted: #4e5d78;
  --accent: #2947d4;
  --accent-deep: #1c2e8c;
  --accent-ink: #ffffff;
  --label: #2947d4;
  --border: #d7deec;
  --card-bg: #ffffff;
  --card-border: #d7deec;
  --card-border-hover: #2947d4;
  --card-ink: #0f1b2d;
  --card-muted: #4e5d78;
  --card-accent: #2947d4;
  --card-pop: #0e7490;
  --card-shadow: 0 4px 14px rgba(15, 27, 45, 0.05);
  --chip-blue-bg: #2947d4;
  --chip-blue-ink: #ffffff;
  --chip-teal-bg: #2dd4bf;
  --chip-teal-ink: #083a33;
  --chip-green-bg: #34d399;
  --chip-green-ink: #06331f;
  --ghost-bg: #dce6ff;
  --ghost-ink: #1c2e8c;
  --ghost-border: transparent;
  --ghost-hover-bg: #dce6ff;
  --btn-glow: rgba(41, 71, 212, 0.3);
  --ghost-glow: rgba(15, 27, 45, 0.1);
  --band-muted: #4e5d78;
  --band-grad-a: #2947d4;
  --band-grad-b: #0f766e;
  --stat-grad-a: #2947d4;
  --stat-grad-b: #0f766e;
  --r-bg: #ffffff;
  --r-border: #d7deec;
  --r-ink: #0f1b2d;
  --r-muted: #4e5d78;
  --r-status-bg: #dce6ff;
  --r-status-ink: #1c2e8c;
  --r-done-bg: #d9f3e1;
  --r-done-ink: #166534;
  --r-track: #e4e9f4;
  --r-tick: #15803d;
  --r-tick-ink: #ffffff;
  --r-flag: #a6510e;
  --r-progress: #2947d4;
  --toast-bg: #d9f3e1;
  --toast-ink: #166534;
  --toast-border: #b5e3c4;
  --toast-dot: #15803d;
  --hl-to: #14b8a6;
  --shadow: 0 14px 36px rgba(15, 27, 45, 0.11);
  --shadow-lift: 0 20px 48px rgba(15, 27, 45, 0.16);
  --dots-opacity: 0.6;
  --glow-a: rgba(41, 71, 212, 0.09);
  --glow-b: rgba(20, 184, 166, 0.08);
  --header-bg: rgba(244, 246, 251, 0.9);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --display: "Schibsted Grotesk", "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", monospace;
  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #12151e;
    --section-alt: #151926;
    --ink: #eceff6;
    --muted: #a4aec0;
    --accent: #5b7cff;
    --accent-deep: #7d97ff;
    --accent-ink: #0e1118;
    --label: #7d97ff;
    --border: #2a3242;
    --card-bg: #1d2434;
    --card-border: #313b52;
    --card-border-hover: #5b7cff;
    --card-ink: #eceff6;
    --card-muted: #a4aec0;
    --card-accent: #7d97ff;
    --card-pop: #2dd4bf;
    --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    --chip-blue-bg: rgba(91, 124, 255, 0.16);
    --chip-blue-ink: #b7c4ff;
    --chip-teal-bg: rgba(45, 212, 191, 0.14);
    --chip-teal-ink: #6ee7d3;
    --chip-green-bg: rgba(52, 211, 153, 0.14);
    --chip-green-ink: #6ee7b7;
    --ghost-bg: transparent;
    --ghost-ink: #c7d3ff;
    --ghost-border: #5b7cff;
    --ghost-hover-bg: #232c45;
    --btn-glow: rgba(91, 124, 255, 0.35);
    --ghost-glow: rgba(91, 124, 255, 0.18);
    --band-muted: #a4aec0;
    --band-grad-a: #7d97ff;
    --band-grad-b: #2dd4bf;
    --stat-grad-a: #7d97ff;
    --stat-grad-b: #2dd4bf;
    --r-bg: #1d2434;
    --r-border: #313b52;
    --r-ink: #eceff6;
    --r-muted: #a4aec0;
    --r-status-bg: rgba(91, 124, 255, 0.16);
    --r-status-ink: #afc0ff;
    --r-done-bg: rgba(52, 211, 153, 0.14);
    --r-done-ink: #34d399;
    --r-track: #3a4661;
    --r-tick: #34d399;
    --r-tick-ink: #0e1118;
    --r-flag: #fbbf24;
    --r-progress: #5b7cff;
    --toast-bg: #1e3831;
    --toast-ink: #34d399;
    --toast-border: #2e5243;
    --toast-dot: #6ee7b7;
    --hl-to: #2dd4bf;
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    --shadow-lift: 0 20px 48px rgba(0, 0, 0, 0.55);
    --dots-opacity: 0.14;
    --glow-a: rgba(91, 124, 255, 0.22);
    --glow-b: rgba(45, 212, 191, 0.12);
    --header-bg: rgba(18, 21, 30, 0.88);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #12151e;
  --section-alt: #151926;
  --ink: #eceff6;
  --muted: #a4aec0;
  --accent: #5b7cff;
  --accent-deep: #7d97ff;
  --accent-ink: #0e1118;
  --label: #7d97ff;
  --border: #2a3242;
  --card-bg: #1d2434;
  --card-border: #313b52;
  --card-border-hover: #5b7cff;
  --card-ink: #eceff6;
  --card-muted: #a4aec0;
  --card-accent: #7d97ff;
  --card-pop: #2dd4bf;
  --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  --chip-blue-bg: rgba(91, 124, 255, 0.16);
  --chip-blue-ink: #b7c4ff;
  --chip-teal-bg: rgba(45, 212, 191, 0.14);
  --chip-teal-ink: #6ee7d3;
  --chip-green-bg: rgba(52, 211, 153, 0.14);
  --chip-green-ink: #6ee7b7;
  --ghost-bg: transparent;
  --ghost-ink: #c7d3ff;
  --ghost-border: #5b7cff;
  --ghost-hover-bg: #232c45;
  --btn-glow: rgba(91, 124, 255, 0.35);
  --ghost-glow: rgba(91, 124, 255, 0.18);
  --band-muted: #a4aec0;
  --band-grad-a: #7d97ff;
  --band-grad-b: #2dd4bf;
  --stat-grad-a: #7d97ff;
  --stat-grad-b: #2dd4bf;
  --r-bg: #1d2434;
  --r-border: #313b52;
  --r-ink: #eceff6;
  --r-muted: #a4aec0;
  --r-status-bg: rgba(91, 124, 255, 0.16);
  --r-status-ink: #afc0ff;
  --r-done-bg: rgba(52, 211, 153, 0.14);
  --r-done-ink: #34d399;
  --r-track: #3a4661;
  --r-tick: #34d399;
  --r-tick-ink: #0e1118;
  --r-flag: #fbbf24;
  --r-progress: #5b7cff;
  --toast-bg: #1e3831;
  --toast-ink: #34d399;
  --toast-border: #2e5243;
  --toast-dot: #6ee7b7;
  --hl-to: #2dd4bf;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 20px 48px rgba(0, 0, 0, 0.55);
  --dots-opacity: 0.14;
  --glow-a: rgba(91, 124, 255, 0.22);
  --glow-b: rgba(45, 212, 191, 0.12);
  --header-bg: rgba(18, 21, 30, 0.88);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

p {
  max-width: 62ch;
}

a {
  color: var(--accent);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

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

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

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  transition: top 0.3s var(--ease-out);
}

.skip-link:focus-visible {
  top: 0.75rem;
}

/* Content links are underlined; nav, buttons and chips are the exception. */

.prose a:not(.btn),
.site-footer a,
.contact-meta a,
.cd-error a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Cross-page transitions (progressive enhancement) */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-out 0.18s ease both;
}

::view-transition-new(root) {
  animation: page-in 0.3s var(--ease-out) both;
}

@keyframes page-out {
  to {
    opacity: 0;
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Chip system: one spec, colour variants only. Status pill is the 999px variant. */

.chip,
.tile-tag,
.step-num,
.step-price {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.34rem 0.62rem;
  border-radius: 7px;
}

.chip,
.tag-teal,
.step-price {
  background: var(--chip-teal-bg);
  color: var(--chip-teal-ink);
}

.tag-blue,
.step-num {
  background: var(--chip-blue-bg);
  color: var(--chip-blue-ink);
}

.tag-green {
  background: var(--chip-green-bg);
  color: var(--chip-green-ink);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(10, 16, 28, 0.1);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--accent);
  transition: color 0.2s ease;
}

.wordmark:hover span {
  color: var(--accent-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav .nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.25s var(--ease-out), color 0.2s ease;
}

.site-nav .nav-link:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

/* Theme toggle */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-toggle .icon-moon {
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

.dark .theme-toggle .icon-moon {
  display: none;
}

.dark .theme-toggle .icon-sun {
  display: block;
}

/* Mobile menu: absolute overlay so opening or closing never shifts the page */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.6rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ground);
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s var(--ease-out), visibility 0s 0.35s;
  border-bottom: 0 solid var(--border);
  box-shadow: 0 14px 28px rgba(10, 16, 28, 0.12);
}

.menu-open .mobile-menu {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.35s var(--ease-out), visibility 0s 0s;
  border-bottom-width: 1px;
}

.mobile-menu-inner {
  overflow: hidden;
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid var(--border);
}

.mobile-menu a:first-child {
  border-top: 0;
}

.mobile-menu a:hover {
  color: var(--accent);
  background: var(--section-alt);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.72rem 1.35rem;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 16px var(--btn-glow);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: 0 8px 26px var(--btn-glow);
}

.btn-ghost {
  background: var(--ghost-bg);
  color: var(--ghost-ink);
  border-color: var(--ghost-border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--ghost-hover-bg);
  box-shadow: 0 6px 16px var(--ghost-glow);
}

/* Hero */

.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: var(--dots-opacity);
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 72% 28%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 72% 72% at 72% 28%, #000 30%, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -6rem 0 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 72% 24%, var(--glow-a), transparent 70%),
    radial-gradient(ellipse 40% 35% at 20% 80%, var(--glow-b), transparent 75%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}

.recon-wrap {
  max-width: 580px;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  .recon-wrap {
    max-width: none;
  }
}

.kicker,
.section-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 1.1rem;
}

.kicker::before,
.section-label::before {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--hl-to));
  vertical-align: middle;
  margin-right: 0.55rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.15rem);
  margin-bottom: 1.4rem;
}

.hero h1 .hl {
  background-image: linear-gradient(90deg, var(--accent), var(--hl-to));
  background-repeat: no-repeat;
  background-size: 100% 0.16em;
  background-position: 0 94%;
  padding-bottom: 0.06em;
}

.hero .lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 2.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.hero-meta {
  font-size: 0.9375rem;
  color: var(--muted);
}

.hero-copy .kicker,
.hero-copy h1,
.hero-copy .lede,
.hero-copy .hero-actions,
.hero-copy .hero-meta {
  animation: rise 0.7s var(--ease-out) both;
}

.hero-copy h1 {
  animation-delay: 0.08s;
}

.hero-copy .lede {
  animation-delay: 0.16s;
}

.hero-copy .hero-actions {
  animation-delay: 0.24s;
}

.hero-copy .hero-meta {
  animation-delay: 0.32s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Reconciliation panel */

.recon-wrap {
  animation: rise 0.7s var(--ease-out) 0.35s both;
}

.recon {
  position: relative;
  background: var(--r-bg);
  color: var(--r-ink);
  border: 1px solid var(--r-border);
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow-lift);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.recon-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.recon-title {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--r-muted);
}

.status {
  position: relative;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: var(--r-status-bg);
  color: var(--r-status-ink);
  flex: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.play .status {
  animation: status-done 0.3s ease 2.6s forwards;
}

@keyframes status-done {
  to {
    background: var(--r-done-bg);
    color: var(--r-done-ink);
  }
}

.status .s-run,
.status .s-done {
  transition: opacity 0.3s ease;
}

.status .s-done {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.play .status .s-run {
  opacity: 0;
  transition-delay: 2.6s;
}

.play .status .s-done {
  opacity: 1;
  transition-delay: 2.6s;
}

.recon-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--r-border);
  font-size: 0.86rem;
}

.recon-row .r-label {
  font-weight: 500;
  white-space: nowrap;
}

.recon-row .r-meta {
  position: relative;
  margin-left: auto;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  color: var(--r-muted);
  text-align: right;
  white-space: nowrap;
}

.r-meta .m-flag,
.r-meta .m-res {
  transition: opacity 0.3s ease;
}

.r-meta .m-flag {
  color: var(--r-flag);
}

.r-meta .m-res {
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0;
  color: var(--r-done-ink);
}

.play .m-flag {
  opacity: 0;
  transition-delay: 2.3s;
}

.play .m-res {
  opacity: 1;
  transition-delay: 2.6s;
}

.tick {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--r-tick);
  color: var(--r-tick-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 0.6rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.4);
}

.play .tick {
  animation: pop 0.45s var(--ease-out) forwards;
}

.play .r1 .tick {
  animation-delay: 0.5s;
}

.play .r2 .tick {
  animation-delay: 1.05s;
}

.play .r3 .tick {
  animation-delay: 1.6s;
}

.play .r4 .tick {
  animation-delay: 2.45s;
}

@keyframes pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.progress {
  height: 4px;
  background: var(--r-track);
  border-radius: 99px;
  margin: 0.9rem 0 0.8rem;
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--r-progress);
  border-radius: 99px;
}

.play .progress i {
  animation: fill 2.3s 0.4s cubic-bezier(0.3, 0.6, 0.3, 1) forwards;
}

@keyframes fill {
  to {
    width: 100%;
  }
}

.recon-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  color: var(--r-muted);
}

.recon-foot b {
  color: var(--r-ink);
  font-weight: 600;
}

.toast {
  position: absolute;
  right: 1rem;
  bottom: -1.15rem;
  background: var(--toast-bg);
  color: var(--toast-ink);
  border: 1px solid var(--toast-border);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(10, 14, 20, 0.28);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  opacity: 0;
  transform: translateY(12px);
}

.toast .t-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--toast-dot);
}

.play .toast {
  animation: toastin 0.5s var(--ease-out) 2.9s forwards;
}

@keyframes toastin {
  to {
    opacity: 1;
    transform: none;
  }
}

.recon-caption {
  margin-top: 1.9rem;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Stat strip */

.stat-strip {
  border-block: 1px solid var(--border);
}

.stat-strip .wrap {
  display: flex;
  flex-wrap: wrap;
}

.stat {
  flex: 1 1 220px;
  padding: 1.3rem 1.5rem;
  border-left: 1px solid var(--border);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat .stat-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent);
}

@supports (-webkit-background-clip: text) {
  .stat .stat-value {
    width: fit-content;
    background-image: linear-gradient(90deg, var(--stat-grad-a), var(--stat-grad-b), var(--stat-grad-a));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 7s ease-in-out infinite alternate;
  }
}

/* The one ambient motion in the system: a slow drift across gradient stats. */

@keyframes shimmer {
  from {
    background-position: 0% 0;
  }

  to {
    background-position: 100% 0;
  }
}

.stat .stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Sections */

section {
  padding: 5rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* Sections alternate ground and section-alt automatically in DOM order.
   Add or remove sections freely; never hand-pick a section background. */

main > section:nth-of-type(even) {
  background: var(--section-alt);
}

section h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  max-width: 26ch;
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 2.6rem;
}

/* Scroll reveal (only when JS is present) */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Card material: every raised content box shares this one spec, including
   its hover. One lift, one ring, one timing, in and out. */

.card,
.tile,
.step,
.boundary,
.glance,
.band,
.bundle {
  background: var(--card-bg);
  color: var(--card-ink);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem 1.6rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.card:hover,
.tile:hover,
.step:hover,
.boundary:hover,
.glance:hover,
.band:hover,
.bundle:hover,
.card:focus-within,
.tile:focus-within,
.bundle:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--card-border-hover);
}

.card h3,
.tile h3,
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p,
.tile p,
.step p,
.boundary p {
  font-size: 0.9375rem;
  color: var(--card-muted);
}

/* Services cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 1.15rem;
  align-items: center;
}

.card {
  display: flex;
  flex-direction: column;
}

.card .price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--card-accent);
  margin-bottom: 0.3rem;
}

.card .price small {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--card-muted);
}

.card .card-note {
  font-size: 0.9375rem;
  color: var(--card-muted);
  margin-bottom: 1.1rem;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9375rem;
}

.card li {
  padding-left: 1.45rem;
  position: relative;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.62em;
  height: 0.34em;
  border-left: 2px solid var(--card-pop);
  border-bottom: 2px solid var(--card-pop);
  transform: rotate(-45deg);
}

.tiers {
  border-top: 1px solid var(--card-border);
  margin: 0.4rem 0 1.1rem;
}

.tiers div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.9375rem;
}

.tiers div strong {
  font-weight: 600;
}

.tiers div span {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--card-accent);
  font-weight: 600;
  white-space: nowrap;
}

.card .chip {
  align-self: flex-start;
  margin-top: 1rem;
}

.pricing-note {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.pricing-note .mono {
  font-size: 0.875rem;
}

/* Products: equal-height cards with the buy buttons on one shared line */

#products .cards {
  align-items: stretch;
}

.card .card-actions {
  margin-top: auto;
  padding-top: 1.15rem;
}

.bundle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  width: min(100%, 780px);
  margin: 1.15rem auto 0;
}

.bundle-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.bundle-info p {
  font-size: 0.9375rem;
  color: var(--card-muted);
  max-width: 52ch;
}

.bundle-info .chip {
  margin-top: 0.85rem;
}

.bundle-buy {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.bundle-price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--card-accent);
}

.bundle-price small {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--card-muted);
}

.products-note {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Capabilities bento */

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile-wide {
  grid-column: span 2;
}

@media (max-width: 699px) {
  .tile-wide {
    grid-column: auto;
  }
}

/* In the two-column window the seven tiles leave a hole; widen the sixth
   so every row stays filled. */

@media (min-width: 700px) and (max-width: 1079px) {
  .bento > .tile:nth-child(6) {
    grid-column: span 2;
  }
}

/* Three-card grids drop to two columns on tablets; a lone last card spans
   the row instead of leaving an empty cell. */

@media (min-width: 610px) and (max-width: 900px) {
  .cards > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 570px) and (max-width: 840px) {
  .steps > .step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.tile .tile-tag {
  margin-bottom: 1rem;
}

.tile-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 620px);
  padding: 1.9rem 2rem;
  margin-top: 0.35rem;
}

.tile-cta p {
  max-width: 46ch;
}

/* Case study band: card material at feature-panel radius. On desktop the
   stats stack in a right-hand column so the panel carries no dead space. */

.band {
  border-radius: 20px;
  padding: 2.75rem 3rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .band {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 3.5rem;
    align-items: center;
  }

  .band-stats {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0;
  }

  .band .case-footnote {
    grid-column: 1 / -1;
  }
}

.band .band-body {
  color: var(--band-muted);
  max-width: 62ch;
}

.band .band-body p + p {
  margin-top: 1.05rem;
}

.band-stats {
  display: flex;
  gap: 2.6rem;
  flex-wrap: wrap;
  margin-top: 1.9rem;
}

@media (max-width: 1023px) {
  .band-stats {
    justify-content: space-between;
  }
}

.band-stat .stat-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--band-grad-a);
}

@supports (-webkit-background-clip: text) {
  .band-stat .stat-value {
    width: fit-content;
    background-image: linear-gradient(90deg, var(--band-grad-a), var(--band-grad-b), var(--band-grad-a));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 7s ease-in-out infinite alternate;
  }
}

.band-stat .stat-label {
  font-size: 0.8125rem;
  color: var(--band-muted);
  margin-top: 0.25rem;
}

.band .case-footnote {
  margin-top: 1.9rem;
  font-size: 0.875rem;
  color: var(--band-muted);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 1.15rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step .step-num {
  margin-bottom: 1.1rem;
}

.step .step-price {
  margin-top: auto;
  padding-top: 0.95rem;
}

/* About: prose beside a stacked side column (at a glance + boundary), so the
   right-hand cards fill the height rather than floating. */

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: stretch;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.about-side .boundary {
  flex: 1;
}

.glance h3 {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.glance ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9375rem;
  color: var(--card-muted);
}

.glance li {
  padding-left: 1.45rem;
  position: relative;
}

.glance li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.62em;
  height: 0.34em;
  border-left: 2px solid var(--card-pop);
  border-bottom: 2px solid var(--card-pop);
  transform: rotate(-45deg);
}

.about-body p + p {
  margin-top: 1.1rem;
}

.about-body p {
  font-size: 1rem;
  color: var(--muted);
}

.boundary h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* FAQ */

#faq .section-label,
#faq h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  max-width: 760px;
  margin: 1.5rem auto 0;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  color: var(--accent);
}

.faq-list summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--card-pop);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
}

.faq-list details[open]::details-content {
  block-size: auto;
}

.faq-list .faq-answer {
  padding: 0 2.5rem 1.3rem 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Contact */

.contact {
  text-align: center;
}

.contact h2,
.contact p {
  margin-left: auto;
  margin-right: auto;
}

.contact .section-intro {
  margin-bottom: 2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.contact-meta {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.9rem 0 2.1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: grid;
  gap: 0.3rem;
}

.footer-brand p {
  font-size: 0.8125rem;
  max-width: 46ch;
}

.footer-meta {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
    white-space: normal;
  }
}

.site-footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-tagline {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
  color: var(--accent);
}

@supports (-webkit-background-clip: text) {
  .footer-tagline {
    display: inline-block;
    width: fit-content;
    background-image: linear-gradient(90deg, var(--accent), var(--hl-to));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}


/* Contact modal */

.contact-dialog {
  margin: auto;
  max-height: min(88vh, 46rem);
  overflow-y: auto;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card-bg);
  color: var(--card-ink);
  width: min(92vw, 520px);
  padding: 0;
  box-shadow: var(--shadow-lift);
}

.contact-dialog::backdrop {
  background: rgba(8, 12, 20, 0.55);
  backdrop-filter: blur(4px);
}

.contact-form,
.cd-success {
  padding: 1.9rem 1.9rem 1.7rem;
}

.cd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cd-head h3,
.cd-success h3 {
  font-size: 1.35rem;
}

.cd-close {
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--card-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cd-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.cd-intro {
  font-size: 0.9375rem;
  color: var(--card-muted);
  margin: 0.5rem 0 1.3rem;
}

.cd-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--card-muted);
  margin: 0.95rem 0 0.35rem;
}

.cd-label span {
  text-transform: none;
  letter-spacing: 0;
}

.cd-input {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--card-ink);
  background: var(--ground);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  transition: border-color 0.2s ease;
}

.cd-input:focus {
  border-color: var(--accent);
}

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

.cd-textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.cd-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cd-turnstile {
  margin-top: 0.4rem;
  min-height: 0;
}

.cd-turnstile iframe {
  max-width: 100%;
}

.cd-error {
  font-size: 0.875rem;
  color: var(--r-flag);
  margin-top: 0.9rem;
}

.cd-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.cd-success {
  text-align: center;
}

.cd-tick {
  width: 3rem;
  height: 3rem;
  margin: 0.4rem auto 1rem;
  border-radius: 50%;
  background: var(--r-tick);
  color: var(--r-tick-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.cd-success p {
  color: var(--card-muted);
  font-size: 0.9375rem;
  margin: 0.6rem auto 1.4rem;
}

/* Prose pages (privacy, 404): same container as every other page, with the
   text held to a readable measure against its left edge. */

.prose {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.prose > * {
  max-width: 70ch;
}

.prose h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2.4rem 0 0.7rem;
}

.prose p,
.prose ul {
  margin-bottom: 1rem;
}

.prose ul {
  padding-left: 1.3rem;
}

.prose .updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

/* Responsive */

@media (max-width: 940px) {
  .site-nav .nav-link {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: grid;
  }
}

@media (max-width: 920px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .band {
    padding: 2.2rem 1.6rem;
  }

  .band-stats {
    gap: 1.8rem;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 3.25rem 0 3rem;
  }

  section {
    padding: 2.75rem 0;
  }

  .stat {
    flex-basis: 100%;
    border-left: 0;
    padding-left: 0;
    padding-block: 0.85rem;
  }

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

  .faq-list .faq-answer {
    padding-right: 1rem;
  }
}

@media (max-width: 560px) {
  .site-header .wrap,
  .site-nav {
    gap: 0.6rem;
  }

  .wordmark {
    font-size: 1.05rem;
  }

  .site-header .btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .theme-toggle,
  .nav-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .recon-row {
    font-size: 0.82rem;
  }

  .recon-row .r-meta {
    font-size: 0.68rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: -2.3rem;
    justify-content: center;
  }

  .recon-caption {
    margin-top: 3.1rem;
  }
}

/* Reduced motion */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .tick,
  .toast {
    opacity: 1;
    transform: none;
  }

  .progress i {
    width: 100%;
  }

  .status {
    background: var(--r-done-bg);
    color: var(--r-done-ink);
  }

  .status .s-run {
    opacity: 0;
  }

  .status .s-done {
    opacity: 1;
  }

  .r-meta .m-flag {
    opacity: 0;
  }

  .r-meta .m-res {
    opacity: 1;
  }
}
