/* Soften the band exit into a crossfade rather than a hard wipe. */
/* =========================================================
   SAIL — Sovereign AI land
   Landing page stylesheet
   Brand 4.0 · Inter · Ink/Jade/Paper/Mist/Silt/Slate/White
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #102F33;
  --jade: #086A5E;
  --paper: #F5F6EF;
  --mist: #B8E5D4;
  --silt: #DBAC69;
  --slate: #486366;
  --white: #FFFFFF;

  --ink-06: rgba(16, 47, 51, 0.06);
  --ink-12: rgba(16, 47, 51, 0.12);
  --ink-18: rgba(16, 47, 51, 0.18);
  --ink-28: rgba(16, 47, 51, 0.28);
  --paper-08: rgba(245, 246, 239, 0.08);
  --paper-14: rgba(245, 246, 239, 0.14);
  --paper-22: rgba(245, 246, 239, 0.22);
  --paper-40: rgba(245, 246, 239, 0.4);
  --paper-70: rgba(245, 246, 239, 0.7);

  --font: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-fa: "Noto Sans Arabic", "Inter", Tahoma, sans-serif;

  --head-h: 88px;
  --shell: 1440px;
  --gutter: clamp(22px, 4.2vw, 72px);
  --cut: clamp(44px, 7vw, 104px);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --focus: var(--jade);
}

/* ---------- base ---------- */

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
}

html.reduced-motion { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
strong { font-weight: 600; }

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

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

.hero, .interlude, .contact, .site-foot, .stage, .mobile-menu { --focus: var(--mist); }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

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

/* ---------- fixed stage ---------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--ink);
  pointer-events: none;
  transition: opacity 0.6s linear;
}

.stage__poster,
.stage__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage__poster img {
  object-fit: cover;
  object-position: 66% 42%;
  opacity: 1;
  transition: opacity 0.6s var(--ease);
}

.stage.is-ready .stage__poster { opacity: 0; }

#stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.stage.is-ready #stage-canvas { opacity: 1; }

/* Pointer feedback for the live 3D territory. */
.scene-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.22s var(--ease);
  will-change: transform;
}

.scene-cursor.is-visible { opacity: 1; }

.scene-cursor__ring {
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(184, 229, 212, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(16, 47, 51, 0.22) inset, 0 0 22px rgba(184, 229, 212, 0.25);
}

.scene-cursor__dot {
  position: absolute;
  left: -2.5px;
  top: -2.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mist);
  box-shadow: 0 0 12px rgba(184, 229, 212, 0.9);
}

.scene-cursor__label {
  position: absolute;
  left: 22px;
  top: 12px;
  padding: 7px 12px;
  border-radius: 2px;
  background: var(--mist);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

html.scene-hover,
html.scene-hover body { cursor: none; }

html.still-mode .scene-cursor,
html.shot-mode .scene-cursor,
html.reduced-motion .scene-cursor,
html.scene-fallback .scene-cursor { display: none; }

@media (pointer: coarse) {
  .scene-cursor { display: none; }
}

.layer-chip.is-scene-hover {
  background: linear-gradient(180deg, var(--paper-08), transparent 70%);
}

.layer-chip.is-scene-hover .layer-chip__icon {
  opacity: 1;
  transform: none;
}

.layer-rail__item.is-scene-hover {
  border-color: rgba(184, 229, 212, 0.4);
  background: rgba(184, 229, 212, 0.12);
  color: var(--mist);
}

.stage__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(125% 95% at 70% 38%, transparent 44%, rgba(4, 16, 18, 0.32) 100%),
    linear-gradient(180deg, rgba(4, 16, 18, 0.26) 0%, transparent 22%, transparent 72%, rgba(4, 16, 18, 0.3) 100%);
  opacity: 1;
  transition: opacity 1.2s var(--ease);
}

.stage.is-light .stage__vignette { opacity: 0; }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

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

.site-head {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  color: var(--paper);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 20, 22, 0.62) 0%, rgba(5, 20, 22, 0) 100%);
  opacity: 1;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.site-head.is-solid {
  color: var(--ink);
  background: rgba(245, 246, 239, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(16, 47, 51, 0.12);
}

.site-head.is-solid::before { opacity: 0; }

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--head-h);
}

.site-head__brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.site-head__logo {
  width: clamp(132px, 11vw, 168px);
  height: auto;
}

.site-head__logo--on-light { display: none; }
.site-head.is-solid .site-head__logo--on-dark { display: none; }
.site-head.is-solid .site-head__logo--on-light { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  margin-inline-start: auto;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  opacity: 0.9;
  padding-block: 10px;
}

.site-nav__num {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.55;
  transform: translateY(-1px);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { transform: scaleX(1); }

.site-head__cta { margin-inline-start: 8px; }

.site-head__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.site-head__toggle-open { display: block; }
.site-head__toggle-close { display: none; }
.site-head__toggle[aria-expanded="true"] .site-head__toggle-open { display: none; }
.site-head__toggle[aria-expanded="true"] .site-head__toggle-close { display: block; }

.scroll-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: rgba(16, 47, 51, 0.08);
  opacity: 0;
  transition: opacity 0.4s;
}

.site-head.is-solid .scroll-progress { opacity: 1; }

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--jade);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--head-h) + 28px) var(--gutter) 32px;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu[hidden] { display: none; }

.mobile-menu__nav { display: flex; flex-direction: column; }

.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--paper-14);
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.mobile-menu__nav a span {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
  font-weight: 600;
}

.mobile-menu__foot {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.mobile-menu__mail {
  font-size: 15px;
  color: var(--paper-70);
  border-bottom: 1px solid var(--paper-22);
  justify-self: start;
  padding-bottom: 3px;
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--jade);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  padding: 0 20px 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.12) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

.btn:hover::after { transform: translateX(120%); }

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  transition: transform 0.35s var(--ease);
}

.btn__icon .icon { width: 18px; height: 18px; stroke-width: 1.8; }
.btn:hover .btn__icon { transform: translateX(4px); }

.btn--primary { background: var(--jade); color: var(--white); }
.btn--primary:hover { background: #0a7a6c; }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper-40);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: var(--paper-08);
  border-color: var(--paper-70);
}

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #0a2225; }

.btn--sm { min-height: 42px; font-size: 13px; padding: 0 14px 0 18px; gap: 14px; }
.btn--sm .btn__icon { width: 22px; height: 22px; }
.btn--sm .btn__icon .icon { width: 16px; height: 16px; }

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin-top: 40px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink-28);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}

.link-arrow .icon { width: 20px; height: 20px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { border-color: var(--jade); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--dark { color: var(--ink); }

.link-underline {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  padding: 0 0 3px;
  font-size: 14px;
  cursor: pointer;
}

/* ---------- shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--paper-70);
}

.eyebrow__rule { width: 34px; height: 1px; background: var(--mist); opacity: 0.6; }
.eyebrow__slash { color: var(--mist); padding-inline: 4px; }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.section-label__num {
  color: var(--jade);
  font-variant-numeric: tabular-nums;
}

.section-label--light { color: var(--paper-70); }
.section-label--light .section-label__num { color: var(--mist); }

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.22;
  margin-inline-start: 8px;
}

.section-title {
  font-size: clamp(2.55rem, 5.2vw, 4.7rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-top: 22px;
}

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--slate);
  max-width: 48ch;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px 4px;
  border: 1px solid var(--ink-28);
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

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

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(7px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.95s var(--ease-out),
    filter 0.9s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 80ms);
  will-change: opacity, transform;
}

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

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

.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--head-h) + clamp(32px, 7vh, 96px));
  padding-bottom: 30px;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 23, 25, 0.72) 0%, rgba(6, 23, 25, 0.46) 32%, rgba(6, 23, 25, 0.05) 62%, transparent 78%),
    linear-gradient(180deg, rgba(6, 23, 25, 0.18) 0%, transparent 30%, transparent 62%, rgba(6, 23, 25, 0.55) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 62ch) 1fr;
  align-items: center;
  flex: 1;
  width: 100%;
  position: relative;
}

.hero__copy { max-width: 780px; padding-block: clamp(20px, 4vh, 40px); }

.hero__scene-mobile {
  display: none;
  position: relative;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.hero__scene-mobile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.96;
}

.hero__eyebrow { margin-bottom: clamp(28px, 4vh, 44px); }

.hero__title {
  font-size: clamp(3.55rem, 7.2vw, 7.1rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--paper);
  text-wrap: balance;
}

.hero__title-line { display: block; }
.hero__title-dot { color: var(--mist); }

.hero__lead {
  max-width: 50ch;
  margin-top: clamp(26px, 3.6vh, 38px);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: rgba(245, 246, 239, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 4.2vh, 46px);
}

.hero__scene-label {
  position: absolute;
  right: 0;
  bottom: clamp(10px, 6vh, 70px);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--paper-70);
  max-width: 170px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.hero__scene-label.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hero__scene-label-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--mist);
  padding-top: 3px;
}

.hero__scene-label-text {
  font-size: 11px;
  letter-spacing: 0.13em;
  line-height: 1.7;
  text-transform: uppercase;
  border-left: 1px solid var(--paper-22);
  padding-left: 14px;
}

.hero__scene-label-hint {
  display: block;
  margin-top: 9px;
  color: var(--mist);
  opacity: 0.64;
  font-size: 8.5px;
  letter-spacing: 0.15em;
  line-height: 1.5;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}

.hero__scene-label-hint.is-hidden { opacity: 0; }

.hero__layers {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin-top: clamp(28px, 5vh, 56px);
}

.hero__layers::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gutter);
  right: var(--gutter);
  z-index: -1;
  border-top: 1px solid var(--paper-22);
  background: linear-gradient(180deg, rgba(6, 23, 25, 0) 0%, rgba(6, 23, 25, 0.32) 45%, rgba(6, 23, 25, 0.62) 100%);
  pointer-events: none;
}

.layer-chip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.4vw, 20px);
  padding: 20px clamp(18px, 2vw, 28px) 22px clamp(18px, 2vw, 28px);
  border-left: 1px solid var(--paper-14);
  transition: background-color 0.35s var(--ease);
}

.layer-chip:first-child {
  padding-left: 0;
  border-left: 0;
}

.layer-chip:hover,
.layer-chip:focus-visible {
  background: linear-gradient(180deg, var(--paper-08), transparent 70%);
}

.layer-chip__num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mist);
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}

.layer-chip__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.layer-chip__name {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.layer-chip__meta {
  font-size: 12px;
  line-height: 1.4;
  color: var(--paper-40);
  letter-spacing: 0.01em;
}

.layer-chip__icon {
  width: 18px;
  height: 18px;
  margin-inline-start: auto;
  color: var(--mist);
  opacity: 0.52;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.layer-chip:hover .layer-chip__icon,
.layer-chip:focus-visible .layer-chip__icon { opacity: 1; transform: translateX(2px); }

.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  margin-top: clamp(24px, 3.4vh, 36px);
}

.hero__foot-note {
  max-width: 64ch;
  padding-left: 16px;
  border-left: 1px solid rgba(184, 229, 212, 0.32);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--paper-60);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper-70);
  flex: none;
}

.scroll-cue__track {
  position: relative;
  width: 1px;
  height: 42px;
  background: var(--paper-22);
  overflow: hidden;
}

.scroll-cue__dot {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 14px;
  background: var(--mist);
  animation: scrollDot 2.1s var(--ease-in-out) infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(-16px); }
  55% { transform: translateY(42px); }
  100% { transform: translateY(42px); }
}

.hero__scrim { transition: opacity 0.8s var(--ease); }

/* ---------- interlude ---------- */

.interlude {
  position: relative;
  z-index: 2;
  height: clamp(200px, 40vh, 440px);
  display: grid;
  align-items: end;
  justify-items: start;
  padding-bottom: clamp(36px, 9vh, 84px);
  pointer-events: none;
}

.interlude__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  text-align: left;
  transition: color 0.8s;
}

.interlude__mark {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  color: rgba(245, 246, 239, 0.64);
  transition: color 0.8s;
}

.interlude.is-light .interlude__mark { color: var(--slate); }

.interlude__line {
  width: clamp(40px, 9vw, 150px);
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.interlude__text {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.interlude__note {
  color: rgba(245, 246, 239, 0.55);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  transition: color 0.8s;
}

.interlude.is-light .interlude__note { color: var(--slate); }

/* ---------- stack ---------- */

.js .stack__head,
.js .stack__body {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
}

.js .stack.is-revealed .stack__head,
.js .stack.is-revealed .stack__body {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .stack__head,
  .js .stack__body { opacity: 1; transform: none; }
}

.stack {
  position: relative;
  z-index: 3;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 0;
  transition: background-color 0.6s linear;
}

html.scene-live .stack { background: transparent; }

.stack__head {
  position: relative;
  z-index: 4;
  padding-top: clamp(30px, 6vh, 80px);
  padding-bottom: clamp(28px, 4vh, 52px);
  background: var(--paper);
}

.stack__head-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(30px, 6vw, 110px);
  align-items: end;
  margin-top: clamp(22px, 3vh, 34px);
}

/* On desktop the live scene sits to the right of the stack intro, so the intro
   gets its own left column and a soft paper veil keeps the copy legible. */
@media (min-width: 1201px) {
  html.scene-live .stack__head {
    background: transparent;
  }



  html.scene-live .stack__head-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: min(48%, 700px);
    gap: clamp(22px, 3.4vh, 38px);
  }

  html.scene-live .stack__head-aside {
    padding-bottom: 0;
    max-width: 46ch;
  }

  html.scene-live .stack__head .section-title {
    font-size: clamp(2.6rem, 4.1vw, 4.1rem);
  }

  html.scene-live .stack__hint { margin-top: 22px; }
}

.stack__head-aside { padding-bottom: 6px; }

.stack__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.8;
}

.stack__hint .icon { width: 16px; height: 16px; color: var(--jade); }

.stack__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: start;
  margin-top: clamp(20px, 4vh, 50px);
}

.stack__chapters { min-width: 0; }

.chapter {
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(40px, 8vh, 110px);
  border-top: 1px solid var(--ink-12);
}

.chapter:first-child { border-top: 0; }

.chapter__meta { display: flex; align-items: center; gap: 18px; }

.chapter__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

.chapter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink-18);
  border-radius: var(--radius);
  color: var(--jade);
  background: rgba(245, 246, 239, 0.35);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease);
}

.chapter.is-active .chapter__icon {
  background: var(--jade);
  border-color: var(--jade);
  color: var(--paper);
}

.chapter__title {
  margin-top: clamp(18px, 2.4vh, 26px);
  font-size: clamp(2.3rem, 3.9vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.chapter__promise {
  margin-top: 18px;
  max-width: 34ch;
  font-size: clamp(1.12rem, 1.4vw, 1.34rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--slate);
}

.chapter__proof {
  margin-top: clamp(28px, 4vh, 44px);
  max-width: 46ch;
  border-top: 1px solid var(--ink-12);
  padding-top: 18px;
}

.chapter__proof-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--jade);
}

.chapter__proof-text {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.chapter__list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.chapter__list li {
  display: flex;
  gap: 11px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate);
}

.chapter__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  flex: none;
  background: var(--jade);
  transform: rotate(45deg);
}

.chapter__frame {
  display: block;
  margin-top: 30px;
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.chapter__frame img { width: 100%; height: auto; }

.stack__railwrap { display: none; min-width: 0; align-self: stretch; }

.stack__railwrap-inner {
  position: sticky;
  top: calc(var(--head-h) + clamp(30px, 9vh, 100px));
  height: min(62vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.stage-caption {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: right;
  padding: 10px 14px;
  background: rgba(10, 33, 36, 0.52);
  border: 1px solid rgba(184, 229, 212, 0.16);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.stage-caption__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--mist);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.stage-caption__body { display: flex; flex-direction: column; gap: 4px; }

.stage-caption__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.stage-caption__state {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.85;
}

.layer-rail { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }

.layer-rail__item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(10, 33, 36, 0.78);
  border: 1px solid rgba(184, 229, 212, 0.24);
  border-radius: var(--radius);
  color: rgba(245, 246, 239, 0.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.layer-rail__item .layer-rail__num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.95;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.layer-rail__item:hover { color: var(--paper); border-color: rgba(184, 229, 212, 0.45); background: rgba(10, 33, 36, 0.92); }

.layer-rail__item.is-active {
  color: var(--paper);
  background: var(--jade);
  border-color: rgba(184, 229, 212, 0.7);
  box-shadow: inset 3px 0 0 var(--mist);
}

.layer-rail__item.is-active .layer-rail__num {
  color: var(--paper);
  opacity: 1;
  font-weight: 700;
}

/* ---------- diagonal cuts ---------- */

.section-cut {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--cut);
  z-index: 3;
  color: var(--jade);
  opacity: 0.45;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.section-cut--down { transform: scaleY(-1); }

/* ---------- sovereignty ---------- */

.sovereignty {
  position: relative;
  z-index: 4;
  background: var(--paper);
  color: var(--ink);
  margin-top: calc(var(--cut) * -1);
  padding-top: calc(var(--cut) + clamp(60px, 10vh, 130px));
  padding-bottom: clamp(70px, 12vh, 150px);
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}

.sovereignty__field {
  position: absolute;
  right: -8vw;
  top: clamp(40px, 12vh, 160px);
  width: min(54vw, 900px);
  height: auto;
  color: var(--jade);
  opacity: 0.09;
  pointer-events: none;
}

.sovereignty__inner { position: relative; z-index: 1; }

.sovereignty__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(30px, 6vw, 110px);
  align-items: end;
}

.sovereignty__head-aside { padding-bottom: 4px; }

.decisions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 40px);
  margin-top: clamp(50px, 8vh, 100px);
  border-top: 1px solid var(--ink-18);
  padding-top: clamp(22px, 3vh, 34px);
}

.decision { display: flex; flex-direction: column; }

.decision__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(30px, 4vh, 52px);
}

.decision__num {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

.decision__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--jade);
  border: 1px solid var(--ink-18);
  border-radius: var(--radius);
}

.decision__title {
  font-size: clamp(1.3rem, 1.7vw, 1.62rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.decision__text {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate);
}

.decision__owner {
  margin-top: auto;
  padding-top: 28px;
  font-size: 12.5px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.decision__owner span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.sovereignty__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(56px, 8vh, 100px);
  padding-top: clamp(26px, 3.4vh, 40px);
  border-top: 1px solid var(--ink-18);
}

.sovereignty__note p {
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
}

/* ---------- practice ---------- */

.practice {
  position: relative;
  z-index: 5;
  background: var(--mist);
  color: var(--ink);
  margin-top: calc(var(--cut) * -1);
  padding-top: calc(var(--cut) + clamp(60px, 10vh, 130px));
  padding-bottom: clamp(70px, 12vh, 150px);
  clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%);
}

.practice .section-cut {
  color: var(--ink);
  opacity: 0.28;
  top: 0;
}

.practice__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(30px, 6vw, 110px);
  align-items: end;
}

.practice__head-aside { padding-bottom: 4px; }

.practice__head .section-label { flex-wrap: wrap; }
.practice__head .tag { margin-inline-start: 4px; }

.practice .lede { color: rgba(16, 47, 51, 0.72); }

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(64px, 8vw, 128px) minmax(0, 1fr) clamp(64px, 8vw, 128px) minmax(0, 1fr);
  align-items: stretch;
  margin-top: clamp(46px, 7vh, 90px);
}

.workflow-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(16, 47, 51, 0.16);
  border-radius: var(--radius);
  padding: clamp(20px, 2vw, 28px);
  box-shadow: 0 22px 60px -32px rgba(12, 40, 43, 0.4);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.workflow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 80px -34px rgba(12, 40, 43, 0.45);
  border-color: rgba(16, 47, 51, 0.26);
}

.workflow-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-12);
}

.workflow-card__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink-18);
  border-radius: var(--radius);
  color: var(--jade);
}

.workflow-card__icon .icon { width: 20px; height: 20px; }

.workflow-card__layer {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.workflow-card__title {
  margin-top: 22px;
  font-size: clamp(1.24rem, 1.7vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.workflow-card__rows {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.workflow-card__rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
  border-top: 1px solid var(--ink-12);
}

.workflow-card__rows dt {
  font-size: 12px;
  color: var(--slate);
}

.workflow-card__rows dd {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

.workflow-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--jade);
}

.workflow-card__status .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  padding: 2px;
  border-radius: 50%;
  background: rgba(8, 106, 94, 0.1);
  box-sizing: content-box;
}

.workflow-connector {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-inline: 6px;
  text-align: center;
}

.workflow-connector__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(16, 47, 51, 0.55);
  white-space: nowrap;
}

.workflow-connector__line {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(16, 47, 51, 0.22);
  overflow: hidden;
}

.workflow-connector__spark {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 1px;
  background: var(--jade);
  transform: translateX(-110%);
  animation: connectorSpark 3.4s var(--ease-in-out) infinite;
}

.workflow-connector:nth-of-type(2) .workflow-connector__spark { animation-delay: 1.1s; }

@keyframes connectorSpark {
  0%, 15% { transform: translateX(-110%); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: translateX(340%); opacity: 1; }
  85%, 100% { transform: translateX(340%); opacity: 0; }
}

.practice__outcome {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: clamp(20px, 4vw, 70px);
  align-items: start;
  margin-top: clamp(46px, 6vh, 80px);
  padding-top: clamp(26px, 3.4vh, 40px);
  border-top: 1px solid rgba(16, 47, 51, 0.24);
}

.practice__outcome-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--jade);
  padding-top: 4px;
}

.practice__outcome-text {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 48ch;
}

.practice__outcome .link-arrow { margin-top: 0; justify-self: end; }
.practice__outcome .link-arrow .icon { width: 18px; height: 18px; }

.practice__note {
  margin-top: clamp(32px, 5vh, 60px);
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(16, 47, 51, 0.55);
  max-width: 76ch;
}

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

.contact {
  position: relative;
  z-index: 6;
  background: var(--ink);
  color: var(--paper);
  margin-top: calc(var(--cut) * -1);
  padding-top: calc(var(--cut) + clamp(60px, 10vh, 130px));
  padding-bottom: clamp(70px, 12vh, 150px);
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}

.contact .section-cut { color: var(--mist); opacity: 0.4; }

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.contact__copy { padding-top: 6px; }

.contact .section-title { color: var(--paper); margin-top: 24px; }

.contact .lede {
  color: rgba(245, 246, 239, 0.68);
  margin-top: 28px;
  max-width: 44ch;
}

.contact__alt {
  margin-top: clamp(40px, 6vh, 70px);
  padding-top: 26px;
  border-top: 1px solid var(--paper-14);
  max-width: 44ch;
}

.contact__alt-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--paper-40);
}

.contact__mail {
  display: inline-block;
  margin-top: 10px;
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--mist);
  border-bottom: 1px solid rgba(184, 229, 212, 0.4);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease);
}

.contact__mail:hover { border-color: var(--mist); }

.contact__alt-note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--paper-40);
}

.contact__panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 44px);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.65);
  position: relative;
}

.contact__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 246, 239, 0.25);
  border-radius: var(--radius);
  pointer-events: none;
}

.form { display: grid; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; }

.field__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--ink-18);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.field__input::placeholder { color: rgba(72, 99, 102, 0.62); }

.field__input:hover { border-color: var(--ink-28); }

.field__input:focus {
  outline: none;
  border-color: var(--jade);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(8, 106, 94, 0.13);
}

.field__input--area { min-height: 92px; resize: vertical; }

.field__input[aria-invalid="true"] {
  border-color: #94402f;
  box-shadow: 0 0 0 3px rgba(148, 64, 47, 0.12);
}

.field__error {
  font-size: 11.5px;
  line-height: 1.4;
  color: #8f3a2b;
}

.field--choice { border: 0; padding: 0; margin: 0; min-width: 0; }

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

.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--ink-18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.choice:hover { border-color: var(--ink-28); color: var(--ink); }

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--jade);
  background: rgba(8, 106, 94, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--jade);
}

.choice:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 5px;
  height: 9px;
  border-right: 1.5px solid var(--jade);
  border-bottom: 1.5px solid var(--jade);
  transform: rotate(45deg);
  pointer-events: none;
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--jade);
  outline-offset: 2px;
}

.field__hint {
  margin-left: 8px;
  color: var(--slate);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.7;
}

.form__note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--slate);
  opacity: 0.9;
}

.form__error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(150, 53, 45, 0.28);
  border-radius: var(--radius);
  background: rgba(150, 53, 45, 0.07);
  color: #7d2f27;
  font-size: 12px;
  line-height: 1.55;
}

.form__error[hidden] { display: none; }
.form__error a { text-decoration: underline; text-underline-offset: 2px; }

.form-sink {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form .btn { margin-top: 4px; }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  min-height: 320px;
  justify-content: center;
}

.form-success[hidden] { display: none; }

.form-success__mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(8, 106, 94, 0.12);
  color: var(--jade);
  margin-bottom: 6px;
}

.form-success__mark .icon { width: 26px; height: 26px; stroke-width: 2; }

.form-success__title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.form-success__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 44ch;
}

.form-success__text a { color: var(--jade); border-bottom: 1px solid rgba(8, 106, 94, 0.4); }

.form-success .link-underline { color: var(--jade); margin-top: 8px; }

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

.site-foot {
  position: relative;
  z-index: 7;
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(60px, 9vh, 110px);
  padding-bottom: 34px;
  overflow: hidden;
}

.site-foot__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 100px);
  padding-bottom: clamp(40px, 6vh, 70px);
  border-bottom: 1px solid var(--paper-14);
}

.site-foot__logo { width: clamp(190px, 20vw, 250px); height: auto; }

.site-foot__tagline {
  margin-top: 20px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper-40);
}

.site-foot__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 50px);
}

.site-foot__col { display: flex; flex-direction: column; gap: 12px; }

.site-foot__title {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--paper-40);
  margin-bottom: 4px;
}

.site-foot__col a {
  font-size: 14px;
  color: rgba(245, 246, 239, 0.8);
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.site-foot__col a:hover { color: var(--mist); border-color: rgba(184, 229, 212, 0.45); }

.site-foot__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  font-size: 11.5px;
  color: var(--paper-40);
}

.site-foot__note { max-width: 46ch; text-align: center; }

.site-foot__top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper-70);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.site-foot__top-link .icon { width: 14px; height: 14px; transform: rotate(180deg); }
.site-foot__top-link:hover { color: var(--mist); }

.site-foot__mark {
  margin-top: clamp(40px, 8vh, 90px);
  margin-bottom: -6vw;
  opacity: 0.07;
  pointer-events: none;
}

.site-foot__mark img { width: 100%; height: auto; }

/* ---------- scene modes ---------- */

@supports not (display: grid) {
  html.scene-live .stack { background: var(--paper); }
}

@media (min-width: 1025px) {
  html.scene-live .stack__body {
    grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr);
  }
  html.scene-live .stack__railwrap { display: block; }
  html.scene-live .chapter__frame { display: none; }
}

@media (max-width: 1024px) {
  html.scene-live .stack { background: var(--paper); }
  html.scene-live .stage { display: block; }
}

html.reduced-motion .stage { display: block; }
html.reduced-motion .stage #stage-canvas { display: none; }
html.reduced-motion .stage__poster { opacity: 1; }

html:not(.js) .stage__poster img { opacity: 1; }

[hidden] { display: none !important; }

/* Stable capture / review mode: no reveal or micro-motion. */
html.still-mode *,
html.still-mode *::before,
html.still-mode *::after {
  animation: none !important;
  transition: none !important;
}

html.still-mode .reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* ---------- static capture mode (posters, storyboard) ---------- */

html.shot-mode,
html.shot-mode body { background: var(--ink); }

html.shot-mode .site-head,
html.shot-mode main,
html.shot-mode .site-foot,
html.shot-mode .mobile-menu,
html.shot-mode .grain,
html.shot-mode .stage__vignette { display: none !important; }

html.shot-mode .stage {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html.shot-mode .stage__poster { display: none !important; }
html.shot-mode #stage-canvas { opacity: 1 !important; }

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

@media (max-width: 1240px) {
  .site-nav { gap: 22px; }
  .site-nav__num { display: none; }
  .decisions { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 46px; }
  .decision__top { margin-bottom: 26px; }
  .hero__title { font-size: clamp(3.4rem, 7.6vw, 6rem); }
}

@media (max-width: 1100px) {
  :root { --head-h: 78px; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__scene-label { display: none; }
  .hero__copy { max-width: 640px; }

  .contact__inner { grid-template-columns: minmax(0, 1fr); }
  .contact__panel { max-width: 620px; justify-self: start; }
}

@media (max-width: 1024px) {
  /* Poster mode for the stack: the hero keeps the live scene. */
  .hero__scrim { background: linear-gradient(180deg, rgba(6, 23, 25, 0.35) 0%, rgba(6, 23, 25, 0.08) 30%, rgba(6, 23, 25, 0.86) 100%); }
  .chapter { min-height: 0; justify-content: flex-start; padding-block: clamp(46px, 8vh, 80px); }
  .stack__chapters { display: grid; gap: clamp(40px, 7vh, 80px); }

  .sovereignty__field { width: 72vw; opacity: 0.07; }
  .sovereignty__head,
  .practice__head { grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
  .sovereignty__head-aside,
  .practice__head-aside { padding-bottom: 0; }

  .workflow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .workflow-connector {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 2px 0;
  }
  .workflow-connector__label { white-space: normal; text-align: left; }
  .workflow-connector__line { width: 1px; height: 22px; margin-inline-start: 22px; }
  .workflow-connector__spark { width: 1px; height: 40%; top: -60%; left: 0; animation: connectorSparkV 3.4s var(--ease-in-out) infinite; }

  @keyframes connectorSparkV {
    0%, 15% { transform: translateY(-110%); opacity: 0; }
    30% { opacity: 1; }
    70% { transform: translateY(260%); opacity: 1; }
    85%, 100% { transform: translateY(260%); opacity: 0; }
  }

  .workflow-card__status { margin-top: 8px; }

  .practice__outcome { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .practice__outcome .link-arrow { justify-self: start; margin-top: 6px; }

  .site-foot__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-head__cta { display: none; }
  .site-head__toggle { display: inline-flex; margin-inline-start: auto; }
  .site-head__inner { justify-content: space-between; }

  .hero__title { font-size: clamp(3.1rem, 12.5vw, 5.4rem); }
  .hero__layers { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; }
  .hero__layers::before { display: none; }
  .layer-chip { border-right: 0; border-left: 0; border-top: 1px solid var(--paper-14); padding: 15px 0; align-items: center; }
  .layer-chip:last-child { border-bottom: 1px solid var(--paper-14); }
  .layer-chip__meta { display: none; }
  .layer-chip__icon { opacity: 0.6; transform: none; }
  .hero__foot-note { display: none; }
  .hero__foot { justify-content: flex-end; }

  .sovereignty__note { flex-direction: column; align-items: flex-start; }
  .decisions { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 0; padding-top: 0; }
  .decision { padding-block: 28px; border-top: 1px solid var(--ink-18); }
  .decision__top { margin-bottom: 18px; }
  .decision__owner { padding-top: 18px; }

  .practice__head .section-label { gap: 10px; }

  .site-foot__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-foot__note { text-align: left; }

  .contact__panel { padding: 22px 18px; }
}

@media (max-width: 620px) {
  :root { --head-h: 72px; --gutter: 22px; --cut: 56px; }

  .hero { padding-top: calc(var(--head-h) + 20px); padding-bottom: 18px; }
  .hero__eyebrow { margin-bottom: 22px; }
  .hero__lead { margin-top: 22px; font-size: 15.5px; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { width: 100%; }
  .hero__layers { margin-top: 26px; }
  .hero__foot { margin-top: 20px; }

  .scroll-cue span:first-child { display: none; }

  .section-title { font-size: clamp(2.15rem, 9vw, 3rem); }
  .lede { font-size: 15.5px; }

  .sovereignty,
  .practice,
  .contact { padding-top: calc(var(--cut) + 48px); padding-bottom: 60px; }

  .chapter { padding-block: 40px; }
  .chapter__title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .chapter__promise { font-size: 16.5px; }
  .chapter__proof-text { font-size: 16px; }
  .chapter__frame { margin-top: 24px; }
  .link-arrow { margin-top: 28px; }

  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .contact__panel { padding: 20px 16px; }
  .form { gap: 15px; }

  .site-foot__nav { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .site-foot__bottom { gap: 12px; }
  .site-foot__mark { margin-bottom: -4vw; }

  .mobile-menu__nav a { font-size: clamp(26px, 8vw, 34px); }
}

@media (max-height: 760px) and (min-width: 1201px) {
  .hero { padding-top: calc(var(--head-h) + 20px); }
  .hero__title { font-size: clamp(3.2rem, 6vw, 5.6rem); }
  .hero__lead { margin-top: 20px; }
  .hero__actions { margin-top: 24px; }
  .hero__layers { margin-top: 22px; }
  .layer-chip { padding-block: 14px; }
  .hero__foot { margin-top: 16px; }
  .chapter { min-height: auto; padding-block: 60px; }
}

/* Tablets and small laptops: poster hero with a text-safe scrim. */
@media (max-width: 1200px) {
  .stage { display: none; }

  .hero {
    background: var(--ink);
    background-image: url("../img/poster-hero.webp");
    background-size: cover;
    background-position: 68% 44%;
    min-height: 100svh;
  }

  .hero__scrim {
    display: block;
    background:
      linear-gradient(90deg, rgba(6, 23, 25, 0.9) 0%, rgba(6, 23, 25, 0.62) 42%, rgba(6, 23, 25, 0.12) 78%),
      linear-gradient(180deg, rgba(6, 23, 25, 0.2) 0%, transparent 28%, rgba(6, 23, 25, 0.72) 100%);
  }

  .hero__scene-mobile { display: none; }
}

/* Phones: a shorter volume view before the message. */
@media (max-width: 760px) {
  .hero {
    background: var(--ink);
    background-image: none;
    padding-top: calc(var(--head-h) + 8px);
    padding-bottom: 22px;
    justify-content: flex-start;
  }

  .hero__scene-mobile {
    display: block;
    height: min(35svh, 330px);
    min-height: 200px;
    margin-top: 4px;
    margin-bottom: 4px;
  }

  .hero__scene-mobile img { object-position: center 62%; }

  .hero__scrim { display: none; }
  .hero__inner { padding-top: 2px; }
  .hero__copy { padding-block: 4px 0; max-width: none; }
  .hero__eyebrow { margin-bottom: 18px; }
  .hero__foot { display: none; }
}

/* Poster variants for the stack when the live scene is not available. */
@media (max-width: 1024px) {
  .chapter { display: flex; flex-direction: column; }
  .chapter__frame { order: -1; margin: 0 0 26px; }
  .chapter__frame img { aspect-ratio: 3 / 2; object-fit: cover; }
}

/* Static fallbacks on wide screens: poster hero, static layer frames. */
@media (min-width: 1201px) {
  html.reduced-motion .stage,
  html.scene-fallback .stage { display: none !important; }

  html.reduced-motion .hero__scene-label,
  html.scene-fallback .hero__scene-label { display: none; }

  html.reduced-motion .hero,
  html.scene-fallback .hero {
    background: var(--ink) url("../img/poster-hero.webp") no-repeat 68% 44% / cover;
  }

  html.reduced-motion .hero__scrim,
  html.scene-fallback .hero__scrim {
    display: block;
    background:
      linear-gradient(90deg, rgba(6, 23, 25, 0.86) 0%, rgba(6, 23, 25, 0.55) 42%, rgba(6, 23, 25, 0.1) 78%),
      linear-gradient(180deg, rgba(6, 23, 25, 0.18) 0%, transparent 28%, rgba(6, 23, 25, 0.6) 100%);
  }

  html.reduced-motion .chapter__frame,
  html.scene-fallback .chapter__frame { order: -1; margin-bottom: 26px; }

  html.reduced-motion .stack__railwrap,
  html.scene-fallback .stack__railwrap { display: none; }

  html.reduced-motion .stack__body,
  html.scene-fallback .stack__body { grid-template-columns: minmax(0, 1fr); }

  html.reduced-motion .chapter,
  html.scene-fallback .chapter { min-height: 0; justify-content: flex-start; border-top: 0; padding-block: 60px; }
}

/* ---------- reference portfolio ---------- */

.chapter__products {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-12);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--slate);
}

.chapter__products > span:first-child {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
}

.chapter__product-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 8px;
}

.product-sep {
  color: var(--slate);
  opacity: 0.55;
}

.product-link {
  color: inherit;
  border-bottom: 1px solid rgba(8, 106, 94, 0.28);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.product-link:hover {
  color: var(--jade);
  border-color: var(--jade);
}

.product-link::after {
  content: "↗";
  font-size: 0.7em;
  margin-inline-start: 0.22em;
  opacity: 0.55;
  font-weight: 500;
}

.workflow-card__product {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
}

.workflow-card__product a {
  color: var(--jade);
  border-bottom-color: rgba(8, 106, 94, 0.4);
}

.portfolio {
  position: relative;
  z-index: 2;
  margin-top: clamp(40px, 8vh, 90px);
  padding-block: clamp(64px, 10vh, 120px) calc(var(--cut) + clamp(90px, 14vh, 170px));
  background: var(--paper);
  border-top: 1px solid var(--ink-12);
}

.portfolio__head-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(30px, 6vw, 110px);
  align-items: end;
  margin-top: clamp(22px, 3vh, 34px);
}

.portfolio__head-aside { padding-bottom: 4px; }

.portfolio__head-note {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(16, 47, 51, 0.55);
}

.families {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4.5vw, 56px);
  margin-top: clamp(44px, 7vh, 80px);
}

.family {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 2fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: stretch;
}

.family + .family {
  padding-top: clamp(30px, 4.5vw, 56px);
  border-top: 1px solid var(--ink-12);
}

.family__aside {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.family__head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-12);
}

.family__num {
  padding-top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

.family__num--all {
  padding-top: 5px;
  color: var(--jade);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.family__tag {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 7px;
  border: 1px solid rgba(8, 106, 94, 0.3);
  border-radius: 999px;
  color: var(--jade);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.family__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink-18);
  border-radius: var(--radius);
  color: var(--jade);
}

.family__icon .icon { width: 21px; height: 21px; }

.family__heading { min-width: 0; }

.family__title {
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.family__promise {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--jade);
}

.family__count {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
  padding: 6px 9px;
  border: 1px solid var(--ink-18);
  border-radius: 20px;
  color: var(--slate);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.family__intro {
  margin-top: 18px;
  max-width: 40ch;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--slate);
}

.family__cta {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 26px;
  font-size: 13.5px;
}

.family__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
  border: 1px solid var(--ink-12);
  border-top: 2px solid var(--jade);
  background: #F8F9F3;
}

.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2vw, 28px);
  border-left: 1px solid var(--ink-12);
}

.family__products > .product:first-child { border-left: 0; }

.product__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 10px;
}

.product__name {
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.product__site {
  color: var(--ink);
  border-bottom: 1px solid rgba(8, 106, 94, 0.32);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.product__site::after {
  content: "↗";
  margin-inline-start: 0.22em;
  font-size: 0.7em;
  opacity: 0.55;
  font-weight: 500;
}

.product__site:hover {
  color: var(--jade);
  border-color: var(--jade);
}

.product__badge {
  flex: 0 0 auto;
  color: var(--jade);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: right;
}

.product__tagline {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--jade);
}

.product__desc {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--slate);
}

.product__points {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.product__points li {
  position: relative;
  padding-left: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--slate);
}

.product__points li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--jade);
  transform: rotate(45deg);
}

.family-note-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2vw, 28px);
  border-left: 1px solid var(--ink-12);
  background: linear-gradient(160deg, rgba(8, 106, 94, 0.085), rgba(8, 106, 94, 0.02));
}

.family-note-card__label {
  color: var(--jade);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.family-note-card__title {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.family-note-card__text {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--slate);
}

.family-note-card__points {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 22px 0 0;
  list-style: none;
}

.family-note-card__points li {
  position: relative;
  padding-left: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--slate);
}

.family-note-card__points li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--jade);
  transform: rotate(45deg);
}

.family--operations .family__products {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.portfolio__note {
  margin-top: clamp(30px, 4vh, 44px);
  max-width: 82ch;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(16, 47, 51, 0.55);
}

@media (max-width: 1180px) {
  .portfolio__head-row { grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
  .portfolio__head-aside { padding-bottom: 0; }
  .family { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .family__aside { min-height: 0; }
  .family__cta { margin-top: 0; padding-top: 20px; }
  .family__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family__products > *:nth-child(odd) { border-left: 0; }
  .family__products > *:nth-child(n + 3) { border-top: 1px solid var(--ink-12); }
  .family--operations .family__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .portfolio { margin-top: 24px; padding-block: 52px calc(var(--cut) + 70px); }
  .families { margin-top: 34px; gap: 26px; }
  .family { gap: 20px; }
  .family + .family { padding-top: 26px; }
  .family__head { gap: 10px; }
  .family__title { font-size: 1.55rem; }
  .family__count { margin-top: 4px; }
  .family__intro { margin-top: 16px; font-size: 13px; max-width: none; }
  .family__products { grid-template-columns: minmax(0, 1fr); }
  .family__products > * { border-left: 0; border-top: 1px solid var(--ink-12); }
  .family__products > *:first-child { border-top: 0; }
  .family--operations .family__products { grid-template-columns: minmax(0, 1fr); }
  .product { padding: 20px; }
  .product__desc { font-size: 12.5px; }
  .portfolio__note { font-size: 11px; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .scroll-cue__dot, .workflow-connector__spark { display: none; }
  .chapter__frame { display: block; }
  .stack__railwrap { display: none; }
  .stack__body { grid-template-columns: minmax(0, 1fr); }
  .stack__chapters { display: grid; gap: 40px; }
  .chapter { min-height: 0; border-top: 0; }
  .workflow-connector__line { background: rgba(16, 47, 51, 0.22); }
}

@media print {
  .stage, .grain, .site-head, .mobile-menu, .hero__scrim, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .stack, .sovereignty, .practice, .contact, .site-foot { background: #fff; color: #000; clip-path: none; margin: 0; }
  .section-title, .hero__title { color: #000; }
}


/* ---------- product motion vignettes ---------- */

.product__motion {
  position: relative;
  height: 128px;
  margin: 16px 0 12px;
  overflow: hidden;
  border: 1px solid rgba(184, 229, 212, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 150% at 82% 0%, rgba(79, 220, 192, 0.16), transparent 56%),
    linear-gradient(160deg, #0C2A2D 0%, #102F33 55%, #0A2326 100%);
}

.product__motion::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 229, 212, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 229, 212, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.65;
  pointer-events: none;
}

.product__motion::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 246, 239, 0.035), transparent 30%, rgba(4, 15, 16, 0.3));
  pointer-events: none;
}

.product__motion-label {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 13px;
  color: var(--mist);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.68;
}

.product__motion-live {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jadeBright);
  box-shadow: 0 0 10px rgba(79, 220, 192, 0.8);
  animation: pmLive 2.4s ease-in-out infinite;
}

.product__motion-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.product__motion-art .pm-line {
  fill: none;
  stroke: rgba(184, 229, 212, 0.34);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product__motion-art .pm-soft {
  fill: rgba(184, 229, 212, 0.055);
  stroke: rgba(184, 229, 212, 0.18);
  stroke-width: 1;
}

.product__motion-art .pm-fill {
  fill: rgba(79, 220, 192, 0.28);
}

.product__motion-art .pm-jade {
  fill: none;
  stroke: #4FDCC0;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product__motion-art .pm-dot { fill: #9FE8D2; }

.product__motion-art .pm-code {
  fill: rgba(184, 229, 212, 0.66);
  font-family: Inter, sans-serif;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.pm-dash {
  stroke-dasharray: 4 6;
  animation: pmDash 2.2s linear infinite;
}

.pm-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pmPulse 2.6s ease-in-out infinite;
}

.pm-spin {
  transform-box: view-box;
  transform-origin: 160px 64px;
  animation: pmSpin 20s linear infinite;
}

.pm-bar,
.pm-wave {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: pmBar 2.8s ease-in-out infinite;
}

.pm-wave { animation-name: pmWave; }

.product__motion-art .pm-wave rect { fill: rgba(79, 220, 192, 0.38); }

.pm-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: pmNode 2.4s ease-in-out infinite;
}

.pm-packet {
  opacity: 0;
  animation: pmPacketShort 2.8s linear infinite;
}

.product__motion[data-motion="radon"] .pm-packet,
.product__motion[data-motion="dpo"] .pm-packet {
  animation-name: pmPacketLong;
}

.pm-typing {
  animation: pmTyping 1.2s ease-in-out infinite;
}

.pm-typing:nth-child(2) { animation-delay: 0.15s; }
.pm-typing:nth-child(3) { animation-delay: 0.3s; }

@keyframes pmLive {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes pmDash {
  to { stroke-dashoffset: -20; }
}

@keyframes pmPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes pmSpin {
  to { transform: rotate(360deg); }
}

@keyframes pmBar {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

@keyframes pmWave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

@keyframes pmNode {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes pmPacketShort {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 0.9; }
  82% { opacity: 0.9; }
  100% { transform: translateX(132px); opacity: 0; }
}

@keyframes pmPacketLong {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 0.9; }
  82% { opacity: 0.9; }
  100% { transform: translateX(244px); opacity: 0; }
}

@keyframes pmTyping {
  0%, 100% { opacity: 0.26; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 1180px) {
  .product__motion { height: 150px; }
}

@media (max-width: 760px) {
  .product__motion { height: 142px; margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .product__motion *,
  .product__motion::before,
  .product__motion::after { animation: none !important; }
  .product__motion .pm-packet { opacity: 0.7; }
}


/* ---------- page-load sequence ---------- */

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  overflow: hidden;
  background: #0A2225;
  color: var(--paper);
}

html.is-loading .page-loader { display: block; }

.page-loader[hidden] { display: none !important; }

.page-loader__bands,
.page-loader__glow,
.page-loader__inner {
  position: absolute;
  inset: 0;
}

.page-loader__band {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(100% / 3);
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(184, 229, 212, 0.045) 80px),
    linear-gradient(180deg, #0A2225 0%, #0B2529 58%, #081D20 100%);
  transform: translateY(0);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
  will-change: transform;
}

.page-loader__band::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(184, 229, 212, 0.12);
}

.page-loader__band:nth-child(1) { top: 0; }
.page-loader__band:nth-child(2) { top: calc(100% / 3); }
.page-loader__band:nth-child(3) { top: calc(200% / 3); }

.page-loader__band:nth-child(2) {
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(184, 229, 212, 0.04) 80px),
    linear-gradient(180deg, #0B2529 0%, #0C282B 58%, #0A2225 100%);
}

.page-loader__band:nth-child(3) {
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(184, 229, 212, 0.04) 80px),
    linear-gradient(180deg, #0C282B 0%, #0B2529 58%, #102F33 100%);
}

.page-loader__glow {
  z-index: 1;
  background:
    radial-gradient(46% 36% at 50% 50%, rgba(184, 229, 212, 0.1), transparent 72%),
    radial-gradient(22% 18% at 50% 50%, rgba(8, 106, 94, 0.18), transparent 100%);
  pointer-events: none;
}

.page-loader__inner {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vh, 26px);
  padding: 28px;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-loader__logo {
  display: block;
  width: clamp(190px, 18vw, 250px);
  height: auto;
  clip-path: inset(0 100% 0 0);
  animation: loaderLogoIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.page-loader__line {
  display: block;
  width: clamp(118px, 14vw, 178px);
  height: 1px;
  overflow: hidden;
  background: rgba(245, 246, 239, 0.16);
}

.page-loader__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--mist);
  transform: scaleX(0);
  transform-origin: left center;
  animation: loaderLineIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.page-loader__note {
  color: var(--mist);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: 0;
  animation: loaderNoteIn 1.1s ease 0.8s forwards;
}

.page-loader.is-leaving .page-loader__inner {
  opacity: 0;
  transform: translateY(-6px);
}

.page-loader.is-leaving .page-loader__band { opacity: 0; }

.page-loader.is-leaving .page-loader__band:nth-child(1) {
  transform: translateY(-102%);
  transition-delay: 0.2s;
}

.page-loader.is-leaving .page-loader__band:nth-child(2) {
  transform: translateY(102%);
  transition-delay: 0.06s;
}

.page-loader.is-leaving .page-loader__band:nth-child(3) {
  transform: translateY(-102%);
  transition-delay: 0.4s;
}

.page-loader__morph { display: block; }

/* Hand-off: the loader signature flies into the header mark while the page
   settles in behind the lifting bands. */
.page-morphing .hero__copy,
.page-morphing .hero__layers,
.page-morphing .hero__foot {
  animation: pageMorphIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-morphing .site-nav,
.page-morphing .site-head__cta {
  animation: headerMorphIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pageMorphIn {
  from { opacity: 0; transform: translateY(6px) scale(0.998); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes headerMorphIn {
  from { opacity: 0.2; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

@keyframes loaderLogoIn {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes loaderLineIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes loaderNoteIn {
  from { opacity: 0; letter-spacing: 0.12em; }
  to { opacity: 0.62; letter-spacing: 0.2em; }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader { display: none !important; }
  .page-loader__logo,
  .page-loader__line span,
  .page-loader__note { animation: none !important; }
  .page-morphing .hero__copy,
  .page-morphing .hero__layers,
  .page-morphing .hero__foot,
  .page-morphing .site-nav,
  .page-morphing .site-head__cta { animation: none !important; }
}

@media (max-width: 760px) {
  .page-loader__logo { width: 190px; }
  .page-loader__inner { gap: 18px; }
}
