/* Cavelux — the cinema home (CVLX-AI-CINEMA-1). Loaded after cvl-onepage.css.
   The page is a plain stacked document first: every rule down to "the pinned layout" describes
   the static scroll (no JavaScript, reduced motion, forced colours, print). html.cin-pin, set by
   cvl-cinema.js only when motion is welcome, turns scenes 2 to 5 into pinned scenes over one
   sticky stage. The stage shows the SVG mark (.cin-poster) until the 3D canvas has drawn a frame
   (html.cin-live); with no WebGL it stays the SVG and still moves scene to scene.
   Colour is brand v1.3 tokens only (cvl-tokens.css). All text is ink on the theme ground. */

:root {
  --cin-col: clamp(24rem, 40vw, 38rem);          /* the copy column beside the stage */
  --cin-gutter: max(var(--cvl-launch-gutter), var(--cvl-safe-area-left));
  --cin-phone-stage: 40svh;                      /* the pinned stage's height on a phone */
  --cin-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- the layout: one column of scenes; the eye's stage lives in the hero ---------- */
body.cvl-cinema .v3-layout { display: block; }
@media (min-width: 901px) {
  body.cvl-cinema[data-page="launch"] .v3-entry { grid-template-columns: var(--v3-col-doc) minmax(0, 1fr); padding: 0; place-items: stretch; }
  body.cvl-cinema[data-page="launch"][data-launch-state="entry"] .v3-entry .launch-entry { align-self: center; padding: var(--cvl-space-8) var(--cvl-launch-gutter); }
  body.cvl-cinema .v3-stage-slot { display: block; position: relative; min-height: 100vh; min-height: 100svh; border-left: var(--cvl-master-rule) solid var(--cvl-border-control); }
  body.cvl-cinema .v3-stage-slot > .launch-stage { position: absolute; inset: 0; height: auto; }
}
/* the header lines up with the page's own band, as in the stacked document */
html:not(.v3-static) body.cvl-cinema[data-page="launch"].v3 .nav-inner { max-width: var(--cvl-max); }
/* eight items: the gaps give way before the menu collapses */
body.cvl-cinema .nav-links { gap: clamp(var(--cvl-space-4), 1.9vw, var(--cvl-space-8)); }

/* ---------- the stage (static document: a figure of the assembled mark) ---------- */
.cin-track { position: relative; }
.cin-stage { position: relative; display: grid; place-items: center; padding: var(--cvl-space-9) var(--cin-gutter) 0; }
.cin-poster { width: min(60vw, 18rem); }
.cin-canvas { display: none; }

/* ---------- scene copy ---------- */
.cin-scene { position: relative; }
.cin-copy { max-width: 64rem; margin: 0 auto; padding: var(--cvl-space-8) var(--cin-gutter); }
.cin-label {
  display: flex;
  align-items: center;
  gap: var(--cvl-space-3);
  margin: 0 0 var(--cvl-space-4);
  color: var(--cvl-ink-dim);
  font-family: var(--cvl-mono);
  font-size: 0.75rem;
  letter-spacing: var(--cvl-tracking-label);
  line-height: 1.4;
  text-transform: uppercase;
}
.cin-swatch { flex: 0 0 auto; width: 9px; height: 9px; background: var(--v3-accent, var(--cvl-muted)); box-shadow: 0 0 0 var(--cvl-master-rule) var(--cvl-ink); }
.cin-display {
  max-width: 14ch;
  margin: 0;
  color: var(--cvl-ink);
  font-family: var(--cvl-font);
  font-size: clamp(2.5rem, 6.2vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}
.cin-display--sm { max-width: 16ch; font-size: clamp(2.25rem, 4.6vw, 4.5rem); }
.cin-display:focus, .cin-display:focus-visible { outline: none; }
.cin-line { display: block; }
.cin-line + .cin-line { margin-top: 0.18em; color: var(--cvl-ink-dim); }
.cin-lede { max-width: 34rem; margin: var(--cvl-space-5) 0 0; color: var(--cvl-ink-dim); font-family: var(--cvl-font-body); font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: var(--cvl-leading-body); text-wrap: pretty; }

/* ---------- scene 3: a scope ---------- */
.cin-scope-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--cvl-space-6); align-content: start; }
.cin-scope-in > * { grid-column: 1; justify-self: start; }
.cin-scope-in > .v3-brief-work { justify-self: stretch; }
.cin-scope-in > :is(.cin-scope-piece, .cin-scope-pieces) { grid-column: 2; grid-row: 1 / span 6; align-self: start; }
.cin-tagline { margin: 0 0 var(--cvl-space-5); color: var(--cvl-ink-dim); font-family: var(--cvl-font-body); font-size: clamp(1.2rem, 1.7vw, 1.75rem); font-style: italic; line-height: 1.3; text-wrap: balance; }
.cin-concept .cin-card-quote { max-width: 30rem; margin: 0 0 var(--cvl-space-6); color: var(--cvl-ink); font-size: clamp(1.1rem, 1.45vw, 1.45rem); }
.cin-enter { justify-self: start; scroll-margin-top: calc(var(--v3-hdr-h) + var(--cvl-space-4)); }
.cin-scope-piece { width: calc(var(--cvl-pb-w) * 2px); }
.cin-scope-pieces { display: flex; align-items: flex-end; gap: 12px; }
.cin-scope-pieces > .cin-scope-piece { flex: none; }
.cin-scope-name {
  margin: 0 0 var(--cvl-space-4);
  color: var(--cvl-ink);
  font-family: var(--cvl-font);
  font-size: clamp(2.25rem, 5.2vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.cin-scope .v3-stamp { margin: 0 0 var(--cvl-space-4); }
.cin-scope .v3-brief-line { font-size: clamp(1.05rem, 1.3vw, 1.3rem); color: var(--cvl-ink); }
.cin-scope .v3-link { margin-top: var(--cvl-space-4); }
.cin-scope .v3-link, .cin-atomic .v3-link { scroll-margin-top: calc(var(--v3-hdr-h) + var(--cvl-space-4)); }
@media (max-width: 600px) {
  .cin-scope-piece { width: calc(var(--cvl-pb-w) * 1.25px); }
  .cin-scope-in > :is(.cin-tagline, .v3-brief-line, .v3-brief-work, .v3-link) { grid-column: 1 / -1; }
  .cin-scope-in > :is(.cin-scope-piece, .cin-scope-pieces) { grid-row: 1 / span 2; }
}

/* ---------- scene 5: Atomic Universe ---------- */
.cin-atomic-more { margin: var(--cvl-space-6) 0 0; }
.cin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--cvl-space-5); max-width: 64rem; margin: 0 auto; padding: 0 var(--cin-gutter); list-style: none; }
.cin-cards > li { display: grid; margin: 0; }
.cin-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--cvl-space-4);
  min-height: 15rem;
  padding: var(--cvl-space-6);
  border: var(--cvl-master-rule) solid var(--cvl-border-control);
  background: var(--cvl-bg);
  color: var(--cvl-ink);
  text-decoration: none;
  scroll-margin-top: calc(var(--v3-hdr-h) + var(--cvl-space-4));
  transition: transform var(--cvl-motion-fast) var(--cin-ease), border-color var(--cvl-motion-fast) linear, box-shadow var(--cvl-motion-fast) linear;
}
.cin-card:hover, .cin-card:focus-visible { border-color: var(--cvl-ink); box-shadow: 6px 6px 0 var(--cvl-accent); transform: translate(-3px, -3px); }
.cin-card:focus-visible { outline: calc(var(--cvl-master-rule) * 2) solid var(--cvl-focus); outline-offset: var(--cvl-space-2); }
.cin-card-name { margin: 0; font-family: var(--cvl-font); font-size: clamp(1.5rem, 2.1vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.cin-card-quote { display: block; color: var(--cvl-ink-dim); font-family: var(--cvl-font-body); font-size: 1rem; line-height: var(--cvl-leading-body); text-wrap: pretty; }
.cin-card-go { font-family: var(--cvl-mono); font-size: 0.8125rem; letter-spacing: var(--cvl-tracking-nav); text-transform: uppercase; }

/* ---------- the frames carried over from the one page ---------- */
body.cvl-cinema .cin-track > .v3-frame { max-width: 64rem; min-height: 0; margin-inline: auto; }
body.cvl-cinema .v3-sec-contact { max-width: 64rem; min-height: 0; margin-inline: auto; }
@media (max-width: 1100px) {
  body.cvl-cinema .cin-track > .v3-frame, body.cvl-cinema .v3-sec-contact { margin-inline: max(var(--cvl-space-4), var(--cvl-safe-area-left)); }
}
/* without the slot pieces the captions and titles take the full line again */
body.cvl-cinema .v3-frame > :is(.v3-caption:not(.v3-caption--sub), .v3-title) { padding-inline-end: 0; }
.cvl-mark--footer { width: 7.5rem; margin: var(--cvl-space-8) auto var(--cvl-space-6); }

/* =====================================================================================
   The pinned layout (html.cin-pin): scenes 2 to 5 scroll over one sticky stage.
   ===================================================================================== */
html.cin-pin .cin-stage {
  position: sticky;
  top: 0;
  z-index: 0;
  display: block;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}
html.cin-pin .cin-track > :not(.cin-stage) { position: relative; z-index: 1; }
html.cin-pin .cin-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 700ms linear; }
html.cin-pin.cin-live .cin-canvas { opacity: 1; }

/* the SVG mark on the stage: placed where the 3D mark stands, moved scene to scene by data-key */
html.cin-pin .cin-poster {
  --cin-px: 0%; --cin-py: 0%; --cin-ps: 1;
  position: absolute;
  top: 50%;
  left: 71%;
  width: min(40vw, 62svh);
  translate: -50% -50%;
  transform: translate(var(--cin-px), var(--cin-py)) scale(var(--cin-ps));
  transition: transform 900ms var(--cin-ease), opacity 500ms linear;
}
html.cin-pin.cin-live .cin-poster { opacity: 0; }
html.cin-pin .cin-p { transition: transform 900ms var(--cin-ease), opacity 600ms linear; }
/* scatter: the pieces wait apart, in view */
html.cin-pin .cin-poster[data-key="scatter"] .cin-p:nth-child(1) { transform: translate(-30%, 4%) rotate(-8deg); }
html.cin-pin .cin-poster[data-key="scatter"] .cin-p:nth-child(2) { transform: translate(2%, -34%) rotate(6deg); }
html.cin-pin .cin-poster[data-key="scatter"] .cin-p:nth-child(3) { transform: translate(30%, 6%) rotate(9deg); }
html.cin-pin .cin-poster[data-key="scatter"] .cin-p:nth-child(4) { transform: translate(-28%, -26%) rotate(7deg); }
html.cin-pin .cin-poster[data-key="scatter"] .cin-p:nth-child(5) { transform: translate(30%, -22%) rotate(-10deg); }
html.cin-pin .cin-poster[data-key="scatter"] .cin-p:nth-child(6) { transform: translate(14%, -40%) rotate(-12deg); }
html.cin-pin .cin-poster[data-key="scatter"] .cin-p:nth-child(7) { transform: translate(-6%, -44%); }
/* arrival order, a beat apart */
html.cin-pin .cin-poster:not([data-key="scatter"]) .cin-p:nth-child(2) { transition-delay: 60ms; }
html.cin-pin .cin-poster:not([data-key="scatter"]) .cin-p:nth-child(3) { transition-delay: 120ms; }
html.cin-pin .cin-poster:not([data-key="scatter"]) .cin-p:nth-child(4) { transition-delay: 180ms; }
html.cin-pin .cin-poster:not([data-key="scatter"]) .cin-p:nth-child(5) { transition-delay: 240ms; }
html.cin-pin .cin-poster:not([data-key="scatter"]) .cin-p:nth-child(6) { transition-delay: 300ms; }
html.cin-pin .cin-poster:not([data-key="scatter"]) .cin-p:nth-child(7) { transition-delay: 360ms; }
/* a scope: the camera is the poster's own scale and shift; the other pieces step back */
html.cin-pin .cin-poster:is([data-key="science"], [data-key="defense"], [data-key="technology"], [data-key="anthropology"], [data-key="astronomy"]) .cin-p { opacity: 0.14; }
html.cin-pin .cin-poster[data-key="science"] { --cin-ps: 1.5; --cin-px: -9%; --cin-py: -28%; }
html.cin-pin .cin-poster[data-key="science"] .cin-p[data-piece="tower-blue"],
html.cin-pin .cin-poster[data-key="defense"] .cin-p[data-piece="block-green"],
html.cin-pin .cin-poster[data-key="technology"] .cin-p:is([data-piece="block-accent"], [data-piece="cylinder-accent"]),
html.cin-pin .cin-poster[data-key="anthropology"] .cin-p[data-piece="prism-yellow"],
html.cin-pin .cin-poster[data-key="astronomy"] .cin-p:is([data-piece="block-charcoal"], [data-piece="sphere-earth"]) { opacity: 1; }
html.cin-pin .cin-poster[data-key="defense"] { --cin-ps: 1.9; --cin-px: -62%; --cin-py: -56%; }
html.cin-pin .cin-poster[data-key="technology"] { --cin-ps: 1.15; --cin-px: 0%; --cin-py: -8%; }
html.cin-pin .cin-poster[data-key="anthropology"] { --cin-ps: 2; --cin-px: -12%; --cin-py: 40%; }
html.cin-pin .cin-poster[data-key="astronomy"] { --cin-ps: 1.9; --cin-px: 42%; --cin-py: 30%; }
html.cin-pin .cin-poster:is([data-key="work"], [data-key="route"]) { --cin-ps: 0.8; --cin-px: 8%; }
html.cin-pin .cin-poster[data-key="earth"] { --cin-ps: 3.2; --cin-px: 72%; --cin-py: 72%; }
html.cin-pin .cin-poster[data-key="earth"] .cin-p { opacity: 0.1; }
html.cin-pin .cin-poster[data-key="earth"] .cin-p[data-piece="sphere-earth"] { opacity: 1; }
html.cin-pin .cin-poster:is([data-key="atomic"], [data-key^="concept-"]) { --cin-ps: 0.6; --cin-px: 4%; --cin-py: 0%; }
/* motion paused: the same stills, cut not moved */
html.cin-paused .cin-poster, html.cin-paused .cin-p { transition: none !important; }

@media (min-width: 901px) {
  /* a soft ground behind the copy column, so a passing piece never sits under the words */
  html.cin-pin .cin-stage { opacity: var(--cin-end, 1); }   /* the picture leaves with the last scene (cvl-cinema.js) */
  html.cin-pin .cin-stage::after { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cvl-bg) 0, var(--cvl-bg) 34%, color-mix(in srgb, var(--cvl-bg) 0%, transparent) 54%); content: ""; }
  html.cin-pin .cin-copy { display: grid; align-content: center; width: var(--cin-col); max-width: none; min-height: 100vh; min-height: 100svh; margin: 0 0 0 var(--cin-gutter); padding: calc(var(--v3-hdr-h) + var(--cvl-space-6)) 0 var(--cvl-space-8); }
  /* a scope is tall: its words hold while the scroll turns its piece into its motif */
  html.cin-pin .cin-scope { height: 240vh; height: 240svh; }
  html.cin-pin .cin-concept { height: 220vh; height: 220svh; }
  html.cin-pin .cin-scope-in { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; grid-template-columns: minmax(0, 1fr); }
  html.cin-pin .cin-scope-in > :is(.cin-scope-piece, .cin-scope-pieces) { display: none; }   /* the stage shows the piece */
  /* scene 2 is tall: the two lines hold while the pieces land */
  html.cin-pin .cin-assembly { height: 300vh; height: 300svh; }
  html.cin-pin .cin-copy--assembly { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
  html.cin-pin .cin-atomic-more { max-width: none; margin: var(--cvl-space-6) 0 0; padding: 0; }
  html.cin-pin body.cvl-cinema .cin-track > .v3-frame { width: var(--cin-col); max-width: none; margin: 22vh 0 22vh var(--cin-gutter); margin-block: 22svh; }
  html.cin-pin body.cvl-cinema .cin-track > .v3-sec-why { margin-top: 30svh; }
}

@media (max-width: 900px) {
  /* a phone: the stage is pinned under the header and the copy scrolls beneath it */
  html.cin-pin .cin-stage { top: var(--v3-hdr-h); z-index: 2; height: var(--cin-phone-stage); margin-bottom: 0; border-bottom: var(--cvl-master-rule) solid var(--cvl-border); background: var(--cvl-bg); }
  html.cin-pin .cin-track > :not(.cin-stage) { z-index: 1; }
  html.cin-pin .cin-poster { left: 50%; width: min(64vw, calc(var(--cin-phone-stage) * 0.82)); }
  html.cin-pin .cin-copy { display: grid; align-content: center; min-height: calc(100svh - var(--cin-phone-stage) - var(--v3-hdr-h)); padding: var(--cvl-space-7) max(var(--cvl-space-5), var(--cvl-safe-area-left)); }
  html.cin-pin .cin-scope-in > :is(.cin-scope-piece, .cin-scope-pieces) { display: none; }
  /* A scene's words stay with its picture. They rise under the stage as the scene starts; once
     their last line reaches the bottom of the screen they hold there while the scroll finishes
     the motif. Words shorter than the room hold right under the stage instead. --cin-copy-h is
     the words' own height (cvl-cinema.js measures it). */
  html.cin-pin .cin-scope { min-height: 0; height: calc(var(--cin-copy-h, 60svh) + 95svh); }
  html.cin-pin .cin-scope-in {
    position: sticky;
    top: min(calc(var(--v3-hdr-h) + var(--cin-phone-stage)), calc(100svh - var(--cin-copy-h, 0px)));
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    min-height: 0;
  }
  /* A scene's label and name never go under the stage. Both are pinned right beneath it for
     the whole scene, as one head; the rest of the words pass behind them and fade at the head's
     lower edge. Each is placed by the other's height (cvl-cinema.js measures --cin-label-h and
     --cin-name-h), so the two also leave together when the scene ends. The route's caption and
     title are held the same way. With enlarged text a head that would take most of the room is
     left in the flow instead (--cin-head-pos, also from cvl-cinema.js). */
  html.cin-pin .cin-scope-in { display: flex; flex-direction: column; align-items: flex-start; padding-top: 0; }
  html.cin-pin .cin-scope-in > .v3-brief-work { align-self: stretch; }
  html.cin-pin .cin-scope-in > :is(.cin-label, .cin-scope-name),
  html.cin-pin body.cvl-cinema .v3-sec-how > :is(.v3-caption:not(.v3-caption--sub), .v3-title) {
    --cin-head-top: calc(var(--v3-hdr-h) + var(--cin-phone-stage) - 1px);
    --cin-head-pad: max(var(--cvl-space-5), var(--cvl-safe-area-left));
    position: var(--cin-head-pos, sticky);
    z-index: 1;
    align-self: stretch;
    margin-inline: calc(-1 * var(--cin-head-pad));
    padding-inline: var(--cin-head-pad);
    background: var(--cvl-bg);
  }
  html.cin-pin body.cvl-cinema .v3-sec-how > :is(.v3-caption:not(.v3-caption--sub), .v3-title) { --cin-head-pad: var(--cvl-space-6); }
  html.cin-pin .cin-scope-in > .cin-label { top: var(--cin-head-top); margin-block: 0 var(--cin-name-h, 0px); padding-block: var(--cvl-space-5) var(--cvl-space-4); }
  html.cin-pin body.cvl-cinema .v3-sec-how > .v3-caption:not(.v3-caption--sub) { top: var(--cin-head-top); margin-block: calc(-1 * var(--cvl-space-4)) var(--cin-name-h, 0px); padding-block: var(--cvl-space-4) var(--cvl-space-4); }
  html.cin-pin .cin-scope-in > .cin-scope-name,
  html.cin-pin body.cvl-cinema .v3-sec-how > .v3-title {
    top: calc(var(--cin-head-top) + var(--cin-label-h, 0px) - 1px);
    margin-block: calc(-1 * var(--cin-name-h, 0px)) 0;
    padding-bottom: var(--cvl-space-4);
    background: linear-gradient(var(--cvl-bg) calc(100% - var(--cvl-space-4)), color-mix(in srgb, var(--cvl-bg) 0%, transparent));
  }
  html.cin-pin .cin-assembly { height: 220svh; }
  html.cin-pin .cin-copy--assembly { position: sticky; top: calc(var(--v3-hdr-h) + var(--cin-phone-stage)); height: calc(100svh - var(--cin-phone-stage) - var(--v3-hdr-h)); min-height: 0; }
  html.cin-pin body.cvl-cinema .cin-track > .v3-frame { scroll-margin-top: calc(var(--v3-hdr-h) + var(--cin-phone-stage) + var(--cvl-space-3)); }
  html.cin-pin :is(.cin-copy, .cin-scope .v3-link, .cin-card, .cin-atomic .v3-link) { scroll-margin-top: calc(var(--v3-hdr-h) + var(--cin-phone-stage) + var(--cvl-space-3)); }
  html.cin-pin body.cvl-cinema .cin-track > .v3-frame :is(a, button, [tabindex]) { scroll-margin-top: calc(var(--v3-hdr-h) + var(--cin-phone-stage) + var(--cvl-space-3)); }
  .cin-display { font-size: clamp(2.1rem, 10vw, 3.25rem); }
  .cin-scope-name { font-size: clamp(2.1rem, 10vw, 3.25rem); }
  /* Enlarged text on a narrow phone: a word longer than its column breaks inside the column and
     the page never grows sideways. The wordmark is kept whole instead: it stops growing at the
     width of the screen. */
  body.cvl-cinema :is(.v3-main, .footer) { overflow-wrap: break-word; }
  body.cvl-cinema :is(.v3-main, .footer) :is(h2, h3, a, .cin-label, .cin-line, .cin-lede, .v3-caption) { overflow-wrap: anywhere; }
  /* the proof card's gutters stop growing with the text, so its words keep a column */
  body.cvl-cinema .v3-sec-proof .showcase-card { padding-inline: min(var(--cvl-space-6), 7.5vw); }
  body.cvl-cinema .v3-sec-proof .showcase-card-body > * { min-width: 0; max-width: 100%; }
  body.cvl-cinema[data-page="launch"] .launch-entry-title { font-size: min(var(--cvl-launch-entry-title-mobile-size), 10.5vw); }
  body.cvl-cinema .launch-entry-action { flex-wrap: wrap; justify-content: center; width: auto; max-width: 100%; text-align: center; }
}
@media (max-width: 900px) and (max-height: 520px) {
  :root { --cin-phone-stage: 34svh; }
}

/* scene 2's lines arrive with the build (cvl-cinema.js writes --cin-a, 0 to 1, on the section) */
html.cin-pin:not(.cin-paused) .cin-assembly .cin-line { opacity: clamp(0, calc((var(--cin-a, 1) - var(--cin-at)) * 6), 1); transform: translateY(calc((1 - clamp(0, calc((var(--cin-a, 1) - var(--cin-at)) * 6), 1)) * 18px)); }
.cin-line[data-cin-line="1"] { --cin-at: -0.2; }
.cin-line[data-cin-line="2"] { --cin-at: 0.5; }

/* the scene in view carries its accent; the others rest (pinned layout only) */
html.cin-pin .cin-scope:not(.is-current) { --v3-accent: initial; }

@media (forced-colors: active) {
  .cin-swatch { background: CanvasText; box-shadow: none; }
  .cin-card { border-color: CanvasText; }
  .cin-card:hover, .cin-card:focus-visible { box-shadow: none; transform: none; border-color: Highlight; }
}
@media print {
  .cin-stage { position: static !important; height: auto !important; margin: 0 !important; }
  .cin-canvas { display: none !important; }
  .cin-poster { position: static !important; opacity: 1 !important; transform: none !important; translate: none !important; width: 12rem !important; }
  .cin-copy { min-height: 0 !important; width: auto !important; }
  .cin-assembly { height: auto !important; }
  .cin-line { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================================
   THE EYE: the landing scene (after the showreel). Inline SVG in the hero; cvl-eye.js adds life.
   Colours: the five scope tokens, ink for the lines, and the v1.3 dark ground and dark line
   for the pupil and iris, which stay dark in both themes as in the reel.
   ===================================================================================== */
:root { --eye-iris: #2a2926; --eye-pupil: #141413; --eye-glint: #faf9f5; }
body.cvl-cinema[data-page="launch"][data-launch-state="entry"] .launch-stage.eye-stage { display: grid; place-items: center; background: none; cursor: default; }
.eye-svg { display: block; width: min(82%, 46rem); height: auto; overflow: visible; }
.eye-open { transform-box: view-box; transform-origin: 300px 190px; transform: scaleY(var(--eye-open, 1)); transition: transform 120ms ease-in-out; }
/* with scripts, the eye waits as a line and opens once cvl-eye.js is ready; with none, it is simply open */
html.cvl-js:not(.eye-ready):not(.v3-static) .eye-open { transform: scaleY(0.012); }
html.eye-ready:not(.v3-static) .eye-open { animation: eye-opening 1100ms var(--cin-ease) backwards; }
@keyframes eye-opening { from { transform: scaleY(0.012); } to { transform: scaleY(1); } }
.eye-lid { fill: none; stroke: var(--cvl-ink); stroke-width: 1.6; }
.eye-lashes line { stroke: var(--cvl-ink); stroke-width: 1.6; stroke-linecap: round; }
.eye-iris { fill: var(--eye-iris); }
.eye-ring { fill: none; stroke-width: 8; }
.eye-s-accent { stroke: var(--cvl-accent); } .eye-s-blue { stroke: var(--cvl-blue); } .eye-s-yellow { stroke: var(--cvl-yellow); } .eye-s-green { stroke: var(--cvl-green); } .eye-s-grey { stroke: var(--cvl-grey); }
.eye-f-accent { fill: var(--cvl-accent); } .eye-f-blue { fill: var(--cvl-blue); } .eye-f-yellow { fill: var(--cvl-yellow); } .eye-f-green { fill: var(--cvl-green); } .eye-f-grey { fill: var(--cvl-grey); }
.eye-pupil { fill: var(--eye-pupil); }
.eye-glint { fill: var(--eye-glint); }
@media (forced-colors: active) {
  .eye-lid, .eye-lashes line { stroke: CanvasText; }
}
@media print { .eye-open { transform: none !important; animation: none !important; } }
/* the header is pinned to the top of the screen (the old stage script used to place it) */
body.cvl-cinema[data-page="launch"] .nav.is-launch-nav-managed { top: 0; z-index: 40; }

/* ---------- enlarged text on a narrow phone ----------
   Gutters, the brand mark and the theme button stop growing at the width of the screen (each cap
   equals today's size from 320 px of width up), so the words keep a column and the header keeps
   room for Menu beside the mark. A Why plate puts its label under its icon when the two no longer
   fit on one line. */
@media (max-width: 640px) {
  html.cvl-compact body.cvl-cinema[data-page="launch"] .nav-inner {
    gap: min(var(--cvl-space-4), 5vw) !important;
    padding-right: max(min(var(--cvl-space-4), 5vw), var(--cvl-safe-area-right));
    padding-left: max(min(var(--cvl-space-4), 5vw), var(--cvl-safe-area-left));
  }
  body.cvl-cinema[data-page="launch"] .nav-mark { flex-basis: min(var(--cvl-master-mark), 13.125vw); width: min(var(--cvl-master-mark), 13.125vw); height: min(var(--cvl-master-mark), 13.125vw); }
  body.cvl-cinema[data-page="launch"] .nav-theme { width: min(var(--cvl-master-control-h), 13.75vw); height: min(var(--cvl-master-control-h), 13.75vw); }
  body.cvl-cinema .cin-track > .v3-frame { margin-inline: max(min(var(--cvl-space-4), 5vw), var(--cvl-safe-area-left)); padding-inline: min(var(--cvl-space-5), 7.5vw); }
  html.cin-pin body.cvl-cinema .v3-sec-how > :is(.v3-caption:not(.v3-caption--sub), .v3-title) { --cin-head-pad: min(var(--cvl-space-6), 10vw); }
  body.cvl-cinema .v3-plate { display: flex; flex-wrap: wrap; padding-inline: min(var(--cvl-space-5), 7.5vw); }
  body.cvl-cinema .v3-plate > span:last-child { flex: 1 1 7rem; min-width: 0; }
  html.cvl-compact body.cvl-cinema[data-page="launch"] .nav-links.is-open a { padding-inline: min(var(--cvl-gutter), 12.5vw); }
  html.cvl-compact body.cvl-cinema[data-page="launch"] .nav-links.is-open a::before { margin-inline-end: min(var(--cvl-space-4), 5vw); }
}
/* The open menu: when the links are taller than the screen the list starts at the top and scrolls,
   so the first link is never above the reach of a pointer, and a label that is wider than the
   screen wraps inside its row. Neither changes anything while the links fit. */
html.cvl-compact body.cvl-cinema[data-page="launch"] .nav-links.is-open { justify-content: flex-start; }
html.cvl-compact body.cvl-cinema[data-page="launch"] .nav-links.is-open a { flex-shrink: 0; white-space: normal; overflow-wrap: anywhere; }

/* The Enter links in the dark theme: the shared hover fill mixes the accent toward the dark sheet
   and leaves the label at 4.40 to 1. Here it mixes toward the light ink instead. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.cvl-cinema .cin-enter:is(:hover, :focus-visible) { border-color: color-mix(in srgb, var(--cvl-accent) 82%, var(--cvl-ink)); background: color-mix(in srgb, var(--cvl-accent) 82%, var(--cvl-ink)); }
}
:root[data-theme="dark"] body.cvl-cinema .cin-enter:is(:hover, :focus-visible) { border-color: color-mix(in srgb, var(--cvl-accent) 82%, var(--cvl-ink)); background: color-mix(in srgb, var(--cvl-accent) 82%, var(--cvl-ink)); }

/* ---------- without scripts ----------
   The header is plain navigation at the top of the page (index.html hides it by script only), its
   links wrap, and the two buttons that need scripts are left out. The build example's four lines
   are written out under the build (noscript). */
html:not(.cvl-js) body.cvl-cinema[data-page="launch"] .nav { display: block; position: static; }
html:not(.cvl-js) body.cvl-cinema .nav-inner { flex-wrap: wrap; row-gap: var(--cvl-space-2); padding-block: var(--cvl-space-3); }
html:not(.cvl-js) body.cvl-cinema .nav-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--cvl-space-2) var(--cvl-space-6); }
html:not(.cvl-js) body.cvl-cinema .nav-links a { white-space: normal; overflow-wrap: anywhere; }
html:not(.cvl-js) body.cvl-cinema :is(.nav-toggle, .nav-theme) { display: none; }
.v3-example { display: grid; gap: var(--cvl-space-3); max-width: 40rem; margin: var(--cvl-space-5) 0 0; }
.v3-example dt { color: var(--cvl-muted); font-family: var(--cvl-mono); font-size: var(--cvl-fs-0p75rem); letter-spacing: var(--cvl-tracking-nav); text-transform: uppercase; }
.v3-example dd { margin: 0; color: var(--cvl-ink); font-family: var(--cvl-font-body); line-height: var(--cvl-leading-body); }
/* a second quoted line under a concept's first */
.cin-concept .cin-card-quote:has(+ .cin-card-quote--note) { margin-bottom: var(--cvl-space-3); }
.cin-concept .cin-card-quote--note { color: var(--cvl-ink-dim); font-size: 1rem; }
