/* The game's own look: the colours are `godot/scripts/ui/Palette.gd`, the
   title card is `Hauptmenue._card_style()`, the wordmark is
   `Projektwortmarke.gd`. A colour of the page's own is the drift this file
   was rebuilt to remove -- the first draft carried a magenta the game has
   never had. */
:root {
  --creme: #fff0ce;
  --papier: #f0dab0;
  --karton: #d5b788;
  --ink: #2d261b;
  --soft-ink: #5d513e;
  --deep-teal: #173e3b;
  --teal: #32958b;
  --orange: #ed7548;
  --mustard: #e8b537;
  --amber: #e8a33d;
  --magenta: #d97091;
  --avocado: #7c8f3e;
  --wood: #24140c;
  --card-shadow: 0 8px 18px rgba(45, 38, 27, 0.30);
  --press: 0 5px 0 var(--deep-teal);
}

@font-face {
  font-family: "Bungee";
  src: url("/fonts/bungee.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Sansita Swashed";
  src: url("/fonts/sansita-swashed.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("/fonts/noto-sans.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("/fonts/noto-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 1.08rem/1.6 "Noto Sans", system-ui, sans-serif;
  background-color: var(--papier);
  /* Paper fibre, drawn rather than loaded. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0 0.05 0 0 0 0.07 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Bungee", "Noto Sans", sans-serif; font-weight: 400; line-height: 1.1; margin: 0; }
h2 {
  font-size: clamp(2rem, 5vw, 3.4rem); text-align: center; margin-bottom: 2.4rem;
  color: var(--deep-teal); text-shadow: 0 4px 0 rgba(232, 181, 55, 0.65);
}
h3 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin-bottom: 0.6rem; }

/* ---- the wordmark ---- */
/* The hero's wordmark is the Blender render (`marketing/render/wordmark_render.py`):
   the letters, and the flower apart so it can sway about its heart; where the
   flower lies is `wordmark.css`, written from the render. The width is the text
   wordmark's at the font size it had here. */
.wordmark-hero { position: relative; width: clamp(14.5rem, 40vw, 30rem); margin: 4px 0 10px; }
.wordmark-hero img { display: block; }
.wordmark-letters { width: 100%; height: auto; }
.wordmark-flower { position: absolute; height: auto; transform-origin: 50% 50%; }

/* ---- top bar ---- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px clamp(12px, 3vw, 28px);
  background: rgba(255, 240, 206, 0.92);
  border-bottom: 2px solid var(--deep-teal);
  backdrop-filter: blur(8px);
}
.topbar-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* The house line rides on the topbar's rule: 3ofUs > this product, the same
   two steps on every 3ofUs site. */
.house {
  /* Beside the wordmark, not under it: under it, the pill covers the bottom of BOOGIE. */
  position: absolute; left: calc(clamp(12px, 3vw, 28px) + 7.6rem + 14px); bottom: 0; transform: translateY(50%);
  display: flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px;
  background: var(--deep-teal); color: var(--creme); font: 700 0.72rem/1.3 "Noto Sans", sans-serif;
}
.house a { color: var(--mustard); text-decoration: none; }
.house a:hover { color: var(--creme); text-decoration: underline; }
.house span[aria-hidden] { opacity: 0.6; }
.topbar-mark .wordmark-bar { width: 7.6rem; }
/* The wordmark in the bars stands still: a stamp-in on every page and a swaying flower
   beside the reading line pull the eye from the page itself. */
.wordmark-hero.wordmark-bar { display: block; }
.wordmark-hero.wordmark-bar, .wordmark-bar .wordmark-flower { margin: 0; animation: none; }
.topbar nav { display: flex; align-items: center; gap: 20px; }
.topbar nav a { text-decoration: none; font-weight: 700; font-size: 0.95rem; color: var(--deep-teal); }
.topbar nav a:hover { color: var(--orange); }
.lang {
  font: 400 0.85rem "Bungee", sans-serif; color: var(--creme); background: var(--deep-teal);
  border: 0; border-radius: 10px; padding: 6px 12px; cursor: pointer; box-shadow: 0 3px 0 var(--wood);
}

/* ---- the stage: two islands of the board that part as the page scrolls ----
   `site.js` writes the scroll progress through the stage into --p (0..1) and
   the part of it after the story -- the tower's two shots -- into --q, which
   parts the islands. Without it both are unset, the fallbacks below hold
   everything at 0 and the stage is one screen tall: the scene and the
   title, standing still. */
.stage { position: relative; height: 100svh; }
.js:not(.still) .stage { height: 420svh; }
.stage-pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 34%, rgba(255, 240, 206, 0.95), rgba(255, 240, 206, 0) 72%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'><path d='M28 0 56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23173e3b' stroke-opacity='0.06' stroke-width='1.5'/></svg>"),
    var(--papier);
}
/* Both layers are the camera's full 16:9 frame. Sized by height and pinned
   to their own edge, they coincide on a 16:9 screen and, on a phone, each
   still shows its whole island -- the frame's other half is transparent. */
.stage-half {
  position: absolute; bottom: 0; width: auto; max-width: none;
  height: clamp(60svh, 56.25vw, 100svh);
  pointer-events: none; will-change: transform;
}
.stage-left {
  left: 0; transform-origin: 18% 88%;
  transform: translate3d(calc(var(--q, 0) * -58vw), calc(var(--q, 0) * 10svh), 0) scale(calc(1 + var(--q, 0) * 0.7));
  animation: island-left 1.2s 0.15s cubic-bezier(0.2, 1.1, 0.35, 1) backwards;
}
.stage-right {
  right: 0; transform-origin: 82% 88%;
  transform: translate3d(calc(var(--q, 0) * 58vw), calc(var(--q, 0) * 10svh), 0) scale(calc(1 + var(--q, 0) * 0.7));
  animation: island-right 1.2s 0.15s cubic-bezier(0.2, 1.1, 0.35, 1) backwards;
}
/* The window the halves open onto: a small portal between the islands that
   grows to the whole screen, with the match running inside it. */
.stage-window {
  position: absolute; inset: 0; overflow: hidden; background: var(--deep-teal);
  opacity: calc(var(--q, 0) * 2.6 - 0.45);
  transform: scale(calc(0.42 + var(--q, 0) * 0.58));
  border: calc((1 - var(--q, 0)) * 6px) solid var(--deep-teal);
  border-radius: calc((1 - var(--q, 0)) * 48px);
}
.stage-video { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.stage-title {
  position: absolute; left: 50%; top: calc(62px + 3svh); width: min(92vw, 660px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transform: translate(-50%, calc(var(--q, 0) * -24svh)) scale(calc(1 - var(--q, 0) * 0.2));
  opacity: calc(1 - var(--q, 0) * 4.5);
}
.stage.is-open .stage-title, .stage.is-open .stage-cue { visibility: hidden; }
.stage-cue {
  position: absolute; left: 50%; bottom: clamp(14px, 3svh, 30px); margin: 0; translate: -50% 0;
  display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 7px 7px 7px 20px; border-radius: 999px;
  background: var(--creme); border: 2px solid var(--deep-teal);
  box-shadow: 0 4px 0 var(--deep-teal), var(--card-shadow);
  font: 400 clamp(0.82rem, 1.05vw, 1rem) "Bungee", sans-serif; color: var(--deep-teal); letter-spacing: 0.03em;
  opacity: calc(1 - var(--p, 0) * 12);
}
.stage-cue::after {
  content: "↓"; flex: none; display: grid; place-items: center; width: 2em; height: 2em;
  border-radius: 50%; background: var(--orange); color: var(--creme); border: 2px solid var(--deep-teal);
  font: 700 1.1em/1 "Noto Sans", sans-serif; animation: cue 1.6s ease-in-out infinite;
}

/* The story's props. `site.js` places them in pixels from `data-scene`, so
   they hit on every aspect ratio; unplaced, they stay invisible. */
.stage-story { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.stage-shot, .stage-flash, .stage-burst { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.stage-shot {
  --ball: 28px;
  width: var(--ball); height: var(--ball); margin: calc(var(--ball) / -2) 0 0 calc(var(--ball) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff8e8 0 12%, #ff9a6b 26%, var(--orange) 55%, #b8441f 100%);
  box-shadow: 0 0 0 2px var(--mustard), 0 6px 10px rgba(45, 38, 27, 0.25);
}
.stage-flash {
  width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%;
  background: radial-gradient(circle, #fff6d8 0 18%, rgba(232, 181, 55, 0.9) 30%, rgba(237, 117, 72, 0.55) 52%, rgba(237, 117, 72, 0) 70%);
}
.stage-burst i {
  position: absolute; left: 0; top: 0; width: 16px; height: 9px; margin: -4px 0 0 -8px;
  border-radius: 50%; background: var(--magenta);
}
.stage-burst i:nth-child(3n + 2) { background: var(--creme); }
.stage-burst i:nth-child(3n) { background: var(--mustard); }

/* The trailer on the stage. `site.js` gives it its box and its opacity; until
   it does, and without script, it is not there at all: the frame above the
   first card is. */
.stage-trailer {
  display: none; position: absolute; left: 0; top: 0; z-index: 3; max-width: none;
  border-width: 3px; box-shadow: 0 6px 0 var(--deep-teal), var(--card-shadow);
  will-change: transform, opacity;
}
.js .stage-trailer { display: block; visibility: hidden; }
.trailer-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 22px 16px 10px; text-align: left; color: var(--creme);
  background: linear-gradient(rgba(23, 62, 59, 0), rgba(23, 62, 59, 0.88));
  font: 700 0.95rem/1.2 "Noto Sans", sans-serif;
}
.trailer-bar small { font-size: 0.8rem; font-weight: 400; opacity: 0.85; }

/* ---- intro: what the game is, under the stage ---- */
.intro { display: flex; flex-direction: column; align-items: center; gap: 36px; padding: 72px clamp(16px, 4vw, 40px) 12px; }
.intro-trailer { width: min(100%, 900px); border-width: 3px; box-shadow: 0 6px 0 var(--deep-teal), var(--card-shadow); }
.intro-card {
  max-width: 760px; text-align: center; background: var(--creme);
  border: 2px solid var(--deep-teal); border-bottom-width: 6px; border-radius: 28px;
  box-shadow: var(--card-shadow); padding: clamp(22px, 3.5vw, 34px);
}
.intro-card .facts { justify-content: center; }
.eyebrow { margin: 0; font: 700 0.78rem "Noto Sans", sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.facts li {
  font: 700 0.72rem "Noto Sans", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft-ink);
  background: var(--papier); border: 1px solid rgba(50, 149, 139, 0.3); border-radius: 16px; padding: 5px 11px;
}
.lede { margin: 0 0 20px; font-size: 1.02rem; }
.fineprint { font-size: 0.82rem; color: var(--soft-ink); margin: 16px 0 0; }
.stamp {
  position: relative; margin: 0 0 16px; white-space: nowrap;
  padding: 8px 16px; text-align: center; line-height: 1.25;
  font: 400 0.82rem "Bungee", sans-serif; color: var(--deep-teal); background: var(--mustard);
  border: 2px solid var(--deep-teal); border-radius: 14px; box-shadow: 0 4px 0 var(--deep-teal);
  transform: rotate(4deg);
}

/* ---- buttons: the menu's buttons, pressed into the card ---- */
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
/* The wordmark's own margin alone left the button cramped against it once the
   line between them was gone. */
.stage-title .cta { margin-top: 16px; }
.button {
  display: inline-block; padding: 13px 24px; text-decoration: none;
  font: 400 1rem "Bungee", sans-serif; letter-spacing: 0.01em;
  color: var(--creme); border-radius: 16px; box-shadow: var(--press);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--deep-teal); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--deep-teal); }
.button-primary { background: var(--orange); }
.button-secondary { background: var(--deep-teal); box-shadow: 0 5px 0 var(--wood); }
.button-secondary:hover { box-shadow: 0 8px 0 var(--wood); }

/* ---- marquee: tape across the page ---- */
.marquee {
  position: relative; z-index: 2; overflow: hidden; margin: -26px 0 0;
  background: var(--deep-teal); border-block: 3px solid var(--mustard);
  transform: rotate(-1.6deg); box-shadow: 0 6px 0 rgba(45, 38, 27, 0.25);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee p {
  margin: 0; padding: 12px 0; white-space: nowrap;
  font: 400 clamp(1rem, 2.2vw, 1.35rem) "Bungee", sans-serif; color: var(--creme);
  word-spacing: 0.3em; padding-right: 0.6em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- features ---- */
.how { max-width: 1160px; margin: 0 auto; padding: 110px 20px 40px; }
.feature { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; margin-bottom: 76px; }
.frame {
  position: relative; border: 2px solid var(--deep-teal); border-bottom-width: 6px; border-radius: 22px;
  overflow: hidden; box-shadow: var(--card-shadow); background: var(--deep-teal); aspect-ratio: 16 / 9;
}
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { color: var(--deep-teal); }
.feature:nth-of-type(1) h3 { color: var(--orange); }
.feature:nth-of-type(3) h3 { color: var(--magenta); }
.feature:nth-of-type(4) h3 { color: var(--avocado); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .feature:nth-of-type(odd) .frame { transform: rotate(-1deg); }
  .feature:nth-of-type(even) .frame { transform: rotate(1deg); order: 2; }
}

/* ---- screenshots ---- */
.screens { background: var(--deep-teal); color: var(--creme); padding: 90px 20px; }
.screens h2 { color: var(--creme); }
.gallery {
  max-width: 1240px; margin: 0 auto; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.gallery button {
  padding: 0; border: 2px solid var(--mustard); border-radius: 16px; overflow: hidden;
  box-shadow: 0 5px 0 var(--wood); cursor: zoom-in; background: var(--wood);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gallery button:hover { transform: translateY(-4px) rotate(-0.8deg) scale(1.02); box-shadow: 0 10px 0 var(--wood); }
.gallery img { transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.06); }
.lightbox { border: 2px solid var(--mustard); border-radius: 16px; padding: 0; max-width: 94vw; background: var(--wood); }
.lightbox::backdrop { background: rgba(23, 62, 59, 0.9); }
.lightbox img { max-height: 88vh; width: auto; }
.lightbox-close {
  position: absolute; top: 8px; right: 10px; width: 40px; height: 40px;
  font: 400 1.4rem "Bungee", sans-serif; color: var(--deep-teal); background: var(--mustard);
  border: 2px solid var(--deep-teal); border-radius: 50%; cursor: pointer;
}


/* ---- footer ---- */
.footer { background: var(--wood); color: var(--papier); text-align: center; padding: 38px 20px 46px; font-size: 0.92rem; }
/* The wordmark's lower row is deep teal and vanishes on the wood: it sits on paper here. */
.footer-mark { display: inline-block; background: var(--creme); border-radius: 16px; padding: 10px 16px; margin-bottom: 12px; }
.footer-mark .wordmark-bar { width: 9rem; }
.footer p { margin: 6px 0; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }

/* ---- legal pages ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 120px 20px 70px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.4rem; color: var(--deep-teal); }
.legal h2 { font-size: 1.3rem; text-align: left; margin: 2rem 0 0.6rem; text-shadow: none; }

/* ---- topbar wishlist ---- */
.topbar nav a.topbar-cta {
  color: var(--creme); font: 400 0.85rem "Bungee", sans-serif; padding: 7px 14px; border-radius: 12px;
  box-shadow: 0 3px 0 var(--deep-teal);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.topbar nav a.topbar-cta:hover { color: var(--creme); transform: translateY(-2px); }
.js body:not(.show-topbar-cta) .topbar-cta { opacity: 0; visibility: hidden; transform: translateY(-6px); }

/* ---- finale: the flower cannon from the opening stands beside the last call ---- */
.finale { padding: 110px clamp(16px, 4vw, 40px) 120px; }
.finale-inner {
  max-width: 1120px; margin: 0 auto; display: grid; gap: 32px; align-items: center;
  background: var(--creme); border: 2px solid var(--deep-teal); border-bottom-width: 8px;
  border-radius: 36px; box-shadow: var(--card-shadow); padding: clamp(28px, 5vw, 64px);
}
.finale h2 { text-align: left; margin-bottom: 1rem; color: var(--deep-teal); }
.finale-lede { font-size: 1.15rem; max-width: 34em; margin: 0 0 28px; }
/* The timeline sets display on its list and rows, which would outrank the UA's own rule. */
[hidden] { display: none !important; }
.timeline { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 12px 34px; }
.timeline li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-weight: 700; }
.timeline-date { font: 400 1.35rem "Bungee", sans-serif; color: var(--orange); white-space: nowrap; }
.button-big { font-size: clamp(1.05rem, 2.2vw, 1.35rem); padding: 18px 34px; border-radius: 20px; }

/* The second way in, deliberately quieter than the Steam button above it: the
   wishlist is what the page is for, the mail is for those who will not make a
   Steam account for it. */
.finale-demo { max-width: 34em; margin: 22px 0 0; }
.finale-demo a { color: var(--deep-teal); font-weight: 700; }
.newsletter { margin-top: 40px; max-width: 34em; }
.newsletter-label { display: block; font-weight: 700; margin-bottom: 10px; color: var(--deep-teal); }
.newsletter-row { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter-row input {
  flex: 1 1 15em; min-width: 0; padding: 12px 16px; font: inherit; color: var(--ink);
  background: #fffaf0; border: 2px solid var(--deep-teal); border-radius: 14px;
}
.newsletter-row input:focus-visible,
.newsletter .button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.newsletter .button { border: 0; cursor: pointer; }
.newsletter .button:disabled { opacity: 0.6; cursor: progress; transform: none; }
.newsletter-note { font-size: 0.9rem; color: var(--soft-ink); margin: 10px 0 0; }
.newsletter-note a { color: var(--deep-teal); }
.newsletter-status { min-height: 1.5em; margin: 8px 0 0; font-weight: 700; color: var(--deep-teal); }
/* The darker orange of the cannon's shading: the brand orange on creme is too faint to read as text. */
.newsletter-status[data-tone="error"] { color: #b8441f; }
.newsletter-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* The island is cut out of stage-right by position rather than as a second
   image: build_stage.py owns that render, and a hand-cropped copy would not
   follow the next one. The window shows x 71-100 %, y 40-90 % of the frame. */
.finale-tower {
  aspect-ratio: 1.03; width: 100%; max-width: 440px; justify-self: center;
  background: url("/img/stage-right-1280.webp") no-repeat 100% 80% / 345% auto;
}
@media (min-width: 900px) {
  .finale-inner { grid-template-columns: 1.3fr 1fr; }
  .finale-tower { transform: rotate(3deg) scale(1.08); }
}
@media (min-resolution: 1.5dppx) {
  .finale-tower { background-image: url("/img/stage-right-2560.webp"); }
}

/* The cannon answers the button: a recoil while the pointer is on the call. */
.finale-inner:has(.button-big:hover, .button-big:focus-visible) .finale-tower { animation: recoil 0.9s ease-in-out infinite; }
@keyframes recoil {
  0%, 100% { translate: 0 0; }
  12% { translate: 10px -4px; }
  30% { translate: -3px 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .finale-inner:has(.button-big:hover, .button-big:focus-visible) .finale-tower { animation: none; }
}

/* ---- press kit ---- */
.press { max-width: 1120px; margin: 0 auto; padding: 110px clamp(16px, 4vw, 40px) 70px; }
.press h1 { font-size: clamp(2.2rem, 6vw, 4rem); color: var(--deep-teal); margin: 6px 0 18px; }
.press h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); text-align: left; margin: 0 0 1rem; }
.press-head { max-width: 760px; margin-bottom: 44px; }
.press-head .lede { font-size: 1.1rem; }
.press-grid { display: grid; gap: 24px; margin-bottom: 24px; }
@media (min-width: 900px) { .press-grid { grid-template-columns: 1fr 1fr; } }
.press-card {
  background: var(--creme); border: 2px solid var(--deep-teal); border-bottom-width: 6px;
  border-radius: 28px; box-shadow: var(--card-shadow); padding: clamp(20px, 3.5vw, 32px);
}
.factsheet { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.factsheet dt { font-weight: 700; color: var(--deep-teal); }
.factsheet dd { margin: 0; overflow-wrap: anywhere; }
.press-list { margin: 0; padding-left: 1.2em; }
.press-list li { margin-bottom: 8px; }
.press-list li::marker { color: var(--orange); }
.press-trailer { margin-bottom: 24px; }
.press-trailer .cta { margin-top: 18px; }
.trailer-frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 900px; border-radius: 18px; overflow: hidden;
  border: 2px solid var(--deep-teal); background: var(--deep-teal);
}
.trailer-frame iframe, .trailer-play, .trailer-play img, .trailer-play video { display: block; width: 100%; height: 100%; max-width: none; border: 0; }
.trailer-play { padding: 0; background: none; cursor: pointer; color: inherit; text-decoration: none; }
.trailer-play img, .trailer-play video { object-fit: cover; }
.trailer-play-icon {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; translate: -50% -50%;
  border-radius: 50%; background: var(--orange); box-shadow: 0 5px 0 var(--deep-teal);
  transition: transform 0.2s ease;
}
.trailer-play-icon::after {
  content: ''; position: absolute; left: 34px; top: 26px;
  border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--creme);
}
.trailer-play:hover .trailer-play-icon, .trailer-play:focus-visible .trailer-play-icon { transform: scale(1.08); }
/* Negative offset: the frame's overflow clip would cut an outline drawn outside the button. */
.trailer-play:focus-visible { outline: 3px solid var(--orange); outline-offset: -4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trailer-note { font-size: 0.9rem; opacity: 0.75; margin: 8px 0 14px; }
.press-creators { margin-bottom: 56px; }
.press-creators .cta { margin-top: 18px; }
.press-media h2 { margin-top: 12px; }
.press-media .gallery { max-width: none; }
.press-download { margin: 16px 0 44px; font-weight: 700; }
.press-download a { color: var(--deep-teal); }
/* The wordmark's lower row is deep teal: it needs the paper, not the dark ground. */
.press-logo {
  background: var(--creme); border: 2px solid var(--deep-teal); border-bottom-width: 6px;
  border-radius: 28px; padding: clamp(24px, 5vw, 56px); display: flex; justify-content: center;
}

/* ---- motion ----
   Everything here is decoration over a page that reads without it: with
   reduced motion, or without JavaScript to add `.is-in`, the final state is
   what shows (see the block at the end and `site.js`). */
.js .reveal { opacity: 0; transform: translateY(46px) rotate(-2.5deg); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 1.4, 0.4, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .feature.reveal:nth-of-type(even) { transform: translateY(46px) rotate(2.5deg); }
.js .feature.reveal.is-in { transform: none; }
.js .gallery .reveal:nth-child(2) { transition-delay: 0.06s; }
.js .gallery .reveal:nth-child(3) { transition-delay: 0.12s; }
.js .gallery .reveal:nth-child(4) { transition-delay: 0.18s; }
.js .gallery .reveal:nth-child(6) { transition-delay: 0.06s; }
.js .gallery .reveal:nth-child(7) { transition-delay: 0.12s; }
.js .gallery .reveal:nth-child(8) { transition-delay: 0.18s; }

.stage-title .cta { animation: rise-in 0.8s 0.75s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.wordmark-hero { animation: stamp-in 0.7s 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.wordmark-flower { animation: sway 3.4s 1.1s ease-in-out infinite; }
.stamp { animation: stamp-drop 0.6s 1s cubic-bezier(0.2, 1.8, 0.4, 1) both, wobble 5s 2s ease-in-out infinite; }
.button-primary { animation: nudge 6s 3s ease-in-out infinite; }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } }
/* `translate`, not `transform`: the islands' transform belongs to --p, and an
   entrance animated through it would hold them in place against the scroll. */
@keyframes island-left { from { translate: -45vw 6vh; } }
@keyframes island-right { from { translate: 45vw 6vh; } }
@keyframes cue { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 3px; } }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.6) rotate(-6deg); } }
@keyframes stamp-drop { from { opacity: 0; transform: translateY(-30px) rotate(16deg) scale(1.3); } }
@keyframes wobble { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(1deg) translateY(-2px); } }
/* Two swings of unequal size, so it never ticks like a pendulum. */
@keyframes sway { 0%, 100% { rotate: 0deg; } 22% { rotate: 9deg; } 48% { rotate: -6deg; } 74% { rotate: 5deg; } 88% { rotate: -2deg; } }
@keyframes nudge {
  0%, 88%, 100% { transform: none; }
  91% { transform: rotate(-3deg) scale(1.04); }
  94% { transform: rotate(3deg) scale(1.04); }
  97% { transform: rotate(-1deg); }
}

@media (max-width: 640px) {
  .topbar nav a:not(.topbar-cta) { display: none; }
  /* Clear of the house pill that hangs below the topbar's rule. */
  .stage-title { top: 80px; }
  /* Each island takes two fifths of the frame, so two whole ones overlap on
     a portrait screen. Smaller, and each pushed a little past its own edge,
     they stand apart -- the outer tiles are what gets cut. */
  .stage-half { height: 50svh; }
  .stage-left { left: -11vw; }
  .stage-right { right: -11vw; }
  /* One line, low: wrapped to two it climbed onto the figures' feet. */
  .stage-cue { bottom: 10px; gap: 8px; padding: 5px 5px 5px 14px; font-size: min(0.7rem, 3vw); white-space: nowrap; }
  .stage-title .cta { gap: 10px; justify-content: center; }
  .stage-title .button { padding: 10px 14px; font-size: 0.82rem; }
  .stamp { white-space: normal; margin-bottom: 10px; }
  .cta { flex-direction: column; align-items: stretch; }
  .stage-title .cta { flex-direction: row; align-items: center; }
  .button { text-align: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .marquee { margin-top: 0; }
}

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