/* ==========================================================================
   Landing page
   ========================================================================== */

.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); max-width: 780px; }
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head-row > div:first-child { display: grid; gap: 18px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -2; background: #cfd6d2 url('../img/hero-poster.webp') center / cover no-repeat; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }

.hero-fog {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%, #eef0ea 0%, #dfe5e1 60%, #cfd8d4 100%);
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-fog.is-on { opacity: .92; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgb(14 19 17 / .64), rgb(14 19 17 / .64)),   /* even over the whole video */
    linear-gradient(0deg, var(--ink) 0%, rgb(14 19 17 / 0) 26%),
    linear-gradient(180deg, rgb(14 19 17 / .55) 0%, rgb(14 19 17 / 0) 22%);
}

/* Desktop: character on the left, logo + pitch + buttons on the right */
.hero-inner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  grid-template-rows: 1fr auto auto auto 1fr;
  grid-template-areas:
    "char ."
    "char logo"
    "char sub"
    "char cta"
    "char .";
  column-gap: clamp(24px, 4vw, 64px);
  padding-top: calc(var(--header-top) + 16px);
}

.hero-character {
  grid-area: char;
  align-self: end;
  justify-self: center;
  /* always the whole figure: sized from the viewport height, never wider than its column */
  height: clamp(300px, calc(100svh - var(--header-top) - 60px), 800px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  margin-bottom: clamp(16px, 3vh, 40px);
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / .45));
  animation: bob 6s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(.6deg); }
}

.hero-stage { display: contents; }
.hero-tag { display: none; }

.hero-logo { grid-area: logo; margin: 0 0 22px; width: min(520px, 100%); }
.hero-logo img { width: 100%; filter: drop-shadow(0 10px 30px rgb(0 0 0 / .35)); }

/* The pitch, set in the game's font */
.hero-sub {
  grid-area: sub;
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--cream);
  text-shadow: 0 2px 16px rgb(0 0 0 / .6);
}
.hero-sub em { font-style: normal; color: var(--gold); }

.cta-row { grid-area: cta; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-note { color: var(--faint); font-size: .92rem; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  width: 24px;
  height: 38px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px rgb(246 241 228 / .45);
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cream);
  animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

@media (min-width: 1600px) {
  .hero-inner { max-width: 1480px; }
  .hero-logo { width: min(620px, 100%); }
  .hero-sub { font-size: 1.3rem; }
}

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

/* Portrait tablets and small screens: same side-by-side idea, sized from the width */
@media (max-width: 860px), (orientation: portrait) and (max-width: 1100px) {
  .hero-scrim {
    background:
      linear-gradient(0deg, var(--ink) 0%, rgb(14 19 17 / .82) 30%, rgb(14 19 17 / .62) 60%, rgb(14 19 17 / .55) 100%);
  }
  .hero-inner {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "char logo"
      "char sub"
      "char cta";
    align-content: center;
    column-gap: clamp(12px, 3vw, 32px);
    padding-top: calc(var(--header-top) + 20px);
    padding-bottom: 40px;
  }
  .hero-character {
    align-self: center;
    width: 100%;
    height: auto;
    max-height: 72svh;
    margin: 0;
  }
  .hero-logo { width: 100%; margin-bottom: 14px; align-self: end; }
  .hero-sub { font-size: clamp(.8rem, 2.2vw, 1.1rem); max-width: none; }
  .cta-row { margin-top: 24px; }
  .scroll-cue { display: none; }
}

/* Phones: logo top right, character pointing at "ROUND", big tagline beside him,
   then the button, then the rest of the pitch */
@media (max-width: 600px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "stage" "cta" "sub";
    align-content: center;
    padding-top: calc(var(--header-top) + 12px);
    padding-bottom: 32px;
  }

  /* Everything in here is sized in % of the stage width, so the finger lands on
     "ROUND" at every phone size. Measured from the art: the fingertip is at
     99.6% / 22.2% of character.webp, "ROUND" spans 23-81% / 64-96% of the logo.
     Character 35% wide; the group (character + logo) is centred with ~4.7% each side. */
  .hero-stage {
    grid-area: stage;
    position: relative;
    display: grid;
    grid-template-columns: 43.5% minmax(0, 1fr);  /* tagline lines up with the R of "ROUND" */
    align-content: start;
    width: 100%;
    aspect-ratio: 100 / 64;
    padding: 34% 4.7% 0 0;      /* top: tagline starts just under "ROUND" */
  }
  .hero-stage .hero-logo {
    grid-area: auto;            /* absolute children of a grid use their grid area as the box */
    position: absolute;
    top: 0;
    left: 25.3%;
    width: 70%;
    margin: 0;
  }
  .hero-stage .hero-character {
    grid-area: auto;
    position: absolute;
    top: 0;
    left: 4.7%;
    width: 35%;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 14.7% 0 0;          /* % of width: fingertip ends up just left of the R */
  }
  .hero-tag {
    display: block;
    grid-column: 2;
    margin: 15px 0 0;
    font-family: var(--font-display);
    font-size: clamp(.88rem, 4.725vw, .9rem);
    line-height: 1.12;
    letter-spacing: .02em;
    color: var(--cream);
    text-shadow: 0 3px 18px rgb(0 0 0 / .6);
  }

  .cta-row { width: 100%; margin-top: 20px; }
  .cta-row .btn { width: 100%; }
  /* the sticky bar and plain scrolling cover "the story" on phones */
  .cta-row .btn-ghost { display: none; }

  .hero-sub {
    justify-self: center;
    max-width: 38ch;
    margin-top: 36px;
    text-align: center;
    font-size: clamp(.74rem, 3.3vw, .9rem);
    line-height: 1.6;
    color: #d9d3c4;
  }
  .hero-sub em { display: none; }
}

/* Landscape phones: short screens, keep the whole figure in view */
@media (orientation: landscape) and (max-height: 520px) {
  .hero-inner { padding-top: calc(var(--header-top) + 8px); padding-bottom: 16px; }
  .hero-character { height: calc(100svh - var(--header-top) - 28px); min-height: 0; margin-bottom: 8px; }
  .hero-logo { width: min(260px, 100%); margin-bottom: 8px; }
  .hero-sub { font-size: .76rem; line-height: 1.5; }
  .cta-row { margin-top: 14px; }
  .btn-lg { min-height: 46px; padding: 10px 20px; }
  .cta-row .btn-ghost { display: none; }
  .scroll-cue { display: none; }
}

/* ---------- The loop ---------- */

.loop { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }

.loop-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  counter-reset: step;
}

.loop-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
}

.loop-step figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.loop-step figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.loop-step:hover figure img { transform: scale(1.04); }

.loop-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0;
  /* vertical middle of the 16:10 image (margin % is relative to width) */
  margin-top: calc(31.25% - 14px);
  right: calc(clamp(16px, 2.5vw, 28px) / -2 - 14px);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23221a06' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 0 0 6px var(--ink-2);
  z-index: 2;
}

.step-num { font-family: var(--font-display); color: var(--gold); font-size: .85rem; letter-spacing: .2em; }
.loop-step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.1; }
.loop-step p { color: var(--muted); }

.loop-return {
  position: relative;
  margin: 18px auto 0;
  height: 60px;
  color: rgb(236 184 72 / .55);
}
.loop-return-line { width: 100%; height: 100%; }
.loop-return-label {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--ink-2);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgb(236 184 72 / .4);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.loop-return-label svg { width: 18px; height: 18px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }

@media (max-width: 760px) {
  .loop-steps { grid-template-columns: 1fr; gap: 44px; }
  .loop-step:not(:last-child)::after {
    top: auto;
    margin-top: 0;
    bottom: -36px;
    right: auto;
    left: 50%;
    margin-left: -14px;
    transform: rotate(90deg);
  }
  .loop-return { height: 56px; margin-top: 28px; }
  .loop-return-line { display: none; }
  .loop-return-label { bottom: 50%; }
}

/* ---------- Features (bento) ---------- */

.features { background: var(--ink-2); }

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
  gap: clamp(14px, 1.8vw, 20px);
}

.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  isolation: isolate;
}

.tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s var(--ease);
}
.tile:hover > img { transform: scale(1.04); }

.tile > img + .tile-body::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(10 14 12 / .96) 0%, rgb(10 14 12 / .86) 45%, rgb(10 14 12 / .35) 75%, rgb(10 14 12 / .05) 100%);
}

.tile-body { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 10px; justify-items: start; }
.tile h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.12; }
.tile p { color: #cfc9ba; font-size: 1rem; max-width: 46ch; }

.tile-hero { grid-column: span 2; grid-row: span 2; }
/* taller than the tile so the in-game HUD at the bottom of the screenshot is cropped away */
.tile-hero > img { height: 122%; object-position: center top; }
.tile-hero > img + .tile-body::before { background: linear-gradient(0deg, rgb(10 14 12 / .95) 0%, rgb(10 14 12 / .6) 35%, rgb(10 14 12 / 0) 65%); }
.tile-hero h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.tile-hero p { font-size: 1.1rem; }


/* HUD recreation */
.tile-hud {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  background:
    radial-gradient(120% 80% at 50% 0%, rgb(236 184 72 / .12) 0%, rgb(236 184 72 / 0) 60%),
    var(--panel);
}
.hud { padding: 26px 26px 0; display: grid; gap: 14px; font-family: var(--font-display); }
.hud-toast { display: flex; align-items: center; gap: 10px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); animation: toast 5s ease-in-out infinite; }
.hud-toasts { display: grid; gap: 6px; }
.hud-toast-cold { animation-delay: -2.5s; }
.hud-snow {
  width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%237fd3f0' stroke-width='2.4' stroke-linecap='round' d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hud-stomach {
  width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238d6ae3' d='M9 2h3v4c0 1.5 1 2 2.5 2C18 8 21 10.5 21 14.5 21 19 17.5 22 13 22c-4 0-7-2.5-7-6 0-2 1.2-3.2 2.8-3.2 1.4 0 2.2.9 2.2 2 0 .8.5 1.2 1.2 1.2 1 0 1.8-.9 1.8-2.3C14 12 12.5 11 10.5 11 9.5 11 9 10 9 8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes toast { 0%, 100% { opacity: .35; } 20%, 80% { opacity: 1; } }
.hud-health { display: flex; align-items: center; gap: 12px; }
.hud-num { font-size: 1.9rem; color: var(--gold); line-height: 1; min-width: 2.2ch; }
.hud-bar {
  position: relative;
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: #1a1a1a;
  box-shadow: 0 0 0 2px #efe9da;
  overflow: hidden;
  display: flex;
}
.hud-fill { width: 62%; background: #e8b73c; animation: drain 7s ease-in-out infinite; }
@keyframes drain { 0%, 100% { width: 62%; } 50% { width: 50%; } }
.hud-hunger {
  width: 10%;
  margin-left: auto;
  background:
    repeating-linear-gradient(45deg, rgb(0 0 0 / .35) 0 3px, transparent 3px 8px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / .35) 0 3px, transparent 3px 8px),
    #7b56d8;
}
.hud-cold {
  width: 20%;
  background:
    repeating-linear-gradient(45deg, rgb(0 0 0 / .3) 0 3px, transparent 3px 8px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / .3) 0 3px, transparent 3px 8px),
    #4fb6dc;
}
.hud-slots { display: flex; gap: 8px; justify-content: flex-end; }
.hud-slots span { width: 44px; height: 44px; border-radius: 9px; background: #151515; opacity: .75; }
.hud-slots .is-active { box-shadow: 0 0 0 2.5px #e8b73c; opacity: 1; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-hero { grid-column: span 2; grid-row: span 1; min-height: 420px; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile-hero { grid-column: auto; min-height: 380px; }
  .tile { min-height: 300px; }
  .tile-hud { min-height: 0; }
}

/* ---------- Mid CTA band ---------- */

.cta-band {
  background:
    linear-gradient(90deg, rgb(236 184 72 / .12), rgb(141 106 227 / .12)),
    var(--ink);
  border-block: 1px solid var(--line);
  padding: 34px 0;
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.cta-band-text { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.2; }
.cta-band-text span { color: var(--muted); display: block; font-family: var(--font-body); font-size: 1.05rem; margin-top: 6px; }

@media (max-width: 520px) { .cta-band-inner .btn { width: 100%; } }

/* ---------- Gallery ---------- */

.gallery { background: var(--ink); overflow: hidden; }

.gallery-controls { display: flex; gap: 10px; }

.gallery-track {
  list-style: none;
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 720px);
  gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding: 4px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 24px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track li { scroll-snap-align: start; }

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .3s; }
.shot:hover img { transform: scale(1.035); }

@media (max-width: 600px) {
  .gallery-controls { display: none; }
  .gallery-track { grid-auto-columns: 86vw; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgb(8 10 9 / .96);
  color: var(--cream);
}
.lightbox::backdrop { background: rgb(0 0 0 / .7); }
.lightbox[open] { display: grid; place-items: center; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }

.lightbox-figure { display: grid; justify-items: center; padding: 70px clamp(16px, 7vw, 100px); max-width: 100%; }
.lightbox-figure img { max-width: min(1400px, 100%); max-height: calc(100dvh - 140px); border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgb(0 0 0 / .6); transition: opacity .25s ease; }
.lightbox.is-loading .lightbox-figure img { opacity: 0; }

.lightbox-count {
  position: absolute;
  top: 26px;
  left: 24px;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--muted);
}

.lightbox-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 3px solid rgb(246 241 228 / .15);
  border-top-color: var(--gold);
  opacity: 0;
  transition: opacity .2s;
  animation: spin-cw .8s linear infinite;
  pointer-events: none;
}
.lightbox.is-loading .lightbox-spinner { opacity: 1; transition-delay: .15s; }
@keyframes spin-cw { to { transform: rotate(360deg); } }

.lightbox-close { position: absolute; top: 16px; right: 16px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox-prev { left: clamp(8px, 2vw, 28px); }
.lightbox-next { right: clamp(8px, 2vw, 28px); }

@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; translate: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
  .lightbox-figure { padding: 60px 12px 90px; }
}

/* ---------- Wiki teaser ---------- */

.wiki-teaser { background: var(--ink-2); border-top: 1px solid var(--line); }

.wiki-teaser-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.wiki-teaser-copy { display: grid; gap: 20px; justify-items: start; }

.wiki-chips {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.wiki-chips a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.wiki-chips a:hover { background: var(--panel-2); color: var(--gold); transform: translateY(-2px); }
.chip-k { color: var(--gold); font-size: .72rem; letter-spacing: .1em; opacity: .85; }

@media (max-width: 860px) {
  .wiki-teaser-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .wiki-chips { gap: 8px; }
  .wiki-chips a { gap: 8px; padding: 14px 12px; font-size: .84rem; }
}
/* longer Ukrainian labels ("Кооператив") on the narrowest phones */
@media (max-width: 360px) {
  .wiki-chips a:lang(uk) { gap: 6px; padding: 14px 10px; font-size: .74rem; }
}

/* ---------- Final CTA ---------- */

.final-cta {
  position: relative;
  padding: clamp(90px, 12vw, 160px) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.final-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--ink) 0%, rgb(14 19 17 / .6) 40%, rgb(14 19 17 / .85) 100%),
    linear-gradient(90deg, rgb(14 19 17 / .2) 0%, rgb(14 19 17 / .9) 60%),
    url('../img/frame-mainstreet.webp') center 40% / cover no-repeat;
}

.final-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: clamp(20px, 4vw, 60px);
}

.final-character {
  width: min(100%, 440px);
  justify-self: center;
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / .5));
}

.final-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
  align-self: center;
  padding-bottom: clamp(40px, 8vw, 110px);
}
.final-title { font-size: clamp(2.8rem, 8vw, 6rem); }

@media (max-width: 760px) {
  .final-inner { grid-template-columns: 1fr; }
  .final-copy { order: -1; padding-bottom: clamp(60px, 14vw, 90px); }
  .final-character { display: none; }
  .final-copy .btn { width: 100%; }
}

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: rgb(25 33 30 / .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--line-strong), 0 16px 40px rgb(0 0 0 / .5);
  transform: translateY(150%);
  transition: transform .4s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta-logo { height: 30px; width: auto; }

@media (max-width: 760px) {
  .sticky-cta { display: flex; }
}
@media (max-width: 340px) {
  .sticky-cta-logo { display: none; }
  .sticky-cta .btn { width: 100%; }
}

/* Very narrow phones (320–360px): keep big buttons inside the screen */
@media (max-width: 360px) {
  .btn-lg { padding: 14px 16px; font-size: .88rem; gap: 8px; }
  .btn-lg .arrow { display: none; }
}
