@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-latin-full-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-latin-full-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0a09;
  --bg-2: #110f0e;
  --surface: #15120f;
  --surface-2: #1d1916;
  --well: #211c19;
  --line: rgba(255, 238, 224, 0.08);
  --line-2: rgba(255, 238, 224, 0.14);
  --line-3: rgba(255, 238, 224, 0.26);
  --text: #f3eee8;
  --text-2: #c7beb4;
  --text-3: #9a9188;
  --petal: #ee6d8a;
  --petal-hi: #f58ea4;
  --petal-deep: #c9506d;
  --petal-soft: rgba(238, 109, 138, 0.12);
  --petal-tint: rgba(238, 109, 138, 0.3);
  --ok: var(--petal);
  --bad: #8a827a;
  --samn: #8c847c;
  --bce3s: #554f4a;
  --other: #6f6862;
  --grad: linear-gradient(94deg, #ec6a87 0%, #f18c80 50%, #f6b487 100%);
  --card: linear-gradient(180deg, rgba(31, 27, 24, 0.86), rgba(20, 18, 16, 0.86));
  --shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 44px 90px -40px rgba(0, 0, 0, 0.95);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1440px;
  --gutter: clamp(18px, 4vw, 56px);
  --sec: clamp(64px, 7vw, 104px);
  --r: 20px;
  --r-sm: 13px;
  --r-xs: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
canvas,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
i {
  font-style: italic;
}
::selection {
  background: rgba(238, 109, 138, 0.32);
}
:focus-visible {
  outline: 2px solid var(--petal-hi);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 86% -10%, rgba(238, 109, 138, 0.05), transparent 62%),
    radial-gradient(900px 640px at -10% 42%, rgba(246, 180, 135, 0.05), transparent 60%),
    radial-gradient(900px 600px at 64% 112%, rgba(120, 140, 200, 0.05), transparent 62%),
    var(--bg);
}
.backdrop::after {
  content: '';
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255, 238, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 238, 224, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 70% at 62% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 62% 30%, #000 0%, transparent 78%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  animation: drift 26s var(--ease) infinite alternate;
}
.glow.g1 {
  width: 1000px;
  height: 1000px;
  right: -380px;
  top: calc(2% - 220px);
  background: radial-gradient(closest-side, rgba(90, 32, 48, 1) 0%, rgba(90, 32, 48, 0.85) 36%, rgba(90, 32, 48, 0.5) 56%, rgba(90, 32, 48, 0.12) 78%, rgba(90, 32, 48, 0) 100%);
  opacity: 0.2;
}
.glow.g2 {
  width: 900px;
  height: 900px;
  left: -400px;
  top: calc(50% - 220px);
  background: radial-gradient(closest-side, rgba(74, 46, 28, 1) 0%, rgba(74, 46, 28, 0.85) 36%, rgba(74, 46, 28, 0.5) 56%, rgba(74, 46, 28, 0.12) 78%, rgba(74, 46, 28, 0) 100%);
  opacity: 0.18;
  animation-delay: -9s;
}
.glow.g3 {
  width: 860px;
  height: 860px;
  right: calc(20% - 220px);
  bottom: -440px;
  background: radial-gradient(closest-side, rgba(36, 48, 79, 1) 0%, rgba(36, 48, 79, 0.85) 36%, rgba(36, 48, 79, 0.5) 56%, rgba(36, 48, 79, 0.12) 78%, rgba(36, 48, 79, 0) 100%);
  opacity: 0.3;
  animation-delay: -17s;
}
@keyframes drift {
  to {
    transform: translate3d(-70px, 46px, 0) scale(1.16);
  }
}
main,
.footer {
  position: relative;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.display {
  font-family: var(--serif);
  font-weight: 470;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}
.display em,
.grad {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
.h2 {
  font-size: clamp(32px, 4.1vw, 58px);
}
.sp {
  font-style: italic;
}
.kicker,
.eyebrow,
.mini-label,
.stat-label,
.hud,
.step-num,
.flow-k {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--petal);
}
.kicker::before,
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.kicker span {
  color: var(--petal-hi);
}
.lede {
  max-width: 540px;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.68;
  text-wrap: pretty;
}

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

.card,
.tcard,
.stat,
.source,
.gcard,
.atlas,
.demo,
.method-card,
.stage-wrap,
.tail-card,
.bibtex {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}
.glowable {
  position: relative;
}
.glowable::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(238, 109, 138, 0.09), transparent 60%);
  transition: opacity 0.4s;
}
.glowable:hover::after {
  opacity: 1;
}
.ph {
  position: relative;
  overflow: hidden;
  background-color: var(--well);
  background-repeat: no-repeat;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph.ok {
  box-shadow: 0 0 0 2px var(--petal);
}
.ph.bad {
  box-shadow: 0 0 0 2px var(--bad);
}
.ph > .mark {
  position: absolute;
  top: 8px;
  right: 8px;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
}
.mark svg {
  width: 11px;
  height: 11px;
}
.mark.ok {
  background: var(--petal);
  color: #fff;
  box-shadow: 0 2px 6px rgba(238, 109, 138, 0.36);
}
.mark.bad {
  background: var(--surface-2);
  color: var(--bad);
  box-shadow: inset 0 0 0 1.5px rgba(138, 130, 122, 0.55);
}
.tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 10, 9, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.tag.top {
  bottom: auto;
  top: 10px;
}
.tag.rose {
  color: var(--petal-hi);
}
.tag.rose::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--petal);
  box-shadow: 0 0 8px rgba(238, 109, 138, 0.9);
}
.chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.chip.few {
  border-color: rgba(238, 109, 138, 0.4);
  background: var(--petal-soft);
  color: var(--petal-hi);
}
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(24, 21, 18, 0.6);
}
.seg button {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}
.seg button:hover {
  color: var(--text);
}
.seg button.is-on {
  background: var(--surface-2);
  color: var(--text);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 0 0 1px var(--line);
}
.tip {
  position: fixed;
  z-index: 80;
  max-width: 280px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 12.5px;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.tip.on {
  opacity: 1;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13.5px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s,
    transform 0.35s var(--ease);
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  margin: 0 auto;
  width: min(calc(100% - 2 * var(--gutter) + 28px), calc(var(--wrap) - 2 * var(--gutter) + 28px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 7px 7px 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background 0.5s var(--ease),
    border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.nav.is-scrolled .nav-inner,
.nav.is-open .nav-inner {
  background: rgba(24, 21, 18, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.67);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 560;
  letter-spacing: 0.04em;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition:
    color 0.3s,
    background 0.3s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.is-active {
  color: var(--petal-hi);
  background: var(--petal-soft);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    background 0.3s;
}
.nav-cta svg {
  width: 13px;
  height: 13px;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: #fff;
}
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
}
.nav-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 2px;
}
.nav-progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--grad);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    background 0.35s,
    border-color 0.35s,
    box-shadow 0.35s;
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn-primary {
  background: linear-gradient(180deg, #f27893, #d9506f);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 28px -8px rgba(220, 70, 110, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 36px -10px rgba(220, 70, 110, 0.7);
}
.btn-ghost {
  border-color: var(--line-2);
  background: rgba(24, 21, 18, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}
.btn.is-static {
  color: var(--text-3);
  cursor: default;
}
.btn.is-static:hover {
  transform: none;
  border-color: var(--line-2);
}

.hero {
  position: relative;
  min-height: max(100svh, 700px);
  display: grid;
  align-items: center;
  overflow: clip;
}
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--line-3);
  pointer-events: none;
}
.corner.tl {
  left: 28px;
  top: 86px;
  border-left-width: 1px;
  border-top-width: 1px;
}
.corner.tr {
  right: 28px;
  top: 86px;
  border-right-width: 1px;
  border-top-width: 1px;
}
.corner.bl {
  left: 28px;
  bottom: 28px;
  border-left-width: 1px;
  border-bottom-width: 1px;
}
.corner.br {
  right: 28px;
  bottom: 28px;
  border-right-width: 1px;
  border-bottom-width: 1px;
}
.hud-tag,
.hud-frame {
  position: absolute;
  top: 98px;
  z-index: 2;
  font-size: 10.5px;
  color: var(--text-2);
}
.hud-tag {
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud-frame {
  right: var(--gutter);
}
.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--petal);
  box-shadow: 0 0 0 0 rgba(238, 109, 138, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(238, 109, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(238, 109, 138, 0);
  }
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 140px 0 120px;
  pointer-events: none;
}
.hero-copy > * {
  pointer-events: auto;
}
.hero-copy {
  max-width: 610px;
}
.hero-title {
  font-size: clamp(80px, 11.6vw, 176px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin-left: -0.04em;
}
.hero-tagline {
  margin-top: 28px;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 60, 'SOFT' 50;
  font-size: clamp(21px, 2.1vw, 29px);
  font-weight: 380;
  line-height: 1.24;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-tagline em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hero-intro {
  margin-top: 18px;
  max-width: 520px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}
.hero-author {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}
.author-name {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.author-aff {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero .btn-row {
  margin-top: 30px;
}
.hero-stats {
  display: flex;
  margin-top: 44px;
}
.hero-stats div {
  padding: 0 26px;
  border-left: 1px solid var(--line-2);
}
.hero-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}
.hero-stats b {
  display: block;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero-stage {
  position: absolute;
  inset: 0;
}
.hero-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 10, 9, 0.95) 0%, rgba(11, 10, 9, 0.74) 30%, rgba(11, 10, 9, 0) 50%),
    linear-gradient(180deg, rgba(11, 10, 9, 0) 80%, var(--bg) 100%);
}
.story {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 34px;
  width: min(740px, 51vw);
  padding: 14px 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(18, 16, 14, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-lg);
}
.story-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.story-steps {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding-top: 7px;
}
.story-steps button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.story-steps .bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--line-2);
  overflow: hidden;
}
.story-steps .bar b {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(var(--f, 0));
}
.story-steps .lab {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-3);
  transition: color 0.3s;
}
.story-steps .lab .n {
  font-size: 9px;
  opacity: 0.7;
}
.story-steps button.done .lab {
  color: var(--text-2);
}
.story-steps button.is-on .lab {
  color: var(--petal-hi);
}
.story-ex {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.story-ex button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition:
    border-color 0.3s,
    color 0.3s;
}
.story-ex button:hover {
  border-color: var(--petal);
  color: var(--text);
}
.story-ex svg {
  width: 12px;
  height: 12px;
}
.story-cap {
  min-height: 3em;
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}
.story-cap i {
  font-family: var(--serif);
  font-size: 1.06em;
}
.story-cap b {
  color: var(--petal-hi);
  font-weight: 600;
}
.story-ans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.sa {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px 8px 8px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 238, 224, 0.03);
  opacity: 0.22;
  filter: saturate(0.4);
  transition:
    opacity 0.7s var(--ease),
    filter 0.7s var(--ease),
    border-color 0.7s var(--ease),
    box-shadow 0.7s var(--ease);
}
.sa.on {
  opacity: 1;
  filter: none;
}
.sa.petal.ok.on {
  border-color: rgba(238, 109, 138, 0.55);
  background: rgba(238, 109, 138, 0.07);
  box-shadow: 0 0 44px -14px rgba(238, 109, 138, 0.55);
}
.sa .ph {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.sa-txt {
  min-width: 0;
}
.sa-r {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.sa-r .cf {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.sa.petal.ok .sa-r .cf {
  color: var(--petal-hi);
}
.sa-r .cl {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sa .who {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sa.petal .who {
  color: var(--petal-hi);
}
.sa .nm {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa.bad .nm {
  color: var(--text-2);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 238, 224, 0.35);
  text-decoration-thickness: 1px;
}
.sa .k {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.swap {
  animation: swap 0.7s var(--ease);
}
@keyframes swap {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--petal-hi);
  cursor: pointer;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.play:hover {
  border-color: var(--petal);
  box-shadow: 0 0 0 4px rgba(238, 109, 138, 0.12);
}
.play svg {
  width: 10px;
  height: 10px;
}
.play .i-play,
.play.is-paused .i-pause {
  display: none;
}
.play.is-paused .i-play {
  display: block;
}
.scrub {
  flex: 1;
  min-width: 0;
  padding: 9px 0 0;
  cursor: pointer;
}
.scrub-track {
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: var(--line-2);
}
.scrub-fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.scrub-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--petal);
  box-shadow:
    0 0 0 4px rgba(238, 109, 138, 0.18),
    0 2px 8px rgba(238, 109, 138, 0.55);
}
.scrub-ticks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.scrub-ticks span {
  position: relative;
  padding-left: 6px;
  transition: color 0.4s;
}
.scrub-ticks span::before {
  content: '';
  position: absolute;
  left: 0;
  top: -9px;
  width: 1px;
  height: 6px;
  background: var(--line-3);
}
.scrub-ticks span.is-on {
  color: var(--petal-hi);
}
input[type='range'].range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--petal) calc(var(--p, 1) * 100%), var(--line-2) 0);
  outline: none;
  cursor: pointer;
}
input[type='range'].range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--petal);
  box-shadow:
    0 0 0 4px rgba(238, 109, 138, 0.18),
    0 2px 8px rgba(238, 109, 138, 0.5);
}
input[type='range'].range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--petal);
  box-shadow: 0 0 0 4px rgba(238, 109, 138, 0.18);
}
.section {
  position: relative;
  padding: var(--sec) 0;
}
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px 64px;
  align-items: end;
  margin-bottom: clamp(28px, 3.2vw, 44px);
}
.split-head .lede {
  justify-self: end;
  padding-bottom: 6px;
}

.teaser {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tcard {
  padding: 12px;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease) var(--d, 0s),
    transform 0.9s var(--ease) var(--d, 0s);
}
.tcard.in {
  opacity: 1;
  transform: none;
}
.tpair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.tfig {
  min-width: 0;
  margin: 0;
}
.tph {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
}
.tfig figcaption {
  margin: 11px 4px 0;
  font-family: var(--serif);
  line-height: 1.15;
  white-space: nowrap;
}
.tfig figcaption small {
  display: block;
  font-size: 13px;
  font-style: italic;
  color: var(--text-3);
}
.tfig figcaption b {
  display: block;
  margin-top: 1px;
  font-size: 21px;
  font-weight: 470;
  letter-spacing: -0.012em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tfig.common figcaption b {
  color: var(--text-2);
}
.tpair-eq {
  position: absolute;
  left: 50%;
  top: 43%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow:
    0 0 0 1px var(--line),
    0 8px 18px -6px rgba(0, 0, 0, 0.85);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  color: var(--petal-hi);
}
.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.22));
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  opacity: 0;
  pointer-events: none;
}
.tcard.in .scan,
.query-photo .scan {
  animation: scan 1.5s var(--ease) 0.35s 1 both;
}
@keyframes scan {
  0% {
    transform: translateY(-100%);
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(300%);
    opacity: 0;
  }
}
.tverdicts {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}
.tv {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  background: var(--well);
}
.tv .who {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv .ans {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.tv.petal {
  background: var(--petal-soft);
  box-shadow: inset 0 0 0 1px rgba(238, 109, 138, 0.22);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.tv.petal .who {
  color: var(--petal-hi);
}
.tcard.solved .tv.petal {
  opacity: 1;
  transform: none;
}
.tail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 40px;
  align-items: center;
  margin-top: 16px;
  padding: 20px 26px 18px;
}
.tail-plot {
  min-width: 0;
}
.tail-plot .hud {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
}
.tail-plot svg {
  width: 100%;
  height: 84px;
  margin-top: 10px;
  overflow: visible;
}
.tail-plot .axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
}
.tail-plot .axis b {
  font-weight: 500;
  color: var(--petal-hi);
}
.tail-area {
  transform-origin: 50% 100%;
  transform: scaleY(0);
  transition: transform 1.3s var(--ease);
}
.tail-card.in .tail-area {
  transform: none;
}
.tail-nums {
  display: flex;
}
.tail-nums div {
  padding: 2px 26px;
  border-left: 1px solid var(--line-2);
}
.tail-nums div:last-child {
  padding-right: 0;
}
.tail-nums b {
  display: block;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.tail-nums div.rare b {
  color: var(--petal-hi);
}
.tail-nums span {
  display: block;
  margin-top: 6px;
  max-width: 150px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-2);
}

.atlas {
  padding: 16px;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}
.atlas-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 14px;
}
.atlas-search {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 270px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-3);
}
.atlas-search svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.atlas-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
}
.atlas-sugg {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 340px;
  overflow: auto;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.atlas-sugg.on {
  display: block;
}
.atlas-sugg button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.atlas-sugg button:hover,
.atlas-sugg button.is-on {
  background: var(--petal-soft);
}
.atlas-sugg .tile {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background-color: var(--well);
  background-repeat: no-repeat;
}
.atlas-sugg small {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
}
.atlas-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.atlas-scroll {
  min-width: 0;
}
.atlas-grid {
  position: relative;
  display: grid;
  gap: 2px;
}
.at {
  position: relative;
  aspect-ratio: 1;
  border-radius: 3px;
  background-color: var(--well);
  background-repeat: no-repeat;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    opacity 0.45s,
    filter 0.45s;
}
.at.empty {
  background: transparent;
  cursor: default;
}
.at.nophoto {
  background-image: none !important;
  background-color: #221d1a;
}
.atlas-grid.bloom .at {
  animation: bloom 0.9s var(--ease) both;
  animation-delay: var(--d, 0s);
}
@keyframes bloom {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-6deg);
  }
}
.atlas-grid .at.off {
  opacity: 0.1;
  filter: grayscale(1);
}
.atlas-grid.cutting .at.few:not(.off) {
  box-shadow: inset 0 0 0 1.5px var(--petal);
}
.atlas-grid .at:hover,
.atlas-grid .at.sel {
  z-index: 6;
  transform: scale(2.2);
  border-radius: 4px;
  box-shadow:
    0 0 0 1.5px #fff,
    0 12px 28px rgba(0, 0, 0, 0.72);
  filter: none;
  opacity: 1;
}
.atlas-grid .at.sel::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 6px;
  border: 1.5px solid var(--petal);
  animation: selpulse 1.8s var(--ease) infinite;
}
@keyframes selpulse {
  50% {
    inset: -6px;
    opacity: 0.35;
  }
}
.atlas-grid[data-mode='group'] .at:not(.few):not(.empty):not(:hover):not(.sel) {
  opacity: 0.2;
  filter: grayscale(0.9);
}
.atlas-grid[data-mode='group'] .at.few {
  box-shadow: inset 0 0 0 2px var(--petal);
}
.atlas-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
}
.atlas-panel {
  padding: 12px 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.ap-photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background-color: var(--well);
  background-repeat: no-repeat;
}
.ap-hi {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.ap-hi.on {
  opacity: 1;
}
.ap-photo.nophoto {
  display: grid;
  place-items: center;
  background-image: repeating-linear-gradient(45deg, #221d1a 0 6px, #1a1614 6px 12px) !important;
  background-size: auto !important;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}
.ap-name {
  margin: 14px 4px 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.ap-taxon {
  margin: 4px 4px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.ap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 4px 0;
}
.ap-rec {
  display: grid;
  gap: 8px;
  margin: 14px 4px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ap-rec .hud {
  font-size: 10.5px;
}
.ap-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-2);
}
.ap-row .bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 238, 224, 0.060);
  overflow: hidden;
}
.ap-row .bar b {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--c);
  width: var(--v);
  transition: width 0.55s var(--ease);
}
.ap-row .v {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.atlas-ctrl {
  padding: 14px 16px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.atlas-ctrl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.atlas-ctrl-head .hud {
  font-size: 10.5px;
}
.atlas-range {
  margin-top: 18px;
}
.range-ends {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.range-ends i {
  position: absolute;
  left: var(--x, 43%);
  padding-left: 8px;
  font-style: normal;
  color: var(--petal-hi);
  white-space: nowrap;
}
.range-ends i::before {
  content: '';
  position: absolute;
  left: 0;
  top: -17px;
  width: 1px;
  height: 28px;
  background: var(--petal);
  opacity: 0.6;
}
.when {
  margin-top: 6px;
}
.when b {
  display: block;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.when.rare b {
  color: var(--petal-hi);
}
.when .hud {
  display: block;
  margin-top: 7px;
  font-size: 10.5px;
  line-height: 1.3;
}
.when .hud.n {
  margin-top: 4px;
  color: var(--text-2);
}
.atlas[data-ds='orchid2024'] .atlas-body {
  grid-template-columns: minmax(0, 1fr);
}
.atlas[data-ds='orchid2024'] .atlas-side {
  position: static;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
}
.atlas[data-ds='orchid2024'] .atlas-panel {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 24px;
  align-items: start;
}
.atlas[data-ds='orchid2024'] .ap-photo {
  grid-row: 1 / span 4;
  aspect-ratio: 4 / 3;
}
.atlas[data-ds='orchid2024'] .ap-name,
.atlas[data-ds='orchid2024'] .ap-taxon,
.atlas[data-ds='orchid2024'] .ap-chips {
  grid-column: 2;
}
.atlas[data-ds='orchid2024'] .ap-name {
  margin-top: 6px;
}
.atlas[data-ds='orchid2024'] .ap-rec {
  grid-column: 3;
  grid-row: 1 / span 4;
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
}
.atlas-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 12px 4px 0;
  font-size: 12.5px;
  color: var(--text-2);
}
.atlas-legend .sw {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border-radius: 3px;
}

.method {
  padding-top: var(--sec);
}
.method-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.js .method-track {
  position: relative;
  height: calc(100svh + var(--steps, 6) * 58vh);
}
.js .method-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  align-items: center;
  padding: 84px 0 20px;
}
.method-card {
  display: flex;
  flex-direction: column;
  min-height: 336px;
  padding: 26px 26px 20px;
}
.method-steps {
  flex: 1;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mstep .step-num {
  color: var(--petal-hi);
}
.mstep h3 {
  margin: 12px 0 12px;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 60, 'SOFT' 100;
  font-size: 30px;
  font-weight: 470;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.mstep p:last-child {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}
.js .mstep {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.js .mstep.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.12s;
}
html:not(.js) .mstep + .mstep {
  margin-top: 22px;
}
.method-progress {
  margin-top: 20px;
}
.method-bar {
  height: 2px;
  border-radius: 2px;
  background: var(--line-2);
  overflow: hidden;
}
.method-bar span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0.1667);
  transition: transform 0.6s var(--ease);
}
.method-dots {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.method-dots button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}
.method-dots button:hover {
  color: var(--text);
}
.method-dots button.is-on {
  background: var(--petal-soft);
  color: var(--petal-hi);
  box-shadow: inset 0 0 0 1px rgba(238, 109, 138, 0.3);
}
.stage-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, calc((100svh - 128px) * 1.6));
  aspect-ratio: 960 / 600;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(60% 70% at 78% 0%, rgba(238, 109, 138, 0.090), rgba(238, 109, 138, 0.000) 70%),
    linear-gradient(rgba(255, 238, 224, 0.028) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, rgba(255, 238, 224, 0.028) 1px, transparent 1px) 0 0 / 40px 100%,
    var(--surface);
}
.stage-hud {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 16px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.stage-hud .hud {
  font-size: 10px;
}
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 960px;
  height: 600px;
  transform: translate(-50%, -50%);
  transform-origin: center;
}
.layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s var(--ease),
    visibility 0s 0.45s;
}
.layer.on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease) 0.1s;
}
.layer.on .ent {
  animation: ent 0.8s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 60ms + 160ms);
}
@keyframes ent {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.stage svg.over {
  position: absolute;
  inset: 0;
  width: 960px;
  height: 600px;
  max-width: none;
  overflow: visible;
  pointer-events: none;
}
.stage path.live {
  fill: none;
  stroke: var(--petal);
  stroke-width: 1.3;
  stroke-dasharray: 3 6;
  stroke-linecap: round;
  opacity: 0.75;
  animation: dash 1.6s linear infinite;
}
.stage path.lead {
  fill: none;
  stroke: var(--line-3);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
@keyframes dash {
  to {
    stroke-dashoffset: -18;
  }
}
.stage .ph {
  border-radius: 14px;
}
.stage-cap {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  white-space: nowrap;
}
.stage-cap b {
  font-weight: 500;
  color: var(--petal-hi);
}
.stack {
  position: relative;
  width: 200px;
  height: 200px;
}
.stack .ph {
  position: absolute;
  width: 200px;
  height: 200px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 10px 24px -12px rgba(0, 0, 0, 0.85);
}
.stack .ph.ok {
  box-shadow:
    0 0 0 2px var(--petal),
    0 14px 30px -12px rgba(238, 109, 138, 0.6);
}
.stack-label {
  width: 200px;
  text-align: center;
}
.stack-label .n {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stack-label.rare .n {
  color: var(--petal-hi);
}
.stack-label .s {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-2);
}
.tail-zone {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  fill: var(--petal-hi);
}
.tail-ax {
  font-family: var(--mono);
  font-size: 10.5px;
  fill: var(--text-3);
}
.view-src {
  width: 240px;
  height: 240px;
  box-shadow:
    0 0 0 2px var(--petal),
    0 18px 36px -16px rgba(238, 109, 138, 0.55);
}
.view {
  width: 124px;
  height: 124px;
  border-radius: 12px;
  background-color: var(--well);
  background-repeat: no-repeat;
  box-shadow:
    0 0 0 1px rgba(238, 109, 138, 0.5),
    0 10px 22px -12px rgba(0, 0, 0, 0.85);
  transition:
    background-size 0.9s var(--ease),
    background-position 0.9s var(--ease);
}
.eqn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 864px;
  height: 92px;
  padding: 0 40px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(24, 21, 18, 0.86);
}
.eqn div b {
  display: block;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.eqn div.res b {
  color: var(--petal-hi);
}
.eqn div span {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--text-2);
}
.eqn > i {
  font-family: var(--serif);
  font-style: normal;
  font-size: 26px;
  color: var(--text-3);
}
.mem-grid {
  display: grid;
  grid-template-columns: repeat(6, 94px);
  gap: 8px;
}
.mem-grid .ph {
  width: 94px;
  height: 94px;
  border-radius: 11px;
}
.mem-grid .ph.rare {
  box-shadow: 0 0 0 2px var(--petal);
}
.mem-grid .ph.v::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--petal);
  box-shadow: 0 0 0 2px var(--bg);
}
.use-card {
  width: 236px;
  padding: 16px 18px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(24, 21, 18, 0.92);
  box-shadow: var(--shadow);
}
.use-card .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--petal-hi);
}
.use-card .t {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.1;
}
.use-card .big {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.use-card .d {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.enc {
  position: relative;
  width: 196px;
  height: 104px;
}
.enc svg {
  position: absolute;
  inset: 0;
}
.enc .fz,
.enc .nm,
.enc .sub {
  position: absolute;
  left: 20px;
  right: 14px;
}
.enc .fz {
  top: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petal-hi);
}
.enc .nm {
  top: 37px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.1;
}
.enc .sub {
  top: 68px;
  font-size: 11.5px;
  color: var(--text-3);
}
.out-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 3px 10px;
  align-items: center;
  align-content: center;
  width: 272px;
  height: 56px;
  padding: 0 12px 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(24, 21, 18, 0.94);
  box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.85);
}
.out-chip .t {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.out-chip .s {
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.out-chip .c {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--petal-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--petal-hi);
}
.ch-rows {
  display: grid;
  gap: 7px;
  width: 536px;
}
.ch-head,
.ch-row {
  display: grid;
  grid-template-columns: 196px repeat(3, 66px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.ch-head {
  height: 34px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-align: center;
  line-height: 1.3;
}
.ch-head span:first-child {
  text-align: left;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.ch-head i {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--text-2);
}
.ch-head .rare,
.ch-head .rare i {
  color: var(--petal-hi);
}
.ch-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 54px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(24, 21, 18, 0.94);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
}
.ch-name small {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}
.ch-tile .ph {
  width: 66px;
  height: 47px;
  border-radius: 8px;
}
.ch-tile .pbar,
.ev .pbar,
.fbar .track {
  height: 4px;
  margin-top: 3px;
  border-radius: 3px;
  background: rgba(255, 238, 224, 0.068);
  overflow: hidden;
}
.ch-tile .pbar b {
  display: block;
  height: 100%;
  width: calc(var(--p) * 100%);
  border-radius: 3px;
  background: var(--petal);
}
.ch-tile.wrong .pbar b {
  background: var(--samn);
}
.ch-top {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bad);
}
.ch-top.ok {
  color: var(--petal-hi);
  font-weight: 600;
}
.tally {
  width: 272px;
  padding: 16px 18px 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(24, 21, 18, 0.94);
  box-shadow: var(--shadow);
}
.tally > .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.tally-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.tally-row:first-of-type {
  margin-top: 12px;
}
.tally-row .ph {
  width: 54px;
  height: 54px;
  border-radius: 10px;
}
.tally-row .nm {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.2;
}
.tally-row .ct {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-2);
}
.tally-row .dots {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.tally-row .dots i {
  width: 14px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 238, 224, 0.085);
}
.tally-row .dots i.on {
  background: var(--samn);
}
.tally-row.ok .dots i.on {
  background: var(--petal);
}
.tally-row.ok .nm {
  color: var(--petal-hi);
}
.fpill {
  display: flex;
  align-items: center;
  width: 230px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(24, 21, 18, 0.94);
  font-size: 14px;
  font-weight: 500;
}
.fusion-node {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f27893, #cf4b6b);
  color: #fff;
  font-family: var(--serif);
  font-size: 32px;
  box-shadow:
    0 0 0 8px rgba(238, 109, 138, 0.12),
    0 16px 32px -10px rgba(220, 70, 110, 0.6);
}
.fused-bars {
  display: grid;
  gap: 20px;
  width: 236px;
}
.fbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: baseline;
}
.fbar .nm {
  font-family: var(--serif);
  font-size: 16px;
}
.fbar .pv {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--petal-hi);
  font-weight: 600;
}
.fbar.wrong .pv {
  color: var(--text-3);
  font-weight: 400;
}
.fbar .track {
  grid-column: 1 / -1;
  height: 6px;
  margin-top: 2px;
}
.fbar .track b {
  display: block;
  height: 100%;
  width: calc(var(--p) * 100%);
  min-width: 3px;
  border-radius: 3px;
  background: var(--petal);
}
.fbar.wrong .track b {
  background: var(--samn);
}
.result-card {
  width: 196px;
  padding: 12px 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.result-card .ph {
  width: 172px;
  height: 172px;
  border-radius: 12px;
}
.result-card .rn {
  margin: 12px 2px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.12;
}
.result-card .rp {
  margin: 6px 2px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petal-hi);
}

.demo {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.demo-picker {
  display: flex;
  gap: 8px;
  padding: 14px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 238, 224, 0.025);
}
.demo-picker::-webkit-scrollbar {
  display: none;
}
.pick {
  flex: none;
  width: 84px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.pick .ph {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  opacity: 0.72;
  transition:
    opacity 0.3s,
    box-shadow 0.3s,
    transform 0.4s var(--ease);
}
.pick:hover .ph {
  opacity: 1;
  transform: translateY(-2px);
}
.pick.is-on .ph {
  opacity: 1;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--petal);
}
.pick .pk {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: 2.4em;
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.2;
  color: var(--text-3);
  overflow: hidden;
}
.pick.is-on .pk {
  color: var(--petal-hi);
}
.demo-flow {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 320px;
}
.flow-col {
  position: relative;
  min-width: 0;
  padding: 20px 22px 22px;
}
.flow-col + .flow-col {
  border-left: 1px solid var(--line);
}
.flow-col + .flow-col::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 50%;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4l4 4-4 4' fill='none' stroke='%23b53c64' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 11px no-repeat,
    var(--surface);
}
.flow-k {
  margin-bottom: 14px;
  color: var(--petal-hi);
}
.query-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
}
.q-name {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.q-meta {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--text-2);
}
.ev-list {
  display: grid;
  gap: 7px;
}
.ev {
  display: grid;
  grid-template-columns: 158px 42px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  padding: 7px 14px 7px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  animation: evin 0.6s var(--ease) backwards;
  animation-delay: var(--d, 0s);
  transition: opacity 0.4s;
}
@keyframes evin {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
}
.ev.off {
  opacity: 0.38;
}
.ev .who {
  font-size: 13.5px;
  font-weight: 600;
}
.ev .t {
  width: 42px;
  height: 42px;
  border-radius: var(--r-xs);
  background-color: var(--well);
  background-repeat: no-repeat;
}
.ev .what {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev .pbar b {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: 3px;
  background: var(--c);
  transition: width 0.6s var(--ease);
}
.ev-note {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-3);
}
.presets {
  display: grid;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(255, 238, 224, 0.03);
}
.preset {
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 13px;
  text-align: left;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}
.preset:hover {
  color: var(--text);
}
.preset.is-on {
  background: var(--surface-2);
  color: var(--petal-hi);
  font-weight: 600;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 0 0 1px var(--line);
}
.answer {
  margin-top: 12px;
  padding: 10px 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.answer .ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 11px;
  background-color: var(--well);
}
.answer .an {
  margin: 12px 4px 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.answer .verdict {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 9px 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--petal-hi);
}
.answer .verdict.bad {
  color: var(--bad);
}
.answer .ap {
  margin: 6px 4px 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
}
button.ev {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
}
.ev.can {
  cursor: pointer;
  transition:
    opacity 0.4s,
    border-color 0.3s,
    background 0.3s;
}
.ev.can:hover {
  border-color: var(--line-3);
}
.ev.off .what {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 238, 224, 0.4);
}
.presets.custom .preset.is-on {
  color: var(--text-2);
  box-shadow: 0 0 0 1px var(--line);
}
.mod-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: 8px;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--petal-hi);
}
.mod-note[hidden] {
  display: none;
}
.mod-note button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mod-note button:hover {
  color: var(--text);
}

.decision {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
.dec-side {
  padding: 22px 22px 24px;
  border-right: 1px solid var(--line);
}
.dec-h {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.dec-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.dec-tau {
  margin-top: 20px;
  padding: 13px 14px 11px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(255, 238, 224, 0.03);
}
.tau-l {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}
.tau-n {
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.tau-v {
  color: var(--petal-hi);
  font-weight: 500;
}
.tau-track {
  position: relative;
  height: 40px;
  margin-top: 10px;
}
.tau-track input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.tau-track input::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--petal) 0 calc(var(--p, 0.5) * 100%), var(--line-2) calc(var(--p, 0.5) * 100%) 100%);
}
.tau-track input::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--petal) 0 calc(var(--p, 0.5) * 100%), var(--line-2) calc(var(--p, 0.5) * 100%) 100%);
}
.tau-track input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6.5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(238, 109, 138, 0.34),
    0 2px 8px rgba(0, 0, 0, 0.5);
}
.tau-track input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(238, 109, 138, 0.34),
    0 2px 8px rgba(0, 0, 0, 0.5);
}
.tau-track input:focus-visible {
  outline: 0;
}
.tau-track input:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 4px rgba(238, 109, 138, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.5);
}
.tau-tick {
  position: absolute;
  top: 25px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-3);
  pointer-events: none;
}
.tau-tick::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -7px;
  width: 1px;
  height: 5px;
  background: var(--line-3);
}
.tau-ends {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-3);
}
.dec-chart {
  min-width: 0;
  padding: 22px 22px 18px;
}
.dec-poles,
.drow {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr) 62px;
  gap: 16px;
  align-items: center;
}
.dec-axis {
  align-self: end;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.dec-axis.r {
  text-align: right;
}
.poles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pole {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.pole.true {
  flex-direction: row-reverse;
  text-align: right;
}
.pole .ph {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 11px;
  background-color: var(--well);
  background-repeat: no-repeat;
}
.pole.true .ph {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 3px var(--petal);
}
.pole .pt {
  min-width: 0;
}
.pole .pk {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pole.true .pk {
  color: var(--petal-hi);
}
.pole .pn {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pole .pc {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
}
.drows {
  display: grid;
  gap: 1px;
  margin-top: 14px;
}
.drow {
  width: 100%;
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
}
button.drow {
  cursor: pointer;
  transition: background 0.25s;
}
button.drow:hover {
  background: rgba(255, 238, 224, 0.035);
}
.dl {
  padding-left: 10px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}
.dbar {
  position: relative;
  align-self: stretch;
  min-height: 18px;
}
.dbar::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--line-3);
}
.dbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
}
.dbar b {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 0;
  height: 12px;
  margin-top: -6px;
  border-radius: 3px;
  background: var(--grad);
  transition:
    left 0.55s var(--ease),
    width 0.55s var(--ease);
}
.drow.neg .dbar b {
  background: linear-gradient(270deg, #8f877f, #5c5650);
}
.drow.over .dbar b::after {
  content: '';
  position: absolute;
  top: -2px;
  bottom: -2px;
  right: 9px;
  width: 3px;
  background: #1a1714;
  transform: skewX(-24deg);
}
.drow.over.neg .dbar b::after {
  right: auto;
  left: 9px;
}
.dv {
  padding-right: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  color: var(--petal-hi);
}
.drow.neg .dv {
  color: var(--text-2);
}
.drow.unused .dl,
.drow.unused .dv,
.drow.off .dl,
.drow.off .dv {
  color: var(--text-3);
}
.drow.unused .dv,
.drow.off .dv {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.drow.unused .dl {
  opacity: 0.6;
}
.drow.off .dl {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 238, 224, 0.35);
}
.drow.total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  border-radius: 0;
}
.drow.total .dl {
  font-weight: 600;
  color: var(--petal-hi);
}
.drow.total .dbar b {
  height: 18px;
  margin-top: -9px;
  box-shadow: 0 0 26px -6px rgba(238, 109, 138, 0.75);
}
.drow.total.neg .dbar b {
  box-shadow: none;
}
.drow.total .dv {
  font-size: 14px;
  font-weight: 600;
}
.dec-verdict {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-right: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--petal-hi);
}
.dec-verdict.bad {
  color: var(--text-2);
}
.dec-verdict i {
  font-family: var(--serif);
  font-size: 1.08em;
  font-weight: 400;
}
.demo-foot {
  padding: 11px 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 24px 26px 24px;
}
.stat-wide {
  grid-column: span 2;
}
.stat-full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 48px;
  align-items: end;
}
.stat-full .cmp-bars {
  padding-top: 0;
}
.stat-full .cmp-row {
  grid-template-columns: 112px minmax(0, 1fr) 44px;
}
.stat-value {
  margin-top: 14px;
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-value small {
  margin-left: 2px;
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-2);
}
.stat-text {
  margin-top: 12px;
  max-width: 480px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
  text-wrap: pretty;
}
.cmp-bars {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 20px;
}
.cmp-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--text-2);
}
.cmp-row .key {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmp-row .key i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}
.cmp-row.me .key {
  color: var(--text);
  font-weight: 600;
}
.cmp-row .bar {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 238, 224, 0.060);
  overflow: hidden;
}
.cmp-row .bar b {
  display: block;
  height: 100%;
  width: calc(var(--v) * 1%);
  border-radius: 4px;
  background: var(--c);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease);
}
.cmp-bars.in .bar b {
  transform: none;
}
.cmp-row .num {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.cmp-row.me .num {
  color: var(--text);
  font-weight: 600;
}
.sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.source {
  padding: 12px 12px 18px;
}
.source-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.source-tiles .ph {
  aspect-ratio: 1;
  border-radius: 12px;
}
.source-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px 28px;
  align-items: start;
  margin: 16px 8px 0;
}
.source h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 470;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.source .mono {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--petal-hi);
}
.source .d {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

}

.gallery-head {
  margin-bottom: 16px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gcard {
  padding: 10px 10px 12px;
}
.gq {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
}
.gname {
  margin: 14px 6px 10px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.14;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpreds {
  display: grid;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-sm);
  background: var(--well);
}
.gp {
  display: grid;
  grid-template-columns: 34px 56px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  padding: 5px 8px 5px 5px;
  border-radius: 10px;
}
.gp.me {
  background: var(--surface-2);
  box-shadow: 0 0 0 1px rgba(238, 109, 138, 0.22);
}
.gp .gtile {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background-color: var(--surface-2);
  background-repeat: no-repeat;
}
.gp .w {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.gp.me .w {
  color: var(--petal-hi);
}
.gp .nk {
  min-width: 0;
}
.gp .n {
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp .k {
  margin-top: 1px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-3);
  white-space: nowrap;
}
.gmore-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.cite-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px 56px;
  align-items: start;
}
.cite-title {
  font-size: clamp(26px, 2.9vw, 40px);
  line-height: 1.12;
  text-wrap: balance;
}
.cite-author {
  margin-top: 18px;
  font-weight: 600;
}
.cite-author span {
  white-space: nowrap;
}
.cite-author sup,
.cite-aff sup {
  margin-left: 1px;
  font-size: 0.66em;
  font-weight: 500;
  line-height: 0;
  color: var(--text-3);
}
.cite-aff sup {
  margin: 0 3px 0 0;
}
.cite-aff {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}
.cite .btn-row {
  margin-top: 20px;
}
.abstract {
  margin-top: 22px;
  border-top: 1px solid var(--line-2);
}
.abstract summary {
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
  cursor: pointer;
}
.abstract p {
  padding-bottom: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
}
.bibtex {
  overflow: hidden;
}
.bibtex-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.copy-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.3s;
}
.copy-btn:hover {
  border-color: var(--petal);
}
.bibtex pre {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.footer {
  margin-top: 24px;
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(24, 21, 18, 0.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 32px 64px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 520;
  letter-spacing: 0.04em;
}
.footer-brand img {
  width: 38px;
  height: 38px;
}
.footer-text {
  margin-top: 10px;
  max-width: 280px;
  color: var(--text-2);
  font-size: 14px;
}
.credits p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}
.credits .mini-label {
  margin-bottom: 10px;
  font-size: 10.5px;
  color: var(--text-3);
}
.credits a {
  color: var(--text);
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}
.credits details {
  margin-top: 12px;
  font-size: 13px;
}
.credits summary {
  color: var(--text-2);
  cursor: pointer;
}
.credit-list {
  max-height: 260px;
  margin-top: 10px;
  padding: 12px 14px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.pfigs {
  display: none;
}
.xp-btn {
  position: absolute;
  z-index: 4;
  top: 89px;
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(18, 16, 14, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  cursor: pointer;
  transition:
    border-color 0.3s,
    color 0.3s,
    background 0.3s;
}
.xp-btn:hover {
  border-color: var(--petal);
  color: var(--text);
}
.xp-btn[hidden] {
  display: none;
}
.xp-btn svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--petal-hi);
}
.xp-btn .x-close {
  display: none;
}
.hero.xp .xp-btn {
  border-color: rgba(238, 109, 138, 0.55);
  background: rgba(238, 109, 138, 0.1);
  color: var(--text);
}
.hero.xp .xp-btn .x-open {
  display: none;
}
.hero.xp .xp-btn .x-close {
  display: block;
}
.hero-stage.xp-can {
  cursor: pointer;
}
.hero.xp .hero-stage {
  cursor: crosshair;
}
.hero.xp .hero-stage.dragging {
  cursor: grabbing;
}
.xp-hint,
.xp-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.22s;
}
.xp-hint {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(238, 109, 138, 0.45);
  background: rgba(18, 16, 14, 0.84);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.xp-tip {
  padding: 7px 12px 8px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(18, 16, 14, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}
.xp-hint.on,
.xp-tip.on {
  opacity: 1;
}
.xp-tip .n {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.2;
  color: var(--text);
}
.xp-tip .k {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.xp-tip.few .k {
  color: var(--petal-hi);
}
.story > * {
  transition:
    opacity 0.45s var(--ease),
    visibility 0.45s;
}
.story.xp-on > :not(.xp-card) {
  opacity: 0;
  visibility: hidden;
}
.xp-card {
  position: absolute;
  inset: 0;
  padding: inherit;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
}
.story.xp-on .xp-card {
  opacity: 1;
  visibility: visible;
}
.xp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
}
.xp-k {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petal-hi);
}
.xp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.xp-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.xp-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.xp-legend .many {
  background: rgba(204, 189, 173, 0.75);
}
.xp-legend .medium {
  background: rgb(240, 224, 209);
}
.xp-legend .few {
  background: rgb(250, 115, 153);
}
.xp-legend .view {
  box-shadow: inset 0 0 0 1.5px rgb(255, 189, 158);
}
.xp-body {
  min-height: 0;
  display: grid;
  align-content: center;
}
.xp-intro p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.xp-intro b {
  color: var(--text);
  font-weight: 600;
}
.xp-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.xp-fk,
.xp-esc {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.xp-fk {
  margin-right: 3px;
}
.xp-esc {
  margin-left: auto;
}
.xp-foot button {
  padding: 4px 11px 5px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 238, 224, 0.03);
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.xp-foot button:hover {
  border-color: var(--petal);
  background: rgba(238, 109, 138, 0.08);
}
.xp-sp {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 232px;
  gap: 18px;
  align-items: center;
  animation: xp-in 0.35s var(--ease);
}
@keyframes xp-in {
  from {
    opacity: 0.25;
  }
}
.xp-sp .ph {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background-color: #141210;
}
.xp-sp .ph.empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-2);
}
.xp-sp .ph.empty span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-3);
}
.xp-txt {
  min-width: 0;
}
.xp-g {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.xp-sp.few .xp-g {
  color: var(--petal-hi);
}
.xp-nm {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.12;
  color: var(--text);
}
.xp-n {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-2);
}
.xp-rank {
  margin: 0;
}
.xp-rank svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.xp-rank .ar {
  fill: rgba(255, 238, 224, 0.05);
}
.xp-rank .ln {
  fill: none;
  stroke: rgba(255, 238, 224, 0.45);
  stroke-width: 1.2;
}
.xp-rank .ln.tail {
  stroke: var(--petal);
}
.xp-rank .mk line {
  stroke: rgba(255, 238, 224, 0.55);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.xp-rank .mk circle {
  fill: var(--text);
  stroke: var(--bg);
  stroke-width: 2;
}
.xp-rank .mk.tail circle {
  fill: var(--petal-hi);
}
.xp-rank figcaption,
.xp-rk {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.xp-rank figcaption {
  margin-top: 5px;
}
.xp-rk {
  justify-content: flex-end;
  gap: 0;
  margin-bottom: 6px;
  white-space: pre;
}
.xp-rk b {
  font-weight: 500;
  color: var(--text);
}
@media (min-width: 1280px) {
  .hero-shade {
    transition: opacity 0.8s var(--ease);
  }
  .hero.xp .hero-shade {
    opacity: 0;
  }
  .hero.xp .hero-copy > * {
    opacity: 0;
    transform: translate3d(-14px, 0, 0);
    filter: blur(4px);
    pointer-events: none;
  }
}

@media (max-width: 1340px) {
  .story-steps .lab {
    letter-spacing: 0.04em;
  }
  .gp {
    grid-template-columns: 30px 46px minmax(0, 1fr) 18px;
    gap: 8px;
  }
  .gp .gtile {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 1180px) {
  .atlas-body {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .demo-flow {
    grid-template-columns: 250px minmax(0, 1fr) 280px;
  }
  .decision {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .dec-poles,
  .drow {
    grid-template-columns: 140px minmax(0, 1fr) 58px;
    gap: 12px;
  }
  .ev {
    grid-template-columns: 132px 38px minmax(0, 1fr) 20px;
    gap: 10px;
  }
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tail-nums div {
    padding: 2px 18px;
  }
  .method-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .cite-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 1279px) {
  .hero {
    align-items: start;
    min-height: 0;
    grid-template-rows: auto minmax(380px, 52svh) auto;
  }
  .hero-content {
    grid-row: 1;
    padding: 118px 0 0;
  }
  .hero-stage {
    position: relative;
    inset: auto;
    grid-row: 2;
    height: 100%;
  }
  .hero-shade {
    display: none;
  }
  .story {
    position: relative;
    grid-row: 3;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 var(--gutter) 44px;
  }
  .hud-frame,
  .corner {
    display: none;
  }
  .xp-btn {
    top: 12px;
  }
  .story.xp-on > :not(.xp-card) {
    display: none;
  }
  .xp-card {
    position: relative;
    inset: auto;
    padding: 0;
    display: none;
    gap: 14px;
  }
  .story.xp-on .xp-card {
    display: grid;
    animation: xp-in 0.4s var(--ease);
  }
}
@media (max-width: 1000px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .menu-btn {
    display: block;
    margin-left: auto;
  }
  .nav.is-open .nav-inner {
    flex-wrap: wrap;
    border-radius: 26px;
  }
  .nav.is-open .nav-links {
    display: grid;
    width: 100%;
    order: 3;
    padding: 6px 0 4px;
  }
  .nav.is-open .nav-links a {
    padding: 10px 12px;
  }
  .split-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .split-head .lede {
    justify-self: start;
    padding-bottom: 0;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teaser {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tail-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .tail-nums div:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .atlas-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .atlas-side,
  .atlas[data-ds='orchid2024'] .atlas-side {
    position: static;
    grid-template-columns: minmax(0, 1fr);
  }
  .atlas[data-ds='orchid2024'] .atlas-panel {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .atlas[data-ds='orchid2024'] .ap-rec {
    grid-column: 2;
    grid-row: auto;
  }
  .atlas-panel {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0 14px;
  }
  .atlas-panel .ap-photo {
    grid-row: span 4;
  }
  .ap-name {
    margin-top: 2px;
  }
  .method-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-content: center;
  }
  .method-card {
    min-height: 0;
    padding: 18px 20px 14px;
  }
  .method-steps {
    min-height: 136px;
  }
  .mstep h3 {
    margin: 6px 0 8px;
    font-size: 24px;
  }
  .mstep p:last-child {
    font-size: 14px;
    line-height: 1.55;
  }
  .method-progress {
    margin-top: 10px;
  }
  .method-dots button {
    width: 28px;
    height: 28px;
  }
  .stage-wrap {
    width: min(100%, calc((100svh - 400px) * 1.6));
    border-radius: 18px;
  }
  .demo-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .decision {
    grid-template-columns: minmax(0, 1fr);
  }
  .dec-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dec-tau {
    max-width: 460px;
  }
  .flow-col + .flow-col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .flow-col + .flow-col::before {
    left: 50%;
    top: -11px;
    transform: translateX(-50%) rotate(90deg);
  }
  .query-photo {
    max-width: 320px;
  }
  .presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .preset {
    text-align: center;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sources,
  .cite-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .brand-sub {
    display: none;
  }
  .tfig figcaption b {
    font-size: 17px;
  }
  .tv {
    padding: 9px 12px 9px 9px;
    gap: 8px;
  }
  .tv .who {
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }
  .tv .ans {
    font-size: 14px;
  }
  .tfig figcaption small {
    font-size: 11.5px;
  }
  .tph .tag {
    left: 6px;
    padding: 4px 7px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .tph .tag.top {
    top: 6px;
  }
  .tph .tag:not(.top) {
    bottom: 6px;
  }
  .when b {
    font-size: 32px;
  }
  .corner,
  .hud-long {
    display: none;
  }
  .story {
    padding: 12px 14px 14px;
  }
  .story-steps .lab .t {
    display: none;
  }
  .story-ans {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-cap {
    font-size: 14.5px;
  }
  .hero {
    grid-template-rows: none;
  }
  .hero-content,
  .hero-content > .wrap,
  .hero-copy {
    display: contents;
  }
  .hero-copy > * {
    margin-left: var(--gutter);
    margin-right: var(--gutter);
  }
  .hero-copy > .eyebrow {
    order: 1;
    margin-top: 122px;
  }
  .hero-title {
    order: 2;
    margin-top: 14px;
  }
  .hero-tagline {
    order: 3;
    margin-top: 16px;
  }
  .hero-author {
    order: 3;
    margin-top: 10px;
  }
  .hero-stage {
    order: 4;
    grid-row: auto;
    height: max(380px, 54svh);
    margin-top: 4px;
  }
  .story {
    order: 5;
    grid-row: auto;
    margin-bottom: 28px;
  }
  .hero-copy > .btn-row {
    order: 6;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .btn-row .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  .hero-intro {
    order: 7;
    margin-top: 22px;
  }
  .hero-stats {
    order: 8;
    margin-top: 28px;
    margin-bottom: 44px;
  }
  .hero-stats div {
    padding: 0 14px;
  }
  .hero-stats b {
    font-size: 22px;
  }
  .hero-stats span {
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }
  .tail-plot .axis b,
  .tail-plot .hud span + span {
    display: none;
  }
  .tail-nums span {
    font-size: 11.5px;
  }
  .gq .tag {
    left: 6px;
    bottom: 6px;
    padding: 4px 7px;
    font-size: 9.5px;
    letter-spacing: 0.06em;
  }
  .cite-title {
    font-size: 24px;
  }
  .hud-tag {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .teaser,
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat-wide {
    grid-column: auto;
  }
  .stat-full {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat-full .cmp-bars {
    padding-top: 20px;
  }
  .tail-nums b {
    font-size: 26px;
  }
  .tail-nums div {
    padding: 2px 14px;
  }
  .tail-card {
    padding: 16px 16px 14px;
  }
  .atlas {
    padding: 12px;
  }
  .atlas-search {
    margin-left: 0;
    min-width: 0;
    width: 100%;
  }
  .atlas-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 4px;
  }
  .atlas-grid {
    min-width: calc(var(--cols, 32) * 15px);
  }
  .atlas-panel {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .ev {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
  }
  .ev .who {
    grid-column: 1 / -1;
    margin-bottom: -4px;
    font-size: 12px;
    color: var(--text-2);
  }
  .flow-col {
    padding: 18px 16px;
  }
  .presets {
    grid-template-columns: minmax(0, 1fr);
  }
  .preset {
    text-align: left;
  }
  .source-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .source-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .source-tiles .ph:nth-child(5) {
    display: none;
  }
  .dec-side,
  .dec-chart {
    padding: 18px 14px 18px;
  }
  .dec-poles {
    grid-template-columns: minmax(0, 1fr);
  }
  .dec-axis {
    display: none;
  }
  .poles {
    gap: 10px;
  }
  .pole {
    gap: 8px;
  }
  .pole .ph {
    width: 40px;
    height: 40px;
  }
  .pole .pn {
    font-size: 15px;
  }
  .pole .pc {
    font-size: 10.5px;
    line-height: 1.3;
    white-space: normal;
  }
  .drow {
    grid-template-columns: 92px minmax(0, 1fr) 46px;
    gap: 8px;
  }
  .dl {
    padding-left: 4px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }
  .dv {
    padding-right: 2px;
    font-size: 11.5px;
  }
  .drow.unused .dv,
  .drow.off .dv {
    font-size: 9px;
    letter-spacing: 0.02em;
  }
  .dec-verdict {
    padding-right: 2px;
    font-size: 13px;
  }
  .stage-wrap {
    width: 100%;
    aspect-ratio: auto;
    height: clamp(300px, calc(100svh - 400px), 440px);
  }
  .stage-hud {
    left: 14px;
    right: 14px;
    gap: 12px;
  }
  .stage-hud .hud {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .stage-hud .hud:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .stage {
    display: none;
  }
  .pfigs {
    display: block;
    position: absolute;
    inset: 38px 0 0;
  }
  .pfig {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
    padding: 2px 14px 14px;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.45s var(--ease),
      transform 0.6s var(--ease);
    pointer-events: none;
  }
  .pfig.on {
    opacity: 1;
    transform: none;
  }
  .pf-cap {
    font-family: var(--mono);
    font-size: 10.5px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--text-3);
  }
  .pf-cap b {
    font-weight: 500;
    color: var(--petal-hi);
  }
  .pf-trio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .pf-sp .ph {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
  }
  .pf-sp.rare .ph {
    box-shadow: 0 0 0 2px var(--petal);
  }
  .pf-sp .n {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
  }
  .pf-sp.rare .n {
    color: var(--petal-hi);
  }
  .pf-sp .s {
    font-family: var(--serif);
    font-size: 13px;
    color: var(--text-2);
  }
  .pf-curve {
    display: block;
    width: 100%;
    height: 54px;
  }
  .pf-row {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .pf-src .ph {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
  }
  .pf-src .pf-cap {
    margin-top: 6px;
  }
  .pf-views {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .pf-views .view {
    width: auto;
    height: auto;
    aspect-ratio: 1;
    border-radius: 8px;
  }
  .pf-views .view:nth-child(n + 7) {
    display: none;
  }
  .pf-eq {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .pf-eq div {
    display: grid;
    gap: 2px;
  }
  .pf-eq b {
    font-size: 20px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .pf-eq span {
    font-size: 10.5px;
    line-height: 1.3;
    color: var(--text-3);
  }
  .pf-eq i {
    padding-bottom: 20px;
    font-style: normal;
    color: var(--text-3);
  }
  .pf-eq .res b {
    color: var(--petal-hi);
  }
  .pf-mem {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
  }
  .pf-mem .ph {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 7px;
  }
  .pf-mem .ph.rare {
    box-shadow: 0 0 0 1.5px var(--petal);
  }
  .pf-mem .ph.v::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--petal);
    box-shadow: 0 0 0 1.5px var(--bg);
  }
  .pf-uses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .pf-use {
    padding: 10px 12px 11px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: rgba(255, 238, 224, 0.03);
  }
  .pf-use .k {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--petal-hi);
  }
  .pf-use .t {
    margin-top: 3px;
    font-family: var(--serif);
    font-size: 16px;
  }
  .pf-use .big {
    margin-top: 4px;
    font-size: 21px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .pf-use .d {
    margin-top: 2px;
    font-size: 10.5px;
    line-height: 1.35;
    color: var(--text-3);
  }
  .pf-in {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .pf-in .ph {
    flex: none;
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }
  .pf-enc {
    padding: 8px 11px 9px;
    border-radius: 12px;
    border: 1px solid rgba(238, 109, 138, 0.3);
    background: rgba(238, 109, 138, 0.05);
  }
  .pf-enc .nm {
    font-family: var(--serif);
    font-size: 16px;
  }
  .pf-enc .nm span {
    margin-left: 8px;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.04em;
    color: var(--text-3);
  }
  .pf-enc .outs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
  }
  .pf-enc .op {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    font-size: 11px;
    color: var(--text-2);
  }
  .pf-oh,
  .pf-op {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, 52px);
    gap: 6px;
    align-items: center;
  }
  .pfig .pf-oh + .pf-op {
    margin-top: -4px;
  }
  .pfig .pf-op + .pf-op {
    margin-top: -7px;
  }
  .pf-oh span {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-3);
  }
  .pf-oh span:first-child {
    text-align: left;
  }
  .pf-oh i {
    display: block;
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-2);
  }
  .pf-oh .rare,
  .pf-oh .rare i {
    color: var(--petal-hi);
  }
  .pf-op .nm {
    font-size: 12px;
    line-height: 1.2;
  }
  .pf-op .nm small {
    display: block;
    font-size: 10px;
    color: var(--text-3);
  }
  .pf-op .cell {
    position: relative;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 238, 224, 0.05);
    overflow: hidden;
  }
  .pf-op .cell b {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc(var(--p) * 100%);
    background: rgba(255, 238, 224, 0.14);
  }
  .pf-op .cell.ok {
    box-shadow: inset 0 0 0 1px var(--petal);
  }
  .pf-op .cell.ok b {
    background: rgba(238, 109, 138, 0.5);
  }
  .pf-op .cell.bad {
    box-shadow: inset 0 0 0 1px var(--line-3);
  }
  .pf-op .cell.bad b {
    background: rgba(255, 238, 224, 0.3);
  }
  .pf-op .cell em {
    position: relative;
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    font-style: normal;
    line-height: 22px;
    text-align: center;
    color: var(--text-2);
  }
  .pf-sum {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .pf-sum .sigma {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--grad);
    color: #1a0f10;
    font-size: 13px;
    font-weight: 700;
  }
  .pf-bars {
    display: grid;
    gap: 10px;
  }
  .pf-bars .fbar .nm {
    font-size: 15px;
  }
  .pf-res {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(238, 109, 138, 0.4);
    background: rgba(238, 109, 138, 0.06);
  }
  .pf-res .ph {
    flex: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }
  .pf-res .rn {
    font-family: var(--serif);
    font-size: 17px;
  }
  .pf-res .rp {
    margin-top: 2px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--petal-hi);
  }
  .bibtex pre {
    padding: 14px 14px 16px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 11.5px;
  }
  .bibtex .bib-v {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 11ch - 2px);
    white-space: normal;
    text-wrap: balance;
  }
  .bibtex .bib-v .nw {
    white-space: nowrap;
  }
  .gallery {
    display: flex;
    gap: 12px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar {
    display: none;
  }
  .gcard {
    flex: 0 0 82%;
    padding: 8px 8px 10px;
    scroll-snap-align: start;
  }
  .gname {
    margin: 12px 6px 9px;
    font-size: 18px;
  }
  .gp {
    grid-template-columns: 28px 44px minmax(0, 1fr) 18px;
    gap: 8px;
  }
  .gp .w {
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }
  .gp .gtile {
    width: 28px;
    height: 28px;
  }
  .footer-base {
    flex-direction: column;
  }
}
@media (max-height: 800px) and (min-width: 1001px) {
  .ap-photo {
    aspect-ratio: 4 / 3;
  }
  .atlas-ctrl {
    padding: 12px 16px 14px;
  }
  .when b {
    font-size: 32px;
  }
  .atlas-range {
    margin-top: 14px;
  }
}
@media (max-height: 940px) and (min-width: 1280px) {
  .hero-content {
    padding: 128px 0 64px;
  }
}
@media (max-height: 800px) and (min-width: 1280px) {
  .hero-content {
    padding: 100px 0 24px;
  }
  .hero-title {
    font-size: clamp(64px, 17.5vh, 150px);
  }
  .hero-tagline {
    margin-top: 18px;
    font-size: clamp(20px, 3.3vh, 27px);
  }
  .hero-intro {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.62;
  }
  .hero-author {
    margin-top: 14px;
  }
  .hero .btn-row {
    margin-top: 20px;
  }
  .hero-stats {
    margin-top: 24px;
  }
  .story {
    bottom: 20px;
    padding: 12px 16px 13px;
  }
  .story-cap {
    margin-top: 10px;
    font-size: 14.5px;
  }
  .story-ans {
    margin-top: 10px;
  }
  .hero-stats b {
    font-size: 23px;
  }
  .hud-tag,
  .hud-frame {
    top: 88px;
  }
  .corner.tl,
  .corner.tr {
    top: 78px;
  }
  .corner.bl,
  .corner.br {
    bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.stage circle.node {
  fill: var(--petal);
}

.stage path.trunk {
  fill: none;
  stroke: var(--petal);
  stroke-width: 1.3;
}

@media (max-height: 800px) and (min-width: 1280px) {
  .xp-card {
    gap: 8px;
  }
  .xp-sp .ph {
    width: 72px;
    height: 72px;
  }
  .xp-sp {
    grid-template-columns: 72px minmax(0, 1fr) 210px;
  }
  .xp-nm {
    margin-top: 3px;
    font-size: 19px;
  }
  .xp-n {
    margin-top: 4px;
  }
}
@media (max-width: 680px) {
  .xp-btn {
    top: 10px;
    padding: 7px 12px 7px 9px;
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }
  .xp-sp {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 14px;
  }
  .xp-sp .ph {
    width: 72px;
    height: 72px;
  }
  .xp-nm {
    font-size: 19px;
  }
  .xp-rank {
    grid-column: 1 / -1;
    max-width: 232px;
  }
  .xp-intro p {
    font-size: 14px;
  }
  .xp-legend {
    gap: 4px 10px;
    font-size: 9px;
  }
}
