/* C8: intrinsic sizing and bounded layout; never hide document overflow. */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { width: 100%; font-family: Arial, Helvetica, sans-serif; }
h1, h2, h3, .brand, .price { font-family: Arial, Helvetica, sans-serif; }
img, video { max-width: 100%; }
img { object-fit: contain; }
.wrap { width: 100%; padding-inline: clamp(1rem, 3vw, 2.5rem); }
main, header, footer, section, article, form, .card, .field,
.hero > *, .section-head > *, .cta > *, .footer-top > *,
.footer-links > *, .nav > *, .form-grid > * { min-width: 0; }
h1, h2, h3, p, label, summary, .note, .eyebrow, .status,
.caption, .footer-links, .about-statement { overflow-wrap: anywhere; }
.hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.steps, .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.studio-grid, .about-grid, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; max-width: 100%; }
.field select { text-overflow: ellipsis; }
/* Label spacing must not add gaps when autofill extensions insert empty nodes. */
.field { gap: 0; }
.field > label { margin-bottom: 8px; }
.field > small { margin-top: 8px; }
.button { max-width: 100%; gap: clamp(.5rem, 2vw, 1.875rem); text-align: center; }
.button span, .dot, .brand img, .status::before { flex-shrink: 0; }
.brand { white-space: nowrap; flex-shrink: 0; }
.nav { position: relative; gap: clamp(.75rem, 2vw, 1.875rem); min-height: 96px; height: auto; padding-block: 18px; }
.nav-links, .nav-actions { gap: clamp(.875rem, 2vw, 2rem); }
.nav-links a, .nav-actions a { white-space: nowrap; }
.nav .brand small { display: none; }
.hero-actions, .strip, .footer-bottom { flex-wrap: wrap; }
.hero-side { width: 100%; }
.footer-top { flex-wrap: wrap; }
.footer-links { flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 4rem); }
.footer-links > div { flex: 1 1 110px; }
.footer-bottom { gap: .5rem 2rem; }
.eyebrow { max-width: 100%; }
.price { font-size: clamp(2.3rem, 4vw, 3rem); }
.price small { white-space: nowrap; }
.billing { max-width: 100%; }
.billing button { min-width: 0; padding-inline: clamp(.5rem, 2vw, 1.25rem); }
.subprice { min-height: 2.8em !important; }
.price-card > p:not(.subprice) { min-height: 3.3em; }
.cta .button { flex-shrink: 0; white-space: normal; }
.cta h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.showcase { display: grid; width: 100%; max-width: 100%; min-width: 0; grid-template-rows: auto minmax(90px, 1fr) auto; gap: 16px; min-height: 350px; padding: clamp(16px, 2.4vw, 28px); }
.showcase video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-top, .film-bottom { position: relative; inset: auto; gap: 16px; min-width: 0; }
.film-top > *, .film-bottom > * { min-width: 0; }
.film-top { align-items: start; }
.film-top .pill { flex-shrink: 0; letter-spacing: 0; }
.film-bottom { grid-row: 3; }
.film-bottom h3 { font-size: clamp(1.125rem, 2.3vw, 1.6875rem); }
.film-bottom > .wave { flex-shrink: 0; }
.play { position: relative; inset: auto; transform: none; justify-self: center; align-self: center; grid-row: 2; }
.playing { aspect-ratio: 2.3; }
.image-preview { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.preview-empty { width: 100%; min-height: 240px; aspect-ratio: 16 / 9; }
.preview-script p, #upload-status { overflow-wrap: anywhere; }
dialog { padding: clamp(24px, 5vw, 40px); max-height: calc(100dvh - 32px); overflow-y: auto; }
dialog h2 { font-size: clamp(1.75rem, 6vw, 2.4rem); }
@media (min-width: 1600px) { .wrap { max-width: 1440px; } }
@media (max-width: 1100px) {
  .nav-actions > a:first-child { display: none; }
  .contact-grid { gap: 32px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .steps, .price-grid, .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .price-grid { gap: 28px; }
  .price-card > p:not(.subprice) { min-height: 0; }
  .step-art { height: 80px; }
  .section-head { flex-wrap: wrap; }
  .cta { flex-wrap: wrap; padding: clamp(24px, 4vw, 44px); }
}
@media (max-width: 767px) {
  .nav { min-height: 76px; gap: 12px; padding-block: 14px; }
  .menu { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; margin-left: auto; flex: 0 0 44px; }
  .nav-actions { margin-left: auto; }
  .nav-actions .button { font-size: 14px; padding: 9px 12px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 0 0 12px 12px; z-index: 5; flex-direction: column; align-items: stretch; gap: 4px; max-height: calc(100dvh - 100px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 8px; min-height: 44px; }
  .hero, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 24px; padding-top: 40px; }
  .hero h1 { font-size: clamp(2.05rem, 8.5vw, 3.5rem); }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
  .hero-side { max-width: 100%; justify-self: start; }
  .showcase, .playing { aspect-ratio: auto; min-height: 350px; }
  .film-bottom > .wave { display: none; }
  .caption { flex-direction: column; gap: 4px; }
  .footer-top { flex-direction: column; }
  .footer-links { width: 100%; }
  .card { padding: clamp(18px, 4vw, 28px); }
  .section { padding-block: 55px; }
  .page-hero { padding-top: 40px; }
}
@media (max-width: 480px) {
  .nav-actions { display: none; }
  .nav .brand { font-size: 20px; }
  .nav .brand img { width: 28px; height: 28px; }
  .film-top { font-size: 10px; letter-spacing: 1px; flex-wrap: wrap; gap: 8px; }
  .pill { padding: 4px 9px; }
  .hero-actions { gap: 16px; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .preview-empty { padding: 20px; }
}
