@import url('base.css');
/* The actual film owns the stage; copy retreats during the engraving close-up. */
:root {
  --paper: #090b0d;
  --ink: #f1f0ea;
  --muted: #b0b4b6;
  --accent: #aac8e0;
  --line: #383c40;
  --light: #15181b;
  --header-surface: #090b0de6;
  --product-paper: #eeece8;
}
html {
  scroll-padding-top: 80px;
}
header {
  position: fixed;
  mix-blend-mode: normal;
  height: 90px;
  background: transparent;
  transition:
    opacity 700ms ease,
    transform 700ms var(--ease),
    background 300ms ease;
}
/* 2026-09-27: keep navigation at the top, then withdraw it after scrolling.
   Keyboard focus always reveals the controls, including while the bar is hidden. */
header.is-hidden:not(:has(:focus-visible)) {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
header:has(:focus-visible) .brand {
  opacity: 1;
  pointer-events: auto;
}
header:has(:focus-visible) {
  background: var(--header-surface);
}
/* Give the first product a direct destination alongside the film chapters. */
nav .product-nav {
  font-size: 13px;
  font-weight: 650;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
nav button:hover {
  text-decoration: none;
  color: var(--accent);
}
@media (hover: hover) {
  nav .product-nav:hover {
    color: var(--accent);
  }
}
.brand {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.brand:focus-visible,
.brand-compact .brand {
  opacity: 1;
  pointer-events: auto;
}
.brand-compact header {
  background: var(--header-surface);
}
.brand,
.brand img {
  mix-blend-mode: normal;
}
.brand img {
  filter: url('#logo-white');
}
.logo-filters {
  position: absolute;
  pointer-events: none;
}
/* Adapt our editor's ATLAS Impact Logo, keeping the supplied Form artwork.
   Cropping the image's empty margins is presentation only; the asset stays intact. */
.impact-logo {
  position: absolute;
  top: 90px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 2;
  pointer-events: none;
}
.impact-logo-mask {
  --brand-feather: 40px;
  padding-block: var(--brand-feather);
  mask-image: linear-gradient(
    to bottom,
    transparent var(--brand-fade, 0px),
    #000 calc(var(--brand-fade, 0px) + var(--brand-feather))
  );
}
.impact-logo-crop {
  position: relative;
  aspect-ratio: 8 / 1;
  overflow: hidden;
  transform: translateY(var(--brand-parallax, 0%));
  transition: transform 500ms cubic-bezier(0.165, 0.84, 0.44, 1);
}
.impact-logo img {
  /* Preserve the original ratio, as in the studio header; crop only its paper.
     On 2026-09-27 the nonlinear colour filter caused the reported jagged curves. */
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
  filter: url('#logo-white');
}
#story {
  height: 650svh;
}
.stage {
  background: #090b0d;
}
.stage::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: clamp(100px, 16svh, 200px);
  background: linear-gradient(to bottom, transparent, var(--product-paper));
  opacity: var(--product-reveal, 0);
  pointer-events: none;
}
.fallback,
#scene {
  /* 2026-09-27: fitting the entire widescreen frame merely moved the empty band.
     Fill the viewport instead; keep the product centered without distorting it. */
  object-fit: cover;
  object-position: center;
}
.stage.to-product #motion {
  color: var(--product-ink, #222641);
}
.copy {
  width: auto;
  top: auto;
  bottom: 18%;
  right: var(--gutter);
}
.copy h1 {
  font-size: clamp(44px, 5.2vw, 88px);
  max-width: 10ch;
  text-shadow: 0 2px 36px #000;
}
.copy h1 span {
  color: var(--ink);
}
.outro {
  position: absolute;
  left: var(--gutter);
  bottom: 19%;
  opacity: 0;
  pointer-events: none;
}
.outro p {
  font-size: clamp(30px, 3.4vw, 58px);
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin: 0;
  text-shadow: 0 2px 28px #000;
}
.stage-bottom {
  bottom: 30px;
  justify-content: flex-end;
  z-index: 1;
}
#error {
  z-index: 2;
  bottom: 130px;
  color: var(--ink);
}
#error:empty {
  padding: 0;
}
@media (max-height: 500px) and (min-width: 801px) {
  header {
    height: 62px;
  }
  .brand {
    width: 140px;
  }
  .impact-logo {
    top: 55px;
  }
  .impact-logo-mask {
    --brand-feather: 15px;
  }
  .copy,
  .outro {
    bottom: 115px;
  }
  .copy h1,
  .outro p {
    font-size: 36px;
  }
  .stage-bottom {
    bottom: 18px;
  }
}
.details {
  background: #eeece8;
  color: #222641;
  --muted: #626570;
  --line: #c7c8c3;
}
.preview-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reduced #story {
  height: auto;
}
.reduced .intro {
  opacity: 0 !important;
}
.reduced .outro {
  opacity: 1 !important;
}
@media (max-width: 800px) {
  header {
    height: 74px;
  }
  .brand {
    width: 128px;
  }
  .impact-logo {
    top: 62px;
  }
  .impact-logo-mask {
    --brand-feather: 15px;
  }
  nav {
    gap: 14px;
  }
  nav .product-nav {
    font-size: 10px;
  }
  nav [data-step='0.38'],
  nav [data-step='1'] {
    display: none;
  }
  nav button {
    font-size: 10px;
  }
  .fallback,
  #scene {
    top: 0;
    height: 100%;
  }
  .copy {
    top: auto;
    bottom: 18%;
    width: auto;
  }
  .copy h1 {
    font-size: clamp(36px, 8.5vw, 58px);
    max-width: 13ch;
  }
  .outro {
    top: auto;
    bottom: 18%;
  }
  .outro p {
    font-size: 38px;
  }
  .stage-bottom {
    bottom: 24px;
  }
  #motion {
    font-size: 10px;
  }
  .details {
    padding-top: 66px;
  }
}
@media (max-height: 660px) and (max-width: 800px) {
  .copy {
    top: auto;
  }
  .outro {
    top: auto;
  }
  .copy h1,
  .outro p {
    font-size: 30px;
  }
}
.reduced header {
  transition: none;
}
.reduced .impact-logo-mask {
  mask-image: none;
}
.reduced .impact-logo-crop {
  transform: none;
  transition: none;
}
/* Short landscape screens leave only a narrow strip above the film title. */
@media (max-height: 500px) {
  header {
    height: 32px;
    padding-block: 4px;
  }
  .brand {
    width: 96px;
  }
  nav button {
    padding-block: 4px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  header,
  .brand,
  .impact-logo-crop {
    transition: none;
  }
  .impact-logo-mask {
    mask-image: none;
  }
}
