:root {
  color-scheme: light;
  --bg: #FAF9F5;
  --sand: #F0EEE6;
  --surface: #FFFFFF;
  --ink: #141413;
  --ink-2: #3D3D3A;
  --muted: #6B6A64;
  --line: #E6E3D9;
  --line-2: #D6D2C4;
  --clay: #D97757;
  --clay-dark: #B4532F;
  --serif: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-bg: rgba(250, 249, 245, 0.82);
  --ink-hover: #2B2A27;
  --muted-inv: #A8A69E;
  --band: #141413;
  --band-fg: #FAF9F5;
  --band-line: #2B2A27;
  --radius: 20px;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; transition: background-color .35s, color .35s; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg, iframe { display: block; max-width: 100%; }
::selection { background: var(--clay); color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; }
.mark { width: 22px; height: 22px; color: var(--clay); flex: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.wordmark .mark { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.wordmark:hover .mark { transform: rotate(90deg); }
.nav { display: flex; gap: .25rem; margin-right: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: .92rem; padding: .4rem .75rem; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--sand); color: var(--ink); }
.header-right { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.live-pill { margin: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-family: var(--mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.live-pill strong { color: var(--ink); font-weight: 500; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3BAA6B; box-shadow: 0 0 0 0 rgba(59,170,107,.5); animation: pulse 2s infinite; flex: none; }
.offline .live-dot, .live-dot.offline { background: var(--line-2); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59,170,107,.45); } 70% { box-shadow: 0 0 0 7px rgba(59,170,107,0); } 100% { box-shadow: 0 0 0 0 rgba(59,170,107,0); } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 999px; font-size: .95rem; font-weight: 500; text-decoration: none; border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-hover); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { padding: .45rem .95rem; font-size: .85rem; }

/* hero */
.hero { padding: clamp(4rem, 10vw, 8.5rem) 0 clamp(3rem, 6vw, 5rem); }
.eyebrow { margin: 0 0 1.25rem; display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow-dot { width: 7px; height: 7px; background: var(--clay); border-radius: 2px; transform: rotate(45deg); }
.hero h1 { margin: 0; max-width: 12ch; font-family: var(--serif); font-weight: 500; font-size: clamp(2.9rem, 7.6vw, 6.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero-foot { margin-top: clamp(2rem, 4vw, 3rem); display: flex; align-items: flex-end; justify-content: flex-start; gap: 2rem 3rem; flex-wrap: wrap; }
.lede { margin: 0; max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.stats { margin: clamp(3rem, 6vw, 5rem) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.stats > div { padding: 1.1rem 1.25rem 0 0; }
.stats > div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: .35rem 0 0; display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* section heads */
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em; }
.section-head .eyebrow { margin-bottom: .9rem; }
.section-sub { margin: .8rem 0 0; color: var(--muted); }

/* models */
.models { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.model-grid { margin-top: 2.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.model-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 1.6rem; padding: 1.4rem 1.5rem 1.3rem; background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px; transition: background .2s, border-color .2s, transform .25s; min-height: 150px; }
.model-card:hover { background: var(--surface); border-color: var(--ink); transform: translateY(-2px); }
.model-card:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.model-card.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.model-card-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.model-card.active .model-card-top { color: var(--muted-inv); }
.model-card-arrow { font-family: var(--sans); font-size: 1rem; transition: transform .25s; }
.model-card:hover .model-card-arrow { transform: translate(3px, -3px); color: var(--clay); }
.model-card-name { margin-top: auto; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.12; letter-spacing: -0.03em; }
.model-card-sub { margin-top: .35rem; font-size: .85rem; color: var(--muted); }
.model-card.active .model-card-sub { color: var(--muted-inv); }

/* catalog */
.catalog { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); scroll-margin-top: 40px; }
.models { scroll-margin-top: 0; }
.catalog-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.result-count { margin: 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toolbar { margin: 2rem 0 2.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.search-box { flex: 0 1 360px; display: flex; align-items: center; gap: .6rem; padding: 0 1.1rem; height: 46px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(217,119,87,.15); }
.search-box svg { width: 18px; height: 18px; }
.search-box input { all: unset; flex: 1; min-width: 0; font-size: .95rem; color: var(--ink); }
.search-box input::placeholder { color: var(--muted); }
.tag-row { display: flex; gap: .45rem; flex-wrap: wrap; }
.tag-filter { cursor: pointer; padding: .55rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font: 500 .85rem var(--sans); color: var(--ink-2); transition: all .2s; }
.tag-filter:hover { border-color: var(--ink); color: var(--ink); }
.tag-filter.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 30px 60px -36px rgba(20,20,19,.35); }
.card-preview { position: relative; background: #141413; display: flex; flex-direction: column; }
.embed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .9rem; background: #1F1E1C; color: #A8A69E; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.embed-toolbar > span { display: inline-flex; align-items: center; gap: .65rem; }
.embed-toolbar i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #48463F; box-shadow: 14px 0 0 #48463F, 28px 0 0 #48463F; margin-right: 32px; }
.embed-toolbar a { color: #E8E6DC; text-decoration: none; padding: .25rem .6rem; border: 1px solid #3A3934; border-radius: 999px; transition: border-color .2s, color .2s; }
.embed-toolbar a:hover { border-color: var(--clay); color: #fff; }
.embed-stage { position: relative; aspect-ratio: 16 / 10; background: #0E0E0D; }
.embed-stage img, .embed-stage video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.embed-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0E0E0D; }
.embed-shield { position: absolute; inset: 0; z-index: 2; display: none; align-items: flex-end; justify-content: center; padding: 1rem; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.embed-shield span { padding: .6rem 1rem; border-radius: 999px; background: rgba(20,20,19,.85); color: #fff; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.touch .embed-shield { display: flex; }
.touch .embed-stage.is-active .embed-shield { display: none; }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.4rem; }
.card-kicker { display: flex; gap: .6rem; align-items: center; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-kicker span:first-child { color: var(--clay-dark); }
.card-kicker span + span::before { content: "/"; margin-right: .6rem; color: var(--line-2); }
.card-top { margin-top: .75rem; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.card-top h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.1; letter-spacing: -0.03em; }
.badge { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); flex: none; }
.card-desc { margin: 1rem 0 1.1rem; color: var(--ink-2); font-size: .97rem; line-height: 1.6; }
.run-facts { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.run-facts li { padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; color: var(--ink); background: var(--bg); }
.run-facts strong { margin-right: .45rem; font-family: var(--mono); font-weight: 500; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { font-family: var(--mono); font-size: .68rem; color: var(--muted); padding: .2rem .5rem; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.card-meta { margin-top: auto; padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); margin-top: 1.4rem; }
.card-meta time { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.card-action { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 500; text-decoration: none; }
.card-action span { transition: transform .25s; }
.card-action:hover { color: var(--clay-dark); }
.card-action:hover span { transform: translate(3px, -3px); }
.empty { padding: 4rem 1rem; text-align: center; color: var(--muted); }
.empty .mark { margin: 0 auto 1rem; width: 32px; height: 32px; }

/* credit */
.credit { background: var(--band); color: var(--band-fg); border-top: 1px solid var(--band-line); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.credit-inner { display: flex; flex-direction: column; align-items: flex-start; }
.credit-mark { width: 40px; height: 40px; margin-bottom: 2rem; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.credit-big { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 1; letter-spacing: -0.035em; }
.credit-big a { color: var(--clay); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s; }
.credit-big a:hover { border-bottom-color: var(--clay); }
.credit-sub { margin: 1.25rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #C9C7BE; }

.site-footer { background: var(--band); color: #8F8D85; border-top: 1px solid var(--band-line); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; flex-wrap: wrap; }
.wordmark-sm { color: var(--band-fg); font-size: 1.05rem; }
.wordmark-sm .mark { width: 18px; height: 18px; }

/* reveal */
.js .reveal { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.js .hero .reveal:nth-child(2) { animation-delay: .12s; }
.js .hero .reveal:nth-child(3) { animation-delay: .24s; }
.js .hero .stats.reveal { animation-delay: .32s; }
@supports (animation-timeline: view()) {
  .js .section-head, .js .model-card, .js .card, .js .toolbar, .js .credit-inner { animation: in-view linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
@keyframes in-view { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: 0 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .reveal { animation: none; } .credit-mark, .live-dot, .ticker-track { animation: none; } .js .section-head, .js .model-card, .js .card, .js .toolbar, .js .credit-inner { animation: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 1000px) {
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+4) { margin-top: 1.25rem; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .wrap, .header-inner { padding: 0 1.15rem; }
  .nav { display: none; }
  .header-inner { gap: 1rem; height: 58px; }
  .hero h1 { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding-right: .75rem; }
  .stats > div + div { padding-left: 1rem; }
  .stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(4) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .stats > div:nth-child(n+3) { margin-top: 1rem; border-top: 1px solid var(--line); }
  .stats > div:nth-child(5) { grid-column: 1 / -1; }
  .model-grid { grid-template-columns: 1fr 1fr; }
  .model-card { min-height: 120px; padding: 1.1rem; gap: 1rem; }
  .model-card-name { font-size: 1.15rem; }
  .search-box { flex: 1 1 100%; }
  .card-body { padding: 1.25rem 1.2rem 1.15rem; }
  .embed-stage { aspect-ratio: 3 / 4; max-height: 72vh; }
  .embed-toolbar { font-size: .6rem; }
}
@media (max-width: 340px) { .model-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .live-pill { padding: .32rem .6rem; font-size: .66rem; }
  .btn-sm { padding: .4rem .75rem; font-size: .8rem; }
  .wordmark { font-size: 1.15rem; }
  .embed-toolbar > span { font-size: 0; gap: 0; }
  .embed-toolbar i { margin-right: 28px; }
}

/* hero v3 */
.hero { padding: 0 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero-inner { position: relative; min-height: min(72vh, 700px); display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 2; padding: clamp(3rem, 7vw, 6rem) 0; pointer-events: none; }
.hero-copy a, .hero-copy .btn { pointer-events: auto; }
.hero h1 { max-width: none; font-size: clamp(3.4rem, 8.6vw, 8.2rem); line-height: .96; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
.hero h1 em { position: relative; }
.hero-foot { margin-top: clamp(2rem, 3.5vw, 2.75rem); }
.hero-hint { margin: 1.6rem 0 0; display: flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hint-key { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); font-size: .7rem; color: var(--ink); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; cursor: crosshair; touch-action: pan-y; }
.hero .stats { margin-top: 0; position: relative; z-index: 2; }

.ticker { background: var(--band); color: var(--band-fg); overflow: hidden; padding: 1.15rem 0; border-block: 1px solid var(--band-line); }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -0.035em; white-space: nowrap; }
.ticker-item .mark { width: .8em; height: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 760px) {
  .hero-inner { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { padding: 3rem 0 0; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-hint { display: none; }
  .hero-canvas { position: relative; inset: auto; height: 300px; margin: 0 -1.15rem 1rem; width: calc(100% + 2.3rem); }
}

/* dark theme */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131312;
  --sand: #1A1917;
  --surface: #1E1D1B;
  --ink: #F3F1EA;
  --ink-2: #CFCCC2;
  --muted: #9A978D;
  --line: #2A2926;
  --line-2: #3A3934;
  --clay: #E08A6B;
  --clay-dark: #D97757;
  --header-bg: rgba(19, 19, 18, 0.8);
  --ink-hover: #DDDAD0;
  --muted-inv: #6B6A64;
  --band: #1A1917;
  --band-fg: #F3F1EA;
  --band-line: #2A2926;
}
[data-theme="dark"] .card:hover { box-shadow: 0 30px 60px -36px rgba(0,0,0,.8); }

.theme-toggle { all: unset; box-sizing: border-box; cursor: pointer; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); transition: border-color .2s, transform .4s cubic-bezier(.2,.7,.2,1); flex: none; }
.theme-toggle:hover { border-color: var(--ink); transform: rotate(-20deg); }
.theme-toggle:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 420px) { .theme-toggle { width: 32px; height: 32px; } .header-right { gap: .5rem; } }
