/* Holoweave launch staging — shared visual system
   Continuous dark only: Base #06090B · Surface #0B1012 · Surface-2 #0D1518 · Attention #D8B56F
   Spacing: 8px discipline. No nested cards, glow, particles, paper mode, or AI futurism. */

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

:root {
  --base: #06090b;
  --surface: #0b1012;
  --surface-2: #0d1518;
  /* section--paper is a dark sibling of base (paper mode retired) */
  --paper-surface: #080c0e;
  --text: #edf0ea;
  --text-dim: #a7afa9;
  --text-subtle: #707b75;
  --attention: #d8b56f;
  --attention-ink: #111a18;
  --border-soft: rgba(237, 240, 234, 0.08);
  --font-ops: "Geist", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-editorial: "Bitter", Georgia, "Times New Roman", serif;
  /* Weave hero highlight only — loaded on /weave/; Georgia fallback elsewhere */
  --font-highlight: "DM Serif Display", Georgia, "Times New Roman", serif;
  --nav-h: 72px;
  --max: 1360px;
  --gutter: clamp(20px, 4vw, 32px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --focus: 0 0 0 2px var(--base), 0 0 0 4px var(--attention);
}

html {
  background: var(--base);
  color: var(--text);
  /* Deterministic for restoration and scroll-linked state. In-page links receive
     deliberate smooth behavior in JS when motion is allowed. */
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  background: var(--base);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}


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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--attention);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--attention);
  color: var(--attention-ink);
  font-family: var(--font-ops);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ── Layout ─────────────────────────────────────────── */

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}

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

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.section--paper {
  background: var(--paper-surface);
  color: var(--text);
}

.section--surface {
  background: var(--surface);
  color: var(--text);
}

.eyebrow {
  font-family: var(--font-ops);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--attention);
}

.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 42rem;
}

/* ── Brand mark ─────────────────────────────────────── */

.mark {
  width: 27px;
  height: 27px;
  color: var(--attention);
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

html[data-scope="weave"] .brand {
  font-family: var(--font-ops);
  font-weight: 500;
}

.brand-slash {
  color: var(--text-subtle);
  font-weight: 400;
}

/* ── Persistent chrome (progress + section) ─────────── */

.site-chrome {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  pointer-events: none;
}

.site-chrome__progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--attention);
  opacity: 0.92;
  will-change: transform;
}

.site-chrome__label {
  position: absolute;
  top: calc(var(--nav-h) + 10px);
  right: max(var(--gutter), calc((100vw - var(--max)) / 2));
  font-family: var(--font-ops);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

body.header-compact .site-chrome__label {
  opacity: 0.9;
  color: var(--attention);
}

/* ── Navigation ─────────────────────────────────────── */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--nav-h);
  transition: background 0.22s ease, border-color 0.22s ease, backdrop-filter 0.22s ease;
}

.site-header--fixed,
.site-header--overlay {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  z-index: 50;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.is-solid,
.site-header.is-compact {
  background: rgba(6, 9, 11, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-soft);
}

.site-header.is-compact .nav {
  height: 60px;
}

.site-header.is-compact {
  height: 60px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.15s ease, opacity 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border-soft);
  background: rgba(11, 16, 18, 0.7);
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ── Buttons ────────────────────────────────────────── */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-family: var(--font-ops);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  background: var(--attention);
  color: var(--attention-ink);
  border: 1px solid transparent;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.btn:hover {
  background: #e2c484;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  background: #c9a65f;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ── Corporate thread-motion hero (scroll scrub) ────── */

.hero-thread {
  position: relative;
  /* ~230svh pinned scrub runway */
  height: 230svh;
  isolation: isolate;
  background: var(--base);
}

.hero-thread__scroll {
  height: 100%;
}

.hero-thread__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-thread__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--base);
  background-image: url("thread-motion-poster.webp");
  background-size: cover;
  background-position: 62% center;
  background-repeat: no-repeat;
  pointer-events: none;
  will-change: transform;
  transform-origin: 62% center;
}

.hero-thread__poster,
.hero-thread__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  pointer-events: none;
}

.hero-thread__poster {
  z-index: 0;
  display: block;
}

.hero-thread__canvas {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: transparent;
}

.hero-thread__canvas.is-ready {
  opacity: 1;
}

.hero-thread.is-static .hero-thread__canvas {
  display: none !important;
}

.hero-thread__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(4, 7, 9, 0.94) 0%,
      rgba(5, 9, 11, 0.78) 34%,
      rgba(5, 9, 11, 0.28) 62%,
      rgba(5, 9, 11, 0.08) 100%
    ),
    linear-gradient(0deg, rgba(6, 9, 11, 0.55) 0%, transparent 38%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
  padding: calc(var(--nav-h) + 32px) 0 96px;
  --hero-eyebrow-o: 1;
  --hero-lede-o: 1;
  --hero-actions-o: 1;
  --hero-title-o: 1;
  --hero-eyebrow-y: 0px;
  --hero-lede-y: 0px;
  --hero-actions-y: 0px;
  --hero-title-y: 0px;
  --hero-parallax-y: 0px;
  transform: translate3d(0, var(--hero-parallax-y), 0);
  will-change: transform;
}

.hero-copy .eyebrow {
  opacity: var(--hero-eyebrow-o);
  transform: translate3d(0, var(--hero-eyebrow-y), 0);
  transition: none;
}

.hero-copy h1 {
  opacity: var(--hero-title-o);
  transform: translate3d(0, var(--hero-title-y), 0);
}

.hero-copy .lede {
  opacity: var(--hero-lede-o);
  transform: translate3d(0, var(--hero-lede-y), 0);
}

.hero-copy .actions {
  opacity: var(--hero-actions-o);
  transform: translate3d(0, var(--hero-actions-y), 0);
}

.hero-thread h1 {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: clamp(2.75rem, 7.2vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.062em;
  max-width: 16ch;
  margin: 24px 0;
}

/* Soft dark fold into the continuous site (no light/dark jump) */
.hero-thread__pin::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  z-index: 2;
  background: linear-gradient(0deg, var(--paper-surface), transparent);
  pointer-events: none;
}

@media (max-width: 800px) {
  .hero-thread {
    height: 200svh;
  }

  .hero-thread__media {
    background-image: url("thread-motion-poster-mobile.webp"), url("thread-motion-poster.webp");
    background-position: 70% center;
    transform-origin: 70% center;
  }

  .hero-thread__poster,
  .hero-thread__canvas {
    object-position: 70% center;
  }

  .site-chrome__label {
    display: none;
  }
}

/* ── Product workbench hero (scroll-scrub canvas) ───── */

/* Default/static = ordinary 100svh (no-JS + reduced-motion).
   JS motion path: ~210svh desktop / ~190svh narrow pinned scrub runway. */
.hero-bench {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: clip;
  background: #05080a;
}

.hero-bench__scroll {
  height: 100%;
}

/* Sticky scrub runway — only when JS is active and motion is allowed */
html.js .hero-bench:not(.is-reduced):not(.is-static) {
  height: 210svh;
  min-height: 210svh;
}

.hero-bench__pin {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  /* Clip media without creating an ancestor scroll container that breaks sticky. */
  overflow: clip;
  contain: paint;
  isolation: isolate;
  background: #05080a;
}

html.js .hero-bench:not(.is-reduced):not(.is-static) .hero-bench__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 100svh;
}

.hero-bench__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform-origin: center 45%;
  background-color: #05080a;
}

.hero-bench__picture,
.hero-bench__poster,
.hero-bench__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  pointer-events: none;
}

.hero-bench__picture {
  z-index: 0;
  display: block;
  margin: 0;
}

.hero-bench__poster {
  z-index: 0;
  display: block;
}

.hero-bench__poster.is-under {
  /* Canvas has taken over; keep poster as underlay flash guard */
  opacity: 1;
}

.hero-bench__canvas {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: transparent;
}

.hero-bench__canvas.is-ready {
  opacity: 1;
}

.hero-bench.is-static .hero-bench__canvas,
.hero-bench.is-reduced .hero-bench__canvas {
  display: none !important;
}

/* No-JS: hide motion picture; noscript lit poster is the readable surface */
html:not(.js) .hero-bench__picture {
  display: none !important;
}

html:not(.js) .hero-bench__poster--noscript {
  display: block;
  z-index: 1;
}

.hero-bench__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(3, 6, 8, 0.92) 0%,
    rgba(3, 6, 8, 0.72) 36%,
    rgba(3, 6, 8, 0.18) 68%,
    rgba(3, 6, 8, 0.08) 100%
  ),
  linear-gradient(0deg, rgba(3, 6, 8, 0.55), transparent 42%);
  pointer-events: none;
}

@media (max-width: 960px) {
  html.js .hero-bench:not(.is-reduced):not(.is-static) {
    height: 190svh;
    min-height: 190svh;
  }
}

.hero-bench .site-header {
  z-index: 4;
}

.hero-bench__copy {
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.hero-bench__copy .actions,
.hero-bench__copy a {
  pointer-events: auto;
}

.hero-bench h1 {
  font-family: var(--font-ops);
  font-weight: 500;
  font-size: clamp(2.75rem, 7.5vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
  max-width: 16ch;
  margin: 24px 0;
  text-wrap: balance;
  /* Room for restrained peak scale + tiny lift without clipping the H1 */
  padding-block: 0.1em 0.14em;
  overflow: visible;
}

/* Corporate hero only: restrained emphasis for the benefit word "alpha".
   Attention palette + italic/weight/underline. No glow, gradient, or animation.
   Weight 600 matches loaded Bitter/Geist faces under font-synthesis:none.
   Scoped away from .hero-full (Weave product hero). */
.hero-thread .hero-copy h1 .hero-alpha,
.hero-thread h1 em.hero-alpha,
em.hero-alpha {
  font-style: italic;
  font-weight: 600;
  color: var(--attention);
  letter-spacing: -0.02em;
  font-synthesis: none;
  text-decoration: underline;
  text-decoration-color: var(--attention);
  text-decoration-color: color-mix(in srgb, var(--attention) 72%, transparent);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: auto;
  text-shadow: none;
  background: none;
  animation: none;
  transition: none;
}

@media (max-width: 800px) {
  .hero-thread .hero-copy h1 .hero-alpha,
  .hero-thread h1 em.hero-alpha,
  em.hero-alpha {
    text-decoration-thickness: 0.07em;
    text-underline-offset: 0.1em;
  }
}

/* Headline context spans — same type metrics; brief restrained recession on strike */
.hero-bench h1 .hero-full-context,
.hero-full-context {
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  transition: none;
}

/* Type-led emphasis for the hero emphasized word.
   Distinctive at rest via native upright DM Serif Display 400 + attention gold +
   controlled underline (not italic Bitter, not bloom). JS adds one restrained
   strike (modest scale + underline draw + soft context recede); settles ~1.08
   with zero text-shadow and never loops. Default = final lit hierarchy
   (no-JS / reduced). With JS, quieter until strike. */
.hero-bench h1 .hero-full,
em.hero-full {
  display: inline-block;
  position: relative;
  font-family: var(--font-highlight);
  font-style: normal;
  font-weight: 400;
  color: var(--attention);
  letter-spacing: -0.02em;
  /* Native DM Serif Display upright only — no faux bold/italic */
  font-synthesis: none;
  /* Underline drawn via ::after so the strike can animate thickness/overshoot */
  text-decoration: none;
  text-shadow: none;
  /* Settled static/no-JS hierarchy — already distinctive without motion */
  transform: scale(1.08);
  transform-origin: 50% 70%;
  will-change: auto;
  transition: none;
  z-index: 1;
}

.hero-bench h1 .hero-full::after,
em.hero-full::after {
  content: "";
  position: absolute;
  left: -0.02em;
  right: -0.02em;
  bottom: 0.05em;
  height: 0.06em;
  border-radius: 1px;
  background: color-mix(in srgb, var(--attention) 78%, transparent);
  transform: scaleX(1);
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: 0;
}

/* JS progressive enhancement: still type-distinct, quieter until one-time strike. */
html.js .hero-bench h1 .hero-full:not(.is-lit),
html.js em.hero-full:not(.is-lit) {
  color: color-mix(in srgb, var(--attention) 42%, var(--text-dim) 58%);
  transform: scale(1.05);
  text-shadow: none;
}

html.js .hero-bench h1 .hero-full:not(.is-lit)::after,
html.js em.hero-full:not(.is-lit)::after {
  background: color-mix(in srgb, var(--attention) 22%, transparent);
  height: 0.05em;
  transform: scaleX(0.94);
}

/* Restrained one-shot type strike — peak ≤1.18, settle ~1.08, no bloom/shadow */
@keyframes hero-full-strike {
  0% {
    color: color-mix(in srgb, var(--attention) 42%, var(--text-dim) 58%);
    transform: scale(1.05) translateY(0);
  }
  40% {
    color: var(--attention);
    transform: scale(1.17) translateY(-0.025em);
  }
  100% {
    color: var(--attention);
    transform: scale(1.08) translateY(0);
  }
}

@keyframes hero-full-underline-strike {
  0% {
    transform: scaleX(0.55);
    height: 0.05em;
    background: color-mix(in srgb, var(--attention) 22%, transparent);
    opacity: 0.85;
  }
  42% {
    transform: scaleX(1.05);
    height: 0.07em;
    background: color-mix(in srgb, var(--attention) 88%, transparent);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    height: 0.06em;
    background: color-mix(in srgb, var(--attention) 78%, transparent);
    opacity: 1;
  }
}

/* Surrounding sentence soft-recedes so the visitor rereads the H1 (never ≤0.7) */
@keyframes hero-full-context-recede {
  0% {
    opacity: 1;
  }
  32% {
    opacity: 0.76;
  }
  70% {
    opacity: 0.82;
  }
  100% {
    opacity: 1;
  }
}

html.js .hero-bench h1 .hero-full.is-lit,
html.js em.hero-full.is-lit {
  color: var(--attention);
  transform: scale(1.08);
  text-shadow: none;
  animation: hero-full-strike 660ms cubic-bezier(0.22, 0.78, 0.28, 1) both;
}

html.js .hero-bench h1 .hero-full.is-lit::after,
html.js em.hero-full.is-lit::after {
  animation: hero-full-underline-strike 660ms cubic-bezier(0.22, 0.78, 0.28, 1) both;
}

html.js .hero-bench h1.is-hero-full-struck .hero-full-context,
html.js h1[data-hero-full-headline].is-hero-full-struck .hero-full-context {
  animation: hero-full-context-recede 660ms cubic-bezier(0.22, 0.7, 0.28, 1) both;
}

@media (max-width: 800px) {
  .hero-bench h1 .hero-full::after,
  em.hero-full::after {
    height: 0.065em;
    bottom: 0.04em;
  }
}

/* Compact replay / reveal control retired — workbench is canvas scroll-scrub */

.hero-bench.is-reduced .hero-bench__poster {
  opacity: 1;
}

/* ── Shared cloth controller surface ────────────────── */

.cloth-stage {
  position: relative;
  height: clamp(560px, 66svh, 660px);
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  --x: 70%;
  --y: 38%;
  --rx: 0deg;
  --ry: 0deg;
}

/* The fabric emerges from the preceding paper-dark surface and recedes into
   the following surface. These veils sit below all cloth copy and controls. */
.cloth-stage::before,
.cloth-stage::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  pointer-events: none;
}

.cloth-stage::before {
  top: 0;
  height: clamp(88px, 13svh, 128px);
  background: linear-gradient(
    to bottom,
    var(--paper-surface) 0%,
    rgba(8, 12, 14, 0.96) 16%,
    rgba(8, 12, 14, 0.52) 54%,
    rgba(8, 12, 14, 0) 100%
  );
}

.cloth-stage::after {
  bottom: 0;
  height: clamp(104px, 16svh, 152px);
  background: linear-gradient(
    to top,
    var(--surface) 0%,
    rgba(11, 16, 18, 0.96) 16%,
    rgba(11, 16, 18, 0.52) 54%,
    rgba(11, 16, 18, 0) 100%
  );
}

.cloth-stage__base,
.cloth-stage__detail {
  position: absolute;
  inset: -4%;
  background: url("full-bleed-cloth.webp") center / cover no-repeat;
  transform: perspective(1200px) scale(1.07) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.12s linear;
  will-change: transform;
  pointer-events: none;
}

.cloth-stage__base {
  z-index: 0;
}

.cloth-stage__detail {
  z-index: 1;
  filter: brightness(1.22) contrast(1.14) saturate(1.08);
  mask-image: radial-gradient(
    circle 280px at var(--x) var(--y),
    #000 0%,
    rgba(0, 0, 0, 0.94) 34%,
    rgba(0, 0, 0, 0.42) 58%,
    transparent 78%
  );
  -webkit-mask-image: radial-gradient(
    circle 280px at var(--x) var(--y),
    #000 0%,
    rgba(0, 0, 0, 0.94) 34%,
    rgba(0, 0, 0, 0.42) 58%,
    transparent 78%
  );
  transform: perspective(1200px) scale(1.11) rotateX(var(--rx)) rotateY(var(--ry));
}

.cloth-stage__light {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: radial-gradient(
    circle 320px at var(--x) var(--y),
    rgba(232, 203, 136, 0.28),
    rgba(216, 181, 111, 0.12) 34%,
    rgba(55, 77, 92, 0.05) 56%,
    transparent 76%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.cloth-stage__shade {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 7, 9, 0.94),
      rgba(3, 7, 9, 0.71) 39%,
      rgba(3, 7, 9, 0.12) 70%
    ),
    linear-gradient(0deg, rgba(3, 7, 9, 0.64), transparent 46%);
  pointer-events: none;
}

.cloth-stage__chrome {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.cloth-stage__chrome > * {
  pointer-events: auto;
}

.cloth-stage__head {
  position: absolute;
  top: 30px;
  left: 50%;
  translate: -50% 0;
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  pointer-events: none;
}

.cloth-stage__copy {
  position: absolute;
  z-index: 6;
  left: max(var(--gutter), calc((100vw - var(--max)) / 2));
  top: clamp(80px, 12vh, 112px);
  bottom: auto;
  width: min(560px, calc(100vw - 64px));
  pointer-events: none;
}

.cloth-stage__copy h2 {
  font-family: var(--font-ops);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 12px 0;
}

.cloth-stage__copy p {
  font-size: 18px;
  line-height: 1.55;
  color: #b3bdb7;
  max-width: 32rem;
  margin: 0;
}

.cloth-stage__evidence {
  font-family: var(--font-ops);
  font-size: 13px;
  color: #dde1de;
  margin-top: 16px;
}

.cloth-node {
  position: absolute;
  z-index: 7;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(216, 181, 111, 0.88);
  background: rgba(5, 9, 11, 0.88);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.72;
  transition: opacity 0.18s, box-shadow 0.18s, transform 0.18s, background 0.18s;
  padding: 0;
}

.cloth-node::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--attention);
  box-shadow: 0 0 18px rgba(216, 181, 111, 0.42);
}

.cloth-node.is-active,
.cloth-node:focus-visible {
  opacity: 1;
  background: rgba(12, 16, 18, 0.96);
  box-shadow:
    0 0 0 10px rgba(216, 181, 111, 0.16),
    0 0 0 24px rgba(216, 181, 111, 0.08),
    0 0 34px rgba(216, 181, 111, 0.28);
  transform: translate(-50%, -50%) scale(1.18);
}

.cloth-node__label {
  position: absolute;
  left: 34px;
  top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
  font-family: var(--font-ops);
  font-size: 13px;
  font-weight: 500;
  color: #f4f0e8;
  opacity: 0;
  transform: translateX(-5px);
  transition: 0.18s;
  pointer-events: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.cloth-node.is-active .cloth-node__label,
.cloth-node:focus-visible .cloth-node__label {
  opacity: 1;
  transform: none;
}

.cloth-steps {
  display: none;
  position: absolute;
  z-index: 8;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 28px;
  gap: 4px;
}

.cloth-steps button {
  border: 0;
  padding: 11px 8px;
  background: rgba(5, 9, 11, 0.72);
  color: #8d9993;
  font-family: var(--font-ops);
  font-size: 13px;
  font-weight: 500;
}

.cloth-steps button.is-active {
  background: var(--attention);
  color: var(--attention-ink);
}

/* Mobile principles panel — first-viewport discoverable controls */
.cloth-mobile-panel {
  display: none;
  position: absolute;
  z-index: 8;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(var(--nav-h) + 16px);
  width: auto;
  max-width: min(42rem, calc(100% - (var(--gutter) * 2)));
  padding: 16px;
  background: rgba(5, 9, 11, 0.78);
  border: 1px solid rgba(216, 181, 111, 0.28);
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

.cloth-stage__copy--desktop {
  display: block;
}

.cloth-stage__copy--mobile-top {
  position: static;
  left: auto;
  bottom: auto;
  width: auto;
  max-width: none;
  margin-top: 4px;
}

.cloth-stage__copy--mobile-top h2 {
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  margin: 8px 0 10px;
}

.cloth-mobile-label {
  margin: 0 0 10px;
  font-family: var(--font-ops);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--attention);
}

.cloth-step-status {
  margin: 14px 0 0;
  font-family: var(--font-ops);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #c6cfc8;
}

.cloth-steps--top {
  position: static;
  display: none;
  grid-template-columns: repeat(var(--steps, 3), minmax(0, max-content));
  gap: 6px;
  margin-bottom: 16px;
  width: max-content;
  max-width: 100%;
}

.cloth-steps--top button {
  padding: 12px 14px;
  min-width: 0;
  width: max-content;
  border: 1px solid rgba(216, 181, 111, 0.28);
}

/* ── Content sections ───────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}

.split h2,
.section h2 {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 0;
  max-width: 18ch;
}

html[data-scope="weave"] .section h2,
html[data-scope="weave"] .split h2 {
  font-family: var(--font-ops);
  font-weight: 500;
}

.section p {
  margin: 0 0 1em;
}

.section p:last-child {
  margin-bottom: 0;
}

.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.product-intro h2 {
  max-width: 18ch;
}

/* Compact core-product proof under the hero claim */
.section--core-proof {
  padding: 72px 0;
  overflow-x: clip;
}

.section--core-proof .mt-7 {
  margin-top: 40px;
}

.section--core-proof .proof-stage__deck {
  min-height: clamp(360px, 42vw, 500px);
  max-height: 500px;
}

/* Interface composition (sanitized staging preview) */

.proof-stage {
  position: relative;
  isolation: isolate;
  --proof-progress: 0;
  --proof-px: 0;
  --proof-py: 0;
}

.proof-stage__deck {
  position: relative;
  min-height: clamp(420px, 48vw, 560px);
  perspective: 1800px;
  transform: translate3d(
    calc(var(--proof-px) * 8px),
    calc(var(--proof-py) * 6px),
    0
  );
  transition: transform 0.08s linear;
}

.proof-panel {
  position: absolute;
  width: min(420px, 54%);
  min-height: 280px;
  border: 1px solid rgba(237, 240, 234, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 24, 27, 0.98), rgba(9, 13, 15, 0.98));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(237, 240, 234, 0.04);
  color: var(--text);
  overflow: hidden;
  --panel-local: 0;
  opacity: calc(0.2 + var(--panel-local) * 0.8);
  will-change: transform, opacity;
}

.proof-panel--board {
  left: 0;
  top: 42px;
  z-index: 3;
  transform:
    rotateY(calc(18deg - var(--proof-px) * 4deg))
    rotateX(calc(7deg + var(--proof-py) * 3deg))
    translateZ(24px)
    translate3d(
      calc((1 - var(--panel-local)) * -36px),
      calc((1 - var(--panel-local)) * 28px),
      0
    );
}

.proof-panel--review {
  left: 34%;
  top: 0;
  z-index: 2;
  width: min(390px, 50%);
  transform:
    rotateY(calc(8deg - var(--proof-px) * 3deg))
    rotateX(calc(5deg + var(--proof-py) * 2deg))
    translateZ(0)
    translate3d(
      0,
      calc((1 - var(--panel-local)) * 40px),
      0
    );
}

.proof-panel--trace {
  right: 0;
  top: 68px;
  z-index: 1;
  width: min(360px, 46%);
  transform:
    rotateY(calc(-14deg - var(--proof-px) * 3deg))
    rotateX(calc(8deg + var(--proof-py) * 2deg))
    translateZ(-18px)
    translate3d(
      calc((1 - var(--panel-local)) * 36px),
      calc((1 - var(--panel-local)) * 24px),
      0
    );
}

.proof-stage.is-static-proof .proof-panel,
.proof-stage.is-assembled .proof-panel {
  opacity: 1;
}

.proof-stage.is-static-proof .proof-panel--board,
.proof-stage.is-assembled .proof-panel--board {
  transform: rotateY(18deg) rotateX(7deg) translateZ(24px);
}

.proof-stage.is-static-proof .proof-panel--review,
.proof-stage.is-assembled .proof-panel--review {
  transform: rotateY(8deg) rotateX(5deg) translateZ(0);
  opacity: 0.96;
}

.proof-stage.is-static-proof .proof-panel--trace,
.proof-stage.is-assembled .proof-panel--trace {
  transform: rotateY(-14deg) rotateX(8deg) translateZ(-18px);
  opacity: 0.94;
}

.proof-panel__chrome {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(237, 240, 234, 0.06);
}

.proof-panel__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-ops);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--attention);
}

.proof-panel__chrome h3 {
  margin: 0;
  font-family: var(--font-ops);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  letter-spacing: -0.03em;
}

.proof-panel__badge {
  font-family: var(--font-ops);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--attention-ink);
  background: var(--attention);
  padding: 6px 8px;
  white-space: nowrap;
}

.proof-panel__body {
  display: grid;
  gap: 12px;
  padding: 16px 20px 20px;
}

.proof-task,
.proof-check,
.proof-trace {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(237, 240, 234, 0.05);
}

.proof-task:first-child,
.proof-check:first-child,
.proof-trace:first-child {
  border-top: 0;
  padding-top: 0;
}

.proof-task b,
.proof-check b,
.proof-trace b {
  display: block;
  font-family: var(--font-ops);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.proof-task p,
.proof-check p,
.proof-trace p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.45;
}

.proof-task span {
  font-family: var(--font-ops);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--attention);
  white-space: nowrap;
  padding-top: 2px;
}

.proof-task.is-active,
.proof-check.is-active,
.proof-trace.is-active {
  background: rgba(216, 181, 111, 0.05);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 4px;
}

.proof-check,
.proof-trace {
  grid-template-columns: 18px 1fr;
}

.proof-check__mark,
.proof-trace__dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1px solid rgba(216, 181, 111, 0.7);
  background: transparent;
}

.proof-check.is-active .proof-check__mark,
.proof-trace.is-active .proof-trace__dot {
  background: var(--attention);
  box-shadow: 0 0 16px rgba(216, 181, 111, 0.35);
}

.iface-caption {
  margin-top: 18px;
  font-family: var(--font-ops);
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

.iface {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(237, 240, 234, 0.06);
  min-height: 420px;
  display: grid;
  grid-template-columns: 200px 1fr;
}

.iface-rail {
  padding: 24px;
  background: #0a1417;
  border-right: 1px solid rgba(237, 240, 234, 0.05);
}

.iface-rail__brand {
  font-family: var(--font-ops);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
}

.iface-rail nav {
  display: grid;
  gap: 4px;
}

.iface-rail button,
.iface-rail a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-subtle);
  border-radius: 0;
}

.iface-rail button.is-active,
.iface-rail a.is-active,
.iface-rail .is-active {
  background: rgba(216, 181, 111, 0.12);
  color: var(--attention);
}

.iface-rail .rail-item {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-subtle);
}

.mt-7 {
  margin-top: 56px;
}

.mt-4 {
  margin-top: 28px;
}

.iface-main {
  padding: 28px 32px 32px;
  min-width: 0;
}

.iface-label {
  font-family: var(--font-ops);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--attention);
  margin-bottom: 8px;
}

.iface-main h3 {
  font-family: var(--font-ops);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.iface-main .iface-meta {
  font-size: 14px;
  color: var(--text-subtle);
  margin-bottom: 24px;
}

.iface-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 20px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(237, 240, 234, 0.06);
}

.iface-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.iface-row b {
  display: block;
  font-family: var(--font-ops);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 6px;
}

.iface-row p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}

.iface-status {
  font-family: var(--font-ops);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--attention);
  white-space: nowrap;
  padding-top: 2px;
}

.iface-caption {
  margin-top: 14px;
  font-family: var(--font-ops);
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* Hermes Console · project chat composition (static staging proof) */
.chat-proof {
  --chat-progress: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(237, 240, 234, 0.06);
  max-width: 920px;
}

/* Progressive semantic sequence driven by --chat-progress (reversible).
   Clip and translation carry the sequence; content stays fully painted. */
.js .chat-proof:not(.is-static-chat) .chat-proof__msg--user {
  opacity: 1;
  transform: translate3d(0, calc((1 - min(1, max(0, var(--chat-progress) - 0.08) / 0.18)) * 12px), 0);
  clip-path: inset(0 0 calc((1 - min(1, max(0, var(--chat-progress) - 0.08) / 0.18)) * 100%) 0);
}

.js .chat-proof:not(.is-static-chat) .chat-proof__msg--hermes {
  opacity: 1;
  transform: translate3d(0, calc((1 - min(1, max(0, var(--chat-progress) - 0.3) / 0.2)) * 12px), 0);
  clip-path: inset(0 0 calc((1 - min(1, max(0, var(--chat-progress) - 0.3) / 0.2)) * 100%) 0);
}

/* Dock leads via clip+translate; opacity briefly masked so the slot can have height 0. */
.js .chat-proof:not(.is-static-chat) .chat-proof__system,
.js .chat-proof:not(.is-static-chat) [data-chat-context-dock] {
  --dock-t: min(1, max(0, var(--chat-progress) - 0.55) / 0.18);
  opacity: 1;
  transform: translate3d(calc((1 - var(--dock-t)) * -10px), 0, 0);
  clip-path: inset(0 calc((1 - var(--dock-t)) * 40%) 0 0);
}

.js .chat-proof:not(.is-static-chat) .chat-proof__composer {
  opacity: 1;
  transform: translate3d(0, calc((1 - min(1, max(0, var(--chat-progress) - 0.78) / 0.16)) * 8px), 0);
  clip-path: inset(calc((1 - min(1, max(0, var(--chat-progress) - 0.78) / 0.16)) * 60%) 0 0 0);
}

.js .chat-proof.is-static-chat .chat-proof__msg,
.js .chat-proof.is-static-chat .chat-proof__system,
.js .chat-proof.is-static-chat .chat-proof__composer,
.js .chat-proof.is-static-chat [data-chat-context-dock] {
  opacity: 1;
  transform: none;
  clip-path: none;
}

[data-chat-context-dock] {
  border-left: 2px solid rgba(216, 181, 111, 0.45);
  padding-left: 10px;
}

.chat-proof__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(237, 240, 234, 0.06);
  background: #0a1417;
}

.chat-proof__brand {
  font-family: var(--font-ops);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.chat-proof__badge {
  font-family: var(--font-ops);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  border: 1px solid rgba(237, 240, 234, 0.1);
  padding: 4px 8px;
  white-space: nowrap;
}

.chat-proof__body {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  min-height: 0;
}

.chat-proof__rail {
  padding: 16px 14px 18px;
  background: #0a1417;
  border-right: 1px solid rgba(237, 240, 234, 0.05);
  min-width: 0;
}

.chat-proof__group + .chat-proof__group {
  margin-top: 18px;
}

.chat-proof__group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 6px;
}

.chat-proof__group-name {
  font-family: var(--font-ops);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
}

.chat-proof__group-count {
  font-family: var(--font-ops);
  font-size: 11px;
  color: var(--text-subtle);
  white-space: nowrap;
}

.chat-proof__chats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.chat-proof__chat {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-dim);
  padding: 8px 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.chat-proof__chat.is-active {
  background: rgba(216, 181, 111, 0.12);
  color: var(--attention);
}

.chat-proof__transcript {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px 16px;
}

.chat-proof__transcript-head {
  margin-bottom: 14px;
}

.chat-proof__title {
  font-family: var(--font-ops);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.chat-proof__meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-subtle);
}

.chat-proof__messages {
  display: grid;
  gap: 12px;
  flex: 1;
}

.chat-proof__msg {
  min-width: 0;
}

.chat-proof__msg-role {
  display: block;
  font-family: var(--font-ops);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.chat-proof__msg p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.chat-proof__msg--hermes p {
  color: var(--text);
}

.chat-proof__system {
  font-family: var(--font-ops);
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  padding: 6px 0;
}

.chat-proof__composer {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(237, 240, 234, 0.08);
  font-size: 13px;
  color: var(--text-subtle);
  pointer-events: none;
  user-select: none;
}

.chat-proof__caption {
  margin-top: 14px;
  font-family: var(--font-ops);
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* Coming-next teaser: multi-user collaboration (private development) */
.chat-next {
  margin-top: 22px;
  max-width: 920px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(237, 240, 234, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  column-gap: 28px;
  row-gap: 8px;
  align-items: start;
}

.chat-next__eyebrow {
  margin: 0;
  grid-column: 1 / -1;
  font-family: var(--font-ops);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.chat-next__title {
  margin: 0;
  font-family: var(--font-ops);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}

.chat-next__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

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

  .chat-proof__rail {
    border-right: 0;
    border-bottom: 1px solid rgba(237, 240, 234, 0.05);
  }

  .chat-proof__transcript {
    padding-top: 16px;
  }

  .chat-next {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 6px;
    padding-top: 14px;
  }
}

@media (max-width: 390px) {
  .chat-proof__chrome {
    padding: 12px 14px;
  }

  .chat-proof__transcript {
    padding: 14px;
  }

  .chat-proof__rail {
    padding: 14px 12px;
  }

  .chat-next {
    margin-top: 18px;
  }

  .chat-next__title {
    font-size: 1rem;
  }
}

/* Categories around Weave — bare items, no card shells */

.category-status {
  margin: 20px 0 0;
  font-family: var(--font-ops);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--attention);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 32px;
}

.category-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#ownership h2 {
  max-width: 22ch;
}

.fit-path {
  margin-top: 48px;
}

.fit-problems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 7vw, 96px);
}

.fit-problem {
  min-width: 0;
  padding-right: var(--space-4);
}

.fit-problem__label,
.fit-solution__label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-ops);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fit-problem__label {
  color: var(--text-faint);
}

.fit-problem h3 {
  margin: 0 0 12px;
  font-family: var(--font-ops);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.fit-problem p {
  max-width: 42ch;
  margin: 0;
  color: var(--text-dim);
}

.fit-join {
  height: 72px;
}

.fit-join svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fit-join path {
  fill: none;
  stroke: rgba(216, 181, 111, 0.42);
  stroke-width: 0.45;
  vector-effect: non-scaling-stroke;
}

.fit-solution {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  background: rgba(216, 181, 111, 0.065);
}

.fit-solution__label {
  color: var(--attention);
}

.fit-solution h3 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.fit-solution p {
  max-width: 52ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.category-item {
  min-width: 0;
  padding: 16px 8px 8px 0;
}

.category-item__num {
  display: block;
  font-family: var(--font-ops);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--attention);
  margin-bottom: 12px;
}

.category-item h3 {
  font-family: var(--font-ops);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.category-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 28ch;
}

/* Legacy build-grid retained for any residual markup */

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.build-item {
  padding-top: var(--space-3);
}

.build-item h3 {
  font-family: var(--font-ops);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.build-item p {
  color: var(--text-dim);
  max-width: 36ch;
}

.build-item .tag {
  display: inline-block;
  font-family: var(--font-ops);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--attention);
  margin-bottom: 12px;
}

/* Continuity value map */

.continuity-map {
  display: grid;
  gap: 12px;
  margin-top: 48px;
}

.continuity-lane {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1.2fr) minmax(220px, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-width: 0;
  padding: 22px 28px;
}

.continuity-lane--fragile {
  border-left: 2px solid rgba(237, 240, 234, 0.14);
  background: rgba(237, 240, 234, 0.018);
}

.continuity-lane--maintained {
  border-left: 3px solid var(--attention);
  background: rgba(216, 181, 111, 0.065);
}

.continuity-lane__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-ops);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.continuity-lane--maintained .continuity-lane__label {
  color: var(--attention);
}

.continuity-lane h3 {
  margin: 0;
  font-family: var(--font-ops);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.continuity-lane > p {
  max-width: 36ch;
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

.continuity-lane--maintained > p {
  color: var(--text-secondary);
}

.continuity-steps {
  position: relative;
  display: grid;
  align-items: start;
  gap: 8px;
  padding-top: 22px;
}

.continuity-steps--fragile {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.continuity-steps--maintained {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 44px;
}

.record-token {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  padding-left: 8px;
  border-left: 2px solid var(--attention);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-ops);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  will-change: transform;
}

.continuity-steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 6px;
  border-top: 1px solid rgba(237, 240, 234, 0.2);
}

.continuity-steps--fragile::before {
  border-top-style: dashed;
}

.continuity-steps--maintained::before {
  top: 28px;
  left: calc((100% - 24px) / 8);
  right: calc((100% - 24px) / 8);
  border-top-color: rgba(216, 181, 111, 0.72);
}

.continuity-steps > [role="listitem"] {
  position: relative;
  min-width: 0;
  font-family: var(--font-ops);
  font-size: 12px;
  text-align: center;
  color: var(--text-faint);
}

.continuity-steps > [role="listitem"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(237, 240, 234, 0.28);
  border-radius: 50%;
  background: var(--paper-surface);
  transform: translateX(-50%);
}

.continuity-steps--maintained > [role="listitem"] {
  color: var(--text-secondary);
}

.continuity-steps--maintained > [role="listitem"]::before {
  border-color: var(--attention);
  background: var(--attention);
}

/* Fragile muted nodes retain a full connector; maintained progress reaches
   decision reversibly via --lane-progress / --continuity-progress. */
.continuity-map {
  --continuity-progress: 0;
}

.continuity-steps {
  --lane-progress: 0;
}

.js .continuity-map .continuity-steps::before {
  transform: scaleX(var(--lane-progress, 0));
  transform-origin: 0 50%;
  transition: none;
}

.js .continuity-map .continuity-steps--fragile::before {
  transform: none;
}

.js .continuity-map .continuity-steps > [role="listitem"]::before {
  opacity: 1;
  transform: translateX(-50%) scale(calc(0.72 + var(--lane-progress, 0) * 0.28));
  transition: none;
}

/* Nodes stay painted; the line and node scale carry reversible progress. */
.js .continuity-map .continuity-steps > [role="listitem"]:nth-child(1 of [role="listitem"])::before {
  opacity: 1;
}
.js .continuity-map .continuity-steps > [role="listitem"]:nth-child(2 of [role="listitem"])::before {
  opacity: 1;
}
.js .continuity-map .continuity-steps > [role="listitem"]:nth-child(3 of [role="listitem"])::before {
  opacity: 1;
}
.js .continuity-map .continuity-steps > [role="listitem"]:nth-child(4 of [role="listitem"])::before {
  opacity: 1;
}

/* Fragile last node stays subdued even when lane is at its cap */
.js .continuity-map .continuity-steps--fragile > [role="listitem"]:last-child::before {
  opacity: 1;
  transform: translateX(-50%) scale(calc(0.72 + var(--lane-progress, 0) * 0.14));
}


.js .continuity-map.is-static-continuity .continuity-steps--fragile {
  --lane-progress: 0.62;
}
.js .continuity-map.is-static-continuity .continuity-steps--maintained {
  --lane-progress: 1;
}

.roadmap .lede {
  max-width: 68ch;
}

/* Role-specific value */

.role-fit {
  --role-context: #8fa9b8;
  --role-execution: #d8b56f;
  --role-proof: #92aa90;
}

.role-fit h2 {
  max-width: 20ch;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.role-switcher {
  margin-top: 48px;
}

.js .role-switcher {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.role-tabs {
  display: none;
}

.js .role-tabs {
  display: grid;
  gap: 4px;
}

.role-tabs button {
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-ops);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.role-tabs button:hover,
.role-tabs button:focus-visible {
  color: var(--text-primary);
  background: rgba(237, 240, 234, 0.025);
}

.role-tabs button.is-active {
  border-left-color: var(--attention);
  background: rgba(216, 181, 111, 0.065);
  color: var(--attention);
}

.role-panel {
  padding: clamp(24px, 3.5vw, 44px);
  border-left: 3px solid var(--attention);
  background: rgba(216, 181, 111, 0.04);
}

.role-panel + .role-panel {
  margin-top: 24px;
}

.js .role-panel + .role-panel {
  margin-top: 0;
}

.js .role-panel:not(.is-active) {
  display: none;
}

.role-panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.role-panel__label,
.role-cycle__label {
  display: block;
  font-family: var(--font-ops);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--attention);
}

.role-panel__label {
  margin-bottom: 10px;
}

.role-panel h3 {
  max-width: 19ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.role-panel__header > p {
  max-width: 48ch;
  margin: 22px 0 0;
  color: var(--text-secondary);
}

.role-cycle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 28px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 0;
}

.role-cycle__run {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(88px, 0.32fr) minmax(180px, 0.7fr) minmax(0, 1.45fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  min-width: 0;
  font-family: var(--font-ops);
}

.role-cycle__run span,
.role-cycle__run strong {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.role-cycle__run span {
  color: var(--role-context);
}

.role-cycle__run strong {
  color: var(--text);
  font-weight: 500;
}

.role-cycle__run p {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.role-cycle__run--after span {
  color: var(--role-proof);
}

.role-cycle__run--after strong {
  color: var(--role-context);
}

[data-role-cycle-stage="context"] {
  --stage-accent: var(--role-context);
}

[data-role-cycle-stage="execution"] {
  --stage-accent: var(--role-execution);
}

[data-role-cycle-stage="proof"] {
  --stage-accent: var(--role-proof);
}

.role-cycle__stage {
  position: relative;
  min-width: 0;
  padding-top: 20px;
  border-top: 2px solid var(--stage-accent);
}

.role-cycle__stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--stage-accent);
}

.role-cycle__label {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--stage-accent);
}

.role-cycle__label i {
  color: var(--text-faint);
  font-style: normal;
}

.role-cycle__stage h4 {
  margin: 12px 0 16px;
  font-family: var(--font-ops);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.role-cycle__stage ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-cycle__stage li {
  position: relative;
  padding-left: 14px;
  color: var(--text-secondary);
}

.role-cycle__stage li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--stage-accent);
}

@keyframes role-stage-enter {
  from {
    opacity: 0.28;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes role-run-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.role-panel.is-restitching .role-cycle__run--before {
  animation: role-run-enter 280ms ease both;
}

.role-panel.is-restitching [data-role-cycle-stage] {
  animation: role-stage-enter 320ms cubic-bezier(0.22, 0.76, 0.28, 1) both;
}

.role-panel.is-restitching [data-role-cycle-stage="context"] {
  animation-delay: 50ms;
}

.role-panel.is-restitching [data-role-cycle-stage="execution"] {
  animation-delay: 115ms;
}

.role-panel.is-restitching [data-role-cycle-stage="proof"] {
  animation-delay: 180ms;
}

.role-panel.is-restitching .role-cycle__run--after {
  animation: role-run-enter 300ms ease 245ms both;
}

/* Workflow steps / self-building roadmap */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.step {
  min-width: 0;
  --step-local: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.step__num {
  font-family: var(--font-ops);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--attention);
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-ops);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.step p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

/* Desktop pinned roadmap narrative */
.roadmap {
  --roadmap-progress: 0;
  position: relative;
  padding: 0;
}

.roadmap.roadmap--pin {
  height: 220svh;
  padding: 0;
}

.roadmap.roadmap--pin .roadmap__scroll {
  height: 100%;
}

.roadmap.roadmap--pin .roadmap__sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: var(--space-7) 0;
  background: var(--surface);
}

.roadmap.roadmap--flow {
  padding: var(--space-7) 0;
}

.roadmap.roadmap--flow .roadmap__scroll,
.roadmap.roadmap--flow .roadmap__sticky {
  display: contents;
}

.roadmap__layout {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
  align-items: stretch;
}

.roadmap__rail {
  position: relative;
  min-height: 100%;
  padding-top: 6px;
}

.roadmap__track {
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(237, 240, 234, 0.1);
  border-radius: 1px;
  overflow: visible;
}

.roadmap__progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--attention);
  transform-origin: 50% 0;
  transform: scaleY(calc(var(--roadmap-progress, 0) * var(--record-progress, 1)));
  will-change: transform;
  transition: transform 80ms linear;
}

/* Accepted-record spine: workflow track carries the durable record forward */
.roadmap__track[data-workflow-record],
[data-workflow-record].roadmap__track {
  background: rgba(237, 240, 234, 0.1);
  box-shadow: inset 0 0 0 1px rgba(216, 181, 111, calc(0.12 + var(--roadmap-progress, 0) * 0.35));
}

.roadmap__record-token {
  position: absolute;
  left: 16px;
  top: 0;
  z-index: 3;
  width: max-content;
  padding-left: 8px;
  border-left: 2px solid var(--attention);
  color: var(--text-secondary);
  font-family: var(--font-ops);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}

[data-record-carry] {
  outline: 0;
}

.roadmap .steps {
  margin-top: 0;
}

.roadmap.roadmap--pin .steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.roadmap .step {
  position: relative;
  padding-top: 4px;
  opacity: 0.42;
  transform: translateY(10px);
}

.roadmap .step.is-upcoming {
  opacity: 0.38;
}

.roadmap .step.is-active {
  opacity: 1;
  transform: none;
}

.roadmap .step.is-active h3 {
  color: var(--text);
}

.roadmap .step.is-active .step__num {
  color: var(--attention);
}

.roadmap .step.is-active .step__num::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--attention);
  vertical-align: middle;
}

.roadmap .step.is-complete {
  opacity: 0.76;
  transform: none;
}

.roadmap .step.is-complete .step__num::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--attention);
  vertical-align: middle;
}

.roadmap .step.is-active h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.45rem);
}

.roadmap.is-static-roadmap .step {
  opacity: 1;
  transform: none;
}

.roadmap.is-static-roadmap .roadmap__progress {
  transform: scaleY(1);
}

@media (min-width: 801px) {
  .roadmap.roadmap--pin .roadmap__layout {
    position: relative;
    display: block;
    padding-top: 28px;
  }

  .roadmap.roadmap--pin .roadmap__rail {
    position: absolute;
    inset: 28px 0 auto;
    min-height: 0;
    height: 2px;
    padding: 0;
  }

  .roadmap.roadmap--pin .roadmap__track {
    inset: 0 calc(25% - 45px) auto 27px;
    width: auto;
    height: 2px;
    background: rgba(237, 240, 234, 0.1);
  }

  .roadmap.roadmap--pin .roadmap__record-token {
    left: 0;
    top: -22px;
  }

  .roadmap.roadmap--pin .roadmap__progress {
    width: 100%;
    height: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
  }

  .roadmap.roadmap--pin .steps {
    position: relative;
    z-index: 1;
  }

  .roadmap.roadmap--pin .step {
    padding-top: 0;
  }

  .roadmap.roadmap--pin .step__num {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 10px;
    background: var(--surface);
  }

  .roadmap.roadmap--pin .step__num::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border: 1px solid rgba(216, 181, 111, 0.58);
    border-radius: 50%;
    background: var(--surface);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  .roadmap.roadmap--pin .step.is-complete .step__num::after {
    display: block;
    width: 7px;
    height: 7px;
    margin-left: 0;
    background: var(--attention);
    border-color: var(--attention);
  }

  .roadmap.roadmap--pin .step.is-active .step__num::after {
    background: var(--attention);
    border-color: var(--attention);
    transform: scale(1.45);
  }

  .roadmap.is-static-roadmap .roadmap__progress {
    transform: scaleX(1);
  }
}

@media (max-width: 800px) {
  .roadmap__record-token {
    left: -5px;
    width: 12px;
    height: 2px;
    padding: 0;
    border: 0;
    background: var(--attention);
    color: transparent;
    font-size: 0;
  }
}

/* State story — cloth-inspired Board / Review / Trace */

/* Full-bleed stage. The cloth is a frozen, viewport-sized layer that stays put
   while the chapters travel over it; it reacts to the active chapter instead
   of scrolling (no visible tile edges). */
.states { padding-bottom: 0; }
.state-cloth {
  position: relative;
  isolation: isolate;
  margin-top: var(--space-6, 48px);
  background: #0b1214;
  overflow: clip; /* the pinned cloth must end with its section */
}

#trust { position: relative; z-index: 1; }

.state-cloth__field {
  position: sticky;
  top: 0;
  z-index: -1;
  height: 100svh;
  margin-bottom: -100svh;
  pointer-events: none;
  overflow: hidden;
}

.state-cloth__field::before,
.state-cloth__field::after {
  content: "";
  position: absolute;
  inset: 0;
}

.state-cloth__field::before {
  background: url("full-bleed-cloth.webp") no-repeat;
  background-size: cover;
  background-position: 30% 40%;
  opacity: 0.42;
  filter: brightness(0.62) contrast(1.06) saturate(0.78);
  transform: scale(1.08);
  transition: background-position 1.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.state-cloth[data-active-state="review"] .state-cloth__field::before {
  background-position: 55% 55%;
  transform: scale(1.14);
  opacity: 0.5;
}

.state-cloth[data-active-state="trace"] .state-cloth__field::before {
  background-position: 75% 65%;
  transform: scale(1.04);
  opacity: 0.46;
}

.state-cloth__field::after {
  /* keep type readable on the left, let the cloth breathe on the right */
  background:
    linear-gradient(180deg, var(--paper-surface, #0b1214) 0%, rgba(8, 12, 14, 0) 18%, rgba(8, 12, 14, 0) 82%, var(--paper-surface, #0b1214) 100%),
    linear-gradient(90deg, rgba(6, 10, 12, 0.86) 0%, rgba(6, 10, 12, 0.55) 48%, rgba(6, 10, 12, 0.2) 100%);
}

.state-cloth__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 20px clamp(36px, 5vw, 72px);
  align-items: start;
}

.state-cloth__threads { display: none; }

.state-cloth__topology {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  will-change: transform;
  align-self: start;
  height: min(64vh, 520px);
  min-height: 420px;
}

.state-cloth__node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-family: var(--font-ops);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.state-cloth__node[data-state-anchor="board"] { left: 8%; top: 12%; }
.state-cloth__node[data-state-anchor="review"] { left: 48%; top: 43%; }
.state-cloth__node[data-state-anchor="trace"] { left: 18%; top: 74%; }

.state-cloth__node:hover,
.state-cloth__node:focus-visible {
  color: var(--text);
  background: transparent;
}

.state-cloth__node.is-active,
.state-cloth__node[aria-current="step"] {
  color: var(--attention);
  background: transparent;
  transform: translateX(4px);
}

.state-cloth__node-dot {
  width: 3px;
  height: 16px;
  background: color-mix(in srgb, var(--text-dim) 45%, transparent);
}

.state-cloth__node.is-active .state-cloth__node-dot,
.state-cloth__node[aria-current="step"] .state-cloth__node-dot {
  background: var(--attention);
}

.state-cloth__step-status {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-ops);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.state-cloth__mobile-steps {
  position: relative;
  z-index: 1;
  display: none;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.state-cloth__mobile-steps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0 8px;
  font-family: var(--font-ops);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.state-cloth__mobile-steps a.is-active,
.state-cloth__mobile-steps a[aria-current="step"] {
  color: var(--attention);
  border-bottom-color: var(--attention);
}

.state-cloth__detail {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  min-width: 0;
  max-width: 600px;
}

.state-panel {
  --d: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  scroll-margin-top: 0;
  opacity: calc(1 - min(1, max(0, max(var(--d), calc(var(--d) * -1)) - 0.34) * 1.8));
}

/* Layers travel at different speeds: label leads, title follows, rows settle. */
.state-panel > * { transform: translate3d(0, calc(var(--d) * var(--depth, 0px)), 0); will-change: transform; }
.state-panel > .state-detail__label { --depth: -120px; }
.state-panel > h3 { --depth: -72px; }
.state-panel > .state-detail__meta { --depth: -40px; }
.state-panel > .state-detail__row { --depth: -12px; }
.state-panel > .state-detail__row + .state-detail__row { --depth: 12px; }

.state-detail__label {
  margin: 0 0 8px;
  font-family: var(--font-ops);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--attention);
}

.state-detail__meta {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.state-detail__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--border-soft) 70%, transparent);
}

.state-detail__row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.state-detail__row b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.state-detail__row p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.state-detail__status {
  font-family: var(--font-ops);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--attention);
  white-space: nowrap;
}

.state-cloth__detail h3 {
  margin: 0 0 8px;
  font-family: var(--font-editorial);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  color: var(--text);
}

/* Keep legacy selectors for progressive enhancement contracts. */
.state-switch,
.js .state-switch {
  display: none;
}

html:not(.js) [data-state-switcher] .state-panel + .state-panel {
  margin-top: 48px;
}

html:not(.js) .state-cloth__topology,
html:not(.js) .state-cloth__mobile-steps,
html:not(.js) .state-cloth__step-status,
html:not(.js) .state-cloth__field {
  display: none;
}
html:not(.js) .state-panel { opacity: 1; min-height: 0; padding-block: 48px; }

@media (max-width: 720px) {
  .state-cloth__inner { display: block; padding-bottom: 24px; }

  .state-cloth__topology,
  .state-cloth__threads {
    display: none;
  }

  .state-cloth__mobile-steps {
    display: flex;
    position: sticky;
    top: 60px;
    z-index: 5;
    margin: 0 -2px 12px;
    padding: 12px 2px 8px;
    background: #060a0b;
    box-shadow: 0 -8px 0 #060a0b, 0 8px 0 #060a0b;
  }

  .state-cloth__detail {
    max-width: none;
  }

  .state-panel {
    min-height: 78svh;
    padding: 24px 0;
    scroll-margin-top: 132px;
  }
  .state-cloth__field::after {
    background: linear-gradient(180deg, var(--paper-surface, #0b1214) 0%, rgba(6, 10, 12, 0.72) 22%, rgba(6, 10, 12, 0.72) 80%, var(--paper-surface, #0b1214) 100%);
  }

  .state-panel:first-child {
    padding-top: 24px;
  }

  .state-panel:last-child {
    padding-bottom: 24px;
  }

  .state-detail__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .state-detail__status {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .state-cloth__node,
  .state-cloth__mobile-steps a,
  .state-panel,
  .state-cloth__field::before {
    transition: none;
  }
  .state-panel { opacity: 1; min-height: 0; padding-block: 64px; }
  .state-panel > * { transform: none; }
}

/* Trust */

.trust-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* Footer / legal */

.site-footer {
  padding: var(--space-6) 0 var(--space-5);
  background: var(--base);
  border-top: 1px solid var(--border-soft);
  color: var(--text-subtle);
  font-size: 13px;
}

/* The corporate close is a recap, not a second hero. */
html[data-scope="lab"] #company h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  max-width: 18ch;
}

html[data-scope="lab"] .site-footer {
  border-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-4);
}

.site-footer .brand {
  margin-bottom: 16px;
}

.site-footer a:hover {
  color: var(--text);
}

.legal {
  font-family: var(--font-ops);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-subtle);
  max-width: 42ch;
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-dim);
}

.footer-meta {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-family: var(--font-ops);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Reveal (no-JS: always visible) */

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 404 */

.page-404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--space-6) var(--gutter);
  text-align: center;
}

.page-404 h1 {
  font-family: var(--font-editorial);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  margin: 16px 0;
}

.page-404 .lede {
  margin-inline: auto;
}

.page-404 .actions {
  justify-content: center;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 960px) {
  .split,
  .product-intro,
  .trust-block,
  .build-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .category-grid--three {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .roadmap.roadmap--pin {
    height: auto;
  }

  .roadmap.roadmap--pin .roadmap__sticky {
    position: relative;
    min-height: 0;
    padding: 0;
  }

  .roadmap__layout {
    grid-template-columns: 20px 1fr;
    gap: var(--space-3);
  }

  .roadmap .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .iface {
    grid-template-columns: 1fr;
  }

  .iface-rail {
    display: none;
  }

  .section--core-proof {
    padding: var(--space-7) 0;
  }

  .section--core-proof .mt-7 {
    margin-top: 56px;
  }

  .section--core-proof .proof-stage__deck,
  .proof-stage__deck {
    min-height: 0;
    max-height: none;
    display: grid;
    gap: 12px;
    perspective: none;
  }

  .proof-panel {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    min-height: 0;
    transform: none !important;
    opacity: 1;
  }
}

/* Collapse earlier so longer visitor-question nav labels never collide with brand at ~900–1100. */
@media (max-width: 1100px), (pointer: coarse) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: static;
    flex-basis: 100%;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--gutter) 32px;
    background: rgba(6, 9, 11, 0.97);
    backdrop-filter: blur(12px);
    overflow: visible;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--border-soft);
  }
}

@media (max-width: 800px), (pointer: coarse) {
  .fit-path {
    margin-top: 40px;
  }

  .fit-problems {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fit-join {
    position: relative;
    height: 48px;
  }

  .fit-join svg {
    display: none;
  }


  .fit-solution {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }

  .continuity-map {
    margin-top: 40px;
  }

  .continuity-lane {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 20px;
  }

  .continuity-lane > p {
    max-width: 42ch;
  }

  .js .role-switcher {
    display: block;
  }

  .js .role-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 20px;
  }

  .role-tabs button {
    min-height: 48px;
    padding: 10px 8px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    text-align: center;
  }

  .role-tabs button.is-active {
    border-bottom-color: var(--attention);
  }

  .role-panel {
    padding: 24px 20px;
  }

  .role-panel__header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .role-panel__header > p {
    margin-top: 0;
  }

  .role-cycle {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 0;
    padding-left: 24px;
  }

  .role-cycle::before {
    display: none;
  }

  .role-cycle__stage {
    padding-top: 0;
    border-top-width: 0;
  }

  .role-cycle__stage::before {
    left: -24px;
    top: 4px;
  }

  .role-cycle__stage:not([data-role-cycle-stage="proof"])::after {
    content: "";
    position: absolute;
    left: -20px;
    top: 14px;
    bottom: -32px;
    border-left: 1px solid var(--stage-accent);
    opacity: 0.7;
  }

  .role-cycle__stage h4 {
    margin-bottom: 12px;
  }

  .role-cycle__run {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }

  .hero-thread h1,
  .hero-bench h1 {
    font-size: clamp(2.2rem, 9.5vw, 3rem);
    max-width: 15ch;
    margin: 16px 0 12px;
    text-wrap: balance;
  }

  .hero-copy {
    padding: calc(var(--nav-h) + 20px) 0 72px;
  }

  .hero-copy .lede {
    max-width: 34ch;
    margin-bottom: 8px;
  }

  .hero-bench__copy {
    padding-bottom: 88px;
  }

  .hero-thread__shade {
    background:
      linear-gradient(
        90deg,
        rgba(4, 7, 9, 0.96) 0%,
        rgba(5, 9, 11, 0.82) 42%,
        rgba(5, 9, 11, 0.35) 72%,
        rgba(5, 9, 11, 0.12) 100%
      ),
      linear-gradient(0deg, rgba(6, 9, 11, 0.62) 0%, transparent 42%);
  }

  .cloth-stage {
    height: auto;
    min-height: 680px;
  }

  .cloth-stage__shade {
    background: linear-gradient(
      0deg,
      #05090b 4%,
      rgba(5, 9, 11, 0.84) 52%,
      rgba(5, 9, 11, 0.18)
    );
  }

  .cloth-stage__copy--desktop {
    display: none;
  }

  .cloth-mobile-panel {
    display: block;
  }

  .cloth-steps--top {
    display: grid;
  }

  .cloth-node {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .roadmap.roadmap--pin,
  .roadmap.roadmap--flow {
    height: auto;
    padding: var(--space-7) 0;
  }

  .roadmap.roadmap--pin .roadmap__scroll,
  .roadmap.roadmap--pin .roadmap__sticky {
    display: contents;
  }

  .roadmap__layout {
    grid-template-columns: 18px 1fr;
  }

  .roadmap .steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .roadmap .step {
    opacity: 1;
    transform: none;
    padding-left: 4px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: max-content;
    max-width: 100%;
  }
}

/* ── Reduced motion ─────────────────────────────────── */

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

  /* Collapse scrub runway — ordinary 100svh static hero */
  html.js .hero-bench,
  html.js .hero-bench:not(.is-reduced),
  html.js .hero-bench:not(.is-reduced):not(.is-static),
  .hero-bench,
  .hero-bench.is-static {
    height: auto;
    min-height: 100svh;
  }

  html.js .hero-bench .hero-bench__pin,
  html.js .hero-bench:not(.is-reduced) .hero-bench__pin,
  html.js .hero-bench:not(.is-reduced):not(.is-static) .hero-bench__pin,
  .hero-bench__pin,
  .hero-bench.is-static .hero-bench__pin {
    position: relative;
    height: auto;
    min-height: 100svh;
  }

  .hero-bench__scroll {
    height: auto;
    min-height: 100svh;
  }

  .hero-bench__canvas {
    display: none !important;
  }

  .hero-bench__media {
    transform: none !important;
  }

  /* Hero emphasized word finished type-led hierarchy immediately; no strike animation */
  html.js .hero-bench h1 .hero-full,
  html.js em.hero-full,
  html.js .hero-bench h1 .hero-full:not(.is-lit),
  html.js em.hero-full:not(.is-lit),
  html.js .hero-bench h1 .hero-full.is-lit,
  html.js em.hero-full.is-lit {
    font-family: var(--font-highlight);
    font-style: normal;
    font-weight: 400;
    font-synthesis: none;
    color: var(--attention);
    text-shadow: none;
    animation: none;
    transition: none;
    /* Settled scale only — no peak strike under reduced motion */
    transform: scale(1.08);
  }

  html.js .hero-bench h1 .hero-full::after,
  html.js em.hero-full::after,
  html.js .hero-bench h1 .hero-full:not(.is-lit)::after,
  html.js em.hero-full:not(.is-lit)::after,
  html.js .hero-bench h1 .hero-full.is-lit::after,
  html.js em.hero-full.is-lit::after {
    animation: none;
    transition: none;
    transform: scaleX(1);
    height: 0.06em;
    background: color-mix(in srgb, var(--attention) 78%, transparent);
    opacity: 1;
  }

  html.js .hero-bench h1.is-hero-full-struck .hero-full-context,
  html.js h1[data-hero-full-headline].is-hero-full-struck .hero-full-context,
  html.js .hero-full-context {
    animation: none;
    opacity: 1;
    transition: none;
  }

  .hero-thread {
    height: auto;
    min-height: 100svh;
  }

  .hero-thread__scroll,
  .hero-thread__pin {
    height: auto;
    min-height: 100svh;
    position: relative;
  }

  .hero-thread__canvas {
    display: none !important;
  }

  .hero-thread__media {
    transform: none !important;
  }

  .hero-copy {
    transform: none !important;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .lede,
  .hero-copy .actions {
    opacity: 1 !important;
    transform: none !important;
  }

  .cloth-stage__base,
  .cloth-stage__detail {
    transform: scale(1.07);
    transition: none;
  }

  .cloth-stage__detail,
  .cloth-stage__light {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .continuity-map .continuity-steps::before,
  .js .continuity-map .continuity-steps > [role="listitem"]::before {
    transition: none;
  }

  .js .continuity-map {
    --continuity-progress: 1;
  }

  .js .continuity-map .continuity-steps--fragile {
    --lane-progress: 0.62;
  }

  .js .continuity-map .continuity-steps--maintained {
    --lane-progress: 1;
  }

  .js .chat-proof {
    --chat-progress: 1;
  }

  .js .chat-proof .chat-proof__msg,
  .js .chat-proof .chat-proof__system,
  .js .chat-proof .chat-proof__composer {
    opacity: 1 !important;
  }

  .role-panel.is-restitching .role-cycle__run,
  .role-panel.is-restitching [data-role-cycle-stage] {
    animation: none !important;
  }

  .proof-panel,
  .proof-stage__deck {
    transition: none;
    transform: none !important;
    opacity: 1 !important;
  }

  .proof-panel--board {
    transform: none !important;
  }

  .roadmap.roadmap--pin {
    height: auto;
  }

  .roadmap .step {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover {
    transform: none;
  }
}

@media print {
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Product FAQ: native disclosure controls, isolated from animation sections. */
.faq { position: relative; z-index: 2; background: var(--base); }
.faq .faq__items { max-width: 880px; margin-top: 32px; }
.faq details { border-bottom: none; }
.faq summary { padding: 24px 0; color: var(--text); cursor: pointer; font-size: 1.125rem; overflow-wrap: anywhere; }
.faq summary::marker { color: var(--attention); }
.faq summary:focus-visible { outline: 2px solid var(--attention); outline-offset: 4px; }
.faq details p { margin: 0; padding: 0 0 24px; color: var(--text-dim); line-height: 1.6; overflow-wrap: anywhere; }

/* V2 actual product demonstration captures; continuity remains untouched. */
.role-panel:has(.role-screenshot) { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 2rem; }
.role-panel:has(.role-screenshot) .role-panel__header { display: block; min-width: 0; }
.role-panel:has(.role-screenshot) .role-panel__header > p { margin-top: 1rem; }
.role-panel:has(.role-screenshot) .role-cycle { grid-column: 1 / -1; min-width: 0; }
.role-screenshot { margin: 0; min-width: 0; }
.role-screenshot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.role-screenshot figcaption { margin-top: .75rem; font-size: .75rem; color: var(--muted); }
@media (max-width: 900px) { .role-panel:has(.role-screenshot) { grid-template-columns: minmax(0, 1fr); } }

/* Fine-pointer portrait: the original three minimum tracks plus gaps/padding
   need about 805px; reflow before they exceed the available content width. */
@media (min-width: 801px) and (max-width: 900px) and (pointer: fine) {
  .continuity-lane { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px 20px; }
  .continuity-lane > p { max-width: 42ch; }
}

/* Accepted public-safe demo viewport; shared frame ready for approved roles. */
.role-browser-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0d1417; }
.role-browser-frame__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.role-browser-frame__bar > span { width: 5px; height: 5px; border-radius: 50%; background: var(--text-faint); }
.role-browser-frame__bar small { margin-left: auto; font-size: 10px; color: var(--text-dim); }
.role-browser-frame__image { display: block; }
.role-browser-frame__image:focus-visible { outline: 2px solid var(--attention); outline-offset: -2px; }
.role-browser-frame .role-browser-frame__image img { width: 100%; height: auto; object-fit: contain; border: 0; border-radius: 0; }

/* V2 polish: fragile base geometry and desktop chapter proximity only. */
.continuity-steps--fragile::before { left: calc((100% - 16px) / 6); right: calc((100% - 16px) / 6); }
.js .state-cloth__node { opacity: var(--node-emphasis, 1); }
.js .state-cloth__node:focus-visible, .js .state-cloth__node:focus-within { opacity: 1; color: var(--text); }
.js .state-cloth__node.is-active:focus-visible, .js .state-cloth__node.is-active:focus-within { color: var(--attention); }
@media (prefers-reduced-motion: reduce) { .js .state-cloth__node { opacity: 1; } }

/* Weave header access CTA only: preserve native height and shared menu controller. */
html[data-scope="weave"] .nav-links .nav-access { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; color: var(--attention-ink); background: var(--attention); font-family: var(--font-ops); font-weight: 600; line-height: 1.2; white-space: nowrap; border: 0; }
html[data-scope="weave"] .nav-links .nav-access:hover,
html[data-scope="weave"] .nav-links .nav-access:focus-visible { color: var(--attention-ink); background: var(--attention); }
@media (max-width: 1180px), (pointer: coarse) {
  html[data-scope="weave"] .nav-toggle { display: grid; }
  html[data-scope="weave"] .nav-links { position: static; flex-basis: 100%; z-index: 50; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px; background: rgba(6, 9, 11, .97); backdrop-filter: blur(12px); overflow: visible; }
  html[data-scope="weave"] .nav-links.is-open { display: flex; }
  html[data-scope="weave"] .nav-links a { display: block; padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--border-soft); }
  html[data-scope="weave"] .nav-links .nav-access { display: inline-flex; align-self: flex-start; margin-top: 16px; padding: 10px 16px; border: 0; }
}

/* Owner-approved final polish: portrait stages and existing native links only. */
@media (min-width: 801px) and (max-width: 1000px) and (orientation: portrait) {
  html[data-scope="weave"] .role-cycle { grid-template-columns: 1fr; gap: 28px; padding-left: 24px; }
  html[data-scope="weave"] .role-cycle__stage { padding-top: 0; border-top-width: 0; }
  html[data-scope="weave"] .role-cycle__stage::before { left: -24px; top: 4px; }
  html[data-scope="weave"] .role-cycle__stage:not([data-role-cycle-stage="proof"])::after { content: ""; position: absolute; left: -20px; top: 14px; bottom: -32px; border-left: 1px solid var(--stage-accent); opacity: 0.7; }
  html[data-scope="weave"] .role-cycle__stage h4 { margin-bottom: 12px; }
  html[data-scope="weave"] .role-cycle__run { grid-template-columns: 1fr; gap: 4px; align-items: start; }
}
@media (max-width: 800px) {
  html[data-scope="lab"] .hero-thread .actions .btn-ghost { background: rgba(6, 10, 12, 0.62); }
  html[data-scope="lab"] .hero-thread .actions .btn-ghost:hover { background: rgba(6, 10, 12, 0.74); }
}
.role-browser-frame__image { position: relative; }
.role-browser-frame__image::before, .role-browser-frame__image::after { content: ""; position: absolute; z-index: 1; pointer-events: none; opacity: 0; }
.role-browser-frame__image::before { width: 10px; height: 10px; right: 8px; bottom: 8px; border: 2px solid var(--attention); border-radius: 50%; background: rgba(6, 10, 12, 0.8); }
.role-browser-frame__image::after { width: 7px; height: 2px; right: 3px; bottom: 6px; background: var(--attention); transform: rotate(45deg); transform-origin: left center; }
.role-browser-frame__image:hover::before, .role-browser-frame__image:hover::after,
.role-browser-frame__image:focus-visible::before, .role-browser-frame__image:focus-visible::after { opacity: 1; }
.site-footer .footer-nav .footer-access { color: var(--text); font-weight: 600; }
.site-footer .footer-nav .footer-access:hover { color: var(--attention); }

/* Corrected boundary: #ownership card directly precedes #weave. Not #principles + #build.
   Addition is margin, not a padding replacement: desktop .section--core-proof padding is 72px, while --space-7 is 96px. */
html[data-scope="lab"] #ownership + #weave { margin-top: 48px; }
@media (max-width: 1000px) { html[data-scope="lab"] #ownership + #weave { margin-top: 40px; } }
@media (max-width: 600px) { html[data-scope="lab"] #ownership + #weave { margin-top: 32px; } }

/* Corporate #weave proof panels only: readable native chrome; uniform text-line bars. */
html[data-scope="lab"] #weave .proof-panel .proof-panel__body p,
html[data-scope="lab"] #weave .proof-panel .proof-panel__body b,
html[data-scope="lab"] #weave .proof-panel .proof-panel__body strong,
html[data-scope="lab"] #weave .proof-panel .proof-task > span {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-color: transparent;
  background-image: repeating-linear-gradient(to bottom,
    transparent 0 calc((1lh - 8px) / 2),
    rgba(148, 150, 158, 0.22) calc((1lh - 8px) / 2) calc((1lh + 8px) / 2),
    transparent calc((1lh + 8px) / 2) 1lh);
  background-size: 100% 1lh;
  background-origin: content-box;
  background-clip: content-box;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* The expanded menu participates in the document, including short screens. */
body.nav-open .site-header { position: relative; height: auto; }
body.nav-open .site-header .nav { height: auto; min-height: var(--nav-h); flex-wrap: wrap; }
