/* ==========================================================================
   COBALTHALL — Master Plumbing Service · Architectural-Modernist Premium
   Tier: growth · Type: business (plumber)
   Palette: cobalt-indigo · midnight-ink · warm bone · soft periwinkle
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --clr-primary: #1a1f3a;       /* deep midnight ink */
  --clr-primary-2: #2a3057;
  --clr-accent: #4361ee;        /* electric cobalt */
  --clr-accent-2: #6c83f6;      /* soft cobalt-blue */
  --clr-accent-3: #b8c0ff;      /* periwinkle */
  --clr-bg: #f6f4ee;            /* warm bone */
  --clr-bg-2: #ecebe5;          /* tinted bone */
  --clr-bg-3: #e2e1da;          /* dusk bone */
  --clr-dark: #0a0e1f;          /* black ink */
  --clr-dark-2: #11162a;
  --clr-text: #1a1f3a;
  --clr-text-mute: #6b7188;
  --clr-line: rgba(26, 31, 58, 0.10);
  --clr-line-strong: rgba(26, 31, 58, 0.22);
  --clr-line-dark: rgba(184, 192, 255, 0.16);
  --clr-card: #ffffff;

  --grad-cobalt: linear-gradient(135deg, #4361ee 0%, #2c47d8 100%);
  --grad-ink: linear-gradient(180deg, #11162a 0%, #0a0e1f 100%);
  --grad-glow: radial-gradient(circle at 30% 30%, rgba(67,97,238,0.22), transparent 60%);

  --shadow-sm: 0 1px 2px rgba(10, 14, 31, 0.05);
  --shadow-md: 0 8px 24px -6px rgba(10, 14, 31, 0.10), 0 2px 6px rgba(10, 14, 31, 0.05);
  --shadow-lg: 0 24px 60px -16px rgba(10, 14, 31, 0.20), 0 8px 20px -6px rgba(10, 14, 31, 0.08);
  --shadow-cobalt: 0 16px 48px -12px rgba(67, 97, 238, 0.35);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --t-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-med: 320ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --rail-w: 64px;
  --header-h: 80px;
  --container: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ol, ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--clr-primary); }
p { color: var(--clr-text); }
hr { border: 0; border-top: 1px solid var(--clr-line); }
input, textarea, select { font: inherit; color: inherit; }

/* Livewire loading state — must be in stylesheet for static preview parity */
[wire\:loading],
[wire\:loading\.delay],
[wire\:loading\.inline-block],
[wire\:loading\.inline] { display: none; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--clr-primary); color: #fff; padding: 0.75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Keyboard focus */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 4px;
}
.form__field input:focus-visible,
.form__field textarea:focus-visible {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.18);
}
.rail__dot:focus-visible span {
  outline: 2px solid var(--clr-accent);
  outline-offset: 4px;
  border-radius: 50%;
}

/* data-list grid fix */
[data-list], [data-db-list] { display: contents; }
.ledger > div:only-child,
.faqs__list > div:only-child,
.mosaic > div:only-child { display: contents; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

main {
  position: relative;
  z-index: 1;
}

/* ---------- SCROLL PROGRESS ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad-cobalt);
  z-index: 99999; transition: width 80ms linear;
  pointer-events: none;
}

/* ---------- SIDE RAIL ---------- */
.rail {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--rail-w);
  background: var(--clr-bg-2);
  border-right: 1px solid var(--clr-line);
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  z-index: 50;
}
@media (min-width: 1100px) {
  .rail { display: flex; }
  body { padding-left: var(--rail-w); }
}
.rail__brand {
  display: flex; flex-direction: column; align-items: center;
}
.rail__brand-letter {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.5rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--clr-primary); color: var(--clr-bg);
  display: grid; place-items: center;
  letter-spacing: -0.02em;
}
.rail__brand-text {
  margin-top: 1rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--clr-text-mute);
}
.rail__nav {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem;
}
.rail__dot {
  position: relative;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  cursor: pointer;
}
.rail__dot span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clr-line-strong);
  transition: all var(--t-med);
}
.rail__dot:hover span { background: var(--clr-accent); transform: scale(1.4); }
.rail__dot.is-active span { background: var(--clr-accent); width: 12px; height: 12px; box-shadow: 0 0 0 4px rgba(67,97,238,0.18); }
.rail__dot em {
  position: absolute; left: 100%; margin-left: 0.75rem;
  font-style: normal; font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--clr-primary);
  background: var(--clr-card);
  padding: 0.35rem 0.65rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transform: translateX(-6px);
  transition: all var(--t-fast);
  border: 1px solid var(--clr-line);
}
.rail__dot:hover em, .rail__dot.is-active em {
  opacity: 1; transform: translateX(0);
}
.rail__meta {
  font-family: var(--font-mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--clr-text-mute);
  writing-mode: vertical-rl; transform: rotate(180deg);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0;
  z-index: 40;
  background: var(--background, rgba(246, 244, 238, 0.85));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-line);
}
.header__inner { padding-block: 1rem; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem;
  color: var(--clr-primary);
  letter-spacing: -0.02em;
}
.logo img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--clr-primary);
}
.nav__links {
  display: none;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__links a {
  position: relative;
  color: var(--clr-text-mute);
  padding: 0.5rem 0;
  transition: color var(--t-fast);
}
.nav__links a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--clr-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med);
}
.nav__links a:hover, .nav__links a.is-active {
  color: var(--clr-primary);
}
.nav__links a:hover::after, .nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__cluster { display: flex; align-items: center; gap: 1rem; }

.nav__phone {
  display: none;
  align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--clr-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--clr-line-strong);
  transition: all var(--t-fast);
}
@media (min-width: 1100px) { .nav__phone { display: inline-flex; } }
.nav__phone:hover { border-color: var(--clr-primary); background: var(--clr-primary); color: var(--clr-bg); }
.nav__phone-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2bd66a;
  position: relative;
}
.nav__phone-pulse::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid #2bd66a;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.nav__cta {
  display: none;
}
@media (min-width: 1200px) { .nav__cta { display: inline-flex; } }
.nav__toggle {
  display: flex;
  flex-direction: column; gap: 5px;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
@media (min-width: 900px) { .nav__toggle { display: none; } }
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--clr-primary);
  transition: transform var(--t-fast);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__cart { display: none; }

/* Mobile menu */
.nav__links.is-open {
  display: flex;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--clr-card);
  flex-direction: column;
  padding: 1.5rem var(--container-pad);
  border-bottom: 1px solid var(--clr-line);
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--lg { padding: 1.05rem 1.85rem; font-size: 1rem; }
.btn--primary {
  background: var(--clr-primary);
  color: var(--clr-bg);
}
.btn--primary:hover {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: var(--shadow-cobalt);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-line-strong);
}
.btn--ghost:hover { border-color: var(--clr-primary); background: var(--clr-primary); color: var(--clr-bg); }
.btn__arrow {
  display: inline-block;
  transition: transform var(--t-fast);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- CODEPLATE (architectural drawing rhythm) ---------- */
.codeplate {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--clr-text-mute);
  margin-bottom: 1.5rem;
}
.codeplate__num {
  font-weight: 600;
  color: var(--clr-accent);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--clr-line-strong);
  border-radius: var(--radius-sm);
  background: var(--clr-card);
}
.codeplate__label {
  position: relative;
  padding-left: 1.5rem;
}
.codeplate__label::before {
  content: ""; position: absolute;
  left: 0; top: 50%;
  width: 1rem; height: 1px;
  background: var(--clr-line-strong);
}
.codeplate--inverse .codeplate__num {
  background: rgba(184, 192, 255, 0.12);
  border-color: var(--clr-line-dark);
  color: var(--clr-accent-2);
}
.codeplate--inverse .codeplate__label {
  color: rgba(255, 255, 255, 0.55);
}
.codeplate--inverse .codeplate__label::before { background: var(--clr-line-dark); }

.section__title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 24ch;
}
.section__lede {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: var(--clr-text-mute);
  max-width: 52ch;
  line-height: 1.65;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem);
  /* `clip`, not `hidden`: `overflow: clip` makes this a SCROLL CONTAINER,
     and a scroll container between the viewport and a `view()`-timeline
     element (`.hero__media` below) silently kills the timeline — the
     parallax would never run. `clip` clips identically without creating
     one, and this is decoration only, never a real scroller. */
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--surface, var(--grad-glow));
  pointer-events: none;
  opacity: 0.6;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}
.hero__copy { max-width: 640px; }

.hero__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--clr-primary);
  background: var(--clr-card);
  border: 1px solid var(--clr-line-strong);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
  display: flex; flex-direction: column;
  gap: 0.4rem;
}
.hero__prefix {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.62em;
  color: var(--clr-accent);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 5rem;
}
.hero__prefix::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4rem; height: 1px;
  background: var(--clr-accent);
}
.hero__title-main {
  display: block;
  animation: hero-rise 1s var(--ease-out) both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clr-text-mute);
  margin-bottom: 1.5rem;
}
.hero__lede {
  font-size: 1.12rem;
  color: var(--clr-text);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.hero__chips {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
}
.chip {
  display: flex; flex-direction: column;
  padding: 0.85rem 1.25rem;
  background: var(--clr-card);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-md);
  min-width: 140px;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-med);
}
.chip:hover {
  transform: translateY(-3px);
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-md);
}
.chip__num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.chip__num small { font-size: 0.55em; opacity: 0.6; vertical-align: super; margin-left: 2px; }
.chip__label {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clr-text-mute);
}

/* Hero media (frame) */
.hero__media {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 540px;
  width: 100%;
  margin-inline: auto;
}
.hero__frame {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  overflow: clip;
  background: var(--clr-bg-3);
  box-shadow: var(--shadow-lg);
}
.hero__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__frame-corner {
  position: absolute;
  width: 28px; height: 28px;
  border: 2px solid var(--clr-bg);
  pointer-events: none;
}
.hero__frame-corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hero__frame-corner--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.hero__frame-corner--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.hero__frame-corner--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

/* Status tile */
.status-tile {
  position: absolute;
  bottom: -32px; left: -28px;
  background: var(--clr-card);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.85rem;
  box-shadow: var(--shadow-md);
  min-width: 220px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.status-tile__dot {
  position: relative;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #2bd66a;
}
.status-tile__dot span {
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 2px solid #2bd66a;
  animation: pulse-ring 2s ease-out infinite;
}
.status-tile__body { display: flex; flex-direction: column; }
.status-tile__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--clr-text-mute);
}
.status-tile__value {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--clr-primary);
  font-weight: 600;
}

/* Hero rotated marquee on right edge */
.hero__rotated {
  display: none;
  position: absolute;
  top: 50%; right: -10px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--clr-text-mute);
  white-space: nowrap;
  pointer-events: none;
}
@media (min-width: 1200px) { .hero__rotated { display: block; } }

.hero__rule {
  margin-top: clamp(3rem, 6vw, 5rem);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clr-line-strong) 50%, transparent);
}

/* ---------- MARQUEE STRIP ---------- */
.marquee {
  background: var(--clr-primary);
  color: var(--clr-bg);
  overflow: hidden;
  border-block: 1px solid var(--clr-primary-2);
}
.marquee__track {
  display: inline-flex;
  gap: 3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 1rem 0;
  white-space: nowrap;
  animation: marquee-scroll 38s linear infinite;
}
.marquee__track span { padding-inline: 1rem; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- ABOUT ---------- */
.about {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--clr-bg);
}
.about--page { padding-top: clamp(3rem, 6vw, 5rem); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1000px) {
  .about__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
  }
}
.about__media {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 500px;
  margin-inline: auto;
}
.about__frame { width: 100%; height: 100%; }
.about__seal {
  position: absolute;
  bottom: -28px; right: -28px;
  width: 130px; height: 130px;
  background: var(--clr-accent);
  color: var(--clr-bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-cobalt);
}
/* The seal carries the owner's own licence line (about.license_note) — readable text, so it no longer spins. */
@keyframes seal-rotate { to { transform: rotate(360deg); } }
.about__seal-arc {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  /* Use SVG-like approach with text along arc — fallback to centered chips */
  color: var(--wb-on-dark, rgba(246, 244, 238, 0.92));
  text-align: center;
  padding: 2.4rem 0.9rem 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.about__seal-mark {
  position: absolute;
  top: 22%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  background: var(--wb-dark-surface, rgba(0,0,0,0.18));
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
}

.about__copy { max-width: 640px; }

.tenets {
  margin-top: 2.5rem;
  display: flex; flex-direction: column;
  gap: 1.25rem;
}
.tenets li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--clr-line);
  align-items: start;
  transition: padding-left var(--t-med);
}
.tenets li:last-child { border-bottom: 1px solid var(--clr-line); }
.tenets li:hover { padding-left: 0.5rem; }
.tenets__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-accent);
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
}
.tenets__body strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--clr-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.015em;
}
.tenets__body { color: var(--clr-text-mute); line-height: 1.6; font-size: 0.98rem; }

/* ---------- STATS BAND ---------- */
.stats-band {
  background: var(--grad-ink);
  color: var(--clr-bg);
  padding-block: clamp(3rem, 5vw, 4rem);
  position: relative;
  overflow: clip;
}
.stats-band::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-glow);
  opacity: 0.4;
}
.stats-band__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  z-index: 1;
}
@media (min-width: 800px) { .stats-band__grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } } /* auto-fit: owner-supplied stats may be absent — never leave an empty column */
.stat {
  display: flex; flex-direction: column;
  padding: 1.25rem 0;
  border-left: 1px solid var(--clr-line-dark);
  padding-left: 1.5rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--wb-on-dark, #fff);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.stat__suffix {
  font-size: 0.55em;
  color: var(--clr-accent-2);
  font-weight: 600;
  margin-left: 4px;
}
.stat__label {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--wb-on-dark, rgba(255, 255, 255, 0.55));
}

/* ---------- SERVICES — LEDGER ROWS ---------- */
.services {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--surface, var(--clr-bg-2));
}
.services--page { padding-top: clamp(3rem, 6vw, 5rem); }
.services__head {
  max-width: 720px;
  margin-bottom: 3rem;
}
.ledger {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--clr-line-strong);
  border-bottom: 1px solid var(--clr-line-strong);
}
.ledger__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--clr-line);
  position: relative;
  cursor: pointer;
  transition: padding-inline var(--t-med), background var(--t-med);
}
.ledger__row:last-child { border-bottom: 0; }
.ledger__row::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(67,97,238,0.04));
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}
.ledger__row:hover::before { opacity: 1; }
.ledger__row:hover { padding-inline: 1rem; }
@media (min-width: 800px) {
  .ledger__row {
    grid-template-columns: 80px 1.2fr 1fr 80px;
    gap: 2rem;
  }
}
.ledger__num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-accent);
  padding-top: 0.25rem;
  letter-spacing: 0.05em;
}
.ledger__body { display: flex; flex-direction: column; gap: 0.4rem; max-width: 480px; }
.ledger__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--clr-primary);
  line-height: 1.15;
}
.ledger__sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--clr-accent);
}
.ledger__content {
  margin-top: 0.4rem;
  color: var(--clr-text-mute);
  font-size: 0.98rem;
  line-height: 1.6;
}
.ledger__meta {
  display: flex; align-items: center; gap: 1rem;
  justify-self: end;
}
@media (max-width: 799px) {
  .ledger__meta { grid-column: 1 / -1; padding-left: 56px; }
}
.ledger__price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-primary);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--clr-line-strong);
  border-radius: var(--radius-sm);
  background: var(--clr-card);
  white-space: nowrap;
}
.ledger__thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--clr-bg-3);
}
.ledger__cta {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--clr-card);
  border: 1px solid var(--clr-line-strong);
  color: var(--clr-primary);
  align-self: center;
  transition: all var(--t-fast);
}
@media (max-width: 799px) {
  .ledger__cta { grid-column: 1 / -1; justify-self: end; margin-top: 0.5rem; }
}
.ledger__row:hover .ledger__cta {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-cobalt);
}
.ledger__arrow {
  font-size: 1.25rem;
  transition: transform var(--t-fast);
}
.ledger__row:hover .ledger__arrow { transform: translateX(4px); }

.services__foot { margin-top: 3rem; display: flex; justify-content: center; }

/* ---------- PROCESS — ZIGZAG ---------- */
.process {
  padding-block: clamp(4rem, 7vw, 6rem);
  background: var(--clr-bg-2);
}
.process .codeplate { margin-bottom: 1.25rem; }
.process .section__title { max-width: 28ch; margin-bottom: 3rem; }
.process__path {
  position: relative;
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .process__path {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  .process__path::before {
    content: "";
    position: absolute;
    top: 32px; left: 8%; right: 8%;
    height: 1px;
    background: repeating-linear-gradient(to right, var(--clr-line-strong) 0 6px, transparent 6px 14px);
  }
  .process__step:nth-child(even) { transform: translateY(2rem); }
}
.process__step {
  background: var(--clr-card);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-line);
  position: relative;
  transition: all var(--t-med);
}
.process__step:hover { transform: translateY(-4px); border-color: var(--clr-accent); box-shadow: var(--shadow-md); }
@media (min-width: 800px) {
  .process__step:nth-child(even):hover { transform: translateY(calc(2rem - 4px)); }
}
.process__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-accent);
  letter-spacing: 0.18em;
  background: var(--clr-bg);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 1rem;
}
.process__step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}
.process__step p { color: var(--clr-text-mute); font-size: 0.95rem; line-height: 1.55; }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--wb-dark-surface, var(--clr-dark));
  color: var(--clr-bg);
  position: relative;
  overflow: clip;
}
.testimonials::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--surface, var(--grad-glow));
  opacity: 0.5;
  pointer-events: none;
}
.testimonials .container { position: relative; z-index: 1; }
.testimonials__head { margin-bottom: 3rem; max-width: 720px; }
.testimonials__head .section__title { color: var(--wb-on-dark, #fff); }

.testimonials__quote {
  position: relative;
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 2rem 0;
}
.testimonials__quote .quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 0.6;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.testimonials__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3;
  font-weight: 500;
  color: var(--wb-on-dark, #fff);
  letter-spacing: -0.015em;
}
.testimonials__quote footer {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--wb-on-dark, rgba(255, 255, 255, 0.55));
}
.testimonials__quote footer strong { color: var(--clr-accent-2); font-weight: 600; }

.mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mosaic { grid-template-columns: repeat(3, 1fr); } }
.mosaic__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--clr-line-dark);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  gap: 1.25rem;
  transition: all var(--t-med);
  backdrop-filter: blur(12px);
}
.mosaic__card:nth-child(2n) { transform: translateY(1.5rem); }
.mosaic__card:nth-child(3n) { transform: translateY(-1rem); }
@media (max-width: 699px) {
  .mosaic__card:nth-child(2n), .mosaic__card:nth-child(3n) { transform: none; }
}
.mosaic__card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--clr-accent);
  box-shadow: 0 16px 40px -10px rgba(67, 97, 238, 0.4);
}
.mosaic__quote {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 0.75rem;
}
.mosaic__quote .quote-mark {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--clr-accent);
  line-height: 0.6;
  opacity: 0.7;
}
.mosaic__quote p {
  color: var(--wb-on-dark, rgba(255, 255, 255, 0.88));
  font-size: 0.98rem;
  line-height: 1.6;
}
.mosaic__by {
  display: flex; align-items: center; gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-line-dark);
}
.mosaic__by img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--clr-primary-2);
}
.mosaic__id { display: flex; flex-direction: column; }
.mosaic__id strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}
.mosaic__id span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.2rem;
}

/* ---------- TIMELINE (about page) ---------- */
.timeline {
  background: var(--clr-bg-2);
  padding-block: clamp(4rem, 7vw, 6rem);
}
.timeline__title { max-width: 28ch; margin-bottom: 3rem; }
.timeline__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}
@media (min-width: 800px) {
  .timeline__list {
    grid-template-columns: repeat(4, 1fr);
  }
  .timeline__list::before {
    content: "";
    position: absolute; top: 16px; left: 12%; right: 12%;
    height: 1px;
    background: var(--clr-line-strong);
  }
}
.timeline__node {
  position: relative;
  padding-top: 3rem;
}
.timeline__node::before {
  content: "";
  position: absolute;
  top: 8px; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--clr-accent);
  border: 4px solid var(--clr-bg-2);
  box-shadow: 0 0 0 1px var(--clr-line-strong);
}
.timeline__year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
.timeline__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}
.timeline__body p { color: var(--clr-text-mute); font-size: 0.95rem; line-height: 1.55; }

/* ---------- CONTACT ---------- */
.contact {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--clr-bg);
}
.contact--page { padding-top: clamp(3rem, 6vw, 5rem); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1000px) {
  .contact__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
  }
}
.contact__info {
  background: var(--grad-ink);
  color: var(--clr-bg);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: clip;
}
.contact__info::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-glow);
  opacity: 0.4;
}
.contact__info > * { position: relative; z-index: 1; }
.contact__info .section__title { color: var(--wb-on-dark, #fff); }
.contact__lede {
  margin-block: 1.25rem 2rem;
  color: var(--wb-on-dark, rgba(255, 255, 255, 0.72));
  font-size: 1rem;
  line-height: 1.6;
  max-width: 44ch;
}
.contact__lines {
  display: flex; flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-line-dark);
}
.contact__lines li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: start;
  font-size: 0.95rem;
}
.contact__lines-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--wb-on-dark, rgba(255, 255, 255, 0.5));
  padding-top: 0.15rem;
}
.contact__lines-val {
  color: var(--wb-on-dark, #fff);
  font-weight: 500;
}
a.contact__lines-val { color: var(--clr-accent-2); transition: color var(--t-fast); }
a.contact__lines-val:hover { color: var(--wb-on-dark, #fff); }

.contact__hours {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-line-dark);
  display: flex; flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--wb-on-dark, rgba(255, 255, 255, 0.7));
}
.contact__hours-row em {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clr-accent-2);
  margin-right: 0.6rem;
  font-weight: 600;
}

/* Contact form card */
.contact__card {
  background: var(--clr-card);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: clip;
}
.contact__ticker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--clr-bg-2);
  border: 1px dashed var(--clr-line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--clr-accent);
  margin-bottom: 1.5rem;
}
.contact__ticker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__field {
  display: flex; flex-direction: column;
  gap: 0.4rem;
}
.form__field span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--clr-text-mute);
  font-weight: 600;
}
.form__field input, .form__field textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--clr-line-strong);
  border-radius: var(--radius-sm);
  background: var(--clr-bg);
  font-size: 0.98rem;
  color: var(--clr-primary);
  font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form__field input:focus, .form__field textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
}
.form__field textarea { resize: vertical; min-height: 120px; }
.form__submit { align-self: flex-start; margin-top: 0.5rem; }
.form__note {
  font-size: 0.82rem;
  color: var(--clr-text-mute);
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* ---------- FAQS ---------- */
.faqs {
  padding-block: clamp(4rem, 7vw, 6rem);
  background: var(--wb-dark-surface, var(--clr-dark));
  color: var(--clr-bg);
  position: relative;
  overflow: clip;
}
.faqs::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--surface, var(--grad-glow));
  opacity: 0.45;
  pointer-events: none;
}
.faqs .container { position: relative; z-index: 1; }
.faqs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1000px) { .faqs__grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; } }
.faqs__head { position: sticky; top: 100px; }
.faqs__head .section__title { color: var(--wb-on-dark, #fff); max-width: 22ch; }
.faqs__lede {
  margin-block: 1.25rem 1.5rem;
  color: var(--wb-on-dark, rgba(255,255,255,0.7));
  line-height: 1.65;
  max-width: 36ch;
}
.faqs__head .btn--ghost {
  border-color: var(--clr-line-dark);
  color: var(--clr-accent-2);
}
.faqs__head .btn--ghost:hover { background: var(--clr-accent); color: var(--wb-on-dark, #fff); border-color: var(--clr-accent); }

.faqs__list {
  display: flex; flex-direction: column;
  gap: 0.5rem;
}
.faq {
  border-bottom: 1px solid var(--clr-line-dark);
  overflow: clip;
}
.faq__head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0;
  text-align: left;
  cursor: pointer;
  color: var(--wb-on-dark, #fff);
}
.faq__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-accent-2);
  letter-spacing: 0.1em;
}
.faq__q {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--wb-on-dark, #fff);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.faq__toggle {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--wb-tint, rgba(255,255,255,0.06));
  border: 1px solid var(--clr-line-dark);
  font-size: 1.25rem;
  color: var(--clr-accent-2);
  font-weight: 300;
  transition: all var(--t-fast);
}
.faq__head[aria-expanded="true"] .faq__toggle {
  background: var(--clr-accent);
  color: var(--wb-on-dark, #fff);
  border-color: var(--clr-accent);
  transform: rotate(45deg);
}
.faq__body {
  max-height: 0;
  overflow: clip;
  transition: max-height var(--t-med);
}
.faq__a {
  padding: 0 0 1.5rem;
  color: var(--wb-on-dark, rgba(255, 255, 255, 0.75));
  line-height: 1.65;
  font-size: 0.98rem;
  max-width: 60ch;
}

/* ---------- PAGE BAND (sub-page hero strip) ---------- */
.page-band {
  background: var(--clr-bg);
  padding-block: clamp(2rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem);
  border-bottom: 1px solid var(--clr-line);
}
.page-band__inner { max-width: 720px; }
.page-band__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--clr-primary);
  margin-block: 1rem;
}
.page-band__lede {
  font-size: 1.1rem;
  color: var(--clr-text-mute);
  line-height: 1.6;
  max-width: 56ch;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--wb-dark-surface, var(--clr-dark-2));
  color: var(--clr-bg);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  position: relative;
  overflow: clip;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--surface, var(--grad-glow));
  opacity: 0.3;
  pointer-events: none;
}
.footer .container { position: relative; z-index: 1; }
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--clr-line-dark);
}
@media (min-width: 800px) { .footer__top { grid-template-columns: 1fr auto; } }
.footer__signature {
  display: flex; align-items: center; gap: 1rem;
}
.footer__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: var(--wb-on-dark, #fff);
  display: grid; place-items: center;
}
.footer__sig {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--wb-on-dark, rgba(255, 255, 255, 0.7));
}
.footer__sig strong {
  font-family: var(--font-display);
  text-transform: none;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  color: var(--wb-on-dark, #fff);
  margin-right: 0.5rem;
}
.footer__cta { white-space: nowrap; }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer__brand img {
  width: 48px; height: 48px;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: var(--clr-primary-2);
  object-fit: cover;
}
.footer__brand p {
  color: var(--wb-on-dark, rgba(255, 255, 255, 0.65));
  line-height: 1.6;
  max-width: 36ch;
}
.footer__links h3, .footer__social h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--clr-accent-2);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer__links a, .footer__social a {
  display: block;
  color: var(--wb-on-dark, rgba(255, 255, 255, 0.7));
  padding: 0.4rem 0;
  font-size: 0.95rem;
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer__links a:hover, .footer__social a:hover { color: var(--clr-accent); padding-left: 0.4rem; }

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-line-dark);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--wb-on-dark, rgba(255, 255, 255, 0.5));
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
@media (min-width: 700px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer__meta { color: var(--clr-accent-2); }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--clr-bg);
  font-size: 1.25rem;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: all var(--t-med);
  z-index: 60;
  box-shadow: var(--shadow-md);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--clr-accent); transform: translateY(-4px); box-shadow: var(--shadow-cobalt); }

/* ---------- BELOW-FOLD RENDER OPTIMIZATION ---------- */
.testimonials, .faqs, .timeline, .process, .stats-band, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* ---------- MOTION (CSS scroll-driven; replaces this theme's only GSAP file) ----------
   Resting state is visible at rule level everywhere below — the hidden
   from-state lives ONLY inside each @keyframes, and every rule is gated
   behind @supports + no-preference, so a non-supporting or
   reduced-motion visitor sees complete, readable content, never a blank
   section. */
@keyframes wb-cobalthall-reveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wb-cobalthall-reveal-x {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Single-instance entrances — each gets its own view() timeline, so no
       stagger is needed even though the same rule matches many sections. */
    .codeplate,
    .section__title, .page-band__title,
    .section__lede, .page-band__lede, .faqs__lede, .contact__lede {
      animation: wb-cobalthall-reveal .65s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

    /* Tenets list — was an x-axis GSAP stagger; shift the RANGE per item
       instead of using animation-delay (meaningless on a scroll timeline). */
    .tenets li {
      animation: wb-cobalthall-reveal-x .6s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    .tenets li:nth-child(2) { animation-range: entry 6% entry 46%; }
    .tenets li:nth-child(3) { animation-range: entry 12% entry 52%; }
    .tenets li:nth-child(4) { animation-range: entry 18% entry 58%; }
    .tenets li:nth-child(n+5) { animation-range: entry 24% entry 64%; }

    /* Repeating groups — approximate the old GSAP stagger with nth-child. */
    .ledger__row, .mosaic__card, .process__step, .timeline__node,
    .stats-band .stat, .faq, .footer__grid > * {
      animation: wb-cobalthall-reveal .65s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    .ledger__row:nth-child(2), .mosaic__card:nth-child(2), .process__step:nth-child(2),
    .timeline__node:nth-child(2), .stats-band .stat:nth-child(2), .faq:nth-child(2),
    .footer__grid > *:nth-child(2) {
      animation-range: entry 8% entry 48%;
    }
    .ledger__row:nth-child(3), .mosaic__card:nth-child(3), .process__step:nth-child(3),
    .timeline__node:nth-child(3), .stats-band .stat:nth-child(3), .faq:nth-child(3),
    .footer__grid > *:nth-child(3) {
      animation-range: entry 16% entry 56%;
    }
    .ledger__row:nth-child(4), .mosaic__card:nth-child(4), .process__step:nth-child(4),
    .timeline__node:nth-child(4), .stats-band .stat:nth-child(4), .faq:nth-child(4),
    .footer__grid > *:nth-child(4) {
      animation-range: entry 24% entry 64%;
    }
    .ledger__row:nth-child(n+5), .mosaic__card:nth-child(n+5), .process__step:nth-child(n+5),
    .timeline__node:nth-child(n+5), .stats-band .stat:nth-child(n+5), .faq:nth-child(n+5),
    .footer__grid > *:nth-child(n+5) {
      animation-range: entry 32% entry 72%;
    }

    /* Hero parallax — the CSS scroll-driven replacement for this theme's
       only scrub tween (`start: 'top top', end: 'bottom top'` -> `exit`,
       the hero leaving upward). Desktop + fine-pointer only, matching the
       original gate. `translate`, not `transform`, so it composes with
       rather than clobbers `.chip:hover`/`.hero__frame` transforms. */
    @media (min-width: 1000px) and (pointer: fine) {
      .hero__media {
        animation: wb-cobalthall-parallax linear both;
        animation-timeline: view();
        animation-range: exit;
      }
    }
  }
}
@keyframes wb-cobalthall-parallax {
  from { translate: 0 0; }
  to   { translate: 0 -40px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track, .about__seal, .hero__title-main { animation: none !important; }
  .mosaic__card:nth-child(2n), .mosaic__card:nth-child(3n) { transform: none !important; }
}


/* WoBooks empty-image guard (theme:editor-compliance --fix --scope=img-empty-guard):
   image_url('') renders <img src=""> until the owner uploads a photo — hide it
   instead of leaking the browser's broken-image icon + alt text onto the page. */
img[src=""], img:not([src]) { display: none !important; }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --clr-text-mute: #60657c; /* was #6b7188 */
  --clr-accent: #3e5ae7; /* was #4361ee */
}
