:root {
  --bg: #0B0B0C;
  --bg-2: #101011;
  --panel: #171718;
  --panel-2: #1E1E20;
  --ink: #F3F3F2;
  --muted: #A7A7AA;
  --dim: #58585E;
  --line: rgba(255,255,255,.085);
  --line-2: rgba(255,255,255,.16);
  --mint: #D0D0D2;
  --mint-dark: #1E1E20;
  --warm: #B8B8BC;
  --violet: #B8B8BC;
  --coral: #A7A7AA;
  --blue: #B8B8BC;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 5%, rgba(133, 133, 137, .10), transparent 28rem),
    radial-gradient(circle at 7% 31%, rgba(88, 88, 94, .055), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { color: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

nav.nav {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 12, .88);
  backdrop-filter: blur(18px);
}
.nav-right { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.video-library-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font: 600 11.5px/1 var(--sans);
}
.video-library-link:hover { border-color: var(--line-2); color: var(--ink); }
.video-library-link svg { width: 14px; height: 14px; }
.video-profile {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(208, 208, 210, .32);
  border-radius: 50%;
  background: rgba(208, 208, 210, .09);
  color: var(--mint);
  font: 700 12px/1 var(--sans);
}

.video-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 82px; }
.eyebrow {
  margin: 0;
  color: var(--dim);
  font: 650 9px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.video-hero {
  display: grid;
  grid-template-columns: minmax(420px, .86fr) minmax(520px, 1.14fr);
  min-height: 630px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), transparent 36%),
    rgba(16, 16, 17, .84);
  box-shadow: 0 42px 110px -56px #000;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(42px, 5vw, 72px); }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--mint); }
.hero-copy > .eyebrow span { width: 18px; height: 1px; background: currentColor; }
.hero-copy h1 {
  margin: 16px 0 19px;
  font: 510 clamp(52px, 5.5vw, 82px)/.93 var(--serif);
  letter-spacing: -.06em;
}
.hero-copy h1 em { color: #A7A7AA; font-style: italic; font-weight: 390; }
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--muted); font: 430 15px/1.68 var(--sans); }

.video-compose {
  margin-top: 31px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 17px;
  background: rgba(11, 11, 12, .58);
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 22px 48px -38px #000;
}
.compose-paths {
  min-width: 0;
  margin: 0 0 10px;
  padding: 0 0 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.compose-paths legend { padding: 1px 5px 8px; color: var(--dim); font: 650 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.compose-paths > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.compose-paths button {
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 7px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font: 620 9.5px/1 var(--sans);
  white-space: nowrap;
}
.compose-paths button:hover { background: rgba(255,255,255,.04); color: var(--ink); }
.compose-paths button[aria-pressed="true"] { border-color: rgba(208, 208, 210, .26); background: rgba(208, 208, 210, .1); color: var(--mint); }
.compose-paths button svg { flex: 0 0 auto; width: 12px; height: 12px; }
.video-compose > label { display: block; padding: 1px 5px 0; color: var(--dim); font: 650 9px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.video-compose textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 0;
  outline: 0;
  padding: 15px 5px 11px;
  background: transparent;
  color: var(--ink);
  font: 450 14.5px/1.5 var(--sans);
}
.video-compose textarea::placeholder { color: #58585E; }
.compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compose-footer > span { display: inline-flex; align-items: center; gap: 6px; padding-left: 5px; color: var(--dim); font: 520 9.5px/1 var(--mono); }
.compose-footer > span svg { flex: 0 0 auto; width: 12px; height: 12px; color: var(--mint); }
.video-compose .compose-submit, .primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  border: 0;
  border-radius: 11px;
  padding: 0 16px;
  background: var(--mint);
  color: #171718;
  cursor: pointer;
  font: 700 12px/1 var(--sans);
}
.video-compose .compose-submit:hover, .primary-link:hover { background: #E2E2E4; }
.video-compose .compose-submit svg, .primary-link svg { width: 15px; height: 15px; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 0; margin-top: 22px; }
.hero-metrics span { display: grid; min-width: 92px; gap: 4px; padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); }
.hero-metrics span:last-child { border-right: 0; margin-right: 0; }
.hero-metrics strong { font: 540 19px/1 var(--serif); }
.hero-metrics small { color: var(--dim); font: 550 8.5px/1 var(--mono); letter-spacing: .05em; }

.hero-reel {
  display: grid;
  grid-template-columns: 1.32fr .68fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border-left: 1px solid var(--line);
  background: #0B0B0C;
}
.hero-reel figure { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; border-radius: 17px; background: #171718; }
.hero-reel .reel-main { grid-row: 1 / 3; }
.hero-reel video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.04); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.hero-reel figure:hover video { transform: scale(1.025); filter: saturate(1) contrast(1.03); }
.hero-reel figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 11, 12, .82), transparent 43%);
}
.hero-reel figcaption { position: absolute; z-index: 1; right: 15px; bottom: 14px; left: 15px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.hero-reel figcaption span { display: grid; gap: 4px; min-width: 0; }
.hero-reel figcaption small { color: #B8B8BC; font: 600 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero-reel figcaption strong { overflow: hidden; color: #F3F3F2; font: 590 12px/1.25 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.hero-reel figcaption b { color: rgba(255,255,255,.55); font: 500 10px/1 var(--mono); }

.lab-index {
  position: sticky;
  z-index: 40;
  top: 66px;
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 20px auto 0;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 16, 17, .9);
  box-shadow: 0 16px 42px -30px #000;
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}
.lab-index::-webkit-scrollbar { display: none; }
.lab-index > span { padding: 0 12px; color: var(--dim); font: 650 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.lab-index a, .lab-index button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 600 10.5px/1 var(--sans);
  white-space: nowrap;
}
.lab-index a:hover { background: rgba(255,255,255,.055); color: var(--ink); }
.lab-index a b { color: var(--dim); font: 550 8px/1 var(--mono); }
.lab-index button { margin-left: 3px; background: rgba(208, 208, 210, .11); color: var(--mint); }
.lab-index button:hover { background: rgba(208, 208, 210, .17); }
.lab-index button svg { width: 13px; height: 13px; }

.lab-section { padding: 92px 0 0; scroll-margin-top: 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 27px; }
.section-heading > div { display: grid; gap: 11px; }
.section-heading h2 { margin: 0; font: 490 clamp(33px, 3.3vw, 49px)/1.03 var(--serif); letter-spacing: -.04em; }
.section-heading > p { max-width: 500px; margin: 0 0 3px; color: var(--muted); font: 430 13px/1.65 var(--sans); }

.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.workflow-card {
  position: relative;
  display: grid;
  min-height: 265px;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.036), transparent 47%),
    rgba(23, 23, 24, .8);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
}
.workflow-card:hover { transform: translateY(-3px); border-color: var(--line-2); background-color: #1E1E20; }
.workflow-card.featured {
  background:
    radial-gradient(circle at 85% 10%, rgba(208, 208, 210, .14), transparent 13rem),
    linear-gradient(145deg, rgba(255,255,255,.045), transparent 48%),
    #171718;
}
.workflow-number { position: absolute; top: 18px; right: 18px; color: #58585E; font: 500 9px/1 var(--mono); }
.workflow-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.045); color: #B8B8BC; }
.workflow-icon.mint { color: var(--mint); background: rgba(208, 208, 210, .08); }
.workflow-icon.warm { color: var(--warm); background: rgba(184, 184, 188, .08); }
.workflow-icon.violet { color: var(--violet); background: rgba(184, 184, 188, .08); }
.workflow-icon.coral { color: var(--coral); background: rgba(167, 167, 170, .08); }
.workflow-icon.blue { color: var(--blue); background: rgba(184, 184, 188, .08); }
.workflow-icon svg { width: 19px; height: 19px; }
.workflow-copy { display: flex; flex-direction: column; justify-content: end; }
.workflow-copy small { margin-bottom: 7px; color: var(--dim); font: 600 8.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.workflow-copy strong { font: 530 22px/1.05 var(--serif); letter-spacing: -.02em; }
.workflow-copy p { max-width: 340px; margin: 10px 0 0; color: var(--muted); font: 430 12px/1.55 var(--sans); }
.workflow-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.workflow-meta b { color: var(--dim); font: 550 9px/1 var(--mono); }
.workflow-meta svg { width: 15px; height: 15px; color: var(--muted); }

.control-rails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.native-controls-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(105deg, rgba(184, 184, 188, .09), rgba(184, 184, 188, .045) 48%, rgba(23, 23, 24, .8));
  color: inherit;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease;
}
button.native-controls-rail { width: 100%; cursor: pointer; }
.native-controls-rail:hover { transform: translateY(-2px); border-color: var(--line-2); }
.choreography-rail { background: linear-gradient(105deg, rgba(208, 208, 210, .09), rgba(184, 184, 188, .045) 48%, rgba(23, 23, 24, .8)); }
.choreography-rail .native-controls-icon { border-color: rgba(208, 208, 210, .22); background: rgba(208, 208, 210, .08); color: var(--mint); }
.choreography-rail > b svg { color: var(--mint); }
.native-controls-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(184, 184, 188, .22); border-radius: 12px; background: rgba(184, 184, 188, .08); color: var(--blue); }
.native-controls-icon svg { width: 20px; height: 20px; }
.native-controls-rail > span:nth-child(2) { min-width: 0; }
.native-controls-rail small { display: block; margin-bottom: 4px; color: var(--dim); font: 650 8px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.native-controls-rail strong { color: var(--ink); font: 560 15px/1.2 var(--sans); }
.native-controls-rail p { margin: 4px 0 0; color: var(--muted); font: 430 11px/1.45 var(--sans); }
.native-controls-rail > b { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.native-controls-rail > b i { padding: 5px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); font: 650 7.5px/1 var(--mono); font-style: normal; letter-spacing: .045em; }
.native-controls-rail > b svg { width: 16px; height: 16px; margin-left: 4px; color: var(--blue); }

.asset-section { position: relative; }
.asset-rail {
  display: grid;
  grid-auto-columns: minmax(260px, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  min-height: 354px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 0 8px;
  scrollbar-color: #3A3A3E transparent;
  scrollbar-width: thin;
}
.asset-card, .asset-skeleton {
  position: relative;
  display: flex;
  min-height: 346px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #171718;
}
.asset-skeleton { background: linear-gradient(100deg, #171718 25%, #1E1E20 40%, #171718 60%); background-size: 300% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position-x: -150%; } }
.asset-media { position: relative; flex: 1; min-height: 232px; overflow: hidden; background: #0B0B0C; }
.asset-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.asset-card:hover .asset-media img { transform: scale(1.02); }
.asset-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(11, 11, 12, .52), transparent 40%); }
.asset-badge { position: absolute; z-index: 1; top: 11px; left: 11px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(11, 11, 12, .68); color: #D0D0D2; backdrop-filter: blur(12px); font: 600 8px/1 var(--mono); text-transform: uppercase; }
.asset-badge svg { width: 10px; height: 10px; }
.asset-info { display: grid; gap: 4px; padding: 13px 14px 10px; }
.asset-info strong { overflow: hidden; font: 590 12.5px/1.2 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.asset-info small { overflow: hidden; color: var(--dim); font: 520 9px/1.2 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.asset-actions { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 10px 10px; }
.asset-actions button, .asset-actions a {
  display: inline-flex;
  min-height: 31px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: pointer;
  font: 600 9px/1 var(--sans);
}
.asset-actions button:hover, .asset-actions a:hover { border-color: var(--line-2); background: rgba(255,255,255,.055); color: var(--ink); }
.asset-actions button.primary { border-color: rgba(208, 208, 210, .28); background: rgba(208, 208, 210, .09); color: var(--mint); }
.empty-assets { display: grid; min-height: 340px; grid-column: 1 / -1; place-items: center; border: 1px dashed var(--line-2); border-radius: 17px; text-align: center; }
.empty-assets div { display: grid; justify-items: center; gap: 10px; max-width: 330px; padding: 30px; }
.empty-assets svg { width: 25px; height: 25px; color: var(--dim); }
.empty-assets strong { font: 530 19px/1.1 var(--serif); }
.empty-assets p { margin: 0; color: var(--muted); font: 430 12px/1.55 var(--sans); }
.empty-assets a { margin-top: 5px; color: var(--mint); font: 650 11px/1 var(--sans); }

.tool-ribbon { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.tool-ribbon article { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 15px; background: #171718; }
.tool-ribbon > article > svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--mint); }
.tool-ribbon article div { display: grid; gap: 4px; min-width: 0; }
.tool-ribbon strong { font: 590 10.5px/1 var(--sans); }
.tool-ribbon small { overflow: hidden; color: var(--dim); font: 500 8.5px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }

.still-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
.still-rail { grid-auto-columns: minmax(238px, 1fr); }
.performance-note {
  min-height: 354px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 25px;
  background:
    radial-gradient(circle at 93% 4%, rgba(184, 184, 188, .14), transparent 14rem),
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 46%),
    #171718;
}
.performance-note > svg { width: 23px; height: 23px; margin-bottom: 32px; color: var(--violet); }
.performance-note h3 { margin: 10px 0 22px; font: 500 28px/1.05 var(--serif); letter-spacing: -.035em; }
.performance-note ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.performance-note li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.performance-note li > b { color: var(--dim); font: 500 8px/1 var(--mono); }
.performance-note li > span { display: grid; gap: 4px; }
.performance-note li strong { font: 590 10.5px/1 var(--sans); }
.performance-note li small { color: var(--dim); font: 500 8.5px/1 var(--mono); }

.models-section { padding-bottom: 4px; }
.model-provider-panel {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(100deg, rgba(208, 208, 210, .055), transparent 34%),
    rgba(16, 16, 17, .84);
}
.model-provider-intro { display: grid; gap: 5px; padding: 0 4px; }
.model-provider-intro span { color: var(--ink); font: 620 10px/1 var(--sans); }
.model-provider-intro strong { color: var(--dim); font: 550 7.5px/1 var(--mono); letter-spacing: .04em; }
.model-providers { display: flex; align-items: center; gap: 5px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.model-providers::-webkit-scrollbar { display: none; }
.model-providers button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
  background: rgba(11, 11, 12, .42);
  color: var(--muted);
  cursor: pointer;
  font: 620 9.5px/1 var(--sans);
  white-space: nowrap;
}
.model-providers button small { display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 99px; background: rgba(255,255,255,.055); color: var(--dim); font: 600 7px/1 var(--mono); }
.model-providers button:hover { border-color: var(--line-2); color: var(--ink); }
.model-providers button[aria-pressed="true"] { border-color: rgba(208, 208, 210, .36); background: rgba(208, 208, 210, .11); color: var(--mint); }
.model-providers button[aria-pressed="true"] small { background: rgba(208, 208, 210, .15); color: var(--mint); }
.model-explorer-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(0, 1.6fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(16, 16, 17, .84);
}
.model-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0B0B0C;
  color: var(--dim);
}
.model-search:focus-within { border-color: rgba(208, 208, 210, .5); color: var(--mint); }
.model-search svg { flex: 0 0 auto; width: 14px; height: 14px; }
.model-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 520 11px/1 var(--sans);
}
.model-search input::placeholder { color: #58585E; }
.model-filters { display: flex; align-items: center; gap: 5px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.model-filters::-webkit-scrollbar { display: none; }
.model-filters button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font: 620 9px/1 var(--sans);
  white-space: nowrap;
}
.model-filters button:hover { color: var(--ink); background: rgba(255,255,255,.045); }
.model-filters button[aria-pressed="true"] { border-color: rgba(208, 208, 210, .28); background: rgba(208, 208, 210, .10); color: var(--mint); }
.model-summary { padding-right: 5px; color: var(--dim); font: 600 8.5px/1 var(--mono); white-space: nowrap; }
.model-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.model-card, .model-skeleton {
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #171718;
}
.model-card { display: flex; min-width: 0; flex-direction: column; transition: transform .18s ease, border-color .18s ease; }
.model-card:hover, .model-card:focus-within { transform: translateY(-3px); border-color: var(--line-2); }
.model-skeleton { background: linear-gradient(100deg, #171718 25%, #1E1E20 40%, #171718 60%); background-size: 300% 100%; animation: shimmer 1.5s infinite; }
.model-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 65% 22%, rgba(208, 208, 210, .15), transparent 14rem),
    linear-gradient(145deg, #262628, #0B0B0C);
}
.model-preview img, .model-preview video { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), opacity .2s ease; }
.model-preview video { position: absolute; inset: 0; opacity: 0; }
.model-card.preview-playing .model-preview video { opacity: 1; }
.model-card.preview-playing .model-preview img { opacity: 0; }
.model-card:hover .model-preview img, .model-card.preview-playing .model-preview video { transform: scale(1.018); }
.model-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 11, 12, .68), transparent 48%);
}
.model-preview-badge, .model-preview-spec {
  position: absolute;
  z-index: 1;
  top: 11px;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(11, 11, 12, .64);
  color: #D0D0D2;
  backdrop-filter: blur(10px);
  font: 600 7.5px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.model-preview-badge { left: 11px; gap: 6px; padding: 0 8px; }
.model-preview-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(208, 208, 210, .8); }
.model-preview-spec { right: 11px; padding: 0 8px; }
.model-body { display: flex; flex: 1; flex-direction: column; padding: 15px; }
.model-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.model-head span { display: grid; gap: 5px; min-width: 0; }
.model-head small { color: var(--dim); font: 600 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.model-head strong { overflow: hidden; font: 570 15px/1.2 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.model-head b { flex: 0 0 auto; padding: 5px 7px; border-radius: 6px; background: rgba(208, 208, 210, .08); color: var(--mint); font: 600 8px/1 var(--mono); }
.model-caps { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.model-caps span { padding: 6px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font: 550 8px/1 var(--mono); }
.model-note { min-height: 29px; margin: 12px 0 0; overflow: hidden; color: var(--dim); font: 500 9px/1.45 var(--mono); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.model-card-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.model-live-price { display: grid; gap: 3px; min-width: 0; }
.model-live-price strong { color: var(--ink); font: 650 13px/1 var(--mono); }
.model-live-price small { overflow: hidden; color: var(--dim); font: 500 7.5px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.model-card-foot button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 650 9px/1 var(--sans);
  white-space: nowrap;
}
.model-card-foot button:hover { border-color: var(--line-2); color: var(--ink); }
.model-card-foot button.primary { border-color: var(--mint); background: var(--mint); color: #171718; }
.model-card-foot button.primary:hover { background: #E2E2E4; }
.model-empty { grid-column: 1 / -1; padding: 42px 18px; border: 1px dashed var(--line-2); border-radius: 15px; color: var(--dim); text-align: center; font: 500 11px/1.5 var(--sans); }
.model-proof-note { display: flex; align-items: center; gap: 7px; margin: 12px 2px 0; color: var(--dim); font: 500 8.5px/1.45 var(--mono); }
.model-proof-note svg { flex: 0 0 auto; width: 13px; height: 13px; color: var(--mint); }

.finish-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, .9fr);
  gap: 40px;
  margin-top: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: clamp(35px, 5vw, 64px);
  background:
    radial-gradient(circle at 86% 17%, rgba(208, 208, 210, .10), transparent 22rem),
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 43%),
    #171718;
}
.finish-copy h2 { margin: 12px 0 15px; font: 500 clamp(35px, 3.4vw, 49px)/1.02 var(--serif); letter-spacing: -.045em; }
.finish-copy > p:not(.eyebrow) { max-width: 600px; margin: 0; color: var(--muted); font: 430 13px/1.65 var(--sans); }
.finish-copy > div { display: flex; align-items: center; gap: 19px; margin-top: 25px; }
.finish-copy > div > a:not(.primary-link) { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: 600 11px/1 var(--sans); }
.finish-copy > div > a:not(.primary-link):hover { color: var(--ink); }
.finish-copy > div svg { width: 14px; height: 14px; }
.finish-flow { display: grid; align-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.finish-flow li { display: grid; grid-template-columns: 45px 1fr; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line); }
.finish-flow li:first-child { border-top: 1px solid var(--line); }
.finish-flow li > span { color: var(--mint); font: 550 8px/1 var(--mono); }
.finish-flow li > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.finish-flow strong { font: 590 12px/1 var(--sans); }
.finish-flow small { color: var(--dim); font: 500 9px/1 var(--mono); }

.video-toast {
  position: fixed;
  z-index: 9999;
  right: 18px;
  bottom: 18px;
  max-width: min(390px, calc(100vw - 36px));
  translate: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 11px 14px;
  background: rgba(23, 23, 24, .96);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 18px 50px -25px #000;
  transition: opacity .16s ease, translate .16s ease;
  font: 550 11px/1.4 var(--sans);
}
.video-toast.show { translate: 0 0; opacity: 1; }

@media (max-width: 1080px) {
  .video-hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 565px; }
  .hero-reel { min-height: 560px; border-top: 1px solid var(--line); border-left: 0; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-ribbon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-explorer-toolbar { grid-template-columns: minmax(210px, .8fr) minmax(0, 1.5fr); }
  .model-summary { grid-column: 1 / -1; padding: 0 4px 3px; }
  .model-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finish-section { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .video-shell { width: min(100% - 22px, 1320px); padding-top: 12px; }
  .video-library-link span:last-child { display: none; }
  .video-hero { min-height: 0; border-radius: 18px; }
  .hero-copy { min-height: 0; padding: 38px 24px 35px; }
  .hero-copy h1 { font-size: clamp(43px, 13.5vw, 64px); }
  .compose-footer > span { display: none; }
  .video-compose .compose-submit { margin-left: auto; }
  .hero-metrics { row-gap: 15px; }
  .hero-metrics span { min-width: 78px; margin-right: 12px; padding-right: 12px; }
  .hero-reel { min-height: 500px; grid-template-columns: 1fr 1fr; grid-template-rows: 1.25fr .75fr; }
  .hero-reel .reel-main { grid-column: 1 / 3; grid-row: auto; }
  .lab-index { top: 61px; width: 100%; border-radius: 13px; }
  .lab-index > span { display: none; }
  .lab-section { padding-top: 70px; }
  .section-heading { display: grid; gap: 14px; }
  .section-heading > p { max-width: none; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-card { min-height: 230px; }
  .control-rails { grid-template-columns: 1fr; }
  .native-controls-rail { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .native-controls-rail > b { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; padding-left: 61px; }
  .asset-rail { grid-auto-columns: minmax(248px, 82vw); }
  .tool-ribbon { grid-template-columns: 1fr 1fr; }
  .still-layout { grid-template-columns: 1fr; }
  .performance-note { min-height: 0; }
  .model-provider-panel { grid-template-columns: 1fr; }
  .model-explorer-toolbar { grid-template-columns: 1fr; }
  .model-summary { grid-column: auto; }
  .model-wall { grid-template-columns: 1fr 1fr; }
  .finish-section { margin-top: 72px; padding: 32px 23px; border-radius: 18px; }
}

@media (max-width: 500px) {
  .hero-reel { min-height: 460px; padding: 7px; gap: 6px; }
  .hero-reel figcaption strong { font-size: 10px; }
  .hero-reel figcaption { right: 10px; bottom: 10px; left: 10px; }
  .compose-paths > div { grid-template-columns: 1fr 1fr; }
  .compose-paths button { min-height: 44px; font-size: 11px; }
  .compose-paths button svg { width: 13px; height: 13px; }
  .lab-index a b { display: none; }
  .lab-index button { display: none; }
  .tool-ribbon, .model-wall { grid-template-columns: 1fr; }
  .model-card { min-height: 398px; }
  .model-filters { margin-right: -4px; }
  .finish-copy > div { align-items: stretch; flex-direction: column; }
  .primary-link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
