/* ============================================================
   Nexplexity design system — dark-first.
   Brand: Montserrat + deep blue #000887 (preserved from logo).
   Tiered navy backgrounds; light sections are punctuation.
   Shape motif: rounded corners with the bottom-left squared.
   ============================================================ */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-var.311d352d9323.woff2") format("woff2");
}

:root {
  /* Brand tiers (darkest to brightest) */
  --tier-0: #02031f;
  --tier-1: #000550;
  --tier-2: #000887;
  --blue: #232baa;
  --azure: #176be0;
  --sky: #7ea6ff;
  --mist: #eef2ff;
  --white: #ffffff;

  /* Text */
  --head: #eef2ff;
  --body-c: #b8c2f2;
  --ink: #0e1030;
  --muted: #5a5f7a;

  /* Semantic (checks, meters) — brightened for dark grounds */
  --ok: #2fd08c;
  --warn-c: #f0b429;
  --bad: #ff5d7d;

  /* Type scale */
  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --fs-hero: clamp(2.8rem, 6.5vw, 5rem);
  --fs-h2: clamp(2rem, 4.6vw, 3.4rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.4rem);
  --fs-body: 1.0625rem;

  /* Rhythm */
  --container: 1240px;
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  /* Shape motif: rounded, bottom-left squared */
  --shape: 24px 24px 24px 0;
  --shape-sm: 16px 16px 16px 0;
  --shape-pill: 999px;

  --line: rgba(126, 166, 255, 0.16);
  --line-strong: rgba(126, 166, 255, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--body-c);
  background: var(--tier-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--head); text-wrap: balance; }

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--azure); color: var(--white); }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--white); color: var(--tier-2);
  padding: 0.6rem 1.2rem; border-radius: var(--shape-sm); font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: var(--shape);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, color 0.25s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--azure);
  color: var(--white);
  box-shadow: 0 12px 40px -10px rgba(23, 107, 224, 0.65);
}
.btn-primary:hover { background: var(--sky); color: var(--tier-0); }

.btn-light { background: var(--white); color: var(--tier-2); }
.btn-light:hover { background: var(--mist); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* ------------------------------------------------------------
   Header — frosted glass over the page
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(2, 3, 31, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(126, 166, 255, 0.08);
  transition: padding 0.35s, background 0.35s;
}
.site-header.is-scrolled {
  background: rgba(2, 3, 31, 0.82);
  padding: 0.65rem 0;
  border-bottom-color: rgba(126, 166, 255, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none !important;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.site-nav a {
  color: var(--head);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.2s;
}
.site-nav a:hover { opacity: 1; text-decoration: none; }
.site-nav .btn { padding: 0.6rem 1.4rem; }
.site-nav .btn-light { color: var(--tier-2); opacity: 1; }

/* Capabilities dropdown */
.nav-dropdown { position: relative; }

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--head);
  opacity: 0.88;
  padding: 0;
  transition: opacity 0.2s;
}
.nav-drop-btn:hover { opacity: 1; }
.nav-drop-btn .chevron {
  width: 11px;
  height: 8px;
  transition: transform 0.25s var(--ease-out);
}
.nav-dropdown.is-open .nav-drop-btn .chevron { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 260px;
  display: grid;
  padding: 0.5rem;
  background: rgba(2, 3, 31, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--shape);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s 0.25s;
}
.nav-drop-menu::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  left: 0;
  right: 0;
  height: 0.9rem; /* hover bridge between button and menu */
}
.nav-dropdown.is-open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.site-nav .nav-drop-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  color: var(--head);
  font-weight: 300;
  font-size: 0.98rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--shape-sm);
  opacity: 1;
}
.site-nav .nav-drop-menu a:hover { background: rgba(126, 166, 255, 0.1); }
.nav-drop-menu .menu-t strong { font-weight: 800; }
.nav-drop-menu .menu-arrow {
  width: 11px;
  height: 11px;
  flex: none;
  margin-left: auto;
  color: var(--sky);
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-drop-menu a:hover .menu-arrow { opacity: 1; transform: translate(1px, -1px); }
.nav-drop-menu .menu-group {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  padding: 0.55rem 0.8rem 0.1rem;
}
.nav-drop-menu .menu-group:not(:first-child) {
  margin-top: 0.3rem;
  border-top: 1px solid var(--line);
}

.menu-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--shape-sm);
  background: rgba(126, 166, 255, 0.1);
  color: var(--sky);
  transition: background 0.25s, color 0.25s;
}
.menu-icon svg { width: 18px; height: 18px; }
.nav-drop-menu a:hover .menu-icon { background: var(--azure); color: var(--white); }

@media (hover: hover) and (min-width: 701px) {
  .nav-dropdown:hover .nav-drop-menu,
  .nav-dropdown:focus-within .nav-drop-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  }
  .nav-dropdown:hover .nav-drop-btn .chevron { transform: rotate(180deg); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2.5px; border-radius: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ------------------------------------------------------------
   Hero (home) — full viewport, deck on the right
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 82% 20%, rgba(23, 107, 224, 0.22), transparent 62%),
    radial-gradient(800px 600px at -5% 100%, rgba(35, 43, 170, 0.35), transparent 60%),
    var(--tier-0);
  color: var(--white);
  padding: calc(var(--section-pad) + 2.5rem) 0 var(--section-pad);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

/* three.js deck host. Desktop: pinned beside the 620px content column,
   filling the right of the container. Mobile: an in-flow band between
   the headline and the audit bar. */
.hero-inner > .hero-3d {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: calc(100% - 640px - 2rem);
  max-width: none;
  height: min(72vh, 680px);
  z-index: 1;
  pointer-events: none;
}
.hero-3d canvas { width: 100% !important; height: 100% !important; display: block; }

/* the deck's live annotation: re-types in sync with the front card */
.deck-note {
  top: 0;
  left: 6%;
  transform: rotate(-2deg);
  white-space: nowrap;
  max-width: none;
}
.deck-note::after {
  content: "\258A";
  margin-left: 3px;
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@media (max-width: 1024px) {
  .deck-note { left: 2%; top: -4px; }
}
@media (max-width: 1024px) {
  .hero-inner > .hero-3d {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    height: clamp(220px, 40vw, 340px);
    margin: 0.6rem 0 0.2rem;
  }
}

.hero-inner { position: relative; z-index: 2; }
.hero-inner > * { max-width: 620px; }

/* Rotating headline slides */
.hero-slides { position: relative; min-height: 16em; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}
.hero-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.hero-slide h1, .hero-slide .h1 {
  font-size: var(--fs-hero);
  font-weight: 300;
  color: var(--head);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.3rem;
}
/* every slide headline reads as one sentence on one line */
.hero-slide h1,
.hero-slide .h1 {
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  white-space: nowrap;
}
.hero-slide .accent {
  font-weight: 800;
  /* inline-block + bottom padding so the clipped background covers descenders */
  display: inline-block;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  background: linear-gradient(90deg, var(--sky), #b4c9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-slide p {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--body-c);
  max-width: 27em;
}

.slide-dots { display: flex; gap: 0.5rem; margin-top: 1.6rem; }
.slide-dots button {
  width: 26px; height: 3px; border: 0; cursor: pointer; padding: 0;
  background: rgba(126, 166, 255, 0.25);
  transition: background 0.3s;
}
.slide-dots button.on { background: var(--sky); }

/* Mobile hero: slides swap in place of crossfading so the block is
   content-sized - no reserved dead space above the deck band */
@media (max-width: 1024px) {
  .hero { padding-top: 6rem; padding-bottom: 3.5rem; }
  .hero-slides { min-height: 0; }
  .hero-slide {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .hero-slide.on { display: block; }
}

/* Hero audit bar: the primary lead capture. No container chrome — the
   fields and button sit directly on the hero as one flat row. */
.hero-audit { margin-top: 2.2rem; }
.hero-audit-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: stretch;
  max-width: 680px;
}
.hero-audit-fields input {
  flex: 1 1 140px;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(238, 242, 255, 0.22);
  border-radius: var(--shape-sm);
  background: rgba(238, 242, 255, 0.06);
  color: var(--white);
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-audit-fields input[type="email"] { flex-basis: 150px; }
.hero-audit-fields .btn { flex: none; padding-inline: 1.6rem; }
.hero-audit-fields input::placeholder { color: rgba(184, 194, 242, 0.6); }
.hero-audit-fields input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(126, 166, 255, 0.18);
}
.hero-audit-note {
  margin-top: 0.8rem;
  font-size: 0.84rem;
  color: var(--body-c);
  opacity: 0.85;
}

/* Mobile: stack cleanly and give the primary action full width */
@media (max-width: 1024px) {
  .hero-audit-fields {
    gap: 0.7rem;
    max-width: none;
  }
  .hero-audit-fields input,
  .hero-audit-fields input[type="email"] {
    padding: 0.95rem 1.1rem;
    flex-basis: 170px; /* pairs on tablets, stacks on phones */
  }
  .hero-audit-fields .btn {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
  }
}

.hero-scrollcue {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  z-index: 2;
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.75rem; letter-spacing: 0.24em; text-transform: lowercase;
  color: var(--body-c);
}
.hero-scrollcue::after {
  content: "";
  width: 54px; height: 2px; background: var(--sky);
  animation: elasticus 1.4s cubic-bezier(1, 0, 0, 1) infinite;
  transform-origin: left;
}
@keyframes elasticus {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  50.1% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ------------------------------------------------------------
   Section tiers
   ------------------------------------------------------------ */
.section { padding: var(--section-pad) 0; }
.t0 { background: var(--tier-0); }
.t1 { background: var(--tier-1); }
.t2 {
  background: linear-gradient(165deg, var(--tier-2) 0%, var(--tier-1) 100%);
}
.t0.dotted {
  background-image: radial-gradient(rgba(126, 166, 255, 0.13) 1px, transparent 1.4px);
  background-size: 26px 26px;
}

/* The one bright moment per page */
.flash { background: var(--mist); color: var(--ink); }
.flash h1, .flash h2, .flash h3, .flash h4 { color: var(--ink); }

.section-head { max-width: 800px; margin-bottom: 3.2rem; }
.section-head h2 { font-size: var(--fs-h2); font-weight: 300; margin-bottom: 1rem; }
.section-head h2 strong, .section-head h2 b { font-weight: 800; }
.section-head p { color: var(--body-c); }
.flash .section-head p { color: var(--muted); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.tight { margin-bottom: 0; }
.demo-copy { max-width: 44ch; margin-bottom: 1.8rem; }

/* Manifesto strip */
/* The manifesto band breaks out of the standard container: the
   statement runs the full width of the screen, minus breathing room */
.manifesto-band .container {
  width: calc(100% - clamp(3rem, 9vw, 10rem));
  max-width: none;
}
.manifesto {
  font-size: clamp(1.5rem, 2.6vw, 3.1rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.manifesto strong { font-weight: 800; color: var(--tier-2); }

/* ------------------------------------------------------------
   The arc strip (Clarity / Advantage / Momentum)
   ------------------------------------------------------------ */
.arc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.arc-stage {
  border-top: 2px solid var(--line-strong);
  padding-top: 1.2rem;
}
.arc-stage h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.arc-stage p { color: var(--body-c); font-size: 0.95rem; }

/* ------------------------------------------------------------
   Capabilities carousel — centre-stage card
   ------------------------------------------------------------ */
.carousel { position: relative; overflow: hidden; padding: 0.6rem 0 1rem; }
.car-track {
  display: flex;
  gap: 1.6rem;
  transition: transform 0.6s var(--ease-out);
}
.cap-card {
  flex: 0 0 min(560px, 84vw);
  border-radius: var(--shape);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px circle at var(--x, 50%) var(--y, 0%), rgba(126, 166, 255, 0.13), transparent 60%),
    linear-gradient(150deg, rgba(2, 3, 31, 0.9), rgba(0, 5, 80, 0.55));
  padding: 2.5rem 2.5rem 2.1rem;
  transform: scale(0.88);
  opacity: 0.45;
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.cap-card.focus { transform: scale(1); opacity: 1; cursor: default; }
.cap-stage {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sky);
}
.cap-card h4 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 300; margin: 0.7rem 0 0.6rem; }
.cap-card h4 strong { font-weight: 800; }
.cap-card p { color: var(--body-c); font-size: 0.96rem; max-width: 40ch; min-height: 5.2em; }
.cap-card .card-icon-wrap {
  position: absolute; top: 2.1rem; right: 2.1rem;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: var(--shape-sm);
  background: rgba(126, 166, 255, 0.1);
  color: var(--sky);
}
.cap-card .card-icon-wrap svg { width: 28px; height: 28px; }
.cap-card .card-link {
  display: inline-block;
  margin-top: 1.3rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sky);
}
.cap-card .card-link::after { content: " →"; transition: margin-left 0.2s; }
.cap-card.focus .card-link:hover::after { margin-left: 5px; }
/* Whole focused card is clickable */
.cap-card.focus .card-link::before { content: ""; position: absolute; inset: 0; }

.car-nav { display: flex; gap: 0.7rem; margin-top: 1rem; }
.car-nav button {
  width: 46px; height: 46px;
  border-radius: var(--shape-sm);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--sky);
  font-size: 1.15rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.car-nav button:hover { background: var(--sky); color: var(--tier-0); }

/* ------------------------------------------------------------
   Proof band — a bordered box straddling two tiers
   ------------------------------------------------------------ */
.proof-wrap { background: linear-gradient(to bottom, var(--tier-1) 50%, var(--tier-0) 50%); }
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--line-strong);
  border-radius: var(--shape);
  background: var(--tier-2);
  box-shadow: 0 30px 80px -30px rgba(0, 8, 135, 0.8);
  overflow: hidden;
}
.proof > div { padding: 2.2rem 1.8rem; text-align: center; }
.proof > div + div { border-left: 1px solid rgba(126, 166, 255, 0.2); }
.proof strong {
  display: block;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.proof span { font-size: 0.85rem; color: var(--body-c); }
@media (max-width: 900px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div:nth-child(3) { border-left: 0; }
  .proof > div:nth-child(n+3) { border-top: 1px solid rgba(126, 166, 255, 0.2); }
}

/* ------------------------------------------------------------
   Clarity Report demo (home)
   ------------------------------------------------------------ */
.report-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 900px) {
  .report-demo { grid-template-columns: 1fr; }
  /* stacked: heading, then the score ring, then meters and CTA */
  .report-demo .score-visual { order: -1; margin: 0 auto 1rem; }
  .demo-meters { margin-top: 1rem; }
}

.demo-meters { display: grid; gap: 1rem; margin: 2rem 0 2.2rem; max-width: 520px; }
.demo-meter {
  display: grid;
  grid-template-columns: 11rem 1fr 2.5ch;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}
.demo-meter .bar { height: 5px; background: rgba(126, 166, 255, 0.15); border-radius: 3px; overflow: hidden; }
.demo-meter .bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--azure), var(--sky));
  border-radius: 3px;
  transition: width 1.4s var(--ease-out);
}
.demo-meter b { font-variant-numeric: tabular-nums; color: var(--head); text-align: right; font-weight: 700; }
@media (max-width: 520px) { .demo-meter { grid-template-columns: 8rem 1fr 2.5ch; } }

/* ------------------------------------------------------------
   Glow cards (cursor-tracked radial highlight)
   ------------------------------------------------------------ */
.glow-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--shape);
  padding: 1.9rem 1.7rem;
  background:
    radial-gradient(420px circle at var(--x, 50%) var(--y, -20%), rgba(126, 166, 255, 0.13), transparent 65%),
    rgba(238, 242, 255, 0.02);
  transition: border-color 0.3s;
  overflow: hidden;
}
.glow-card:hover { border-color: rgba(126, 166, 255, 0.45); }
.glow-card h3 { font-size: 1.1rem; margin: 0.6rem 0 0.5rem; }
.glow-card p { color: var(--body-c); font-size: 0.94rem; }

.step-num { font-weight: 800; font-size: 1.9rem; color: var(--sky); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

/* ------------------------------------------------------------
   Feature grids (service pages, about)
   ------------------------------------------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.feature h3 { color: var(--head); font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature p { color: var(--body-c); font-size: 0.96rem; }
.feature .step-num { font-size: 1.4rem; }

/* Bento of other services */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.card { padding: 2.2rem 2rem; }
.card h3 { font-size: var(--fs-h3); margin: 0.9rem 0 0.7rem; }
.card p { color: var(--body-c); font-size: 0.96rem; }
.card .card-link {
  display: inline-block;
  margin-top: 1.3rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--sky);
}
.card .card-link::after { content: " →"; transition: margin-left 0.2s; }
.card .card-link:hover::after { margin-left: 4px; }

.card-icon-wrap {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--shape-sm);
  background: rgba(126, 166, 255, 0.1);
  color: var(--sky);
  transition: background 0.3s, color 0.3s;
}
.card-icon-wrap svg { width: 28px; height: 28px; }
.card:hover .card-icon-wrap { background: var(--azure); color: var(--white); }

/* ------------------------------------------------------------
   Page hero (inner pages)
   ------------------------------------------------------------ */
.page-hero {
  background:
    radial-gradient(900px 500px at 85% -20%, rgba(23, 107, 224, 0.3), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(35, 43, 170, 0.3), transparent 60%),
    var(--tier-0);
  color: var(--white);
  padding: calc(var(--section-pad) + 3rem) 0 calc(var(--section-pad) * 0.7);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  margin-bottom: 1rem;
}
.page-hero h1 strong { font-weight: 800; }
.page-hero p { color: var(--body-c); font-size: 1.1rem; max-width: 46em; }

/* Content section with a floating 3D card on the right */
.split-3d {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-3d .section-head { margin-bottom: 0; }

/* The why-argument as annotated notes: hand-drawn ink marks (underlines,
   sketch circles, a margin arrow) over the structured chain */
.why-flow { display: grid; gap: 2.1rem; }
.why-item { position: relative; padding-left: 3rem; }
/* sketchy ink circle as the node */
.why-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 3.5 C 20.5 2.5, 25.5 8, 25 14 C 24.5 20.5, 19.5 25.5, 13 25 C 6.5 24.5, 2.8 19.5, 3.2 13.2 C 3.6 7, 8.5 4, 15.5 4.2' fill='none' stroke='%23176be0' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-8deg);
}
.why-item:nth-child(even)::before { transform: rotate(94deg); }
.why-item::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 2rem;
  bottom: -2.1rem;
  width: 2px;
  background: var(--line-strong);
}
.why-item:last-child::after { display: none; }
.why-item h3 {
  display: inline-block;
  position: relative;
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}
/* rough pen underline beneath each point's title */
.why-item h3::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -8px;
  bottom: -7px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 40 3, 85 10, 125 6 S 205 4, 237 7' fill='none' stroke='%237ea6ff' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M6 10 C 60 6, 120 11, 236 9' fill='none' stroke='%237ea6ff' stroke-width='1.6' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: rotate(-0.7deg);
}
.why-item:nth-child(even) h3::after { transform: rotate(0.6deg) scaleX(-1); }
.why-item p { color: var(--body-c); font-size: 0.97rem; }

/* marker swipe under the section heading */
.why-section .section-head h2 {
  display: inline-block;
  position: relative;
}
.why-section .section-head h2::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -12px;
  width: min(280px, 75%);
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 16' preserveAspectRatio='none'%3E%3Cpath d='M4 10 C 60 4, 130 13, 200 7 S 260 6, 276 9' fill='none' stroke='%23176be0' stroke-width='5' stroke-linecap='round' opacity='0.9'/%3E%3Cpath d='M10 13 C 90 9, 180 14, 272 11' fill='none' stroke='%23176be0' stroke-width='2.4' stroke-linecap='round' opacity='0.45'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: rotate(-0.5deg);
}

/* pen notes scribbled around the floating card - each service page
   carries its own practitioner's margin notes */
.pen-note {
  position: absolute;
  z-index: 2;
  max-width: 240px;
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--sky);
  transform: rotate(-3deg);
  padding-bottom: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 40 3, 85 10, 125 6 S 205 4, 237 7' fill='none' stroke='%237ea6ff' stroke-width='2.4' stroke-linecap='round' opacity='0.6'/%3E%3C/svg%3E") no-repeat bottom / 100% 8px;
}
.pen-note-1 { top: -2%; left: 4%; }
.pen-note-2 { bottom: -1%; right: 2%; transform: rotate(2.5deg); }

/* hand arrow in the margin, pointing at the floating card */
.split-3d .page-3d { position: relative; }
.split-3d .page-3d::before {
  content: "";
  position: absolute;
  left: -66px;
  top: 24%;
  width: 82px;
  height: 58px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 70'%3E%3Cpath d='M8 62 C 38 58, 70 44, 100 20' fill='none' stroke='%237ea6ff' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M86 16 L 103 17.5 L 96 33' fill='none' stroke='%237ea6ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.85;
}
.page-3d { height: 400px; pointer-events: none; }
.page-3d canvas { width: 100% !important; height: 100% !important; display: block; }
@media (max-width: 1024px) {
  .split-3d { grid-template-columns: 1fr; }
  .page-3d { display: none; }
}

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--fs-h2); font-weight: 300; max-width: 20em; margin: 0 auto 1.2rem; }
.cta-band h2 strong { font-weight: 800; }
.cta-band p { color: var(--body-c); margin-bottom: 2.2rem; }

/* ------------------------------------------------------------
   "Let's talk" finale (home)
   ------------------------------------------------------------ */
.talk h2 {
  font-size: clamp(3rem, 8.5vw, 6rem);
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.talk h2 strong { font-weight: 800; }
.talk-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.talk .lede { max-width: 30em; color: #cdd6f7; }
.talk .talk-email {
  display: inline-block;
  margin-top: 1.6rem;
  font-weight: 700;
  color: var(--white);
  border-bottom: 2px solid var(--sky);
}

/* ------------------------------------------------------------
   Forms (dark)
   ------------------------------------------------------------ */
.form-grid { display: grid; gap: 1.1rem; max-width: 560px; }
.form-grid label { font-weight: 700; font-size: 0.9rem; color: var(--head); }
.form-grid input,
.form-grid textarea,
.talk-form input,
.talk-form textarea {
  font: inherit;
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(238, 242, 255, 0.25);
  border-radius: var(--shape-sm);
  background: rgba(238, 242, 255, 0.06);
  color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-grid input::placeholder,
.form-grid textarea::placeholder,
.talk-form input::placeholder,
.talk-form textarea::placeholder { color: rgba(238, 242, 255, 0.45); }
.form-grid input:focus,
.form-grid textarea:focus,
.talk-form input:focus,
.talk-form textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(126, 166, 255, 0.18);
}
.talk-form { display: grid; gap: 0.9rem; }
.errorlist { color: var(--bad); list-style: none; font-size: 0.88rem; font-weight: 600; }
.form-note { color: var(--body-c); font-size: 0.88rem; opacity: 0.85; }
.audit-form { max-width: 560px; }

/* Audit page: form beside the floating 3D report card */
.audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.audit-3d { height: 480px; pointer-events: none; }
.audit-3d canvas { width: 100% !important; height: 100% !important; display: block; }
@media (max-width: 1024px) {
  .audit-grid { grid-template-columns: 1fr; }
  .audit-3d { display: none; }
}

.newsletter-form { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1 1 200px;
  font: inherit;
  padding: 0.75rem 1.1rem;
  border-radius: var(--shape-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(126, 166, 255, 0.2);
}

/* Flash messages */
.flash-stack {
  position: fixed;
  top: 5.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: grid;
  gap: 0.6rem;
  width: min(480px, calc(100% - 2rem));
}
.flash-msg {
  padding: 0.95rem 1.4rem;
  border-radius: var(--shape-sm);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  animation: flash-in 0.4s var(--ease-out);
}
.flash-msg.flash-success { background: #0a7d4f; color: var(--white); }
.flash-msg.flash-error { background: #c62348; color: var(--white); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-10px); } }

/* ------------------------------------------------------------
   Contact page
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  gap: 3rem;
  align-items: stretch;
}
.contact-aside {
  border-radius: var(--shape);
  padding: 2.6rem;
  background: linear-gradient(160deg, var(--tier-2) 0%, var(--tier-1) 100%);
  border: 1px solid var(--line);
  color: var(--white);
}
.contact-aside h2 { font-size: var(--fs-h3); margin-bottom: 1.4rem; }
.contact-aside p { color: var(--body-c); }
.contact-steps { list-style: none; display: grid; gap: 1.4rem; margin: 0 0 2rem; }
.contact-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; }
.contact-steps b { display: block; margin-bottom: 0.2rem; color: var(--head); }
.contact-steps span { color: var(--body-c); }
.contact-steps .num {
  font-weight: 700;
  color: var(--sky);
  font-variant-numeric: tabular-nums;
}
.footer-email { color: var(--white); font-weight: 700; }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { padding: 2rem; }
}

/* ------------------------------------------------------------
   Blog
   ------------------------------------------------------------ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  display: block;
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.3s var(--ease-out);
}
.post-card:hover { transform: translateY(-4px); }
.post-card time {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sky);
}
.post-card h3 { font-size: 1.18rem; margin: 0.7rem 0 0.5rem; }
.post-card p { color: var(--body-c); font-size: 0.94rem; }

/* Long-form prose (blog posts, legal) lives on the light flash tier */
.prose { max-width: 720px; color: var(--ink); }
.prose h2, .prose h3 { margin: 2.2rem 0 0.8rem; color: var(--tier-2); }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose a { color: var(--azure); }
.prose code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 8, 135, 0.08);
  padding: 0.15em 0.45em;
  border-radius: 6px;
}
.prose pre {
  background: var(--tier-0);
  color: #dfe6ff;
  padding: 1.2rem 1.4rem;
  border-radius: var(--shape-sm);
  overflow-x: auto;
  margin-bottom: 1.2rem;
}
.prose pre code { background: none; padding: 0; }
.prose blockquote {
  border-left: 4px solid var(--azure);
  padding-left: 1.2rem;
  color: var(--muted);
  font-style: italic;
}

/* ------------------------------------------------------------
   FAQ accordions (dark)
   ------------------------------------------------------------ */
.faq-list { display: grid; gap: 0.8rem; }
.faq-list details {
  background: rgba(238, 242, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--shape);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 1.3rem;
  color: var(--head);
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sky);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 1.3rem 1.2rem; color: var(--body-c); }

/* ------------------------------------------------------------
   Audit: report head (score ring + stat tiles + verdict)
   ------------------------------------------------------------ */
.report-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.score-visual { position: relative; width: 230px; }
.score-ring { width: 230px; height: 230px; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 9; }
.ring-track { stroke: rgba(126, 166, 255, 0.15); }
.ring-fill {
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(126, 166, 255, 0.35));
  transition: stroke-dasharray 1.2s var(--ease-out);
}
.ring-A .ring-fill, .ring-B .ring-fill { stroke: var(--ok); }
.ring-C .ring-fill { stroke: var(--warn-c); }
.ring-D .ring-fill, .ring-E .ring-fill { stroke: var(--bad); }

.score-number {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.score-number strong {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--head);
}
.score-number span {
  font-size: 0.82rem;
  color: var(--body-c);
  margin-top: 0.4rem;
}

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.stat-tile {
  background: rgba(238, 242, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--shape-sm);
  padding: 1rem 1.2rem;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--body-c);
}
.stat-label .check-dot { margin: 0; }
.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--head);
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.dot-pass { background: var(--ok); }
.dot-warn { background: var(--warn-c); }
.dot-fail { background: var(--bad); }

.verdict {
  margin-top: 1.6rem;
  background: rgba(126, 166, 255, 0.07);
  border-left: 3px solid var(--sky);
  border-radius: var(--shape-sm);
  padding: 1.4rem 1.6rem;
}
.verdict h2 { font-size: 1.05rem; color: var(--sky); margin-bottom: 0.5rem; }
.verdict p { color: var(--head); font-size: 0.98rem; }

/* Category scorecards with meters */
.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.scorecard {
  background: rgba(238, 242, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--shape);
  padding: 1.3rem 1.4rem;
}
.scorecard-group {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}
.scorecard h3 { font-size: 1rem; margin: 0.3rem 0 0.8rem; min-height: 2.4em; }
.scorecard-row { display: flex; align-items: center; gap: 0.8rem; }
.cat-meter { flex: 1; height: 6px; overflow: visible; }
.cat-meter line { stroke-width: 6; stroke-linecap: round; }
.meter-track { stroke: rgba(126, 166, 255, 0.15); }
.meter-good { stroke: var(--ok); }
.meter-warn { stroke: var(--warn-c); }
.meter-bad { stroke: var(--bad); }
.scorecard-score {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--head);
  min-width: 2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.scorecard-counts { margin-top: 0.6rem; font-size: 0.85rem; color: var(--body-c); }

.priority-meta-dark {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sky);
}
.priorities-row { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 960px) {
  .report-head { grid-template-columns: 1fr; justify-items: center; }
  .report-side { width: 100%; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .scorecard-grid { grid-template-columns: repeat(2, 1fr); }
  .priorities-row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .scorecard-grid { grid-template-columns: 1fr; }
}

/* Audit check lists */
.audit-results { display: grid; gap: 2.4rem; }
.audit-category h2 {
  font-size: 1.3rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.audit-cat-summary {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--body-c);
}
.audit-checks { list-style: none; display: grid; gap: 0.7rem; }
.audit-checks li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: rgba(238, 242, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--shape-sm);
  padding: 1rem 1.2rem;
}
.audit-checks strong { font-size: 0.98rem; color: var(--head); }
.audit-checks p { color: var(--body-c); font-size: 0.92rem; margin-top: 0.15rem; }
.check-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.45rem;
}
.check-pass .check-dot { background: var(--ok); }
.check-warn .check-dot { background: var(--warn-c); }
.check-fail .check-dot { background: var(--bad); }
.check-fail { border-left: 3px solid var(--bad); }
.check-warn { border-left: 3px solid var(--warn-c); }
.check-evidence {
  font-style: italic;
  color: var(--sky);
  font-size: 0.9rem;
  margin: 0.2rem 0 0.3rem;
}

/* ------------------------------------------------------------
   Clarity Report progress page
   ------------------------------------------------------------ */
.audit-progress { max-width: 560px; }
.progress-track {
  height: 8px;
  border-radius: 5px;
  background: rgba(126, 166, 255, 0.14);
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.progress-fill {
  height: 100%;
  width: 40%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--tier-2), var(--azure), var(--sky));
  animation: progress-sweep 1.6s ease-in-out infinite;
}
@keyframes progress-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
@media (prefers-reduced-motion: reduce) {
  .progress-fill { animation: none; width: 100%; opacity: 0.5; }
}
.progress-stages { list-style: none; display: grid; gap: 0.55rem; margin-bottom: 1.4rem; }
.progress-stage {
  color: var(--body-c);
  opacity: 0.45;
  transition: opacity 0.4s;
  padding-left: 1.6rem;
  position: relative;
}
.progress-stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.progress-stage.is-active { opacity: 1; color: var(--head); font-weight: 600; }
.progress-stage.is-active::before { background: var(--azure); border-color: var(--azure); }
.progress-note { color: var(--body-c); font-size: 0.92rem; }
.progress-error a { font-weight: 700; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--tier-0);
  border-top: 1px solid var(--line);
  color: var(--white);
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--body-c); margin: 1rem 0; max-width: 26em; font-size: 0.96rem; }
.footer-nav { display: grid; gap: 0.55rem; align-content: start; }
.footer-nav h3, .footer-news h3 {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.7rem;
}
.footer-nav a { color: var(--head); opacity: 0.85; font-size: 0.95rem; }
.footer-nav a:hover { opacity: 1; text-decoration: none; }
.footer-news p { color: var(--body-c); font-size: 0.95rem; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.8rem;
  color: var(--body-c);
  font-size: 0.86rem;
}
.footer-legal a, .footer-legal .link-btn { color: var(--body-c); margin-left: 1.2rem; opacity: 1; }
.footer-legal a:hover, .footer-legal .link-btn:hover { color: var(--white); }

/* ------------------------------------------------------------
   Reveal-on-scroll
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ------------------------------------------------------------
   Error pages
   ------------------------------------------------------------ */
.error-page {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(23, 107, 224, 0.25), transparent 60%),
    var(--tier-0);
  color: var(--white);
  padding: 2rem;
}
.error-page .code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; color: var(--sky); line-height: 1; }
.error-page p { color: var(--body-c); margin: 1rem 0 2rem; }

/* ------------------------------------------------------------
   Cookie consent banner
   ------------------------------------------------------------ */
/* The hidden attribute must beat our display declarations below */
.cookie-banner[hidden],
.cookie-prefs[hidden],
.cookie-actions [hidden] { display: none !important; }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  justify-content: center;
}
.cookie-banner-inner {
  background: rgba(2, 3, 31, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--shape);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7);
  padding: 1.4rem 1.6rem;
  max-width: 720px;
  width: 100%;
}
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.cookie-banner p { color: var(--body-c); font-size: 0.92rem; margin-bottom: 1rem; }
.cookie-banner a { color: var(--sky); }
.cookie-prefs { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.cookie-pref { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; }
.cookie-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.7rem 1.3rem; font-size: 0.9rem; }

@media (max-width: 700px) {
  .cookie-banner { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
  .cookie-banner-inner { padding: 1rem 1.1rem; }
  .cookie-banner h2 { font-size: 0.98rem; }
  .cookie-banner p { font-size: 0.85rem; margin-bottom: 0.8rem; }
  .cookie-actions { gap: 0.5rem; }
  .cookie-actions .btn {
    flex: 1 1 40%;
    padding: 0.65rem 0.6rem;
    font-size: 0.86rem;
    text-align: center;
    white-space: nowrap;
  }
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  opacity: 0.85;
}
.link-btn:hover { opacity: 1; text-decoration: underline; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .bento, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .arc-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .talk-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .bento, .post-grid, .feature-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  /* backdrop-filter on the header would make it the containing block for
     this fixed drawer and clip it to the header strip - use a solid
     background on mobile instead */
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(2, 3, 31, 0.94);
  }
  .site-header.is-scrolled { background: rgba(2, 3, 31, 0.97); }
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    padding: clamp(5rem, 14vh, 8rem) 1.5rem 3rem;
    overflow-y: auto;
    background: var(--tier-0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }
  .site-nav a { font-size: 1.3rem; }

  /* Dropdown becomes an inline sub-list inside the fullscreen menu */
  .nav-dropdown { display: grid; justify-items: center; }
  .nav-drop-btn { font-size: 1.3rem; }
  .nav-drop-menu {
    position: static;
    transform: none;
    min-width: 0;
    display: none;
    gap: 0.2rem;
    padding: 0.6rem 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-dropdown.is-open .nav-drop-menu {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .site-nav .nav-drop-menu a {
    color: var(--white);
    font-size: 1.05rem;
    opacity: 0.85;
    text-align: center;
  }
  .site-nav .nav-drop-menu a:hover { background: rgba(255, 255, 255, 0.08); }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #hero-canvas { display: none; }
  .hero-slide { position: static; opacity: 1; transform: none; }
  .hero-slide:not(.on) { display: none; }
  .slide-dots { display: none; }
}
