@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/* Animated · Stage — tokens follow PROJECT_CONCEPTS.txt (Animated: blue family only). */
:root {
  --paper: #fff;
  --ink: #16181d;
  --muted: #5b616b;
  --line: #e6e8ec;
  --tint: #eef2ff;
  --blue: #2854ff;
  --ultra: #1a33c7;
  --mid: #5c7cff;
  --signal: #8fb0ff;
  --deep: #0b1440;
  --deep-2: #132057;
  --code-bg: #0e1838;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1200px;
  --header: 64px;
  --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--sticky-top, var(--header)) + 24px); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.7 var(--sans); overflow-wrap: break-word; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.03em; text-wrap: balance; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: var(--mono); font-size: 0.9em; }
p code, li code, td code, h2 code, .lead code, span code { padding: 0.08em 0.36em; border-radius: 6px; background: var(--tint); color: var(--ultra); }
img { display: block; }
.icon { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: #c9d6ff; color: var(--ink); }
/* Dark code and hero surfaces keep light text readable while selected. */
.code-block ::selection, .wb-code ::selection, .usage code::selection, .usage code ::selection, .api-item pre::selection, .api-item pre ::selection, .hero .install ::selection { background: #3552d4; color: #fff; }
.install.code-block ::selection { background: #c9d6ff; color: var(--ink); }
.hero .install.code-block ::selection { background: #3552d4; color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; inset-inline-start: 12px; z-index: 100; padding: 10px 18px; border-radius: 10px; background: var(--ink); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.inner { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.eyebrow, .kicker { font: 600 0.875rem/1.5 var(--mono); letter-spacing: 0.02em; color: var(--ultra); }
.lead { max-width: 68ch; margin-top: 16px; font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); color: var(--muted); }
.note { color: var(--muted); font-size: 0.875rem; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 650; border: 1px solid transparent; transition: background-color .16s, color .16s, border-color .16s; }
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover { background: var(--ultra); }
.button.ghost { border-color: rgba(255,255,255,.34); color: #fff; }
.button.ghost:hover { border-color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ultra); font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
[dir="rtl"] .icon { transform: scaleX(-1); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; min-height: var(--header); padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.25rem; letter-spacing: -0.03em; min-height: 44px; }
.version { padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; font: 500 0.75rem/1.4 var(--mono); color: var(--muted); letter-spacing: 0; }
.top-nav { position: relative; display: flex; align-items: center; gap: 2px; min-width: 0; }
.top-nav a { flex: none; white-space: nowrap; position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; color: var(--muted); transition: color .16s; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--ink); }
.nav-pill { position: absolute; top: 50%; inset-inline-start: 0; left: 0; height: 38px; margin-top: -19px; border-radius: 999px; background: var(--tint); opacity: 0; pointer-events: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.search-trigger { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 0.875rem; }
.search-trigger kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; font: 0.75rem var(--mono); }
.search-trigger:hover { border-color: var(--signal); color: var(--ink); }
.language-control { white-space: nowrap; position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.language-control select { max-width: 130px; border: 0; background: transparent; font-size: 0.875rem; cursor: pointer; }

/* Footer */
.site-footer { margin-top: 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; padding-block: 48px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand p { margin-top: 4px; color: var(--muted); font-size: 0.875rem; }
.site-footer nav { display: grid; gap: 6px; align-content: start; font-size: 0.9375rem; }
.site-footer nav span { color: var(--muted); font-size: 0.875rem; }
.site-footer nav a:hover { color: var(--ultra); }

/* Bands */
.band { padding-block: clamp(72px, 9vw, 120px); }
.band.ice { background: var(--tint); }
.section-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.section-head h2, .promise-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 750; }
.section-head p, .section-lead { color: var(--muted); font-size: 1.0625rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--deep); color: #fff; min-height: min(88vh, 860px); display: flex; align-items: center; isolation: isolate; }
.hero-stage { position: absolute; inset: 0; z-index: -1; }
.hero-stage > div, .stage-root { position: absolute; inset: 0; }
.hero-inner { position: relative; padding-block: 96px; pointer-events: none; }
.hero-inner > * { pointer-events: auto; max-width: 600px; }
.hero .eyebrow { color: var(--signal); }
.hero h1 { margin-top: 18px; font-size: clamp(2.375rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.045em; }
.hero .lead { color: #c9d4f6; }
.hero .lead code { background: rgba(143,176,255,.16); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-install { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero-install > span { color: #9fb0e6; font-size: 0.875rem; }
.hero .install { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.stage-caption { margin-top: 28px; color: #8fa0d8; font-size: 0.875rem; }
.field-tilt { position: absolute; top: 50%; inset-inline-end: max(var(--gutter), calc((100% - var(--max)) / 2)); translate: 0 -50%; transform-style: preserve-3d; }
.field { position: relative; transform-style: preserve-3d; }
.cell { position: absolute; width: 58px; height: 58px; display: grid; place-items: center; transform-style: preserve-3d; }
.shape { display: block; width: 34px; height: 34px; }
.shape.wide { width: 46px; height: 20px; }
/* The logo's three strokes: parallel lanes travelling up-right at 45° through the field. */
.streak { position: absolute; top: 100%; left: 42%; width: 180px; height: 22px; border-radius: 3px; background: #fff; opacity: .9; }
.streak-1 { opacity: .55; width: 120px; }
.streak-2 { opacity: .3; width: 80px; }
.stage-chip { position: absolute; bottom: 24px; inset-inline-end: max(var(--gutter), calc((100% - var(--max)) / 2)); display: flex; flex-wrap: wrap; gap: 6px; font: 500 0.8125rem/1.3 var(--mono); }
.stage-chip > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #d6e0ff; }
.stage-chip b { color: #fff; font-weight: 700; }

/* Install line + code blocks */
.install { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 48px; padding: 0 6px 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.install pre { flex: 1; min-width: 0; margin: 0; font: 0.9375rem var(--mono); white-space: pre; overflow-x: auto; }
.install-prompt { color: var(--signal); font-family: var(--mono); }
.install .copy-button { margin-inline-start: 4px; }
.copy-button { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid rgba(143,176,255,.35); border-radius: 999px; background: transparent; color: inherit; font-size: 0.8125rem; font-weight: 600; }
.copy-button:hover { border-color: var(--signal); }
.code-block { position: relative; margin-block: 20px; border-radius: 14px; background: var(--code-bg); color: #e6ecff; overflow: hidden; }
.code-block figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 16px; border-bottom: 1px solid rgba(143,176,255,.14); font: 0.8125rem var(--mono); color: #9fb0e6; }
.code-block pre { padding: 18px 20px; overflow-x: auto; font: 0.875rem/1.7 var(--mono); tab-size: 2; }
.install.code-block { margin: 0; background: #fff; color: var(--ink); }
.install.code-block pre { padding: 0; }
.hero .install.code-block { background: rgba(255,255,255,.07); color: #fff; }
.hljs { color: #e6ecff; }
.hljs-keyword, .hljs-built_in, .hljs-selector-tag { color: #8fb0ff; }
.hljs-string, .hljs-attr, .hljs-template-variable, .hljs-selector-attr { color: #b9f0d6; }
.hljs-title, .hljs-title.function_, .hljs-name { color: #ffffff; font-weight: 600; }
.hljs-number, .hljs-literal, .hljs-attribute { color: #ffd9a8; }
.hljs-comment { color: #7f8cb8; font-style: italic; }
.hljs-tag, .hljs-punctuation, .hljs-operator { color: #b8c4ef; }
.hljs-variable, .hljs-params, .hljs-property { color: #d6e0ff; }
.hljs-selector-class, .hljs-selector-id { color: #8fb0ff; }
.install .hljs, .install .hljs * { color: var(--ink); font-weight: 500; }
.hero .install .hljs, .hero .install .hljs * { color: #fff; }

/* Metrics */
.metrics-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 36px; }
.metrics-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 750; }
.metrics-head p { max-width: 560px; color: var(--muted); font-size: 0.9375rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.metrics > li { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px #dfe5fb; }
.metric-value { display: inline-flex; align-items: baseline; gap: 6px; font: 800 clamp(2.5rem, 5vw, 3.5rem)/1 var(--sans); letter-spacing: -0.04em; color: var(--blue); }
.metric-value small { font-size: 1.125rem; font-weight: 700; color: var(--ultra); letter-spacing: 0; }
.metric-label { font-weight: 700; }
.metrics p { color: var(--muted); font-size: 0.9375rem; }

/* Promises */
.promise { position: relative; overflow: hidden; border-top: 1px solid var(--line); isolation: isolate; }
.streaks { position: absolute; top: 56px; inset-inline-end: 0; z-index: -1; width: min(52vw, 640px); height: 190px; pointer-events: none; }
.streaks span { position: absolute; right: 0; height: 34px; border-radius: 3px; background: var(--tint); }
.streaks span:nth-child(1) { top: 0; width: 420px; }
.streaks span:nth-child(2) { top: 62px; width: 300px; background: #dfe7ff; }
.streaks span:nth-child(3) { top: 124px; width: 200px; background: var(--signal); opacity: .5; }
@media (max-width: 760px) { .streaks { display: none; } }
.promise-head { display: grid; gap: 14px; max-width: 780px; margin-bottom: 36px; }
.kicker { color: var(--blue); }
.points { display: grid; gap: 10px; margin-top: 8px; padding: 0; list-style: none; }
.points li { position: relative; padding-inline-start: 28px; }
.points li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 14px; height: 6px; background: var(--blue); transform: skewX(-38deg); border-radius: 1px; }
.promise-code { margin-top: 32px; max-width: 820px; }
.promise-code h3 { font-size: 1.125rem; }

/* Workbench */
.workbench { margin-block: 28px; }
.workbench.wide { margin-block: 0; }
.island-fallback.workbench-fallback { display: grid; place-items: center; min-height: calc(var(--wb-height) + 64px); border: 1px solid var(--line); border-radius: 18px; background: #fafbff; color: var(--muted); }
.wb { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.wb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fafbff; }
.wb-tabs, .file-tabs, .segmented, .filter-tabs, .chorus-tabs { position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: #eef1f8; }
.wb-tab, .file-tab, .segment, .filter-tab, .chorus-tab { position: relative; z-index: 1; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 0.875rem; font-weight: 650; color: var(--muted); }
.wb-tab-highlight, .file-tab-highlight, .segment-highlight, .filter-highlight { border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(11,20,64,.12), 0 0 0 1px rgba(11,20,64,.06); }
.wb-tab .is-selected, .segment .is-selected, .filter-tab .is-selected { color: var(--ink); }
.file-tab .is-selected { color: #fff; }
.wb-replay { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.875rem; font-weight: 600; }
.wb-replay svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wb-replay:hover { border-color: var(--signal); color: var(--ultra); }
.wb-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.wb-main { position: relative; display: grid; align-content: center; min-width: 0; background: #fff; }
.wb-preview { position: relative; }
.wb-preview iframe { display: block; width: 100%; border: 0; background: #fff; }
.wb-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 0.875rem; background: #fff; }
.wb-error { padding: 20px; color: #b3261e; }
.wb-error pre { white-space: pre-wrap; font-size: 0.8125rem; }
.wb-code { display: grid; background: var(--code-bg); min-height: 100%; }
.wb-code[hidden], .wb-preview[hidden] { display: none; }
.wb-files { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(143,176,255,.14); }
.wb-code .file-tabs { background: rgba(255,255,255,.06); }
.wb-code .file-tab { color: #9fb0e6; font-family: var(--mono); font-size: 0.8125rem; }
.wb-code .file-tab-highlight { background: rgba(143,176,255,.18); box-shadow: none; }
.wb-copy { min-height: 34px; padding: 0 14px; border: 1px solid rgba(143,176,255,.35); border-radius: 999px; background: transparent; color: #e6ecff; font-size: 0.8125rem; font-weight: 600; }
.wb-source { margin: 0; max-height: 560px; padding: 18px 20px; overflow: auto; color: #e6ecff; font: 0.8125rem/1.7 var(--mono); tab-size: 2; }
.wb-panel { display: grid; align-content: start; gap: 18px; padding: 18px; border-inline-start: 1px solid var(--line); background: #fafbff; }
.wb-panel-title { font: 600 0.8125rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.control { display: grid; gap: 8px; transition: opacity .16s; }
.control.is-off { opacity: .38; }
.control-label { display: grid; gap: 1px; }
.control-label code { justify-self: start; padding: 0; background: none; color: var(--ink); font-weight: 700; font-size: 0.875rem; }
.control-label span { color: var(--muted); font-size: 0.8125rem; line-height: 1.4; }
.range { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.range input { width: 100%; accent-color: var(--blue); min-height: 28px; }
.range output { min-width: 64px; padding: 2px 8px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); font: 600 0.8125rem var(--mono); text-align: end; color: var(--ultra); }
.segmented .segment { min-height: 32px; padding: 0 12px; font-family: var(--mono); font-size: 0.8125rem; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px 0 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 0.8125rem var(--mono); justify-self: start; }
.switch-knob { width: 34px; height: 22px; border-radius: 999px; background: #d7dbe6; position: relative; transition: background .16s; }
.switch-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.3,1.4,.6,1); }
.switch[aria-checked="true"] .switch-knob { background: var(--blue); }
.switch[aria-checked="true"] .switch-knob::after { transform: translateX(12px); }
.usage { display: grid; gap: 6px; padding-top: 14px; border-top: 1px dashed #d4daea; }
.usage-title { color: var(--muted); font-size: 0.8125rem; }
.usage code { display: grid; padding: 12px 14px; border-radius: 12px; background: var(--code-bg); color: #e6ecff; font-size: 0.8125rem; line-height: 1.7; white-space: pre; overflow-x: auto; }
.usage .tag { color: #8fb0ff; }
.usage .attr { color: #d6e0ff; }
.usage .val { color: #ffd9a8; }
.usage .prop { border-radius: 4px; transition: background-color .5s; }
.usage .prop.changed { background: rgba(92,124,255,.42); transition: none; }

/* Example cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; list-style: none; }
.example-card > a { display: grid; gap: 8px; height: 100%; padding: 14px 14px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.example-card > a:hover { border-color: #c9d6ff; }
.example-card strong { margin-top: 8px; padding-inline: 6px; font-size: 1.125rem; }
.card-body { padding-inline: 6px; color: var(--muted); font-size: 0.9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-inline: 6px; }
.chips code, .chips a code { padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--ultra); font-size: 0.75rem; }
.thumb { position: relative; display: block; height: 170px; border-radius: 14px; background: var(--deep); overflow: hidden; --wave: sin(calc(var(--clock, 0) * 1turn)); }
.thumb i { position: absolute; display: block; background: var(--mid); }
/* dock */
.thumb-magnetic-dock i { bottom: 34px; width: 30px; height: 30px; border-radius: 9px; background: #fff; }
.thumb-magnetic-dock i:nth-child(1) { left: calc(50% - 118px); scale: calc(1 + max(0, cos(calc((var(--clock, 0) - 0.0) * 1turn))) * .45); }
.thumb-magnetic-dock i:nth-child(2) { left: calc(50% - 78px); background: var(--signal); scale: calc(1 + max(0, cos(calc((var(--clock, 0) - 0.12) * 1turn))) * .45); }
.thumb-magnetic-dock i:nth-child(3) { left: calc(50% - 38px); background: var(--mid); scale: calc(1 + max(0, cos(calc((var(--clock, 0) - 0.24) * 1turn))) * .45); }
.thumb-magnetic-dock i:nth-child(4) { left: calc(50% + 2px); background: var(--blue); scale: calc(1 + max(0, cos(calc((var(--clock, 0) - 0.36) * 1turn))) * .45); }
.thumb-magnetic-dock i:nth-child(5) { left: calc(50% + 42px); scale: calc(1 + max(0, cos(calc((var(--clock, 0) - 0.48) * 1turn))) * .45); }
.thumb-magnetic-dock i:nth-child(6) { left: calc(50% + 82px); background: var(--signal); scale: calc(1 + max(0, cos(calc((var(--clock, 0) - 0.6) * 1turn))) * .45); }
.thumb-magnetic-dock i { transform-origin: bottom center; }
/* deck */
.thumb-swipe-deck i { top: 26px; left: calc(50% - 54px); width: 108px; height: 124px; border-radius: 16px; }
.thumb-swipe-deck i:nth-child(1) { background: var(--mid); translate: 0 16px; scale: .88; }
.thumb-swipe-deck i:nth-child(2) { background: var(--signal); translate: 0 8px; scale: .94; }
.thumb-swipe-deck i:nth-child(3) { background: var(--blue); translate: calc(var(--wave) * 90px) 0; rotate: calc(var(--wave) * 16deg); box-shadow: 0 0 0 2px #fff inset; }
.thumb-swipe-deck i:nth-child(n+4) { display: none; }
/* gallery */
.thumb-shared-gallery i { width: 52px; height: 44px; border-radius: 10px; background: var(--mid); }
.thumb-shared-gallery i:nth-child(1) { top: 24px; left: calc(50% - 88px); }
.thumb-shared-gallery i:nth-child(2) { top: 24px; left: calc(50% - 26px); background: var(--signal); }
.thumb-shared-gallery i:nth-child(3) { top: 24px; left: calc(50% + 36px); background: #fff; }
.thumb-shared-gallery i:nth-child(4) { top: 80px; left: calc(50% - 88px); background: var(--signal); }
.thumb-shared-gallery i:nth-child(5) { top: 80px; left: calc(50% + 36px); }
.thumb-shared-gallery i:nth-child(6) { top: calc(80px - max(0, var(--wave)) * 62px); left: calc(50% - 26px - max(0, var(--wave)) * 62px); width: calc(52px + max(0, var(--wave)) * 124px); height: calc(44px + max(0, var(--wave)) * 62px); background: var(--blue); box-shadow: 0 0 0 2px #fff inset; }
/* reorder */
.thumb-reorder-board i { left: calc(50% - 90px); width: 180px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.18); }
.thumb-reorder-board i:nth-child(1) { top: 22px; }
.thumb-reorder-board i:nth-child(2) { top: calc(52px + max(0, var(--wave)) * -30px); }
.thumb-reorder-board i:nth-child(3) { top: calc(82px + max(0, var(--wave)) * 30px); background: var(--blue); box-shadow: 0 0 0 2px #fff inset; translate: calc(var(--wave) * 6px) 0; }
.thumb-reorder-board i:nth-child(4) { top: 112px; }
.thumb-reorder-board i:nth-child(n+5) { display: none; }
/* scroll */
.thumb-scroll-story { background: linear-gradient(var(--signal), var(--signal)); }
.thumb-scroll-story i { border-radius: 50% 50% 0 0; left: -10%; width: 120%; }
.thumb-scroll-story i:nth-child(1) { top: calc(40px + var(--wave) * 20px); left: 60%; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.thumb-scroll-story i:nth-child(2) { top: calc(96px + var(--wave) * 8px); height: 120px; background: var(--mid); }
.thumb-scroll-story i:nth-child(3) { top: calc(118px + var(--wave) * 16px); left: -40%; height: 120px; background: var(--deep); }
.thumb-scroll-story i:nth-child(n+4) { display: none; }
/* poster */
.thumb-motion-poster i { bottom: 36px; width: 10px; height: 80px; border-radius: 5px; background: #fff; transform-origin: bottom; }
.thumb-motion-poster i:nth-child(1) { left: calc(50% - 56px); scale: 1 calc(.35 + (var(--wave) + 1) * .3); }
.thumb-motion-poster i:nth-child(2) { left: calc(50% - 36px); scale: 1 calc(.55 + (var(--wave) + 1) * .2); background: var(--signal); }
.thumb-motion-poster i:nth-child(3) { left: calc(50% - 16px); scale: 1 calc(.25 + (var(--wave) + 1) * .35); }
.thumb-motion-poster i:nth-child(4) { left: calc(50% + 4px); scale: 1 calc(.45 + (var(--wave) + 1) * .25); background: var(--mid); }
.thumb-motion-poster i:nth-child(5) { left: calc(50% + 24px); scale: 1 calc(.3 + (var(--wave) + 1) * .3); }
.thumb-motion-poster i:nth-child(6) { left: calc(50% - 60px); bottom: auto; top: 30px; width: 120px; height: 120px; border-radius: 50%; background: transparent; border: 10px solid var(--mid); border-right-color: var(--signal); rotate: calc(var(--clock, 0) * 1turn); z-index: -0; }

/* Chorus band (Chorus product colors stay inside this band) */
.chorus-band { background: #f4faf7; border-top: 1px solid #dcebe3; border-bottom: 1px solid #dcebe3; }
.chorus-band .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; }
.chorus-copy { display: grid; gap: 14px; }
.chorus-copy .eyebrow { color: #176b52; }
.chorus-copy h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 750; }
.chorus-copy p { color: var(--muted); }
.button.chorus-button { justify-self: start; background: #176b52; color: #fff; }
.button.chorus-button:hover { background: #0e2e24; }
.chorus-fallback { min-height: 240px; }
.chorus-panel { display: grid; gap: 22px; padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px #dcebe3; }
.chorus-tabs { background: #eaf6f0; }
.chorus-tab { color: #2f5a4a; }
.chorus-tab-highlight { border-radius: 999px; background: #176b52; }
.chorus-tab .is-selected { color: #fff; }
.chorus-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.chorus-counter { display: grid; gap: 4px; }
.chorus-counter > span { color: var(--muted); font-size: 0.875rem; }
.chorus-counter strong { font: 800 2.25rem/1 var(--sans); letter-spacing: -0.03em; color: #0e2e24; font-variant-numeric: tabular-nums; }
.ring-label { font-weight: 800; color: #0e2e24; }
.chorus-caption { color: var(--muted); font-size: 0.875rem; }

/* Next */
.install + .next-cards, .section-head + .install { margin-top: 0; }
#next .install { margin-bottom: 28px; }
.next-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.next-cards a { position: relative; display: grid; gap: 8px; height: 100%; padding: 24px 56px 24px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: border-color .16s; }
.next-cards a:hover { border-color: var(--blue); }
.next-cards strong { font-size: 1.125rem; }
.next-cards span { color: var(--muted); font-size: 0.9375rem; }
.next-cards .icon { position: absolute; top: 26px; inset-inline-end: 22px; color: var(--blue); }

/* Page head: a small Blue Deep stage */
.page-head { position: relative; overflow: hidden; padding-block: clamp(40px, 5vw, 64px); background: var(--deep); color: #fff; isolation: isolate; }
.page-head .inner > * { max-width: 640px; }
.page-head h1 { margin-top: 10px; font-size: clamp(2.125rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -0.04em; }
.page-head .lead { color: #c9d4f6; }
.page-head .lead code { background: rgba(143,176,255,.16); color: #fff; }
.page-head .eyebrow, .page-head .eyebrow a { color: var(--signal); }
.page-head .chips code { background: rgba(143,176,255,.16); color: #fff; }
.headfield { position: absolute; top: 50%; inset-inline-end: max(var(--gutter), calc((100% - var(--max)) / 2)); z-index: -1; width: 476px; height: 170px; translate: 0 -50%; }
.headfield-root { position: absolute; inset: 0; }
.head-cell { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; }
.head-cell i { display: block; width: 20px; height: 20px; }
@media (max-width: 1100px) { .headfield { opacity: .35; } }
@media (max-width: 760px) { .headfield { display: none; } }
.page-head .chips { margin-top: 20px; padding: 0; }

/* Start */
.page-start > .inner { padding-block: 56px 96px; }
.steps { position: relative; display: grid; gap: 64px; padding: 0; padding-inline-start: 72px; list-style: none; }
.rail { position: absolute; top: 8px; bottom: 8px; inset-inline-start: 19px; width: 3px; border-radius: 2px; background: var(--line); }
.rail b { position: absolute; inset: 0; border-radius: 2px; background: var(--blue); transform-origin: top; transform: scaleY(0); }
.step { position: relative; }
.step-number { position: absolute; inset-inline-start: -72px; top: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; box-shadow: 0 0 0 6px #fff; }
.step-body { display: grid; gap: 14px; max-width: 860px; }
.step-body h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 750; }
.step-body > p { max-width: 70ch; }
.check { padding: 12px 16px; border-radius: 12px; background: var(--tint); color: var(--ultra); font-size: 0.9375rem; font-weight: 600; }
.check::before { content: "✓  "; }
.done { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.done h2 { font-size: 1.75rem; }
.done > p { color: var(--muted); max-width: 70ch; }

/* Guides */
.page-guides > .inner { padding-block: 48px 96px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.guide-grid a { display: grid; gap: 8px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 18px; transition: border-color .16s; }
.guide-grid a:hover { border-color: var(--blue); }
.guide-index { font: 700 0.875rem var(--mono); color: var(--blue); }
.guide-grid strong { font-size: 1.1875rem; }
.guide-grid span:last-child { color: var(--muted); font-size: 0.9375rem; }
.reading { position: sticky; top: var(--sticky-top, var(--header)); z-index: 30; height: 3px; }
.reading-bar { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .reading-bar { transform-origin: right; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 48px; padding-block: 48px 96px; }
.guide-nav, .toc { position: sticky; top: calc(var(--sticky-top, var(--header)) + 32px); align-self: start; max-height: calc(100vh - var(--header) - 48px); overflow: auto; }
.guide-nav p, .toc p { margin-bottom: 10px; font: 600 0.75rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.guide-nav ol, .toc ol { position: relative; display: grid; gap: 2px; padding: 0; list-style: none; }
.guide-nav a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 0.9375rem; color: var(--muted); }
.guide-nav a span { font: 600 0.75rem/1.9 var(--mono); color: #9aa3b5; }
.guide-nav a:hover { background: #f5f7fb; color: var(--ink); }
.guide-nav a[aria-current="page"] { background: var(--tint); color: var(--ultra); font-weight: 650; }
.guide-nav a[aria-current="page"] span { color: var(--blue); }
.toc ol { padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0; font-size: 0.875rem; color: var(--muted); line-height: 1.45; }
.toc a.active { color: var(--ultra); font-weight: 650; }
.toc-marker { position: absolute; top: 0; inset-inline-start: -1px; width: 2px; background: var(--blue); }
.guide-article { min-width: 0; }
.guide-article h1 { margin-top: 8px; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; }
.doc-section { padding-top: 48px; }
.doc-section h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 750; margin-bottom: 14px; }
.doc-section > p { max-width: 72ch; margin-bottom: 12px; }
.doc-section ul { display: grid; gap: 10px; max-width: 72ch; margin-block: 8px 16px; padding-inline-start: 22px; }
.table-wrap { margin-block: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 12px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #fafbff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-family: var(--mono); font-weight: 600; color: var(--ultra); white-space: nowrap; }
.measure td:first-child { font-family: inherit; white-space: normal; color: inherit; }
.measure td:last-child { font: 800 1.25rem/1.3 var(--sans); color: var(--blue); white-space: nowrap; }
.measured-on { margin-top: -8px; color: var(--muted); font-size: 0.875rem; }
.related { margin-top: 56px; padding: 22px; border-radius: 16px; background: var(--tint); }
.related h2 { font-size: 1rem; margin-bottom: 12px; }
.related ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.related a code { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ultra); font-size: 0.8125rem; }
.related a:hover code { box-shadow: 0 0 0 1px var(--blue); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.pager a { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; }
.pager a:hover { border-color: var(--blue); }
.pager .next { text-align: end; }
.pager small { color: var(--muted); }

/* Examples */
.page-examples > .inner, .page-example > .inner { padding-block: 40px 96px; }
.filters { min-height: 42px; margin-bottom: 28px; }
.example-card[hidden] { display: none; }
.how { margin-top: 56px; max-width: 860px; }
.how h2, .more h2 { font-size: 1.5rem; margin-bottom: 16px; }
.how ol { display: grid; gap: 12px; padding-inline-start: 24px; }
.how li::marker { color: var(--blue); font-weight: 800; }
.more { margin-top: 64px; }
.more .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }

/* API */
.api-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-block: 40px 96px; }
.api-nav { position: sticky; top: calc(var(--sticky-top, var(--header)) + 32px); align-self: start; }
.api-nav ol { display: grid; gap: 2px; padding: 0; list-style: none; }
.api-nav a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 0.9375rem; }
.api-nav a:hover { background: var(--tint); color: var(--ultra); }
.api-filter { position: sticky; top: var(--sticky-top, var(--header)); z-index: 5; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; background: #fff; border-bottom: 1px solid var(--line); }
.api-filter label { font-weight: 650; font-size: 0.9375rem; }
.api-filter input { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--mono); }
.api-filter input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(40,84,255,.2); }
.api-filter output { color: var(--muted); font-size: 0.875rem; }
.api-group { padding-top: 40px; }
.api-group[hidden], .api-item[hidden] { display: none; }
.api-group h2 { font-size: 1.375rem; margin-bottom: 16px; }
.api-list { display: grid; gap: 12px; }
.api-item { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: calc(var(--header) + 90px); }
.api-item:target { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,84,255,.15); }
.api-item h3 { font: 700 1.0625rem var(--mono); letter-spacing: 0; }
.api-item h3 a:hover { color: var(--ultra); }
.api-item pre { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--code-bg); color: #e6ecff; overflow-x: auto; font: 0.8125rem/1.6 var(--mono); }
.api-item p { color: var(--muted); }
.api-guide { justify-self: start; color: var(--ultra); font-size: 0.875rem; font-weight: 600; }

/* 404 */
.page-missing > .inner { display: grid; gap: 16px; justify-items: start; padding-block: 120px; }
.page-missing h1 { font-size: 2.5rem; }

/* Search */
.search-dialog { width: min(640px, calc(100% - 32px)); max-height: min(78vh, 720px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(11,20,64,.28); }
.search-dialog::backdrop { background: rgba(11,20,64,.45); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 0 20px; }
.dialog-header h2 { font-size: 1rem; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; }
.icon-button:hover { background: var(--tint); }
#search-input { width: calc(100% - 40px); margin: 12px 20px 0; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; }
#search-input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(40,84,255,.2); }
.search-status { padding: 10px 20px; color: var(--muted); font-size: 0.875rem; }
.search-results { display: grid; gap: 4px; padding: 0 12px 16px; overflow: auto; }
.search-result { display: grid; gap: 2px; padding: 12px; border-radius: 12px; }
.search-result:hover, .search-result:focus { background: var(--tint); outline: none; }
.search-result small { color: var(--ultra); font-weight: 600; }
.search-result p { color: var(--muted); font-size: 0.875rem; }

.route-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; background: var(--blue); animation: route 1.2s ease-in-out infinite; transform-origin: left; }
@keyframes route { from { transform: scaleX(0); } to { transform: scaleX(1); opacity: 0; } }
.route-error { position: fixed; bottom: 20px; left: 50%; z-index: 70; display: grid; gap: 10px; width: min(480px, calc(100% - 32px)); padding: 16px 18px; border-radius: 16px; background: var(--ink); color: #fff; transform: translateX(-50%); }
.route-error div { display: flex; flex-wrap: wrap; gap: 8px; }
.route-error button, .route-error a { min-height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: transparent; color: #fff; display: inline-flex; align-items: center; }

/* Responsive */
@media (max-width: 1180px) {
  .guide-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 1100px) {
  .field-tilt { opacity: .9; inset-inline-end: -120px; }
}
@media (max-width: 960px) {
  .hero { align-items: flex-start; min-height: 0; }
  .hero-inner { padding-block: 64px 480px; }
  .field-tilt, [dir="rtl"] .field-tilt { top: auto; bottom: 64px; left: 50%; right: auto; translate: -50% 0; }
  .field { zoom: .78; }
  .stage-chip { inset-inline-start: var(--gutter); }
  .metrics, .card-grid, .next-cards, .guide-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .chorus-band .inner { grid-template-columns: minmax(0, 1fr); }
  .wb-body { grid-template-columns: minmax(0, 1fr); }
  .wb-panel { border-inline-start: 0; border-top: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .usage { grid-column: 1 / -1; }
  .api-layout { grid-template-columns: minmax(0, 1fr); }
  .api-nav { position: static; }
  .api-nav ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .api-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .guide-nav { position: static; max-height: none; }
  .guide-nav ol { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .guide-nav a { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header: 108px; }
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-block: 4px; }
  .top-nav { order: 3; width: calc(100% + 16px); margin-inline: -8px; overflow-x: auto; padding-bottom: 6px; }
  .top-nav a { flex: none; }
  .search-trigger .search-label, .search-trigger kbd { display: none; }
  .header-inner { gap: 12px; }
  .language-control select { max-width: 84px; }
  .version { display: none; }
  .header-actions { gap: 6px; }
  .brand { font-size: 1.125rem; }
  .metrics, .card-grid, .next-cards, .guide-grid, .more .card-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { padding-inline-start: 0; }
  .rail { display: none; }
  .step-number { position: static; margin-bottom: 12px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .api-filter { grid-template-columns: minmax(0, 1fr); }
  .hero-install .install { max-width: 100%; }
}
