/* ==========================================================================
   Clementis Scientific Consulting — Design System
   Palette grounded in the brand mark: navy authority, DNA-helix teal,
   gold "value" accent, leaf sage. Cool clinical paper (not warm cream).
   Type: Spectral (journal serif) + IBM Plex Sans + IBM Plex Mono (data).
   ========================================================================== */

:root {
  /* ---- Palette ---- */
  --navy:        #0E2544;
  --navy-900:    #091A31;
  --navy-800:    #0C2039;
  --navy-700:    #163257;
  --navy-600:    #1E4270;
  --teal:        #1C97A6;
  --teal-deep:   #12707A;
  --teal-600:    #178391;
  --teal-glow:   #37C0CE;
  --gold:        #C6A15B;
  --gold-soft:   #DABD84;
  --sage:        #6FA368;
  --paper:       #F7F8F6;   /* cool stone — off the blue-gray SaaS axis, still clinical */
  --paper-2:     #EFF1ED;
  --paper-3:     #E6E9E4;
  --ink:         #14232F;
  --ink-soft:    #4A5B6B;
  --ink-faint:   #7A8A98;
  --line:        #DCE3EA;
  --line-2:      #C8D3DC;
  --line-dark:   rgba(255,255,255,0.13);
  --line-dark-2: rgba(255,255,255,0.22);
  --white:       #FFFFFF;

  /* ---- Type ---- */
  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* ---- Scale ---- */
  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.10rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.4vw, 1.42rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.5vw, 2.85rem);
  --step-4:  clamp(2.30rem, 1.75rem + 2.75vw, 4.10rem);
  --step-5:  clamp(2.85rem, 2.0rem + 4.2vw, 5.60rem);

  /* ---- Space & structure ---- */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(14,37,68,0.06), 0 4px 14px rgba(14,37,68,0.05);
  --shadow-md: 0 6px 20px rgba(14,37,68,0.08), 0 22px 48px rgba(14,37,68,0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--navy);
}
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

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

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

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper2 { background: var(--paper-2); }
.section--navy {
  background: var(--navy);
  color: rgba(255,255,255,0.86);
}
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.7rem 1.1rem;
  z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Shared type devices
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
}
.section--navy .eyebrow { color: var(--gold-soft); }
.section--navy .eyebrow::before { background: var(--gold); }
.eyebrow--plain::before { display: none; }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 60ch;
}
.section--navy .lede { color: rgba(255,255,255,0.78); }

.section-head { max-width: 66ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: var(--step-3); margin-top: 0.9rem; }
.section-head p { margin-top: 1.1rem; color: var(--ink-soft); }
.section--navy .section-head p { color: rgba(255,255,255,0.75); }

.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.serif-em { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(28,151,166,0.28); }
.btn:hover svg { transform: translateX(3px); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy-900); }
.btn--gold:hover { box-shadow: 0 10px 22px rgba(198,161,91,0.32); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--paper-2); box-shadow: none; border-color: var(--navy); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: var(--line-dark-2);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.08); box-shadow: none; border-color: rgba(255,255,255,0.5); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.textlink {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s, gap 0.2s var(--ease);
}
.textlink svg { width: 14px; height: 14px; }
.textlink:hover { border-color: var(--teal); gap: 0.7rem; }
.section--navy .textlink { color: var(--gold-soft); }
.section--navy .textlink:hover { border-color: var(--gold); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,248,250,0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246,248,250,0.94);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a.is-active { color: var(--navy); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav__cta { margin-left: 0.5rem; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  align-items: center;
  justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s;
  position: relative;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__links a { padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__links a.is-active::after { display: none; }
  .nav__cta { margin: 1rem 0.5rem 0; justify-content: center; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(120% 120% at 88% -10%, rgba(28,151,166,0.20), transparent 55%),
    radial-gradient(90% 90% at 0% 110%, rgba(19,112,122,0.16), transparent 50%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  /* subtle grid — engineered feel */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 90%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.hero__eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); }
.hero h1 {
  color: #fff;
  font-size: var(--step-5);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal-glow);
  font-weight: 400;
}
.hero__sub {
  margin-top: 1.6rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgba(255,255,255,0.80);
  font-weight: 300;
  max-width: 46ch;
}
.hero__actions { margin-top: 2.2rem; }
.hero__note {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.5);
}

/* Helix-leaf signature figure */
.hero__figure {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero__figure svg { width: 100%; height: auto; overflow: visible; }
.helix-strand { animation: helixDrift 9s ease-in-out infinite alternate; transform-origin: center; }
.helix-rung { animation: rungPulse 4.5s ease-in-out infinite; }
.leaf-fill { animation: leafGlow 7s ease-in-out infinite alternate; }
@keyframes helixDrift { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
@keyframes rungPulse { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes leafGlow { from { opacity: 0.85; } to { opacity: 1; } }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure { max-width: 340px; margin-inline: auto; order: -1; }
}

/* ==========================================================================
   Credibility strip (mono data)
   ========================================================================== */
.credstrip {
  background: var(--navy-900);
  border-top: 1px solid var(--line-dark);
}
.credstrip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.credstrip__item {
  padding: 1.6rem 1.4rem;
  border-right: 1px solid var(--line-dark);
}
.credstrip__item:last-child { border-right: none; }
.credstrip__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #fff;
  line-height: 1;
}
.credstrip__num span { color: var(--teal-glow); }
.credstrip__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  margin-top: 0.6rem;
}
@media (max-width: 760px) {
  .credstrip__grid { grid-template-columns: repeat(2, 1fr); }
  .credstrip__item:nth-child(2n) { border-right: none; }
  .credstrip__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
}

/* ==========================================================================
   Thesis / two-column feature
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split--reverse { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 820px) { .split, .split--reverse { grid-template-columns: 1fr; } }

.stat-block { display: grid; gap: 1.5rem; }
.stat-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: baseline;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.stat-line:last-child { border-bottom: none; padding-bottom: 0; }
.stat-line__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--teal-deep);
  line-height: 1;
  min-width: 3.5ch;
}
.stat-line__body strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 0.2rem; }
.stat-line__body span { color: var(--ink-soft); font-size: 0.94rem; }

/* ==========================================================================
   Expertise grid
   ========================================================================== */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.exp-cell {
  background: var(--white);
  padding: 1.75rem 1.6rem;
  transition: background 0.3s;
  position: relative;
}
.exp-cell:hover { background: var(--paper); }
.exp-cell__idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.exp-cell h3 {
  font-size: 1.14rem;
  margin: 0.9rem 0 0.5rem;
  font-weight: 600;
}
.exp-cell p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

/* ==========================================================================
   Service pillars (list)
   ========================================================================== */
.pillar {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
  transition: background 0.3s;
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-top: 0.5rem;
}
.pillar__main h3 { font-size: var(--step-2); font-weight: 500; }
.pillar__main p { margin-top: 0.7rem; color: var(--ink-soft); max-width: 62ch; }
.pillar__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--teal-deep);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.34rem 0.8rem;
}
.pillar__aside {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-align: right;
  padding-top: 0.6rem;
  max-width: 15ch;
}
@media (max-width: 720px) {
  .pillar { grid-template-columns: 2.5rem 1fr; }
  .pillar__aside { display: none; }
}

/* ==========================================================================
   Pipeline (staged process) — a true sequence
   ========================================================================== */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: stage;
}
.stage {
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.9rem;
  position: relative;
  overflow: hidden;
}
.stage::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sage));
  transform: scaleX(0.35);
  transform-origin: left;
}
.stage:nth-child(2)::before { transform: scaleX(0.6); }
.stage:nth-child(3)::before { transform: scaleX(0.82); }
.stage:nth-child(4)::before { transform: scaleX(1); background: linear-gradient(90deg, var(--sage), var(--gold)); }
.stage__no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-soft);
  letter-spacing: 0.14em;
}
.stage h3 { color: #fff; font-size: 1.3rem; margin: 0.9rem 0 0.6rem; font-weight: 500; }
.stage p { color: rgba(255,255,255,0.7); font-size: 0.88rem; line-height: 1.55; }
.stage__gate {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--teal-glow);
  text-transform: uppercase;
}
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr; } }

/* ==========================================================================
   Case study cards
   ========================================================================== */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 780px) { .case-grid { grid-template-columns: 1fr; } }

.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.case-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.case-card__client {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.case-card__flag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.25rem 0.65rem;
}
.case-card h3 { font-size: var(--step-1); font-weight: 600; }
.case-card p { font-size: 0.92rem; color: var(--ink-soft); }
.case-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.metric__val { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); line-height: 1; }
.metric__val span { color: var(--teal); }
.metric__key {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.4rem;
}

/* full case study (case-studies page) */
.casefull {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.casefull__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 820px) { .casefull__grid { grid-template-columns: 1fr; } }
.casefull__aside .case-card__client { font-size: 0.76rem; }
.casefull h2 { font-size: var(--step-2); margin: 0.7rem 0 1rem; }
.casefull__meta { display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.casefull__meta div {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem;
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-soft);
  padding-bottom: 0.8rem; border-bottom: 1px dashed var(--line);
}
.casefull__meta dt { color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; min-width: 7ch; }
.cs-block { margin-bottom: 1.5rem; }
.cs-block h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 0.5rem;
}
.cs-block p { color: var(--ink-soft); }
.cs-block ul { display: grid; gap: 0.55rem; }
.cs-block li {
  padding-left: 1.4rem; position: relative;
  color: var(--ink-soft); font-size: 0.95rem;
}
.cs-block li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   Cards / feature grids (about, values)
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.section--navy .feature-card {
  background: var(--navy-800);
  border-color: var(--line-dark);
}
.feature-card__icon {
  width: 40px; height: 40px; margin-bottom: 1.1rem;
  color: var(--teal);
}
.section--navy .feature-card__icon { color: var(--teal-glow); }
.feature-card h3 { font-size: 1.14rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.92rem; color: var(--ink-soft); }
.section--navy .feature-card p { color: rgba(255,255,255,0.72); }

/* ==========================================================================
   Founder / profile
   ========================================================================== */
.profile { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .profile { grid-template-columns: 1fr; } }
.profile__card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  color: #fff;
  position: sticky;
  top: 100px;
}
.profile__avatar {
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--sage));
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2rem; color: #fff;
  margin-bottom: 1.4rem;
}
.profile__card h3 { color: #fff; font-size: var(--step-1); }
.profile__role { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--gold-soft); margin-top: 0.4rem; }
.profile__list { margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.profile__list li {
  font-size: 0.86rem; color: rgba(255,255,255,0.78);
  padding-left: 1.3rem; position: relative;
}
.profile__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal-glow);
}
@media (max-width: 820px) { .profile__card { position: static; } }

.credrow { display: grid; gap: 0; margin-top: 1.5rem; }
.credrow__item { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.credrow__item:last-child { border-bottom: 1px solid var(--line); }
.credrow__item h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-deep); font-weight: 500; margin-bottom: 0.45rem; }
.credrow__item p { color: var(--ink-soft); font-size: 0.95rem; }

/* ==========================================================================
   Pricing tiers
   ========================================================================== */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier--featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-md);
}
.tier__badge {
  position: absolute; top: -11px; left: 1.6rem;
  background: var(--teal); color: #fff;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 100px;
}
.tier__name { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); }
.tier__price { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.15rem); color: var(--navy); margin: 0.8rem 0 0.2rem; line-height: 1.05; }
.tier__price small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-faint); letter-spacing: 0.04em; display: block; margin-top: 0.4rem; font-weight: 400; }
.tier__desc { font-size: 0.9rem; color: var(--ink-soft); margin: 0.8rem 0 1.3rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); min-height: 3.5em; }
.tier__list { display: grid; gap: 0.7rem; margin-bottom: 1.6rem; flex: 1; }
.tier__list li { font-size: 0.87rem; color: var(--ink-soft); padding-left: 1.5rem; position: relative; line-height: 1.45; }
.tier__list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 13px; height: 13px;
  background: var(--teal); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tier__cta { margin-top: auto; }
.tier__cta .btn { width: 100%; justify-content: center; }

.price-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.price-table th, .price-table td { text-align: left; padding: 0.95rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.price-table th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.price-table td:first-child { color: var(--navy); font-weight: 500; }
.price-table td.num { font-family: var(--font-mono); color: var(--teal-deep); }
.price-table tbody tr:hover { background: var(--paper-2); }

/* ==========================================================================
   Assessment tool
   ========================================================================== */
.assess {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.assess__bar {
  height: 5px;
  background: var(--paper-3);
  position: relative;
}
.assess__bar > i {
  display: block; height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--sage));
  transition: width 0.4s var(--ease);
}
.assess__body { padding: clamp(1.75rem, 4vw, 2.75rem); }
.assess__step { display: none; }
.assess__step.is-active { display: block; animation: fadeStep 0.4s var(--ease); }
@keyframes fadeStep { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.assess__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--ink-faint); margin-bottom: 1rem;
}
.assess__dim { color: var(--teal-deep); text-transform: uppercase; }
.assess__q { font-family: var(--font-display); font-size: var(--step-2); color: var(--navy); font-weight: 500; margin-bottom: 0.4rem; }
.assess__hint { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.5rem; }

.opt-list { display: grid; gap: 0.7rem; }
.opt {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  width: 100%;
}
.opt:hover { border-color: var(--teal); background: var(--paper); }
.opt.is-selected { border-color: var(--teal); background: rgba(28,151,166,0.06); box-shadow: inset 0 0 0 1px var(--teal); }
.opt__dot {
  width: 20px; height: 20px; border-radius: 50%; flex: none; margin-top: 2px;
  border: 2px solid var(--line-2);
  display: grid; place-items: center;
  transition: border-color 0.2s;
}
.opt.is-selected .opt__dot { border-color: var(--teal); }
.opt.is-selected .opt__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.opt__text strong { display: block; color: var(--navy); font-weight: 600; font-size: 0.98rem; }
.opt__text span { color: var(--ink-soft); font-size: 0.86rem; }

.assess__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.75rem; }
.assess__back {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint);
  background: none; border: none; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.assess__back:hover { color: var(--navy); }
.assess__back:disabled { opacity: 0.35; cursor: not-allowed; }

/* Results */
.result__score {
  display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: center;
  padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line);
}
.gauge { position: relative; width: 128px; height: 128px; }
.gauge svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.gauge__track { fill: none; stroke: var(--paper-3); stroke-width: 11; }
.gauge__fill { fill: none; stroke: var(--teal); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.gauge__label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge__num { font-family: var(--font-display); font-size: 2.1rem; color: var(--navy); line-height: 1; }
.gauge__pct { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-faint); letter-spacing: 0.1em; }
.result__verdict h3 { font-size: var(--step-2); }
.result__tier {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 100px; margin-bottom: 0.7rem;
}
.tier-red { background: rgba(199,84,80,0.12); color: #b1443f; }
.tier-amber { background: rgba(198,161,91,0.16); color: #9c7a2c; }
.tier-green { background: rgba(111,163,104,0.16); color: #4c7a48; }
.result__verdict p { color: var(--ink-soft); }

.dim-bars { display: grid; gap: 0.85rem; margin: 1.75rem 0; }
.dim-bar { display: grid; grid-template-columns: 12rem 1fr auto; gap: 1rem; align-items: center; }
.dim-bar__name { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft); letter-spacing: 0.03em; }
.dim-bar__track { height: 8px; background: var(--paper-3); border-radius: 100px; overflow: hidden; }
.dim-bar__fill { height: 100%; border-radius: 100px; background: var(--teal); width: 0%; transition: width 0.8s var(--ease); }
.dim-bar__val { font-family: var(--font-mono); font-size: 0.74rem; color: var(--teal-deep); min-width: 4ch; text-align: right; }
@media (max-width: 620px) {
  .dim-bar { grid-template-columns: 1fr auto; }
  .dim-bar__track { grid-column: 1 / -1; order: 3; }
}

.result__reco {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin: 1.75rem 0;
}
.result__reco h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 0.8rem; }
.result__reco ul { display: grid; gap: 0.7rem; }
.result__reco li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); font-size: 0.95rem; }
.result__reco li::before { content: "\2192"; position: absolute; left: 0; color: var(--gold); font-family: var(--font-mono); }
.result__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

/* ==========================================================================
   Forms (contact)
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.field label span { color: var(--teal); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28,151,166,0.14);
}
.field textarea { resize: vertical; min-height: 130px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.form-note {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint);
  margin-top: 1rem; line-height: 1.6;
}
.form-status {
  padding: 0.9rem 1.1rem; border-radius: var(--radius); font-size: 0.9rem;
  margin-top: 1rem; display: none;
}
.form-status.ok { display: block; background: rgba(111,163,104,0.14); color: #4c7a48; border: 1px solid rgba(111,163,104,0.3); }

/* ==========================================================================
   Page hero (interior)
   ========================================================================== */
.pagehero {
  background: linear-gradient(180deg, var(--navy-800), var(--navy));
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}
.pagehero::after {
  content: ""; position: absolute; right: -5%; top: -30%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(28,151,166,0.28), transparent 65%);
  z-index: 0;
}
.pagehero .wrap { position: relative; z-index: 1; }
.pagehero h1 { color: #fff; font-size: var(--step-4); font-weight: 400; max-width: 20ch; }
.pagehero h1 em { font-style: italic; color: var(--teal-glow); }
.pagehero p { margin-top: 1.2rem; color: rgba(255,255,255,0.78); max-width: 58ch; font-size: var(--step-1); font-weight: 300; }
.crumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--gold-soft); margin-bottom: 1.2rem; text-transform: uppercase; }
.crumb a { color: rgba(255,255,255,0.6); }
.crumb a:hover { color: #fff; }

/* ==========================================================================
   Insights / resources
   ========================================================================== */
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.res-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.8rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.res-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.res-card__kind { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.res-card h3 { font-size: 1.2rem; font-weight: 600; }
.res-card p { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }

.article { max-width: 68ch; }
.article h2 { font-size: var(--step-2); margin: 2.5rem 0 0.9rem; }
.article h3 { font-size: var(--step-1); margin: 2rem 0 0.7rem; }
.article p { margin-bottom: 1.1rem; color: var(--ink); line-height: 1.75; }
.article ul { display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
.article li { padding-left: 1.4rem; position: relative; color: var(--ink); }
.article li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.article blockquote {
  border-left: 3px solid var(--teal); padding: 0.5rem 0 0.5rem 1.5rem; margin: 1.5rem 0;
  font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--navy);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background:
    radial-gradient(100% 140% at 100% 0%, rgba(28,151,166,0.24), transparent 55%),
    linear-gradient(180deg, var(--navy), var(--navy-900));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.25rem);
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: var(--step-3); max-width: 22ch; margin-inline: auto; }
.cta-band h2 em { font-style: italic; color: var(--teal-glow); }
.cta-band p { margin: 1.2rem auto 2rem; color: rgba(255,255,255,0.78); max-width: 52ch; }
.cta-band .btn-row { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.62);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin-top: 1.1rem; font-size: 0.9rem; max-width: 34ch; color: rgba(255,255,255,0.55); }
.footer-brand .tagline { font-family: var(--font-display); font-style: italic; color: var(--gold-soft); margin-top: 1rem; font-size: 1.02rem; }
.footer-col h4 { color: #fff; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 500; }
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255,255,255,0.42);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
/* Gated on html.js (set unconditionally, first thing, by main.js): with JS off or failed,
   nothing is ever hidden. This closes a hole the site SHIPPED with — reviewers caught that my
   14px tweak sat on an ungated rule that had been hiding all .reveal content from no-JS
   visitors since launch. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   Utilities
   ========================================================================== */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.divider-gold { width: 46px; height: 3px; background: var(--gold); border-radius: 3px; margin: 0 0 1.5rem; }
.muted { color: var(--ink-faint); }
.stack-lg > * + * { margin-top: 1.25rem; }

/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM MOTION LAYER (2026-08-28)
   Reference points: McKinsey life-sciences (editorial restraint, hairline
   rules, staggered fade-ups, arrow micro-interactions) and LifeSci Consulting
   (atmospheric dark hero with depth + glow). Ported into the existing
   navy/teal/gold system — an enhancement pass, not a rebrand.

   Rules this layer holds itself to:
   · transform/opacity only — nothing that causes layout or paint storms
   · every entrance ENDS at identity, so a no-JS visitor loses nothing
   · states that HIDE content are gated on html.js-motion (set by JS, and
     only when the visitor has not asked for reduced motion)
   · prefers-reduced-motion collapses the whole layer at the end of this file
   ══════════════════════════════════════════════════════════════════════════ */

/* ---- Hero: atmospheric depth + entrance choreography ---- */
.hero::after {
  /* the engineered grid drifts, barely. (The breathing glow blob that used to sit under it
     was deleted 2026-08-28 — two decorative layers doing one job, and the blob is the single
     most recognisable generated-hero tell.) */
  animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 64px 64px, 64px 64px; }
}

/* entrance: eyebrow → headline → sub → actions → note, one quiet cascade */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero__copy > * { animation: riseIn 0.9s var(--ease) both; }
.hero__copy .hero__eyebrow { animation-delay: 0.05s; }
.hero__copy h1             { animation-delay: 0.16s; animation-duration: 1s; }
.hero__copy .hero__sub     { animation-delay: 0.34s; }
.hero__copy .hero__actions { animation-delay: 0.48s; }
.hero__copy .hero__note    { animation-delay: 0.62s; }
.hero__figure { animation: riseIn 1.1s var(--ease) 0.25s both; }

/* ---- The mark comes alive ---- */
.hero__figure { position: relative; }
.hero__mark {
  position: absolute; inset: 0; margin: auto;
  width: 58%; height: auto;
  /* the shadow both seats the mark on navy and swallows any last white-edge fringe
     from the transparency extraction */
  filter: drop-shadow(0 26px 52px rgba(9, 26, 49, 0.55)) drop-shadow(0 0 34px rgba(55, 192, 206, 0.18));
  animation: helixFloat 9s ease-in-out infinite alternate, riseIn 1.1s var(--ease) 0.25s both;
}

.hero__figure svg { will-change: transform; }
.hero__figure circle:first-of-type {
  /* faint dashed orbit, slowly turning */
  stroke-dasharray: 2 10;
  transform-box: view-box; transform-origin: 50% 50%;
  animation: orbit 70s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.hero__figure path[stroke-width="7"] {
  /* the teal C draws itself in once */
  stroke-dasharray: 700; stroke-dashoffset: 700;
  animation: drawArc 1.6s var(--ease) 0.35s forwards;
}
@keyframes drawArc { to { stroke-dashoffset: 0; } }
.helix-strand {
  transform-box: view-box; transform-origin: 50% 50%;
  animation: helixFloat 9s ease-in-out infinite alternate;
}
@keyframes helixFloat { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
.helix-rung line { animation: rungPulse 4.5s ease-in-out infinite; }
.helix-rung line:nth-child(2) { animation-delay: 0.5s; }
.helix-rung line:nth-child(3) { animation-delay: 1.0s; }
.helix-rung line:nth-child(4) { animation-delay: 1.5s; }
@keyframes rungPulse { 0%, 100% { stroke-opacity: 0.55; } 50% { stroke-opacity: 1; } }
.leaf-fill {
  transform-box: fill-box; transform-origin: 15% 85%;
  animation: leafSway 8s ease-in-out infinite alternate;
}
@keyframes leafSway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }

/* ---- Interior page heroes get the same quiet load-in ---- */
.pagehero .wrap > * { animation: riseIn 0.85s var(--ease) both; }
.pagehero .wrap > *:nth-child(2) { animation-delay: 0.12s; }
.pagehero .wrap > *:nth-child(3) { animation-delay: 0.24s; }

/* ---- Header: glassy on scroll (McKinsey-style quiet chrome) ---- */
.site-header.is-scrolled {
  background: rgba(250, 250, 248, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(14, 37, 68, 0.08), 0 18px 40px -28px rgba(14, 37, 68, 0.25);
}
/* hover underline — ::before so the existing active-state ::after is untouched */
.nav__links li:not(.nav__cta) a { position: relative; }
.nav__links li:not(.nav__cta) a::before {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav__links li:not(.nav__cta) a:hover::before { width: 100%; }

/* ---- Buttons: arrow nudge only. The sheen sweep was removed 2026-08-28 — it is the
   textbook "could be pasted into any product unchanged" effect (no-ai-design-slop), and it
   communicated nothing. The arrow nudge stays: it points at the action. ---- */
.btn:hover svg { transform: translateX(3px); }

/* ---- Cards: lift + hairline that draws across the top ---- */
.feature-card, .credrow__item { position: relative; }
.feature-card::before, .credrow__item::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), transparent 85%);
  transition: width 0.55s var(--ease);
}
.feature-card:hover::before, .credrow__item:hover::before { width: 100%; }
.credrow__item { transition: transform 0.3s var(--ease); }
.credrow__item:hover { transform: translateY(-3px); }

/* ---- Staggered group reveals (JS tags children .sg, parents get .sg-in) ---- */
html.js-motion .sg { opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js-motion .sg-in .sg { opacity: 1; transform: none; }

/* (the marquee ticker lived here 2026-08-28 for one day — an infinite-loop marquee is
   template furniture; replaced by the typeset practice index, .pindex) */

/* ---- Smooth anchor scrolling, motion-gated ---- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---- The whole layer stands down on request ---- */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after,
  .hero__copy > *, .hero__figure,
  .hero__figure circle:first-of-type, .hero__figure path[stroke-width="7"],
  .helix-strand, .helix-rung line, .leaf-fill,
  .pagehero .wrap > *,
  .hero__mark { animation: none !important; }
  .hero__figure path[stroke-width="7"] { stroke-dasharray: none; stroke-dashoffset: 0; }
  html.js-motion .sg { opacity: 1; transform: none; transition: none; }
  .btn::after { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   THE JOURNAL SYSTEM (2026-08-28)
   The de-templating pass. Direction: a scientific journal, hand-set — editorial
   asymmetry and typographic structure carrying the page, technical hairlines
   instead of cards, numbered figures and footnotes instead of marketing chrome.
   Sources of craft, all read from the audited MengTo/Skills pack (MIT):
   editorial-tech, light-mode-paper-technical, container-lines, number-details,
   book-serif-index — filtered through no-ai-design-slop's single test: could
   this choice be pasted into an unrelated product unchanged? If yes, it went.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --hairline:        rgba(14, 37, 68, 0.14);
  --hairline-strong: rgba(14, 37, 68, 0.32);
  --hairline-light:  rgba(255, 255, 255, 0.14);
}

/* ---- Container rails (container-lines): the content column made visible.
   Paper sections only — navy bands are the dark shell they contrast against. */
.section:not(.section--navy) { position: relative; }
.section:not(.section--navy)::before,
.section:not(.section--navy)::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--hairline); pointer-events: none;
}
.section:not(.section--navy)::before { left: max(calc(var(--gutter) - 1px), calc((100% - var(--wrap)) / 2)); }
.section:not(.section--navy)::after  { right: max(calc(var(--gutter) - 1px), calc((100% - var(--wrap)) / 2)); }
.section .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) { .section:not(.section--navy)::before, .section:not(.section--navy)::after { display: none; } }

/* ---- The masthead issue-line: a journal identifies itself before it speaks. */
.issue-line {
  display: flex; align-items: center; gap: 1rem; min-width: 0;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.74);
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}
.issue-line span { white-space: nowrap; }
.issue-line::before, .issue-line::after { content: ""; height: 1px; background: var(--hairline-light); flex: 1; min-width: 20px; }
.issue-line b { font-weight: 500; color: var(--gold-soft); }
/* Narrow viewports keep the masthead to the name alone — a wrapped issue-line reads as
   breakage, and a nowrap one was found stretching the whole hero column off-screen. */
@media (max-width: 900px) { .issue-line span:nth-child(2), .issue-line span:nth-child(3) { display: none; } }
@media (max-width: 700px) { .issue-line { font-size: 0.55rem; letter-spacing: 0.16em; } }

/* ---- Display refinement: tighter, larger, set like a cover line. */
.hero h1 { font-size: clamp(2.75rem, 6.4vw, 5.2rem); letter-spacing: -0.015em; line-height: 0.98; }
.lede { font-family: var(--font-display); font-size: 1.14rem; line-height: 1.65; }
body { font-feature-settings: "kern" 1, "liga" 1; }

/* ---- Figure plates (number-details + book-serif-index): the mark is Fig. 01,
   framed and captioned like a plate in a monograph, with L-corner ticks. */
.plate { position: relative; border: 1px solid var(--hairline-light); padding: clamp(1.2rem, 2.5vw, 2rem); }
.plate::before, .plate::after { content: ""; position: absolute; width: 7px; height: 7px; }
.plate::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.plate::after  { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.plate figcaption {
  margin-top: 1rem; padding-top: 0.7rem; border-top: 1px solid var(--hairline-light);
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}
.plate figcaption b { color: var(--gold-soft); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---- The credstrip becomes a ruled data row with footnote marks. */
.hero .credstrip { border-top: 1px solid var(--hairline-light); border-bottom: 1px solid var(--hairline-light); background: transparent; }
.credstrip__label sup { font-size: 0.85em; vertical-align: super; }
.credstrip__label sup a { color: var(--teal-glow); text-decoration: none; }
.credstrip__label sup a:hover { color: var(--gold-soft); }

/* ---- Footnotes (book-serif-index: scholarly details). Small serif, honest refs. */
.notes { padding: 1.1rem 0 0.4rem; }
.notes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.notes li {
  font-family: var(--font-display); font-style: italic; font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.74); line-height: 1.5;
}
.notes li b { font-style: normal; font-family: var(--font-mono); font-size: 0.62rem; color: var(--gold-soft); margin-right: 0.5rem; }
.notes a { color: rgba(255, 255, 255, 0.75); text-underline-offset: 3px; }
.notes a:hover { color: var(--teal-glow); }

/* ---- The practice index: the marquee's replacement. Typeset, numbered, still. */
.pindex { background: var(--navy-900); border-top: 1px solid var(--hairline-light); }
.pindex .wrap { padding-block: clamp(1.4rem, 3vw, 2.2rem); }
.pindex ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.55rem 2.5rem;
}
.pindex li {
  display: flex; align-items: baseline; gap: 0.8rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); padding-bottom: 0.5rem;
}
.pindex li i { font-style: normal; color: var(--gold); font-size: 0.6rem; }
.pindex a { color: inherit; text-decoration: none; }
.pindex li:hover { color: #fff; border-color: var(--gold); }

/* ---- The colophon: the single most hand-made sentence on any site. */
.colophon {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.62);
}

/* ---- The lattice: the one authored moment. A hand-rolled canvas — no library,
   ~4KB — of drifting molecular structure behind the hero. It is the ThreeUI
   instinct scaled to a 700KB static site. Reduced motion gets a still frame. */
.hero { isolation: isolate; }
#lattice { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.85; }
.hero::after { z-index: -2; }

/* ---- Buttons: crisper geometry (editorial-tech: "crisp geometry… rather than
   oversized marketing buttons"). */
.btn { border-radius: 3px; }

/* ---- Quiet the blanket motion: reveals travel less, arrive sooner. */
html.js .reveal { transform: translateY(14px); }

@media (prefers-reduced-motion: reduce) {
  .pindex li, .plate { transition: none; }
}

/* Review fix (Kimi F7): the colophon is a third span in the footer bottom row — wrap, never clip. */
.footer__bottom, .footer-bottom { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ══════════════════════════════════════════════════════════════════════════
   MOTION PACKAGE v2 (2026-08-28) — the production-value pass.
   Everything here is progressive: CSS-native where the platform allows
   (@supports-gated scroll-driven animations, cross-document view transitions),
   JS only for the three signature interactions (word-mask headline, magnetic
   CTAs, plate tilt), and the whole package stands down under reduced motion.
   ══════════════════════════════════════════════════════════════════════════ */

/* ---- Cross-document view transitions: page-to-page continuity, zero JS. ---- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vtOut 0.22s var(--ease) both; }
  ::view-transition-new(root) { animation: vtIn 0.30s var(--ease) both; }
}
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* ---- Reading progress: a 2px gold hairline, scroll-driven, no JS. ---- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body::before {
      content: ""; position: fixed; top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg, var(--gold), var(--gold-soft));
      transform-origin: 0 50%; transform: scaleX(0);
      animation: readProgress linear both; animation-timeline: scroll(root);
      z-index: 1000; pointer-events: none;
    }
  }
}
@keyframes readProgress { to { transform: scaleX(1); } }

/* ---- Scroll-driven drift on figures and interior heroes (view() timeline). ---- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__figure { animation: figDrift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .pagehero .wrap { animation: headDrift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes figDrift { from { transform: translateY(18px); } to { transform: translateY(-26px); } }
@keyframes headDrift { to { transform: translateY(-14px); opacity: 0.35; } }

/* ---- The word-mask headline: each word rises out of its own clip. JS wraps the
   words; with no JS the headline simply stands, complete. ---- */
html.js-motion .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
html.js-motion .hero h1 .w > span { display: inline-block; transform: translateY(112%); animation: wordUp 0.85s var(--ease) forwards; }
@keyframes wordUp { to { transform: none; } }
html.js-motion .hero h1 { animation: none; }   /* the block-level rise yields to the word cascade */

/* ---- The plate becomes an object: pointer tilt + a deeper layered shadow. ---- */
.plate {
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 1px 2px rgba(9, 26, 49, 0.3), 0 8px 24px -12px rgba(9, 26, 49, 0.5), 0 24px 64px -32px rgba(9, 26, 49, 0.6);
}
.hero__figure { perspective: 900px; }

/* ---- Magnetic CTAs: transform is driven by JS; CSS supplies the spring home. ---- */
.btn--gold { transition: transform 0.45s cubic-bezier(0.22, 1.4, 0.36, 1), background 0.25s var(--ease), box-shadow 0.25s var(--ease); }

/* ---- With the shader running, the CSS grid stands down — one field, not two. ---- */
.hero.has-topo::after { background-image: none; }

@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
  .hero__figure, .pagehero .wrap { animation: none !important; }
  html.js-motion .hero h1 .w > span { transform: none; animation: none; }
  .plate { transition: none; }
}

/* Review fixes v2 (2026-08-28): pointer-driven transforms must not ease against the pointer —
   .is-live suspends the transition while the cursor drives; removing it restores the spring. */
.btn--gold.is-live, .plate.is-live { transition-property: background, box-shadow; }
/* Descender allowance for the word-mask (review: overflow:hidden + tight leading can shave
   the tails of y/g/p at rest). */
html.js-motion .hero h1 .w { padding-bottom: 0.12em; margin-bottom: -0.12em; }
@media (prefers-reduced-motion: reduce) {
  .plate, .btn--gold { transform: none !important; }
}
