/* MaiLens.Studio corporate/commercial mockup stylesheet.
   Color/material authority comes from ./brand.css (canonical MaiLens token file).
   This file defines marketing-only layout/display typography and consumes --ml-* tokens. */

:root {
  --studio-gutter: clamp(16px, 1.6vw, 28px);
  --studio-radius-xl: 22px;
  --studio-radius-lg: 16px;
  --studio-radius-md: 14px;
  --studio-display-xl: clamp(32px, 2.45vw, 40px);
  --studio-display-lg: clamp(22px, 1.55vw, 26px);
  --studio-display-md: clamp(22px, 1.45vw, 26px);
  --studio-panel-title: clamp(19px, 1.2vw, 22px);
  --studio-body-lg: clamp(15px, 1.05vw, 17px);
  --studio-copy: 16px;
  --studio-small: 13px;
  --studio-letterspace: .18em;
  --studio-section-y: clamp(32px, 3vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ml-bg-primary);
  color: var(--ml-text-primary);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--ml-surface-strong);
  color: var(--ml-text-inverse);
  padding: 10px 14px;
  border-radius: 10px;
}
.skip-link:focus { transform: none; }

.shell { width: 100%; margin: 0; padding-inline: var(--studio-gutter); }
.eyebrow {
  margin: 0 0 14px;
  color: var(--ml-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: var(--studio-letterspace);
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--ml-on-media-muted); }
.muted { color: var(--ml-text-secondary); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--ml-border-subtle);
  background: var(--ml-topbar-bg);
  backdrop-filter: blur(16px);
}
.nav {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 34px; height: 42px; object-fit: contain; }
.brand-name { font-size: 23px; line-height: 1; font-weight: 780; letter-spacing: -.045em; }
.brand-name .dot { color: var(--ml-signal-blue); }
.nav-links { display: flex; justify-content: center; gap: 28px; color: var(--ml-text-secondary); font-size: 14px; font-weight: 620; }
.nav-links a { padding: 10px 0; }
.nav-links a:hover { color: var(--ml-text-primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.text-link { color: var(--ml-text-secondary); font-size: 14px; font-weight: 650; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -.01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, .card-link:focus-visible { outline: none; box-shadow: var(--ml-focus-shadow); }
.btn-primary { background: var(--ml-control-primary-bg); color: var(--ml-control-primary-fg); }
.btn-secondary { background: var(--ml-control-secondary-bg); color: var(--ml-control-secondary-fg); border-color: var(--ml-border-strong); }
.btn-arrow::after { content: "→"; font-size: 17px; }
.menu-btn { display:none; width:42px; height:42px; border:0; padding:9px; background:transparent; color:var(--ml-text-primary); border-radius:10px; cursor:pointer; }
.menu-line { display:block; width:22px; height:2px; margin:4px auto; border-radius:999px; background:currentColor; }

/* Hero */
.hero { overflow: hidden; border-bottom: 1px solid var(--ml-border-subtle); }
.hero-grid {
  min-height: 352px;
  display: grid;
  grid-template-columns: minmax(0, .49fr) minmax(0, .51fr);
  align-items: stretch;
}
.hero-copy {
  padding: clamp(22px, 2vw, 30px) var(--studio-gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ml-bg-primary);
  z-index: 2;
}
.hero h1 {
  margin: 0;
  max-width: 620px;
  font-size: var(--studio-display-xl);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 800;
}
.hero-dek {
  max-width: 575px;
  margin: 12px 0 8px;
  color: var(--ml-text-secondary);
  font-size: var(--studio-body-lg);
  line-height: 1.38;
  letter-spacing: -.015em;
}
.language-line { margin: 0 0 13px; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.hero-actions { display:flex; flex-wrap:wrap; gap:10px; }
.hero-note { margin: 9px 0 0; color: var(--ml-text-muted); font-size: 13px; }
.hero-media {
  position: relative;
  min-height: 352px;
  overflow: hidden;
  background: var(--ml-placeholder-one);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--ml-bg-primary) 0, rgba(255,255,255,.42) 9%, rgba(255,255,255,0) 24%), linear-gradient(180deg, rgba(10,10,12,0) 60%, rgba(10,10,12,.16));
  pointer-events: none;
}
.hero-media img { width:100%; height:100%; object-fit:cover; object-position:center; filter: saturate(.93) contrast(.98); }
.hero-stamp {
  position:absolute;
  z-index:2;
  right:var(--studio-gutter);
  top:22px;
  color: var(--ml-ink);
  font-size: clamp(8px, .62vw, 10px);
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
  text-align:right;
  white-space: nowrap;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(3px);
}
.hero-accent {
  width: 118px;
  height: 3px;
  border-radius: 99px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--ml-signal-red) 0 25%, var(--ml-signal-green) 25% 50%, var(--ml-accent-grey) 50% 75%, var(--ml-signal-blue) 75% 100%);
}

/* Sections */
.section { padding-block: var(--studio-section-y); }
.section-tight { padding-block: clamp(28px, 2.6vw, 42px); }
.section-border { border-bottom: 1px solid var(--ml-border-subtle); }
.section-head {
  display:grid;
  grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr);
  gap: clamp(20px, 2.5vw, 38px);
  align-items:end;
  margin-bottom: 20px;
}
.section h2 {
  margin:0;
  font-size: var(--studio-display-md);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.section-intro { margin:0; color:var(--ml-text-secondary); font-size:16px; line-height:1.48; }

/* Language feature cards */
.language-grid { display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.feature-card {
  min-height: 136px;
  padding: 16px 18px;
  border: 1px solid var(--ml-border-subtle);
  border-radius: var(--studio-radius-md);
  background: var(--ml-surface-primary);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "body body";
  align-items: start;
  column-gap: 14px;
  row-gap: 10px;
}
.feature-card .icon {
  grid-area: icon;
  width: 28px;
  height: 28px;
  display:grid;
  place-items:center;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ml-text-primary);
  align-self: start;
}
.feature-card .icon svg {
  width: 24px;
  height:24px;
  display:block;
}
.glyph-stroke {
  fill: none;
  stroke: var(--ml-text-primary);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glyph-fill { fill: var(--ml-text-primary); }
.accent-red { stroke: var(--ml-signal-red); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.accent-green { stroke: var(--ml-signal-green); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.accent-blue { stroke: var(--ml-signal-blue); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.accent-grey { stroke: var(--ml-accent-grey); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.accent-red-fill { fill: var(--ml-signal-red); }
.accent-green-fill { fill: var(--ml-signal-green); }
.accent-blue-fill { fill: var(--ml-signal-blue); }
.accent-grey-fill { fill: var(--ml-accent-grey); }
.feature-card h3 { grid-area: title; margin:0; font-size:15px; line-height:1.15; letter-spacing:-.02em; align-self:start; }
.feature-card p { grid-area: body; margin:0; color:var(--ml-text-secondary); font-size:12.5px; line-height:1.42; }
.mobile-accordion-card { display:block; }
.feature-toggle { width:100%; padding:0; border:0; background:transparent; color:inherit; display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:start; column-gap:14px; text-align:left; cursor:default; }
.feature-toggle .icon { grid-area:auto; }
.feature-title { font-size:15px; line-height:1.15; font-weight:800; letter-spacing:-.02em; }
.accordion-chevron { display:none; font-size:20px; line-height:1; color:var(--ml-text-muted); transform-origin:center; }
.mobile-accordion-card > p { margin-top:10px; }

/* Language + emotion */
.language-emotion {
  margin-top: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr);
  gap: 20px;
  align-items: center;
  border: 1px solid var(--ml-border-subtle);
  border-radius: var(--studio-radius-lg);
  background: var(--ml-bg-secondary);
}
.language-emotion .eyebrow { margin-bottom: 7px; }
.language-emotion h3 { margin: 0 0 6px; font-size: clamp(18px, 1.15vw, 21px); line-height: 1.12; letter-spacing: -.03em; }
.language-emotion-copy > p:last-child { margin:0; color:var(--ml-text-secondary); font-size:13px; line-height:1.48; max-width: 560px; }
.emotion-matrix { display:grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(150px,.72fr); gap:10px; align-items:stretch; }
.matrix-group, .matrix-result { min-height:72px; border:1px solid var(--ml-border-subtle); border-radius:12px; background:var(--ml-surface-primary); padding:11px 12px; }
.matrix-group { display:flex; flex-direction:column; justify-content:center; gap:6px; }
.matrix-label { color:var(--ml-text-muted); font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.matrix-group strong { font-size:12px; line-height:1.4; letter-spacing:-.01em; }
.matrix-symbol { align-self:center; color:var(--ml-text-muted); font-size:18px; font-weight:800; }
.matrix-result { display:grid; place-items:center; text-align:center; border-color:var(--ml-status-info-border); background:var(--ml-status-info-bg); }
.matrix-result span { color:var(--ml-status-info-fg); font-size:12px; font-weight:800; }

/* Two-panel story */
.split-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-card {
  overflow:hidden;
  border:1px solid var(--ml-border-subtle);
  border-radius: var(--studio-radius-lg);
  background:var(--ml-surface-primary);
  min-height: 320px;
}
.character-card { display:grid; grid-template-columns: .92fr 1.08fr; }
.story-copy { padding: 22px; display:flex; flex-direction:column; justify-content:space-between; }
.story-copy h3 { margin:0 0 10px; font-size:var(--studio-panel-title); line-height:1.08; letter-spacing:-.035em; }
.story-copy p { margin:0; color:var(--ml-text-secondary); font-size:15px; line-height:1.55; }
 .story-media { position:relative; min-height: 260px; background: var(--ml-placeholder-two); overflow:hidden; }
.story-media img { width:100%; height:100%; object-fit:cover; }
.story-media::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(255,255,255,.04),rgba(10,10,12,.12)); }
.card-link { margin-top:16px; display:inline-flex; gap:8px; align-items:center; font-size:13px; font-weight:800; }
.card-link::after { content:"→"; }

.production-card { padding:22px; }
.production-card h3 { margin:0; font-size:var(--studio-panel-title); line-height:1.08; letter-spacing:-.035em; }
.production-card > p { margin:8px 0 16px; color:var(--ml-text-secondary); }
.production-steps { display:grid; grid-template-columns: repeat(4, 1fr); gap:10px; }
.production-step {
  border:1px solid var(--ml-border-subtle);
  border-radius:12px;
  padding:14px;
  min-height:148px;
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  grid-template-areas:
    "mark title"
    "body body";
  align-items:start;
  column-gap:12px;
  row-gap:10px;
}
.production-step strong {
  grid-area:title;
  display:block;
  margin:0;
  font-size:14px;
  line-height:1.15;
  align-self:start;
}
.production-step p {
  grid-area:body;
  grid-column:1 / -1;
  margin:0;
  color:var(--ml-text-secondary);
  font-size:13px;
  line-height:1.5;
}
.production-step .step-mark {
  grid-area:mark;
  width:28px;
  height:28px;
  margin:0;
  display:grid;
  place-items:center;
  border-radius:0;
  background:transparent;
  color:var(--ml-text-primary);
  align-self:start;
}
.production-step .step-mark svg {
  width:24px;
  height:24px;
  display:block;
}

/* Virtual production */
.vp-section { background: var(--ml-bg-secondary); }
.vp-head { display:flex; justify-content:space-between; align-items:end; gap:22px; margin-bottom:18px; }
.vp-head p { max-width: 470px; }
.vp-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:10px; }
.media-card { overflow:hidden; border:1px solid var(--ml-border-subtle); border-radius:var(--studio-radius-lg); background:var(--ml-surface-primary); }
.media-thumb { aspect-ratio: 16/9; background: var(--ml-placeholder-three); overflow:hidden; }
.media-thumb img { width:100%; height:100%; object-fit:cover; transform:scale(1.01); }
.media-card-body { padding:14px 14px 16px; }
.media-card h3 { margin:0 0 7px; font-size:16px; letter-spacing:-.025em; }
.media-card p { margin:0; min-height:40px; color:var(--ml-text-secondary); font-size:13px; line-height:1.45; }
.media-card .card-link { margin-top:10px; }

/* Ecosystem */
.eco-grid { display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap:10px; }
.eco-card { border:1px solid var(--ml-border-subtle); border-radius:var(--studio-radius-md); overflow:hidden; background:var(--ml-surface-primary); }
.eco-card img { width:100%; aspect-ratio: 1.35; object-fit:cover; background:var(--ml-placeholder-one); }
.eco-body { padding:12px; }
.eco-body h3 { margin:0 0 6px; font-size:14px; }
.eco-body p { margin:0; color:var(--ml-text-secondary); font-size:12px; line-height:1.45; }

/* CTA/footer */
.cta-section { padding-block: clamp(46px, 4.5vw, 68px); background:var(--ml-ink); color:var(--ml-white); }
.cta-inner { display:grid; grid-template-columns: minmax(0,1fr) auto; gap:28px; align-items:end; }
.cta-section h2 { max-width: 760px; margin:0; font-size:var(--studio-display-lg); line-height:1.06; letter-spacing:-.04em; }
.cta-section p { max-width:600px; color:var(--ml-on-media-muted); font-size:16px; line-height:1.5; margin:14px 0 0; }
.cta-section .btn-primary { background:var(--ml-white); color:var(--ml-ink); }
.site-footer { border-top:1px solid #26282d; background:var(--ml-ink); color:var(--ml-white); padding: 30px 0 34px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr repeat(4,1fr); gap:22px; }
.footer-brand .brand-name { color:var(--ml-white); }
.footer-brand .brand img { width:42px; height:42px; object-fit:contain; }
.footer-brand p { margin:12px 0 0; max-width:340px; color:var(--ml-on-media-muted); font-size:13px; line-height:1.6; }
.footer-col h3 { margin:4px 0 13px; color:var(--ml-on-media-soft); font-size:12px; text-transform:uppercase; letter-spacing:.12em; }
.footer-toggle { width:100%; margin:4px 0 13px; padding:0; border:0; background:transparent; color:var(--ml-on-media-soft); display:flex; align-items:center; justify-content:space-between; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.12em; text-align:left; cursor:default; }
.footer-toggle span:last-child { display:none; }
.footer-col a { display:block; margin:9px 0; color:var(--ml-on-media-muted); font-size:13px; }
.footer-bottom { display:flex; justify-content:space-between; gap:18px; margin-top:24px; padding-top:18px; border-top:1px solid #26282d; color:var(--ml-on-media-muted); font-size:12px; }


/* Mobile navigation drawer + sticky conversion bar */
.mobile-nav-backdrop, .mobile-nav-drawer, .mobile-sticky-cta { display:none; }
.mobile-nav-open { overflow:hidden; }

@media (max-width: 1120px) {
  .nav-links { display:none; }
  .menu-btn { display:block; }
  .language-grid { grid-template-columns: repeat(3,1fr); }
  .language-emotion { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns:repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(2,1fr); }

  .mobile-nav-backdrop {
    display:block;
    position:fixed;
    inset:0;
    z-index:90;
    background:rgba(10,10,12,.42);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .18s ease, visibility .18s ease;
  }
  .mobile-nav-backdrop.is-open { opacity:1; visibility:visible; pointer-events:auto; }
  .mobile-nav-drawer {
    display:flex;
    position:fixed;
    z-index:91;
    top:0;
    right:0;
    bottom:0;
    width:min(420px, 88vw);
    padding:18px;
    flex-direction:column;
    background:var(--ml-bg-primary);
    border-left:1px solid var(--ml-border-subtle);
    box-shadow:-22px 0 54px rgba(10,10,12,.18);
    transform:translateX(104%);
    visibility:hidden;
    transition:transform .2s ease, visibility .2s ease;
    overflow-y:auto;
  }
  .mobile-nav-drawer.is-open { transform:translateX(0); visibility:visible; }
  .mobile-nav-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-bottom:16px; border-bottom:1px solid var(--ml-border-subtle); }
  .mobile-nav-close { width:42px; height:42px; border:1px solid var(--ml-border-subtle); border-radius:11px; background:var(--ml-bg-secondary); color:var(--ml-text-primary); font-size:28px; line-height:1; cursor:pointer; }
  .mobile-nav-primary { display:flex; flex-direction:column; padding:16px 0; border-bottom:1px solid var(--ml-border-subtle); }
  .mobile-nav-primary a { padding:11px 2px; font-size:18px; font-weight:760; letter-spacing:-.025em; }
  .mobile-nav-group { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; padding:16px 0; }
  .mobile-nav-label { grid-column:1/-1; margin-bottom:8px; color:var(--ml-text-muted); font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
  .mobile-nav-group a { padding:8px 0; color:var(--ml-text-secondary); font-size:14px; font-weight:650; }
  .mobile-nav-actions { margin-top:auto; display:grid; gap:10px; padding-top:18px; }
  .mobile-nav-actions .btn { width:100%; }
}

@media (max-width: 900px) {
  :root { --studio-gutter: clamp(14px, 2.5vw, 22px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; padding-block: 28px 24px; }
  .hero-media { min-height: 300px; }
  .split-grid { grid-template-columns:1fr; }
  .vp-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 720px) {
  :root {
    --studio-gutter: 14px;
    --studio-section-y: 24px;
  }
  body { padding-bottom:72px; }
  .nav { min-height:58px; grid-template-columns: 1fr auto; gap:10px; }
  .nav-actions .text-link, .nav-actions .btn { display:none; }
  .brand-name { font-size:19px; }
  .brand img { width:27px; height:34px; }

  /* Mobile hero: prioritize statement + action, then visual proof. */
  .hero-copy { padding-top:22px; padding-bottom:18px; }
  .hero-copy .eyebrow { margin-bottom:10px; }
  .hero h1 { font-size:clamp(30px, 8.2vw, 38px); line-height:1; max-width:520px; }
  .hero-dek { margin-top:10px; font-size:14px; line-height:1.42; }
  .language-line { margin-bottom:11px; font-size:12px; }
  .hero-actions { gap:8px; }
  .hero-actions .btn { min-height:42px; padding-inline:14px; font-size:13px; }
  .hero-note { display:none; }
  .hero-accent { margin-top:10px; width:96px; }
  .hero-media { min-height:230px; }
  .hero-media::before { background:linear-gradient(180deg,var(--ml-bg-primary) 0,rgba(255,255,255,0) 12%); }
  .hero-stamp { right:12px; top:12px; font-size:7px; letter-spacing:.08em; padding:4px 5px; }

  /* Mobile information hierarchy */
  .section-head, .cta-inner { grid-template-columns:1fr; gap:10px; }
  .section-head { margin-bottom:14px; }
  .section-intro { font-size:14px; line-height:1.44; }
  .section h2 { font-size:clamp(20px, 5.5vw, 23px); line-height:1.08; }
  .story-copy h3, .production-card h3 { font-size:clamp(19px, 5vw, 21px); line-height:1.1; }
  .cta-section h2 { font-size:clamp(20px, 5.5vw, 23px); line-height:1.08; }
  .eyebrow { margin-bottom:9px; }

  /* Language strengths become a compact accordion instead of six long cards. */
  .language-feature-grid { grid-template-columns:1fr; gap:7px; }
  .mobile-accordion-card { min-height:0; padding:13px 14px; border-radius:12px; }
  .feature-toggle { grid-template-columns:26px minmax(0,1fr) auto; column-gap:11px; align-items:center; cursor:pointer; }
  .feature-toggle .icon { width:26px; height:26px; }
  .feature-toggle .icon svg { width:22px; height:22px; }
  .feature-title { font-size:14px; line-height:1.18; }
  .accordion-chevron { display:block; transition:transform .18s ease; }
  .js .mobile-accordion-card > p { display:none; }
  .js .mobile-accordion-card.is-open > p { display:block; margin-top:10px; padding-top:10px; border-top:1px solid var(--ml-border-subtle); }
  .mobile-accordion-card.is-open .accordion-chevron { transform:rotate(45deg); }

  /* Language + emotion reads vertically on a phone. */
  .language-emotion { margin-top:10px; padding:14px; gap:14px; }
  .language-emotion h3 { font-size:18px; }
  .emotion-matrix { grid-template-columns:1fr; gap:8px; }
  .matrix-symbol { display:none; }
  .matrix-group, .matrix-result { min-height:0; padding:11px 12px; }
  .matrix-result { grid-column:auto; }

  .character-card { grid-template-columns:1fr; min-height:0; }
  .story-media { min-height:210px; order:-1; }
  .story-copy, .production-card { padding:16px; }

  /* Swipe rails: browse visually without turning the homepage into a giant stack. */
  .mobile-swipe-rail {
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:min(82vw, 330px);
    grid-template-columns:none;
    gap:10px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:inline mandatory;
    scroll-padding-inline:var(--studio-gutter);
    scrollbar-width:none;
    padding-bottom:5px;
  }
  .mobile-swipe-rail::-webkit-scrollbar { display:none; }
  .mobile-swipe-rail > * { scroll-snap-align:start; }
  .production-step { min-height:132px; padding:14px; }
  .vp-head { align-items:start; flex-direction:column; gap:8px; margin-bottom:13px; }
  .vp-grid, .eco-grid, .solutions-grid, .production-steps { grid-template-columns:none; }
  .media-card p { min-height:0; }
  .eco-card img { aspect-ratio:1.65; }
  .solutions-grid .feature-card { min-height:140px; }

  .cta-section { padding-block:32px; }
  .cta-section p { margin-top:10px; font-size:14px; }

  /* Mobile footer: brand first, navigation only when requested. */
  .site-footer { padding:24px 0 26px; }
  .footer-grid { display:block; }
  .footer-brand { margin-bottom:16px; }
  .footer-brand p { margin-top:10px; max-width:92%; }
  .mobile-footer-group { border-top:1px solid #26282d; }
  .mobile-footer-group:last-child { border-bottom:1px solid #26282d; }
  .footer-toggle { margin:0; padding:14px 0; cursor:pointer; }
  .footer-toggle span:last-child { display:block; color:var(--ml-on-media-muted); font-size:18px; transition:transform .18s ease; }
  .footer-links { display:none; padding:0 0 10px; }
  .mobile-footer-group.is-open .footer-links { display:block; }
  .mobile-footer-group.is-open .footer-toggle span:last-child { transform:rotate(45deg); }
  .footer-col a { margin:0; padding:7px 0; }
  .footer-bottom { flex-direction:column; gap:6px; margin-top:18px; padding-top:14px; font-size:11px; line-height:1.4; }

  .mobile-sticky-cta {
    position:fixed;
    z-index:78;
    left:0;
    right:0;
    bottom:0;
    display:grid;
    grid-template-columns:minmax(92px,.55fr) minmax(0,1.45fr);
    gap:8px;
    padding:8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    border-top:1px solid var(--ml-border-subtle);
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(16px);
    box-shadow:0 -10px 28px rgba(10,10,12,.08);
  }
  .mobile-sticky-cta .btn { min-height:44px; padding-inline:12px; }
  .mobile-sticky-signin { display:grid; place-items:center; min-height:44px; border:1px solid var(--ml-border-strong); border-radius:11px; background:var(--ml-surface-primary); color:var(--ml-text-primary); font-size:13px; font-weight:760; }
}

@media (max-width: 470px) {
  .hero-actions { display:grid; grid-template-columns:1fr 1fr; }
  .hero-actions .btn { width:100%; }
  .hero-media { min-height:205px; }
  .hero-stamp { white-space:normal; max-width:210px; text-align:right; line-height:1.2; }
  .mobile-swipe-rail { grid-auto-columns:86vw; }
  .mobile-nav-drawer { width:94vw; padding:14px; }
  .mobile-nav-group { grid-template-columns:1fr; }
}

@media (min-width: 1800px) {
  :root { --studio-gutter: 32px; }
  .hero-grid { grid-template-columns: minmax(0, .46fr) minmax(0, .54fr); }
  .hero h1 { max-width: 680px; }
  .section-head { grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { transition:none !important; animation:none !important; }
}
