/* /marsp/autoclave-eto: the model page. Brand tokens come from _marsp/marsp.css;
   scrollcraft.css is the engine's stylesheet, re-pointed to the MARSP palette here.

   Two modes:
   - html.m-live (JS on, no reduced motion): the acts pin and scrub their frame sequences.
   - html:not(.m-live) (no JS, or prefers-reduced-motion): every act is a static block,
     a still on top and all of its text below, nothing hidden. */
:root {
  --sc-canvas: #071E32;
  --sc-ink: #FFFFFF;
  --sc-accent: #1E6091;
  --sc-accent-ink: #FFFFFF;
  --p-gutter: 48px;
  --p-bar: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--m-ink);
  font: 400 17px/1.6 var(--m-font);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul { margin: 0; }
:focus-visible { outline: 3px solid var(--m-mid); outline-offset: 3px; }
/* On ink the mid-blue ring falls under 3:1; use white. */
.p-top :focus-visible, .p-act :focus-visible, .p-line :focus-visible, .p-ask :focus-visible { outline-color: #fff; }
.p-nw { white-space: nowrap; }
main > section { scroll-margin-top: var(--p-bar); }
.p-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ------------------------------------------------------------ top bar -- */
.p-top { position: fixed; inset: 0 0 auto 0; z-index: 20; background: var(--m-ink); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.p-top__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--p-bar); max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.p-top__brand img { width: 140px; height: auto; }
.p-top__nav { display: flex; align-items: center; gap: 32px; }
.p-top__nav a:not(.m-btn) { color: #fff; text-decoration: none; font: 500 15px/1 var(--m-font); opacity: .85; }
.p-top__nav a:not(.m-btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.p-top__cta { padding: 8px 18px; font-size: 15px; }

/* -------------------------------------------------------------- acts -- */
.p-act { background: var(--m-ink); color: #fff; }
.p-stage { background: var(--m-ink); }
.p-film { position: absolute; inset: 0; overflow: hidden; }
.p-film img { width: 100%; height: 100%; object-fit: cover; }
.p-static-img { display: none; }
/* Scrim only on the left, where the copy sits; the machine stays clean. */
.p-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 30, 50, .9) 0%, rgba(7, 30, 50, .62) 26%, rgba(7, 30, 50, 0) 46%),
    linear-gradient(0deg, rgba(7, 30, 50, .88) 0%, rgba(7, 30, 50, .5) 14%, rgba(7, 30, 50, 0) 30%);
}
.p-copy { position: absolute; inset: var(--p-bar) 0 0 0; pointer-events: none; }
.p-copy > * { pointer-events: auto; }

/* The opening copy runs along the floor, under the machine, so the name never covers it. */
.p-hero {
  position: absolute; left: var(--p-gutter); right: var(--p-gutter); bottom: clamp(32px, 6vh, 64px);
  display: grid; grid-template-columns: auto minmax(0, 28em); align-items: end; justify-content: space-between; gap: 12px 48px;
}
.p-hero__code { grid-column: 1; font-size: 15px; color: var(--m-steel); }
.p-hero h1 { grid-column: 1; font: 800 64px/1.04 var(--m-font); letter-spacing: -.025em; }
.p-hero__lede { grid-column: 2; grid-row: 1 / 3; color: var(--m-hair); font-size: 18px; line-height: 1.55; }

.p-beat {
  position: absolute; left: var(--p-gutter); width: min(360px, 27vw);
  padding: 20px 24px; border-radius: var(--m-r-md);
  background: rgba(7, 30, 50, .78); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 700 21px/1.32 var(--m-font); letter-spacing: -.01em;
}
.p-beat--a { top: 18vh; }
.p-beat--b { top: 34vh; }
.p-beat--c { bottom: clamp(48px, 12vh, 130px); }

/* Highlights: one at a time, all in the same grid cell, centred in a left column.
   No transforms of our own: the engine writes the cue rise into `transform`. */
.p-copy--hl {
  left: var(--p-gutter); right: auto; width: min(400px, 29vw);
  display: grid; align-items: center;
}
.p-copy--hl > .p-hl { grid-area: 1 / 1; }
.p-hl-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p-hl {
  padding: 28px 28px 30px; border-radius: var(--m-r-md);
  background: rgba(7, 30, 50, .8); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.p-hl__n { font: 600 13px/1.5 var(--m-font); color: var(--m-steel); font-variant-numeric: tabular-nums; }
.p-hl h3 { margin-top: 10px; font: 800 28px/1.15 var(--m-font); letter-spacing: -.015em; }
.p-hl h3 + p { margin-top: 14px; color: var(--m-hair); font-size: 16px; line-height: 1.6; }

/* ---------------------------------------------------------- gallery -- */
.p-gal { background: var(--m-fog); padding: 80px 0; }
.p-gal h2, .p-spec h2, .p-line h2, .p-ask h2 { font: 800 34px/1.15 var(--m-font); letter-spacing: -.01em; }
.p-gal__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 40px;
}
.p-gal__a { grid-column: 1 / 3; }
.p-gal__b { grid-column: 3; align-self: end; }
.p-gal__c { grid-column: 1; }
.p-gal__d { grid-column: 2 / 4; }
.p-gal img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--m-r-md); background: var(--m-ink); }
.p-gal figcaption { margin-top: 12px; max-width: 40em; color: var(--m-slate); font-size: 14px; line-height: 1.5; }
.p-note { margin-top: 40px; color: var(--m-slate); font-size: 14px; line-height: 1.5; }

/* -------------------------------------------------------- spec sheet -- */
.p-spec { background: #fff; padding: 80px 0; }
.p-spec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 32px; }
.p-spec__code { font-size: 18px; color: var(--m-navy); white-space: nowrap; }
.p-spec__cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.p-spec .m-spec { font-size: 16px; line-height: 1.5; }
.p-spec .m-spec + .m-spec { margin-top: 40px; }
.p-spec caption { caption-side: top; text-align: left; padding: 0 0 12px; font: 700 22px/1.3 var(--m-font); color: var(--m-ink); border-bottom: 2px solid var(--m-ink); }
.p-spec .m-spec th { padding-left: 0; }
.p-spec .m-spec td { padding-right: 0; }

/* -------------------------------------------------------- the line -- */
.p-line { background: var(--m-ink); color: #fff; padding: 80px 0 64px; }
.p-line__head { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; }
.p-line__head p { max-width: 32em; color: var(--m-steel); font-size: 16px; }
.p-line__row { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-line__row li { padding: 0 24px; }
.p-line__row li + li { border-left: 1px solid rgba(255, 255, 255, .08); }
.p-line__row li:first-child { padding-left: 0; }
.p-line__row img { height: 200px; width: 100%; object-fit: contain; object-position: center bottom; border-bottom: 1px solid rgba(198, 205, 212, .28); margin-bottom: 20px; }
.p-line__row img.p-line__small { object-fit: contain; padding-top: 70px; }
.p-soon { display: inline-block; padding: 2px 10px; border: 1px solid rgba(198, 205, 212, .35); border-radius: var(--m-r-pill); color: var(--m-steel); font: 600 12px/1.6 var(--m-font); letter-spacing: .02em; }
.p-line h3 { margin-top: 8px; font: 700 22px/1.3 var(--m-font); opacity: .86; }
.p-line .m-link { margin-top: 40px; color: #fff; }

/* -------------------------------------------------------- proposal -- */
.p-ask { background: #071E32; color: #fff; padding: 80px 0 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.p-ask__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 48px; }
.p-ask p { margin-top: 12px; color: var(--m-steel); max-width: 32em; }
.p-ask__act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.p-ask__mail { font-size: 14px; color: var(--m-steel); }
.p-ask .m-sign { align-items: center; padding: 32px 0 40px; border-top-color: rgba(255, 255, 255, .12); color: var(--m-steel); }
.p-ask .m-sign strong { color: #fff; }
.p-ask .m-sign img { width: 120px; height: auto; margin-right: auto; }

/* ---------------------------------------- static mode (no JS / reduced) -- */
html:not(.m-live) .p-act { padding-top: var(--p-bar); }
html:not(.m-live) .p-stage { position: relative; }
html:not(.m-live) .p-film { position: relative; inset: auto; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; }
html:not(.m-live) .p-film canvas { display: none; }
html:not(.m-live) #destaques .sc-stage__poster { display: none; }
html:not(.m-live) .p-static-img { display: block; }
html:not(.m-live) .p-scrim { display: none; }
html:not(.m-live) [data-sc-cue] { opacity: 1 !important; transform: none !important; }
html:not(.m-live) .p-copy {
  position: static; max-width: 1280px; margin: 0 auto; padding: 48px 32px 80px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; align-items: start;
}
html:not(.m-live) .p-hero { position: static; grid-column: 1 / -1; }
html:not(.m-live) .p-beat { position: static; width: auto; padding: 16px 0 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .16); border-radius: 0; background: none; backdrop-filter: none; font-size: 18px; }
html:not(.m-live) .p-copy--hl { width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
html:not(.m-live) .p-copy--hl > .p-hl { grid-area: auto; }
html:not(.m-live) .p-hl-title { position: static; width: auto; height: auto; overflow: visible; clip: auto; grid-column: 1 / -1; font: 800 34px/1.15 var(--m-font); }
html:not(.m-live) .p-hl { background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, .16); border-radius: 0; padding: 20px 0 0; backdrop-filter: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Reduced motion: the head script leaves html without .m-live, so the static
   blocks above apply and the engine is never mounted. Kill the small transitions too. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-sc-cue] { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------------ tablet -- */
@media (max-width: 1080px) {
  :root { --p-gutter: 32px; }
  .p-hero h1 { font-size: 52px; }
  .p-beat { width: min(340px, 36vw); font-size: 19px; }
  .p-copy--hl { width: min(400px, 42vw); }
  .p-hl h3 { font-size: 24px; }
  .p-spec__cols { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------- phone -- */
@media (max-width: 760px) {
  :root { --p-gutter: 16px; --p-bar: 56px; }
  .p-wrap, .p-top__bar { padding: 0 16px; }
  .p-top__bar { gap: 12px; }
  .p-top__brand img { width: 120px; }
  .p-top__nav { gap: 14px; }
  .p-top__nav a { white-space: nowrap; }
  .p-top__in { display: none; }
  .p-top__nav a:not(.m-btn) { font-size: 13px; }
  .p-top__cta { padding: 6px 10px; font-size: 13px; }

  /* Live: the film is a 16:9 band under the bar, the copy reads below it on ink. */
  /* 72vw tall: a cover crop that keeps the middle 3/4 of the frame, machine and skid. */
  html.m-live .p-film { inset: var(--p-bar) 0 auto 0; height: 72vw; }
  html.m-live .p-scrim { display: none; }
  html.m-live .p-copy {
    inset: calc(var(--p-bar) + 72vw + 24px) 16px 16px 16px;
    width: auto; display: grid; align-content: start;
  }
  html.m-live .p-copy > * { grid-area: 1 / 1; position: static; width: auto; }
  html.m-live .p-beat { padding: 0; border: 0; background: none; backdrop-filter: none; font-size: 20px; }
  html.m-live .p-hl { padding: 0; border: 0; background: none; backdrop-filter: none; }
  .p-hero { display: block; }
  .p-hero h1 { margin-top: 8px; font-size: 40px; }
  .p-hero__lede { margin-top: 16px; }
  .p-hero__lede { font-size: 16px; }
  .p-hl h3 { font-size: 24px; }

  html:not(.m-live) .p-copy, html:not(.m-live) .p-copy--hl { grid-template-columns: minmax(0, 1fr); padding: 32px 16px 56px; }

  .p-gal, .p-spec { padding: 56px 0; }
  .p-gal h2, .p-spec h2, .p-line h2, .p-ask h2 { font-size: 28px; }
  .p-gal__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
  .p-gal__a, .p-gal__b, .p-gal__c, .p-gal__d { grid-column: 1; }
  .p-spec__head { padding-bottom: 24px; }
  .p-spec .m-spec { font-size: 15px; }
  .p-spec .m-spec th { width: 42%; padding-right: 12px; }
  .p-spec .p-nw { white-space: normal; }

  .p-line { padding: 56px 0 48px; }
  .p-line__head { display: block; }
  .p-line__head p { margin-top: 12px; }
  .p-line__row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
  .p-line__row li { padding: 0 8px; }
  .p-line__row img { height: 110px; }
  .p-line__row img.p-line__small { padding-top: 36px; }
  .p-line h3 { font-size: 15px; }

  .p-ask { padding-top: 56px; }
  .p-ask__row { display: block; padding-bottom: 32px; }
  .p-ask__act { align-items: flex-start; margin-top: 24px; }
  .p-ask .m-sign { display: grid; gap: 8px; }
}
