/* Public landing demonstrations and media, in the established TakeLab theme. */
.model-logo-strip { margin: 0 20px; padding: 16px 0 38px; }
.logo-marquee { animation-duration: 38s; animation-play-state: paused; }
.model-logo-strip.is-live:not(:hover):not(:focus-within) .logo-marquee { animation-play-state: running; }
.logo-set { min-width: 100vw; justify-content: space-around; padding-inline: 5px; }
@media (min-width: 1024px) { .model-logo-strip { margin-inline: 0; } }
.demo-storyboard { display: flex; justify-content: center; margin-top: 12px; }
.demo-storyboard img { width: 100%; height: 250px; object-fit: contain; border-radius: 12px; }
.demo-side { gap: 22px; }
.how-steps { align-items: stretch; }
.how-steps .proof-card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); }
.how-steps figcaption { flex: 1; padding: 20px; }
.step-ui { height: 280px; margin: 12px 12px 0; padding: 14px; overflow: hidden; border-radius: 12px; background: #090e0b; color: var(--foreground); font-size: 12px; line-height: 1.45; }
.mini-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; font-size: 11px; font-weight: 700; }
.mini-topbar > span { color: var(--muted-foreground); font-size: 10px; font-weight: 500; }
.mini-attachment { display: flex; align-items: center; gap: 10px; }
.how-steps .mini-attachment img { width: 38px; height: 48px; object-fit: cover; border-radius: 6px; }
.mini-attachment small { color: var(--muted-foreground); }
.mini-message { margin-top: 12px; padding: 10px; border-radius: 10px 10px 2px 10px; background: var(--secondary); }
.mini-submit { display: block; width: fit-content; margin: 9px 0 0 auto; color: var(--primary); font-weight: 700; }
.mini-scene { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 11px 9px; background: var(--secondary); border-radius: 8px; }
.mini-scene > span { color: var(--primary); font-family: var(--font-mono); font-size: 10px; }
.step-prompt p { font-size: 12px; line-height: 1.8; }
.step-prompt mark { background: var(--primary-tint); color: var(--primary); padding: 2px; }
.mini-edit { margin-top: 18px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted-foreground); }
.mini-translation { margin-top: 12px; color: var(--primary); font-size: 10px; }
.mini-result-image { position: relative; display: flex; justify-content: center; height: 156px; overflow: hidden; border-radius: 8px; background: var(--secondary); }
.how-steps .mini-result-image video { position: relative; height: 100%; width: 100%; object-fit: contain; background: #080c09; }
.how-steps .mini-result-status { position: absolute; bottom: 8px; right: 8px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--background); color: var(--foreground); font-size: 11px; font-weight: 600; }
.proof-card.is-anim .mini-result-image:not(.is-ready) video { display: none; }
.mini-generation-grid { position: absolute; inset: 0; background: radial-gradient(circle, #ffffff24 .9px, transparent 1.45px) 0 0 / 12px 12px; }
.mini-generation-steps { display: flex; justify-content: space-between; gap: 4px; margin-top: 10px; color: var(--muted-foreground); font-size: 9px; }
.mini-generation-steps span::before { content: ''; display: inline-block; width: 4px; height: 4px; margin-right: 4px; border-radius: 50%; background: currentColor; }
[data-generation-stage="0"] .mini-generation-steps span:first-child,
[data-generation-stage="1"] .mini-generation-steps span:nth-child(2),
[data-generation-stage="2"] .mini-generation-steps span:nth-child(3),
[data-generation-stage="3"] .mini-generation-steps span { color: var(--primary); }
.mini-generation-meta { display: flex; justify-content: space-between; margin-top: 7px; font-size: 10px; color: var(--muted-foreground); }
.how-steps .mini-generation-steps > span, .how-steps .mini-generation-meta > span { font-size: inherit; line-height: inherit; }
.how-steps .mini-submit { color: var(--primary); font-size: 12px; }
.mini-progress { height: 3px; margin-top: 12px; overflow: hidden; background: var(--secondary); border-radius: 4px; }
.mini-progress i { display: block; width: 100%; height: 100%; background: var(--primary); transform-origin: left; }
.proof-card.is-anim .mini-attachment,
.proof-card.is-anim .mini-scene,
.proof-card.is-anim .mini-edit { animation: miniReveal 7s var(--ease-out) infinite both paused; }
.proof-card.is-anim .mini-message, .proof-card.is-anim .mini-scene:nth-child(3) { animation-delay: .5s; }
.proof-card.is-anim .mini-scene:nth-child(4), .proof-card.is-anim .mini-edit { animation-delay: 1s; }
.proof-card.is-anim.is-live .step-ui * { animation-play-state: running; }
@keyframes miniReveal { 0%, 8% { opacity: 0; transform: translateY(4px); } 20%, 92%, 100% { opacity: 1; transform: translateY(0); } }
.workspace-illustration { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-2xl); }
.workspace-illustration > img { display: block; width: 100%; height: auto; }
.workspace-labels { position: absolute; inset: 0; pointer-events: none; }
.workspace-labels span { position: absolute; padding: 6px 12px; background: #0b140ee6; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 600; }
.workspace-labels span:nth-child(1) { left: 12%; top: 11%; }
.workspace-labels span:nth-child(2) { left: 28%; top: 21%; }
.workspace-labels span:nth-child(3) { left: 50%; top: 13%; }
.workspace-labels span:nth-child(4) { right: 12%; top: 7%; }
.workspace-labels span:nth-child(5) { left: 15%; top: 48%; }
.workspace-copy { max-width: 760px; margin: 28px auto 0; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.6; }
.workspace-copy p:first-child { color: var(--muted-foreground); margin-bottom: 18px; }
.mode-grid > .mode-card:nth-child(-n+3) { grid-template-rows: 380px auto 1fr; }
.mode-grid > #images { grid-template-rows: auto auto 1fr; }
.mode-preview.designer-preview { display: grid; place-items: center; align-content: center; width: 100%; min-width: 0; height: auto; min-height: 0; aspect-ratio: 16 / 9; padding: 0; border: 0; }
.designer-preview video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; pointer-events: none; }
.mode-preview .mini-topbar { margin-bottom: 2px; }
.preview-chat .preview-bubble { max-width: 100%; font-size: 12px; font-weight: 400; line-height: 1.5; }
.preview-chat .preview-bubble:not(.is-agent) { justify-self: end; }
.preview-chat .preview-bubble.is-agent { justify-self: start; background: var(--secondary); box-shadow: var(--inset); }
.preview-chat .preview-bubble p { font-size: inherit; line-height: inherit; color: var(--foreground); }
.producer-directions { display: grid; gap: 9px; margin: 12px 0; padding: 0; list-style: none; }
.producer-directions strong, .producer-directions span { display: block; }
.producer-directions strong { font-weight: 600; }
.producer-directions span { color: var(--muted-foreground); }
.analysis-source { padding: 7px 9px; border-radius: 7px; background: var(--secondary); font-size: 11px; }
.analysis-report { display: grid; gap: 12px; margin: 3px 0 0; font-size: 12px; line-height: 1.5; }
.analysis-report dt { margin-bottom: 3px; font-weight: 600; color: var(--primary); }
.analysis-report dd { margin: 0; color: var(--foreground); }
/* Finished example answers remain readable even when the pointer pauses other demos. */
.mode-card.is-anim .preview-chat .preview-bubble { animation: none; }
.mode-preview.studio-chat-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 380px;
  min-height: 0;
  gap: 0;
  padding: 0;
  background: var(--background);
}
.studio-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
  font-weight: 650;
}
.studio-chat-header span { color: var(--muted-foreground); font-size: 10px; font-weight: 400; }
.studio-chat-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-line) transparent;
  scroll-behavior: auto;
  scroll-padding: 14px;
}
.studio-chat-scroll:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.studio-chat-scroll::-webkit-scrollbar { width: 4px; }
.studio-chat-scroll::-webkit-scrollbar-thumb { background: var(--primary-line); border-radius: 4px; }
.studio-chat-message { margin-bottom: 18px; min-width: 0; }
.studio-chat-message:last-child { margin-bottom: 0; }
.studio-chat-message.is-user {
  width: fit-content;
  max-width: 92%;
  margin-left: auto;
  padding: 10px 12px;
  border-radius: 13px 13px 4px 13px;
  background: var(--secondary);
}
.studio-chat-message.is-assistant { padding: 2px 0; }
.studio-chat-message .chat-author { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 650; color: var(--primary); }
.mode-card .studio-chat-message p,
.studio-chat-message li,
.studio-chat-message dd { font-size: 12px; line-height: 1.55; color: var(--foreground); overflow-wrap: anywhere; }
.mode-card .studio-chat-message p + p { margin-top: 10px; }
.studio-chat-message h4 { margin: 18px 0 7px; font-size: 13px; line-height: 1.35; }
.studio-chat-message ul { margin: 8px 0; padding-left: 17px; }
.studio-chat-attachment { margin: 0 0 10px; overflow: hidden; border-radius: 8px; background: var(--background); }
.studio-chat-attachment video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; pointer-events: none; }
.studio-chat-attachment img { display: block; max-height: 145px; width: 100%; object-fit: contain; }
.studio-chat-attachment figcaption { display: flex; gap: 8px; justify-content: space-between; padding: 7px 9px; font-size: 10px; color: var(--muted-foreground); }
.studio-chat-artifact { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.studio-chat-artifact > header { display: flex; justify-content: space-between; gap: 8px; color: var(--muted-foreground); font-size: 11px; font-weight: 650; }
.studio-chat-artifact ol { display: grid; gap: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.studio-chat-artifact ol > li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 9px; }
.studio-chat-artifact .scene-number { display: grid; place-items: center; height: 22px; border-radius: 50%; background: var(--secondary); font-size: 10px; color: var(--muted-foreground); }
.studio-chat-artifact strong { display: block; margin-bottom: 4px; font-size: 12px; }
.mode-card .studio-chat-artifact p { color: var(--muted-foreground); font-size: 11px; }
.mode-card .studio-chat-artifact .chat-recommendation { color: var(--primary); }
.studio-chat-artifact dl { margin: 8px 0 0; }
.studio-chat-artifact dl > div + div { margin-top: 8px; }
.studio-chat-artifact dt { margin-bottom: 3px; font-size: 10px; color: var(--muted-foreground); }
.studio-chat-artifact dd { margin: 0; font-size: 11px; }
.studio-chat-generation { padding: 12px; background: var(--card); border-radius: 12px; }
.studio-chat-generation .chat-settings { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chat-settings span { padding: 3px 7px; border-radius: 5px; background: var(--secondary); font-size: 10px; }
@media (max-width: 1040px) {
  .mode-grid > .mode-card:nth-child(-n+3) { grid-template-rows: auto auto auto; }
  .mode-preview.studio-chat-preview { height: 430px; }
}
@media (max-width: 520px) {
  .studio-chat-scroll { padding: 12px; }
  .studio-chat-message.is-user { max-width: 94%; }
}
.mode-preview.storyboard-preview { display: grid; place-items: center; align-content: center; width: 100%; min-width: 0; height: auto; min-height: 0; aspect-ratio: 16 / 9; padding: 0; border: 0; }
.storyboard-preview video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; pointer-events: none; }
.mode-card.is-anim .storyboard-preview [class*="preview-"] { animation: none; }

/* The motion experiment uses one media shape and equal card heights. The
   original preview stays available through ?featurePreview=original. */
#modes .mode-grid.is-motion-preview { grid-auto-rows: 1fr; }
#modes .mode-grid.is-motion-preview > .mode-card { grid-template-rows: auto auto 1fr; min-width: 0; }
#modes .feature-film-preview {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #070a08;
}
#modes .feature-film-preview video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  pointer-events: none;
}
.mode-coming-soon {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  color: var(--muted-foreground);
  font-size: 13px;
}
#modes .mode-preview.previs-preview {
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
}
.previs-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mode-preview.file-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 10px; }
.file-tile { position: relative; overflow: hidden; border-radius: 6px; min-width: 0; }
.file-photo, .file-video { height: 70px; }
.file-tile > img, .file-tile > video { display: block; height: 100%; width: 100%; object-fit: cover; }
.file-tile > video { pointer-events: none; }
.file-tile > span { position: absolute; left: 4px; bottom: 4px; border-radius: 4px; padding: 2px 5px; background: #071006dd; font-size: 10px; color: var(--foreground); }
.file-audio { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; height: 54px; padding: 6px 8px; background: var(--secondary); cursor: default; }
.audio-play-icon { flex: 0 0 20px; width: 20px; height: 20px; fill: var(--foreground); }
.audio-file-body { flex: 1; min-width: 0; }
.audio-wave { display: block; width: 100%; height: 25px; color: var(--primary); }
.audio-wave path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.audio-file-label { margin-top: 2px; color: var(--muted-foreground); font-size: 10px; line-height: 1.2; }
.file-attached { grid-column: 1 / -1; font-size: 10px; color: var(--primary); }
.mode-card.is-anim .file-tile { animation: miniReveal 7s var(--ease-out) infinite paused; }
.mode-card.is-anim .file-video { animation-delay: .4s; }
.mode-card.is-anim .file-audio { animation-delay: .8s; }
.mode-card.is-anim .file-attached { animation: miniReveal 7s var(--ease-out) 1.4s infinite paused; }
.mode-card.is-anim.is-live .file-tile, .mode-card.is-anim.is-live .file-attached { animation-play-state: running; }
.case-group + .case-group { margin-top: 46px; }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.gallery-heading h3 { margin: 0; }
.rail-pause { padding: 9px 13px; border: 1px solid var(--border); border-radius: 8px; color: var(--foreground); background: var(--secondary); white-space: nowrap; font-size: 13px; cursor: pointer; }
.rail-pause[aria-pressed="true"] { color: var(--primary); border-color: var(--primary); }
.case-group { --media-height: clamp(220px, 25vw, 310px); }
.rail { touch-action: pan-y; }
.rail-track { display: flex; gap: 18px; }
.rail-set { display: flex; gap: 18px; flex-shrink: 0; }
.rail .media-card { flex: 0 0 auto; width: auto; min-width: 0; overflow: visible; transition: none; }
.rail .media-card:hover, .rail .media-card:focus-within { transform: none; }
.rail .media-frame { display: block; padding: 0; border: 0; height: var(--media-height); width: auto; aspect-ratio: var(--media-ratio); cursor: pointer; }
.rail .media-frame video { display: block; height: 100%; width: 100%; object-fit: contain; pointer-events: none; }
.rail .media-card:hover .media-frame video { transform: none; }
.rail .media-frame::after { display: none; }
.rail .media-caption { position: static; width: 0; min-width: 100%; max-height: none; overflow: visible; padding: 13px 0 3px; text-shadow: none; }
.media-caption h4 { margin: 0; color: var(--foreground); font-size: 16px; line-height: 1.3; font-weight: 650; }
.rail .media-caption p { display: block; margin-top: 7px; font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
.dir-stage .media-caption small { font-size: 11px; }
.dir-stage .media-caption strong { font-size: 14px; line-height: 1.3; }
.case-group .carousel-actions { bottom: auto; top: calc(var(--media-height, clamp(220px, 25vw, 310px)) / 2 - 22px); }
.media-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 18px; overflow: auto; border: 1px solid var(--border); border-radius: 16px; color: var(--foreground); background: var(--background); }
.media-dialog::backdrop { background: #000d; }
.media-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.media-dialog h2 { font-size: 20px; margin: 0; }
.media-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 0; background: transparent; color: var(--muted-foreground); cursor: pointer; }
.media-close svg { width: 24px; height: 24px; }
.media-close:hover { color: var(--foreground); }
.media-dialog video, .media-dialog img { display: block; width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; background: #000; }
.media-dialog [hidden] { display: none; }
.media-dialog [data-player-error] { padding: 16px; font-size: 14px; }
.faq-layout { grid-template-columns: minmax(240px, .65fr) minmax(0, 1fr); align-items: start; gap: clamp(30px, 6vw, 90px); }
.faq-film { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.faq-phone { width: min(100%, 300px); padding: 7px; border: 1px solid #465044; border-radius: 34px; background: #111611; box-shadow: 0 16px 40px #0005; }
.faq-phone video { display: block; width: 100%; height: auto; aspect-ratio: 9/16; object-fit: contain; border-radius: 27px; }
.faq-film figcaption { font-size: 16px; font-weight: 650; }
button:focus-visible, .model-logo-strip:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
@media (max-width: 1100px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .hero-inner { padding-bottom: 20px; }
  .model-logo-strip { padding-bottom: 24px; }
  .workspace-illustration > img { aspect-ratio: 4/5; object-fit: cover; object-position: 50% 50%; }
  .workspace-labels { display: none; }
  .workspace-copy { font-size: 17px; }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .step-ui { height: 280px; }
  .demo-storyboard img { height: 230px; }
  .gallery-heading { align-items: start; gap: 12px; }
  .gallery-heading h3 { font-size: 20px; }
  .rail-pause { font-size: 11px; padding: 8px; }
  .case-group { --media-height: min(220px, calc((100vw - 32px) * .5625)); }
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .media-dialog { padding: 12px; }
  .media-dialog h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .rail { overflow-x: auto; touch-action: auto; }
  .rail-track { transform: none !important; }
  .rail-set[aria-hidden="true"] { display: none; }
  .rail-pause { display: none; }
  .proof-card .step-ui *, .mode-card .mode-preview * { animation: none !important; }
  .proof-card.is-anim .mini-result-image:not(.is-ready) video { display: block; }
}
.media-viewer-open { overflow: hidden; }

/* Local review refinement: tighter rhythm, fewer controls, one quiet light sweep. */
.section { padding-block: 60px; }
.section-head { max-width: none; margin-bottom: 26px; }
.section-head.center { max-width: 880px; }
.final { padding-block: 60px; }
.case-group + .case-group { margin-top: 30px; }
.gallery-heading { margin-bottom: 14px; }
.rail-pause { display: grid; place-items: center; width: 38px; height: 38px; padding: 8px; border-radius: 50%; }
.rail-pause svg { width: 18px; height: 18px; fill: currentColor; }
.rail-pause .play-symbol, .rail-pause[aria-pressed="true"] .pause-symbol { display: none; }
.rail-pause[aria-pressed="true"] .play-symbol { display: block; }
.faq-phone { display: block; position: relative; cursor: pointer; color: var(--foreground); }
.faq-phone video { pointer-events: none; }
.faq-phone:focus-visible { outline: 2px solid var(--primary); outline-offset: 5px; }
.price-card { gap: 18px; display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; }
.price-value > small { font-family: var(--font-sans); font-size: 18px; font-weight: 500; color: var(--muted-foreground); }
.start-options { display: grid; gap: 12px; }
.start-options > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.start-options strong { font-size: 16px; }
.start-options > div > span { font-size: 18px; font-weight: 600; }
.start-options small { grid-column: 1 / -1; color: var(--muted-foreground); font-size: 13px; }
.btn-primary { position: relative; isolation: isolate; overflow: hidden; }
.btn-primary::after { content: ""; pointer-events: none; position: absolute; inset: -35% auto -35% -65%; width: 45%; background: linear-gradient(90deg, transparent, #fff7, transparent); transform: translateX(-100%) skewX(-20deg); }
.btn-primary.is-shine-visible::after { animation: buttonShine 7s ease-in-out infinite; }
@keyframes buttonShine { 0% { transform: translateX(0) skewX(-20deg); } 16%, 100% { transform: translateX(510%) skewX(-20deg); } }
@media (min-width: 1200px) { #why .section-head h2 { white-space: nowrap; } }
@media (max-width: 680px) { .section, .final { padding-block: 40px; } .section-head { margin-bottom: 22px; } .case-group + .case-group { margin-top: 26px; } }
@media (prefers-reduced-motion: reduce) { .rail-pause { display: none; } .btn-primary.is-shine-visible::after { animation: none; display: none; } }
