/* Doors of Harmony · site styles
   Layout language learned from djoid.io (black club mood, product-led, workflow cards,
   alternating rows) and elevenlabs.io (light display type, split headers, tabbed demo
   panel, grainy gradient cards, pill buttons). */

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2-variations"), url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jbmono.woff2") format("woff2-variations"), url("/fonts/jbmono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --font: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --section: clamp(88px, 10vw, 152px);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* data hues, shared by both themes */
  --ice: oklch(0.79 0.09 222);
  --violet: oklch(0.7 0.12 295);
  --ember: oklch(0.72 0.13 42);
  --mint: oklch(0.79 0.09 168);

  /* dark (default): club black */
  --bg: oklch(0.13 0.004 240);
  --panel: oklch(0.17 0.005 240);
  --panel-2: oklch(0.205 0.006 240);
  --line: oklch(0.28 0.006 240);
  --line-soft: oklch(0.22 0.005 240);
  --text: oklch(0.97 0.003 240);
  --muted: oklch(0.74 0.008 240);
  --faint: oklch(0.62 0.008 240);
  --accent: oklch(0.79 0.09 222);
  --solid-bg: oklch(0.97 0.003 240);
  --solid-fg: oklch(0.13 0.004 240);
  --guide: oklch(0.97 0.003 240 / 0.06);
  --focus: oklch(0.79 0.09 222);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: oklch(0.993 0.002 30);
  --panel: oklch(0.965 0.004 60);
  --panel-2: oklch(0.94 0.005 60);
  --line: oklch(0.88 0.005 60);
  --line-soft: oklch(0.93 0.004 60);
  --text: oklch(0.17 0.003 60);
  --muted: oklch(0.45 0.012 60);
  --faint: oklch(0.52 0.012 60);
  --accent: oklch(0.49 0.1 232);
  --solid-bg: oklch(0.17 0.003 60);
  --solid-fg: oklch(0.993 0.002 30);
  --guide: oklch(0.17 0.003 60 / 0.07);
  --focus: oklch(0.49 0.1 232);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: oklch(0.993 0.002 30);
    --panel: oklch(0.965 0.004 60);
    --panel-2: oklch(0.94 0.005 60);
    --line: oklch(0.88 0.005 60);
    --line-soft: oklch(0.93 0.004 60);
    --text: oklch(0.17 0.003 60);
    --muted: oklch(0.45 0.012 60);
    --faint: oklch(0.52 0.012 60);
    --accent: oklch(0.49 0.1 232);
    --solid-bg: oklch(0.17 0.003 60);
    --solid-fg: oklch(0.993 0.002 30);
    --guide: oklch(0.17 0.003 60 / 0.07);
    --focus: oklch(0.49 0.1 232);
    color-scheme: light;
  }
}

/* App screens are always dark, like the app itself. */
.shot {
  --a-bg: oklch(0.145 0.005 240);
  --a-side: oklch(0.125 0.005 240);
  --a-panel: oklch(0.18 0.006 240);
  --a-line: oklch(0.27 0.007 240);
  --a-text: oklch(0.95 0.004 240);
  --a-muted: oklch(0.74 0.01 240);
  --a-faint: oklch(0.6 0.01 240);
  --a-accent: var(--ice);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overscroll-behavior: none; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overscroll-behavior: none; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--solid-fg); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: 0.8em; letter-spacing: 0; }
.muted { color: var(--muted); }
.skip { min-height: 44px; display: inline-flex; align-items: center; position: absolute; left: var(--space-md); top: -100px; z-index: 100; background: var(--solid-bg); color: var(--solid-fg); padding: var(--space-xs) var(--space-md); border-radius: 99px; text-decoration: none; }
.skip:focus { top: var(--space-md); }

/* page column with ElevenLabs-style guide lines */
.wrap { position: relative; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main { position: relative; }
main::before, main::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--guide); pointer-events: none; }
main::before { left: max(8px, calc(50% - var(--maxw) / 2)); }
main::after { right: max(8px, calc(50% - var(--maxw) / 2)); }

/* ---------- type ---------- */
.h1 { font-weight: 300; font-size: clamp(2.9rem, 1.4rem + 5.2vw, 5.9rem); line-height: 1.0; letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font-weight: 300; font-size: clamp(2.3rem, 1.5rem + 2.4vw, 3.7rem); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.h2--row { font-size: clamp(2rem, 1.45rem + 1.7vw, 3rem); }
.h2--xl { font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.8rem); }
.h3 { font-weight: 500; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.6; color: var(--muted); max-width: 52ch; }
.chip-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--muted); padding: 5px 14px; border: 1px solid var(--line); border-radius: 99px; margin-bottom: var(--space-lg); }
.chip-label--on { color: var(--text); }
.tag { display: inline-block; vertical-align: 0.15em; margin-left: 6px; font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 99px; padding: 1px 8px; line-height: 1.5; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 99px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font-weight: 500; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.pill:hover { border-color: var(--muted); }
.pill:active { transform: scale(0.98); }
.pill--solid { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-bg); }
.pill--solid:hover { background: color-mix(in oklch, var(--solid-bg) 86%, var(--bg)); border-color: transparent; }
.pill--sm { min-height: 44px; padding: 0 18px; font-size: 0.875rem; }
.pill--wide { width: 100%; }
.show-sm { display: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in oklch, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line-soft); }
.nav__inner { display: flex; align-items: center; gap: var(--space-xl); min-height: 68px; }
.wordmark { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; padding: 10px 12px; border-radius: 99px; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }
.theme { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme .fill { fill: currentColor; stroke: none; }

/* ---------- split header (ElevenLabs) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-xl) var(--space-3xl); align-items: end; }
.split__side { display: grid; gap: var(--space-lg); justify-items: start; }
.split--head { margin-bottom: var(--space-3xl); }
.split--head .split__side { max-width: 46ch; padding-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 104px); padding-bottom: var(--section); }
.hero .h1 { max-width: 10ch; }
.lede--hero { color: var(--text); opacity: .86; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); }
.stage { position: relative; margin-top: clamp(48px, 6vw, 80px); padding: clamp(12px, 2vw, 20px); border-radius: calc(var(--r-lg) + 6px); background: color-mix(in oklch, var(--panel) 45%, transparent); border: 1px solid color-mix(in oklch, var(--text) 10%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.stage__tabs { display: flex; gap: 4px; padding: 4px; margin: 0 auto var(--space-md); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 99px; background: color-mix(in oklch, var(--bg) 70%, transparent); border: 1px solid var(--line-soft); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stage__tabs::-webkit-scrollbar { display: none; }
.stage__tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--muted); padding: 0 16px; min-height: 44px; border-radius: 99px; cursor: pointer; font-size: 0.9375rem; white-space: nowrap; transition: background-color .2s, color .2s; }
.stage__tabs button:hover { color: var(--text); }
.stage__tabs button[aria-selected="true"] { background: var(--solid-bg); color: var(--solid-fg); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.stage__cap { text-align: center; font-size: 0.8125rem; color: var(--muted); margin-top: var(--space-md); }

/* ---------- app screen kit ---------- */
.shot { background: var(--a-bg); color: var(--a-text); border: 1px solid var(--a-line); border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 80px -40px oklch(0 0 0 / .6); font-size: 0.875rem; line-height: 1.5; }
.shot[hidden] { display: none; }
.shot__bar { display: flex; align-items: center; gap: var(--space-md); padding: 10px 14px; border-bottom: 1px solid var(--a-line); color: var(--a-muted); font-size: 0.8125rem; min-height: 46px; }
.shot__dots { display: flex; gap: 6px; flex: none; }
.shot__dots i { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.3 0.008 240); }
.shot__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.shot__right { margin-left: auto; display: flex; gap: 6px; flex: none; }
.shot__body { position: relative; }
.shot__body--side { display: grid; grid-template-columns: 168px minmax(0, 1fr) 300px; min-height: 420px; }
.u-pad { padding: 18px; }
.u-dim { color: var(--a-muted); }
.u-chip { font-size: 0.75rem; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--a-line); color: var(--a-muted); white-space: nowrap; }
.u-chip.is-on { color: var(--a-text); border-color: var(--a-accent); background: oklch(0.79 0.09 222 / .12); }
.u-search { font-size: 0.75rem; padding: 4px 12px; border-radius: 99px; background: var(--a-panel); color: var(--a-muted); border: 1px solid var(--a-line); }
.u-tag { display: inline-block; font-size: 0.6875rem; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--a-line); color: var(--a-muted); white-space: nowrap; }
.u-tag--hot { color: var(--a-accent); border-color: oklch(0.79 0.09 222 / .5); }

.u-side { background: var(--a-side); border-right: 1px solid var(--a-line); padding: 14px 10px; display: grid; align-content: start; gap: 2px; color: var(--a-muted); font-size: 0.8125rem; }
.u-side span { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; white-space: nowrap; }
.u-side i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .7; flex: none; }
.u-side .is-on { background: var(--a-panel); color: var(--a-text); }
.u-side .is-on i { border-color: var(--a-accent); background: oklch(0.79 0.09 222 / .25); opacity: 1; }
.u-main { padding: 16px 18px 12px; min-width: 0; display: flex; flex-direction: column; }
.u-chapters { display: flex; gap: 4px; margin-bottom: 8px; }
.u-chapters span { flex: 1; font-size: 0.6875rem; color: var(--a-text); padding: 4px 8px; border-radius: 6px; background: color-mix(in oklch, var(--c) 18%, transparent); border-top: 2px solid var(--c); white-space: nowrap; overflow: hidden; }
.u-time { display: flex; justify-content: space-between; color: var(--a-faint); font-size: 0.6875rem; }
.u-why { border-left: 1px solid var(--a-line); background: var(--a-panel); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.u-why__h { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; color: var(--a-accent); }
.u-why .mono { font-size: 0.6875rem; }
.u-windows { display: grid; gap: 4px; margin-top: auto; padding-top: 8px; }
.u-windows > div { display: grid; grid-template-columns: 1fr auto 72px; align-items: center; gap: 10px; font-size: 0.75rem; color: var(--a-muted); padding: 7px 9px; border-radius: 8px; border: 1px solid transparent; }
.u-windows .is-pick { border-color: var(--a-line); background: var(--a-bg); color: var(--a-text); }
.u-bar { display: block; height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--a-faint) 0 calc(var(--w) * 100%), var(--a-line) 0); }
.is-pick .u-bar, .u-float .u-bar { background: linear-gradient(to right, var(--a-accent) 0 calc(var(--w) * 100%), var(--a-line) 0); }

/* arc svg */
.arc { width: 100%; height: auto; overflow: visible; margin-block: auto; }
.arc__grid line { stroke: var(--a-line); stroke-width: 1; stroke-dasharray: 2 6; opacity: .7; }
.arc__target { fill: none; stroke: var(--a-faint); stroke-width: 1.5; stroke-dasharray: 5 6; }
.arc__actual { fill: none; stroke: var(--a-accent); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.arc__pt { fill: var(--a-bg); stroke: var(--a-accent); stroke-width: 1.5; }
.arc__cluster { fill: none; stroke: var(--a-muted); stroke-width: 1; }
.arc__seam line { stroke: var(--a-text); stroke-width: 1; stroke-dasharray: 2 3; }
.arc__seam circle.ring { fill: none; stroke: var(--a-text); stroke-width: 1.25; }
.arc__seam text { fill: var(--a-text); font-family: var(--mono); font-size: 11px; }
.arc--narrow .arc__seam text { font-size: 15px; }
.arc--narrow .arc__actual { stroke-width: 3; }
.arc__key { fill: var(--a-faint); font-family: var(--mono); font-size: 9px; text-anchor: middle; }

/* playlist table */
.u-table { display: grid; font-size: 0.8125rem; }
.u-tr { display: grid; grid-template-columns: minmax(150px, 2.2fr) 70px 54px minmax(70px, 1fr) minmax(110px, 1.3fr) 84px; gap: 14px; align-items: center; padding: 9px 18px; border-bottom: 1px solid var(--a-line); }
.u-tr:last-child { border-bottom: 0; }
.u-th { color: var(--a-faint); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .06em; padding-block: 10px; background: var(--a-side); }
.u-tr b { display: block; font-weight: 500; color: var(--a-text); }
.u-tr em { display: block; color: var(--a-faint); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-tr.is-sel { background: oklch(0.79 0.09 222 / .08); }
.k { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; background: oklch(0.72 0.1 var(--h)); }
.u-meter { display: block; height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--a-accent) 0 calc(var(--v) * 100%), var(--a-line) 0); }
.u-steps { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; }
.u-steps i { height: 10px; border-radius: 2px; background: var(--a-line); }
.u-steps i.on { background: var(--a-muted); }
.u-steps i.off-beat.on { background: var(--a-accent); }
.u-steps--lg { gap: 4px; }
.u-steps--lg i { height: 22px; border-radius: 4px; }
.u-steps--beat i.on { background: var(--a-text); }

/* transition inspector */
.shot__body--mix { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 420px; }
.u-lanes { position: relative; padding: 16px 18px; display: grid; align-content: center; gap: 18px; min-width: 0; }
.u-ruler { display: flex; justify-content: space-between; color: var(--a-faint); font-size: 0.6875rem; border-bottom: 1px dashed var(--a-line); padding-bottom: 6px; }
.u-lane { display: grid; gap: 6px; }
.u-lane__name { font-size: 0.8125rem; color: var(--a-text); display: flex; gap: 10px; align-items: baseline; }
.u-lane__name .mono { color: var(--a-faint); }
.u-wave { height: 64px; display: flex; align-items: center; gap: 2px; }
.u-wave i { flex: 1; border-radius: 2px; background: oklch(0.72 0.06 230); min-width: 1px; }
.u-lane--in .u-wave i { background: oklch(0.72 0.09 300); }
.u-wave i.mute { opacity: .18; }
.u-sections { display: flex; gap: 3px; }
.u-sections span { flex: 1; font-size: 0.6875rem; color: var(--a-muted); padding: 3px 8px; border-radius: 5px; background: color-mix(in oklch, var(--c, var(--a-faint)) 18%, transparent); white-space: nowrap; overflow: hidden; }
.u-window { position: absolute; left: calc(18px + (100% - 36px) * 0.333); width: calc((100% - 36px) * 0.333); top: 44px; bottom: 16px; border: 1px solid var(--a-accent); border-radius: 10px; background: oklch(0.79 0.09 222 / .08); pointer-events: none; }
.u-window span { position: absolute; top: -10px; left: 10px; background: var(--a-bg); color: var(--a-accent); font-size: 0.6875rem; padding: 0 6px; }
.u-why--wide { justify-content: center; }

/* advisor */
.shot__body--chat { min-height: 420px; display: grid; place-items: center; padding: 22px; }
.u-chat { width: 100%; max-width: 640px; display: grid; gap: 14px; }
.u-msg { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; justify-self: start; max-width: 92%; }
.u-msg--me { justify-self: end; background: oklch(0.79 0.09 222 / .14); border-color: oklch(0.79 0.09 222 / .3); max-width: 80%; }
.u-mini { display: grid; gap: 4px; counter-reset: m; }
.u-mini li { display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--a-bg); font-size: 0.8125rem; }
.u-mini b { font-weight: 500; }
.u-mini .mono { color: var(--a-faint); }
.u-mini em { color: var(--a-accent); font-size: 0.75rem; }
.u-input { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; border-radius: 99px; border: 1px solid var(--a-line); color: var(--a-faint); }
.u-send { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--a-text); color: var(--a-bg); font-size: 0.875rem; }

/* chapters */
.u-chapwrap { display: grid; gap: 14px; }
.u-chap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.u-chap__col { display: grid; align-content: start; gap: 5px; padding: 8px; border-radius: 12px; background: color-mix(in oklch, var(--c) 9%, transparent); border: 1px solid color-mix(in oklch, var(--c) 30%, transparent); }
.u-chap__col.is-swap { border-style: dashed; border-color: var(--c); }
.u-chap__h { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 500; color: var(--c); padding: 2px 2px 4px; }
.u-chap__h em { color: var(--a-faint); font-family: var(--mono); font-size: 0.6875rem; font-weight: 400; }
.u-blk { display: block; font-size: 0.75rem; padding: 6px 8px; border-radius: 7px; background: var(--a-panel); color: var(--a-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--a-line); }
.u-blk--lock::after { content: " · locked"; color: var(--a-faint); }
.u-cl { display: grid; gap: 3px; padding: 4px; border-radius: 9px; border: 1px solid var(--a-muted); }
.u-pop { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.u-pop .mono { font-size: 0.6875rem; }
.u-alt { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8125rem; padding: 7px 10px; border-radius: 8px; color: var(--a-muted); }
.u-alt.is-on { background: var(--a-bg); color: var(--a-text); border: 1px solid var(--ember); }
.u-alt .mono { color: var(--a-faint); }

/* harmony wheel */
.u-wheel-body { display: grid; place-items: center; padding: 18px 18px 14px; gap: 10px; }
.wheel { width: min(100%, 400px); height: auto; }
.wheel .seg { stroke: var(--a-bg); stroke-width: 2; }
.wheel .lbl { fill: var(--a-muted); font-family: var(--mono); font-size: 10px; text-anchor: middle; dominant-baseline: middle; }
.wheel .trk { fill: var(--a-faint); opacity: .75; }
.wheel .trk.in { fill: var(--a-accent); opacity: 1; }
.wheel .path { fill: none; stroke: var(--a-accent); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.u-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; color: var(--a-faint); font-size: 0.6875rem; }
.u-legend span { display: inline-flex; align-items: center; gap: 6px; }
.u-legend i { width: 8px; height: 8px; border-radius: 50%; }
.u-legend .d1 { background: var(--a-faint); }
.u-legend .d2 { background: var(--a-accent); }
.u-legend .ln { width: 16px; height: 0; border-top: 2px solid var(--a-accent); border-radius: 0; }

/* teacher */
.u-teach { display: grid; gap: 16px; }
.voices__tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--a-line); border-radius: 99px; justify-self: start; }
.voices__tabs button { border: 0; background: none; padding: 0 16px; min-height: 44px; border-radius: 99px; color: var(--a-muted); cursor: pointer; font-size: 0.875rem; }
.voices__tabs button[aria-selected="true"] { background: var(--a-text); color: var(--a-bg); }
.voices__panel { min-height: 3.2em; font-size: 1.0625rem; line-height: 1.5; }
.voices__panel .mono { font-size: 0.875rem; }
.u-grid16 { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--a-panel); border: 1px solid var(--a-line); }
.u-grid16__row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; }
.u-grid16__row .mono { color: var(--a-faint); font-size: 0.6875rem; }

/* inbox */
.u-inbox { display: grid; gap: 6px; }
.u-mail { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--a-line); }
.u-mail.is-new { background: var(--a-panel); }
.u-mail b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-mail em { display: block; font-size: 0.75rem; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-mail .mono { color: var(--a-faint); font-size: 0.6875rem; }
.u-art { width: 40px; height: 40px; border-radius: 8px; background: radial-gradient(circle at 30% 30%, var(--c1), transparent 70%), radial-gradient(circle at 80% 80%, var(--c2), oklch(0.2 0.01 240) 80%); }

/* ---------- running logo strip ---------- */
.logos { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(36px, 5vw, 56px); background: oklch(0.15 0.02 255); color: oklch(0.97 0.004 240); }
.logos__cap { text-align: center; color: var(--text); font-size: 0.9375rem; padding-inline: var(--gutter); margin: 0; padding-bottom: var(--space-lg); }
.marquee { position: relative; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; flex: none; gap: clamp(48px, 7vw, 96px); padding-right: clamp(48px, 7vw, 96px); }
.logo { display: inline-flex; align-items: center; gap: 14px; color: oklch(0.97 0.004 240); opacity: .9; white-space: nowrap; height: 96px; transition: opacity .3s; }
.logo span { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3.2rem); font-weight: 600; letter-spacing: -0.02em; }
.logo__mark { width: 60px; height: 60px; fill: currentColor; flex: none; }
.logo__mark--wide { width: 320px; height: 128px; margin-block: -32px; }
.logo--claude .logo__mark { fill: #d97757; }
.w-rb { font-weight: 700 !important; letter-spacing: -0.03em !important; }
.w-tk { font-weight: 800 !important; letter-spacing: 0.12em !important; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem) !important; }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } .logo:hover { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 50s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; gap: 24px 48px; padding: 0 var(--gutter); }
  .marquee__track[aria-hidden="true"] { display: none; }
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* small cards: Chladni sand plates (2D canvas, see main.js) */
.card__plate { display: block; width: 100%; height: 132px; margin-bottom: var(--space-lg); border-radius: 12px; background: var(--panel-2); }

/* products: ElevenLabs-style art cards with a plate pattern */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.product { display: grid; gap: var(--space-lg); text-decoration: none; color: inherit; border-radius: var(--r-lg); }
.product__art { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; display: grid; place-items: center; background: oklch(0.16 0.02 255); }
.product__art .gfield { transition: transform 1.2s var(--ease); }
.product__name { font-weight: 300; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); line-height: 1.08; letter-spacing: -0.02em; text-align: center; color: oklch(0.97 0.004 80); text-shadow: 0 2px 30px oklch(0 0 0 / .35); }
.product__meta { display: grid; gap: 8px; padding-inline: 4px; }
.product__link { margin-top: 6px; font-weight: 500; font-size: 0.9375rem; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.product__link::after { content: "→"; transition: transform .3s var(--ease); }
@media (hover: hover) { .product:hover .gfield { transform: scale(1.04); } .product:hover .product__link::after { transform: translateX(4px); } }
.product:focus-visible { outline-offset: 6px; }

/* Built on Claude card art */
.card__brand { display: flex; align-items: center; justify-content: center; gap: 18px; height: 132px; margin-bottom: var(--space-lg); border-radius: 12px; background: var(--panel-2); }
.card__brand svg { width: 44px; height: 44px; }
.brand-anthropic { fill: var(--text); }
.logos .gfield { opacity: .9; }
.brand-claude { fill: #d97757; }
.brand-x { color: var(--faint); font-size: 1.25rem; font-weight: 300; }

/* ---------- editorial photo band ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md); }
.ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--panel); isolation: isolate; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) saturate(.92); transition: transform 1.4s var(--ease); }
.ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.ph figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-size: 0.8125rem; color: oklch(0.96 0.004 240); text-shadow: 0 1px 12px oklch(0 0 0 / .6); }
@media (hover: hover) { .ph:hover img { transform: scale(1.03); } }
.ph--a { grid-column: span 8; aspect-ratio: 3 / 2; }
.ph--b { grid-column: span 4; }
.ph--c { grid-column: span 6; aspect-ratio: 3 / 2; }
.ph--d { grid-column: span 3; }
.ph--e { grid-column: span 3; }
.ph--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
@media (max-width: 900px) {
  .ph--a, .ph--c { grid-column: span 12; }
  .ph--b { grid-column: span 12; aspect-ratio: 3 / 2; }
  .ph--d, .ph--e { grid-column: span 6; aspect-ratio: 1; }
}

/* ---------- prep night walkthrough ---------- */
.night { display: grid; gap: 0; position: relative; max-width: 880px; margin-left: auto; }
.night::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.night__step { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 32px; padding-block: 22px; position: relative; }
.night__step::before { content: ""; position: absolute; left: 88px; top: 30px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); }
.night__step--end::before { background: var(--accent); }
.night__t { color: var(--accent); font-size: 0.8125rem; padding-top: 4px; text-align: right; white-space: nowrap; }
.night__step p { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.night__quote { display: inline-block; margin-top: 10px !important; padding: 6px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line-soft); color: var(--text) !important; font-size: 0.8125rem; }
.night em { color: var(--text); font-style: normal; border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; }

/* ---------- coming next cards (ElevenLabs "updates" style) ---------- */
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.next__card { display: grid; align-content: start; gap: 10px; }
.next__art { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 8px; background: oklch(0.16 0.02 255); }
.next__name { font-weight: 300; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.1; text-align: center; color: oklch(0.97 0.004 80); text-shadow: 0 2px 30px oklch(0 0 0 / .35); }
.next__card .muted { font-size: 0.9375rem; }

/* ---------- live advisor screen ---------- */
.lv { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); min-height: 420px; }
.lv__main { padding: 26px; display: grid; align-content: center; gap: 14px; border-right: 1px solid var(--a-line); }
.lv__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lv__grid i { height: 34px; border-radius: 8px; background: var(--a-panel); border: 1px solid var(--a-line); }
.lv__grid i.on { background: oklch(0.79 0.09 222 / .35); border-color: oklch(0.79 0.09 222 / .5); }
.lv__grid i.now { background: var(--ice); border-color: var(--ice); }
.lv__big { font-size: 2rem; font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }
.lv__big .mono { font-size: 0.9rem; color: var(--ice); margin-left: 8px; }
.lv__warn { font-size: 0.8125rem; padding: 10px 12px; border-radius: 10px; border: 1px solid oklch(0.72 0.13 42 / .5); background: oklch(0.72 0.13 42 / .1); color: var(--a-text); }
.lv__warn .mono { color: var(--ember); margin-right: 8px; text-transform: uppercase; font-size: 0.6875rem; }
.lv__next { padding: 26px; display: grid; align-content: center; gap: 8px; background: var(--a-panel); }
.lv__move { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-bg); font-size: 0.875rem; }
.lv__move b { font-weight: 500; }
.lv__move .mono { color: var(--a-faint); font-size: 0.6875rem; }
.lv__move.is-on { border-color: var(--ice); }
.stage__tabs .tag { margin-left: 2px; font-size: 0.5625rem; padding: 0 6px; }

/* ---------- sections ---------- */
.section { padding-block: var(--section) 0; }
#access { padding-bottom: var(--section); }

/* workflow cards (Djoid) */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); position: relative; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--line), var(--line), transparent); }
.flow__card { position: relative; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: var(--space-lg); display: grid; align-content: start; gap: var(--space-sm); min-height: 260px; }
.flow__card p { color: var(--muted); font-size: 0.9375rem; }
.flow__card--on { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-bg); }
.flow__card--on p, .flow__card--on .flow__n { color: color-mix(in oklch, var(--solid-fg) 72%, var(--solid-bg)); }
.flow__n { font-size: 0.8125rem; color: var(--faint); }

/* feature rows (Djoid alternating) */
.row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-2xl) var(--space-3xl); align-items: center; padding-block: clamp(40px, 5vw, 72px); }
.row + .row { border-top: 1px solid var(--line-soft); }
.row--flip .row__copy { order: 2; }
.row__copy { display: grid; justify-items: start; gap: var(--space-md); }
.row__copy .chip-label { margin-bottom: var(--space-xs); }
.row__copy .muted { max-width: 46ch; }
.row__shot { min-width: 0; }

/* combination book screen */
.shot--book .book { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); min-height: 380px; }
.book__list { border-right: 1px solid var(--a-line); background: var(--a-side); }
.book__list li + li { border-top: 1px solid var(--a-line); }
.book__list button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; min-height: 56px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--a-muted); transition: background-color .2s, color .2s; }
.book__list button:hover { color: var(--a-text); }
.book__list button:focus-visible { outline-offset: -3px; }
.book__list button[aria-selected="true"] { color: var(--a-text); background: var(--a-panel); }
.book__name { font-size: 1rem; font-weight: 500; }
.book__fam { color: var(--a-faint); white-space: nowrap; }
.book__detail { padding: clamp(20px, 4vw, 44px); display: grid; align-content: start; gap: 14px; }
.book__alias { color: var(--a-accent); }
.book__title { font-weight: 300; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); line-height: 1.05; letter-spacing: -0.025em; }
.book__vector { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1rem; }
.book__vector svg { width: 40px; height: 10px; fill: none; stroke: var(--a-accent); stroke-width: 1.5; }
.book__pace { color: var(--a-faint); border: 1px solid var(--a-line); border-radius: 99px; padding: 1px 10px; }
.book__text { color: var(--a-muted); max-width: 52ch; font-size: 1.0625rem; }
.book__keys { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; font-size: 0.875rem; }
.book__keys span { border: 1px solid var(--a-line); border-radius: 8px; padding: 5px 11px; background: var(--a-panel); }
.book__keys i { width: 24px; height: 1px; background: var(--a-line); }
.book__found { font-size: 0.875rem; padding-top: 12px; border-top: 1px solid var(--a-line); display: flex; gap: 10px; flex-wrap: wrap; }
.book__detail.is-swapping > * { opacity: 0; transform: translateY(4px); }
.book__detail > * { transition: opacity .25s var(--ease), transform .25s var(--ease); }

/* bento (ElevenLabs) */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.card { background: var(--panel); border-radius: var(--r); padding: var(--space-lg); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card p { color: var(--muted); font-size: 0.9375rem; }
.card--big { grid-column: span 2; }
.card__art { position: relative; overflow: hidden; height: 260px; border-radius: 12px; margin-bottom: var(--space-md); display: grid; place-items: center; isolation: isolate; }
.u-float { --a-bg: oklch(0.145 0.005 240); --a-line: oklch(0.3 0.007 240); --a-accent: var(--ice); --a-muted: oklch(0.74 0.01 240); position: relative; z-index: 1; width: min(84%, 300px); display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: oklch(0.145 0.005 240 / .88); color: oklch(0.95 0.004 240); border: 1px solid oklch(1 0 0 / .1); font-size: 0.875rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.u-float .mono { font-size: 0.6875rem; color: var(--a-muted); }
.u-float b { font-weight: 500; }
.u-float--list span { display: flex; justify-content: space-between; padding: 6px 2px; border-bottom: 1px solid oklch(1 0 0 / .08); }
.u-float--list span:last-child { border: 0; }
.u-float--list em { color: var(--ice); font-size: 0.8125rem; }
.u-float--list .off { color: oklch(0.6 0.01 240); }
.u-float--list .off em { color: oklch(0.6 0.01 240); }

/* who */
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.who__col { background: var(--panel); border-radius: var(--r); padding: var(--space-lg) var(--space-lg) var(--space-sm); }
.who__h { font-size: 0.875rem; color: var(--muted); padding-bottom: var(--space-sm); }
.who__list li { padding-block: 14px; border-top: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.45; }
.who__list--not li { color: var(--muted); }

/* faq */
.split--faq { align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); font-size: 1.125rem; font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 60ch; }

/* access */
.access {
  position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--r-lg) + 6px);
  padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-2xl) var(--space-3xl); align-items: center;
  color: oklch(0.97 0.003 240); background: oklch(0.15 0.012 255);
}
.access > :not(.gfield) { position: relative; z-index: 1; }
.access .lede { color: oklch(0.88 0.01 240); }
.access .chip-label { color: oklch(0.97 0.003 240); border-color: oklch(1 0 0 / .3); }
.access__copy { display: grid; gap: var(--space-lg); justify-items: start; }
.access__copy .chip-label { margin: 0; }
.form { display: grid; gap: var(--space-md); background: oklch(0.13 0.004 240 / .78); color: oklch(0.97 0.003 240); border: 1px solid oklch(1 0 0 / .12); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.form .pill--solid { background: oklch(0.97 0.003 240); color: oklch(0.13 0.004 240); border-color: transparent; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.opt { color: oklch(0.7 0.01 240); font-weight: 400; font-size: 0.8125rem; margin-left: 4px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: oklch(0.97 0.003 240); background: oklch(0.1 0.004 240 / .7); border: 1px solid oklch(1 0 0 / .16); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.62 0.01 240); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px oklch(0.79 0.09 222 / .3); }
.field input[aria-invalid="true"] { border-color: oklch(0.7 0.16 28); }
.field__err { color: oklch(0.78 0.13 30); font-size: 0.875rem; }
.form__note { font-size: 0.8125rem; color: oklch(0.72 0.01 240); }
.form__note a { color: oklch(0.88 0.01 240); }
.form__status { font-size: 0.9375rem; }
.form__status:empty { display: none; }
.form :focus-visible { outline-color: var(--ice); }

/* footer (ElevenLabs columns) */
.foot { border-top: 1px solid var(--line-soft); padding-block: var(--space-3xl) calc(var(--space-xl) + env(safe-area-inset-bottom)); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
.foot__brand { display: grid; gap: var(--space-sm); align-content: start; }
.foot__brand p { color: var(--muted); font-size: 0.9375rem; max-width: 34ch; }
.foot nav { display: grid; align-content: start; }
.foot__h { font-size: 0.875rem; color: var(--faint); font-weight: 400; margin-bottom: 6px; }
.foot nav a { color: var(--text); text-decoration: none; font-size: 0.9375rem; min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.foot nav a:hover { color: var(--muted); }
.foot__bottom { display: flex; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 0.8125rem; }
.foot__bottom a { color: var(--faint); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- gradient fields (WebGL, see field.js) ---------- */
.gfield { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; border-radius: inherit; }
.hero { position: relative; isolation: isolate; overflow: hidden; }
.gfield--hero { height: min(100%, 1100px); -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 96%); mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 96%); }
/* CSS fallbacks when WebGL is missing (the canvas removes itself) */
:root[data-theme="light"] .hero:not(.has-field) { background: radial-gradient(70% 60% at 10% 0%, oklch(0.88 0.06 225 / .8), transparent 70%), radial-gradient(60% 50% at 95% 10%, oklch(0.88 0.06 295 / .7), transparent 70%); }
.hero:not(.has-field) { background: radial-gradient(70% 60% at 10% 0%, oklch(0.32 0.06 230 / .7), transparent 70%), radial-gradient(60% 50% at 95% 10%, oklch(0.3 0.08 295 / .6), transparent 70%); }
.card__art:not(.has-field) { background: radial-gradient(80% 90% at 10% 100%, #7a3418, transparent 70%), radial-gradient(70% 80% at 90% 0%, #3a2a70, transparent 70%), #14121c; }
.card__art--mix:not(.has-field) { background: radial-gradient(80% 90% at 10% 100%, #7a3418, transparent 70%), radial-gradient(70% 80% at 90% 0%, #1f6a8a, transparent 70%), #14121c; }
.card__art--style:not(.has-field) { background: radial-gradient(80% 90% at 90% 100%, #4a2f8f, transparent 70%), radial-gradient(70% 80% at 0% 0%, #1d7a6c, transparent 70%), #12141c; }
.access:not(.has-field) { background: radial-gradient(60% 90% at 0% 100%, #164a63, transparent 70%), radial-gradient(50% 80% at 100% 0%, #4b33a0, transparent 70%), #0d0f16; }
.card { transition: transform .4s var(--ease), background-color .3s; }
@media (hover: hover) { .card:hover { transform: translateY(-4px); } }

/* ---------- Ableton Copilot screens ---------- */
.cp-build { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 420px; }
.cp-arr { padding: 16px 18px; display: grid; align-content: start; gap: 6px; border-right: 1px solid var(--a-line); min-width: 0; }
.cp-ruler { display: flex; justify-content: space-between; color: var(--a-faint); font-size: 0.6875rem; padding: 0 0 6px 96px; border-bottom: 1px dashed var(--a-line); margin-bottom: 4px; }
.cp-track { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 6px; height: 44px; position: relative; }
.cp-name { font-size: 0.75rem; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-track.is-new .cp-name { color: var(--a-text); }
.cp-clip { position: relative; height: 34px; border-radius: 6px; margin-left: calc(var(--x) * 1%); width: calc(var(--w) * 1%); background: color-mix(in oklch, var(--c) 30%, transparent); border: 1px solid color-mix(in oklch, var(--c) 60%, transparent);
  background-image: repeating-linear-gradient(90deg, color-mix(in oklch, var(--c) 70%, transparent) 0 2px, transparent 2px 9px); background-size: 100% 40%; background-repeat: no-repeat; background-position: 0 50%; }
.cp-clip--new { box-shadow: 0 0 0 2px oklch(0.72 0.13 42 / .35); }
.cp-chat { align-content: end; padding: 18px; max-width: none; }
.cp-learn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); min-height: 420px; }
.cp-video { position: relative; margin: 18px; border-radius: 12px; overflow: hidden; background: radial-gradient(70% 80% at 30% 40%, oklch(0.35 0.08 295), transparent 70%), radial-gradient(60% 70% at 80% 80%, oklch(0.35 0.08 230), transparent 70%), oklch(0.12 0.01 250); display: grid; place-items: center; min-height: 220px; }
.cp-play { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: oklch(1 0 0 / .14); color: var(--a-text); font-size: 1.125rem; border: 1px solid oklch(1 0 0 / .25); }
.cp-scrub { position: absolute; left: 14px; right: 14px; bottom: 30px; height: 4px; border-radius: 4px; background: oklch(1 0 0 / .15); }
.cp-scrub i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--ember); }
.cp-time { position: absolute; left: 14px; bottom: 8px; color: var(--a-muted); font-size: 0.6875rem; }
.cp-steps { padding: 18px 18px 18px 0; display: grid; align-content: center; gap: 6px; }
.cp-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-panel); }
.cp-steps .mono { color: var(--ember); font-size: 0.6875rem; }
.cp-steps b { display: block; font-weight: 500; font-size: 0.8125rem; }
.cp-steps em { display: block; color: var(--a-faint); font-size: 0.75rem; }
.cp-listen { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 420px; }
.cp-bands { padding: 22px 22px 16px; display: grid; align-content: center; gap: 12px; }
.cp-bands > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 12px; }
.cp-bands .mono { color: var(--a-muted); font-size: 0.6875rem; }
.cp-bands i { position: relative; display: block; height: 18px; }
.cp-bands i::before, .cp-bands i::after { content: ""; position: absolute; left: 0; height: 7px; border-radius: 4px; }
.cp-bands i::before { top: 0; width: calc(var(--a) * 100%); background: var(--ember); }
.cp-bands i::after { bottom: 0; width: calc(var(--b) * 100%); background: var(--ice); opacity: .8; }
.cp-key { display: flex; gap: 16px; color: var(--a-faint); font-size: 0.6875rem; padding-left: 82px; }
.cp-key span { display: inline-flex; align-items: center; gap: 6px; }
.cp-key i { width: 14px; height: 4px; border-radius: 2px; }
.cp-key .ka { background: var(--ember); } .cp-key .kb { background: var(--ice); }
.cp-teach { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 420px; }
.cp-lesson { padding: 26px; display: grid; align-content: center; gap: 12px; border-right: 1px solid var(--a-line); }
.cp-big { font-size: 1.5rem; font-weight: 300; line-height: 1.3; letter-spacing: -0.015em; }
.cp-task { padding: 22px; display: grid; align-content: center; gap: 12px; background: var(--a-panel); }
.cp-task ul { display: grid; gap: 6px; }
.cp-task li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-bg); font-size: 0.8125rem; }
.cp-task li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--a-faint); flex: none; }
.cp-task li.is-done { color: var(--a-muted); }
.cp-task li.is-done::before { background: var(--mint); border-color: var(--mint); }
.nav__links a[aria-current="page"] { color: var(--text); }
@media (max-width: 1080px) {
  .cp-build, .cp-learn, .cp-listen, .cp-teach { grid-template-columns: minmax(0, 1fr); }
  .cp-arr, .cp-lesson { border-right: 0; border-bottom: 1px solid var(--a-line); }
  .cp-steps { padding: 0 18px 18px; }
}
@media (max-width: 640px) {
  .cp-track { grid-template-columns: 64px minmax(0, 1fr); height: 38px; }
  .cp-ruler { padding-left: 70px; }
  .cp-steps li { grid-template-columns: 40px minmax(0, 1fr); }
  .cp-steps li > .u-tag { display: none; }
  .cp-bands > div { grid-template-columns: 56px minmax(0, 1fr); }
  .cp-key { padding-left: 0; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* if main.js never runs, show everything after 3 s anyway */
  .js [data-reveal]:not(.is-in) { animation: reveal-fallback 0s 3s forwards; }
  .split-words:not(.is-in) .w > span { animation: reveal-fallback 0s 3s forwards; }
  .hero .split__side { animation: rise 1s var(--ease) .45s both; }
  .hero .chip-label { animation: rise .8s var(--ease) both; }
  .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0 0.24em; margin: -0.08em 0 -0.24em; }
  .split-words .w > span { display: inline-block; transform: translateY(110%) rotate(2deg); transform-origin: 0 100%; opacity: 0; transition: transform 1s var(--ease), opacity .8s var(--ease); transition-delay: calc(var(--d) * 55ms); }
  .split-words.is-in .w > span { transform: none; opacity: 1; }
  .lede, .split__side > .muted, .row__copy > .muted { transition: opacity 1s var(--ease) .25s, transform 1s var(--ease) .25s; }
  .shot[role="tabpanel"]:not([hidden]) { animation: fade .45s var(--ease); }
  .arc.is-drawing .arc__actual { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s .35s var(--ease) forwards; }
  .arc.is-drawing .arc__block, .arc.is-drawing .arc__pt, .arc.is-drawing .arc__cluster { opacity: 0; animation: fade .5s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * 55ms); }
  .arc.is-drawing .arc__seam { opacity: 0; animation: fade .6s 1.7s var(--ease) forwards; }
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .shot__body--side { grid-template-columns: minmax(0, 1fr); }
  .u-side { display: none; }
  .u-why { border-left: 0; border-top: 1px solid var(--a-line); }
  .shot__body--mix { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow::before { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .split, .row, .access, .split--faq { grid-template-columns: minmax(0, 1fr); }
  .split { align-items: start; }
  .row--flip .row__copy { order: 0; }
  .shot--book .book { grid-template-columns: minmax(0, 1fr); }
  .book__list { border-right: 0; border-bottom: 1px solid var(--a-line); }
  .who { grid-template-columns: minmax(0, 1fr); }
  .next { grid-template-columns: minmax(0, 1fr); }
  .lv { grid-template-columns: minmax(0, 1fr); }
  .lv__main { border-right: 0; border-bottom: 1px solid var(--a-line); }
  .night { margin-left: 0; }
  .products { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
  .u-tr { grid-template-columns: minmax(120px, 2fr) 56px 44px minmax(60px, 1fr) 76px; }
  .u-tr > :nth-child(5) { display: none; }
}
@media (max-width: 640px) {
  .stage { padding: 8px; border-radius: var(--r-lg); }
  .stage__tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .stage__tabs button { justify-content: center; padding: 0 10px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .card__art { height: 230px; }
  .shot__right { display: none; }
  .u-main { padding: 12px 10px 8px; }
  .u-chapters span { font-size: 0.625rem; padding: 3px 5px; }
  .u-why { padding: 16px 14px; }
  .u-tr { grid-template-columns: minmax(0, 1fr) 50px 64px; gap: 10px; padding: 9px 12px; }
  .u-tr > :nth-child(3), .u-tr > :nth-child(5) { display: none; }
  .u-tr > :nth-child(4) { display: none; }
  .u-lanes { padding: 14px 12px; }
  .u-window { left: calc(12px + (100% - 24px) * 0.333); width: calc((100% - 24px) * 0.333); }
  .u-chap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-mail { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .u-mail > .mono { display: none; }
  .u-art { width: 36px; height: 36px; }
  .u-mini li { grid-template-columns: 72px 1fr auto; gap: 8px; }
  .u-msg, .u-msg--me { max-width: 100%; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .night::before { left: 70px; }
  .night__step { grid-template-columns: 56px minmax(0, 1fr); gap: 26px; }
  .night__step::before { left: 66px; }
  .stage__tabs button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .flow__card { min-height: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card--big { grid-column: auto; }
  .works__list { gap: var(--space-xl); }
  .foot__bottom { flex-direction: column; gap: 0; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 0.875rem; }
  .nav__inner, .nav__actions { gap: var(--space-xs); }
  .nav .pill--sm { padding: 0 12px; font-size: 0.8125rem; }
}
@media (min-width: 1800px) {
  :root { --maxw: 1360px; }
  body { font-size: 1.125rem; }
}
