/* ==========================================================================
   Genysis IQ — design system
   Black + navy. Editorial serif display over a neutral sans UI.
   ========================================================================== */

:root {
  /* Surfaces */
  --black: #000000;
  --bg: #04060c;
  --bg-soft: #070c18;
  --surface: #080f1f;
  --surface-2: #0b1428;
  --surface-3: #0f1c37;
  --navy: #0d2350;

  /* Brand blues */
  --blue: #3b6fe0;
  --blue-bright: #5c8dff;
  --blue-soft: #9dbcf3;
  --blue-ghost: rgba(59, 111, 224, 0.14);

  /* Type */
  --text: #eef2f9;
  --muted: #9aabc6;
  --faint: #6b7d9b;

  /* Lines */
  --line: rgba(125, 158, 210, 0.13);
  --line-2: rgba(125, 158, 210, 0.22);
  --line-3: rgba(125, 158, 210, 0.36);

  /* Fonts */
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Metrics */
  --max: 1240px;
  --gutter: 40px;
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Fine architectural grid used as a texture on dark panels */
  --grid: linear-gradient(rgba(125, 158, 210, 0.045) 1px, transparent 1px) 0 0 / 100% 64px,
          linear-gradient(90deg, rgba(125, 158, 210, 0.045) 1px, transparent 1px) 0 0 / 64px 100%;
}

/* --------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* Several layouts here depend on column order, which follows writing
     direction. Pinned so an extension flipping the page to RTL cannot
     rearrange them. */
  direction: ltr;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* An explicit `display` on a component beats the browser's [hidden] rule, so
   anything hidden in markup would still render. Settle it once, globally. */
[hidden] { display: none !important; }

/* Film grain — keeps flat dark areas from banding and reads as print texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--blue); color: #fff; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------- typography -- */

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1.display { font-size: clamp(3rem, 6.4vw, 5.6rem); }
h2.display { font-size: clamp(2.25rem, 4.4vw, 3.9rem); }
h3.display { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

/* for long, sentence-length statements that still need to read as a headline */
.display--statement { font-size: clamp(1.8rem, 3.1vw, 2.85rem); line-height: 1.08; }

.display em {
  font-style: italic;
  color: var(--blue-soft);
}

.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

.label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
  flex: none;
}

.label--dot::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(92, 141, 255, 0.16);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(92, 141, 255, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(92, 141, 255, 0.04); }
}

.num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- layout -- */

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

.section { padding: clamp(72px, 9vw, 132px) 0; }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.section--line { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head .display { margin-top: 18px; }

/* --------------------------------------------------------------- header -- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  z-index: 9999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(4, 6, 12, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-stuck {
  background: rgba(4, 6, 12, 0.92);
  border-bottom-color: var(--line);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.4s var(--ease);
}

.site-header.is-stuck .nav { height: 68px; }

/* Brand lockup — horizontal in the header, stacked in the footer */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: 250px;
  height: auto;
  transition: width 0.4s var(--ease), opacity 0.3s var(--ease);
}

.brand:hover img { opacity: 0.82; }
.site-header.is-stuck .brand img { width: 214px; }

.footer-logo { width: 208px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a:not(.btn) {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.42s var(--ease);
}

.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-cta { margin-left: 6px; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}

.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 24px; }

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* --------------------------------------------------------------- button -- */

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.btn svg { width: 14px; height: 14px; flex: none; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #2a52b8 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 30px -12px rgba(59, 111, 224, 0.8);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.015);
}

.btn-ghost:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-lg { padding: 17px 30px; font-size: 14.5px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-2);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-arrow svg { width: 13px; height: 13px; transition: transform 0.4s var(--ease); }
.link-arrow:hover { color: #fff; border-color: var(--blue-bright); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: -6% 0 -6%;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--bg) 1%, rgba(4, 6, 12, 0.84) 30%, rgba(4, 6, 12, 0.14) 64%, rgba(4, 6, 12, 0.34) 100%),
    linear-gradient(0deg, var(--bg) 1%, transparent 32%),
    linear-gradient(180deg, rgba(4, 6, 12, 0.62), transparent 22%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--grid);
  mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  /* padding-block only — the `padding` shorthand would clear .shell's gutters */
  padding-block: clamp(110px, 14vh, 170px) clamp(56px, 7vh, 84px);
}

.hero-copy { max-width: 700px; }
.hero h1 { margin: 26px 0 28px; font-size: clamp(2.8rem, 5.3vw, 4.75rem); }
.hero .lede { max-width: 50ch; }

@media (min-width: 901px) {
  .hero h1 .line > span { white-space: nowrap; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: clamp(48px, 8vh, 88px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}

.hero-meta div {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-top: 4px;
}

/* Line-by-line mask reveal for the headline.
   Padding/negative-margin pair keeps ascenders and descenders out of the clip. */
.line {
  display: block;
  overflow: hidden;
  padding: 0.14em 0.06em 0.2em;
  margin: -0.14em -0.06em -0.2em;
}
.line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.is-ready .line > span { transform: none; }
.is-ready .line:nth-child(2) > span { transition-delay: 0.09s; }
.is-ready .line:nth-child(3) > span { transition-delay: 0.18s; }

.hero-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.is-ready .hero-fade { opacity: 1; transform: none; }
.is-ready .hero-fade[data-delay="1"] { transition-delay: 0.26s; }
.is-ready .hero-fade[data-delay="2"] { transition-delay: 0.36s; }
.is-ready .hero-fade[data-delay="3"] { transition-delay: 0.48s; }
.is-ready .hero-fade[data-delay="4"] { transition-delay: 0.6s; }

/* ---------------------------------------------------------- stats band -- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 35, 80, 0.28), transparent);
}

.stats > div {
  padding: 34px var(--gutter);
  border-left: 1px solid var(--line);
}

.stats > div:first-child { border-left: 0; }

.stat-value {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1;
  color: #fff;
  display: block;
}

.stat-value small {
  font-family: var(--sans);
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-bright);
  vertical-align: 0.55em;
  margin-left: 2px;
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------- cards -- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card {
  position: relative;
  padding: 40px 34px 44px;
  background: linear-gradient(180deg, var(--surface) 0%, #060b17 100%);
  transition: background 0.5s var(--ease);
  overflow: hidden;
}

/* cursor-tracked highlight */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 111, 224, 0.16), transparent 70%);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  transform: scaleX(0);
  transition: transform 0.7s var(--ease);
}

.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card:hover { background: linear-gradient(180deg, #0b142a 0%, #060b17 100%); }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--blue-bright);
  background: rgba(59, 111, 224, 0.06);
  margin-bottom: 26px;
  position: relative;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  position: relative;
}

.card .num {
  position: absolute;
  top: 40px;
  right: 34px;
}

/* ------------------------------------------------ office #1 vs office #2 -- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.compare-item {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.compare-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.compare-item:hover img { transform: scale(1.03); }

.compare-num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(4, 8, 18, 0.72);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.compare-item figcaption {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
}

.compare-item figcaption b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.compare-item figcaption span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

/* ----------------------------------------------------------- film panel -- */

.film {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #05080f;
}

.film video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.film::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(3, 6, 14, 0.94) 2%, rgba(3, 6, 14, 0.35) 34%, transparent 62%),
    linear-gradient(90deg, rgba(6, 14, 32, 0.4), transparent 55%);
}

.film figcaption {
  position: absolute;
  left: clamp(20px, 3.4vw, 48px);
  right: clamp(20px, 3.4vw, 48px);
  bottom: clamp(20px, 3vw, 42px);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.film-caption {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.9vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: 0;
}

.film-caption em { font-style: italic; color: var(--blue-soft); }

.film-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(6, 11, 23, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.film-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  animation: pulse 2.6s ease-in-out infinite;
}

/* -------------------------------------------------------------- feature -- */

.feature {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
}

.feature--flip .feature-visual { order: 2; }

.feature-visual {
  position: relative;
  /* Deliberately NOT stretched to the copy column's height. Doing that makes
     this a portrait box, and `cover` then crops a landscape photo hard from
     the sides - which cut people out of the frame. */
  align-self: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
}

.feature-visual img {
  width: 100%;
  height: auto;
  /* Matches the source files, so `cover` has nothing to trim. */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 6, 12, 0.75)),
              linear-gradient(90deg, rgba(13, 35, 80, 0.25), transparent 60%);
  pointer-events: none;
}

.feature-visual:hover img { transform: scale(1.04); }

/* small overlapping chip on the image */
.visual-chip {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 16px;
  border-radius: var(--radius);
  background: rgba(6, 11, 23, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
}

.visual-chip svg { width: 26px; height: 26px; color: var(--blue-bright); flex: none; }

.visual-chip b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.visual-chip span {
  display: block;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.feature-copy h2 { margin: 18px 0 22px; }
.feature-copy .lede { margin: 0; }

.checklist {
  display: grid;
  gap: 2px;
  margin: 32px 0 34px;
  border-top: 1px solid var(--line);
}

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: #cddaee;
}

.checklist svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--blue-bright);
}

ul.checklist { list-style: none; padding: 0; }

/* --------------------------------------------------------------- casper -- */

.casper-rail {
  position: relative;
  margin-top: 8px;
  /* letter block (3.6rem x 0.8 line-height) + dot margin + half the dot,
     so the rail always threads through the dot centres */
  --rail-y: calc(2.88rem + 20px + 6.5px);
}

.casper-track {
  position: absolute;
  top: var(--rail-y);
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-2);
}

.casper-track i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  transition: transform 0.25s linear;
}

.casper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  position: relative;
}

.casper-step { padding-right: 14px; }

.casper-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  background: var(--bg);
  margin: 20px 0 26px;
  position: relative;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.casper-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue-bright);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.casper-step.is-active .casper-dot { border-color: var(--blue-bright); }
.casper-step.is-active .casper-dot::after { opacity: 1; transform: none; }

.casper-letter {
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-3);
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s var(--ease);
  display: block;
}

.casper-step.is-active .casper-letter {
  color: var(--blue-soft);
  -webkit-text-stroke-color: transparent;
}

.casper-step h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 16px 0 8px;
}

.casper-step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ------------------------------------------------------------- services -- */

.svc {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(38px, 4vw, 58px) 0;
  border-top: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}

.svc:last-of-type { border-bottom: 1px solid var(--line); }

.svc-head { position: sticky; top: 118px; align-self: start; }

.svc-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: 16px;
}

.svc-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--blue-bright);
  margin-top: 22px;
}

.svc-icon svg { width: 20px; height: 20px; }

.svc-body p { margin: 0 0 22px; color: var(--muted); font-size: 16px; }

.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

.svc-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: #cad7ec;
}

.svc-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------ cta -- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--bg) 8%, rgba(4, 6, 12, 0.93) 44%, rgba(5, 11, 26, 0.86)),
              radial-gradient(120% 140% at 80% 0%, rgba(59, 111, 224, 0.2), transparent 60%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(64px, 8vw, 112px);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.cta-inner h2 { margin: 18px 0 18px; }
.cta-inner .lede { margin: 0; }

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.cta-actions .btn { width: 100%; }

/* ---------------------------------------------------------------- orgs -- */

.orgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.org {
  display: grid;
  place-items: center;
  min-height: 158px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.org:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
}

/* --logo-h is set per logo so square and wide marks carry equal optical
   weight rather than equal pixel height. */
.org img {
  height: auto;
  max-height: var(--logo-h, 58px);
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* ------------------------------------------------------------ page hero -- */

.page-hero {
  position: relative;
  padding: clamp(96px, 13vw, 168px) 0 clamp(52px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grid);
  mask-image: radial-gradient(120% 100% at 78% 10%, #000, transparent 65%);
  -webkit-mask-image: radial-gradient(120% 100% at 78% 10%, #000, transparent 65%);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60vw;
  height: 120%;
  background: radial-gradient(closest-side, rgba(59, 111, 224, 0.16), transparent);
  pointer-events: none;
}

.page-hero .shell { position: relative; z-index: 2; }
.page-hero h1 { margin: 24px 0 26px; max-width: 18ch; }

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 26px;
}

.crumb a:hover { color: var(--text); }
.crumb span { color: var(--line-3); }

/* ----------------------------------------------------------------- team -- */

.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.team-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), #05090f);
  display: flex;
  flex-direction: column;
}

.team-visual {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.team-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transition: transform 1.6s var(--ease);
}

.team-card:hover .team-visual img { transform: scale(1.04); }

.team-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 6, 12, 0.7));
}

/* monogram tile for the portrait-less card */
.monogram {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 110% at 30% 10%, rgba(59, 111, 224, 0.22), transparent 62%),
    linear-gradient(160deg, #0a142c, #05090f);
}

.monogram::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grid);
  opacity: 0.9;
}

.monogram span {
  position: relative;
  font-family: var(--serif);
  font-size: 6.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(157, 188, 243, 0.55);
}

.team-body { padding: 32px clamp(24px, 3vw, 36px) 36px; }
.team-role { color: var(--blue-soft); }
.team-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
}
.team-body p { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.pill {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: #b9c9e2;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.pill:hover { border-color: var(--line-3); color: #fff; }

/* -------------------------------------------------------------- philos. -- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 34px;
}

.principle {
  padding: 26px 26px 26px 0;
  border-right: 1px solid var(--line);
}

.principle:last-child { border-right: 0; padding-right: 0; }
.principle:not(:first-child) { padding-left: 26px; }

.principle b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.principle span { color: var(--muted); font-size: 14.5px; }

/* -------------------------------------------------------------- contact -- */

.contact {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), #05090f);
  padding: clamp(28px, 3.2vw, 40px);
}

.panel--aside { position: relative; overflow: hidden; }

.panel--aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grid);
  opacity: 0.8;
  pointer-events: none;
}

.panel--aside > * { position: relative; }

.contact-list {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.contact-list div {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt,
.contact-list span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

.contact-list a,
.contact-list strong {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

.contact-list a:hover { color: var(--blue-bright); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.35s var(--ease);
}

.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: #445573; }

.field input:focus,
.field textarea:focus { border-bottom-color: var(--blue-bright); }

.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: #d2637a; }

.field-error {
  font-size: 12px;
  color: #e08a9c;
  min-height: 0;
  display: none;
}

.field.is-invalid .field-error { display: block; }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-note { font-size: 13px; color: var(--faint); margin: 0; }

.form-status {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  border-left: 2px solid var(--line-3);
  padding: 12px 0 12px 16px;
  margin: 0;
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.is-success { color: #a8dcc4; border-left-color: #3fa87c; }
.form-status.is-error { color: #e6a3b1; border-left-color: #c9566f; }

/* Honeypot — off-screen for people, still fillable by bots. */
.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* --------------------------------------------------------------- footer -- */

.footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--black);
  overflow: hidden;
  padding-top: clamp(56px, 6vw, 82px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: clamp(30px, 5vw, 60px);
  position: relative;
  z-index: 2;
}

.footer p { color: var(--muted); font-size: 15px; max-width: 34ch; margin: 22px 0 0; }
.footer h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

.footer-links { display: grid; gap: 11px; }
.footer-links a {
  color: var(--muted);
  font-size: 15px;
  width: fit-content;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-links a:hover { color: var(--text); transform: translateX(3px); }

.footer-bottom {
  position: relative;
  z-index: 2;
  margin-top: clamp(44px, 5vw, 66px);
  padding-block: 22px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--faint);
}

/* Privacy / Terms, centred between the copyright and the tagline. */
.footer-legal { display: flex; gap: 18px; }
.footer-legal a {
  color: var(--faint);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.footer-legal a:hover { color: var(--text); }

/* oversized ghost wordmark bleeding off the bottom */
.footer-ghost {
  position: absolute;
  left: 50%;
  bottom: -0.42em;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(5rem, 17vw, 15rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(125, 158, 210, 0.055);
  pointer-events: none;
  z-index: 0;
}

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

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: slide 42s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.marquee span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------- reveal -- */

/* Hidden only once JS has confirmed it can reveal them again. Without JS,
   or if the observer never runs, everything renders normally. */
.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), clip-path 1.1s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.js [data-reveal="up"] { transform: translateY(26px); }
.js [data-reveal="left"] { transform: translateX(-24px); }
.js [data-reveal="right"] { transform: translateX(24px); }
.js [data-reveal="mask"] { clip-path: inset(0 0 100% 0); opacity: 1; }

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 1080px) {
  .casper { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .casper-track { display: none; }
  .casper-dot { margin-top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --header-h: 72px; }

  .menu-btn { display: block; }
  .brand img,
  .site-header.is-stuck .brand img { width: 198px; }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
    background: #050810;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease);
  }

  .nav-links.is-open { clip-path: inset(0 0 0 0); }

  .nav-links a:not(.btn) {
    font-size: 15px;
    letter-spacing: 0.06em;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin: 20px 0 0; }

  .section-head { grid-template-columns: 1fr; align-items: start; }
  .cards { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-visual { order: 0; }
  .svc { grid-template-columns: 1fr; }
  .svc-head { position: static; }
  .team { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-actions .btn { width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .hero-media { inset: 0; }
  .hero-scrim {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(4, 6, 12, 0.86) 55%, rgba(4, 6, 12, 0.52) 100%),
      linear-gradient(0deg, var(--bg) 2%, transparent 40%);
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: auto; }
  .hero-inner { padding-block: 108px 64px; }
  .hero-copy { max-width: none; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-left: 0; border-top: 1px solid var(--line); padding: 26px var(--gutter); }
  .stats > div:first-child { border-top: 0; }
  .casper { grid-template-columns: 1fr 1fr; }
  .orgs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .org { min-height: 140px; padding: 18px 14px; }
  .svc-list { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle:not(:first-child) { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .brand img,
  .site-header.is-stuck .brand img { width: 176px; }
  .card .num { top: 34px; right: 26px; }
  .card { padding: 34px 26px 38px; }
}

/* ------------------------------------------------------- reduced motion -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .line > span { transform: none !important; }
  .hero-fade { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}

/* --------------------------------------------------------------- print -- */

@media print {
  body { background: #fff; color: #000; }
  .site-header, .footer-ghost, .hero-media, .marquee { display: none; }
}

/* ==========================================================================
   Site assistant — floating chat widget on the public pages
   ========================================================================== */

.sitechat { position: fixed; right: 22px; bottom: 22px; z-index: 900; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ the button -- */

.sitechat-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue) 0%, #2a52b8 100%);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 34px -10px rgba(59, 111, 224, 0.75);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sitechat-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -12px rgba(59, 111, 224, 0.85); }
.sitechat-fab svg { width: 20px; height: 20px; flex: none; }
.sitechat-fab .fab-close { display: none; }

.sitechat.is-open .fab-open { display: none; }
.sitechat.is-open .fab-close { display: block; }
.sitechat.is-open .fab-label { display: none; }
.sitechat.is-open .sitechat-fab { padding: 14px; }

/* gentle nudge for first-time visitors */
.sitechat.has-nudge .sitechat-fab { animation: nudge 2.4s ease-in-out 3; }
@keyframes nudge {
  0%, 100% { transform: none; }
  8% { transform: translateY(-6px); }
  16% { transform: none; }
}

/* ------------------------------------------------------------- the panel -- */

.sitechat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(384px, calc(100vw - 44px));
  max-height: min(605px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(180deg, #0a1020, #05080f);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  animation: sc-in 0.28s var(--ease);
}
@keyframes sc-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.sitechat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.sitechat-head > div { flex: 1; min-width: 0; }
.sitechat-head b { display: block; font-size: 14px; font-weight: 600; }
.sitechat-head span { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }

.sitechat-avatar {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #22407e);
  color: #fff;
}
.sitechat-avatar svg { width: 19px; height: 19px; }

.sitechat-min {
  border: 0; background: none; color: var(--faint);
  cursor: pointer; padding: 4px; line-height: 0;
}
.sitechat-min svg { width: 18px; height: 18px; }
.sitechat-min:hover { color: var(--text); }

/* --------------------------------------------------------------- the log -- */

.sitechat-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-msg { display: flex; }
.sc-user { justify-content: flex-end; }

.sc-bubble {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.sc-ai .sc-bubble {
  background: rgba(125, 158, 210, 0.1);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  color: var(--text);
}
.sc-user .sc-bubble {
  background: linear-gradient(135deg, var(--blue), #2a52b8);
  border-bottom-right-radius: 5px;
  color: #fff;
}
.sc-error .sc-bubble { border-color: rgba(201, 86, 111, 0.45); color: var(--err-soft); }
.sc-bubble a { color: var(--blue-soft); text-decoration: underline; }
.sc-user .sc-bubble a { color: #fff; }
.sc-bubble code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
}

.sc-typing span {
  display: inline-block; width: 6px; height: 6px; margin-right: 4px;
  border-radius: 50%; background: var(--blue-soft);
  animation: sc-blink 1.2s ease-in-out infinite;
}
.sc-typing span:nth-child(2) { animation-delay: 0.18s; }
.sc-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes sc-blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* ---------------------------------------------------------- suggestions -- */

.sitechat-suggest { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.sitechat-suggest:empty { display: none; }
.sitechat-suggest button {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.sitechat-suggest button:hover { border-color: var(--blue-bright); color: #fff; }

/* ----------------------------------------------------------- the composer */

.sitechat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 12px 10px;
  border-top: 1px solid var(--line);
}
.sitechat-form textarea {
  flex: 1;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 12px;
  resize: none;
  outline: none;
  max-height: 110px;
  transition: border-color 0.25s var(--ease);
}
.sitechat-form textarea:focus { border-color: var(--blue-bright); }
.sitechat-form textarea::placeholder { color: #445573; }

.sitechat-form button {
  flex: none;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #2a52b8);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: opacity 0.25s var(--ease);
}
.sitechat-form button svg { width: 17px; height: 17px; }
.sitechat-form button:disabled { opacity: 0.4; cursor: not-allowed; }

.sitechat-foot {
  margin: 0;
  padding: 0 16px 13px;
  font-size: 11.5px;
  color: var(--faint);
  text-align: center;
}
.sitechat-foot a { color: var(--blue-soft); }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 640px) {
  .sitechat { right: 14px; bottom: 14px; }
  .sitechat-fab .fab-label { display: none; }
  .sitechat-fab { padding: 15px; }
  .sitechat-panel {
    position: fixed;
    right: 14px; left: 14px; bottom: 78px;
    width: auto;
    max-height: calc(100vh - 150px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sitechat-panel { animation: none; }
  .sitechat.has-nudge .sitechat-fab { animation: none; }
  .sc-typing span { animation: none; opacity: 0.6; }
}

@media print { .sitechat { display: none; } }

/* ==========================================================================
   Legal pages — privacy, terms
   ========================================================================== */

.legal {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

/* jump list, sticky beside the text on wide screens */
.legal-toc { position: sticky; top: 116px; }
.legal-toc h2 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 1px; }
.legal-toc a {
  display: block;
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.legal-toc li { counter-increment: toc; }
.legal-toc a::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
}
.legal-toc a:hover { color: var(--text); }

/* the prose itself */
.legal-body { max-width: 74ch; }
.legal-body > section { padding-bottom: 34px; }
.legal-body > section + section { border-top: 1px solid var(--line); padding-top: 34px; }

.legal-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 14px;
  scroll-margin-top: 110px;
}
.legal-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 24px 0 8px;
}
.legal-body p { margin: 0 0 14px; color: var(--muted); line-height: 1.72; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--blue-soft); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: #fff; }

.legal-body ul { margin: 0 0 16px; padding-left: 20px; }
.legal-body li { margin: 7px 0; color: var(--muted); line-height: 1.65; }
.legal-body li::marker { color: var(--blue-soft); }
.legal-body li strong { color: var(--text); }

/* definition-style rows for the "what we collect" tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14.5px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
}
.legal-table th {
  width: 34%;
  font-weight: 600;
  color: var(--text);
}
.legal-table td { color: var(--muted); line-height: 1.6; }
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: 0; }

.legal-note {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.legal-note strong { display: block; color: var(--text); margin-bottom: 4px; }

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
.legal-updated::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
}

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .legal-toc ol { grid-template-columns: 1fr 1fr; display: grid; }
}

@media (max-width: 560px) {
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-table th, .legal-table td { display: block; width: auto; padding-right: 0; }
  .legal-table th { border-bottom: 0; padding-bottom: 2px; }
}

/* =============================================================================
   SMS consent checkbox (A2P 10DLC call to action)
   Deliberately plain and legible - a carrier reviewer has to be able to read
   the disclosures and see that the box starts unchecked.
   ============================================================================= */
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
  flex: none;
}
.consent label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
  /* Override the uppercase field label styling used elsewhere in the form. */
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.consent label b {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 14px;
}
.consent a { color: var(--blue-soft); }

/* Sample SMS, shown as it would arrive on a phone. Monospace because a carrier
   reviewer is counting characters and looking for STOP/HELP in the body. */
.legal-sample {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text);
  background: rgba(74, 124, 232, 0.07);
  border: 1px solid rgba(74, 124, 232, 0.28);
  border-radius: var(--radius);
  padding: 13px 15px;
  margin: 0 0 12px;
}

/* Verbatim consent wording - quoted so it reads as an exact reproduction. */
.legal-quote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 2px solid var(--blue);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.legal-quote b { display: block; color: var(--text); font-weight: 600; margin-bottom: 5px; }

/* =============================================================================
   Booking page
   ============================================================================= */
.booking {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.booking > * { min-width: 0; }

.booking-aside { position: sticky; top: 110px; }

.booking-steps { list-style: none; margin: 18px 0 26px; padding: 0; counter-reset: bs; }
.booking-steps li {
  counter-increment: bs;
  position: relative;
  padding: 0 0 20px 40px;
  border-left: 1px solid var(--line);
  margin-left: 11px;
}
.booking-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.booking-steps li::before {
  content: counter(bs);
  position: absolute;
  left: -11px;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--blue-soft);
  background: var(--bg);
  border: 1px solid var(--line-2);
}
.booking-steps b { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.booking-steps span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.booking-note {
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 14px;
}
.booking-note b { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.booking-note span { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 12px; }

/* Calendly paints its own surface; the border keeps it inside our design. */
.booking-main {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  min-height: 760px;
}
.booking-fallback { padding: 40px; color: var(--muted); }
.booking-fallback a { color: var(--blue-soft); }

@media (max-width: 900px) {
  .booking { grid-template-columns: 1fr; }
  .booking-aside { position: static; }
  .booking-main { min-height: 700px; }
}

/* =============================================================================
   CASPER page
   ============================================================================= */
.casper-why {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.casper-why > * { min-width: 0; }

.casper-map { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.casper-map a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}
.casper-map a:hover {
  border-color: rgba(74, 124, 232, 0.5);
  color: var(--text);
  transform: translateX(4px);
}
.casper-map b {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--blue-soft);
  width: 18px;
  line-height: 1;
}

.casper-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* the six stages */
.cstages { display: grid; gap: clamp(28px, 4vw, 52px); }

.cstage {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(20px, 3vw, 44px);
  padding-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
}
.cstage:last-child { border-bottom: 0; padding-bottom: 0; }
.cstage > * { min-width: 0; }

.cstage-mark { position: sticky; top: 110px; align-self: start; }
.cstage-letter {
  display: block;
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 104px);
  line-height: 0.85;
  color: var(--blue);
  opacity: 0.9;
}
.cstage-num {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.cstage-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--text);
}
.cstage-tag {
  color: var(--blue-soft);
  font-size: 15px;
  margin: 0 0 16px;
}
.cstage-body > p { color: var(--muted); line-height: 1.75; margin: 0 0 20px; }
.cstage-body h3 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin: 0 0 12px;
}
.cstage-body ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.cstage-body li { color: var(--muted); line-height: 1.6; font-size: 14.5px; }
.cstage-body li::marker { color: var(--blue-soft); }

@media (max-width: 900px) {
  .casper-why { grid-template-columns: 1fr; }
  .cstage { grid-template-columns: 1fr; gap: 14px; }
  .cstage-mark { position: static; display: flex; align-items: baseline; gap: 14px; }
  .cstage-letter { font-size: 52px; }
  .cstage-num { margin-top: 0; }
}

/* Who this is for. Sits under the hero lede and prequalifies before the CTA. */
.hero-qualify {
  margin: 18px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  max-width: 60ch;
  color: var(--faint);
  font-size: 14.5px;
  line-height: 1.65;
}
.hero-qualify b { color: var(--muted); font-weight: 500; }

/* =============================================================================
   FAQ
   Native <details> so answers are in the DOM for crawlers even when collapsed,
   and so keyboard/screen-reader behaviour is the browser's, not ours.
   ============================================================================= */
.faq { max-width: 860px; }

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h2 {
  flex: 1;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(15px, 1.6vw, 17.5px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  transition: color 0.3s var(--ease);
}
.faq-item summary:hover h2 { color: var(--blue-soft); }

.faq-mark {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--blue-soft);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq-mark::before { inset: 7px 0; height: 2px; }
.faq-mark::after  { inset: 0 7px; width: 2px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); opacity: 0; }

.faq-a { padding: 0 36px 24px 0; }
.faq-a p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
  font-size: 15px;
  max-width: 68ch;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-a { animation: faqIn 0.4s var(--ease); }
  @keyframes faqIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 560px) {
  .faq-item summary { padding: 18px 0; gap: 14px; }
  .faq-a { padding-right: 0; }
}

/* Master-category headers on Services. Scaling is the discipline; the numbered
   services beneath are capabilities, not a menu of separate businesses. */
.svc-group {
  margin: clamp(30px, 5vw, 64px) 0 clamp(18px, 2.5vw, 30px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
}
.svc-group:first-child { margin-top: 0; }
.svc-group h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--text);
}
.svc-group p {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.7;
  font-size: 15px;
}

/* Homepage FAQ preview - same component as the FAQ page, lighter chrome. */
.faq--preview { max-width: 900px; margin-top: 8px; }
.faq--preview .faq-item summary h3 {
  flex: 1;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 16.5px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  transition: color 0.3s var(--ease);
}
.faq--preview .faq-item summary:hover h3 { color: var(--blue-soft); }

.faq-more { margin: 26px 0 0; }
.faq-more a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-soft);
  text-decoration: none;
  font-size: 14.5px;
  transition: gap 0.3s var(--ease);
}
.faq-more a:hover { gap: 14px; }
.faq-more svg { width: 16px; height: 16px; }

/* =============================================================================
   Scaling readiness assessment
   ============================================================================= */
.assess { max-width: 780px; }

.assess-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 14px;
}
.assess-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  border-radius: 100px;
  transition: width 0.45s var(--ease);
}
.assess-count {
  margin: 0 0 26px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.assess-q { border: 0; margin: 0; padding: 0; }
.assess-q legend {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 26px;
  padding: 0;
}

.assess-opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.25s var(--ease);
}
.assess-opt:hover { border-color: rgba(74, 124, 232, 0.45); color: var(--text); transform: translateX(3px); }
.assess-opt input { margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.assess-opt.is-on {
  border-color: var(--blue);
  background: rgba(74, 124, 232, 0.1);
  color: var(--text);
}
/* Keyboard focus has to be visible even though the input is tiny. */
.assess-opt:focus-within { outline: 2px solid var(--blue-soft); outline-offset: 2px; }

.assess-nav { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.assess-nav .btn-primary { margin-left: auto; }

/* ------------------------------------------------------------- result ----- */
#assessResult { animation: faqIn 0.5s var(--ease); }

.assess-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.assess-score h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 400;
  margin: 10px 0 8px;
  color: var(--text);
}
.assess-line { color: var(--blue-soft); font-size: 16px; margin: 0 0 12px; }
.assess-score p { color: var(--muted); line-height: 1.72; margin: 0; }

/* conic-gradient dial - no chart library for one number */
.assess-dial {
  width: 150px;
  height: 150px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--blue) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.07) 0);
  position: relative;
}
.assess-dial::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--bg);
}
.assess-dial span {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 44px;
  color: var(--text);
  line-height: 1;
}
.assess-dial small { font-size: 15px; color: var(--faint); }

.assess-breakdown { padding: 30px 0; border-bottom: 1px solid var(--line); }
.assess-breakdown h3,
.assess-constraint h3 { color: var(--text); }
.assess-breakdown h3 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin: 0 0 18px;
}
.assess-stage {
  display: grid;
  grid-template-columns: 108px 1fr 44px;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
  font-size: 13.5px;
  color: var(--muted);
}
.assess-stage b { color: var(--muted); font-weight: 500; }
.assess-stage > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.assess-stage.is-weak b { color: var(--blue-soft); }
.assess-stage.is-weak .assess-meter i { background: var(--blue-soft); }
.assess-meter {
  height: 7px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.assess-meter i {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: rgba(126, 168, 245, 0.4);
  transition: width 0.7s var(--ease);
}

.assess-constraint { padding: 30px 0; }
.assess-constraint h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
  margin: 10px 0 12px;
}
.assess-constraint p { color: var(--muted); line-height: 1.72; margin: 0 0 12px; }
.assess-note {
  font-size: 13.5px;
  color: var(--faint);
  border-left: 2px solid var(--line-2);
  padding-left: 14px;
}

.assess-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.assess-cta .linklike { margin-left: 6px; }

@media (max-width: 620px) {
  .assess-score { grid-template-columns: 1fr; justify-items: start; }
  .assess-dial { width: 120px; height: 120px; }
  .assess-dial span { font-size: 36px; }
  .assess-stage { grid-template-columns: 88px 1fr 40px; gap: 10px; font-size: 12.5px; }
  .assess-nav .btn-primary { margin-left: 0; }
  .assess-nav { flex-direction: column-reverse; align-items: stretch; }
}

/* Assessment entry point on the homepage */
.assess-promo {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding: 26px 30px;
  border: 1px solid rgba(74, 124, 232, 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(74, 124, 232, 0.09), rgba(74, 124, 232, 0.03));
}
.assess-promo > div { flex: 1; min-width: 260px; }
.assess-promo h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  color: var(--text);
  margin: 8px 0 8px;
}
.assess-promo p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 60ch; }

/* =============================================================================
   Case studies
   ============================================================================= */
.cases { display: grid; gap: clamp(48px, 7vw, 96px); }

.case { scroll-margin-top: 100px; }

.case-head { padding-bottom: 26px; border-bottom: 1px solid var(--line-2); }

.case-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.case-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--blue-soft);
  letter-spacing: 0.04em;
}
.case-kind {
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  color: var(--faint);
}
/* Case 01 is the founder's own company, not a client engagement. Labelling it
   honestly is the whole reason this distinction exists. */
.case-kind--founder { border-color: rgba(224, 168, 92, 0.4); color: #e0b978; background: rgba(224, 168, 92, 0.08); }
.case-kind--client  { border-color: rgba(74, 208, 122, 0.36); color: #7fd8a2; background: rgba(74, 208, 122, 0.08); }

.case h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin: 10px 0 24px;
  max-width: 22ch;
}

.case-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.case-stat {
  flex: 1 1 150px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.case-stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
  color: var(--blue-soft);
  line-height: 1;
  margin-bottom: 7px;
}
.case-stat span {
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}

.case-note {
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 2px solid rgba(224, 168, 92, 0.5);
  background: rgba(224, 168, 92, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

/* body: label column + content, collapsing on narrow screens */
.case-body { padding-top: 30px; display: grid; gap: 32px; }

.case-section {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
}
.case-section > * { min-width: 0; }
.case-section h3 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin: 3px 0 0;
}
.case-section > p { margin: 0; color: var(--muted); line-height: 1.78; }
.case-section > p strong { color: var(--text); font-weight: 500; }

.case-steps { min-width: 0; }
.case-step + .case-step { margin-top: 20px; }
.case-step h4 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
}
.case-step p { margin: 0; color: var(--muted); line-height: 1.72; font-size: 14.5px; }
.case-step em { color: var(--blue-soft); font-style: italic; }

.case-result { margin: 0; padding-left: 18px; display: grid; gap: 9px; }
.case-result li { color: var(--muted); line-height: 1.6; font-size: 15px; }
.case-result li::marker { color: var(--blue-soft); }

.case-casper { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case-casper-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg);
  font-size: 14px;
}
.case-casper-row b { color: var(--blue-soft); font-weight: 500; }
.case-casper-row span { color: var(--muted); line-height: 1.55; }

.case-takeaway {
  margin: 0;
  padding: 22px 26px;
  border-left: 2px solid var(--blue);
  background: linear-gradient(90deg, rgba(74, 124, 232, 0.08), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
}

@media (max-width: 860px) {
  .case-section { grid-template-columns: 1fr; gap: 12px; }
  .case-section h3 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .case-casper-row { grid-template-columns: 1fr; gap: 3px; }
  .case h2 { max-width: none; }
}

/* Homepage proof teaser */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proof-card {
  display: block;
  padding: 26px 26px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}
.proof-card:hover {
  border-color: rgba(74, 124, 232, 0.5);
  background: rgba(74, 124, 232, 0.05);
  transform: translateY(-4px);
}
.proof-stat {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: var(--blue-soft);
  line-height: 1;
  margin-bottom: 12px;
}
.proof-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.5;
  margin-bottom: 14px;
}
.proof-card p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.proof-go { font-size: 13.5px; color: var(--blue-soft); }
.proof-card:hover .proof-go { color: #fff; }

@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }
