/* =============================================================================
   Clotho3D.ai — landing page. The studio's warm paper, forest and sage palette.
   The sculpted-C identity and its usage guide live in brand/clotho3d-v3/: the lock-up
   sits on paper only, at the guide's 52 px (header) and 44 px (footer) canvas with a
   quarter-canvas gap. Georgia sets the wordmark and headlines; system sans sets the
   supporting text. No external fonts or scripts. Sections, in page order: top bar,
   hero and pipeline film, studio tour,
   designs, contact, footer, dialogs.
   ============================================================================= */
:root {
  --bg: #f6f5f1; --surface-1: #fcfbf8; --surface-2: #f1f0eb; --surface-3: #e9e8e1;
  --line: #dedfd6; --line-strong: #b8bcaf;
  --txt: #252e2a; --muted: #626b62; --txt-3: #70776e;
  --accent: #345c43; --accent-ink: #27483a; --accent-soft: #e6edde; --leaf: #bed29d;
  --dark: #1f2a24; --dark-2: #263429; --on-dark: #eef0ea; --on-dark-muted: #b8c2b5;
  --studio: #ecebe6;
  --radius: 12px; --radius-sm: 8px; --pill: 999px;
  --shadow: 0 1px 2px rgba(38,50,34,.05), 0 8px 28px rgba(38,50,34,.06);
  --shadow-lift: 0 22px 60px rgba(38,50,34,.14);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22,.7,.2,1);
  --wrap: 1240px; --gutter: 32px; --top-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 5vw, 76px); line-height: 1; letter-spacing: -.045em; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: fixed; top: -120px; left: 16px; z-index: 200; padding: 12px 16px; background: var(--surface-1); border-radius: var(--radius-sm); }
.skip:focus { top: 12px; box-shadow: var(--shadow-lift); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow { color: var(--accent); font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 16px; }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--muted); }
.lede-sm { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 620px; margin-top: 18px; }
.fine { font-size: 12.5px; color: var(--txt-3); margin-top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
section[id], #film, #main { scroll-margin-top: var(--top-h); }
button:disabled { opacity: .55; cursor: wait; }

/* ---------------------------------------------------------------- Clotho3D lock-up (symbol on paper only) */
.brand { display: inline-flex; align-items: center; gap: .448276em; color: var(--txt); text-decoration: none; font: 400 29px var(--serif); letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.brandMark { display: block; width: 1.793103em; height: 1.793103em; object-fit: contain; flex: 0 0 auto; background: transparent; border-radius: 0; }
.brandText { display: flex; flex-direction: column; align-items: center; }   /* the descriptor centred under Clotho3D */
/* One proportional lock-up: the descriptor's em units follow its own font size.
   Header, footer and narrow screens change only the parent wordmark size. */
/* The negative right margin cancels the tracking after the last letter, so the letters themselves are centred. */
.brandCaption { display: block; font: 500 .275862em/1 var(--sans); letter-spacing: .35em; margin-top: .5em; margin-right: -.35em; color: var(--txt); }
.foot .brand { font-size: 25px; }

/* ---------------------------------------------------------------- top bar */
.top { position: sticky; top: 0; z-index: 100; background: rgba(246,245,241,.94); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.top.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 28px rgba(38,50,34,.06); }
.top-row { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 4px; }
.navItem { position: relative; }
.navLink { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--pill); color: var(--txt); text-decoration: none; font-size: 15px; font-weight: 500; }
.navLink:hover, .navLink[aria-expanded="true"], .navLink[aria-current="location"] { background: var(--surface-3); }
.navLink .chev { width: 12px; height: 12px; transition: transform .2s; }
.navLink[aria-expanded="true"] .chev { transform: rotate(180deg); }
.navCta { margin-left: 12px; }
.menu { position: absolute; top: calc(100% + 10px); left: 0; width: 400px; max-width: calc(100vw - 48px); padding: 8px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); display: none; }
.menu.open { display: block; }
.menu a, .menu button { display: block; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; text-align: left; text-decoration: none; }
.menu a:hover, .menu a:focus-visible, .menu button:hover, .menu button:focus-visible { background: var(--surface-2); outline: none; }
.menu b { display: block; font-weight: 600; font-size: 15px; }
.menu .menuToggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menuToggle::after { content: ""; width: 7px; height: 7px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.menuToggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.menu .waitlist { padding: 8px 14px 12px 28px; color: var(--accent); font-size: 14.5px; font-weight: 600; }
.menu .waitlist::after { content: "\00a0→"; }
.vacancies { list-style: none; margin: 0; width: 280px; }
.vacancies li { padding: 12px 14px; font-size: 15px; color: var(--muted); }
.menuBtn { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); position: relative; }
.menuBtn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--txt); border-radius: 2px; transition: transform .25s, top .25s; }
.menuBtn span:first-child { top: 17px; } .menuBtn span:last-child { top: 25px; }
.menuBtn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menuBtn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* The language control is always reachable, including while the mobile navigation is closed. */
.language-picker { order: 2; position: relative; flex: 0 0 auto; }
.language-picker button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; color: var(--txt); border-radius: var(--radius-sm); }
#languageToggle { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--pill); }
.language-picker img { display: block; width: 28px; height: 21px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.language-picker svg { width: 12px; height: 12px; }
#languageChoices { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
/* Keep all eight choices reachable in short windows and landscape phones. */
#languageChoices { max-height: calc(100dvh - var(--top-h) - 16px); overflow-y: auto; }
#languageChoices button { width: 100%; }
.language-picker button:hover, #languageChoices button[aria-pressed="true"] { background: var(--surface-2); }
.top-row > .nav { order: 1; margin-left: auto; }
.top-row > .menuBtn { order: 3; flex-shrink: 0; }

/* Translations may be longer than English. Let copy wrap, while keeping the original English typography. */
html:not(:lang(en)) .hero h1 { font-size: clamp(38px, 3.9vw, 58px); line-height: 1.1; }
html:not(:lang(en)) .eyebrow { letter-spacing: .12em; }
html:not(:lang(en)) .contact-options button { overflow-wrap: anywhere; }
/* WebKit otherwise includes the full native option label in the form's scrollable width. */
html:not(:lang(en)) .form-grid select { min-width: 0; max-width: 100%; overflow: clip; }
html:not(:lang(en)) .film-stages button, html:not(:lang(en)) .film-stages b,
html:not(:lang(en)) .clip-chapters button { overflow-wrap: anywhere; hyphens: auto; }
html:lang(de) h1, html:lang(de) h2 { hyphens: auto; }
html:lang(zh) { --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; }
html:lang(zh) h1, html:lang(zh) h2 { letter-spacing: 0; line-height: 1.3; }
html:lang(zh) h1 em, html:lang(zh) h2 em { font-style: normal; }
/* The fixed brand composition is independent of the language's reading fonts. */
html:lang(zh) .brand { font-family: Georgia, "Times New Roman", serif; }
html:lang(zh) .brandCaption { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 22px; border-radius: var(--pill); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { color: var(--txt); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { background: var(--surface-1); border-color: var(--txt-3); }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: #fff; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------------------------------------------------------------- hero: headline, then the complete film */
.hero { padding-top: clamp(20px, 3vh, 32px); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: center; padding-bottom: 24px; width: 100%; }
.hero h1 { font-size: clamp(42px, 4.4vw, 64px); }
.hero .lede { font-size: 17px; line-height: 1.5; }
.film { margin: 0; }
/* Mobile uses the natural aspect ratio. Desktop fits the complete film below the
   introduction inside the first viewport; object-fit preserves the recorded frame. */
.film-frame { position: relative; width: 100%; max-width: 1920px; margin: 0 auto; aspect-ratio: var(--film-ar, 16 / 9); background: var(--studio); overflow: hidden; }
.film-poster img, .film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.film-video { opacity: 0; transition: opacity .9s var(--ease); }
.film.is-playing .film-video, .film.has-played .film-video { opacity: 1; }
.film.no-poster .film-poster { display: none; }
.film.is-missing .film-frame, .film.is-missing .film-rail { display: none; }
.film-rail { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 4px; }
.film-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; flex: 1; min-width: 0; counter-reset: stage; }
.film-stages li { position: relative; padding-top: 14px; counter-increment: stage; }
.film-stages li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); border-radius: 2px; }
.film-stages li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--accent); border-radius: 2px; }
.film-stages b, .film-stages button { display: block; width: 100%; text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); }
.film-stages b::before, .film-stages button::before { content: counter(stage, decimal-leading-zero) "  "; white-space: pre; font: italic 400 13px var(--serif); color: var(--txt-3); }
.film-stages button { min-height: 32px; border-radius: 4px; }
.film-stages button:hover, .film-stages .is-on button { color: var(--txt); }
.film-stages .is-on button::before { color: var(--accent); }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(72px, 9vw, 136px) 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .eyebrow { color: var(--leaf); }
.section-dark h2 em { color: var(--leaf); }
.section-dark .lede-sm { color: var(--on-dark-muted); }

/* ---------------------------------------------------------------- tabs and recorded studio clips */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: var(--pill); margin-bottom: 16px; }
.tabs button { min-height: 40px; padding: 8px 18px; border-radius: var(--pill); font-size: 14px; font-weight: 500; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface-1); color: var(--txt); box-shadow: 0 1px 3px rgba(38,50,34,.12); }
.clip { border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.clip-stage { position: relative; background: var(--surface-3); overflow: hidden; }
.clip-ui .clip-stage { aspect-ratio: 1400 / 919; background: var(--studio); }
.clip-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .7s var(--ease); background: var(--studio); }
.clip-stage > .is-on { opacity: 1; visibility: visible; }
.clip-stage > :not(.is-on) { visibility: hidden; pointer-events: none; }
.clip-chapters { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); }
.clip-chapters button { position: relative; min-height: 52px; text-align: left; padding: 14px 14px 12px; border-right: 1px solid var(--line); color: var(--muted); }
.clip-chapters button:last-child { border-right: 0; }
.clip-chapters button b { display: block; font-size: 13.5px; font-weight: 600; color: var(--txt); }
.clip-chapters button small { display: block; font-size: 12px; margin-top: 2px; line-height: 1.35; }
.clip-chapters button i { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.clip-chapters button.is-on i { width: 100%; }
.clip-chapters button.is-on { background: var(--surface-2); }
.clip-chapters button:hover { background: var(--surface-2); }
.playback-toggle { display: block; min-height: 44px; padding: 8px 16px; font-size: 12.5px; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Agentic Design Studio: tour and recorded sessions */
.demo-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: end; gap: 32px 64px; margin-bottom: clamp(36px, 4vw, 56px); }
.demo-heading > p { color: var(--muted); font-size: 16.5px; }
.tour-frame { position: relative; aspect-ratio: var(--tour-ar, 16 / 9); background: var(--studio); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lift); }
.tour-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--studio); cursor: pointer; }
.recorded .studio-demo .clip-chapters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.demo-context { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 28px; }
.demo-context blockquote { margin: 0; font: 22px/1.45 var(--serif); }
.talk-details { font-size: 14px; color: var(--muted); }
.talk-details summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 8px 0; }
.talk-bot { margin: 12px 0 0; padding: 12px 14px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; font-size: 13.5px; line-height: 1.5; }
.talk-bot p + p { margin-top: 8px; }
.talk-user { padding: 14px 18px; background: var(--accent-soft); border-radius: 14px 14px 4px 14px; }
.talk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.talk-actions button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--pill); font-size: 13px; font-weight: 600; }
.talk-actions button:hover { background: var(--surface-1); }
.talk-actions .is-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.talk-actions .is-primary:hover { background: var(--accent-ink); }

/* ---------------------------------------------------------------- designs */
.designs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.designs-media { padding: 24px; background: var(--dark-2); border-radius: var(--radius); }
.designs-media img { filter: grayscale(1) invert(1) opacity(.85); mix-blend-mode: screen; }

/* ---------------------------------------------------------------- contact band and footer */
.contact-band { padding: clamp(72px, 8vw, 120px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.contact-options { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-options button { display: block; width: 100%; height: 100%; min-height: 96px; padding: 20px 22px; text-align: left; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.contact-options button:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-options b { display: block; font-size: 15.5px; font-weight: 600; }
.contact-options b::after { content: "\00a0→"; color: var(--accent); }
.contact-options span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.contact-options li:first-child button { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact-options li:first-child b::after { color: var(--leaf); }
.contact-options li:first-child span { color: #dfe8d6; }
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--surface-1); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.foot-brand p { margin-top: 18px; max-width: 36ch; font-size: 14px; color: var(--muted); }
.foot-note { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--txt-3); }
.foot-legal { display: block; margin-top: 6px; }   /* the company's registration, under the copyright line */

/* Logo-only links: the accessible name is on each link; the 44 px square is the touch target. */
.social-links { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0 0 0 -12px; padding: 0; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 50%; transition: background .2s; }
.social-links a:hover { background: var(--surface-3); }
.social-links img { width: auto; height: 20px; flex: 0 0 auto; }

/* ---------------------------------------------------------------- contact dialog */
.dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-1); color: var(--txt); box-shadow: 0 30px 80px rgba(20,28,22,.28); }
.dialog::backdrop { background: rgba(31,42,36,.42); backdrop-filter: blur(3px); }
.contact { padding: 28px; }
.dialog-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 20px; }
.dialog-head h2 { font-size: 28px; }
.closeBtn { width: 44px; height: 44px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--muted); }
.closeBtn:hover { background: var(--surface-2); color: var(--txt); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { font: 15px var(--sans); color: var(--txt); padding: 11px 12px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); width: 100%; }
.form-grid textarea { resize: vertical; min-height: 96px; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-grid input:user-invalid { border-color: #a6352c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--txt-3); margin-top: 14px; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.form-done h3 { font-size: 24px; }
.form-done p { color: var(--muted); margin-top: 8px; }
.form-error { color: #a6352c; font-size: 14px; margin-top: 12px; }
.contact.sent .form-grid, .contact.sent .form-note, .contact.sent > .form-actions { display: none; }

/* ---------------------------------------------------------------- scroll reveal (below the first screen only; off for reduced motion) */
.reveal-ready .reveal:not(.in) { opacity: 0; transform: translateY(16px); }
.reveal-ready .reveal { transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }

/* ---------------------------------------------------------------- responsive */
@media (min-width: 961px) {
  .hero { height: calc(100svh - var(--top-h)); min-height: 600px; display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .film { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  .film-frame { height: 100%; aspect-ratio: auto; }
  .film-rail { width: 100%; padding-top: 12px; padding-bottom: 12px; }
  .hero .film-stages { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; }
  .hero-side { max-width: 640px; }
  .hero h1 { font-size: clamp(42px, 6.6vw, 64px); }
  .demo-heading, .designs-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-context { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  :root { --gutter: 16px; --top-h: 64px; }
  .brand { font-size: 25px; }
}
/* The additional control needs the disclosure layout at intermediate desktop widths. */
@media (max-width: 1180px) {
  .menuBtn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--top-h); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--surface-1); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); }
  .nav.open { display: flex; }
  .navLink { justify-content: space-between; padding: 12px 10px; border-radius: var(--radius-sm); }
  .menu { position: static; width: 100%; max-width: none; border: 0; box-shadow: none; padding: 0 0 6px 10px; background: transparent; }
  .navCta { margin: 10px 0 0; }
  .language-picker { margin-left: auto; }
}
@media (max-width: 480px) {
  .top-row { gap: 4px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 32px; }
  .hero-head { gap: 20px; padding-bottom: 28px; }
  .film-rail { flex-direction: column; align-items: stretch; gap: 14px; }
  .film-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .tabs { display: flex; }
  .tabs button { flex: 1 0 auto; }
  .tour-frame { border-radius: 12px; }
  .clip-chapters small { display: none; }
  .clip-chapters button { padding: 12px 6px; }
  .contact-options { grid-template-columns: minmax(0, 1fr); }
  .contact-options button { min-height: 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .contact { padding: 22px 18px; }
}

/* ---------------------------------------------------------------- reduced motion: posters, no easing, no reveal */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal-ready .reveal:not(.in) { opacity: 1; transform: none; }
}
