:root {
  color-scheme: light;
  --bg: #f8f9f9;
  --surface: #eff2f3;
  --surface-raised: #fbfcfc;
  --surface-strong: #e2e6e8;
  --text: #1f2021;
  --text-soft: #5b6266;
  --text-faint: #7a8388;
  --border: #d9dddf;
  --border-strong: #b9c1c5;
  --accent: #202325;
  --accent-hover: #3a3f42;
  --accent-ink: #f8f9f9;
  --shadow: 0 24px 64px rgba(44, 55, 62, 0.13);
  --radius: 6px;
  --control-radius: 999px;
  --header-height: 68px;
  --page: min(1320px, calc(100% - 48px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "Songti SC", STSong, "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html[lang="en"] {
  --font-display: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 26%, transparent);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.nav-shell {
  width: var(--page);
  min-height: var(--header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 21px;
  font-style: normal;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  white-space: nowrap;
}

.nav-links a,
.footer-links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  white-space: nowrap;
}

.language-switch > a,
.language-switch > span {
  min-width: 34px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 4px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.language-switch a:hover {
  color: var(--text);
  background: var(--surface-strong);
}

.language-switch [aria-current="page"] {
  color: var(--text);
  background: var(--surface-raised);
  box-shadow: 0 1px 3px rgba(44, 55, 62, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-icon-link,
.nav-star-link {
  border: 1px solid transparent;
  color: var(--text-soft);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.nav-icon-link {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.nav-icon-link img,
.nav-star-link img,
.nav-mobile-actions img {
  flex: 0 0 auto;
}

.nav-icon-link:hover {
  border-color: var(--border);
  background: var(--surface-raised);
}

.nav-community-status {
  position: absolute;
  top: 4px;
  right: 3px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #5acb48;
  box-sizing: content-box;
}

.nav-star-link {
  min-width: 108px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 13px;
  border-color: var(--border);
  border-radius: var(--control-radius);
  background: color-mix(in srgb, var(--surface-raised) 76%, transparent);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.nav-star-link > img {
  width: 17px;
  height: 17px;
  display: block;
  flex: 0 0 17px;
}

.nav-star-link strong {
  min-width: 51px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: 600;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

.nav-star-link [data-github-stars-compact],
.nav-star-icon {
  display: block;
  line-height: 1;
}

.nav-star-link [data-github-stars-compact] {
  transform: translateY(1px);
}

.nav-star-icon {
  color: var(--text-soft);
  font-size: 11px;
}

.nav-star-link:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}

.nav-icon-link:active,
.nav-star-link:active {
  transform: translateY(1px) scale(0.97);
}

.nav-mobile-actions {
  display: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.icon-button:active,
.button:active {
  transform: translateY(1px) scale(0.98);
}

.menu-toggle {
  display: none;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: var(--control-radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button-small {
  min-height: 40px;
  padding-inline: 17px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 720;
  white-space: nowrap;
}

.github-stars-link {
  font-variant-numeric: tabular-nums;
}

.github-stars-link strong {
  min-width: 82px;
  font-weight: 760;
}

.text-link span {
  transition: transform 180ms var(--ease);
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.hero {
  min-height: calc(92dvh - var(--header-height));
  display: grid;
  align-items: start;
  padding: clamp(52px, 7vh, 72px) 0 clamp(44px, 5vh, 60px);
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vh, 48px);
}

.hero-copy {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trending-badge {
  position: relative;
  isolation: isolate;
  width: 250px;
  height: 55px;
  display: flex;
  margin: 0;
  overflow: hidden;
  border-radius: var(--control-radius);
  background: var(--surface-raised);
  filter: grayscale(1) saturate(0) contrast(1.14);
  opacity: 1;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, filter 180ms ease, opacity 180ms ease;
}

.trending-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
  border-radius: inherit;
  pointer-events: none;
}

.trending-badge:hover {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--text) 10%, transparent);
  filter: grayscale(1) saturate(0) contrast(1.22);
  transform: translateY(-2px);
}

.trending-badge img {
  width: 250px;
  height: 55px;
  max-width: none;
  flex: 0 0 auto;
  clip-path: inset(4px round var(--control-radius));
  transform: scale(0.96);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.08;
}

h1 {
  max-width: 1080px;
  margin: 0 auto 22px;
  font-family: var(--font-display);
  font-size: clamp(52px, 5.1vw, 72px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 span {
  color: var(--text);
  font-weight: inherit;
}

.hero-title-lines span {
  display: block;
}

.hero-lede {
  max-width: 650px;
  margin: 0 auto 24px;
  color: var(--text-soft);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-trending-badge {
  flex: 0 0 auto;
}

.hero-download-button {
  min-height: 56px;
  gap: 13px;
  padding: 6px 20px 6px 16px;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--text) 8%, transparent);
}

.hero-download-icon {
  width: 31px;
  height: 30px;
  flex: 0 0 31px;
  display: inline-grid;
  place-items: center;
  border-right: 1px solid color-mix(in srgb, var(--accent-ink) 25%, transparent);
  color: var(--accent-ink);
}

.hero-download-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  margin-left: -5px;
}

.hero-download-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  transform: translateY(1px);
}

.hero-download-copy strong {
  font-weight: 760;
}

.hero-download-copy > span {
  color: color-mix(in srgb, var(--accent-ink) 72%, transparent);
  font-weight: 540;
}

.hero-visual {
  position: relative;
  width: min(1280px, 96vw);
  margin: 0;
  isolation: isolate;
}

.hero-visual::before {
  content: none;
}

.hero-image-wrap {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #0f1113;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 700ms var(--ease);
}

.hero-image-wrap:hover {
  transform: translateY(-4px);
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 1447 / 674;
  object-fit: contain;
}

.hero-copy > *,
.hero-visual {
  opacity: 0;
  animation: hero-in 760ms var(--ease) forwards;
}

.hero-copy > :nth-child(1) { animation-delay: 80ms; }
.hero-copy > :nth-child(2) { animation-delay: 150ms; }
.hero-copy > :nth-child(3) { animation-delay: 220ms; }
.hero-copy > :nth-child(4) { animation-delay: 290ms; }
.hero-visual { animation-delay: 180ms; }

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.capability-band {
  overflow-x: auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  scrollbar-width: none;
}

.capability-band::-webkit-scrollbar {
  display: none;
}

.capability-track {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--page);
  margin-inline: auto;
}

.capability-track {
  min-width: max-content;
}

.capability-track span {
  position: relative;
  flex: 0 0 auto;
  padding: 16px clamp(18px, 2.2vw, 34px);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.capability-track span::after {
  content: none;
}

.section {
  padding: clamp(88px, 10vw, 150px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(42px, 6vw, 76px);
}

.section-heading.narrow {
  max-width: 760px;
}

.section-heading h2,
.final-cta h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.7vw, 66px);
  font-weight: 600;
  line-height: 1.18;
}

.section-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.workspaces {
  padding: clamp(76px, 8vw, 96px) 0;
}

.workspaces .section-heading {
  margin-bottom: clamp(36px, 4vw, 52px);
}

[data-reveal] {
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, 200px);
  gap: 14px;
}

.workspace-cell {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

figure.workspace-cell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.workspace-cell img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 650ms var(--ease), filter 300ms ease;
}

.workspace-cell:hover img {
  transform: scale(1.025);
}

.workspace-cell figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 19px;
  border-top: 1px solid var(--border);
  background: var(--surface-raised);
}

.workspace-cell figcaption strong,
.workspace-cell figcaption span {
  min-width: 0;
}

.workspace-cell figcaption strong {
  font-size: 15px;
}

.workspace-cell figcaption span {
  color: var(--text-soft);
  font-size: 13px;
  text-align: right;
}

.workspace-dashboard {
  grid-column: 1 / span 9;
  grid-row: 1 / span 3;
}

.workspace-dashboard img {
  object-position: left top;
}

.workspace-translation {
  grid-column: 10 / span 3;
  grid-row: 1;
}

.workspace-thumbnail {
  grid-column: 10 / span 3;
  grid-row: 2;
}

.workspace-thumbnail img {
  object-position: center;
}

.workspace-clipping {
  grid-column: 10 / span 3;
  grid-row: 3;
}

.workspace-translation figcaption,
.workspace-thumbnail figcaption,
.workspace-clipping figcaption {
  gap: 8px;
  padding: 13px 14px;
}

.workspace-translation figcaption strong,
.workspace-thumbnail figcaption strong,
.workspace-clipping figcaption strong {
  font-size: 14px;
}

.workspace-translation figcaption span,
.workspace-thumbnail figcaption span,
.workspace-clipping figcaption span {
  font-size: 12px;
}

.templates-skills {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 45%, var(--bg));
}

.templates-skills .section-heading {
  max-width: 860px;
}

.creation-resources {
  display: grid;
  gap: clamp(54px, 7vw, 96px);
}

.resource-feature {
  display: grid;
  grid-template-columns: minmax(265px, 0.85fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(38px, 6vw, 88px);
  padding-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--border-strong);
}

.resource-skill {
  grid-template-columns: minmax(265px, 0.85fr) minmax(0, 1.45fr);
}

.resource-content {
  max-width: 450px;
}

.resource-type {
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.resource-content h3 {
  margin: 15px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(29px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.24;
}

.resource-content > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.resource-content .resource-detail,
.resource-content .resource-note {
  margin-top: 22px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}

.resource-detail span {
  margin-inline: 5px;
  color: var(--text-faint);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 24px;
  margin-top: 32px;
}

.resource-links a {
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  transition: border-color 180ms ease;
}

.resource-links a:hover {
  border-color: var(--text);
}

.resource-links a span {
  padding-left: 4px;
}

.resource-preview {
  min-width: 0;
  margin: 0;
  padding: clamp(10px, 1.5vw, 18px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #141414;
  box-shadow: var(--shadow);
}

.resource-preview img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.resource-preview figcaption {
  padding: 12px 2px 2px;
  color: #aeb7bb;
  font-size: 12px;
}

.skill-preview {
  min-width: 0;
  padding: clamp(22px, 3.8vw, 48px);
  border: 1px solid #363d40;
  border-radius: var(--radius);
  background: #1d2123;
  color: #f0f2f2;
}

.skill-preview-heading,
.skill-preview-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.skill-preview-heading {
  margin-bottom: 28px;
  color: #aab5b9;
  font-family: var(--font-mono);
  font-size: 13px;
}

.skill-preview-heading span:last-child {
  color: #839195;
}

.skill-preview-row {
  padding: 20px 0;
  border-top: 1px solid #394144;
}

.skill-preview-row span:first-child {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.4vw, 17px);
}

.skill-preview-row span:last-child {
  color: #aab5b9;
  font-size: 13px;
  text-align: right;
}

.models {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
}

.models .section-heading {
  max-width: 900px;
}

.model-matrix {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr 0.9fr 1.25fr;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.model-group {
  min-width: 0;
  padding: 26px clamp(20px, 2.4vw, 36px) 30px;
  border-left: 1px solid var(--border);
}

.model-group:first-child {
  padding-left: 0;
  border-left: 0;
}

.model-group h3 {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 720;
}

.model-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-model-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.model-list li {
  color: var(--text);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 650;
  line-height: 1.35;
}

.model-group-note {
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.workflow {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 58%, var(--bg));
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: start;
  gap: clamp(40px, 7vw, 96px);
}

.workflow-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #0f1113;
  box-shadow: var(--shadow);
}

.workflow-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.workflow-points {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.workflow-points article {
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.workflow-points article:last-child {
  margin: 0;
  border-bottom: 0;
}

.workflow-points h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 680;
}

.workflow-points p,
.principles p {
  margin: 0;
  color: var(--text-soft);
}

.output-gallery {
  display: block;
}

.output-gallery figure {
  min-width: 0;
  margin: 0;
}

.output-gallery img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  object-fit: cover;
}

.output-gallery figcaption {
  display: grid;
  gap: 4px;
  padding-top: 14px;
}

.output-gallery figcaption strong {
  font-size: 17px;
}

.output-gallery figcaption span {
  max-width: 520px;
  color: var(--text-soft);
  font-size: 14px;
}

.output-family {
  padding-inline: clamp(10px, 1.4vw, 18px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #1d1e20;
}

.output-family img {
  border: 0;
  border-radius: 0;
  aspect-ratio: 40 / 11;
  object-fit: contain;
}

.community {
  border-top: 1px solid var(--border);
  background: var(--surface-raised);
}

.community-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  gap: clamp(48px, 6vw, 80px);
  margin-bottom: clamp(42px, 5vw, 64px);
}

.community-heading .section-heading {
  max-width: none;
  margin-bottom: 0;
}

.community-heading h2 {
  margin-bottom: 0;
  font-size: clamp(40px, 3.8vw, 56px);
}

.community-intro p {
  max-width: 430px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.community-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.community-star-button {
  min-height: 55px;
  gap: 10px;
  padding-inline: 20px 22px;
}

.community-star-button img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.community-contribute-button {
  min-height: 55px;
  padding-inline: 24px;
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.community-contribute-button:hover {
  border-color: var(--text-soft);
  background: var(--surface);
}

.community-heading h2 span {
  display: block;
}

.community-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(20px, 3vw, 42px);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.community-metrics div {
  min-width: 0;
  padding: 24px clamp(14px, 2vw, 28px) 22px;
  border-left: 1px solid var(--border);
}

.community-metrics div:first-child {
  padding-left: 0;
  border-left: 0;
}

.community-metrics dt {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 720;
}

.community-metrics dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 720;
  line-height: 1.15;
  white-space: nowrap;
}

.community-roster-scroll {
  width: 100%;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-strong);
}

.community-roster {
  width: 100%;
  min-height: 68px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 16px);
  margin-inline: auto;
}

.community-avatar-link {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: block;
  border-radius: 50%;
}

.community-avatar {
  width: 68px;
  height: 68px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  object-fit: cover;
  filter: saturate(0.82);
  transition: filter 180ms ease, transform 220ms var(--ease);
}

.community-avatar-link:hover .community-avatar {
  filter: saturate(1);
  transform: translateY(-2px);
}

.community-load-state {
  margin: 0;
  color: var(--text-soft);
  text-align: center;
}

.section.open-source {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 52%, var(--bg));
}

.license-link {
  margin-top: 16px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 0;
}

.principles article {
  padding-top: 20px;
  border-top: 2px solid var(--accent);
}

.principles h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.principles p {
  font-size: 14px;
}

.faq {
  border-top: 1px solid var(--border);
  background: var(--surface-raised);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(56px, 9vw, 132px);
}

.faq .section-heading {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  margin-bottom: 0;
}

.faq-list {
  border-bottom: 1px solid var(--border-strong);
}

.faq-item {
  border-top: 1px solid var(--border-strong);
}

.faq-item summary {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  color: var(--text);
  cursor: pointer;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 24px;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item summary:hover::after {
  color: var(--text);
}

.faq-item summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: 4px;
}

.faq-answer {
  max-width: 700px;
  padding: 0 48px 26px 0;
}

.faq-answer p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.final-cta {
  padding: clamp(90px, 12vw, 170px) 0;
  background: var(--text);
  color: var(--bg);
}

.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.final-cta h2 {
  max-width: 820px;
  margin: 0;
  color: var(--bg);
}

.final-cta h2 span {
  display: block;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  height: 40px;
}

.footer-brand .brand-mark {
  width: 25px;
  height: 25px;
}

.footer-brand .brand-name {
  font-size: 19px;
}

.footer-inner p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 1200px) {
  .nav-shell {
    gap: 20px;
  }

  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 1080px) {
  :root {
    --page: min(100% - 36px, 960px);
  }

  .nav-shell {
    gap: 20px;
  }

  .nav-links {
    gap: 18px;
  }

  .workspace-grid {
    grid-template-rows: repeat(3, 210px);
  }

  .workspace-dashboard {
    grid-column: 1 / span 8;
    grid-row: 1 / span 3;
  }

  .workspace-translation,
  .workspace-thumbnail,
  .workspace-clipping {
    grid-column: 9 / span 4;
  }

  .workspace-cell figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .workspace-cell figcaption span {
    text-align: left;
  }

  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 42px;
  }

}

@media (min-width: 901px) and (max-width: 1100px) {
  .nav-shell {
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .nav-community-link {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1000px) {
  .nav-star-link {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 62px;
    --page: calc(100% - 32px);
  }

  .site-header {
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
  }

  .nav-shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .brand {
    height: 38px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .brand-name {
    font-size: 20px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    justify-self: end;
    grid-column: 3;
    grid-row: 1;
    gap: 6px;
  }

  .menu-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--text);
    transition: transform 220ms var(--ease);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--text) 10%, transparent);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 220ms var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-actions {
    display: none;
  }

  .nav-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
  }

  .nav-mobile-actions a {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-raised);
    font-size: 13px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: auto;
    padding: 50px 0 42px;
  }

  .hero-grid {
    gap: 38px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(40px, 11.5vw, 48px);
  }

  html[lang="en"] h1 {
    font-size: clamp(38px, 10.2vw, 44px);
  }

  h1 span {
    display: block;
  }

  .hero-lede {
    max-width: 420px;
    margin-bottom: 20px;
    font-size: 18px;
  }

  .hero-visual {
    width: min(100%, 720px);
    margin: 0;
  }

  .section {
    padding: 82px 0;
  }

  .workspaces {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .workspaces .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .section-heading p {
    font-size: 16px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 14px;
  }

  .workspace-dashboard,
  .workspace-translation,
  .workspace-thumbnail,
  .workspace-clipping {
    grid-column: 1;
    grid-row: auto;
  }

  .workspace-dashboard { min-height: 260px; }
  .workspace-translation,
  .workspace-thumbnail,
  .workspace-clipping { min-height: 220px; }

  .model-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-group,
  .model-group:first-child {
    padding: 24px;
  }

  .model-group:nth-child(odd) {
    border-left: 0;
  }

  .model-group:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .workflow-layout,
  .resource-feature,
  .faq-layout,
  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  .workflow-points {
    position: static;
  }

  .resource-feature {
    gap: 30px;
  }

  .resource-content {
    max-width: 650px;
  }

  .principles {
    grid-template-columns: 1fr 1fr;
    gap: 36px 20px;
  }

  .community-metrics {
    width: 100%;
  }

  .community-roster {
    margin-inline: 0;
  }

  .community-roster-scroll {
    padding: 24px 0;
  }

  .community-avatar-link,
  .community-avatar {
    width: 56px;
    height: 56px;
  }

  .community-avatar-link {
    flex-basis: 56px;
  }

  .faq-layout {
    gap: 36px;
  }

  .faq .section-heading {
    position: static;
  }

  .final-cta {
    padding: 82px 0;
  }

  .final-cta-inner {
    align-items: center;
    padding: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p {
    display: none;
  }
}

@media (max-width: 360px) {
  .nav-shell {
    gap: 6px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .language-switch a,
  .language-switch span {
    min-width: 30px;
    padding-inline: 4px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 18px;
  }

  .hero-download-button {
    max-width: 100%;
    padding-right: 16px;
  }

  .hero-download-copy {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2px 6px;
    text-align: left;
  }

  .community-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .model-matrix {
    grid-template-columns: 1fr;
  }

  .model-group,
  .model-group:first-child {
    padding: 22px 0;
    border-left: 0;
  }

  .model-group + .model-group {
    border-top: 1px solid var(--border);
  }

  .faq-item summary {
    min-height: 70px;
    gap: 16px;
    padding: 19px 0;
  }

  .faq-answer {
    padding: 0 36px 22px 0;
  }

  .community-metrics dd {
    font-size: clamp(20px, 6.3vw, 28px);
  }

  .community-metrics div {
    display: grid;
    grid-template-rows: minmax(2.9em, auto) auto;
    align-content: end;
    gap: 8px;
    padding-inline: 10px;
  }

  .community-metrics dt {
    margin-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-links {
    justify-content: space-between;
  }
}

@media (max-width: 340px) {
  html[lang="en"] h1 {
    font-size: 35px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-copy > *,
  .hero-visual,
  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .capability-track > div {
    display: none;
  }
}

/* Shared landing theme: warm paper palette, serif display type, painted hero. */
html.theme-atelier {
  --bg: #f6f1e8;
  --surface: #ede6da;
  --surface-raised: #fcf9f3;
  --surface-strong: #e2d9ca;
  --text: #1c1a17;
  --text-soft: #5c554b;
  --text-faint: #857c70;
  --border: #e1d8c9;
  --border-strong: #c9bda9;
  --accent: #1c1a17;
  --accent-hover: #3a352e;
  --accent-ink: #fcf9f3;
  --ultramarine: #2b3fb8;
  --shadow: 0 24px 64px rgba(62, 48, 28, 0.14);
  --font-sans: Inter, "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
}

html.theme-atelier:lang(zh-CN) {
  --font-sans: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", STSong, "Source Han Serif SC", serif;
}

.theme-atelier:lang(zh-CN) h1,
.theme-atelier:lang(zh-CN) .section-heading h2,
.theme-atelier:lang(zh-CN) .showcase-side h2,
.theme-atelier:lang(zh-CN) .community-heading h2 {
  line-height: 1.3;
  letter-spacing: 0;
  word-break: normal;
}

.theme-atelier:lang(zh-CN) h1 em,
.theme-atelier:lang(zh-CN) h2 em {
  font-style: normal;
}

.theme-atelier:lang(zh-CN) .zh-phrase {
  display: inline-block;
}

.theme-atelier:lang(zh-CN) .tribute-eyebrow {
  letter-spacing: 0.08em;
}

.theme-atelier:lang(zh-CN) .tribute-credit {
  font-style: normal;
}

.theme-atelier:lang(zh-CN) .final-cta h2 span:first-child {
  font-size: 0.64em;
  line-height: 1.5;
}

.theme-atelier:lang(zh-CN) .final-cta h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
}

.theme-atelier h1,
.theme-atelier .section-heading h2,
.theme-atelier .final-cta h2,
.theme-atelier .community-heading h2 {
  font-weight: 400;
  letter-spacing: -0.01em;
}

.theme-atelier h1 em,
.theme-atelier h2 em {
  color: var(--ultramarine);
  font-style: italic;
}

html[lang="zh-CN"].theme-atelier {
  --font-sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Instrument Serif", "Songti SC", STSong, "Noto Serif CJK SC", Georgia, serif;
}

html[lang="zh-CN"].theme-atelier h1,
html[lang="zh-CN"].theme-atelier h2,
html[lang="zh-CN"].theme-atelier h3,
html[lang="zh-CN"].theme-atelier .tribute-eyebrow {
  letter-spacing: 0;
}

/* Workbench demo: a faithful, dark-theme mock of the video translation workspace (workspace left, Agent right). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.workbench .section-heading {
  margin-inline: auto;
  text-align: center;
}

.workbench .section-heading p {
  max-width: 600px;
  margin-inline: auto;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0;
}

.wb-window {
  --wb-bg: #0a0a0a;
  --wb-panel: #111111;
  --wb-surface: #181818;
  --wb-surface-2: #202020;
  --wb-surface-3: #292929;
  --wb-border: rgba(229, 229, 229, 0.1);
  --wb-text: #e5e5e5;
  --wb-muted: rgba(229, 229, 229, 0.62);
  --wb-accent: #f87171;
  --wb-accent-soft: rgba(239, 68, 68, 0.16);
  --wb-ok: #4ade80;
  position: relative;
  overflow: hidden;
  border: 1px solid #2a2622;
  border-radius: 16px;
  background: var(--wb-bg);
  box-shadow: 0 40px 100px rgba(40, 28, 12, 0.28), 0 0 0 10px color-mix(in srgb, var(--text) 5%, transparent);
  color: var(--wb-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.wb-window button {
  font: inherit;
}

.wb-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--wb-border);
  background: var(--wb-panel);
}

.wb-dots {
  display: flex;
  gap: 7px;
}

.wb-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a3a;
}

.wb-dots i:nth-child(1) { background: #ff5f57; }
.wb-dots i:nth-child(2) { background: #febc2e; }
.wb-dots i:nth-child(3) { background: #28c840; }

.wb-titlebar-name {
  flex: 1;
  color: var(--wb-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.wb-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--wb-border);
  border-radius: 6px;
  background: var(--wb-surface);
  color: var(--wb-text);
  font-size: 12px;
  cursor: pointer;
}

.wb-replay:hover {
  background: var(--wb-surface-2);
}

.wb-replay svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.wb-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  height: clamp(560px, 46vw, 640px);
}

.wb-workspace {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 24px;
  overflow: hidden;
}

.wb-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.wb-back {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--wb-border);
  border-radius: 6px;
  color: var(--wb-muted);
}

.wb-back svg,
.wb-drop svg,
.wb-compose svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wb-head > div {
  flex: 1;
  min-width: 0;
}

.wb-head h3 {
  margin: 0;
  color: var(--wb-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
}

.wb-head p {
  margin: 2px 0 0;
  color: var(--wb-muted);
  font-size: 12px;
}

.wb-version {
  padding: 3px 9px;
  border: 1px solid var(--wb-border);
  border-radius: 6px;
  background: var(--wb-surface);
  font-size: 12px;
  font-weight: 600;
}

.wb-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--wb-muted);
  font-size: 12px;
}

.wb-stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 300ms ease;
}

.wb-stepper li + li::before {
  content: "";
  width: 28px;
  height: 1px;
  margin-right: 2px;
  background: var(--wb-border);
}

.wb-step-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--wb-border);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 650;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}

.wb-stepper .is-active {
  color: var(--wb-text);
}

.wb-stepper .is-active .wb-step-dot {
  border-color: var(--wb-text);
  background: var(--wb-text);
  color: var(--wb-bg);
}

.wb-stepper .is-done {
  color: var(--wb-text);
}

.wb-stepper .is-done .wb-step-dot {
  border-color: var(--wb-ok);
  background: transparent;
  color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5' fill='none' stroke='%234ade80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 14px;
  background-repeat: no-repeat;
}

.wb-panes {
  position: relative;
  flex: 1;
  min-height: 0;
}

.wb-pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 360ms ease, transform 360ms var(--ease), visibility 0s linear 360ms;
}

.wb-pane.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 360ms ease, transform 360ms var(--ease);
}

.wb-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 20px;
  border: 1px dashed rgba(229, 229, 229, 0.22);
  border-radius: 10px;
  background: var(--wb-panel);
  color: var(--wb-muted);
  text-align: center;
}

.wb-drop svg {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
}

.wb-drop strong {
  color: var(--wb-text);
  font-size: 14px;
}

.wb-drop .wb-button {
  margin-top: 10px;
}

.wb-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--wb-muted);
  font-size: 12px;
}

.wb-or::before,
.wb-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--wb-border);
}

.wb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wb-label {
  color: var(--wb-muted);
  font-size: 12px;
  font-weight: 550;
}

.wb-input {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  background: #1a1a1a;
  color: var(--wb-text);
}

.wb-input-placeholder {
  color: rgba(229, 229, 229, 0.38);
}

.wb-select {
  justify-content: space-between;
}

.wb-select::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 1.5px solid var(--wb-muted);
  border-bottom: 1.5px solid var(--wb-muted);
  transform: translateY(-2px) rotate(45deg);
}

.wb-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--wb-border);
  border-radius: 10px;
  background: var(--wb-surface);
  animation: wb-in 420ms var(--ease);
}

.wb-file img {
  width: 132px;
  height: auto;
  border-radius: 6px;
}

.wb-file > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wb-file span {
  color: var(--wb-muted);
  font-size: 12px;
}

.wb-bar {
  display: block;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--wb-surface-3);
}

.wb-bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--wb-accent);
  transition: width 800ms ease;
}

.wb-pane-title {
  margin: 0;
  color: var(--wb-text);
  font-size: 13px;
  font-weight: 650;
}

.wb-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
}

.wb-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wb-langs span {
  padding: 5px 10px;
  border: 1px solid var(--wb-border);
  border-radius: 999px;
  background: #1a1a1a;
  color: var(--wb-muted);
  font-size: 12px;
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease, transform 240ms var(--ease);
}

.wb-langs .is-on {
  border-color: color-mix(in srgb, var(--wb-accent) 60%, transparent);
  background: var(--wb-accent-soft);
  color: var(--wb-text);
  transform: scale(1.04);
}

.wb-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  background: var(--wb-panel);
}

.wb-toggle > span {
  display: flex;
  flex-direction: column;
}

.wb-toggle strong {
  font-weight: 600;
}

.wb-toggle small {
  color: var(--wb-muted);
  font-size: 12px;
}

.wb-toggle i {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--wb-surface-3);
  transition: background-color 240ms ease;
}

.wb-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8a8a8a;
  transition: transform 240ms var(--ease), background-color 240ms ease;
}

.wb-toggle.is-on i {
  background: var(--wb-accent);
}

.wb-toggle.is-on i::after {
  background: #fff;
  transform: translateX(14px);
}

.wb-reveal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.35;
  transition: opacity 400ms ease;
}

.wb-reveal.is-shown {
  opacity: 1;
}

.wb-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.wb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--wb-text);
  color: var(--wb-bg);
  font-size: 13px;
  font-weight: 650;
  transition: transform 160ms ease, filter 160ms ease;
}

.wb-button-ghost {
  border: 1px solid var(--wb-border);
  background: var(--wb-surface-2);
  color: var(--wb-text);
}

.wb-window .is-pressed {
  filter: brightness(0.85);
  transform: scale(0.96);
}

.wb-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--wb-muted);
  font-size: 12px;
}

.wb-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
  font-weight: 650;
}

.wb-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: wb-pulse 1s ease-in-out infinite alternate;
}

.wb-status.is-done {
  background: rgba(74, 222, 128, 0.14);
  color: var(--wb-ok);
}

.wb-status.is-done::before {
  animation: none;
}

.wb-phase {
  margin: 18px 0 0;
  font-size: 20px;
  font-weight: 600;
}

.wb-bar-large {
  height: 6px;
}

.wb-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.wb-stages li {
  padding: 12px;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  background: var(--wb-panel);
  color: var(--wb-muted);
  transition: border-color 300ms ease, color 300ms ease;
}

.wb-stages li::before {
  content: "Queued";
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wb-stages .is-active {
  border-color: color-mix(in srgb, var(--wb-accent) 55%, transparent);
  color: var(--wb-text);
}

.wb-stages .is-active::before {
  content: "Running";
  color: var(--wb-accent);
}

.wb-stages .is-done {
  color: var(--wb-text);
}

.wb-stages .is-done::before {
  content: "Completed";
  color: var(--wb-ok);
}

.wb-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  align-self: flex-start;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  background: var(--wb-panel);
  font-size: 12px;
}

.wb-tabs span {
  padding: 4px 12px;
  border-radius: 6px;
  color: var(--wb-muted);
}

.wb-tabs .is-active {
  background: var(--wb-surface-3);
  color: var(--wb-text);
}

.wb-result {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.wb-player {
  position: relative;
  align-self: start;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  transition: max-width 500ms var(--ease);
}

.wb-player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 368;
  object-fit: cover;
  transition: aspect-ratio 500ms var(--ease);
}

.wb-player.is-vertical {
  justify-self: center;
  max-width: 230px;
}

.wb-player.is-vertical video {
  aspect-ratio: 9 / 16;
}

.wb-player-note {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
}

.wb-cues {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.wb-cues-meta {
  margin: 0 0 8px;
  color: var(--wb-muted);
  font-size: 12px;
}

.wb-cues ol {
  flex: 1;
  margin: 0;
  padding: 0 4px 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: var(--wb-surface-3) transparent;
  scrollbar-width: thin;
}

.wb-cues li button {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 4px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--wb-muted);
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.wb-cues li button:hover {
  background: var(--wb-panel);
}

.wb-cues li.is-active button {
  border-color: var(--wb-border);
  background: var(--wb-surface-2);
  color: var(--wb-text);
}

.wb-cues time {
  color: var(--wb-muted);
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.7;
}

.wb-cue-lang {
  align-self: start;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.8;
}

.wb-cue-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.wb-cue-text b {
  color: var(--wb-text);
  font-weight: 600;
  transition: font-size 300ms ease;
}

.wb-cue-text > span {
  font-size: 12px;
}

.wb-cues.is-large .wb-cue-text b {
  font-size: 15px;
}

.wb-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  padding: 8px 14px;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  background: var(--wb-surface-3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
}

.wb-toast.is-shown {
  animation: wb-toast 2.6s var(--ease) forwards;
}

.wb-agent {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--wb-border);
  background: var(--wb-panel);
}

.wb-agent-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--wb-border);
}

.wb-agent-head img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.wb-agent-head div {
  display: flex;
  flex-direction: column;
}

.wb-agent-head strong {
  font-size: 14px;
}

.wb-agent-head div > span {
  color: var(--wb-muted);
  font-size: 12px;
}

.wb-context {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  background: var(--wb-surface);
}

.wb-context span {
  color: var(--wb-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wb-context strong {
  font-size: 12px;
  font-weight: 600;
}

.wb-timeline {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 14px 16px;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.wb-empty {
  margin: auto 0;
  color: var(--wb-muted);
  font-size: 12px;
  text-align: center;
}

.wb-msg {
  max-width: 92%;
  animation: wb-in 360ms var(--ease);
}

.wb-msg p {
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--wb-surface-2);
}

.wb-msg-user {
  align-self: flex-end;
}

.wb-msg-user p {
  background: var(--wb-surface-3);
}

.wb-msg-label {
  display: block;
  margin-bottom: 4px;
  color: var(--wb-muted);
  font-size: 11px;
}

.wb-msg-typing p {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}

.wb-msg-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wb-muted);
  animation: wb-pulse 600ms ease-in-out infinite alternate;
}

.wb-msg-typing i:nth-child(2) { animation-delay: 200ms; }
.wb-msg-typing i:nth-child(3) { animation-delay: 400ms; }

.wb-activity {
  margin: 0;
  color: var(--wb-muted);
  font-size: 11px;
  text-align: center;
  animation: wb-in 360ms var(--ease);
}

.wb-activity::before {
  content: "✓ ";
  color: var(--wb-ok);
}

.wb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}

.wb-chips[hidden] {
  display: none;
}

.wb-chips button {
  padding: 5px 10px;
  border: 1px solid var(--wb-border);
  border-radius: 999px;
  background: var(--wb-surface);
  color: var(--wb-text);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.wb-chips button:hover {
  border-color: color-mix(in srgb, var(--wb-accent) 55%, transparent);
  background: var(--wb-accent-soft);
}

.wb-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--wb-border);
  border-radius: 10px;
  background: #1a1a1a;
}

.wb-compose textarea {
  flex: 1;
  min-width: 0;
  height: 88px;
  min-height: 88px;
  padding: 3px 0;
  resize: none;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: anywhere;
  border: 0;
  background: transparent;
  color: var(--wb-text);
  font: inherit;
  line-height: 1.65;
  outline: none;
}

.wb-window .wb-compose textarea:focus-visible {
  outline: none;
}

.wb-compose textarea::placeholder {
  color: rgba(229, 229, 229, 0.38);
}

.wb-compose:focus-within,
.wb-compose textarea.is-focused {
  border-color: rgba(229, 229, 229, 0.3);
}

.wb-compose button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: var(--wb-text);
  color: var(--wb-bg);
  cursor: pointer;
}

.wb-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 20px;
  height: 20px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(60%, 60%);
  transition: transform 700ms var(--ease), opacity 300ms ease;
}

.wb-cursor.is-visible {
  opacity: 1;
}

.wb-cursor svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  stroke: #000;
  stroke-width: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 160ms ease;
}

.wb-cursor.is-pressing svg {
  transform: scale(0.82);
}

@keyframes wb-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes wb-pulse {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@keyframes wb-toast {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  12%, 80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

@media (max-width: 1080px) {
  .wb-body {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .wb-result {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .wb-player {
    max-width: 360px;
  }
}

/* Phones: stack the Agent under the workspace, like the app's Workspace / Agent tabs. */
@media (max-width: 760px) {
  .wb-body {
    grid-template-columns: 1fr;
    grid-template-rows: 470px 360px;
    height: auto;
  }

  .wb-workspace {
    padding: 16px;
  }

  .wb-stepper {
    font-size: 11px;
  }

  .wb-stepper li + li::before {
    width: 10px;
  }

  .wb-grid-2 {
    grid-template-columns: 1fr;
  }

  .wb-stages {
    grid-template-columns: 1fr;
  }

  .wb-file img {
    width: 92px;
  }

  .wb-agent {
    border-top: 1px solid var(--wb-border);
    border-left: 0;
  }

  .wb-titlebar-name {
    display: none;
  }

  .wb-dots {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb-cursor {
    display: none;
  }
}

.wb-window [hidden] {
  display: none !important;
}

/* Current video translation: results first, with a dedicated immersive editor. */
.wb-window { --wb-muted: #a3a3a3; }
.wb-window svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wb-window button, .wb-window a, .wb-window select, .wb-window input { -webkit-tap-highlight-color: transparent; }
.wb-window button:focus-visible, .wb-window a:focus-visible, .wb-window select:focus-visible, .wb-window input:focus-visible, .wb-window textarea:focus-visible, .wb-context summary:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 3px; }
.wb-window button, .wb-window select { cursor: pointer; }
.wb-window button:disabled { opacity: .5; cursor: wait; }
.wb-window input, .wb-window textarea { accent-color: var(--wb-accent); caret-color: var(--wb-accent); }
.wb-window ::selection { background: var(--wb-accent-soft); color: #fff; }
.wb-window input::placeholder, .wb-window textarea::placeholder { color: #999; }
.wb-window .wb-button { border: 0; background: var(--wb-accent); color: #171010; }
.wb-window .wb-button-ghost { background: var(--wb-accent); color: #171010; }
.wb-head { margin-bottom: 14px; }
.wb-stepper { justify-content: center; margin-bottom: 20px; gap: 0; }
.wb-stepper li { flex: 1; flex-direction: column; position: relative; gap: 7px; font-size: 11px; }
.wb-stepper li + li::before { position: absolute; width: calc(100% - 42px); top: 12px; right: calc(50% + 21px); margin: 0; }
.wb-step-dot { width: 25px; height: 25px; }
.wb-stepper .is-active .wb-step-dot { background: var(--wb-accent); border-color: var(--wb-accent); color: #171010; }
.wb-source-modes { display: flex; gap: 18px; border-bottom: 1px solid var(--wb-border); color: var(--wb-muted); }
.wb-source-modes span { padding: 0 0 9px; }
.wb-source-modes .is-active { border-bottom: 2px solid var(--wb-accent); color: var(--wb-accent); }
.wb-drop { padding: 22px 14px; }
.wb-context { display: block; margin: 0; border: 0; border-bottom: 1px solid var(--wb-border); border-radius: 0; padding: 13px 16px; background: transparent; }
.wb-context summary { display: block; position: relative; padding-right: 20px; cursor: pointer; list-style: none; }
.wb-context summary::-webkit-details-marker { display: none; }
.wb-context summary::after { content: ''; position: absolute; right: 2px; top: 5px; width: 6px; height: 6px; border-right: 1px solid var(--wb-muted); border-bottom: 1px solid var(--wb-muted); transform: rotate(45deg); }
.wb-context[open] summary::after { transform: rotate(225deg); top: 8px; }
.wb-context summary > span { display: block; color: var(--wb-text); font-size: 12px; letter-spacing: 0; text-transform: none; }
.wb-context summary > strong { display: block; margin-top: 5px; color: var(--wb-muted); font-size: 11px; font-weight: 400; }
.wb-summary-source { margin-top: 12px; font-size: 12px; }
.wb-context dl { display: grid; gap: 7px; margin: 10px 0 0; font-size: 11px; }
.wb-context dl > div { display: flex; gap: 12px; justify-content: space-between; }
.wb-context dt { flex-shrink: 0; color: var(--wb-muted); }
.wb-context dd { margin: 0; text-align: right; }
.wb-msg { font-size: 12px; }
.wb-timeline { gap: 8px; padding-block: 12px; }
.wb-editor-only { display: none !important; }
.wb-window[data-phase="result"] .wb-stepper { display: none; }
.wb-result-toolbar { display: flex; align-items: center; gap: 8px; min-height: 34px; flex-shrink: 0; }
.wb-result-toolbar > strong { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.wb-toolbar-spacer { flex: 1; }
.wb-saved { color: var(--wb-ok); font-size: 11px; }
.wb-small-button, .wb-text-button, .wb-version-select { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 5px 9px; border: 1px solid var(--wb-border); border-radius: 6px; background: var(--wb-surface); color: var(--wb-text); font-size: 11px !important; }
.wb-text-button { background: transparent; border: 0; padding-inline: 0; color: var(--wb-muted); }
.wb-small-button:hover { background: var(--wb-surface-3); }
.wb-version-select { color-scheme: dark; }
.wb-editor-area { display: flex; flex: 1; min-height: 0; gap: 14px; }
.wb-result { display: flex; flex-direction: column; min-width: 0; gap: 10px; overflow: auto; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.wb-preview-column { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; }
.wb-player { display: flex; flex: 1; align-items: center; justify-content: center; align-self: stretch; min-height: 0; max-width: none; border: 1px solid var(--wb-border); border-radius: 8px; }
.wb-player video { max-height: 100%; object-fit: contain; aspect-ratio: 16 / 9; }
.wb-player.is-vertical { max-width: none; }
.wb-player.is-vertical video { width: auto; max-width: 100%; height: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.wb-player-note { top: 8px; left: 8px; }
.wb-playback { display: flex; align-items: center; gap: 10px; padding-top: 10px; flex-shrink: 0; }
.wb-playback button, .wb-output-file button, .wb-output-file a, .wb-settings-rail button, .wb-editor-settings header button { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; padding: 0; border: 1px solid var(--wb-border); border-radius: 6px; background: var(--wb-surface); color: var(--wb-text); }
.wb-playback button:hover, .wb-output-file button:hover, .wb-output-file a:hover, .wb-settings-rail button:hover { background: var(--wb-surface-3); }
.wb-playback > span { font-size: 11px; color: var(--wb-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wb-playback input { min-width: 0; flex: 1; height: 16px; }
.wb-output-files { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex-shrink: 0; }
.wb-output-file { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--wb-border); border-radius: 8px; background: var(--wb-panel); }
.wb-output-file > span { color: var(--wb-muted); }
.wb-output-file > div { flex: 1; min-width: 0; }
.wb-output-file strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 500; }
.wb-output-file small { display: block; color: var(--wb-muted); font-size: 10px; margin-top: 3px; }
.wb-window[data-editing="true"] .wb-overview-only, .wb-window[data-editing="true"] .wb-head { display: none !important; }
.wb-window[data-editing="true"] .wb-editor-only { display: flex !important; }
.wb-window[data-editing="true"] .wb-body { grid-template-columns: minmax(0, 1fr); height: 660px; }
.wb-window[data-editing="true"] .wb-agent { display: none; }
.wb-window[data-editing="true"] .wb-result { display: grid; grid-template-columns: minmax(0, 1.1fr) 38px minmax(0, 1fr); overflow: hidden; gap: 12px; }
.wb-window[data-editing="true"] .wb-pane[data-wb-pane="result"] { gap: 16px; }
.wb-window[data-editing="true"] .wb-workspace { padding: 18px; }
.wb-window[data-editing="true"] .wb-result-toolbar .wb-button { font-size: 12px; padding-inline: 12px; }
.wb-editor-title { font-weight: 600; font-size: 13px; margin-left: 8px; }
.wb-window[data-editing="true"] .wb-saved { display: none; }
.wb-settings-rail { flex-direction: column; align-items: center; gap: 9px; padding-top: 2px; }
.wb-settings-rail button { width: 34px; height: 34px; }
.wb-settings-rail button[aria-expanded="true"] { color: var(--wb-accent); border-color: #865050; background: var(--wb-accent-soft); }
.wb-editor-settings { flex: 0 0 220px; min-width: 0; padding-left: 14px; border-left: 1px solid var(--wb-border); overflow-y: auto; scrollbar-width: thin; }
.wb-editor-settings header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 18px; }
.wb-editor-settings header strong { font-size: 13px; }
.wb-editor-settings .wb-input { width: 100%; color-scheme: dark; font-size: 12px; }
.wb-editor-settings .wb-field + .wb-field { margin-top: 18px; }
.wb-setting-check { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.wb-setting-check input { margin: 0; }
.wb-setting-note { color: var(--wb-muted); font-size: 12px; line-height: 1.7; margin: 0 0 16px; }
.wb-setting-check + .wb-setting-note { margin-top: 16px; }
.wb-cues { overflow: hidden; flex-direction: column; }
.wb-cues li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 9px; padding: 8px; border: 1px solid transparent; border-radius: 6px; margin-bottom: 5px; }
.wb-cues li.is-active { background: var(--wb-surface); border-color: #5e4141; }
.wb-cues li .wb-cue-seek { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; width: 48px; height: fit-content; margin: 0; padding: 0; border: 0; background: transparent; }
.wb-cues textarea { display: block; width: 100%; min-height: 42px; margin: 0; padding: 4px; resize: vertical; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--wb-text); font: inherit; font-size: 12px; line-height: 1.5; }
.wb-cues textarea:hover, .wb-cues textarea:focus { background: #202020; border-color: var(--wb-border); }
.wb-cues.is-large textarea { font-size: 15px; }
.wb-window[data-caption-font="serif"] .wb-cues textarea { font-family: Georgia, "Songti SC", serif; }
.wb-cue-text > span { font-size: 11px; color: var(--wb-muted); padding-inline: 4px; }
.wb-draft-caption { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 30%; position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 12px; color: white; background: #080808; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.4; text-shadow: 0 1px 2px #000; }
.wb-draft-caption strong { font-size: inherit; font-weight: inherit; }
.wb-draft-caption small { color: #ccc; font-family: inherit; font-size: 11px; font-weight: 400; }
.wb-draft-caption:empty { display: none; }
.wb-draft-caption.is-large { font-size: 19px; }
.wb-waveform { flex-direction: column; flex-shrink: 0; height: 154px; border-top: 1px solid var(--wb-border); padding-top: 12px; }
.wb-waveform-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.wb-waveform-heading strong { font-size: 11px; font-weight: 500; }
.wb-waveform-heading > span { color: var(--wb-muted); font-size: 10px; }
.wb-time-ruler { display: flex; justify-content: space-between; color: var(--wb-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.wb-wave-track { position: relative; height: 64px; margin: 3px 0 6px; border-radius: 4px; background: var(--wb-panel); }
.wb-wave-track img { display: block; width: 100%; height: 64px; }
.wb-wave-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: crosshair; }
.wb-wave-track:focus-within { outline: 2px solid var(--wb-accent); outline-offset: 2px; }
.wb-wave-track i { position: absolute; top: 0; bottom: -36px; left: 0; z-index: 1; border-left: 1px solid var(--wb-accent); pointer-events: none; }
.wb-wave-track i::before { content: ''; display: block; width: 7px; height: 7px; background: var(--wb-accent); transform: translateX(-4px); border-radius: 1px; }
.wb-timeline-cues { position: relative; height: 26px; }
.wb-timeline-cues button { position: absolute; top: 0; height: 26px; padding: 0; overflow: hidden; border: 1px solid var(--wb-bg); border-radius: 3px; background: #4f3535; color: #f1cccc; font-size: 10px; }
.wb-timeline-cues button:hover, .wb-timeline-cues button.is-active { background: #815050; color: white; }
.wb-window[data-editing="true"][data-agent-open="true"] .wb-body { grid-template-columns: minmax(0, 1fr) 300px; }
.wb-window[data-editing="true"][data-agent-open="true"] .wb-agent { display: flex; }
.wb-window[data-editing="true"][data-agent-open="true"] .wb-editor-title { display: none !important; }
@media (max-width: 1080px) {
  .wb-editor-settings { flex-basis: 180px; }
  .wb-output-files { grid-template-columns: 1fr; gap: 6px; }
  .wb-output-file { padding: 7px 10px; }
  .wb-window[data-editing="true"][data-agent-open="true"] .wb-body { grid-template-columns: 1fr; grid-template-rows: 660px 480px; height: auto; }
}
@media (max-width: 760px) {
  .wb-body { grid-template-rows: 560px 520px; }
  .wb-workspace { padding: 14px; }
  .wb-pane { gap: 12px; }
  .wb-context { padding-block: 10px; }
  .wb-context dl { gap: 5px; }
  .wb-context .wb-summary-source { margin-top: 7px; }
  .wb-result-toolbar { flex-wrap: wrap; gap: 6px; }
  .wb-saved { display: none; }
  .wb-small-button { padding-inline: 7px; }
  .wb-window[data-editing="true"] .wb-body { grid-template-rows: 760px; height: auto; }
  .wb-window[data-editing="true"] .wb-workspace { padding: 12px; }
  .wb-window[data-editing="true"] .wb-result { grid-template-columns: minmax(0, 1fr) 36px; grid-template-rows: 210px minmax(0, 1fr); gap: 10px; }
  .wb-window[data-editing="true"] .wb-cues { grid-column: 1 / -1; }
  .wb-window[data-editing="true"] .wb-result-toolbar .wb-button { height: 30px; font-size: 11px; padding-inline: 8px; }
  .wb-result-toolbar [data-wb-generate] { margin-inline-start: auto; }
  .wb-editor-title { display: none !important; }
  .wb-window[data-editing="true"] .wb-editor-title { display: none !important; }
  .wb-window[data-editing="true"] .wb-pane[data-wb-pane="result"] { gap: 12px; }
  .wb-editor-area { flex-direction: column; gap: 10px; }
  .wb-editor-settings { flex: 0 0 auto; max-height: 165px; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--wb-border); }
  .wb-editor-settings header { padding-bottom: 8px; }
  .wb-editor-settings [data-wb-panel-content] { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .wb-editor-settings .wb-field { flex: 1; }
  .wb-editor-settings .wb-field + .wb-field { margin: 0; }
  .wb-setting-note { margin: 0; font-size: 11px; }
  .wb-window[data-settings-open] .wb-result { grid-template-rows: 150px minmax(0, 1fr); }
  .wb-waveform-heading > span { display: none; }
  .wb-waveform { height: 145px; }
  .wb-window[data-editing="true"][data-agent-open="true"] .wb-body { grid-template-rows: 760px 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .wb-window *, .wb-window *::before, .wb-window *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* Tribute hero: five creators, one per medium, standing together like a group portrait. */
.hero-tribute {
  position: relative;
  min-height: auto;
  padding: clamp(40px, 6vh, 72px) 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 50% 100%, color-mix(in srgb, var(--surface-strong) 70%, transparent), transparent 70%),
    var(--bg);
}

.tribute-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tribute-eyebrow {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-tribute h1 {
  max-width: 1120px;
  margin: 0 0 20px;
  font-size: clamp(46px, 6vw, 92px);
  line-height: 0.98;
}

.hero-tribute .hero-lede {
  max-width: 640px;
  margin: 0 0 28px;
}

.hero-tribute .hero-actions {
  gap: 16px;
}

.tribute-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: clamp(8px, 2vh, 24px) auto 0;
}

.tribute-group {
  position: relative;
  height: clamp(300px, 33vw, 420px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tribute-figure {
  position: absolute;
  bottom: 0;
  left: var(--x);
  z-index: var(--z);
  width: var(--w);
  opacity: 0;
  animation: tribute-rise 1100ms var(--ease) forwards;
}

.tribute-figure:nth-child(1) { animation-delay: 120ms; }
.tribute-figure:nth-child(2) { animation-delay: 220ms; }
.tribute-figure:nth-child(3) { animation-delay: 60ms; }
.tribute-figure:nth-child(4) { animation-delay: 300ms; }
.tribute-figure:nth-child(5) { animation-delay: 380ms; }

.tribute-figure > button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.tribute-figure > button:focus-visible {
  outline: none;
}

.tribute-figure img {
  width: 100%;
  height: auto;
  /* Fade each figure out at the waist, like the edge of a stage. */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
  /* Everyone starts in one warm monochrome so the group reads as a single portrait. */
  filter: grayscale(1) sepia(0.32) contrast(1.06) brightness(0.98);
  transform-origin: 50% 100%;
  transition: filter 520ms ease, transform 620ms var(--ease), opacity 420ms ease;
}

/* Hovering one creator brings them forward in full colour and quiets the rest. */
.tribute-stage.is-focused .tribute-figure img {
  filter: grayscale(1) sepia(0.2) contrast(0.92) brightness(1.08);
  opacity: 0.42;
}

.tribute-stage .tribute-figure.is-active {
  z-index: 8;
}

.tribute-stage .tribute-figure.is-active img {
  filter: none;
  opacity: 1;
  transform: translateY(-10px) scale(1.05);
}

.tribute-figure::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 55%, transparent), transparent);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 520ms ease;
  pointer-events: none;
}

.tribute-figure.is-active::before {
  opacity: 0.85;
}

/* The card sits beside the creator's shoulder, inside the stage, so it never covers the copy above. */
.tribute-card {
  position: absolute;
  top: 18%;
  left: 82%;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: max-content;
  max-width: 250px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-raised) 94%, transparent);
  box-shadow: 0 18px 40px rgba(46, 34, 18, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 280ms ease, transform 380ms var(--ease);
}

.tribute-figure.is-active .tribute-card {
  opacity: 1;
  transform: none;
}

/* Creators on the right half open their card toward the left. */
.tribute-figure:nth-child(n + 4) .tribute-card {
  right: 82%;
  left: auto;
}

.tribute-medium {
  color: var(--tint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tribute-card strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

.tribute-credit {
  margin: 4px 0 0;
  color: var(--text-faint);
  font-size: 10px;
  text-align: center;
}

@keyframes tribute-rise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .hero-tribute h1 {
    font-size: clamp(40px, 11vw, 54px);
  }

  /* Let the group run wider than the phone so faces stay legible; the outer two crop at the edges. */
  .tribute-stage {
    width: 100%;
    overflow: hidden;
  }

  .tribute-group {
    width: 124%;
    height: 46vw;
    margin-left: -12%;
  }

  .tribute-card {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .tribute-figure {
    opacity: 1;
    animation: none;
  }
}

/* Models: real creator cases first, the full roster underneath. */
.models-cases .section-heading {
  margin-inline: auto;
  text-align: center;
}

.models-cases .section-heading p {
  max-width: 620px;
  margin-inline: auto;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0;
}

.model-cases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: clamp(12px, 1.4vw, 18px);
}

.model-case {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  transition: transform 420ms var(--ease), box-shadow 420ms ease;
}

.model-case:hover {
  box-shadow: 0 24px 50px rgba(46, 34, 18, 0.14);
  transform: translateY(-4px);
}

.model-case-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.model-case-media {
  position: relative;
  overflow: hidden;
  background: #141210;
  aspect-ratio: 4 / 3;
}

.model-case-wide .model-case-media {
  flex: 1;
  aspect-ratio: auto;
  min-height: 280px;
}

.model-case-media video,
.model-case-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.model-case:hover .model-case-media video,
.model-case:hover .model-case-media img {
  transform: scale(1.04);
}

.model-case-body {
  padding: 14px 16px 16px;
}

.model-case-tag {
  margin: 0 0 4px;
  color: var(--ultramarine);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.model-case-body h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 400;
  line-height: 1.1;
}

.model-case-wide .model-case-body h3 {
  font-size: clamp(30px, 3vw, 42px);
}

.model-case-body > p:not(.model-case-tag) {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.model-case-source {
  display: inline-block;
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 12px;
}

.model-case-source:hover {
  color: var(--text);
  text-decoration: underline;
}

.model-roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--border-strong);
}

.model-roster h3 {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 720;
}

.model-roster .model-list li {
  font-size: clamp(15px, 1.3vw, 18px);
}

.model-roster .model-group-note {
  grid-column: 1 / -1;
}

.model-roster-more {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
}

@media (max-width: 1000px) {
  .model-cases,
  .model-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-case-wide {
    grid-row: span 1;
  }

  .model-case-wide .model-case-media {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .model-roster-row {
    margin-bottom: 22px;
  }
}

@media (max-width: 600px) {
  .model-cases {
    grid-template-columns: 1fr;
  }

  .model-case-wide {
    grid-column: auto;
  }
}

/* Wheel gestures inside the visual stack examples; the section stays in normal page flow. */
.showcase {
  padding-bottom: 0;
}

.showcase-scrolly {
  position: relative;
}

.showcase-sticky {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: 24px 48px;
}

.showcase-side h2 {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 400;
  line-height: 1.04;
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.showcase-tabs button {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease;
}

.showcase-tabs button:hover {
  color: var(--text);
}

.showcase-tabs [aria-selected="true"] {
  background: var(--surface-strong);
  color: var(--text);
}

.showcase-caption {
  min-height: 2.8em;
  margin: 22px 0 18px;
  padding-left: 14px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}

.showcase-all {
  display: inline-flex;
  margin-left: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 650;
}

.showcase-visual {
  position: relative;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 1500 / 928;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--ultramarine) 24%, transparent), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(180, 83, 42, 0.26), transparent 55%),
    var(--surface);
}

.showcase-frame {
  position: absolute;
  inset: 0;
}

.showcase-frame[hidden] {
  display: none;
}

/* Each piece grows in from nothing as its scroll step is reached, then settles a little deeper once
   the next one lands on top (the same entry and depth scales open-design uses). */
.sc-media {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  box-shadow: 0 24px 60px rgba(30, 20, 8, 0.32);
  visibility: hidden;
  transform: translateY(-50%) translateY(var(--depth-shift, 0px)) scale(var(--entry, 0)) scale(var(--depth, 1)) rotate(var(--r, 0deg));
  transform-origin: center;
  will-change: transform;
}

.sc-media.is-revealed {
  visibility: visible;
}

.sc-media img,
.sc-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-media > span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
}


/* Shared canvas: each piece has its own spot, so later capabilities pile over earlier ones. */

[data-kind="image"] .sc-a { --x: 8%; --y: 50%; --w: 70%; --r: 0deg; aspect-ratio: 16 / 9; }
[data-kind="image"] .sc-b { --x: 1%; --y: 24%; --w: 38%; --r: -4deg; aspect-ratio: 16 / 9; }
[data-kind="image"] .sc-c { --x: 60%; --y: 22%; --w: 36%; --r: 3deg; aspect-ratio: 16 / 9; }
[data-kind="image"] .sc-d { --x: 80%; --y: 60%; --w: 18%; --r: 5deg; aspect-ratio: 2 / 3; }
[data-kind="image"] .sc-e { --x: 3%; --y: 74%; --w: 36%; --r: 3deg; aspect-ratio: 16 / 9; }
[data-kind="image"] .sc-f { --x: 38%; --y: 46%; --w: 26%; --r: -2deg; aspect-ratio: 3 / 4; }

[data-kind="video"] .sc-a { --x: 30%; --y: 30%; --w: 50%; --r: 2deg; aspect-ratio: 16 / 9; }
[data-kind="video"] .sc-b { --x: 4%; --y: 52%; --w: 20%; --r: -4deg; aspect-ratio: 9 / 16; }
[data-kind="video"] .sc-c { --x: 52%; --y: 70%; --w: 44%; --r: -2deg; aspect-ratio: 16 / 9; }

[data-kind="edit"] .sc-a { --x: 22%; --y: 52%; --w: 60%; --r: -1deg; aspect-ratio: 1400 / 777; }

[data-kind="animation"] .sc-a { --x: 2%; --y: 34%; --w: 50%; --r: -3deg; aspect-ratio: 16 / 9; }
[data-kind="animation"] .sc-b { --x: 50%; --y: 30%; --w: 46%; --r: 3deg; aspect-ratio: 16 / 9; }
[data-kind="animation"] .sc-c { --x: 10%; --y: 74%; --w: 80%; --r: 0deg; aspect-ratio: 1600 / 440; }
.sc-cast { background: #fbf8f2; }
.sc-cast > span { background: rgba(28, 26, 23, 0.78); }

/* Phones: tabs switch capabilities and touch gestures retain native page scrolling. */
@media (max-width: 880px) {
  .showcase-sticky {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase-side {
    min-width: 0;
  }

  .showcase-side h2 {
    margin-bottom: 16px;
    text-align: center;
  }

  .showcase-tabs {
    flex-direction: row;
    margin-inline: -16px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .showcase-tabs button {
    flex: 0 0 auto;
  }

  .showcase-caption,
  .showcase-all {
    display: none;
  }

  .sc-media > span {
    font-size: 9px;
  }
}

/* Audio model cards: no footage to show, so an animated waveform stands in for the clip. */
.model-case-wave {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 0 22px;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--tint) 45%, transparent), transparent 65%),
    #141210;
}

.wave-lang {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.wave-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 64px;
}

.wave-bars i {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(to top, var(--tint), #fff);
  opacity: 0.9;
  transform: scaleY(0.2);
  transform-origin: center;
  animation: model-wave 1.1s ease-in-out infinite alternate;
}

.wave-bars i:nth-child(3n) { animation-delay: -0.35s; animation-duration: 0.9s; }
.wave-bars i:nth-child(4n) { animation-delay: -0.7s; }
.wave-bars i:nth-child(5n) { animation-delay: -0.2s; animation-duration: 1.3s; }
.wave-bars i:nth-child(7n) { animation-delay: -0.9s; animation-duration: 0.8s; }

.model-case:not(:hover) .wave-bars i {
  animation-play-state: paused;
}

@keyframes model-wave {
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .wave-bars i {
    animation: none;
    transform: scaleY(0.6);
  }
}

.tribute-proof {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.tribute-proof strong {
  color: var(--text);
  font-weight: 650;
}

/* Inside the app: templates and Skills as one bento grid (large card left, stacked cards right). */
.inside-app .section-heading {
  margin-inline: auto;
  text-align: center;
}

.inside-app .section-heading p:not(.inside-eyebrow) {
  max-width: 560px;
  margin-inline: auto;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0;
}

.inside-eyebrow {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "templates templates skills"
    "gallery agents local";
  gap: 16px;
}

.bento-templates { grid-area: templates; }
.bento-skills { grid-area: skills; }
.bento-gallery { grid-area: gallery; }
.bento-agents { grid-area: agents; }
.bento-local { grid-area: local; }

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 32px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-raised);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.bento-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 44px rgba(46, 34, 18, 0.08);
}

.bento-copy h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.1;
}

.bento-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.bento-copy .resource-detail {
  margin-top: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.bento-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--ultramarine);
}

.bento-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Template covers drift past in a slow loop; hovering the card pauses them. */
.bento-marquee {
  margin-inline: calc(clamp(22px, 2.4vw, 32px) * -1);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.bento-marquee {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: bento-marquee 48s linear infinite;
}

.bento-marquee-track.is-reverse {
  animation-direction: reverse;
  animation-duration: 56s;
}

.bento-templates:hover .bento-marquee-track {
  animation-play-state: paused;
}

.bento-marquee figure {
  position: relative;
  width: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
}

.bento-marquee img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bento-marquee figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

@keyframes bento-marquee {
  to { transform: translateX(calc(-50% - 6px)); }
}

.bento-card .resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 650;
}

.bento-card .resource-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.skill-list code {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.skill-list span {
  color: var(--text-soft);
  font-size: 12px;
}

.bento-card .resource-note {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
}

.bento-shot {
  margin: calc(clamp(22px, 2.4vw, 32px) * -1) calc(clamp(22px, 2.4vw, 32px) * -1) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.bento-shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 900ms var(--ease);
}

.bento-gallery:hover .bento-shot img {
  transform: scale(1.03);
}

.bento-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  font-size: 13px;
}

.bento-chat p {
  max-width: 90%;
  margin: 0;
  padding: 9px 12px;
  border-radius: 12px;
}

.bento-chat-user {
  align-self: flex-end;
  background: var(--text);
  color: var(--bg);
}

.bento-chat-agent {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-soft);
}

.bento-local {
  background:
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--ultramarine) 16%, transparent), transparent 60%),
    var(--surface-raised);
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "templates templates"
      "skills gallery"
      "agents local";
  }
}

@media (max-width: 680px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "templates" "skills" "gallery" "agents" "local";
  }

  .bento-marquee figure {
    width: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento-marquee-track {
    animation: none;
  }

  .bento-marquee {
    overflow-x: auto;
  }
}

/* Local Trending badge: same look as the Trendshift image, but rendered as HTML so it never loads blank. */
.trending-badge-local {
  width: auto;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 14px;
  border: 0;
  filter: none;
  color: var(--text);
}

.trending-badge-local:hover {
  filter: none;
}

.trending-laurel {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.laurel-leaves {
  fill: currentColor;
}

.trending-laurel text {
  fill: var(--text);
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 500;
}

.trending-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.trending-copy small {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trending-copy strong {
  font-size: 14px;
  font-weight: 700;
}

/* Download icon picks up the theme highlight, lightened to read on the dark button. */
.theme-atelier .hero-download-icon {
  color: #8b9bff;
}

/* Headline reads as one line on tablet and desktop; phones keep the two-line stack. */
@media (min-width: 901px) {
  .hero-tribute h1 {
    max-width: none;
    font-size: clamp(44px, 5.4vw, 84px);
    white-space: nowrap;
  }

  .hero-tribute .hero-title-lines span {
    display: inline;
  }

  .hero-tribute .hero-title-lines span + span {
    margin-left: 0.24em;
  }
}

/* Image model cards cycle through several results; portrait images sit on a blurred copy of themselves. */
.mc-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.mc-slide.is-active {
  opacity: 1;
}

.mc-slide.is-active img:not(.mc-backdrop) {
  animation: mc-drift 3600ms ease-out both;
}

.mc-slide.is-portrait img:not(.mc-backdrop) {
  object-fit: contain;
}

.model-case-media .mc-backdrop {
  filter: blur(18px) brightness(0.72) saturate(1.1);
  transform: scale(1.2);
}

.mc-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  transform: translateX(-50%);
}

.mc-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 300ms ease, width 300ms ease;
}

.mc-dots i.is-active {
  width: 16px;
  border-radius: 3px;
  background: #fff;
}

@keyframes mc-drift {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mc-slide {
    transition: none;
  }

  .mc-slide.is-active img:not(.mc-backdrop) {
    animation: none;
  }
}

/* Painted backdrops: blurred details of public-domain masterpieces behind product moments. */
.painted {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  background: var(--bg) center / cover no-repeat, #2a241c;
}

.painted-credit {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  color: rgba(28, 26, 23, 0.62);
  font-size: 11px;
}

/* The workbench window floats on the painting, like an app shot on canvas. */
.painted-stage {
  padding: clamp(28px, 5vw, 72px) clamp(16px, 5vw, 72px) clamp(44px, 6vw, 80px);
}

.painted-stage .wb-window {
  box-shadow: 0 40px 90px rgba(20, 40, 50, 0.32);
}

/* Community: one painting, one frosted panel. Numbers on top, a compact face pile below. */
.community-canvas {
  display: grid;
  place-items: center;
  min-height: clamp(420px, 44vw, 560px);
  padding: clamp(28px, 5vw, 72px) clamp(16px, 4vw, 56px) clamp(48px, 6vw, 72px);
}

.community-glass {
  width: min(100%, 940px);
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: rgba(252, 249, 243, 0.72);
  box-shadow: 0 30px 80px rgba(20, 50, 60, 0.22);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 0;
}

.community-stats div,
.community-stats div:first-child {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 0 clamp(10px, 2vw, 24px);
  border-left: 1px solid rgba(28, 26, 23, 0.14);
}

.community-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.community-stats dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
}

.community-stats dt {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.community-crew {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid rgba(28, 26, 23, 0.14);
}

.community-crew > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.community-crew a {
  color: var(--text);
  font-weight: 650;
}

.community-crew a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.community-crew .community-roster {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-height: 0;
  gap: 0;
  margin: 0;
  padding-left: 9px;
}

.community-crew .community-avatar-link,
.community-crew .community-avatar {
  width: 32px;
  height: 32px;
}

.community-crew .community-avatar-link {
  flex: 0 0 32px;
  margin-left: -9px;
  transition: transform 200ms var(--ease);
}

.community-crew .community-avatar-link:hover {
  z-index: 1;
  transform: translateY(-3px);
}

.community-crew .community-avatar {
  border: 2px solid #fcf9f3;
  filter: none;
}

.community-crew .community-load-state {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

/* The closing call to action sits on Monet's sunny hillside, dark text on a light painting. */
.theme-atelier .final-cta {
  position: relative;
  isolation: isolate;
  background: url('assets/backdrops/monet-parasol.webp') center 30% / cover no-repeat, #cfe0ef;
  color: var(--text);
}

.theme-atelier .final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(252, 249, 243, 0.72), rgba(252, 249, 243, 0.18) 70%);
}

.theme-atelier .final-cta h2 {
  color: var(--text);
}

.theme-atelier .final-cta .painted-credit {
  right: 50%;
  bottom: 16px;
  color: rgba(28, 26, 23, 0.6);
  text-shadow: none;
  transform: translateX(50%);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .community-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .community-stats div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .community-crew .community-roster {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .community-crew .community-avatar-link,
  .community-crew .community-avatar {
    width: 28px;
    height: 28px;
  }

  .community-crew .community-avatar-link {
    flex-basis: 28px;
    margin-left: -8px;
  }

  .painted {
    border-radius: 20px;
  }
}

/* Full-bleed painting: breaks out of the page column to span the whole viewport width. */
.painted-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
  padding-inline: max(24px, calc((100vw - 1320px) / 2));
}

.workbench {
  overflow-x: clip;
}

@media (max-width: 760px) {
  .painted-bleed {
    padding-inline: 16px;
  }
}

/* Workbench heading stays on one line from tablet up; the intro wraps to about two lines. */
@media (min-width: 901px) {
  .workbench .section-heading.narrow {
    max-width: none;
  }

  .workbench .section-heading h2 {
    white-space: nowrap;
    font-size: clamp(36px, 4.2vw, 64px);
  }
}

.workbench .section-heading p {
  max-width: 560px;
}

.hero-tribute .hero-lede {
  max-width: 600px;
}

/* Model cases, row 1: Seedance keeps its native 16:9 frame; the image cards stretch to match it.
   Row 2: the two audio cards share the width with wide waveforms. */
.model-cases .model-case-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.model-cases .model-case-wide .model-case-media {
  flex: none;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.model-cases .model-case-image .model-case-media {
  flex: 1;
  min-height: 220px;
  aspect-ratio: auto;
}

.model-cases .model-case-audio {
  grid-column: span 2;
}

.model-cases .model-case-audio .model-case-media {
  aspect-ratio: 16 / 5;
}

/* Every slide shows uncropped on a blurred copy of itself. */
.mc-slide img:not(.mc-backdrop) {
  object-fit: contain;
}

@media (max-width: 600px) {
  .model-cases .model-case-wide,
  .model-cases .model-case-audio {
    grid-column: auto;
  }

  .model-cases .model-case-audio .model-case-media {
    aspect-ratio: 16 / 7;
  }
}

/* All frames share the stage; on phones only the chosen capability is revealed. */
.showcase-frame[hidden] {
  display: block;
}

@media (max-width: 880px) {
  .sc-media:not(.is-revealed) {
    display: none;
  }
}

/* With the intro copy gone, the two community buttons sit flush right beside the heading. */
@media (min-width: 901px) {
  .theme-atelier .community-actions {
    justify-content: flex-end;
    margin-top: 0;
  }
}

/* Closing call to action: app icon, headline, download and GitHub. */
.final-cta-lede {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.final-cta-actions .button {
  min-height: 52px;
  gap: 10px;
  padding-inline: 22px;
  font-size: 15px;
}

.final-cta-actions svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.final-download svg {
  fill: none;
  stroke: #8b9bff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-atelier .final-github {
  border-color: rgba(28, 26, 23, 0.18);
  background: rgba(252, 249, 243, 0.86);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.theme-atelier .final-github:hover {
  background: #fff;
}

.final-github svg {
  fill: currentColor;
}

.final-github-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.theme-atelier .final-cta .final-cta-inner {
  gap: 20px;
}

.theme-atelier .final-cta::before {
  background: radial-gradient(ellipse 62% 78% at 50% 50%, rgba(252, 249, 243, 0.82), rgba(252, 249, 243, 0.22) 72%);
}

/* Tribute stage: a little taller so the evenly sized heads keep room above them. */
.tribute-group {
  height: clamp(300px, 31vw, 440px);
}

.theme-atelier .final-cta h2 em {
  color: var(--ultramarine);
  font-style: italic;
}

/* Closing headline reads as one line. */
.theme-atelier .final-cta h2 {
  max-width: none;
}

.theme-atelier .final-cta h2 span {
  display: inline;
}

.theme-atelier .final-cta h2 span + span {
  margin-left: 0.24em;
}

@media (min-width: 601px) {
  .theme-atelier .final-cta h2 {
    white-space: nowrap;
  }
}

/* Arc composition: the stage height follows its own width, and each figure sinks below the floor by
   --sink so the tops of the heads form a gentle arch, low at the edges and highest in the middle. */
.tribute-stage {
  container-type: inline-size;
}

.tribute-group {
  height: 25cqw;
  max-height: 460px;
}

.tribute-figure {
  bottom: calc(var(--sink, 0cqw) * -1);
}

.tribute-figure img {
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 92%);
}

.tribute-stage {
  overflow: hidden;
  padding-bottom: 0;
}

@media (max-width: 760px) {
  .tribute-group {
    width: 116%;
    height: 29cqw;
    margin-left: -8%;
  }
}

/* One shared floor: every figure fades out at the same line, and the credit sits underneath it. */
.tribute-figure img {
  -webkit-mask-image: none;
  mask-image: none;
}

.tribute-group::after {
  content: "";
  position: absolute;
  inset: auto -2% 0;
  z-index: 9;
  height: 34%;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 88%);
  pointer-events: none;
}

.tribute-credit {
  position: relative;
  z-index: 10;
  margin-top: 10px;
  padding-inline: 16px;
}

@media (max-width: 760px) {
  .tribute-credit {
    font-size: 9px;
  }
}

/* Clip at the floor so the sunk part of each figure never shows under the fade or the credit. */
.tribute-group {
  overflow: hidden;
}

/* Cards sit beside the face: the figure box extends below the floor by --sink, so offset from its top. */
.tribute-card {
  top: 9%;
}

/* Gentler arc: stage height matches the shortest standing figure; the floor fade only takes the hem. */
.tribute-group {
  height: 24.72cqw;
}

.tribute-group::after {
  height: 18%;
}

@media (max-width: 760px) {
  .tribute-group {
    height: calc(24.72cqw * 1.16);
  }
}

/* Hero rhythm: a little more air between eyebrow, headline, lede, actions, proof, and the portrait stage. */
.hero-tribute .tribute-eyebrow {
  margin-bottom: 24px;
}

.hero-tribute h1 {
  margin-bottom: 28px;
}

.hero-tribute .hero-lede {
  margin-bottom: 36px;
}

.hero-tribute .tribute-proof {
  margin-top: 26px;
}

.hero-tribute .tribute-stage {
  margin-top: clamp(20px, 3.4vh, 40px);
}

@media (max-width: 760px) {
  .hero-tribute .tribute-eyebrow { margin-bottom: 20px; }
  .hero-tribute h1 { margin-bottom: 22px; }
  .hero-tribute .hero-lede { margin-bottom: 30px; }
  .hero-tribute .tribute-proof { margin-top: 22px; }
}

/* Tribute line under the portraits: a quiet italic caption rather than a credit list. */
.hero-tribute .tribute-credit {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* Lighter floor: no grey pool behind the group, and a subtler colour halo on hover. */
.hero-tribute {
  background: var(--bg);
}

.tribute-figure.is-active::before {
  opacity: 0.35;
}

.tribute-figure::before {
  bottom: 18%;
  height: 34%;
  filter: blur(26px);
}

/* Models intro wraps to about two lines. */
.models-cases .section-heading p {
  max-width: 540px;
}

/* Inside the app, without the gallery card: templates span the top, Skills, Agent, and local-first share the row below. */
.bento {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "templates templates templates"
    "skills agents local";
}

.bento-templates {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 3vw, 48px);
  align-items: center;
}

.bento-templates .bento-copy {
  grid-row: 1;
  grid-column: 1;
}

.bento-templates .resource-links {
  grid-row: 2;
  grid-column: 1;
  align-self: start;
  margin-top: 4px;
}

.bento-templates .bento-marquee {
  grid-row: 1 / span 2;
  grid-column: 2;
  margin-inline: 0 calc(clamp(22px, 2.4vw, 32px) * -1);
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "templates templates"
      "skills skills"
      "agents local";
  }

  .bento-templates {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-templates .bento-copy,
  .bento-templates .resource-links,
  .bento-templates .bento-marquee {
    grid-column: 1;
    grid-row: auto;
  }

  .bento-templates .bento-marquee {
    margin-inline: calc(clamp(22px, 2.4vw, 32px) * -1);
  }
}

@media (max-width: 680px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "templates" "skills" "agents" "local";
  }
}

/* Second row: Skills spans two columns with its list in a 2x2 grid, so all three cards stay the same height. */
.bento {
  grid-template-areas:
    "templates templates templates"
    "skills skills agents"
    "skills skills local";
}

.bento-skills .skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 1000px) {
  .bento {
    grid-template-areas:
      "templates templates"
      "skills skills"
      "agents local";
  }
}

@media (max-width: 680px) {
  .bento {
    grid-template-areas: "templates" "skills" "agents" "local";
  }

  .bento-skills .skill-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.bento-skills .resource-links {
  margin-top: auto;
}

.bento-skills .resource-note {
  margin-bottom: 8px;
}

/* Models: Seedance on the left across two rows; image cards top right, the audio cards directly beneath them. */
.model-cases .model-case-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.model-cases .model-case-audio {
  grid-column: span 1;
}

.model-cases .model-case-image .model-case-media {
  flex: 1;
  min-height: 150px;
  aspect-ratio: auto;
}

.model-cases .model-case-audio .model-case-media {
  flex: none;
  gap: 10px;
  height: clamp(84px, 7vw, 108px);
  aspect-ratio: auto;
}

.model-cases .model-case-audio .wave-bars {
  height: 44px;
}

@media (max-width: 1000px) {
  .model-cases .model-case-wide {
    grid-row: span 1;
  }

  .model-cases .model-case-image .model-case-media {
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  .model-cases .model-case-audio {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .model-cases {
    grid-template-columns: minmax(0, 1fr);
  }

  .model-cases .model-case,
  .model-cases .model-case-wide,
  .model-cases .model-case-audio,
  .model-cases .model-case-image {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .model-cases .model-case-image .model-case-media {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

/* Image model cards: every slide is 16:9, shown edge to edge in a fixed 16:9 frame. */
.model-cases .model-case-image .model-case-media {
  flex: none;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.model-cases .model-case-image .mc-slide img {
  object-fit: cover;
}

@media (max-width: 1000px) {
  .model-cases .model-case-image .model-case-media {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .model-cases .model-case-image .model-case-media {
    aspect-ratio: 16 / 9;
  }
}

/* Chinese display type needs more line height and predictable sizes than Latin text. */
html[lang="zh-CN"].theme-atelier .hero-tribute {
  padding-top: 32px;
}

html[lang="zh-CN"].theme-atelier .tribute-stage {
  margin-top: 8px;
}

html[lang="zh-CN"].theme-atelier .tribute-group {
  height: min(28vw, 340px);
}

html[lang="zh-CN"].theme-atelier .workbench {
  padding-top: 64px;
}

html[lang="zh-CN"].theme-atelier .hero-tribute h1 {
  max-width: 100%;
  font-size: 64px;
  line-height: 1.2;
  white-space: normal;
}

html[lang="zh-CN"].theme-atelier .section-heading h2,
html[lang="zh-CN"].theme-atelier .showcase-side h2 {
  font-size: 44px;
  line-height: 1.3;
}

html[lang="zh-CN"].theme-atelier .bento-copy h3 {
  font-size: 26px;
  line-height: 1.35;
}

html[lang="zh-CN"].theme-atelier h1 em,
html[lang="zh-CN"].theme-atelier h2 em {
  font-style: normal;
}

html[lang="zh-CN"].theme-atelier .final-cta h2 {
  font-size: 72px;
  line-height: 1.2;
  white-space: normal;
}

@media (max-width: 1100px) {
  html[lang="zh-CN"].theme-atelier .hero-tribute h1 {
    font-size: 52px;
  }
}

@media (max-width: 900px) {
  html[lang="zh-CN"].theme-atelier .section-heading h2,
  html[lang="zh-CN"].theme-atelier .showcase-side h2 {
    font-size: 38px;
  }

  html[lang="zh-CN"].theme-atelier .final-cta h2 span {
    display: block;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  html[lang="zh-CN"].theme-atelier .hero-tribute {
    padding-top: 24px;
  }

  html[lang="zh-CN"].theme-atelier .hero-tribute h1 {
    font-size: 36px;
  }

  html[lang="zh-CN"].theme-atelier .section-heading h2,
  html[lang="zh-CN"].theme-atelier .showcase-side h2 {
    font-size: 30px;
  }

  html[lang="zh-CN"].theme-atelier .bento-copy h3 {
    font-size: 24px;
  }

  html[lang="zh-CN"].theme-atelier .final-cta h2 {
    font-size: 56px;
  }
}

@media (max-width: 360px) {
  html[lang="zh-CN"].theme-atelier .hero-tribute h1 {
    font-size: 30px;
  }

  html[lang="zh-CN"].theme-atelier .final-cta h2 {
    font-size: 48px;
  }
}

@media (min-width: 901px) and (max-height: 800px) {
  html[lang="zh-CN"].theme-atelier .tribute-group {
    height: min(22vw, 280px);
  }
}
