
/* ===== Self-hosted fonts (spec §4.1) ===== */
@font-face{font-family:"Fraunces";src:url("/assets/v1/fonts/fraunces-600.woff2") format("woff2");font-weight:500 700;font-style:normal;font-display:swap}
@font-face{font-family:"Source Serif 4";src:url("/assets/v1/fonts/source-serif-4-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:optional}
@font-face{font-family:"Source Serif 4";src:url("/assets/v1/fonts/source-serif-4-600.woff2") format("woff2");font-weight:600 700;font-style:normal;font-display:optional}
@font-face{font-family:"Space Grotesk";src:url("/assets/v1/fonts/space-grotesk-500.woff2") format("woff2");font-weight:400 500;font-style:normal;font-display:optional}
@font-face{font-family:"Space Grotesk";src:url("/assets/v1/fonts/space-grotesk-600.woff2") format("woff2");font-weight:600 700;font-style:normal;font-display:optional}
@font-face{font-family:"Fraunces Fallback";src:local("Times New Roman"),local("Liberation Serif");size-adjust:112%;ascent-override:90%}
@font-face{font-family:"Source Serif Fallback";src:local("Georgia"),local("Liberation Serif");size-adjust:100%}
@font-face{font-family:"Space Grotesk Fallback";src:local("Arial"),local("Liberation Sans");size-adjust:104%}
/**
 * Atlas Ops — design tokens v2 (Desk & Dossier)
 * Light editorial. Sealing-wax accent. NOT dark SaaS.
 * Import first. Pair with /DESIGN.md v2.
 */

:root {
  /* Color */
  --ink: #1a120e;
  --ink-soft: #3d3229;
  --paper: #f3ebdd;
  --paper-2: #e8dcc8;
  --paper-3: #fbf7f0;
  --rule: #c9b8a0;
  --rule-strong: #8f7d66;
  --wax: #c83c1c;
  --wax-hover: #a82f14;
  --wax-deep: #b0301a;
  --night: #1a120e;
  --night-deep: #120c09;
  --paper-dim: #d8c9b2;
  --ember: #ff6a3d;
  --lamp: #f2b33d;
  --moss-glow: #7fc4a2;
  --wax-wash: #f0d4c8;
  --moss: #3f5c4f;
  --danger: #9b1d1d;
  --invert-text: #f3ebdd;
  --on-wax: #fff8f0;

  /* Back-compat aliases (map old names → v2 so partial HTML doesn’t break mid-migrate) */
  --color-bg: var(--paper);
  --color-surface: var(--paper-3);
  --color-surface-2: var(--paper-2);
  --color-border: var(--rule);
  --color-border-strong: var(--rule-strong);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-soft);
  --color-text-faint: var(--rule-strong);
  --color-accent: var(--wax);
  --color-accent-hover: var(--wax-hover);
  --color-accent-muted: var(--wax-wash);
  --color-signal: var(--moss);
  --color-danger: var(--danger);
  --color-on-accent: var(--on-wax);

  /* Typography */
  --font-display: "Fraunces", "Fraunces Fallback", "Times New Roman", serif;
  --font-body: "Source Serif 4", "Source Serif Fallback", Georgia, serif;
  --font-ui: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  --font-mono: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  --font-body-ui: var(--font-ui); /* forms, nav */

  --text-display: clamp(3rem, 9vw, 6.5rem);
  --text-h1: clamp(2.5rem, 6vw, 4.5rem);
  --text-h2: clamp(1.75rem, 3vw, 2.5rem);
  --text-h3: 1.35rem;
  --text-lede: clamp(1.2rem, 2vw, 1.45rem);
  --text-body: 1.125rem;
  --text-sm: 0.9375rem;
  --text-label: 0.75rem;
  --text-eyebrow: 0.75rem;
  --text-btn: 0.8125rem;

  --leading-display: 1.02;
  --leading-heading: 1.15;
  --leading-body: 1.7;
  --leading-tight: 1.35;

  --tracking-display: -0.03em;
  --tracking-eyebrow: 0.14em;
  --tracking-btn: 0.06em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-section: clamp(4.5rem, 12vw, 8rem);
  --gutter: clamp(1.25rem, 5vw, 3.5rem);

  /* Layout */
  --container: 1280px;
  --container-narrow: 34rem;
  --header-height: 4.25rem;

  /* Radius — almost none */
  --radius-sm: 0;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-pill: 2px;
  --radius: 2px;

  /* Elevation — hard offset, print-like */
  --shadow-hard: 3px 3px 0 color-mix(in srgb, var(--ink) 18%, transparent);
  --shadow-hard-lg: 5px 5px 0 color-mix(in srgb, var(--ink) 22%, transparent);
  --shadow-card: var(--shadow-hard);

  /* Motion v3.1 (Scout-aligned) */
  --ease-hero: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ink: cubic-bezier(0.33, 1, 0.68, 1);
  --duration-fast: 150ms;
  --duration: 240ms;
  --duration-enter: 700ms;
  --duration-hero: 1000ms;
  --stagger: 100ms;
  --reveal-y: 28px;
  --magnetic-max: 10px;

  /* Z */
  --z-header: 100;
  --z-nav: 110;
  --z-skip: 200;
  --z-watermark: 0;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration: 0ms;
    --duration-enter: 0ms;
  }
}
/**
 * Atlas Ops — base v2 (Desk & Dossier)
 * Import after tokens.css. Prefer --paper/--ink/--wax names.
 */

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

* {
  margin: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  border-style: none;
}

a {
  color: var(--wax-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--wax-hover);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: var(--space-2);
}

p {
  max-width: 36em;
}

p + p {
  margin-top: var(--space-4);
}

h1,
h2,
h3,
h4,
.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: var(--tracking-display);
}

h1 {
  font-size: var(--text-h1);
  line-height: 1.05;
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.25;
  letter-spacing: 0;
}

.display {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lede,
.lede-lg {
  font-family: var(--font-body);
  font-size: var(--text-lede);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 28em;
}

.text-muted {
  color: var(--ink-soft);
}

.text-faint {
  color: var(--rule-strong);
}

.text-sm {
  font-size: var(--text-sm);
  line-height: 1.55;
}

.mono {
  font-family: var(--font-mono);
}

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

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

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

.section-tight {
  padding-block: var(--space-7);
}

.section-head {
  margin-bottom: var(--space-7);
  max-width: 28em;
}

.section-head .eyebrow {
  margin-bottom: var(--space-3);
}

.section-head h2 {
  margin-bottom: var(--space-3);
}

.section-band {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: var(--z-skip);
  padding: var(--space-3) var(--space-4);
  background: var(--wax);
  color: var(--on-wax);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-btn);
  letter-spacing: var(--tracking-btn);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-3);
  color: var(--on-wax);
}

.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;
}

main {
  outline: none;
}

.page-hero {
  padding-top: calc(var(--header-height) + var(--space-7));
  padding-bottom: var(--space-7);
  position: relative;
}

.page-hero .eyebrow {
  margin-bottom: var(--space-4);
}

.page-hero h1 {
  margin-bottom: var(--space-5);
  max-width: 14ch;
}

.page-hero .lede,
.page-hero .lede-lg {
  margin-bottom: var(--space-5);
}

/* Registration corners */
.reg-frame {
  position: relative;
}

.reg-frame::before,
.reg-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--ink);
  border-style: solid;
  pointer-events: none;
  z-index: 1;
}

.reg-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.reg-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.reg-frame-pad {
  padding: var(--space-5);
}

@media (min-width: 768px) {
  .reg-frame-pad {
    padding: var(--space-6);
  }
}

/* Mobile sticky CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: var(--space-3) var(--gutter);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.mobile-cta .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 767px) {
  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 4.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/**
 * Atlas Ops — components v2 (Desk & Dossier)
 * Import after base.css. Prefer --paper/--ink/--wax.
 */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.9rem 1.35rem;
  font-family: var(--font-ui);
  font-size: var(--text-btn);
  font-weight: 600;
  letter-spacing: var(--tracking-btn);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--wax);
  color: var(--on-wax);
  box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
  background: var(--wax-hover);
  color: var(--on-wax);
}

.btn-secondary,
.btn-text {
  background: transparent;
  color: var(--ink);
  /* underline draw in MOTION v3.1 */
  padding-inline: 0.15rem;
  border-radius: 0;
}

.btn-secondary:hover,
.btn-text:hover {
  color: var(--ink);
  /* underline draw in MOTION v3.1 */
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  min-height: 44px;
  padding-inline: var(--space-3);
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
  align-items: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--ink);
}

.logo .ops {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-left: 0.4rem;
  color: var(--ink-soft);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--ink);
  /* underline draw in MOTION v3.1 */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

.site-header.is-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: var(--z-nav);
  background: var(--paper);
  padding: var(--space-5) var(--gutter);
  overflow-y: auto;
  border-top: 1px solid var(--rule);
}

.site-header.is-open .nav-drawer {
  display: block;
}

.nav-drawer a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: var(--space-3) 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.nav-drawer a[aria-current="page"] {
  color: var(--wax-deep);
}

.nav-drawer .btn {
  width: 100%;
  margin-top: var(--space-5);
  justify-content: center;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-drawer {
    display: none !important;
  }
}

@media (max-width: 899px) {
  :root {
    --header-height: 3.75rem;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Editorial hero ---------- */
.home-hero {
  padding-top: calc(var(--header-height) + var(--space-6));
  padding-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}


.hero-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: end;
  position: relative;
}

.hero-meta {
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--space-4);
  max-width: 16rem;
}

.hero-meta .meta-line {
  display: block;
  margin-bottom: var(--space-2);
}

.hero-meta .meta-rule {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--ink);
  margin: var(--space-3) 0;
}

.hero-stack .display {
  max-width: 12ch;
  margin: 0 0 var(--space-5);
}

@media (min-width: 900px) {
  .hero-stack .display {
    width: 110%;
    max-width: 13ch;
  }
}

.hero-stack .lede-lg {
  margin-bottom: var(--space-6);
}

@media (min-width: 960px) {
  .hero-editorial {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.15fr);
    gap: var(--gutter);
    padding-block: var(--space-5) 0;
  }
}

@media (min-width: 1200px) {
  .hero-meta {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border-top: 0;
    border-inline-start: 1px solid var(--rule-strong);
    padding-top: 0;
    padding-inline-start: var(--space-4);
    max-width: none;
    align-self: stretch;
    justify-self: start;
  }

  .hero-meta .meta-rule {
    width: 1px;
    height: 3rem;
    margin: var(--space-3) 0;
  }
}

/* ---------- Trust manifesto ---------- */
.trust-strip {
  border-block: 1px solid var(--rule);
  background: transparent;
}

.trust-manifesto {
  padding-block: var(--space-5);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink-soft);
}

.trust-manifesto .dot {
  margin-inline: var(--space-3);
  color: var(--wax-deep);
}

.trust-detail {
  display: none;
  list-style: none;
  padding: 0 0 var(--space-5);
  margin: 0;
  max-width: 40rem;
  margin-inline: auto;
}

.trust-detail li {
  border-inline-start: 2px solid var(--wax);
  padding-inline-start: var(--space-4);
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  font-family: var(--font-body);
  text-align: left;
  letter-spacing: 0;
}

.trust-detail strong {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-1);
  font-weight: 600;
}

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

  .trust-manifesto {
    display: none;
  }

  .trust-detail {
    display: block;
  }
}

/* Keep old trust-grid usable if present */
.trust-grid {
  display: none;
}

/* ---------- Team chips (home preview) ---------- */
.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2);
  background: var(--paper-3);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  min-height: 44px;
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

.team-chip:hover {
  color: var(--ink);
  box-shadow: var(--shadow-hard-lg);
}

.team-chip img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border: 1px solid var(--ink);
}

/* ---------- Dossier cards ---------- */
/* Alignment pass: always avatar | text; sizes from local tokens (Forge may mirror in tokens.css) */
:root {
  --avatar-size: 96px;
  --dossier-gap: 1.5rem;
}

@media (max-width: 599px) {
  :root {
    --avatar-size: 80px;
  }
}

.dossier {

  background: var(--paper-3);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: var(--space-6);
  position: relative;
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

/* dossier hover → MOTION v3.1 */

.dossier-index {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--wax-deep);
}

.dossier-avatar {
  display: block;
  width: var(--avatar-size);
  height: var(--avatar-size);
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 1px solid var(--ink);
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow-hard);
  background: var(--paper-2);
  grid-column: 1;
  grid-row: 1;
}

.dossier:nth-child(even) .dossier-avatar {
  transform: rotate(1.25deg);
}

.dossier-body {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.dossier-body .role-label,
.dossier .role-label {
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dossier-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: var(--space-2) 0 var(--space-3);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dossier .one-liner {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  max-width: 36em;
  margin-bottom: var(--space-4);
}

.dossier ul {
  margin: 0 0 var(--space-4);
  padding-left: 1.1rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.dossier li + li {
  margin-top: var(--space-1);
}

.dossier .handoff {
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  font-size: var(--text-sm);
  color: var(--rule-strong);
  max-width: none;
}

.dossier-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.dossier-grid .dossier {
  display: grid;
  grid-template-columns: var(--avatar-size) 1fr;
  gap: var(--dossier-gap);
  align-items: start;
  margin-inline: 0;
}

/* Mobile: same avatar | text columns; slightly tighter padding already via tokens */
@media (max-width: 599px) {
  .dossier-grid .dossier {
    grid-template-columns: var(--avatar-size) 1fr;
    gap: var(--dossier-gap);
  }
}

.channels-note {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--paper-3);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.channels-note p + p {
  margin-top: var(--space-3);
}

/* ---------- Workflow teasers ---------- */
.workflow-teaser-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .workflow-teaser-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }

  .workflow-teaser-grid .teaser-card:nth-child(2) {
    margin-top: var(--space-6);
  }
}

.teaser-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  height: 100%;
  background: var(--paper-3);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: var(--space-5);
  border-radius: var(--radius);
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

.teaser-card:hover {
  color: inherit;
  box-shadow: var(--shadow-hard-lg);
}

.teaser-card .step-num {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--wax-deep);
  font-weight: 600;
}

.teaser-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
}

.teaser-card p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  max-width: none;
  flex: 1;
}

.teaser-card .link-more {
  font-family: var(--font-ui);
  font-size: var(--text-btn);
  font-weight: 600;
  letter-spacing: var(--tracking-btn);
  text-transform: uppercase;
  color: var(--ink);
  /* underline draw in MOTION v3.1 */
  align-self: flex-start;
}

/* ---------- Spine workflows ---------- */
.workflow-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.spine {
  border-inline-start: 2px solid var(--ink);
  padding-inline-start: var(--space-6);
  position: relative;
}

.spine-step {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
  background: var(--paper-3);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: var(--space-6);
  border-radius: var(--radius);
}

.spine-step:nth-child(odd) {
  margin-inline-start: 0;
}

.spine-step:nth-child(even) {
  margin-inline-start: clamp(0rem, 8vw, 6rem);
}

.spine-num {
  font-family: var(--font-ui);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--wax-deep);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.spine-step h2 {
  margin-bottom: var(--space-4);
}

.workflow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.workflow-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.workflow-when {
  margin-bottom: var(--space-5);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  max-width: 36em;
}

.flow-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.flow-step {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--rule);
}

.flow-step-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--wax-deep);
  min-width: 1.5rem;
}

.flow-step p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  max-width: none;
}

.stop-rule {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}

.stop-rule .signal {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--moss);
}

.stop-rule p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--moss);
  max-width: none;
  padding-bottom: 2px;
  /* underline draw in MOTION v3.1 */
}

.stop-rule strong {
  color: var(--moss);
  font-weight: 600;
}

/* ---------- How it works (staggered) ---------- */
.steps-grid {
  display: grid;
  gap: var(--space-6);
  counter-reset: how;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .how-step:nth-child(odd) {
    margin-inline-start: 0;
  }

  .how-step:nth-child(even) {
    margin-inline-start: 8vw;
  }
}

.how-step {
  position: relative;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--rule);
  max-width: 36em;
}

.how-step::before {
  counter-increment: how;
  content: "0" counter(how);
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--wax-deep);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.how-step h3 {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.how-step p {
  font-size: var(--text-body);
  color: var(--ink-soft);
  max-width: none;
  margin: 0;
}

/* ---------- Principles ---------- */
.principles {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .principle:nth-child(even) {
    margin-top: var(--space-5);
  }
}

.principle {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--ink);
}

.principle h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.principle p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin: 0;
  max-width: none;
}

/* ---------- CTA band (ink invert) ---------- */
.cta-band {
  background: var(--ink);
  color: var(--invert-text);
  border-block: 0;
}

.cta-band-inner {
  padding-block: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cta-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-band h2 {
  margin-bottom: var(--space-2);
  color: var(--invert-text);
}

.cta-band p {
  color: color-mix(in srgb, var(--invert-text) 75%, transparent);
  margin: 0;
  max-width: 36em;
}

.cta-band .btn-primary {
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--paper) 25%, transparent);
}

.cta-band .btn-primary:focus-visible {
  outline-color: var(--paper);
}

.cta-band-accent {
  background: var(--ink);
}

/* ---------- Form (underline fields) ---------- */
.contact-layout {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
  }
}

.form-card,
.contact-aside {
  background: var(--paper-3);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: var(--space-6);
  border-radius: var(--radius);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.field label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.field .optional {
  color: var(--rule-strong);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: var(--leading-body);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--wax-deep);
  border-bottom-width: 2px;
}

.field select {
  appearance: none;
  background-image: none;
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

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

.form-note {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin: 0;
  max-width: none;
}

.form-demo-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rule-strong);
  margin-bottom: var(--space-4);
}

.contact-aside h2 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-3);
}

.contact-aside dl {
  margin: var(--space-4) 0 0;
}

.contact-aside dt {
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rule-strong);
  margin-top: var(--space-3);
}

.contact-aside dd {
  margin: var(--space-1) 0 0;
  color: var(--ink);
}

.contact-aside a {
  text-decoration: none;
  color: var(--ink);
  /* underline draw in MOTION v3.1 */
}

.contact-aside a:hover {
  color: var(--wax-deep);
}

/* ---------- Footer (ink invert) ---------- */
.site-footer {
  background: var(--ink);
  color: var(--invert-text);
  padding-block: var(--space-7) var(--space-6);
  margin-top: 0;
  border-top: 0;
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: var(--space-3);
  color: var(--invert-text);
}

.footer-brand .logo .ops {
  color: color-mix(in srgb, var(--invert-text) 65%, transparent);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--invert-text) 70%, transparent);
  max-width: 36ch;
}

.footer-col h3 {
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: color-mix(in srgb, var(--invert-text) 55%, transparent);
  margin-bottom: var(--space-3);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li + li {
  margin-top: var(--space-2);
}

.footer-col a {
  color: var(--invert-text);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-col a:hover {
  color: var(--on-wax);
  /* underline draw in MOTION v3.1 */
}

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--invert-text) 20%, transparent);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--invert-text) 55%, transparent);
  max-width: none;
  margin: 0;
}

.footer-archive {
  font-size: 0.8125rem;
}

/* ---------- Prose ---------- */
.prose p {
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: var(--space-4);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- About plate ---------- */
.ink-plate {
  background: var(--paper-3);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: var(--space-6);
  max-width: 36em;
}

.ink-plate ul {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.ink-plate strong {
  color: var(--ink);
}

/* Legacy class bridges (mid-migrate) */
.card {
  background: var(--paper-3);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.role-card,
.workflow-card,
.pipeline-panel {
  /* superseded by dossier / spine / hero-editorial */
}

/* draft MOTION reveal/watermark block replaced by motion-ok gated rules in extra.css */
/* Optional single accent word (not a shader) */
.accent-word {
  box-decoration-break: clone;
  background-image: linear-gradient(var(--wax), var(--wax));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size var(--duration-hero) var(--ease-hero);
}
.hero-editorial.is-in .accent-word,
.js-reduced-motion .accent-word {
  background-size: 100% 2px;
}

/* --- Dossier lift (not magnetic) --- */
.dossier {
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .dossier:hover {
    transform: translate3d(-2px, -2px, 0);
    box-shadow: var(--shadow-hard-lg);
  }
}
.dossier:active,
.btn-secondary:active,
.dossier-index-rail a:active {
  transform: scale(0.97);
}

/* Optional soft spotlight — opacity only on overlay */
.dossier {
  position: relative;
  overflow: hidden;
}
.dossier > * { position: relative; z-index: 1; }
.dossier::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: opacity var(--duration) var(--ease-out);
  background: radial-gradient(
    420px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    color-mix(in srgb, var(--wax-wash) 80%, transparent),
    transparent 55%
  );
}
@media (hover: hover) and (pointer: fine) {
  .dossier:hover::after { opacity: 1; }
}

/* Sticky dossier / FAQ index */
.dossier-index-rail {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  align-self: start;
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
@media (min-width: 1100px) {
  .dossier-index-rail {
    display: flex;
    float: left;
    width: 7.5rem;
    margin-right: var(--space-6);
    margin-bottom: 0;
  }
  .dossier-grid { clear: none; }
}
.dossier-index-rail a {
  color: var(--ink-soft);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--duration-fast) var(--ease-out);
}
.dossier-index-rail a:hover,
.dossier-index-rail a[aria-current="true"] {
  color: var(--wax-deep);
}

/* --- Primary CTA: magnetic + ink-bleed --- */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 40%;
  background: var(--wax-hover);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 420ms var(--ease-ink);
  z-index: 0;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover::before { transform: scale(2.75); }
  .btn-primary.is-magnetic {
    transform: translate(var(--mx, 0px), var(--my, 0px));
    box-shadow:
      calc(3px - var(--mx, 0px)) calc(3px - var(--my, 0px)) 0
      color-mix(in srgb, var(--ink) 18%, transparent);
  }
}
.btn-primary:active {
  transform: scale(0.97);
}

/* Links — 150ms color */
a:not(.btn-primary):not(.logo) {
  transition: color var(--duration-fast) var(--ease-out);
}
a:not(.btn-primary):not(.logo):hover {
  color: var(--wax-deep);
}

.btn-text,
.content-link {
  background-image: linear-gradient(var(--wax), var(--wax));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition:
    color var(--duration-fast) var(--ease-out),
    background-size var(--duration) var(--ease-out);
}
.btn-text:hover,
.content-link:hover {
  color: var(--wax-deep);
  background-size: 100% 2px;
}

/* Accordion + → × (rotate 45°) */
.accordion-icon {
  display: inline-block;
  transition: transform var(--duration) var(--ease-out);
}
[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

/* Trust marquee optional */
.trust-marquee { overflow: hidden; border-block: 1px solid var(--rule); padding-block: var(--space-5); }
.trust-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--space-8);
  animation: marquee 28s linear infinite;
}
.trust-marquee:hover .trust-marquee__track,
.trust-marquee:focus-within .trust-marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Spine step */
.spine-step .spine-rule {
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--wax);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--duration-enter) var(--ease-out);
}
.spine-step.is-in .spine-rule { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
  :root { --duration-hero: 0ms; }
  .hero-watermark,
  .trust-marquee__track { animation: none !important; }
  [data-reveal],
  [data-reveal-child],
  [data-hero-line] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .dossier::after,
  .btn-primary::before { display: none; }
  .btn-primary.is-magnetic { transform: none !important; }
}

.trust-marquee .trust-detail {
  list-style: none;
  padding: 0 var(--gutter);
  margin: 0;
  display: none;
}
.trust-marquee .trust-detail li {
  border-inline-start: 2px solid var(--wax);
  padding-inline-start: var(--space-4);
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.trust-marquee .trust-detail strong {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-1);
}
@media (max-width: 767px) {
  .trust-marquee__track { display: none; animation: none; }
  .trust-marquee .trust-detail { display: block; }
}
.trust-marquee__track p {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  max-width: none;
  margin: 0;
  white-space: nowrap;
}
.trust-marquee__track .dot { color: var(--wax-deep); margin-inline: var(--space-3); }

/* --- Trust manifesto (Scribe patch — finished three promises) --- */
.trust-manifesto .section-head {
  margin-bottom: var(--space-6);
}

.trust-manifesto .trust-detail {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-5);
  max-width: 40rem;
}

.trust-manifesto .trust-detail li {
  border-inline-start: 2px solid var(--wax);
  padding-inline-start: var(--space-4);
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.trust-manifesto .trust-detail strong {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

@media (min-width: 768px) {
  .trust-manifesto .trust-detail {
    max-width: none;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

/* ===== P4U v2 additions (spec §2–§4, §8) ===== */
html { scroll-padding-top: calc(var(--header-height) + 1rem); }
.footer-h { font-family: var(--font-ui); font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; margin: 0 0 var(--space-3); color: inherit; }
.measure { max-width: 65ch; }
.measure-hero { max-width: 28em; }
.measure-narrow { max-width: var(--container-narrow); }
.after-office { margin-top: var(--space-5); }
.closing-line { margin-top: var(--space-6); }
ol.steps-grid { list-style: none; padding: 0; margin: 0; }
.teaser-card .teaser-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-h3); margin: var(--space-2) 0; color: var(--ink); }
.teaser-card .teaser-body { display: block; color: var(--ink-soft); font-size: var(--text-sm); margin-bottom: var(--space-3); }
.dossier-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dossier-layout { display: block; }
@media (min-width: 1100px) { .dossier-layout { display: grid; grid-template-columns: 8rem 1fr; gap: var(--space-6); } .dossier-index-rail { float: none; width: auto; margin: 0; } }

/* Hero: left rail + office window */
.hero-office { align-items: center; }
.hero-office .hero-stack .display { font-size: clamp(2.5rem, 4.4vw, 4.25rem); width: auto; max-width: 16ch; }
@media (min-width: 1024px) { .hero-office { grid-template-columns: minmax(0, 3.4fr) minmax(0, 6.6fr); } }
.office-window { margin: 0; border: 1px solid var(--ink); background: var(--paper-3); box-shadow: var(--shadow-hard-lg); padding: var(--space-4); }
.window-plan { display: block; width: 100%; height: auto; }
.window-plan text { font-family: var(--font-ui); font-size: 11px; font-weight: 600; fill: #1A120E; }
.office-window figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.token-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-6); flex: 1 1 24rem; margin: 0; padding-left: 1.2rem; list-style: decimal; font-family: var(--font-ui); font-size: var(--text-sm); color: var(--ink-soft); }
.token-legend .stamp { color: var(--wax-hover); font-weight: 600; }
.window-plan .token { opacity: 0; }
.motion-ok .window-plan .token {
  offset-path: path("M180 150 C 120 150 90 90 50 50 C 120 70 200 80 260 140 C 280 170 290 200 300 230");
  opacity: 1;
  animation: brief-token 2.4s var(--ease-hero) 0.4s 1 both;
}
@keyframes brief-token { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* Office floor plan (list laid out by CSS grid) */
.office-tools { display: flex; justify-content: flex-end; margin-bottom: var(--space-3); }
.pause-toggle { font-family: var(--font-ui); font-size: var(--text-btn); font-weight: 600; letter-spacing: var(--tracking-btn); text-transform: uppercase; min-height: 44px; padding: 0 var(--space-4); background: var(--paper-3); color: var(--ink); border: 1px solid var(--ink); cursor: pointer; }
.pause-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pause-toggle:focus-visible, .desk summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.plan { position: relative; display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.plan-walls { display: none; }
.room { position: relative; border: 1px solid var(--rule-strong); background: color-mix(in srgb, var(--paper-3) 70%, transparent); padding: var(--space-4); }
.room-name { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-ui); font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; margin: 0 0 var(--space-3); color: var(--ink-soft); }
.room-lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong); flex: none; }
.room-command { border-color: var(--ink); }
.room-gate { border-style: dashed; }
.desks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.desk-item { margin: 0; }
.desk { border: 1px solid var(--ink); background: var(--paper-3); box-shadow: var(--shadow-hard); transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out); }
.desk summary { list-style: none; display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: var(--space-3); cursor: pointer; }
.desk summary::-webkit-details-marker { display: none; }
.desk-avatar { flex: none; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); transition: border-color var(--duration) var(--ease-out); }
.desk-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.desk-label { display: flex; flex-direction: column; min-width: 0; }
.desk-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; }
.desk-role { font-family: var(--font-ui); font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-soft); }
.desk:hover, .desk:focus-within { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-lg); }
.desk:hover .desk-avatar, .desk:focus-within .desk-avatar, .desk[open] .desk-avatar { border-color: var(--wax-deep); }
.desk-card { padding: 0 var(--space-4) var(--space-4); border-top: 1px solid var(--rule); font-size: var(--text-sm); color: var(--ink-soft); }
.desk-own { margin: var(--space-3) 0 var(--space-2); color: var(--ink); }
.desk-bullets { margin: 0 0 var(--space-3); padding-left: 1.1rem; }
.desk-card .link-more { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-ui); font-weight: 600; color: var(--ink); }
@media (min-width: 600px) and (max-width: 1023px) { .plan { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .plan { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "library writing studio" "workshop command studio" "back gate gate"; gap: 0; border: 1.5px solid var(--ink); background: var(--paper-3); }
  .plan-walls { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .room { border: 0.5px solid var(--rule-strong); background: transparent; padding: var(--space-5); }
  .room-gate { border-style: dashed; }
  .room-library { grid-area: library; } .room-writing { grid-area: writing; } .room-studio { grid-area: studio; }
  .room-workshop { grid-area: workshop; } .room-command { grid-area: command; } .room-back { grid-area: back; } .room-gate { grid-area: gate; }
  .room-command { background: color-mix(in srgb, var(--wax-wash) 35%, transparent); }
  .room-gate .desks { grid-template-columns: 1fr 1fr; }
  .desk-avatar { width: 64px; height: 64px; }
}

/* Ambient life: JS-gated (html.motion-ok), pausable (html.motion-paused), only when on screen (.is-live) */
.motion-ok .office-section.is-live .room-lamp { animation: lamp-pulse 6s ease-in-out infinite; }
.motion-ok .office-section.is-live .room:nth-child(odd) .room-lamp { animation-delay: -3s; }
html.motion-ok.motion-paused .office-section .room-lamp { animation: none; }
@keyframes lamp-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
.room-lamp { background: var(--wax); opacity: 0.6; }

/* Reveal motion (DESIGN.md v3.1) — start states only under html.motion-ok so no-JS users see everything */
.motion-ok [data-reveal], .motion-ok [data-reveal-child], .motion-ok [data-hero-line] {
  opacity: 1; transform: translate3d(0, var(--reveal-y, 28px), 0);
  transition: transform var(--duration-enter) var(--ease-out); /* polish T16/T17: text never fades, transform only */
}
.motion-ok [data-hero-line] { transition-duration: var(--duration-hero); transition-timing-function: var(--ease-hero); }
.motion-ok [data-reveal].is-in, .motion-ok [data-reveal-child].is-in, .motion-ok [data-hero-line].is-in { opacity: 1; transform: none; }
.motion-ok [data-reveal-child]:nth-child(2), .motion-ok [data-hero-line]:nth-child(2), .d-1 { transition-delay: 100ms; }
.motion-ok [data-reveal-child]:nth-child(3), .motion-ok [data-hero-line]:nth-child(3), .d-2 { transition-delay: 200ms; }
.motion-ok [data-reveal-child]:nth-child(4), .motion-ok [data-hero-line]:nth-child(4), .d-3 { transition-delay: 300ms; }
.motion-ok [data-reveal-child]:nth-child(n+5) { transition-delay: 400ms; }
.d-0 { transition-delay: 0ms; }
html:not(.motion-ok) .accent-word { background-size: 100% 2px; }
html:not(.motion-ok) .spine-step .spine-rule { transform: none; }
.hero-watermark { position: absolute; inset: auto auto -0.1em -0.05em; font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 18vw, 12rem); line-height: 0.8; color: var(--ink); opacity: 0.04; pointer-events: none; z-index: var(--z-watermark); }

@media (prefers-reduced-motion: reduce) {
  .room-lamp, .window-plan .token, .desk, .accent-word, .btn-primary, .btn-primary::before, .spine-rule, [data-reveal], [data-reveal-child], [data-hero-line] { animation: none !important; transition: none !important; }
  .desk:hover, .desk:focus-within { transform: none; }
}
.hero-watermark::before { content: "OPS"; }

/* ===== Motion v3 (spec delta b63c6648): night hero band, living office ===== */
.home-hero { background: radial-gradient(120% 90% at 70% 30%, var(--night) 0%, var(--night-deep) 100%); color: var(--paper); }
.home-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(color-mix(in srgb, var(--paper) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--paper) 5%, transparent) 1px, transparent 1px); background-size: 32px 32px; }
.home-hero .container { position: relative; z-index: 1; }
.home-hero .display, .home-hero .eyebrow { color: var(--paper); }
.home-hero .lede-lg { color: var(--paper-dim); }
.home-hero .btn-primary { background: var(--ember); color: var(--ink); border-color: var(--ember); }
.home-hero .btn-text { color: var(--paper); }
.home-hero .accent-word { color: var(--ember); }
.home-hero .hero-watermark { color: var(--paper); }
.home-hero .office-window { color: var(--ink); }
.home-hero .office-window .btn-text { color: var(--ink); }
.home-hero .token-legend .stamp { color: var(--wax-deep); }
.window-plan .typing circle { fill: var(--ember); opacity: 0.2; }
.window-plan .ink-over rect, .window-plan .ink-over path { stroke: var(--ember); stroke-width: 2; fill: none; }
.window-plan .token { opacity: 1; }
.motion-ok .window-plan .token { animation: none; offset-path: none; }
.office-tools { flex-wrap: wrap; align-items: center; gap: var(--space-3); position: relative; }
.office-caption { margin: 0 auto 0 0; font-family: var(--font-ui); font-size: var(--text-sm); color: var(--ink-soft); }
.handoff-btn { font-family: var(--font-ui); font-size: var(--text-btn); font-weight: 600; text-transform: uppercase; min-height: 44px; padding: 0 var(--space-4); background: var(--ink); color: var(--paper); border: 1px solid var(--ink); cursor: pointer; }
.handoff-chip { font-family: var(--font-ui); font-weight: 600; font-size: var(--text-sm); padding: 4px 10px; background: var(--moss); color: var(--paper-3); opacity: 0; }
.plan { border-width: 2px; }
.room-light { position: absolute; inset: 0; background: var(--lamp); opacity: 0.18; pointer-events: none; }
.motion-ok .room-light { opacity: 0.18; }
.desk-status { font-family: var(--font-ui); font-size: 0.7rem; color: var(--ink-soft); }
.desk-dots { display: none; gap: 3px; margin-left: auto; }
.desk-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--wax-deep); }
.motion-ok .desk.is-busy .desk-dots { display: inline-flex; }
.motion-ok .desk.is-busy { box-shadow: 0 0 0 2px var(--lamp), var(--shadow-hard); }
.desk:focus-within .desk-avatar, .desk:hover .desk-avatar { transform: rotate(-4deg); }
.flow-steps { position: relative; }
.flow-rail { position: absolute; left: -12px; top: 0; bottom: 0; width: 3px; background: var(--wax-deep); transform-origin: top; transform: scaleY(1); }
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.embers i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--ember); opacity: 0.1; }

/* polish R1: /workflows/ pause control; space reserved (no layout shift), invisible and unfocusable without motion */
.wf-tools { display: flex; justify-content: flex-start; margin-top: var(--space-4); }
html:not(.motion-ok) .wf-tools .pause-toggle { visibility: hidden; }
/* polish T16: on phones the About hero fills the first screen so the H1/lede, not a body paragraph, is the LCP element */
@media (max-width: 40em) { .page-hero-about { min-height: calc(100svh - 60px); } }
