/* D1 Capital typography: Unbounded for character, Inter for reading,
   Roboto Mono for metadata and numeric labels. */
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 300; src: url(/assets/fonts/unbounded-cyrillic-300.woff2) format("woff2"); unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/unbounded-cyrillic-400.woff2) format("woff2"); unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/fonts/unbounded-cyrillic-500.woff2) format("woff2"); unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 300; src: url(/assets/fonts/unbounded-latin-300.woff2) format("woff2"); unicode-range: U+0000-024F, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/unbounded-latin-400.woff2) format("woff2"); unicode-range: U+0000-024F, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/fonts/unbounded-latin-500.woff2) format("woff2"); unicode-range: U+0000-024F, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 300; src: url(/assets/fonts/inter-cyrillic-300.woff2) format("woff2"); unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/inter-cyrillic-400.woff2) format("woff2"); unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/fonts/inter-cyrillic-500.woff2) format("woff2"); unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 300; src: url(/assets/fonts/inter-latin-300.woff2) format("woff2"); unicode-range: U+0000-024F, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/inter-latin-400.woff2) format("woff2"); unicode-range: U+0000-024F, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/fonts/inter-latin-500.woff2) format("woff2"); unicode-range: U+0000-024F, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/roboto-mono-cyrillic-400.woff2) format("woff2"); unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Roboto Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/roboto-mono-latin-400.woff2) format("woff2"); unicode-range: U+0000-024F, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --paper: #ffffff;
  --mineral: #f1f5fd;
  --plum: #191919;
  --ink: #191919;
  --ink-2: #5e5e5e;
  --accent: #5eaaeb;
  --accent-dark: #4781b3;
  --accent-ink: #356c99;
  --accent-soft: #b9d7f9;
  --surface: #f8f8f8;
  --rule: rgba(25, 25, 25, 0.16);
  --rule-soft: rgba(25, 25, 25, 0.08);
  --accent-wash: rgba(94, 170, 235, 0.16);
  --warm: #b9d7f9;
  --warm-wash: rgba(185, 215, 249, 0.34);
  --font-display: "Unbounded", Arial, sans-serif;
  --font-text: "Inter", Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;
  --fs-display: clamp(2.35rem, 1.35rem + 3vw, 4.1rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.1vw, 3.35rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem);
  --fs-lead: clamp(1.15rem, 1.02rem + 0.52vw, 1.42rem);
  --fs-body: clamp(1rem, 0.975rem + 0.15vw, 1.125rem);
  --fs-small: clamp(0.9rem, 0.875rem + 0.12vw, 1rem);
  --fs-cap: 0.76rem;
  --gutter: clamp(16px, 4.2vw, 80px);
  --measure: 68ch;
  --radius: 32px;
  --radius-s: 12px;
  --scene-pad: clamp(64px, 8vw, 120px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}
*,
:after,
:before {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  font-size-adjust: from-font;
  font-synthesis: none;
  font-kerning: normal;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
figure,
h1,
h2,
h3,
ol,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--accent-wash);
}
:focus:not(:focus-visible) {
  outline: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: var(--radius-s);
  font-size: var(--fs-small);
  transform: translateY(calc(-100% - 24px));
  transition: none;
}
.skip-link:focus-visible {
  transform: none;
}
.nojs {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
}
.nojs p {
  margin-top: 20px;
}
.nojs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 24px 18px 0 0;
}
.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.display {
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.022em;
  font-weight: 600;
  text-wrap: balance;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.016em;
  font-weight: 600;
  text-wrap: balance;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.16;
  letter-spacing: -0.008em;
  font-weight: 600;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.38;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 34ch;
  text-wrap: pretty;
}
.body {
  max-width: var(--measure);
  color: var(--ink);
  text-wrap: pretty;
}
.body + .body {
  margin-top: 1.05em;
}
.body--muted {
  color: var(--ink-2);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 500;
}
.caption {
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.accent {
  color: var(--accent);
}
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-line: var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  min-width: 44px;
  padding: 12px 26px;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: -0.006em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.32s var(--ease),
    color 0.32s var(--ease),
    border-color 0.32s var(--ease),
    transform 0.32s var(--ease);
}
.btn--primary {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-line: var(--ink);
}
.btn--primary:hover {
  --btn-bg: var(--accent);
  --btn-line: var(--accent);
}
.btn--ghost:hover {
  --btn-line: var(--accent);
  --btn-fg: var(--accent);
}
.btn:active {
  transform: translateY(1px);
}
.btn__arrow {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.4px solid currentColor;
  border-top: 1.4px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.32s var(--ease);
}
.btn:hover .btn__arrow {
  transform: rotate(45deg) translate(2px, -2px);
}
.rule {
  height: 1px;
  background: var(--rule-soft);
  border: 0;
  margin: 0;
}
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  :after,
  :before {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #f7f4f8e0;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.32s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--rule-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}
.nav__name {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  padding: 11px 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.nav__link {
  font-size: var(--fs-small);
  color: var(--ink-2);
  text-decoration: none;
  padding: 11px 2px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.28s var(--ease);
}
.nav__link:hover {
  color: var(--ink);
}
.nav__tg {
  min-height: 44px;
  padding: 10px 20px;
  font-size: var(--fs-small);
}
@media (max-width: 720px) {
  .nav__links .nav__link {
    display: none;
  }
}
.scene {
  padding-block: var(--scene-pad);
  scroll-margin-top: 84px;
}
.scene--hero {
  padding-top: clamp(30px, 5vw, 62px);
}
.scene--hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.scene--mineral {
  background: var(--mineral);
}
.scene--plum {
  --ink: #f7f4f8;
  --ink-2: #c9c0cc;
  --accent: #dac8e6;
  --accent-ink: #dac8e6;
  --surface: #342d39;
  --rule: rgba(247, 244, 248, 0.22);
  --rule-soft: rgba(247, 244, 248, 0.12);
  --accent-wash: rgba(218, 200, 230, 0.16);
  background: var(--plum);
  color: var(--ink);
}
.scene--plum .btn--primary {
  --btn-bg: #f7f4f8;
  --btn-fg: #28212d;
  --btn-line: #f7f4f8;
}
.scene--plum .btn--primary:hover {
  --btn-bg: #dac8e6;
  --btn-line: #dac8e6;
}
.scene + .scene {
  border-top: 1px solid var(--rule-soft);
}
.scene__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1080px) {
  .scene__grid {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: clamp(28px, 3.4vw, 60px);
  }
}
.mark {
  display: none;
}
@media (min-width: 1080px) {
  .mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 8px;
  }
  .mark__num {
    font-family: var(--font-mono);
    font-size: var(--fs-cap);
    letter-spacing: 0.1em;
    color: var(--ink-2);
  }
  .mark__line {
    flex: 1;
    width: 1px;
    background: var(--rule);
  }
  .mark--last .mark__line {
    background: var(--rule);
    opacity: 0.45;
  }
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(34px, 5vw, 56px);
  align-items: end;
}
@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    column-gap: clamp(36px, 4.5vw, 76px);
  }
}
.hero__id {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: clamp(22px, 3.4vw, 40px);
}
.hero__id-name {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.018em;
}
.hero__id-role {
  color: var(--ink-2);
  font-size: var(--fs-small);
}
.hero__title {
  margin-bottom: clamp(20px, 2.6vw, 30px);
  max-width: 20ch;
}
@media (max-width: 999px) {
  .hero__title {
    max-width: 22ch;
  }
}
.hero__lead {
  margin-bottom: 18px;
}
.hero__context {
  color: var(--ink-2);
  font-size: var(--fs-small);
  max-width: 40ch;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  margin-bottom: clamp(28px, 3.6vw, 40px);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.portrait {
  position: relative;
  margin: 0;
}
.portrait__frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mineral);
}
@media (min-width: 1000px) {
  .portrait__frame {
    aspect-ratio: 3/4;
  }
}
.portrait__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(0.94) contrast(1.02);
}
.portrait__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
}
.portrait__placeholder:before {
  content: "";
  position: absolute;
  left: 22px;
  top: 22px;
  bottom: 96px;
  width: 1px;
  background: var(--rule);
  opacity: 0.45;
}
.portrait__placeholder-name {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.018em;
}
.portrait__caption {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--ink-2);
}
.portrait__caption:before {
  content: "";
  flex: none;
  width: 18px;
  height: 1px;
  background: var(--warm);
  transform: translateY(-4px);
}
.facts {
  margin-top: clamp(34px, 4vw, 56px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 14px;
}
@media (min-width: 900px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
}
.facts__item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: var(--fs-small);
  color: var(--ink-2);
  line-height: 1.4;
}
@media (min-width: 900px) {
  .facts__item {
    display: block;
    padding-right: clamp(16px, 2vw, 36px);
    border-right: 1px solid var(--rule-soft);
  }
  .facts__item:first-child {
    padding-left: 0;
  }
  .facts__item + .facts__item {
    padding-left: clamp(16px, 2vw, 36px);
  }
  .facts__item:last-child {
    border-right: 0;
    padding-right: 0;
  }
}
.facts__value {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.014em;
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.22rem);
  white-space: nowrap;
}
@media (max-width: 899px) {
  .facts__item:before {
    content: "";
    flex: none;
    width: 14px;
    height: 1px;
    background: var(--warm);
    transform: translateY(-5px);
  }
}
.facts__label {
  display: block;
}
@media (min-width: 900px) {
  .facts__label {
    margin-top: 4px;
  }
}
.diag__head {
  max-width: 22ch;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.diag__cols {
  display: grid;
  gap: clamp(30px, 4vw, 58px);
}
@media (min-width: 900px) {
  .diag__cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(40px, 5vw, 90px);
  }
}
.diag__final {
  margin-top: clamp(34px, 4vw, 54px);
  padding-top: clamp(22px, 2.4vw, 30px);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-lead);
  line-height: 1.42;
  letter-spacing: -0.014em;
  max-width: 30ch;
}
.trace {
  margin-top: clamp(34px, 4vw, 50px);
}
.trace__svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.trace__legend {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
@media (min-width: 760px) {
  .trace__legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 40px);
  }
}
.trace__legend-item {
  display: grid;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
  color: var(--ink-2);
  line-height: 1.45;
}
.trace__legend-key {
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.trace__legend-item--result .trace__legend-key {
  color: var(--accent);
}
.draw {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  transition: stroke-dashoffset 0.78s var(--ease);
  transition-delay: var(--draw-delay, 0ms);
}
.is-in .draw {
  stroke-dashoffset: 0;
}
.dot {
  opacity: 0;
  transition: opacity 0.32s var(--ease);
  transition-delay: var(--dot-delay, 0.22s);
}
.is-in .dot {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .draw {
    stroke-dashoffset: 0;
  }
  .dot {
    opacity: 1;
  }
}
.method__thesis {
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.024em;
  font-weight: 500;
  max-width: 20ch;
  margin-bottom: clamp(34px, 4.4vw, 62px);
  text-wrap: balance;
}
.method__thesis em {
  font-style: normal;
  color: var(--accent);
}
.route {
  margin-bottom: clamp(42px, 5vw, 72px);
}
.route__list {
  --route-gap: clamp(14px, 1.6vw, 26px);
  position: relative;
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
}
.route__step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 16px;
  padding-block: 16px;
}
.route__node {
  position: relative;
  display: flex;
  justify-content: center;
}
.route__node:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -32px;
  width: 1px;
  background: var(--rule);
}
.route__step:last-child .route__node:before {
  display: none;
}
.route__dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  margin-top: 9px;
}
.route__step--last .route__dot {
  background: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.route__name {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.016em;
}
.route__note {
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.45;
  margin-top: 3px;
  max-width: 44ch;
}
@media (min-width: 980px) {
  .route__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: var(--route-gap);
  }
  .route__list:before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    right: calc(20% - 0.8 * var(--route-gap));
    height: 1px;
    background: var(--rule);
  }
  .route__node:before {
    display: none;
  }
  .route__step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
    padding-block: 0;
    padding-right: clamp(10px, 1.4vw, 22px);
  }
  .route__node {
    justify-content: flex-start;
    height: 9px;
  }
  .route__dot,
  .route__name {
    margin-top: 0;
  }
}
.tool__head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(26px, 3vw, 38px);
}
@media (min-width: 900px) {
  .tool__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: clamp(40px, 5vw, 90px);
    align-items: start;
  }
}
.tool__title {
  max-width: 14ch;
}
.contact {
  display: grid;
  gap: clamp(30px, 4vw, 54px);
  margin-top: clamp(44px, 5.5vw, 72px);
  padding-top: clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--rule-soft);
  scroll-margin-top: 84px;
}
@media (min-width: 940px) {
  .contact {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: clamp(40px, 5.5vw, 100px);
    align-items: start;
  }
}
.contact__title {
  max-width: 15ch;
}
.contact__cta {
  margin-top: clamp(26px, 3vw, 36px);
}
.contact__alt {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
}
.contact__alt-text {
  color: var(--ink-2);
  font-size: var(--fs-small);
  margin-bottom: 20px;
  line-height: 1.5;
}
.foot {
  --ink: #f7f4f8;
  --ink-2: #c9c0cc;
  --accent: #dac8e6;
  --rule-soft: rgba(247, 244, 248, 0.12);
  background: var(--plum);
  color: var(--ink);
  border-top: 1px solid var(--rule-soft);
  padding-block: clamp(30px, 3.6vw, 48px) clamp(38px, 4vw, 56px);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  align-items: baseline;
  justify-content: space-between;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.foot__link {
  font-size: var(--fs-small);
  color: var(--ink-2);
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.28s var(--ease);
}
.foot__link:hover {
  color: var(--accent);
}
.foot__note {
  margin-top: clamp(20px, 2.4vw, 30px);
  color: var(--ink-2);
  font-size: var(--fs-cap);
  line-height: 1.6;
  max-width: 68ch;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 26px;
}
.hero__kicker-sep {
  width: 26px;
  height: 1px;
  background: var(--rule);
}
.hero__kicker-role {
  color: var(--accent-ink);
}
.hero__note {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.notes__head {
  margin: 14px 0 0;
}
.notes__intro {
  margin-top: 18px;
  max-width: 56ch;
}
.notes-embed {
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 84px;
}
.notes {
  margin-top: clamp(28px, 4vw, 46px);
}
.notes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}
@media (min-width: 900px) {
  .notes__list {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
    column-gap: clamp(36px, 5vw, 72px);
  }
  .notes__item:first-child {
    grid-row: 1/3;
  }
  .notes__item--compact {
    grid-column: 2;
  }
}
.notes__item {
  border-bottom: 1px solid var(--rule-soft);
}
.notes__link {
  display: grid;
  gap: 10px;
  padding: clamp(24px, 3.4vw, 38px) 0;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.notes__item--compact .notes__link {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
  padding-block: clamp(18px, 2.2vw, 26px);
}
.notes__item--compact .notes__body,
.notes__item--compact .notes__date {
  display: none;
}
.notes__item--compact .notes__title {
  font-size: var(--fs-body);
  max-width: 48ch;
}
a.notes__link {
  transition: opacity var(--dur) var(--ease);
}
a.notes__link:hover {
  opacity: 0.62;
}
.notes__date {
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.notes__title {
  font-size: var(--fs-h3);
  line-height: 1.3;
  font-weight: 500;
  max-width: 32ch;
  text-wrap: balance;
}
.notes__body {
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: var(--fs-body);
}
.notes__more {
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.08em;
  color: var(--accent);
}
.notes__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: clamp(28px, 3.5vw, 40px);
}
.notes__foot-text {
  max-width: 46ch;
  margin: 0;
  font-size: var(--fs-small);
}
.limits__head {
  margin: 14px 0 0;
  max-width: 22ch;
}
.limits {
  list-style: none;
  margin: clamp(34px, 5vw, 54px) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(26px, 3vw, 38px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.limits__col {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.limits__col--no {
  border-top-color: var(--accent);
}
.limits__key {
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.limits__col--no .limits__key {
  color: var(--accent-ink);
}
.limits__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.limits__item {
  font-size: var(--fs-small);
  color: var(--ink-2);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}
.limits__item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 1px;
  background: var(--rule);
}
.practice {
  margin: clamp(38px, 5vw, 60px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  max-width: 64ch;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.creed__head {
  margin: 14px 0 0;
  max-width: 24ch;
}
.creed {
  margin-top: clamp(34px, 4.6vw, 58px);
}
.creed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: creed;
}
.creed__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(28px, 3.6vw, 42px) 0;
  border-top: 1px solid var(--rule);
}
.creed__item:last-child {
  border-bottom: 1px solid var(--rule);
}
.creed__num {
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  padding-top: 0.42em;
}
.creed__title {
  font-size: clamp(1.22rem, 1.02rem + 0.95vw, 1.72rem);
  line-height: 1.16;
  letter-spacing: -0.024em;
  font-weight: 500;
  max-width: 26ch;
  text-wrap: balance;
  margin: 0 0 14px;
}
.creed__body {
  max-width: var(--measure);
  color: var(--ink-2);
  margin: 0;
}
.creed__body + .creed__body {
  margin-top: 0.85em;
}
.creed__src {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.creed__src:hover {
  border-bottom-color: var(--accent);
}
.creed__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: clamp(26px, 3.2vw, 38px);
}
.creed__foot-text {
  margin: 0;
  max-width: 52ch;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.feed-embed {
  margin-top: clamp(52px, 6vw, 84px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 84px;
}
.feed__intro {
  margin-top: 16px;
  max-width: 56ch;
}
.feed {
  margin-top: clamp(26px, 3.4vw, 40px);
}
.feed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}
.feed__item {
  border-bottom: 1px solid var(--rule-soft);
}
.feed__link {
  display: grid;
  gap: 7px;
  padding: clamp(16px, 2vw, 22px) 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s var(--ease);
}
.feed__link:hover {
  opacity: 0.6;
}
.feed__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.08em;
}
.feed__rubric {
  color: var(--accent-ink);
  text-transform: uppercase;
}
.feed__date,
.feed__read {
  color: var(--ink-2);
}
.feed__title {
  font-size: var(--fs-body);
  line-height: 1.36;
  letter-spacing: -0.012em;
  max-width: 52ch;
  text-wrap: pretty;
}
.feed__all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-wash);
  transition: border-color 0.3s var(--ease);
}
.feed__all:hover {
  border-bottom-color: var(--accent);
}
.limits__quiet {
  margin: clamp(30px, 3.6vw, 44px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
  max-width: 60ch;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
@media (max-width: 640px) {
  .limits {
    grid-template-columns: minmax(0, 1fr);
  }
  .creed__item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }
  .creed__num {
    padding-top: 0;
  }
  .creed__foot {
    align-items: flex-start;
  }
}
.osdemo {
  margin: clamp(30px, 4vw, 48px) 0 0;
}
.osdemo__box {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.32s var(--ease);
}
.osdemo__box.is-live {
  border-color: var(--accent);
}
.osdemo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px clamp(16px, 2.2vw, 26px);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.osdemo__mark {
  color: var(--ink);
}
.osdemo__state {
  color: var(--ink-2);
}
.osdemo__poster {
  padding: clamp(26px, 3.6vw, 44px) clamp(18px, 2.4vw, 32px);
}
.osdemo__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
}
.osdemo__answer {
  font-size: var(--fs-h3);
  font-weight: 500;
  margin: 0 0 10px;
  max-width: 26ch;
}
.osdemo__reason {
  margin: 0;
  color: var(--ink-2);
  max-width: 54ch;
  font-size: var(--fs-small);
  line-height: 1.55;
}
.osdemo__start {
  margin-top: clamp(22px, 2.8vw, 30px);
}
.osdemo__weight {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.osdemo__frame {
  display: block;
  width: 100%;
  height: min(78vh, 560px);
  border: 0;
  background: var(--surface);
}
@media (min-width: 760px) {
  .osdemo__frame {
    height: min(80vh, 680px);
  }
}
@media (min-width: 1200px) {
  .osdemo__frame {
    height: min(82vh, 760px);
  }
}
.osdemo__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.osdemo__new {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-wash);
  transition: border-color 0.3s var(--ease);
}
.osdemo__new:hover {
  border-bottom-color: var(--accent);
}
@media (max-width: 640px) {
  .osdemo__caption {
    flex-direction: column;
    gap: 6px;
  }
}

/* ─────────── D1 Capital visual language ─────────── */

.display,
.h2,
.h3,
.hero__id-name,
.facts__value,
.diag__final,
.method__thesis,
.route__name,
.notes__title,
.creed__title,
.feed__title,
.osdemo__answer,
.contact__title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.display { line-height: 1.02; }
.h2 { line-height: 1.08; }
.h3 { line-height: 1.14; }
.lead { font-weight: 300; line-height: 1.42; }
.body { line-height: 1.62; }

::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline-color: var(--accent-dark); }

.nav {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(20px);
  box-shadow: 0 4px 24px rgba(25, 25, 25, 0.025);
}
.nav.is-stuck { border-bottom-color: var(--rule-soft); }
.nav__inner { min-height: 74px; }
.nav__name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.nav__link { color: #666; font-weight: 400; }
.nav__link:hover { color: var(--accent-dark); }

.btn {
  min-height: 52px;
  border-radius: var(--radius-s);
  padding-inline: 22px;
  font-family: var(--font-text);
  font-weight: 500;
  box-shadow: none;
}
.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--ink);
  --btn-line: var(--accent);
}
.btn--primary:hover {
  --btn-bg: var(--accent-dark);
  --btn-fg: #fff;
  --btn-line: var(--accent-dark);
}
.btn--ghost {
  --btn-bg: var(--surface);
  --btn-line: transparent;
}
.btn--ghost:hover {
  --btn-bg: var(--mineral);
  --btn-fg: var(--ink);
  --btn-line: transparent;
}

.scene { position: relative; }
.scene + .scene { border-top: 0; }
.scene--hero {
  overflow: clip;
  background: linear-gradient(90deg, #fff 0 58%, var(--mineral) 58% 100%);
}
.scene--hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(52vw, 760px);
  height: min(42vw, 600px);
  right: -13vw;
  top: 5%;
  border-radius: 44% 12% 48% 18%;
  background:
    repeating-linear-gradient(104deg, transparent 0 25px, rgba(255,255,255,.68) 26px 28px),
    linear-gradient(132deg, rgba(255,255,255,.82), rgba(94,170,235,.26) 45%, rgba(71,129,179,.18));
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
  pointer-events: none;
}
.scene--hero .wrap { position: relative; z-index: 1; }
.scene--mineral { background: var(--surface); }
.scene--plum {
  --ink: #191919;
  --ink-2: #474747;
  --accent: #356c99;
  --accent-dark: #2f638e;
  --accent-ink: #2f638e;
  --surface: rgba(255,255,255,.76);
  --rule: rgba(25,25,25,.18);
  --rule-soft: rgba(25,25,25,.09);
  --accent-wash: rgba(255,255,255,.5);
  background: var(--accent-soft);
  color: var(--ink);
}
.scene--plum .btn--primary {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-line: var(--ink);
}
.scene--plum .btn--primary:hover {
  --btn-bg: var(--accent-dark);
  --btn-fg: #fff;
  --btn-line: var(--accent-dark);
}

.mark__num { color: var(--accent-ink); }
.mark__line { background: linear-gradient(var(--accent), var(--rule)); }

.hero { align-items: center; }
.hero__kicker { color: #666; }
.hero__kicker-role { color: var(--accent-ink); }
.hero__title { max-width: 19ch; }
.hero__context {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  color: #595959;
}
.hero__note { color: #666; }

.portrait { isolation: isolate; }
.portrait::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% -7% 13% 16%;
  border-radius: 38% 16% 42% 18%;
  background:
    repeating-linear-gradient(108deg, transparent 0 18px, rgba(255,255,255,.72) 19px 21px),
    linear-gradient(135deg, rgba(185,215,249,.42), rgba(94,170,235,.82));
  transform: rotate(7deg);
  box-shadow: 2px 2px 16px rgba(25,25,25,.05);
}
.portrait__frame {
  z-index: 1;
  border-radius: var(--radius);
  background: var(--mineral);
  box-shadow: 2px 2px 16px rgba(25,25,25,.05);
}
.portrait__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.05) 45%, rgba(94,170,235,.14));
  pointer-events: none;
}
.portrait__img { filter: saturate(.76) contrast(1.04) brightness(1.03); }
.portrait__caption::before { background: var(--accent); }

.facts {
  border-top: 0;
  padding-top: 0;
  gap: 12px;
}
.facts__item {
  min-width: 0;
  min-height: 118px;
  align-content: space-between;
  gap: 8px;
  padding: 20px;
  border: 0;
  border-radius: 22px;
  background: rgba(248,248,248,.9);
  color: #666;
  box-shadow: 2px 2px 16px rgba(25,25,25,.035);
}
.facts__item:nth-child(even) { background: rgba(241,245,253,.94); }
.facts__value { font-size: clamp(1.05rem, .94rem + .45vw, 1.3rem); }

.diag__cols > * {
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
  border-radius: 26px;
  background: #fff;
  box-shadow: 2px 2px 16px rgba(25,25,25,.035);
}
.trace {
  padding: clamp(22px, 3vw, 40px);
  border-radius: 28px;
  background: #fff;
  box-shadow: 2px 2px 16px rgba(25,25,25,.035);
}
.trace__legend { gap: 12px; }
.trace__legend-item {
  min-height: 122px;
  padding: 18px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
}
.trace__legend-item:nth-child(even) { background: var(--mineral); }

.creed__list { display: grid; gap: 12px; }
.creed__item {
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: clamp(18px, 2.5vw, 34px);
  padding: clamp(24px, 3.5vw, 44px);
  border: 0;
  border-radius: 28px;
  background: var(--surface);
}
.creed__item:nth-child(even) { background: var(--mineral); }
.creed__item:last-child { border-bottom: 0; }
.creed__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
}
.creed__title { line-height: 1.22; }
.creed__src { color: var(--accent-ink); }

.feed-embed { border-top-color: var(--rule-soft); }
.feed__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 0;
}
.feed__item {
  min-width: 0;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
}
.feed__item:nth-child(2n) { background: var(--mineral); }
.feed__link { min-height: 154px; padding: 22px; }
.feed__link:hover { opacity: 1; color: var(--accent-ink); }
.feed__rubric { color: var(--accent-ink); }
.feed__all,
.osdemo__new { color: var(--accent-ink); }

.osdemo__box {
  border: 0;
  border-radius: var(--radius);
  background: var(--mineral);
  box-shadow: 2px 2px 16px rgba(25,25,25,.05);
}
.osdemo__box.is-live { box-shadow: inset 0 0 0 2px var(--accent); }
.osdemo__bar { padding-block: 16px; background: var(--accent-soft); }
.osdemo__poster { background: linear-gradient(135deg, #fff, var(--mineral)); }

.limits { gap: 12px; }
.limits__col {
  padding: clamp(22px, 3vw, 34px);
  border-top: 0;
  border-radius: 26px;
  background: rgba(255,255,255,.72);
}
.limits__col--no { background: rgba(255,255,255,.5); }
.limits__key,
.limits__col--no .limits__key { color: var(--ink); }
.limits__item::before { width: 8px; height: 8px; top: .55em; border-radius: 50%; background: var(--accent); }
.limits__item { padding-left: 20px; }

.contact { border-top-color: rgba(25,25,25,.14); }
.contact__alt {
  border: 0;
  border-radius: 26px;
  background: rgba(255,255,255,.78);
  box-shadow: 2px 2px 16px rgba(25,25,25,.04);
}

.foot {
  --ink: #fff;
  --ink-2: rgba(255,255,255,.68);
  --accent: #b9d7f9;
  --rule-soft: rgba(255,255,255,.12);
  background: #191919;
}
.foot__row > :first-child {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 400;
}

@media (min-width: 900px) {
  .facts__item {
    display: grid;
    padding: 22px;
    border-right: 0;
  }
  .facts__item + .facts__item { padding-left: 22px; }
}

@media (max-width: 999px) {
  .scene--hero { background: linear-gradient(#fff 0 52%, var(--mineral) 52% 100%); }
  .scene--hero::before { width: 92vw; height: 48vw; right: -28vw; top: 42%; }
  .portrait { width: min(100%, 680px); }
}

@media (max-width: 720px) {
  :root { --scene-pad: 56px; }
  .nav__inner { min-height: 66px; }
  .nav__tg { min-height: 44px; padding-inline: 16px; }
  .scene--hero { padding-top: 26px; }
  .facts__item { min-height: 0; display: grid; grid-template-columns: minmax(100px, .65fr) minmax(0, 1fr); align-items: baseline; }
  .facts__item::before { display: none; }
  .feed__list { grid-template-columns: minmax(0, 1fr); }
  .feed__link { min-height: 0; }
  .creed__item { grid-template-columns: minmax(0, 1fr); row-gap: 16px; border-radius: 22px; }
  .creed__num { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait::before,
  .scene--hero::before { transform: none; }
}
