/* Shrek 2 Remastered landing page.
   Below 900px the page is a stacked phone layout. From 900px up it reproduces KWM's
   2000px-wide mock at the browser's width: --u is one mock pixel, so mock coordinates
   can be used directly. */

@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-latin-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Condensed";
  src: url("/fonts/roboto-condensed-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #f8e9cc;
  --card: #feeecc;
  --ink: #4b070e;
  --forest: #1e3618;
  --forest-deep: #16220f;
  --moss: #5a6630;
  --floor: #4f593a;
  --wood: #6f4d26;
  --lime: #cddd06;
  --play: #ff0000;
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-condensed: "Roboto Condensed", "Arial Narrow", sans-serif;
  --cream-text-shadow:
    0.025em 0.025em 0 #4a2a12, -0.025em 0.025em 0 #4a2a12,
    0.025em -0.025em 0 #4a2a12, -0.025em -0.025em 0 #4a2a12,
    0 0.06em 0.12em rgb(20 10 0 / 0.65);
}

[data-state="announce"] [data-state-only="launch"],
[data-state="launch"] [data-state-only="announce"],
[hidden] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--forest-deep);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.page {
  position: relative;
  overflow-x: clip;
  container-type: inline-size;
  --u: 0.05cqw;
}

/* ── Shared components ─────────────────────────────────────────────────── */

.btn-wood {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35em 0.9em 0.4em;
  border: 0.1em solid var(--lime);
  border-radius: 0.22em;
  background: var(--wood) url("/images/art/button-wood.webp") center / cover;
  box-shadow: inset 0 0 0 0.06em rgb(60 35 10 / 0.7), 0 0.12em 0.3em rgb(0 0 0 / 0.45);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 0.05em 0.05em rgb(30 15 5 / 0.85);
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-wood:hover {
  filter: brightness(1.1);
  transform: translateY(-0.04em);
}

.edge {
  position: absolute;
  max-width: none;
  pointer-events: none;
}

.video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #0d0d0d;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.45);
}

.video-poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-title {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding: 0.7em 0.9em 1.4em;
  background: linear-gradient(rgb(0 0 0 / 0.7), transparent);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  aspect-ratio: 1.42;
  border-radius: 22%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 2l5 3-5 3z' fill='%23fff'/%3E%3C/svg%3E") center / 46% no-repeat,
    var(--play);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.4);
  transform: translate(-50%, -50%);
  transition: filter 0.15s ease;
}

.video-poster:hover .video-play {
  filter: brightness(0.85);
}

.video-soon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  padding: 0.45em 1em;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.72);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.video-poster[aria-disabled="true"] {
  cursor: default;
}

.video-poster[aria-disabled="true"] .video-play {
  display: none;
}

.video-poster[aria-disabled="true"] .video-soon {
  display: block;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Header (phone) ────────────────────────────────────────────────────── */

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 18px;
  background: linear-gradient(rgb(18 22 46 / 0.8), rgb(18 22 46 / 0));
}

.brand img {
  width: 116px;
}

.btn-header {
  margin-left: auto;
  font-size: 15px;
}

.nav-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(248 233 204 / 0.55);
  border-radius: 8px;
  background: rgb(0 0 0 / 0.35);
  color: var(--cream);
  cursor: pointer;
}

.nav-panel {
  position: absolute;
  top: calc(100% - 8px);
  right: 12px;
  left: 12px;
  display: none;
  padding: 10px 18px 18px;
  border-radius: 10px;
  background: rgb(26 36 18 / 0.97);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.5);
}

.site-header.is-open .nav-panel {
  display: block;
}

.nav-links,
.social,
.platforms,
.shorts,
.feature-list,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgb(248 233 204 / 0.15);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.social img {
  width: 40px;
}

/* ── Hero (phone) ──────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: calc(100cqw * 1520 / 1430) 16px 36px;
  background: var(--floor);
  text-align: center;
}

.hero-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
}

.hero-content {
  position: relative;
}

.availability {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-shadow: var(--cream-text-shadow);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 16px 3%;
  margin-top: 18px;
}

/* --w is the logo's width in the mock, so the logos keep KWM's relative sizes. */
/* Two rows of three on phones; 608 is the widest row's summed --w, so a fourth logo never fits. */
.platforms li {
  flex: 0 1 calc(var(--w) / 608 * 78%);
}

.platforms img {
  width: 100%;
}

.tagline {
  margin: 28px 0 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: var(--cream-text-shadow);
}

/* ── Storybook (phone) ─────────────────────────────────────────────────── */

.intro {
  position: relative;
  z-index: 1;
  padding: 28px 16px 36px;
  background: var(--moss) url("/images/art/moss-tile.webp") center / 300px auto;
}

.intro-art,
.edge-snail {
  display: none;
}

.storybook {
  padding: 22px 20px 24px;
  border: 5px solid #6a4423;
  border-radius: 10px;
  background: #d9bf95 url("/images/art/parchment.webp") center / cover;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.35), inset 0 0 40px rgb(110 70 30 / 0.3);
  color: var(--ink);
}

.storybook-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

.storybook-inset {
  width: 100%;
  margin: 18px 0;
  border-radius: 3px;
}

.storybook-text {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
}

/* ── Media (phone) ─────────────────────────────────────────────────────── */

.media {
  position: relative;
  isolation: isolate;
  padding: 32px 16px 44px;
  background: var(--moss) url("/images/art/moss-tile.webp") top center / 300px auto;
}

.media-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Fades the swamp into the leafy wallpaper below, behind the videos and carousel. */
.media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: max(160px, calc(600 * var(--u)));
  background: linear-gradient(transparent, var(--forest));
  content: "";
  pointer-events: none;
}

.videos {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.video-row .video-title {
  font-size: 12px;
}

.edge-donkey {
  display: none;
}

.shorts {
  display: grid;
  grid-auto-columns: 40%;
  grid-auto-flow: column;
  gap: 10px;
  margin: 18px -16px 0;
  padding: 0 16px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
}

.video-short {
  aspect-ratio: 9 / 16;
  scroll-snap-align: start;
}

.video-short .video-title {
  font-size: 12px;
}

.video-short .video-play {
  width: 48px;
}

/* Frame art is 1568 × 980 around a 1352 × 761 window, 102 mock px below its top.
   Its bars span 1456 × 890 mock px, starting 64 px above the window. */
.gallery {
  position: relative;
  margin: calc(28px + 100cqw * 0.88 * 102 / 1352) -16px 0;
}

/* Shadow under the frame's bars. It stays below the slides so it never darkens a screenshot. */
.gallery::before {
  position: absolute;
  top: calc(-100cqw * 0.88 * 64 / 1352);
  left: calc(50% - 100cqw * 0.88 * 728 / 1352);
  z-index: 0;
  width: calc(100cqw * 0.88 * 1456 / 1352);
  height: calc(100cqw * 0.88 * 890 / 1352);
  box-shadow: 0 8px 22px 4px rgb(0 0 0 / 0.65);
  content: "";
  pointer-events: none;
}

.gallery-track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  padding-inline: 6cqw;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 88cqw;
  aspect-ratio: 1352 / 761;
  scroll-snap-align: center;
}

.slide-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-frame {
  position: absolute;
  top: calc(-100cqw * 0.88 * 102 / 1352);
  left: calc(50% - 100cqw * 0.88 * 1568 / 1352 / 2);
  z-index: 2;
  width: calc(100cqw * 0.88 * 1568 / 1352);
  max-width: none;
  pointer-events: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 64px;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  cursor: pointer;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.6));
  transform: translateY(-50%);
}

.gallery-arrow svg {
  width: 60%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-prev {
  left: 0;
}

.gallery-next {
  right: 0;
}

/* ── Features (phone) ──────────────────────────────────────────────────── */

.forest {
  position: relative;
  background: var(--forest) url("/images/art/leaves.svg") center top / cover no-repeat;
}

.forest::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: max(80px, calc(260 * var(--u)));
  background: linear-gradient(var(--forest), transparent);
  content: "";
  pointer-events: none;
}

.features,
.cta {
  position: relative;
}

.features {
  padding: 40px 16px 44px;
}

.divider {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92%;
  transform: translateX(-50%);
}

.feature-list {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.feature {
  display: grid;
  overflow: hidden;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
}

.feature > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-text {
  padding: 18px 18px 22px;
}

.feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.feature h3::after {
  display: block;
  width: 3.7em;
  height: 0.52em;
  margin-top: 0.35em;
  background: currentColor;
  content: "";
  -webkit-mask: url("/images/art/flourish.webp") left center / contain no-repeat;
  mask: url("/images/art/flourish.webp") left center / contain no-repeat;
}

.feature p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

/* ── Closing call to action (phone) ────────────────────────────────────── */

.cta {
  padding-top: 36px;
  text-align: center;
}

.cta-title {
  margin: 0 auto;
  padding: 0 16px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: var(--cream-text-shadow);
}

.cta-big {
  display: block;
  font-size: 46px;
  line-height: 1.05;
}

.scene {
  position: relative;
  margin-top: 48px;
  aspect-ratio: 2000 / 660;
}

.scene-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-fiona {
  position: absolute;
  top: calc(-64 / 660 * 100%);
  left: calc(1383 / 2000 * 100%);
  z-index: 2;
  width: calc(617 / 2000 * 100%);
}

.btn-cta {
  position: absolute;
  top: calc(448 / 660 * 100%);
  left: calc(1008 / 2000 * 100%);
  z-index: 3;
  min-width: max(30.4%, 150px);
  min-height: max(30.6%, 48px);
  font-size: 19px;
  transform: translate(-50%, -50%);
}

.btn-cta:hover {
  transform: translate(-50%, -50%) translateY(-0.04em);
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 44px 20px 52px;
  background: var(--forest-deep);
  color: rgb(248 233 204 / 0.85);
  font-size: 14px;
  text-align: center;
}

.footer-aspyr {
  display: inline-block;
  vertical-align: middle;
}

.footer-aspyr img {
  width: 110px;
}

.footer-rating {
  display: inline-block;
  height: 84px;
  width: auto;
  margin-left: 22px;
  vertical-align: middle;
}

.footer-legal {
  max-width: 720px;
  margin: 16px auto;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

/* ── Sign-up (footer band, or inside the dialog in modal mode) ─────────── */

.signup {
  max-width: 600px;
  margin: 0 auto 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgb(248 233 204 / 0.15);
}

.signup:focus {
  outline: none;
}

.signup-title {
  margin: 0 0 16px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.signup-form {
  display: grid;
  gap: 12px;
}

.signup-form input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 2px solid rgb(248 233 204 / 0.6);
  border-radius: 8px;
  background: rgb(0 0 0 / 0.25);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
}

.signup-form input[type="email"]::placeholder {
  color: rgb(248 233 204 / 0.6);
}

.signup-submit {
  min-height: 50px;
  font-size: 19px;
  cursor: pointer;
}

.signup-submit:disabled {
  filter: grayscale(0.4) brightness(0.85);
  cursor: progress;
}

.signup-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.signup-consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--lime);
}

.signup-consent a {
  color: inherit;
  white-space: nowrap;
}

.signup-status {
  margin: 0;
  font-weight: 700;
}

.signup-dialog {
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  padding: 40px 28px 26px;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.55);
  color: var(--ink);
}

.signup-dialog::backdrop {
  background: rgb(10 14 8 / 0.72);
}

html:has(.signup-dialog[open]) {
  overflow: hidden;
}

.signup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.signup-dialog .signup {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.signup-dialog .signup-title {
  color: var(--ink);
}

.signup-dialog .signup-form input[type="email"] {
  border-color: rgb(75 7 14 / 0.45);
  background: #fffaf0;
  color: var(--ink);
}

.signup-dialog .signup-form input[type="email"]::placeholder {
  color: rgb(75 7 14 / 0.55);
}

/* ── Desktop: the mock at the browser's width ──────────────────────────── */

@media (min-width: 900px) {
  .site-header {
    display: block;
    height: calc(330 * var(--u));
    padding: 0;
    background: none;
  }

  .brand {
    position: absolute;
    top: calc(61 * var(--u));
    left: calc(70 * var(--u));
  }

  .brand img {
    width: calc(405 * var(--u));
  }

  .nav-toggle {
    display: none;
  }

  .nav-panel {
    position: absolute;
    top: calc(155 * var(--u));
    right: auto;
    left: calc(519 * var(--u));
    display: flex;
    align-items: center;
    gap: calc(52 * var(--u));
    height: calc(76 * var(--u));
    padding: 0;
    background: none;
    box-shadow: none;
  }

  /* Fixed to KWM's nav slot so the social icons stay at x 1231 whatever the font's width. */
  .nav-links {
    display: flex;
    justify-content: space-between;
    gap: calc(24 * var(--u));
    width: calc(660 * var(--u));
  }

  .nav-links a {
    padding: 0;
    border: 0;
    font-size: max(12px, calc(26 * var(--u)));
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgb(0 0 0 / 0.55);
  }

  .nav-links a:hover {
    color: var(--lime);
  }

  .social {
    gap: calc(5 * var(--u));
    margin: 0;
  }

  .social img {
    width: calc(74 * var(--u));
  }

  .btn-header {
    position: absolute;
    top: calc(155 * var(--u));
    left: calc(1673 * var(--u));
    min-width: calc(252 * var(--u));
    height: calc(73 * var(--u));
    margin: 0;
    padding: 0 0.45em;
    font-size: calc(40 * var(--u));
  }

  /* Hero: mock y 0–2340 */
  .hero {
    aspect-ratio: 2000 / 2340;
    padding: 0;
  }

  .hero-art {
    height: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-content {
    position: absolute;
    top: calc(1574 * var(--u));
    right: 0;
    left: 0;
  }

  .availability {
    font-size: calc(118 * var(--u));
  }

  .platforms {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    width: calc(1560 * var(--u));
    margin: calc(48 * var(--u)) auto 0;
  }

  .platforms li {
    flex: none;
    width: calc(var(--w) * var(--u));
  }

  .platforms a {
    display: block;
    transition: transform 0.15s ease;
  }

  .platforms a:hover {
    transform: translateY(calc(-6 * var(--u)));
  }

  .tagline {
    margin-top: calc(137 * var(--u));
    font-size: calc(122 * var(--u));
  }

  .tagline-line {
    display: block;
  }

  /* Storybook: mock y 2340–3819, text set on the book's pages */
  .intro {
    aspect-ratio: 2000 / 1479;
    padding: 0;
    background: none;
  }

  .intro-art {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .storybook {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  /* Grows upward from just above the map (mock y 2800), so a longer or shorter
     headline never leaves a gap over the image. */
  .storybook-title {
    position: absolute;
    bottom: calc(1019 * var(--u));
    left: calc(269 * var(--u));
    width: calc(702 * var(--u));
    font-size: calc(43 * var(--u));
    line-height: 1.28;
    text-wrap: balance;
  }

  .storybook-inset {
    display: none;
  }

  .storybook-text {
    position: absolute;
    top: calc(91 * var(--u));
    left: calc(1066 * var(--u));
    width: calc(636 * var(--u));
    font-size: calc(49 * var(--u));
    line-height: 1.306;
  }

  /* The last lines wrap around the snail's shell; the polygon is its left edge,
     traced from snail.webp's alpha, in this 150 × 930 mock px box. */
  .storybook-text::before {
    content: "";
    float: right;
    width: calc(150 * var(--u));
    height: calc(930 * var(--u));
    shape-outside: polygon(100% 0, 100% 75%, 77% 78.5%, 55% 80.5%, 40% 83.5%, 30% 88%, 21% 93%, 17% 100%, 100% 100%);
    shape-margin: calc(14 * var(--u));
  }

  .edge-snail {
    top: calc(779 * var(--u));
    left: calc(1353 * var(--u));
    z-index: 2;
    display: block;
    width: calc(647 * var(--u));
  }

  /* Media: overlaps the storybook's faded bottom edge by 110 mock px */
  .media {
    margin-top: calc(-110 * var(--u));
    padding: calc(110 * var(--u)) 0 calc(244 * var(--u));
    background-size: calc(600 * var(--u)) auto;
  }

  .media-bg {
    display: block;
  }

  .videos {
    width: calc(1361 * var(--u));
    max-width: none;
  }

  .video {
    border-radius: calc(8 * var(--u));
  }

  .video-title {
    font-size: max(12px, calc(30 * var(--u)));
  }

  .video-play {
    width: calc(120 * var(--u));
  }

  .video-soon {
    font-size: max(13px, calc(34 * var(--u)));
  }

  .video-row {
    gap: calc(23 * var(--u));
    margin-top: calc(21 * var(--u));
  }

  .video-row .video-title {
    font-size: max(11px, calc(26 * var(--u)));
  }

  .video-row .video-play {
    width: calc(96 * var(--u));
  }

  .edge-donkey {
    top: calc(412 * var(--u));
    left: calc(-320 * var(--u));
    display: block;
    width: calc(308 * var(--u));
  }

  .shorts {
    display: flex;
    justify-content: center;
    gap: calc(40 * var(--u));
    margin: calc(70 * var(--u)) 0 0;
    padding: 0;
    overflow: visible;
  }

  .video-short {
    width: calc(300 * var(--u));
  }

  .video-short .video-title {
    font-size: max(11px, calc(26 * var(--u)));
  }

  .video-short .video-play {
    width: calc(90 * var(--u));
  }

  /* Gallery: frame window 1352 × 761 mock px, neighbors peek in 113 px away */
  .gallery {
    margin: calc(263 * var(--u)) 0 0;
  }

  .gallery-track {
    gap: calc(113 * var(--u));
    padding-inline: calc(324 * var(--u));
  }

  .slide {
    flex-basis: calc(1352 * var(--u));
  }

  .gallery::before {
    top: calc(-64 * var(--u));
    left: calc(271 * var(--u));
    width: calc(1456 * var(--u));
    height: calc(890 * var(--u));
    box-shadow: 0 calc(30 * var(--u)) calc(72 * var(--u)) calc(14 * var(--u)) rgb(0 0 0 / 0.72);
  }

  .gallery-frame {
    top: calc(-102 * var(--u));
    left: calc(211 * var(--u));
    width: calc(1568 * var(--u));
  }

  .gallery-arrow {
    width: calc(112 * var(--u));
    height: calc(194 * var(--u));
  }

  .gallery-arrow svg {
    stroke-width: 6;
  }

  .gallery-prev {
    left: calc(29 * var(--u));
  }

  .gallery-next {
    right: calc(23 * var(--u));
  }

  /* Leaf pattern as placed in the mock: 2860 mock px wide, from x -431, y -21. */
  .forest {
    background-position: calc(-431 * var(--u)) calc(-21 * var(--u));
    background-size: calc(2860 * var(--u)) auto;
  }

  /* Features: mock y 6240–8935 */
  .features {
    padding: calc(97 * var(--u)) 0 0;
  }

  .divider {
    top: calc(-33 * var(--u));
    left: calc(301 * var(--u));
    z-index: 3;
    width: calc(1394 * var(--u));
    transform: none;
  }

  .feature-list {
    gap: calc(55 * var(--u));
    width: calc(1717 * var(--u));
    max-width: none;
  }

  .feature {
    grid-template-columns: calc(849 * var(--u)) 1fr;
    min-height: calc(472 * var(--u));
    border-radius: calc(50 * var(--u));
  }

  .feature:nth-child(even) {
    grid-template-columns: 1fr calc(844 * var(--u));
  }

  .feature:nth-child(even) > img {
    order: 2;
  }

  .feature > img {
    height: 100%;
    aspect-ratio: auto;
  }

  .feature-text {
    align-self: center;
    padding: calc(56 * var(--u)) calc(60 * var(--u)) calc(56 * var(--u)) calc(52 * var(--u));
  }

  .feature h3 {
    font-size: max(18px, calc(50 * var(--u)));
  }

  .feature p {
    margin-top: calc(18 * var(--u));
    font-size: max(15px, calc(36 * var(--u)));
  }

  /* Closing call to action: mock y 8935–10100 */
  .cta {
    padding-top: calc(90 * var(--u));
  }

  .cta-title {
    max-width: calc(1600 * var(--u));
    padding: 0;
    font-size: calc(80 * var(--u));
    line-height: 1.2;
  }

  .cta-big {
    font-size: calc(158 * var(--u));
  }

  .cta-line {
    display: block;
  }

  .scene {
    margin-top: calc(-32 * var(--u));
  }

  .btn-cta {
    min-width: calc(608 * var(--u));
    min-height: calc(202 * var(--u));
    font-size: calc(92 * var(--u));
  }

  .site-footer {
    padding: calc(80 * var(--u)) 20px calc(90 * var(--u));
  }

  .signup-form {
    grid-template-columns: 1fr auto;
  }

  .signup-submit {
    padding-inline: 1.2em;
  }

  .signup-consent,
  .signup-status {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
