/* 00-tokens.css */
/* Self-hosted fonts — latin subset only. Fraunces and Inter ship as variable
   fonts from Google Fonts: the same physical file covers multiple static
   weights (the browser selects the instance via the font-weight descriptor),
   so several @font-face blocks below intentionally point at one file. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/fraunces-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fraunces-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/fraunces-latin-italic-500.woff2') format('woff2');
}

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

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

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

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
}

:root {
  /* Signal Editorial × Astrion brand kit. Dark is the default theme: charcoal
     paper like the business cards, deeper-black accent bands (--ink surfaces),
     cool-white text. Light mode overrides below via html[data-theme="light"].
     Semantics: --text is page-level text and flips per theme; --cream is text
     on dark surfaces (.section-dark, drawer, dark cards) and never flips —
     those surfaces stay dark in both themes. --accent is the logo blue for
     fills/buttons; --accent-text is blue that passes contrast as TEXT on the
     current paper. --field is the raised input surface. */
  --paper: #0E0F12; --ink: #060608; --text: #F0F2F5; --cream: #F0F2F5;
  --field: #17191D;
  --sec: #9BA0A8; --muted: #8A8F96; --accent: #0A5CF0; --accent-text: #4D8DFF;
  --hairline: rgba(255, 255, 255, .12); --hairline-dark: rgba(255, 255, 255, .16);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --t-hero: clamp(2.6rem, 8vw, 5.5rem); --t-h1: clamp(2.2rem, 5vw, 4rem);
  --t-h2: clamp(1.6rem, 3vw, 2.6rem); --t-h3: clamp(1.15rem, 2vw, 1.5rem);
  --t-body: 1rem; --t-small: .875rem; --t-eyebrow: .6875rem;
  --space-xs: .5rem; --space-sm: 1rem; --space-md: 2rem;
  --space-lg: clamp(3rem, 6vw, 5.5rem); --space-xl: clamp(4.5rem, 9vw, 8rem);
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --shadow-1: 0 2px 12px rgba(11, 11, 12, .06);
  --ease-feedback: cubic-bezier(.3, 0, .2, 1); --dur-feedback: .18s;
  --ease-entrance: cubic-bezier(.16, 1, .3, 1); --dur-entrance: .6s;
  --ease-morph: cubic-bezier(.4, 0, .2, 1); --dur-morph: .5s;
}

/* Light mode — the neutral-gray gallery. Dark bands (.section-dark, dark
   cards, drawer) keep their --ink/--cream pairing and stay dark. */
html[data-theme='light'] {
  --paper: #F3F4F5; --ink: #0B0B0C; --text: #0B0B0C; --cream: #F5F5F0;
  --field: #FFFFFF;
  --sec: #6F6F6F; --muted: #A1A1A1; --accent-text: #0A5CF0;
  --hairline: rgba(11, 11, 12, .10);
}

/* 01-base.css */
/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
img, picture, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* Typography */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: var(--t-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.eyebrow {
  font: 500 var(--t-eyebrow)/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sec);
}

/* Layout */
.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--hairline);
}

.section-dark {
  background: var(--ink);
  color: var(--cream);
  border-top: none;
  position: relative;
}
.section-dark .eyebrow { color: var(--muted); }
.section-dark > .container { position: relative; z-index: 1; }

.hairline-top { border-top: 1px solid var(--hairline); }
.section-dark .hairline-top { border-top-color: var(--hairline-dark); }

/* Buttons */
.btn-primary, .btn-ghost, .btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .85rem 1.75rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-small);
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--dur-feedback) var(--ease-feedback),
              box-shadow var(--dur-feedback) var(--ease-feedback);
}
.btn-primary:hover, .btn-primary:focus-visible,
.btn-ghost:hover, .btn-ghost:focus-visible,
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible {
  transform: translateY(-2px);
}
.btn-primary:active, .btn-ghost:active, .btn-ghost-dark:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-1);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

/* Starfield — dark-only decorative dot layer, pattern/technique carried over from the
   approved "Mission Control" mockup (radial-gradient dots on the dark hero), recolored
   to Signal Editorial's --cream (no accent dot: cobalt stays reserved for .btn-primary).
   Markup: <div class="starfield" aria-hidden="true"></div> as the first child of a
   position:relative dark container (e.g. .section-dark). */
.starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(245, 245, 240, .9) 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 14%, rgba(245, 245, 240, .7) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 64%, rgba(245, 245, 240, .5) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 46%, rgba(245, 245, 240, .8) 50%, transparent 51%),
    radial-gradient(1px 1px at 25% 78%, rgba(245, 245, 240, .5) 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 12%, rgba(245, 245, 240, .6) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 55%, rgba(245, 245, 240, .55) 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 90%, rgba(245, 245, 240, .4) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 40%, rgba(245, 245, 240, .65) 50%, transparent 51%),
    radial-gradient(1px 1px at 97% 80%, rgba(245, 245, 240, .45) 50%, transparent 51%),
    radial-gradient(1px 1px at 15% 8%, rgba(245, 245, 240, .5) 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 92%, rgba(245, 245, 240, .4) 50%, transparent 51%);
}

/* Selection + scrollbar — themed so OS defaults don't break the surface */
::selection {
  background: var(--accent);
  color: #fff;
}

html {
  scrollbar-color: #3A3D45 var(--paper);
}

html[data-theme='light'] {
  scrollbar-color: #B9BDC4 var(--paper);
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: #3A3D45;
  border-radius: 6px;
  border: 3px solid var(--paper);
}
html[data-theme='light'] ::-webkit-scrollbar-thumb { background: #B9BDC4; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 2px;
}
.section-dark :focus-visible {
  outline-color: var(--cream);
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *{animation:none!important;transition:none!important}
}

/* 02-nav.css */
/* Sitewide nav, drawer, footer — mobile-first. Nav starts transparent over
   the page top and solidifies to --ink on scroll (.nav--solid, toggled by
   src/js/nav.js watching the #nav-sentinel IntersectionObserver target).
   Drawer motion is transform + a delayed visibility flip only. */

:root {
  --nav-h: 4.5rem;
}

/* Sentinel: zero footprint, positioned against the document (not the fixed
   header) so scrolling the page moves it out of the viewport. */
#nav-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Lock body scroll while the drawer is open (toggled via JS). */
html.scroll-locked,
body.scroll-locked {
  overflow: hidden;
  height: 100%;
}

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

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur-morph) var(--ease-morph),
    border-color var(--dur-morph) var(--ease-morph);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: var(--space-sm);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color var(--dur-morph) var(--ease-morph);
}

.nav-logo-tile {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  margin-right: .6rem;
}

.nav-logo-dot {
  color: var(--accent);
}

.nav-links {
  display: none;
}

.nav-links ul {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--t-small);
  color: var(--text);
  transition: color var(--dur-morph) var(--ease-morph);
}

.nav-links a[aria-current='page'] {
  color: var(--accent-text);
}

/* ---------- Nav tools: theme toggle + burger ---------- */

.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  color: var(--text);
  transition: color var(--dur-morph) var(--ease-morph);
}

.theme-toggle svg { display: none; }

/* Show the icon of the theme you'd switch TO */
html:not([data-theme='light']) .theme-toggle .icon-sun { display: block; }
html[data-theme='light'] .theme-toggle .icon-moon { display: block; }

.nav--solid .theme-toggle,
.nav--drawer-open .theme-toggle,
.page-dark .nav .theme-toggle {
  color: var(--cream);
}

/* ---------- Burger ---------- */

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.nav-burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition:
    transform var(--dur-morph) var(--ease-morph),
    background-color var(--dur-morph) var(--ease-morph);
}

.nav-burger[aria-expanded='true'] .nav-burger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-burger[aria-expanded='true'] .nav-burger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Solid state (scrolled, or drawer forced open) ---------- */

.nav--solid,
.nav--drawer-open {
  background: var(--ink);
  border-bottom-color: var(--hairline-dark);
}

.nav--solid .nav-logo,
.nav--drawer-open .nav-logo,
.nav--solid .nav-links a,
.nav--drawer-open .nav-links a {
  color: var(--cream);
}

.nav--solid .nav-links a[aria-current='page'],
.nav--drawer-open .nav-links a[aria-current='page'] {
  color: var(--accent-text);
}

.nav--solid .nav-burger-line,
.nav--drawer-open .nav-burger-line {
  background: var(--cream);
}

/* Focus rings default to --ink (see 01-base.css) which is invisible against
   the dark bar/drawer — flip to cream whenever the surface underneath is dark. */
.nav--solid :focus-visible,
.nav--drawer-open :focus-visible,
.drawer :focus-visible {
  outline-color: var(--cream);
}

/* ---------- Drawer ---------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-morph) var(--ease-morph);
}

.drawer-scrim--visible {
  opacity: 0.5;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  inset-block: 0;
  right: 0;
  z-index: 45;
  width: min(100%, 420px);
  background: var(--ink);
  color: var(--cream);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform var(--dur-morph) var(--ease-morph),
    visibility 0s linear var(--dur-morph);
}

.drawer--open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform var(--dur-morph) var(--ease-morph),
    visibility 0s linear 0s;
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: calc(var(--nav-h) + var(--space-md));
  padding-bottom: var(--space-lg);
  gap: var(--space-xl);
}

.drawer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.drawer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.75rem, 9vw, 2.5rem);
  line-height: 1.2;
  color: var(--cream);
  transition: color var(--dur-feedback) var(--ease-feedback);
}

.drawer-nav a:hover,
.drawer-nav a:focus-visible,
.drawer-nav a[aria-current='page'] {
  color: var(--accent);
}

.drawer-start {
  width: 100%;
  margin-top: auto;
}

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

.footer {
  padding-block: var(--space-lg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: var(--t-small);
  color: var(--sec);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--sec);
}

.footer-contact a {
  color: var(--text);
  width: fit-content;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-sm);
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-text);
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--text);
}

.footer-bottom {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sec);
}

.footer-tag-dot { color: var(--accent-text); }

/* ---------- Desktop ≥768px ---------- */

@media (min-width: 768px) {
  .nav-links {
    display: block;
  }

  .nav-burger {
    display: none;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* 03-home.css */
/* Homepage — hero field, proof strip, services, work, pricing band, steps,
   why, final CTA. Mobile-first; desktop enhancements at ≥768px. */

/* ---------- 01 Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + var(--space-lg));
  padding-bottom: var(--space-lg);
  background: var(--paper);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.hero h1 {
  font-size: var(--t-hero);
  font-weight: 600;
  line-height: 1.12;
  margin-top: var(--space-sm);
}

.hero .h1-line {
  margin: -.08em -.09em -.13em;
  padding: .08em .09em .13em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-text);
}

.hero-trust {
  margin-top: var(--space-sm);
  font: 500 var(--t-eyebrow)/1.6 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sec);
}

.hero-trust a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-zero {
  display: block;
  margin-top: .35rem;
}

.hero-live-sites {
  margin-top: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  align-items: center;
  font: 500 var(--t-eyebrow)/1.5 var(--font-mono);
  letter-spacing: .08em;
}

.hero-live-sites span {
  color: var(--accent-text);
  text-transform: uppercase;
}

.hero-live-sites a {
  color: var(--sec);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-live-sites a:hover,
.hero-live-sites a:focus-visible {
  color: var(--text);
}

.hero-sub {
  margin-top: var(--space-md);
  max-width: 34rem;
  color: var(--sec);
  font-size: var(--t-h3);
  font-family: var(--font-body);
  line-height: 1.5;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Brand layer behind the hero copy: a whisper of the business-card hexagon
   mesh plus the chrome-blue A-mark as a low-opacity glow. Purely decorative
   (aria-hidden); the mark is a luminance-alpha cut of the logo so the dark
   paper shows through it. */
.hero-brand {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z' fill='%23FFFFFF' fill-opacity='.04' fill-rule='evenodd'/%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

html[data-theme='light'] .hero-mesh {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z' fill='%230B0B0C' fill-opacity='.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.hero-mark {
  position: absolute;
  width: min(88vw, 340px);
  height: auto;
  right: -18%;
  bottom: -4%;
  opacity: .3;
}

.hero-mark--light { display: none; }

html[data-theme='light'] .hero-mark { display: none; }

html[data-theme='light'] .hero-mark--light {
  display: block;
  opacity: .07;
}

/* ---------- 02 Proof strip ---------- */

.proof-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-md);
}

.proof-strip li {
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--sec);
  padding-left: 1.1rem;
  position: relative;
}

.proof-strip li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Shared section furniture ---------- */

.section .eyebrow + h2,
.section .eyebrow + h1 {
  margin-top: var(--space-sm);
}

.section h2 {
  font-size: var(--t-h2);
  font-weight: 600;
}

.section-cta {
  margin-top: var(--space-md);
}

/* ---------- 03 Services + 06 Steps: editorial numbered rows ---------- */

.service-rows {
  margin-top: var(--space-md);
}

.service-row {
  display: grid;
  gap: .3rem;
  padding-block: var(--space-md);
  border-top: 1px solid var(--hairline);
}

.row-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-small);
  color: var(--accent-text);
}

.service-row h3 {
  font-size: var(--t-h3);
  font-weight: 600;
}

.service-link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .2em;
  transition: color var(--dur-feedback) var(--ease-feedback),
              text-decoration-color var(--dur-feedback) var(--ease-feedback);
}

.service-link:hover,
.service-link:focus-visible {
  color: var(--accent-text);
  text-decoration-color: currentColor;
}

.coming-soon {
  display: inline-flex;
  margin-left: .45rem;
  vertical-align: middle;
  padding: .35rem .65rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  color: var(--accent-text);
  font: 500 var(--t-eyebrow)/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-row p {
  color: var(--sec);
  max-width: 40rem;
}

.services-plus {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--sec);
}

/* ---------- 04 Work ---------- */

.work-grid {
  margin-top: var(--space-md);
  display: grid;
  gap: var(--space-md);
}

/* Browser-frame presentation for site screenshots (homepage + work page) */
.shot-frame {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-1);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: .55rem .8rem;
  border-bottom: 1px solid var(--hairline);
}

.shot-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline-dark);
}

.shot-url {
  margin-left: .6rem;
  font: 500 var(--t-eyebrow)/1 var(--font-mono);
  letter-spacing: .08em;
  color: var(--muted);
}

.shot-frame picture {
  display: block;
}

.shot-frame img {
  width: 100%;
  height: auto;
}

.work-card h3 {
  margin-top: var(--space-sm);
  font-size: var(--t-h3);
  font-weight: 600;
}

.work-card p {
  color: var(--sec);
  font-size: var(--t-small);
  margin-top: .25rem;
}

.work-card-link {
  display: block;
  border-radius: var(--r-md);
}

.work-card-link:focus-visible {
  outline-offset: 6px;
}

@media (max-width: 767px) {
  .shot-frame picture {
    aspect-ratio: 10 / 19;
    overflow: hidden;
  }

  .shot-frame img {
    height: 100%;
    object-fit: cover;
  }
}

/* ---------- 05 Pricing band ---------- */

.pricing-band { overflow: hidden; }

.price-chips {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.price-chips li {
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--cream);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--r-pill);
  padding: .6rem 1.2rem;
}

.promise {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--t-h3);
  line-height: 1.4;
  max-width: 36rem;
}

/* ---------- 07 Why ---------- */

.why-inner { max-width: 46rem; }

.why-inner h2 + p,
.why-inner p + p {
  margin-top: var(--space-md);
}

.why-inner p {
  color: var(--sec);
}

.why-close {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--t-h3);
  color: var(--text);
}

/* ---------- 08 Final CTA ---------- */

.final-cta {
  padding-block: var(--space-xl);
  overflow: hidden;
}

.final-cta h2 {
  font-size: var(--t-h1);
  font-weight: 600;
}

.cta-logo {
  width: auto;
  height: 96px;
  margin-bottom: var(--space-md);
}

.final-cta-line {
  margin-top: var(--space-md);
  color: var(--muted);
  max-width: 36rem;
}

.final-cta-line a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.final-cta .hero-actions {
  margin-top: var(--space-md);
  justify-content: flex-start;
}

/* ---------- Desktop ≥768px ---------- */

@media (min-width: 768px) {
  .hero {
    min-height: min(86dvh, 50rem);
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    padding-bottom: var(--space-sm);
  }

  .hero-inner {
    max-width: 56rem;
    margin-inline: auto;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 6.2vw, 4.6rem);
  }

  .hero-sub {
    margin-top: 1.25rem;
    margin-inline: auto;
    font-size: 1.25rem;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 1.25rem;
  }

  .hero-trust { margin-top: .75rem; }

  .hero-live-sites {
    justify-content: center;
    margin-top: .5rem;
  }

  .hero-mark {
    width: min(34vw, 460px);
    right: -2%;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    opacity: .28;
  }

  html[data-theme='light'] .hero-mark--light { opacity: .08; }

  .proof-strip { grid-template-columns: repeat(4, 1fr); }

  .service-row {
    grid-template-columns: 3.5rem 15rem 1fr;
    align-items: baseline;
    gap: var(--space-md);
  }

  .work-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md) var(--space-sm); }

  .final-cta {
    min-height: 100dvh;
    display: flex;
    align-items: center;
  }

  .final-cta .container { width: 100%; }
}

/* 04-work.css */
/* Work page + shared page-head pattern (also used by pricing/forms pages). */

.case {
  scroll-margin-top: var(--nav-h);
}

.page-head {
  padding-top: calc(var(--nav-h) + var(--space-lg));
  padding-bottom: var(--space-lg);
}

.page-head h1 {
  font-size: var(--t-h1);
  font-weight: 600;
  margin-top: var(--space-sm);
}

.page-lede {
  margin-top: var(--space-sm);
  color: var(--sec);
  max-width: 34rem;
}

.work-live-sites {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin-top: var(--space-md);
}

.work-live-sites a,
.case-live-link {
  color: var(--accent-text);
  font: 500 var(--t-small)/1.4 var(--font-mono);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-live-sites a:hover,
.work-live-sites a:focus-visible,
.case-live-link:hover,
.case-live-link:focus-visible {
  color: var(--text);
}

/* ---------- Case blocks ---------- */

.case-inner {
  display: grid;
  gap: var(--space-md);
}

.case-media {
  position: relative;
}

.case-shot-desktop {
  display: block;
}

.case-shot-desktop img {
  width: 100%;
  height: auto;
}



.case-copy h2 {
  font-size: var(--t-h2);
  font-weight: 600;
}

.case-copy h2 a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .18em;
  transition: color var(--dur-feedback) var(--ease-feedback),
              text-decoration-color var(--dur-feedback) var(--ease-feedback);
}

.case-copy h2 a:hover,
.case-copy h2 a:focus-visible {
  color: var(--accent-text);
  text-decoration-color: currentColor;
}

.case-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: .6rem;
  font: 500 var(--t-eyebrow)/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sec);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: .45rem .8rem;
}

.case-facts {
  margin-top: var(--space-md);
  display: grid;
  gap: var(--space-sm);
}

.case-facts dt {
  font: 500 var(--t-eyebrow)/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.case-facts dd {
  margin-top: .35rem;
  color: var(--sec);
}

.case-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-close {
  margin-top: var(--space-sm);
  color: var(--sec);
  max-width: 34rem;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ---------- Dedicated case studies ---------- */

.case-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.case-detail-grid {
  display: grid;
  gap: var(--space-md);
}

.case-detail-shot picture {
  display: block;
}

.case-summary {
  align-self: stretch;
  display: grid;
  border-top: 1px solid var(--hairline);
}

.case-summary > div {
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--hairline);
}

.case-summary dt {
  color: var(--accent-text);
  font: 500 var(--t-eyebrow)/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-summary dd {
  margin-top: .45rem;
  color: var(--sec);
}

.case-summary a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-story {
  display: grid;
  gap: var(--space-lg);
}

.case-story h2 {
  margin-top: var(--space-sm);
  font-size: var(--t-h2);
}

.case-story p:last-child {
  margin-top: var(--space-sm);
  color: var(--sec);
}

.case-next {
  overflow: hidden;
}

.case-next h2 {
  margin-top: var(--space-sm);
  font-size: var(--t-h2);
}

.case-next p:not(.eyebrow) {
  max-width: 42rem;
  margin-top: var(--space-sm);
  color: var(--muted);
}

.case-next .btn-primary {
  margin-top: var(--space-md);
}

/* ---------- Desktop ≥768px ---------- */

@media (min-width: 768px) {
  .case-inner {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: var(--space-lg);
  }

  .case--flip .case-inner {
    grid-template-columns: 5fr 7fr;
  }

  .case--flip .case-media {
    order: 2;
  }

  .case-detail-grid {
    grid-template-columns: 8fr 4fr;
    align-items: start;
    gap: var(--space-lg);
  }

  .case-story {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

}

/* 05-pricing.css */
/* Pricing page — tier cards, systems note, promise band, FAQ. */

.tier-grid {
  display: grid;
  gap: var(--space-sm);
}

.tier {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--space-md);
  background: color-mix(in srgb, var(--field) 44%, transparent);
}

.tier--featured {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--hairline));
  box-shadow: inset 0 3px 0 var(--accent);
}

.tier-kicker {
  margin-bottom: var(--space-sm);
  color: var(--accent-text);
  font: 500 var(--t-eyebrow)/1.4 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tier h2 {
  font-size: var(--t-h3);
  font-weight: 600;
}

.tier-price {
  margin-top: var(--space-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-h3);
  color: var(--accent-text);
}

.tier-fit {
  margin-top: var(--space-sm);
  color: var(--sec);
  font-size: var(--t-small);
}

.tier-list {
  margin-top: var(--space-md);
  flex: 1;
}

.tier-list li {
  font-size: var(--t-small);
  color: var(--sec);
  padding-block: .55rem;
  border-top: 1px solid var(--hairline);
}

.tier-cta {
  width: 100%;
  margin-top: var(--space-md);
}

.pricing-clarity {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
}

.pricing-clarity > div {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .3rem var(--space-sm);
}

.pricing-clarity span {
  grid-row: 1 / 3;
  color: var(--accent-text);
  font: 500 var(--t-small)/1.4 var(--font-mono);
}

.pricing-clarity h3 {
  font-size: var(--t-h3);
  font-weight: 600;
}

.pricing-clarity p {
  color: var(--sec);
  font-size: var(--t-small);
}

.market-analysis {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hairline);
}

.market-analysis-head {
  display: grid;
  gap: var(--space-md);
}

.market-analysis-head h2 {
  margin-top: var(--space-sm);
}

.market-analysis-summary {
  max-width: 44rem;
  padding-left: var(--space-sm);
  border-left: 3px solid var(--accent);
  color: var(--sec);
}

.market-analysis-summary strong {
  color: var(--text);
}

.comparison-scroll {
  margin-top: var(--space-md);
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  scrollbar-width: thin;
}

.comparison-scroll:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent);
  outline-offset: 3px;
}

.comparison-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table caption {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--hairline);
  color: var(--sec);
  font: 500 var(--t-eyebrow)/1.5 var(--font-mono);
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  font-size: var(--t-small);
}

.comparison-table thead th {
  color: var(--sec);
  font: 500 var(--t-eyebrow)/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison-table tbody th {
  min-width: 10.5rem;
  color: var(--text);
  font-weight: 600;
}

.comparison-table tbody th span {
  display: block;
  margin-top: .2rem;
  color: var(--sec);
  font: 400 var(--t-eyebrow)/1.4 var(--font-mono);
}

.comparison-table td {
  color: var(--sec);
}

.comparison-table td strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
}

.comparison-table-current {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.current-label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-text);
  font: 500 var(--t-eyebrow)/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.comparison-source {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-text);
  font-weight: 600;
  white-space: nowrap;
}

.comparison-source:hover,
.comparison-source:focus-visible {
  color: var(--text);
}

.market-analysis-note {
  max-width: 60rem;
  margin-top: var(--space-sm);
  color: var(--sec);
  font-size: var(--t-eyebrow);
}

.project-options {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}

.project-options h2 {
  margin-top: var(--space-sm);
}

.project-options ul {
  display: grid;
  gap: .7rem;
}

.project-options li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--sec);
  font-size: var(--t-small);
}

.project-options li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.soon-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--field) 52%, transparent);
}

.soon-note > span {
  flex: 0 0 auto;
  padding: .35rem .65rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  color: var(--accent-text);
  font: 500 var(--t-eyebrow)/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.soon-note p {
  color: var(--sec);
  font-size: var(--t-small);
}

.soon-note strong {
  color: var(--text);
}

.promise-band { overflow: hidden; }

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

.faq {
  margin-top: var(--space-md);
  max-width: 46rem;
}

.faq details {
  border-top: 1px solid var(--hairline);
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 44px;
  padding-block: .85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h3);
}

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

.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--accent-text);
  transition: transform var(--dur-feedback) var(--ease-feedback);
}

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

.faq details p {
  padding-bottom: var(--space-sm);
  color: var(--sec);
  max-width: 38rem;
}

/* ---------- Desktop ≥768px ---------- */

@media (min-width: 768px) {
  .tier-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .pricing-clarity { grid-template-columns: repeat(3, 1fr); }

  .market-analysis-head {
    grid-template-columns: 5fr 7fr;
    align-items: end;
  }

  .project-options {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .soon-note { flex-direction: column; }
}

/* 06-forms.css */
/* Checkup + contact forms, thanks page. */

.form-layout {
  display: grid;
  gap: var(--space-lg);
}

.form {
  display: grid;
  gap: var(--space-sm);
  max-width: 34rem;
}

.field {
  display: grid;
  gap: .35rem;
}

.field label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-small);
}

.field-opt {
  color: var(--sec);
  font-weight: 400;
}

.field input,
.field textarea {
  min-height: 44px;
  padding: .6rem .9rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--field);
  transition: border-color var(--dur-feedback) var(--ease-feedback);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field textarea {
  resize: vertical;
}

/* Honeypot: visually removed, still in the accessibility-neutral DOM for bots */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .cf-turnstile {
  min-height: 65px;
}

.form-submit {
  justify-self: start;
}

/* ---------- Aside ---------- */

.form-aside {
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-md);
}

.aside-contact {
  margin-top: var(--space-sm);
  display: grid;
  gap: var(--space-xs);
  color: var(--sec);
}

.aside-contact a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aside-next {
  margin-top: var(--space-md);
}

.next-steps {
  margin-top: var(--space-sm);
  display: grid;
  gap: var(--space-sm);
  counter-reset: step;
}

.next-steps li {
  counter-increment: step;
  color: var(--sec);
  padding-left: 2.1rem;
  position: relative;
}

.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .1em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-small);
  color: var(--accent-text);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Thanks ---------- */

.thanks-head {
  min-height: 70dvh;
}

.submission-ref {
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--sec);
}

.submission-ref strong {
  color: var(--text);
}

/* ---------- Desktop ≥768px ---------- */

@media (min-width: 768px) {
  .form-layout {
    grid-template-columns: 7fr 4fr;
    align-items: start;
  }

  .form-aside {
    border-top: none;
    border-left: 1px solid var(--hairline);
    padding-top: 0;
    padding-left: var(--space-md);
  }
}

/* 07-misc.css */
/* Privacy prose + 404. */

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: var(--t-h3);
  font-weight: 600;
  margin-top: var(--space-md);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-top: var(--space-xs);
  color: var(--sec);
}

/* Pages that open on a dark surface: the transparent nav state needs cream
   text before it solidifies. */
.page-dark .nav .nav-logo,
.page-dark .nav .nav-links a {
  color: var(--cream);
}

.page-dark .nav .nav-burger-line {
  background: var(--cream);
}

.page-dark .nav :focus-visible {
  outline-color: var(--cream);
}

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

.error-hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--space-xl);
}

.error-hero h1 {
  font-size: var(--t-hero);
  font-weight: 600;
  margin-top: var(--space-sm);
}

.error-inner {
  width: 100%;
}

.error-line {
  margin-top: var(--space-sm);
  color: var(--muted);
}

/* 08-motion.css */
/* Motion & atmosphere — one easing family (--ease-entrance), 700–900ms with
   long tails, transform/opacity only. Everything that hides content is gated
   behind html.js (no-JS users see a fully static, fully visible page) and
   prefers-reduced-motion (reduced-motion users get instant content; the global
   kill-switch in 01-base also zeroes transitions). */

/* ---------- Film grain (all pages, above everything, non-interactive) ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 280px 280px;
}

@media (max-width: 767px) {
  .grain { display: none; }
}

/* ---------- Accent glows ---------- */

.hero-glow {
  position: absolute;
  right: -12%;
  top: 8%;
  width: min(64vw, 780px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(10, 92, 240, .15), transparent 62%);
}

html[data-theme='light'] .hero-glow { opacity: .5; }

.final-cta::after {
  content: '';
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: min(60vw, 700px);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(10, 92, 240, .12), transparent 60%);
}

/* ---------- Services marquee ---------- */

.marquee {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  padding-block: var(--space-sm);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
  min-width: 100%;
  justify-content: space-around;
  padding-right: var(--space-md);
  font: 500 var(--t-eyebrow)/1.4 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sec);
  white-space: nowrap;
}

.marquee-dot { color: var(--accent-text); }
.marquee-label { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .marquee-track {
    animation: marquee-roll 36s linear infinite;
  }

  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }

  @keyframes marquee-roll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - var(--space-md))); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track[aria-hidden='true'] { display: none; }
  .marquee-track { flex-wrap: wrap; white-space: normal; }
}

/* ---------- Availability badge ---------- */

/* Lives in the dark final-CTA band, so border/text use the dark-surface pair */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--hairline-dark);
  border-radius: var(--r-pill);
  padding: .5rem 1rem;
  font: 500 var(--t-eyebrow)/1.4 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2FBF71;
  flex-shrink: 0;
}

/* ---------- Hero headline mask ---------- */

.h1-line { display: block; overflow: hidden; }
.h1-line-inner { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .avail-dot {
    animation: avail-pulse 2.4s var(--ease-morph) infinite;
  }

  @keyframes avail-pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .45); }
    70% { box-shadow: 0 0 0 9px rgba(47, 191, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); }
  }

  /* Hero entrance: headline lines rise out of their masks, furniture follows */
  html.js .h1-line-inner {
    transform: translateY(112%);
    transition: transform .9s var(--ease-entrance);
  }
  html.js .h1-line:nth-of-type(2) .h1-line-inner { transition-delay: .12s; }
  html.js.loaded .h1-line-inner { transform: none; }

  html.js .hero .eyebrow,
  html.js .hero-sub,
  html.js .hero .hero-actions,
  html.js .hero-trust,
  html.js .hero-brand {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s var(--ease-entrance), transform .7s var(--ease-entrance);
  }
  html.js .hero-brand { transform: none; transition-duration: 1.4s; transition-delay: .25s; }
  html.js .hero .eyebrow { transition-delay: .08s; }
  html.js .hero-sub { transition-delay: .48s; }
  html.js .hero .hero-actions { transition-delay: .58s; }
  html.js .hero-trust { transition-delay: .68s; }
  html.js.loaded .hero .eyebrow,
  html.js.loaded .hero-sub,
  html.js.loaded .hero .hero-actions,
  html.js.loaded .hero-trust,
  html.js.loaded .hero-brand {
    opacity: 1;
    transform: none;
  }

  /* Scroll-triggered staggered reveals (classes applied by motion.js) */
  html.js .reveal {
    transform: translateY(22px);
    transition: transform .7s var(--ease-entrance);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  html.js .reveal.in-view {
    transform: none;
  }

  /* Portfolio hover choreography: image breathes inside its mask */
  .work-card picture img,
  .case-shot-desktop img {
    transition: transform .7s var(--ease-entrance);
  }
  .work-card:hover picture img,
  .work-card:focus-within picture img,
  .case-media:hover .case-shot-desktop img {
    transform: scale(1.04);
  }

  /* Nav links: underline grows from the left */
  .nav-links a { position: relative; }
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease-morph);
  }
  .nav-links a:hover::after,
  .nav-links a:focus-visible::after { transform: scaleX(1); }

  /* Primary button: blue bloom on hover */
  .btn-primary:hover,
  .btn-primary:focus-visible {
    box-shadow: 0 8px 28px rgba(10, 92, 240, .35);
  }
}

/* 09-services.css */
/* Focused service landing pages. */

.service-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.service-intro {
  display: grid;
  gap: var(--space-md);
}

.service-intro h2 {
  margin-top: var(--space-sm);
  font-size: var(--t-h2);
}

.service-intro > p {
  color: var(--sec);
  max-width: 40rem;
  font-size: var(--t-h3);
}

.service-feature-grid {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.service-feature-grid article {
  padding: var(--space-md);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}

.service-feature-grid span,
.care-list > li > span {
  color: var(--accent-text);
  font: 500 var(--t-small)/1 var(--font-mono);
}

.service-feature-grid h2,
.care-list h2 {
  margin-top: var(--space-sm);
  font-size: var(--t-h3);
}

.service-feature-grid p,
.care-list p {
  margin-top: var(--space-xs);
  color: var(--sec);
  font-size: var(--t-small);
}

.service-proof h2 {
  margin-top: var(--space-sm);
}

.service-proof-links {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.service-proof-links a {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: var(--space-md);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-feedback) var(--ease-feedback),
              transform var(--dur-feedback) var(--ease-feedback);
}

.service-proof-links a:hover,
.service-proof-links a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-text);
}

.service-proof-links span {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 600;
}

.service-proof-links small {
  color: var(--accent-text);
  font: 500 var(--t-small)/1.5 var(--font-mono);
}

.service-price {
  overflow: hidden;
}

.service-price h2 {
  margin-top: var(--space-sm);
  font-size: var(--t-h2);
}

.service-price-grid {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.service-price-grid > div {
  padding: var(--space-md);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--r-lg);
}

.service-price-grid span,
.care-price > span {
  color: var(--muted);
  font: 500 var(--t-eyebrow)/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-price-grid strong,
.care-price strong {
  display: block;
  margin-top: var(--space-xs);
  color: var(--accent-text);
  font: 500 var(--t-h2)/1.2 var(--font-mono);
}

.service-price-grid p {
  margin-top: var(--space-sm);
  color: var(--muted);
}

.service-price-note {
  max-width: 42rem;
  margin-top: var(--space-md);
  color: var(--muted);
}

.service-price .btn-primary {
  margin-top: var(--space-md);
}

.care-layout {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.care-price {
  align-self: start;
  padding: var(--space-md);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}

.care-price p {
  margin-top: var(--space-sm);
  color: var(--sec);
}

.care-price .btn-primary {
  width: 100%;
  margin-top: var(--space-md);
}

.care-list {
  border-top: 1px solid var(--hairline);
}

.care-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--hairline);
}

.care-list h2 {
  margin-top: 0;
}

@media (min-width: 768px) {
  .service-intro { grid-template-columns: 5fr 7fr; align-items: end; }
  .service-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .service-proof-links { grid-template-columns: repeat(3, 1fr); }
  .service-price-grid { grid-template-columns: repeat(2, 1fr); }
  .care-layout { grid-template-columns: 4fr 8fr; align-items: start; }
  .care-price { position: sticky; top: calc(var(--nav-h) + var(--space-sm)); }
}
