.hero { background: var(--paper); border-bottom: 1px solid var(--rule); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(24px, 5.5vw, 76px);
  padding-block: clamp(44px, 6.5vw, 82px) clamp(31px, 4.4vw, 58px);
}
.eyebrow { font: 650 .84rem/1.45 var(--mono); letter-spacing: .05em; }
.hero-kicker { color: var(--muted); margin-bottom: 15px; }
.hero h1 {
  font-size: clamp(3.5rem, 8.3vw, 7.5rem);
  line-height: 1.01;
  letter-spacing: -.07em;
  font-weight: 700;
}
.hero-lead { max-width: 480px; margin: 22px 0 24px; color: var(--muted); line-height: 1.75; }
.hero-figure { min-width: 0; background: #fafafa; border: 1px solid var(--rule); padding: 7px; }
.hero-figure figcaption { display: flex; justify-content: space-between; padding: 7px 3px 1px; color: var(--muted); font: .82rem/1.3 var(--mono); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.metrics div { padding: 16px 22px 20px; border-left: 1px solid var(--rule); }
.metrics div:first-child { border-left: 0; padding-left: 0; }
.metrics dt { color: var(--muted); font: .82rem/1.45 var(--mono); margin-bottom: 8px; }
.metrics dd { color: var(--ink); font: 650 clamp(1.42rem, 4vw, 3rem)/1 var(--mono); letter-spacing: -.065em; white-space: nowrap; }
.metrics dd span { font-size: .57em; padding-left: .1em; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-heading { display: grid; grid-template-columns: .95fr 1fr; align-items: end; gap: 20px; margin-bottom: 32px; }
.section-heading h2 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.067em; }
.section-heading p { color: var(--muted); max-width: 485px; }
.strategy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.strategy { container-type: inline-size; min-width: 0; padding: clamp(16px, 2.3vw, 28px); background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; }
.strategy-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 47px;
  margin-bottom: 14px;
}
.strategy-heading h3 {
  white-space: nowrap;
  font: 650 clamp(.85rem, 4.3cqi, 1.55rem)/1.2 var(--mono);
  letter-spacing: -.055em;
}
@container (max-width: 280px) {
  .strategy-heading { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .strategy-heading .text-button { justify-self: end; }
}
.text-button {
  flex: none;
  padding: 4px 7px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: .82rem;
}
.text-button:hover { background: #f4f4f5; }
.model-node {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--rule);
  background: #fafafa;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.model-node strong, .model-node small { display: block; }
.model-node strong { font-size: .88rem; line-height: 1.35; }
.model-node small { margin-top: 2px; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.model-core { display: grid; align-content: center; justify-items: center; gap: 0; }
.model-core strong { font: 700 1.12rem var(--mono); }
.model-core small { font: .75rem/1.2 var(--mono); }
.model-node.is-active, .model-input:has(.is-active), .model-outputs.is-active .model-node {
  background: #f1f1f3;
  border-color: #65656f;
  box-shadow: 0 0 0 1px #65656f inset;
}
.model-outputs { display: grid; }
.model-outputs-pair { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.forecast-result { border-color: #a1a1aa; position: relative; }
.forecast-result strong { font-weight: 760; }
.time-frame {
  flex: none;
  width: clamp(43px, 6vw, 74px);
  overflow: hidden;
  position: relative;
  border: 1px solid #a1a1aa;
}
.time-frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.frame-time {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #18181b;
  color: #fff;
  font: 650 .68rem/1.2 var(--mono);
  padding: 2px 3px;
}
.is-active .forecast-result img { animation: reveal-prediction .85s ease-out both; }
@keyframes reveal-prediction { from { filter: grayscale(1); opacity: .2; transform: scale(1.2); } to { filter: none; opacity: 1; transform: scale(1); } }
.vla-input-visual { display: flex; align-items: center; gap: 8px; min-width: 0; }
.camera-input { display: flex; gap: 2px; width: min(40%,84px); flex: none; }
.camera-input img { width: calc((100% - 4px) / 3); height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #a1a1aa; }
.flow-return { margin-top: 10px; padding: 6px 8px; border: 1px dashed #d4d4d8; color: var(--muted); font-size: .8rem; text-align: center; }
.flow-return.is-active { border-color: var(--ink); color: var(--ink); }

.insight-section { background: #fafafa; border-block: 1px solid var(--rule); }
.insight {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
  gap: clamp(18px, 5vw, 78px);
  align-items: center;
  padding-block: 23px;
  border-top: 1px solid #e4e4e7;
}
.insight:last-child { padding-bottom: 0; }
.insight-copy h3 { font-size: clamp(1.24rem, 2.6vw, 1.95rem); margin-bottom: 10px; letter-spacing: -.035em; }
.insight-copy p { color: var(--muted); max-width: 45ch; }
.demo { min-width: 0; min-height: 170px; display: flex; flex-direction: column; justify-content: center; padding: 16px 18px; border: 1px solid #dedee2; border-radius: 4px; background: #ffffff; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-title { font-size: .9rem; font-weight: 720; }
.demo-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: .79rem; }
.demo-legend span { display: inline-flex; gap: 6px; align-items: center; }
.demo-legend output { margin-left: auto; font: .78rem var(--mono); color: var(--ink); }
.legend-key { width: 9px; height: 9px; border-radius: 2px; }
.legend-motion { background: #18181b; }
.legend-pause { background: #9c9ca4; }
.toggle-button, .segmented button {
  background: transparent;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 620;
  border: 1px solid var(--rule);
  border-radius: 3px;
  min-height: 32px;
  padding: 4px 8px;
}
.toggle-button[aria-pressed="true"], .segmented button[aria-pressed="true"] { background: #eeeeef; color: #18181b; border-color: #c7c7cd; }
.toggle-button:hover, .segmented button:hover { border-color: #898992; }
.filmstrip { display: flex; gap: 4px; margin-block: 16px 12px; min-height: 53px; overflow: hidden; align-items: stretch; }
.film-frame { flex: 1 1 0; min-width: 0; border: 1px solid #c5c5cd; border-radius: 2px; overflow: hidden; background: #f0f0f2; transition: flex .45s, opacity .35s, border-width .45s, margin .45s; }
.film-frame img { width: 100%; height: 100%; max-height: 57px; object-fit: cover; }
.film-frame.is-pause { border-color: #d5d5da; background: #f0f0f2; }
.film-frame.is-pause img { filter: grayscale(1); opacity: .53; }
.clean-demo.is-clean .film-frame.is-pause { flex-grow: 0; opacity: 0; border-width: 0; margin-right: -4px; }
.smooth-demo { gap: 7px; }
.range-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .80rem; }
.range-label input { width: clamp(62px, 13vw, 116px); accent-color: #18181b; }
#smooth-chart { display: block; width: 100%; height: 108px; }
.segmented { display: flex; gap: 3px; flex-wrap: wrap; }
.timing { margin-block: 11px 4px; }
.timing-row { display: grid; grid-template-columns: 84px 1fr; gap: 8px; align-items: center; margin: 6px 0; color: var(--muted); font-size: .81rem; }
.timing-track { position: relative; height: 12px; border-radius: 2px; background: repeating-linear-gradient(90deg, #eeeef0 0 1px, transparent 1px 20%); border-bottom: 1px solid #e4e4e7; }
.timing-block { position: absolute; bottom: 0; height: 11px; border-radius: 2px 2px 0 0; transition: left .56s cubic-bezier(.22,.85,.36,1), opacity .32s; }
.executing { width: 43%; left: 0; background: #3f3f46; }
.forecast { width: 17%; left: 6%; background: repeating-linear-gradient(135deg, #a1a1aa 0 4px, #777780 4px 5px); }
.predicting { width: 20%; left: 23%; background: #71717a; }
.feedback { width: 9%; left: 42%; background: #a1a1aa; }
.next { left: 43%; width: 22%; background: #3f3f46; }
.timing.is-serial .forecast { opacity: 0; }
.timing.is-serial .timing-forecast-label { opacity: .6; }
.timing.is-serial .predicting { left: 51%; }
.timing.is-serial .next { left: 71%; }
.timing-axis { display: flex; justify-content: space-between; margin-left: 92px; color: var(--muted); font: .75rem var(--mono); }
.demo-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.gallery { display: grid; grid-template-columns: clamp(270px, 29vw, 305px) minmax(0, 1fr); gap: clamp(15px, 3vw, 32px); }
.skill-side { min-width: 0; border-top: 1px solid var(--rule); padding-top: 10px; }
.gallery-label { display: flex; justify-content: space-between; color: var(--muted); font-size: .83rem; gap: 4px; padding: 0 8px 8px; }
.skill-list { display: grid; gap: 3px; }
.skill-choice { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 5px; text-align: left; border: 1px solid transparent; border-bottom-color: var(--rule); background: transparent; color: var(--ink); border-radius: 3px; min-height: 44px; padding: 8px; font-size: .91rem; }
.skill-choice:hover, .skill-choice[aria-pressed="true"] { border-color: #d2d2d8; background: #f2f2f3; }
.skill-choice span { color: var(--muted); font: .83rem var(--mono); }
.review { min-width: 0; }
.review-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.review-heading .eyebrow { color: var(--ink); }
.review-heading h3 { font-size: clamp(1.35rem, 2.85vw, 2.05rem); margin: 3px 0 5px; letter-spacing: -.04em; }
.clip-description { color: var(--muted); font-size: .92rem; }
.review-filter { flex-shrink: 0; justify-content: flex-end; }
.attempt-list { display: flex; flex-wrap: wrap; gap: 4px; min-height: 10px; margin-block: 13px; }
.attempt-choice { font: .86rem var(--mono); min-width: 30px; min-height: 33px; background: #ffffff; color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; }
.attempt-choice.is-failure { color: #27272a; border-bottom: 2px dashed #71717a; }
.attempt-choice:hover { border-color: var(--ink); }
.attempt-choice[aria-pressed="true"] { color: #fafafa; background: var(--night); border-color: var(--night); }
.player { background: #fafafa; color: var(--ink); padding: 10px; border: 1px solid var(--rule); border-radius: 2px; }
.player-top, .transport { display: flex; gap: 8px; align-items: center; }
.player-top { justify-content: space-between; margin-bottom: 9px; }
.player-id { display: flex; align-items: center; gap: 7px; }
.player-id strong { font-size: .85rem; white-space: nowrap; }
.outcome { color: #34343b; font-size: .76rem; line-height: 1; border: 1px solid #cdced3; padding: 5px 6px; border-radius: 3px; white-space: nowrap; }
.outcome.is-failure { color: #18181b; border: 1px dashed #777780; }
.view-filter { justify-content: flex-end; }
.view-filter button { color: #45454f; border-color: #d4d4d8; }
.view-filter button[aria-pressed="true"] { border-color: #b8b8bf; color: #18181b; background: #eeeeef; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3px; background: #e4e4e7; }
.video-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.camera-figure { min-width: 0; display: flex; flex-direction: column; background: #fafafa; }
.camera-figure video { display: block; background: #09090b; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.video-grid.is-single video { max-height: 490px; }
.camera-figure figcaption { display: flex; justify-content: space-between; align-items: center; gap: 4px; color: #51515c; padding: 7px 6px; font-size: .78rem; line-height: 1.2; }
.camera-figure a { color: #34343b; text-underline-offset: 2px; font: .74rem var(--mono); }
.transport { margin-top: 10px; }
.play-button { background: var(--night); color: var(--paper); border: 0; padding: 6px 9px; border-radius: 3px; min-height: 34px; font-size: .82rem; font-weight: 750; white-space: nowrap; }
.play-button:hover { background: #35353d; }
#playhead { width: 100%; min-width: 0; margin: 0 2px; accent-color: var(--ink); }
#timecode { font: .77rem var(--mono); color: #62626a; white-space: nowrap; }
.play-error { color: #313137; font-size: .84rem; margin-top: 6px; }
.attempt-note, .empty-state { padding: 11px 13px; margin-top: 10px; border-left: 2px solid #62626a; background: #f2f2f4; color: #313137; font-size: .89rem; }
.empty-state { background: #f4f4f5; color: var(--muted); border-color: #a1a1aa; }
.attempt-nav { display: flex; justify-content: space-between; margin-top: 12px; }
.attempt-nav button { min-height: 38px; padding: 7px 10px; }

@media (max-width: 1000px) {
  .strategy-grid { gap: 10px; }
}
@media (max-width: 760px) {
  .hero-layout, .section-heading, .strategy-grid, .insight, .gallery { grid-template-columns: 1fr; }
  .hero-layout { gap: 25px; padding-top: 45px; }
  .hero h1 { font-size: clamp(3.35rem, 12vw, 5.6rem); }
  .hero-figure { max-width: 540px; }
  .hero-lead { margin: 19px 0; }
  .metrics div { padding: 13px 8px 16px; }
  .metrics dt { font-size: .76rem; line-height: 1.4; min-height: 2.1em; }
  .section-heading { gap: 10px; margin-bottom: 23px; }
  .insight { gap: 14px; }
  .insight-copy p { max-width: none; }
  .skill-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
  .review-heading { margin-top: 6px; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: clamp(3rem, 11.3vw, 4.4rem); }
  .demo { padding: 13px 10px; }
  .metrics div { padding-inline: 6px; }
  .review-heading { flex-wrap: wrap; }
  .player { padding: 7px; }
  .player-top { flex-wrap: wrap; }
  .view-filter button { padding-inline: 6px; }
  .camera-figure figcaption { flex-wrap: wrap; }
}

html[lang="en"] .hero h1 {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5.7vw, 5.15rem);
  font-weight: 550;
  letter-spacing: -.09em;
  line-height: 1.03;
  text-transform: uppercase;
}
html[lang="en"] .hero h1 span { white-space: nowrap; }
html[lang="en"] .timing { --timing-label: 132px; }
.timing { --timing-label: 84px; }
.timing-row { grid-template-columns: var(--timing-label) 1fr; }
.timing-axis { margin-left: calc(var(--timing-label) + 8px); }
.gallery-label > span:first-child { margin-right: auto; }
.skill-choice strong { font-weight: 630; white-space: nowrap; }
.gallery-label > span { text-align: right; }

@media (max-width: 760px) {
  html[lang="en"] .hero h1 { font-size: clamp(2rem, 9.3vw, 4rem); }
  .metrics dt { min-height: 2.7em; }
}
@media (max-width: 430px) {
  html[lang="en"] .timing { --timing-label: 101px; }
  .review-filter button { padding-inline: 6px; }
  .demo-title { line-height: 1.35; }
  .review-heading { margin-top: 0; }
  .skill-choice { font-size: .84rem; }
}

html[lang="en"] .section-heading h2 {
  font-family: var(--mono);
  font-weight: 570;
  font-size: clamp(2.1rem, 4.25vw, 3.55rem);
  letter-spacing: -.076em;
}
html[lang="en"] .demo-title,
html[lang="en"] .skill-choice,
html[lang="en"] .player-top { font-family: var(--mono); }


.slice-balance { display: grid; grid-template-columns: repeat(3, auto 1fr); gap: 4px 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.slice-balance strong { font: 700 .88rem var(--mono); color: var(--ink); }
.skill-choice { grid-template-columns: 2ch minmax(0,1fr) auto; gap: 6px; }
.skill-choice .skill-number { color: var(--muted); }
@media (max-width: 420px) {
  .strategy-heading { min-height: 0; }
  .model-node { gap: 5px; padding: 6px; }
  .model-node strong { font-size: .82rem; }
  .model-node small { font-size: .7rem; }
  .model-outputs-pair { gap: 5px; }
  .slice-balance { gap: 4px 6px; }
}

.section-heading-compact { grid-template-columns: 1fr; }
.model-section-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.model-section-heading .text-button { justify-self: end; }

.model-mainline {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, .85fr);
  gap: 8px;
  min-height: 72px;
}
.model-outputs { margin-top: 8px; }
.model-result {
  display: grid;
  grid-template-rows: minmax(39px, auto) 1fr;
  align-items: start;
  gap: 6px;
  min-height: 156px;
}
.model-result .output-visual, .action-scene {
  align-self: end;
  height: clamp(96px, 12vw, 125px);
  width: 100%;
}
.model-result .forecast-frame { border: 0; }
.forecast-frame img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.action-scene {
  display: block;
  object-fit: contain;
  background: #fafafa;
}
.model-outputs.is-active .action-scene { background: #f6f6f7; }

.slice-window {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(5.5rem, .84fr) minmax(0, 2.32fr) minmax(5.5rem, .84fr);
  gap: 5px;
  margin-block: 13px 10px;
  transition: grid-template-columns .35s;
}
.slice-group { min-width: 0; border: 1px solid #d4d4d8; background: #fafafa; }
.slice-group figcaption {
  padding: 4px 2px 5px;
  text-align: center;
  white-space: nowrap;
  font: 570 .73rem/1.25 var(--mono);
}
.slice-frames { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 1px; background: #fff; }
.slice-frames img { width: 100%; height: clamp(35px, 6vw, 59px); object-fit: cover; }
.slice-core { border-color: #52525b; }
.slice-core figcaption { background: #29292d; color: #fff; }
.slice-context img { opacity: .48; filter: grayscale(1); transition: filter .3s, opacity .3s; }
.slicing-demo.is-expanded .slice-window { grid-template-columns: minmax(5.5rem, 1fr) minmax(0, 2fr) minmax(5.5rem, 1fr); }
.slicing-demo.is-expanded .slice-context img { opacity: 1; filter: none; }
.slicing-demo.is-expanded .slice-context { border-color: #71717a; }

#kinematic-scene {
  width: 100%;
  height: clamp(130px, 15vw, 175px);
  margin-top: 9px;
  display: block;
  object-fit: contain;
  background: #fafafa;
  border: 1px solid var(--rule);
}
.kinematic-scrubber { display: flex; gap: 12px; align-items: center; margin-top: 8px; color: var(--muted); font: .77rem var(--mono); }
.kinematic-scrubber input { flex: 1; min-width: 0; accent-color: var(--night); }

@media (max-width: 500px) {
  .model-section-heading { gap: 5px; }
  .model-section-heading .text-button { font-size: .76rem; }
  .model-result .output-visual, .action-scene { height: 94px; }
  .model-result { min-height: 150px; }
  .slice-group figcaption { font-size: .68rem; }
}

.kinematic-values {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.kinematic-value { min-width: 0; padding: 6px 8px; border: 1px solid var(--rule); background: #fafafa; }
.kinematic-value.is-source { border-color: #71717a; background: #f0f0f2; }
.kinematic-value strong, .kinematic-value span { display: block; }
.kinematic-value strong { font-size: .79rem; }
.kinematic-value span, .kinematic-conversion { color: var(--muted); font: .75rem/1.4 var(--mono); }
.kinematic-value span { min-height: 1.4em; word-break: normal; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .metric-duration dd { font-size: clamp(1.06rem,4vw,1.43rem); }
  .metric-duration dd span { display: block; padding: 0; margin-top: 2px; }
  .kinematic-values { gap: 5px; }
  .kinematic-value { padding-inline: 5px; }
}


.action-visual {
  align-self: end;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  height: clamp(96px,12vw,125px);
  min-width: 0;
  background: #fafafa;
}
.action-visual .action-scene { height: 100%; min-height: 0; align-self: stretch; }
.action-legend { display: flex; justify-content: center; gap: 9px; white-space: nowrap; font: .67rem/1.3 var(--mono); }
.action-legend span { display: inline-flex; align-items: center; gap: 3px; }
.action-legend span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #25252b; }
.action-legend span + span::before { background: #6a6a75; }
@media (max-width: 500px) {
  .action-visual { height: 94px; }
  .action-legend { gap: 5px; font-size: .59rem; }
}
