:root {
  color-scheme: light;
  --canvas: #f0f0f0;
  --paper: #fff;
  --ink: #171819;
  --muted: #55585b;
  --soft-ink: #676b70;
  --link: #005ba3;
  --line: #d9dbdd;
  --nav-height: 75px;
  --strip-height: 26px;
  --page-edge: 24px;
  --column: min(calc(100% - 2 * var(--page-edge)), 950px);
  --stage-gutter: clamp(34px, min(calc(48vw - 446px), calc(24.6vw - 109px)), 364px);
  --stage-right: clamp(32px, calc(15vw - 170px), 120px);
  --stage-copy: clamp(250px, calc(6.25vw + 186px), 306px);
  --stage-gap: clamp(43px, calc(1.875vw + 16px), 52px);
  --copy-edge: max(var(--page-edge), calc((100% - 950px) / 2));
  --copy-width: min(950px, calc(100% - var(--copy-edge) - var(--page-edge)));
  --hero-distance: 102svh;
  --pin-height: calc(100svh - var(--nav-height));
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-height); }
body { min-width: 280px; margin: 0; padding-top: var(--nav-height); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: var(--column); margin-inline: auto; }
body:has(.story[data-motion]) { --copy-edge: var(--stage-gutter); }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 12px; transform: translateY(-160%); padding: 10px 14px; border-radius: 5px; background: var(--paper); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  height: var(--nav-height);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
}
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand strong { font-size: 19px; font-weight: 680; letter-spacing: -.035em; }
.top-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.top-links a:hover, .site-footer a:hover { color: var(--link); text-decoration: underline; text-underline-offset: .23em; }
.nav-cta { margin-left: auto; flex: none; border-radius: 5px; padding: 9px 13px; color: #fff; background: #171819; font-size: 13px; font-weight: 640; white-space: nowrap; }
.nav-cta:hover { background: #343537; }
.notice-bar { display: flex; align-items: center; gap: 7px; min-height: 39px; padding: 8px var(--page-edge) 8px var(--copy-edge); border-top: 1px solid #e1e2e3; border-bottom: 1px solid #e1e2e3; color: #4f5458; font-size: 13px; line-height: 1.45; }
.notice-bar a { color: var(--link); }
.notice-bar a:hover { text-decoration: underline; }

.story { position: relative; isolation: isolate; background: var(--canvas); }
.story-pin { position: relative; padding-bottom: 36px; }
.hero-copy { position: relative; padding-top: clamp(34px, 6.22svh, 56px); }
.hero-copy h1 { color: var(--ink); font-size: clamp(32px, 4.2vw, 36px); font-weight: 610; line-height: 1.08; letter-spacing: -.04em; }
.hero-lead { margin-top: 17px; color: var(--ink); font-size: clamp(21px, 2.6vw, 28px); font-weight: 420; line-height: 1.52; letter-spacing: -.027em; }
.hero-lead a { color: var(--link); font-weight: 700; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .15em; text-decoration-thickness: .06em; }
.hero-lead a:hover { text-decoration-color: currentColor; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding-inline: 15px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 630; }
.button.primary { color: #fff; background: #171819; }
.button.primary:hover { background: #37383a; }
.button.secondary { border-color: var(--line); color: var(--ink); background: #fff; }
.button.secondary:hover { background: #e8e9ea; }

.scene-preview { position: relative; width: min(1040px, calc(100% - var(--copy-edge) - var(--page-edge))); margin: clamp(26px, 3.55svh, 32px) auto 0 var(--copy-edge); }
.scene-preview [data-story-workbench] { width: 100%; min-width: 0; }
.scene-preview :is(.cup-wb-shell, [data-story-workbench] > img),
.lesson-illustration :is(.cup-wb-shell, img) {
  width: 100%;
  height: auto;
  aspect-ratio: 950 / 594;
  object-fit: cover;
  border: 1px solid #34383e;
  border-radius: 11px;
  box-shadow: 0 20px 55px #2429322b, 0 2px 12px #2429321a;
}
.scene-preview .cup-wb-shell { max-height: calc(100svh - var(--nav-height) - 86px); }
.story[data-motion] .scene-preview .cup-wb-shell { height: var(--preview-height, auto); max-height: none; border-radius: var(--preview-radius, 11px); opacity: var(--preview-opacity, 1); }
.story[data-motion] .scene-preview .cup-wb-step[data-wb-step="history"] .cup-wb-settings { opacity: var(--source-column-opacity, 1); }
.story[data-motion] { display: grid; grid-template-columns: minmax(0, 1fr); }
.story[data-motion] > :is(.hero-copy, .story-pin, .linear-story) { grid-area: 1 / 1; align-self: start; }
.story[data-motion] .hero-copy { z-index: 2; }
.story[data-motion] .story-pin {
  grid-row: 1 / 3;
  position: sticky;
  z-index: 1;
  top: var(--nav-height);
  height: var(--pin-height);
  padding: 0;
  overflow: visible;
  pointer-events: none;
}
.story[data-motion] .scene-preview {
  position: absolute;
  width: var(--preview-width, min(1040px, calc(100% - var(--copy-edge) - var(--stage-right))));
  left: var(--preview-x, var(--copy-edge));
  top: var(--preview-y, clamp(180px, 25.33svh, 228px));
  margin: 0;
}
.story-controls { position: absolute; z-index: 2; right: calc(100% - var(--preview-x, 80%) - var(--preview-width, 0px)); top: calc(var(--preview-y, 118px) + var(--preview-height, 519px) + 14px); display: flex; gap: 7px; }
.story-controls button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; cursor: pointer; pointer-events: auto; }
.story-controls button:hover { background: #e9eaeb; }
.story-controls button:disabled { opacity: .44; cursor: default; }

.lesson-copy { min-width: 0; line-break: strict; }
.lesson-copy h2 { color: #1b1b1d; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
:is(.lesson-intro, .agent-intro-copy) > p { margin-top: 20px; color: #545458; font-size: clamp(16px, 1.65vw, 19px); line-height: 1.6; }
.lesson-link { display: inline-block; margin-top: 14px; color: #0069cc; font-size: clamp(16px, 1.6vw, 18px); font-weight: 700; }
.lesson-link:hover { text-decoration: underline; text-underline-offset: .16em; }
.linear-story { list-style: none; margin-block: 0; padding: 0; }
.lesson-spread { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); align-items: center; gap: clamp(25px, 4.2vw, 55px); min-height: min(78svh, 640px); padding-block: 64px; border-top: 1px solid var(--line); }
.lesson-illustration { min-width: 0; }
.story[data-motion] .linear-story { width: 100%; padding-block: var(--hero-distance) clamp(180px, 36svh, 320px); }
.story[data-motion] .lesson-spread {
  grid-template-columns: var(--stage-copy);
  align-items: start;
  column-gap: var(--stage-gap);
  min-height: 0;
  padding: 0 var(--stage-right) 0 var(--copy-edge);
  border: 0;
}
.story[data-motion] .lesson-spread:nth-child(odd) { background: var(--paper); }
.story[data-motion] .lesson-spread .lesson-copy { grid-column: 1; grid-row: 1; }
.story[data-motion] .lesson-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(var(--pin-height) - clamp(36px, 7svh, 72px));
  padding-bottom: 24px;
}
.story[data-motion] .lesson-illustration { display: none; }

.showcase, .works { padding-block: clamp(54px, 8svh, 88px); }
.continue { width: 100%; }
.agent-intro {
  --agent-intro-height: clamp(322px, 55svh, 545px);
  --agent-intro-width: calc(var(--agent-intro-height) * .62);
  --agent-intro-gap: clamp(9px, 1.2vw, 18px);
  border-top: 1px solid var(--line);
}
.agent-intro-layout {
  display: grid;
  grid-template-columns: var(--stage-copy) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4.2vw, 55px);
  padding: clamp(48px, 7svh, 76px) var(--page-edge) clamp(48px, 7svh, 76px) var(--copy-edge);
}
.agent-intro-copy { max-width: 27rem; }
.agent-intro-composition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--agent-intro-width) minmax(0, 1fr);
  align-items: center;
  gap: var(--agent-intro-gap);
  width: min(100%, 760px);
  min-width: 0;
}
.agent-intro-side { display: grid; gap: var(--agent-intro-gap); }
.agent-intro-slot { min-width: 0; height: var(--agent-intro-height); }
.agent-intro-fallback { height: 100%; box-shadow: 0 12px 30px #15181922; }
.agent-intro-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: clamp(10px, 1.15vw, 16px);
  border: 1px solid #3d4044;
  border-radius: 10px;
  background: #242526;
  color: #eff1f3;
  box-shadow: 0 8px 22px #1518191c;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.agent-intro-card > strong { font-weight: 680; }
.agent-intro-card-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px;
  border: 1px solid #404952;
  border-radius: 7px;
  background: #2b3036;
}
.agent-intro-card-row b { font-weight: 650; }
.agent-intro-card small, .agent-intro-card figcaption { display: block; color: #bfc7d0; font-size: 10px; line-height: 1.45; }
.agent-intro-card-icon { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 5px; color: #bed7f6; background: #3d495b; }
.agent-intro-card figure { overflow: hidden; border-radius: 6px; background: #2b2e33; }
.agent-intro-card figure img { width: 100%; height: auto; max-height: 68px; aspect-ratio: 16 / 9; object-fit: cover; }
.agent-intro-card figcaption { padding: 5px 6px; }
.story[data-motion] .agent-intro { min-height: max(88svh, calc(var(--agent-intro-height) + 320px)); }
.story[data-motion] .agent-intro-layout {
  position: sticky;
  top: calc(var(--nav-height) + clamp(38px, 12svh, 108px));
  grid-template-columns: var(--stage-copy) minmax(0, 1fr);
  min-height: clamp(298px, 39svh, 356px);
  column-gap: var(--stage-gap);
  padding-block: 22px;
  padding-inline-end: var(--stage-right);
}
.story[data-motion] .agent-intro-fallback { display: none; }
.story[data-motion] .agent-intro [data-agent-intro-surround] {
  opacity: var(--agent-intro-surround-opacity, 0);
  transform: translateY(var(--agent-intro-surround-y, 0px)) scale(var(--agent-intro-surround-scale, 1));
  transform-origin: center;
}
.story[data-motion] .continue { grid-area: 2 / 1; align-self: start; }
.story[data-motion][data-docked] .scene-preview { visibility: hidden; opacity: 0; }
.showcase-heading h2, .section-head h2 { color: var(--ink); font-size: clamp(29px, 4.3vw, 42px); font-weight: 610; line-height: 1.12; letter-spacing: -.04em; }
.showcase {
  --showcase-frame-height: clamp(320px, 52svh, 465px);
  --showcase-wide-width: min(84vw, clamp(500px, 49vw, 860px));
  --showcase-gap: clamp(24px, 4.8vw, 72px);
  --showcase-end-inset: max(var(--page-edge), calc(100% - var(--copy-edge) - var(--showcase-wide-width)));
  width: 100%;
  min-width: 0;
  border-top: 1px solid var(--line);
}
.showcase-heading { width: var(--copy-width); max-width: 660px; margin: 0 auto clamp(22px, 3vw, 40px) var(--copy-edge); }
.story[data-motion] .showcase-heading:not(:focus-within) { opacity: var(--showcase-heading-opacity, 1); }
.showcase-heading > p { margin-top: 14px; color: var(--muted); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.6; }
.showcase-intro-link { display: inline-block; margin-top: 10px; color: var(--link); font-weight: 700; }
.showcase-intro-link:hover { text-decoration: underline; }
.showcase-window { position: relative; min-width: 0; }
.showcase-scenes {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline-start: var(--copy-edge);
  scrollbar-width: none;
}
.showcase[data-showcase-locked] .showcase-scenes { overflow-x: hidden; }
.showcase-strip {
  display: flex;
  align-items: start;
  width: max-content;
  min-width: 100%;
  gap: var(--showcase-gap);
  padding: 4px var(--showcase-end-inset) 14px var(--copy-edge);
}
.showcase-row {
  --showcase-tile-width: min(84vw, clamp(380px, 45vw, 700px));
  --showcase-accent: #aacdf7;
  flex: none;
  width: var(--showcase-tile-width);
  min-width: 0;
  scroll-snap-align: start;
}
.showcase-row[data-showcase-size="wide"] { --showcase-tile-width: var(--showcase-wide-width); }
.showcase-row[data-showcase-size="medium"] { --showcase-tile-width: min(84vw, clamp(400px, 45vw, 730px)); }
.showcase-row[data-showcase-size="compact"] { --showcase-tile-width: min(84vw, clamp(350px, 38vw, 620px)); }
.showcase-copy { min-width: 0; margin-top: 11px; text-align: start; }
.showcase-copy h3 { color: #3d4146; font-size: 14px; font-weight: 600; line-height: 1.4; }
.showcase-copy .showcase-link { display: none; }
.showcase-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: var(--copy-width);
  margin: 10px auto 0 var(--copy-edge);
}
.showcase-controls button, .showcase-detail-close {
  min-height: 35px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.showcase-controls button:hover, .showcase-detail-close:hover { border-color: #848a90; }
.showcase-transport { display: inline-flex; align-items: center; gap: 8px; }
.showcase-transport button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #e7e8ea; font-size: 19px; line-height: 1; }
.showcase-transport [data-showcase-play] { font-size: 13px; }
.showcase-transport button:disabled { opacity: .48; cursor: default; }
.showcase-inspect-panel {
  position: absolute;
  z-index: 5;
  inset: 12px max(var(--page-edge), 2vw) auto auto;
  width: min(310px, calc(100% - 2 * var(--page-edge)));
  max-height: calc(100% - 24px);
  padding: 16px 54px 16px 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 38px #17181928;
}
.showcase-inspect-panel p { margin-top: 7px; color: var(--muted); }
.showcase-inspect-panel .showcase-link { display: inline-block; margin-top: 8px; color: var(--link); font-weight: 700; }
.showcase-detail-close { position: absolute; inset: 9px 9px auto auto; min-height: 30px; min-width: 30px; padding: 4px 8px; font-size: 14px; }
.showcase-row--video { --showcase-accent: #9bc5fc; }
.showcase-row--image { --showcase-accent: #d3b6f9; }
.showcase-row--skills { --showcase-accent: #a4d6c3; }
.showcase-frame {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr);
  min-width: 0;
  height: var(--showcase-frame-height);
  overflow: hidden;
  border: 1px solid #414345;
  border-radius: 12px;
  box-shadow: 0 8px 24px #2429322b;
  background: #191a1b;
  color: #f1f2f3;
  font-size: 13px;
  text-align: left;
}
.showcase-agent.showcase-dialogue {
  --showcase-accent: #aacdf7;
  container-type: inline-size;
  padding: 0;
}
.showcase-dialogue-thread {
  display: grid;
  gap: clamp(12px, 5cqw, 20px);
  width: min(100%, 36rem);
  margin-inline: auto;
  padding: clamp(10px, 5cqw, 22px);
  color: #e4e7ea;
  font-size: clamp(12px, calc(9px + 1.3cqw), 18px);
  line-height: 1.6;
}
.showcase-dialogue-prompt {
  justify-self: end;
  max-width: 90%;
  padding: clamp(7px, 1.9cqw, 13px) clamp(10px, 2.4cqw, 17px);
  border: 1px solid #41464d;
  border-radius: 12px 12px 4px 12px;
  background: #2b3037;
  color: #f1f3f5;
}
.showcase-dialogue-reply { width: min(100%, 31rem); }
.showcase-dialogue-byline {
  margin-bottom: 5px;
  color: #b9c7d7;
  font-size: clamp(10px, 1.8cqw, 13px);
  font-weight: 690;
}
.showcase-dialogue-byline span { margin-inline-end: 4px; color: var(--showcase-accent); }
.showcase-agent.story-agent-transfer, .story-agent-transfer .showcase-tile-button { display: none; }
.story[data-motion] .story-pin .story-agent-transfer {
  --intro-chrome: var(--agent-intro-chrome-opacity, 0);
  position: absolute;
  z-index: 1;
  display: flex;
  gap: 0;
  left: var(--dialogue-x, 0px);
  top: var(--dialogue-y, 0px);
  width: var(--dialogue-width, 0px);
  height: var(--dialogue-height, 0px);
  border-radius: var(--dialogue-radius, 12px);
  opacity: var(--dialogue-opacity, 0);
  box-shadow: var(--dialogue-shadow, none);
  overflow: hidden;
  pointer-events: none;
}
.story-agent-transfer::before, .story-agent-transfer::after {
  display: flex;
  flex: none;
  align-items: center;
  overflow: hidden;
  padding-inline: 12px;
  color: #c1c8d2;
  opacity: var(--intro-chrome, 0);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}
.story-agent-transfer::before {
  content: "创作会话";
  height: calc(var(--intro-chrome, 0) * 32px);
  flex-grow: var(--intro-chrome, 0);
  align-items: flex-start;
  padding-block-start: calc(var(--intro-chrome, 0) * 8px);
  background: linear-gradient(#202122 0 31px, #3b3d40 31px 32px, transparent 32px);
  font-weight: 680;
}
.story-agent-transfer::after {
  content: "描述你的创作想法…";
  height: calc(var(--intro-chrome, 0) * 34px);
  margin: auto 12px calc(var(--intro-chrome, 0) * 12px);
  border-radius: 7px;
  background: #2b3036;
  box-shadow: inset 0 0 0 1px #414952;
}
.showcase-dialogue-flight {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.showcase-dialogue-flight-body {
  position: absolute;
  inset: 0 auto auto 0;
}
.showcase-agent-slot {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-radius: 10px;
  background: #1d1e1f;
  box-shadow: inset 0 0 0 1px #303133;
}
:is(.showcase-agent-slot, .showcase-dialogue-flight-body) > .showcase-dialogue {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.showcase-tile-button {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 4px #000;
  outline-offset: -3px;
  cursor: pointer;
  pointer-events: auto;
}
.showcase-tile-button > span { visibility: hidden; padding: 4px 7px; border-radius: 5px; background: #191a1be8; }
.showcase-tile-button:is(:hover, :focus-visible, [aria-expanded="true"]) > span { visibility: visible; }
.showcase:not([data-showcase-enhanced]) .showcase-tile-button { display: none; }
.showcase-tile-button:hover, .showcase-tile-button[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--showcase-accent); }
.showcase[data-showcase-motion] .showcase-row:first-child .showcase-dialogue {
  opacity: var(--showcase-first-opacity, 1);
}
.showcase-scenes .showcase-demo { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 0; padding-bottom: 29px; overflow: hidden; }
.showcase-scenes .showcase-output { min-height: 0; gap: 7px; font-size: clamp(10px, 2.65cqw, 12px); }
.showcase-scenes .showcase-demo-title { font-size: clamp(11px, 2.8cqw, 13px); }
.showcase-scenes .showcase-result { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.showcase-scenes .showcase-result img { flex: 1; height: 0; min-height: 60px; aspect-ratio: auto; }
.showcase-scenes .showcase-result figcaption { flex: none; }
.showcase-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding-inline: 13px;
  border-bottom: 1px solid #353638;
  background: #202122;
  color: #e6e7e8;
  font-size: 11px;
  font-weight: 680;
}
.showcase-chrome > :last-child { justify-self: end; color: #adb6cd; font-size: 10px; font-weight: 500; }
.showcase-lights { display: inline-flex; gap: 4px; }
.showcase-lights i { width: 6px; height: 6px; border-radius: 50%; background: #4c4d4f; }
.showcase-demo {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: clamp(9px, 1.8cqw, 18px);
  padding: clamp(10px, 2.6cqw, 24px);
  background: #191a1b;
}
.showcase-agent, .showcase-output {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: clamp(10px, 2cqw, 18px);
  border: 1px solid #38393b;
  border-radius: 10px;
  background: #242526;
  overflow-wrap: anywhere;
}
.showcase-output { background: #202122; }
.showcase-demo-title { display: flex; align-items: center; gap: 7px; color: #f1f4ff; font-size: 13px; font-weight: 760; }
.showcase-result { position: relative; overflow: hidden; border: 1px solid #414a62; border-radius: 8px; background: #10151e; }
.showcase-result img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.showcase-result figcaption { padding: 6px 9px; color: #d5ddf0; background: #212737; font-size: 11px; }
.showcase-specs { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 0; list-style: none; }
.showcase-specs > * { padding: 3px 7px; border: 1px solid #414a62; border-radius: 5px; color: #e0e7f6; background: #252c3a; font-size: 11px; }
.showcase-skill-list { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.showcase-skill-list > li { display: grid; gap: 3px; padding: 8px 10px; border: 1px solid #3c4658; border-radius: 7px; background: #232b39; }
.showcase-skill-list > li:first-child { border-color: color-mix(in srgb, var(--showcase-accent) 58%, #3c4658); background: #263635; }
.showcase-skill-list strong { color: #f4f6fc; font-size: 12px; }
.showcase-skill-list small { color: #b9c6d9; font-size: 11px; }

@container (max-width: 440px) {
  .showcase-scenes .showcase-demo { grid-template-columns: minmax(0, 1fr); grid-template-rows: 155px minmax(0, 1fr); }
  .showcase-chrome > :last-child { font-size: 9px; }
  .showcase-skill-list { gap: 6px; }
  .showcase-skill-list > li { padding-block: 6px; }
}
@media (max-width: 999px), (hover: none) and (pointer: coarse), (prefers-reduced-motion: reduce) {
  .showcase-scenes { scroll-snap-type: x mandatory; }
}
@media (max-width: 999px) {
  .showcase {
    --showcase-frame-height: clamp(432px, 112vw, 465px);
    --showcase-gap: clamp(14px, 2.2vw, 22px);
  }
}
@media (max-width: 520px) {
  .showcase { --showcase-frame-height: 465px; }
}
.works { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; min-height: 88px; padding-block: 18px calc(18px + var(--strip-height)); }
.site-footer .brand img { width: 28px; height: 28px; }
.site-footer .brand strong { font-size: 16px; }
.site-footer :is(nav, div) { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; }
.preview-strip { position: fixed; z-index: 9; inset: auto 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 3px; min-height: var(--strip-height); padding: 4px var(--page-edge) 4px var(--copy-edge); color: var(--muted); background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(18px) saturate(130%); font-size: 10px; line-height: 1.4; pointer-events: none; }

:is(.topbar-inner, .hero-copy, .works, .site-footer) {
  width: var(--copy-width);
  margin-inline: var(--copy-edge) auto;
  text-align: start;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes copy-enter {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  [data-copy-reveal="pending"]:not(:focus-within) { opacity: 0; pointer-events: none; }
  [data-copy-reveal="visible"]:not(:focus-within) { animation: copy-enter .85s ease-out backwards; }
  .hero-lead[data-copy-reveal="visible"]:not(:focus-within) { animation-delay: .14s; }
}

@media (max-width: 999px) {
  .lesson-spread { min-height: 0; }
  .topbar-inner { gap: 19px; }
  .agent-intro { --agent-intro-height: 222px; }
  .agent-intro-composition { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .agent-intro-slot { grid-column: 1 / -1; grid-row: 1; }
  .agent-intro-reference { display: none; }
}
@media (max-width: 720px) {
  :root { --nav-height: 64px; --page-edge: 20px; }
  .top-links { display: none; }
  .topbar .brand { flex: 0 1 auto; }
  .topbar .brand img { flex: none; }
  .topbar .brand strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-copy { padding-top: 34px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-lead { font-size: clamp(19px, 5.65vw, 23px); line-height: 1.55; }
  .hero-lead br { display: none; }
  .scene-preview .cup-wb-shell { min-height: 230px; }
  .lesson-spread { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 38px; }
  .agent-intro-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
