/* This stylesheet is loaded only by the dedicated cinema preview. */
html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] {
  --cinema-paper: #fff;
  --cinema-ink: #131314;
  --cinema-muted: #6c6c70;
}
html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo][data-hero-theme="dark"] {
  --cinema-paper: #131314;
  --cinema-ink: #f7f7f5;
  --cinema-muted: #a4a4a8;
}
html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo],
html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] body,
html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] :is(
  .header-wrapper-2026, .proo-static-hero, .proo-card-one-followup,
  .proo-process-exterior, .posh-section, .outcomes-clone, .cmp-wrapper, .tech-wrapper
) { background-color: var(--cinema-paper) !important; }
html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo]:not([data-hero-theme="dark"]) .header-wrapper-2026 .site-header {
  background: #fff !important;
}
/* This two-section demo needs real caption geometry before its first entrance,
   including on phones; the old long-page placeholder is not useful here. */
html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

/* Layers paint only; they never capture a click or alter a section's height. */
html[data-cinema-demo] .cinema-pixel-host { position: relative; }
html[data-cinema-demo] .cinema-pixels {
  position: absolute;
  inset: auto 0 0;
  height: min(64svh, 100%);
  z-index: 100;
  display: grid;
  pointer-events: none;
  overflow: clip;
  contain: layout paint style;
}
html[data-cinema-demo] .cinema-pixels > span {
  display: block;
  width: calc(100% + .5px);
  height: calc(100% + .5px);
  background: var(--cinema-paper);
  opacity: 0;
}
/* 15vh of clear reading travel, then the existing 64vh pixel exit. */
html[data-cinema-demo] .cinema-end { height: 79svh; background: var(--cinema-paper); }
@media (max-width: 600px) {
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-static-hero {
    --inset-artwork-side: 0px;
  }
  /* Flush sides and fold; only the outer bottom corners are square. */
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-static-hero__cards > .proo-static-hero__slide > .proo-static-hero__card::before {
    bottom: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo][data-artwork-layout="nested"] .proo-static-hero__card {
    --inset-artwork-radius: 7px;
    --nested-artwork-gap: 2px;
    --nested-artwork-footer: calc(var(--inset-artwork-footer) - 2px);
    /* Concentric corners: outer 7px minus the 2px bezel. */
    --nested-artwork-radius: 5px;
    /* Small outer corners must not collapse the pill's internal padding. */
    --nested-pill-inset: 12px;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo][data-artwork-layout="nested"] .proo-static-hero__card--formation {
    --inset-footer-ink: #f7f7f5;
    --inset-footer-circle-ink: #131314;
    --open-muted: #b8b8bd;
    --open-service-bg: #3b3b40;
    --open-service-ink: #d8d8dc;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo][data-artwork-layout="nested"] :is(
    .proo-static-hero__card--software, .proo-static-hero__card--formation
  ) {
    --nested-artwork-bg: #242426;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo][data-artwork-layout="nested"][data-hero-theme="dark"] :is(
    .proo-static-hero__card--software, .proo-static-hero__card--formation
  ) {
    --nested-artwork-bg: #1b1b1d;
  }
  /* Cover the photo OUTSIDE its rounded clipping boundary. Otherwise the
     cover itself gets anti-aliased and cannot completely erase the fringe.
     The existing geometry pass supplies top/height; captions stay untouched. */
  html[data-cinema-demo] .posh-col > .cinema-photo-pixels {
    inset: auto -1px;
    border-radius: 0;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-static-hero__card--formation::before {
    background: #131314 !important;
  }
  /* Approved compact phone handoff, shared by the main and alternate preview.
     The transparent overlap has no separate page-coloured panel or spacer. */
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-card-one-followup.cinema-mobile-overlap {
    --cinema-intro-overlap: clamp(44px, 12svh, 105px);
    position: relative;
    z-index: 101;
    margin-top: calc(0px - var(--cinema-intro-overlap)) !important;
    padding-top: 24px !important;
    background: transparent !important;
    clip-path: inset(var(--cinema-intro-clip, var(--cinema-intro-overlap)) 0 0);
  }
}
@media (min-width: 1024px) {
  /* Images and captions stay in normal flow. No hold or extra scene budget. */
  html[data-cinema-demo] .cinema-process-scene {
    position: relative;
    height: auto;
    overflow: visible;
  }
  /* Blank destination while only two sections are shown in this preview.
     This lets the last image leave normally, rather than pinning it. */
  html[data-cinema-demo] .cinema-end { height: 100svh; }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior {
    position: relative !important;
    height: 100svh;
  }
  html[data-cinema-demo] .cinema-pixels {
    inset: 0;
    height: 100%;
  }
  /* The sticky parent supplies the remaining release travel once it unpins. */
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-static-hero.is-proo-story-machine-active .proo-static-hero__copy {
    transform: translate3d(0, calc(0px - min(var(--proo-story-release-offset, 0px), var(--cinema-copy-release-travel, 0px))), 0) !important;
  }
  /* Do not keep a second, hidden-on-scroll copy inside the expanding film. */
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-static-hero :is(
    .proo-static-hero__frosted-content, .proo-static-hero__mobile-video-title,
    .proo-static-hero__mobile-video-description
  ) { display: none !important; }
  /* Retain both corner labels through the existing canvas-to-DOM handoff.
     Their parent still owns the handoff opacity; no duplicate layer is added. */
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-static-hero__card--builder > :is(
    .proo-static-hero__card-number, .proo-static-hero__release-status
  ) {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
  }

  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-card-one-followup[data-proo-card-one-followup] {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    margin: 0 !important;
    --cinema-editorial-gap: clamp(88px, 12vh, 160px);
    /* The hero geometry already knows its clear tail. Transfer half from
       above the copy to below it, keeping the complete scroll budget intact.
       Extremely tall viewports cannot produce negative padding. */
    --cinema-editorial-shift: min(var(--cinema-editorial-gap), calc(var(--cinema-video-tail, 0px) / 2));
    padding: calc(var(--cinema-editorial-gap) - var(--cinema-editorial-shift)) 5vw
      calc(var(--cinema-editorial-gap) + var(--cinema-editorial-shift)) !important;
    color: var(--cinema-ink);
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-card-one-followup__group {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, 3vh, 40px);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-card-one-followup__title {
    display: block !important;
    position: static !important;
    width: auto !important;
    max-width: 90vw;
    margin: 0 !important;
    font-family: "Junicode", Georgia, serif !important;
    font-size: clamp(14.4px, 1.16vw, 19.2px) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: -.012em;
    -webkit-text-stroke: .4px currentColor !important;
    text-align: center;
    color: var(--cinema-muted) !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-card-one-followup__title > span {
    display: inline !important;
    white-space: normal !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-card-one-followup__copy {
    position: static !important;
    width: min(90vw, 1120px) !important;
    margin: 0 auto !important;
    font-family: "Junicode", Georgia, serif !important;
    font-weight: 400 !important;
    font-size: clamp(32px, 3.5vw, 60px) !important;
    line-height: 1.16 !important;
    letter-spacing: -.018em;
    -webkit-text-stroke: .65px currentColor !important;
    text-align: center;
    color: var(--cinema-ink) !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-card-one-followup[data-lang="el"] :is(
    .proo-card-one-followup__title, .proo-card-one-followup__copy
  ) { font-family: "Noto Serif", Georgia, serif !important; }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-card-one-followup[data-lang="el"] .proo-card-one-followup__title {
    text-transform: none;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-card-one-followup[data-lang="el"] .proo-card-one-followup__copy {
    font-size: clamp(28px, 3vw, 50px) !important;
    line-height: 1.33 !important;
    -webkit-text-stroke: .75px currentColor !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-static-hero__card--builder > .proo-card-one-followup__title {
    display: block !important;
    position: absolute !important;
    inset: auto 24px clamp(24px, 3vh, 40px) !important;
    width: auto !important;
    max-width: none !important;
    z-index: 9;
    font-size: clamp(18px, 1.45vw, 24px) !important;
    line-height: 1.3 !important;
    color: #f7f7f5 !important;
    text-shadow: 0 1px 8px rgb(0 0 0 / .8);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: none;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-static-hero[data-lang="el"] .proo-static-hero__card--builder > .proo-card-one-followup__title {
    font-family: "Noto Serif", Georgia, serif !important;
    /* Restore sentence case and the pre-capitals small-heading scale. */
    text-transform: none;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-card-one-followup__line {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: normal;
    margin-inline: auto;
  }

  /* The two photographs become one edge-to-edge, viewport-height diptych. */
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior,
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior :is(.posh-wrapper, .posh-section, .posh-inner) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior .posh-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1px !important;
    margin: 0 !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior .posh-grid .posh-col {
    position: relative;
    height: 100svh !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior .posh-grid .posh-col .posh-card {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior .posh-grid .posh-col .posh-card::after {
    display: block !important;
    content: "" !important;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Override the old decorative grain layer's .18 opacity as well. */
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.34) 35%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.88) 100%) !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior .posh-caption {
    --posh-card-copy-scale: 1 !important;
    position: absolute !important;
    z-index: 5;
    inset: auto clamp(28px, 4vw, 76px) calc(clamp(36px, 6vh, 80px) + 20px) !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    text-align: left !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior .posh-wrapper[data-lang] .posh-caption .posh-caption-title {
    width: auto !important;
    font-size: clamp(28px, 2.75vw, 50px) !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    text-wrap: balance !important;
    color: #fff !important;
    margin: 0 0 16px !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior .posh-wrapper[data-lang] .posh-caption-desc {
    width: 100% !important;
    max-width: none !important;
    font-size: clamp(15px, 1.2vw, 20px) !important;
    line-height: 1.5 !important;
    color: #e0e0e2 !important;
    margin: 0 !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior .posh-caption-line {
    display: inline !important;
    width: auto !important;
    white-space: normal !important;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior .posh-caption-line + .posh-caption-line::before { content: " "; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-cinema-demo] :is(.cinema-pixels, .cinema-end) { display: none; }
  html[data-cinema-demo] .cinema-process-scene { height: auto; }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo] .proo-process-exterior { position: relative !important; }
}
