/* ============================================================
   Scratchbook: app typography, sky-blue collections, alpine navy.
   Gold belongs to the scratch foil and collection milestones.
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/Caveat-Latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --paper-deep: #E5EEF3;
  --card: #FFFFFF;
  --ink: #2B2A24;
  --muted: #566775;
  --line: #CCD9E3;
  --accent: #0066CC;
  --accent-deep: #004F9F;
  --gold: #D9A63C;
  --night: #101D2A;

  /* Region colors (match the app) */
  --r-alaska: #4E7CB2;
  --r-pacific: #398B88;
  --r-southwest: #C8722F;
  --r-rockies: #3E6B34;
  --r-midwest: #8A6844;
  --r-east: #7A5C9E;

  --font-display: "Space Grotesk", -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: "Caveat", cursive;

  --radius: 22px;
  --shadow: 0 2px 6px rgba(16, 40, 63, .04), 0 18px 44px rgba(16, 40, 63, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(20px, 5vw, 56px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-mark {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em;
}
.nav-mark img { border-radius: 8px; }
.nav-mark-sub { font-weight: 550; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
.nav-links a {
  text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink);
  opacity: .78; transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  opacity: 1 !important;
  background: var(--accent); color: #FFFFFF !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent-deep); }

/* ---------- Shared section bits ---------- */
section { padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 56px); }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -.02em;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-sub { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }

.scribble {
  font-style: normal;
  font-family: var(--font-hand); font-size: 1.7rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0;
}

/* ---------- Reveal / entrance animations ---------- */
.rise { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-inner { display: block; transform: translateY(110%); animation: lineUp .8s cubic-bezier(.2,.7,.15,1) forwards; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes lineUp { to { transform: none; } }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--rd, 0) * 110ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { background: var(--paper-deep); position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 6vw, 80px); }

/* faint topographic contour lines */
.hero-topo {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-radial-gradient(ellipse 90% 70% at 82% -12%,
    transparent 0px, transparent 56px,
    color-mix(in srgb, var(--accent) 9%, transparent) 56px,
    color-mix(in srgb, var(--accent) 9%, transparent) 57.5px);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
}

.hero-inner {
  position: relative;
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.5vw, 5rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -.045em;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 1.4rem; font-size: 1.13rem; color: var(--muted); max-width: 34rem; }

.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 2rem; flex-wrap: wrap; }

.store-link { display: inline-block; transition: transform .2s cubic-bezier(.2,.7,.2,1), filter .2s; }
.store-link:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 16px rgba(43,42,36,.25)); }
.store-link img { display: block; height: 52px; width: auto; }


.hero-trust {
  display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin-top: 2rem;
}
.hero-trust li {
  font-size: .8rem; font-weight: 500; color: var(--muted);
}
.hero-trust li + li::before {
  content: "·"; margin-right: 8px; color: var(--muted);
}

/* ---------- Hero scratch card ---------- */
.hero-scratch { position: relative; justify-self: center; }
.scratch-corner-pin {
  position: absolute; top: -44px; left: -44px; z-index: 4;
  width: clamp(100px, 11.5vw, 148px); aspect-ratio: 1;
  transform: perspective(500px) rotate(-12deg) rotateX(var(--pin-rx, 0deg)) rotateY(var(--pin-ry, 0deg));
  transition: transform .18s ease-out; pointer-events: none;
  filter: drop-shadow(0 3px 3px rgba(16,40,63,.16));
}
.scratch-pin-motion { position: relative; display: block; }
.scratch-pin-motion img { width: 100%; height: auto; }
.scratch-pin-shine {
  position: absolute; inset: 0; opacity: 0;
  background:
    radial-gradient(ellipse 18% 12% at var(--pin-light-x, 40%) var(--pin-light-y, 30%), rgba(255,250,231,.32), transparent),
    linear-gradient(120deg, transparent 37%, rgba(255,250,231,.25) 49%, transparent 61%);
  background-size: 100% 100%, 240% 100%;
  -webkit-mask: url("assets/wildlife/pin/ruby-throated-hummingbird.webp?v=1.18") center / contain no-repeat;
  mask: url("assets/wildlife/pin/ruby-throated-hummingbird.webp?v=1.18") center / contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .scratch-corner-pin.is-active .scratch-pin-motion { animation: pin-tilt 7s ease-in-out infinite; }
  .scratch-corner-pin.is-active .scratch-pin-shine { animation: pin-shine 7s ease-in-out infinite; }
}
@keyframes pin-tilt {
  0%, 100% { transform: perspective(450px) rotateX(4deg) rotateY(-8deg) rotate(-2deg); }
  50% { transform: perspective(450px) rotateX(-4deg) rotateY(8deg) rotate(2deg); }
}
@keyframes pin-shine {
  0%, 100% { background-position: center, 0% 50%; opacity: .25; }
  50% { background-position: center, 100% 50%; opacity: 1; }
}

.scribble-scratch {
  position: absolute; bottom: calc(100% + 5px); right: 12px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  line-height: 1; white-space: nowrap; pointer-events: none;
}
.scribble-arrow { width: 36px; height: 30px; flex: none; transform: translateY(6px); }

.scratch-card {
  position: relative; overflow: hidden;
  width: min(360px, 82vw);
  background: #57C0CD;
  color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px 24px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: background .55s ease;
}
.scratch-card.is-collected { background: #57C0CD; }
.scratch-scene {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transform: scale(1.12);
  transition: opacity .55s ease, transform .55s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.scratch-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.scratch-card.is-collected .scratch-scene { opacity: 1; transform: scale(1); }

.scratch-badge {
  position: relative; width: min(236px, 60vw); aspect-ratio: 1; margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(43,42,36,.18), inset 0 0 0 5px var(--card), inset 0 0 0 7px var(--line);
}
.scratch-badge img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; transform: scale(.8); object-fit: cover;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.scratch-badge.is-collected img { transform: scale(.975); }
#scratch-foil {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; pointer-events: none;
  transition: opacity .55s ease, transform .55s ease;
}
#scratch-foil.is-cleared { opacity: 0; transform: scale(1.25); }
.scratch-hit-area {
  position: absolute; inset: -10.17%; z-index: 2;
  cursor: grab; touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.scratch-hit-area:active { cursor: grabbing; }
.scratch-hit-area[aria-disabled="true"] { pointer-events: none; }
.scratch-hit-area:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.scratch-visit {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 14px; margin-top: 12px;
  background: #FFFFFF; border-radius: 999px; color: #216D79;
  font: 700 .65rem/1.4 var(--font-body);
  letter-spacing: .065em; text-transform: uppercase;
}
.scratch-visit svg { display: none; width: 12px; height: 12px; }
.scratch-visit.is-on svg { display: block; }

.scratch-meta { position: relative; margin-top: 20px; }
.scratch-card.is-collected .scratch-meta { color: #FFFFFF; }
.scratch-card.is-collected .scratch-tag { color: #FFFFFF; }
.scratch-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 7.7vw, 30px); line-height: 1.08; letter-spacing: -.025em; text-shadow: 0 1px 6px rgba(0,0,0,.15); }
.scratch-tag { color: #FFFFFF; font: 700 .7rem/1.5 var(--font-body); letter-spacing: .09em; text-transform: uppercase; margin-top: 5px; }

.scratch-next {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  margin-top: 14px;
  font: 600 .92rem var(--font-body); color: var(--accent);
  background: none; border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px; padding: 8px 18px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.scratch-next:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); border-color: var(--accent); }

.scratch-status {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  padding: 10px 0 32px; overflow: hidden; background: var(--paper-deep);
}
.marquee::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  /* Fade the badges into blue without masking the section's background. */
  background: linear-gradient(to right,
    var(--paper-deep), transparent 8%, transparent 92%, var(--paper-deep));
}
.marquee-track {
  display: flex; gap: 22px; width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track img {
  width: 84px; height: 84px; border-radius: 50%;
  box-shadow: 0 4px 14px rgba(43,42,36,.14);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.4);
}
.marquee-track img:hover { transform: scale(1.14) rotate(4deg); }

/* ---------- App showcase (real screenshots in device bezels) ---------- */
.showcase { background: var(--paper-deep); padding-bottom: clamp(48px, 6vw, 80px); }
.shelf {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(10px, 2vw, 26px);
  max-width: 1220px; margin: 0 auto; padding-top: 12px;
}
.device { width: clamp(150px, 16vw, 205px); flex-shrink: 1; min-width: 0; margin: 0; }
.device-frame { position: relative; }
/* The bezel PNG's transparent screen cutout sits at these offsets (measured). */
.device .screen {
  position: absolute; left: 5.1%; top: 2.2%; width: 89.8%; height: 95.6%;
  object-fit: cover; border-radius: 11% / 5%;
}
.device .bezel {
  position: relative; z-index: 2; width: 100%; height: auto; display: block;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(43, 42, 36, .22));
}
.device figcaption {
  position: relative; z-index: 2;
  text-align: center; font-size: .85rem; font-weight: 600;
  color: var(--muted); margin-top: 14px;
}
.shelf .device { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.shelf .device:nth-child(1) { transform: rotate(-3.5deg) translateY(12px); }
.shelf .device:nth-child(2) { transform: rotate(1.75deg) translateY(4px); }
.shelf .device:nth-child(4) { transform: rotate(-1.75deg) translateY(4px); }
.shelf .device:nth-child(5) { transform: rotate(3.5deg) translateY(12px); }
.shelf .device:hover { transform: none; z-index: 3; }

/* ---------- Inside the app (a look, not a replica) ---------- */
.inside { background: var(--paper); color: var(--ink); position: relative; }
.inside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: repeating-radial-gradient(ellipse 80% 60% at 12% 110%,
    transparent 0, transparent 48px,
    color-mix(in srgb, var(--accent) 10%, transparent) 48px,
    color-mix(in srgb, var(--accent) 10%, transparent) 49.5px);
}
.inside .section-title em { color: var(--accent); }
.inside .section-sub { color: var(--muted); }

.inside-stats {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(28px, 7vw, 88px);
  margin-bottom: clamp(34px, 5vw, 52px);
}
.inside-stat { text-align: center; }
.inside-num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 4.4rem); line-height: 1;
  letter-spacing: -.03em; color: var(--accent);
}
.inside-label {
  display: block; margin-top: 6px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

/* The same park in each selectable material style. */
.style-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.6fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.style-intro { max-width: 300px; }
.style-intro h3 {
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.style-intro > p:last-child {
  color: var(--muted);
  font-size: .94rem;
}
.style-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 16px);
}
.style-option {
  min-width: 0;
  padding: clamp(13px, 2vw, 18px) 12px 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 20px;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 8px 20px rgba(16,40,63,.08);
}
.style-option-foil { background: #E9EBEC; }
.style-option-pin { background: #D3E0C4; }
.style-option-patch { background: #B3BFCE; }
.style-option-sticker { background: #EBDDC3; }
.style-option img {
  width: clamp(84px, 9.5vw, 112px);
  height: clamp(84px, 9.5vw, 112px);
  margin: 0 auto 10px;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(23,37,28,.18));
}
.style-option-foil img {
  border-radius: 50%;
  box-shadow: 0 5px 8px rgba(23,37,28,.18);
}
.style-option figcaption { line-height: 1.25; }
.style-option strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -.01em;
}
.style-option span {
  display: block;
  margin-top: 3px;
  color: color-mix(in srgb, var(--ink) 85%, transparent);
  font-size: .7rem;
}
@media (prefers-reduced-motion: no-preference) {
  .style-option img { transition: transform .3s cubic-bezier(.2,.9,.3,1.4); }
  .style-option:hover img { transform: translateY(-4px) rotate(-2deg); }
}

/* ---------- Wildlife ---------- */
.wildlife { --g: var(--accent); background: var(--paper-deep); }

/* One species at a time, laid out like its detail screen in the app. */
.field-card {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: start;
  padding: clamp(22px, 4vw, 44px);
  background: var(--card); border: 1px solid var(--line); border-radius: 30px;
  box-shadow: var(--shadow);
}
.field-art {
  width: min(100%, 320px); justify-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.field-badge {
  width: min(100%, 320px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 26px;
  background: color-mix(in srgb, var(--g) 13%, var(--paper));
  transition: background .4s;
}
.field-badge img {
  width: 82%; height: 82%; object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(23,37,28,.2));
}
.field-badge[data-style="badge"] img { border-radius: 50%; }
.field-styles {
  width: 100%; display: flex; padding: 4px; gap: 2px;
  background: var(--paper-deep); border: 1px solid var(--line); border-radius: 999px;
}
.field-style {
  flex: 1; text-align: center;
  font: 600 .84rem var(--font-body); color: var(--muted);
  padding: 7px 16px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.field-style[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(43,42,36,.12); }

.field-group {
  display: inline-block; margin-bottom: 10px;
  padding: 4px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--g) 15%, transparent); color: var(--g);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.field-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.04; letter-spacing: -.025em;
  margin-bottom: 20px;
}
.field-facts { display: grid; gap: 16px; }
.field-details > summary { display: none; }
.field-facts dt {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3px;
}
.field-facts dd { font-size: 1rem; }
.field-tip { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--ink); }
.field-parks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.field-parks li {
  font-size: .82rem; font-weight: 550; padding: 3px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}

.wild-collection { max-width: 1080px; margin: clamp(40px, 6vw, 64px) auto 0; }
.wild-grid {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px 10px;
}
.wild-grid li { width: 104px; }
.wild-pick {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 6px 2px; border: 0; background: none; cursor: pointer;
  font: 600 .8rem/1.2 var(--font-body); color: var(--ink); text-align: center;
}
.wild-pick img {
  width: 82px; height: 82px; border-radius: 50%;
  box-shadow: 0 4px 12px rgba(43,42,36,.14);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.4), box-shadow .25s;
}
.wild-pick:hover img { transform: translateY(-3px) rotate(-3deg); }
.wild-pick[aria-pressed="true"] img { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--accent); }
.wild-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }

/* ---------- Share your poster ---------- */
.poster { background: var(--paper); border-block: 1px solid var(--line); }
.poster-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.poster .section-title { text-align: left; }
.poster-points { list-style: none; margin-top: 1.6rem; display: grid; gap: 10px; }
.poster-points li { position: relative; padding-left: 26px; font-weight: 550; }
.poster-points li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.poster-art { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; }
/* A pile of the share formats. script.js deals the top one to the back on
   click; data-pos 0 is on top. Posters past the fourth sit hidden under it. */
.poster-stack {
  position: relative; width: min(100%, 420px); aspect-ratio: 4 / 5;
  cursor: pointer;
}
.poster-stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(16,40,63,.08);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.poster-stack img[data-pos="0"] {
  z-index: 6; transform: rotate(2.5deg);
  box-shadow: 0 12px 28px -12px rgba(16,40,63,.16), 0 2px 6px rgba(16,40,63,.06);
}
.poster-stack img[data-pos="1"] { z-index: 5; transform: rotate(-4deg) translate(-7%, 1.5%); }
.poster-stack img[data-pos="2"] { z-index: 4; transform: rotate(7deg) translate(7%, 3%); }
.poster-stack img[data-pos="3"] { z-index: 3; transform: rotate(-8deg) translate(-10%, 4%); }
.poster-stack img[data-pos="4"],
.poster-stack img[data-pos="5"] { z-index: 2; transform: rotate(2deg); box-shadow: none; }
.poster-stack:hover img[data-pos="0"] { transform: rotate(0) translateY(-6px); }
.poster-next {
  margin-top: clamp(36px, 5vw, 52px);
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--accent);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.poster-next:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ---------- CTA ---------- */
.cta { background: var(--paper); }
.cta-panel {
  position: relative; max-width: 1080px; margin: 0 auto;
  border-radius: 30px; overflow: hidden;
  min-height: 420px; display: flex; align-items: center;
  box-shadow: var(--shadow);
}
.cta-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,29,42,.82) 20%, rgba(16,29,42,.42) 60%, rgba(16,29,42,.15));
}
.cta-content { position: relative; padding: clamp(36px, 6vw, 72px); color: var(--paper); }
.cta-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.04; letter-spacing: -.02em;
}
.cta-sub { margin: 14px 0 26px; font-size: 1.08rem; opacity: .85; }

/* ---------- Footer ---------- */
.footer { padding: 44px clamp(20px, 5vw, 56px) 36px; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.footer-mark { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.footer-mark img { border-radius: 6px; }
.footer-mark a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.footer-mark a:hover { text-decoration: underline; }
.footer-inner nav { display: flex; gap: 22px; }
.footer-inner nav a { font-size: .9rem; color: var(--muted); text-decoration: none; }
.footer-inner nav a:hover { color: var(--ink); }
.footer-fine { max-width: 1080px; margin: 18px auto 0; font-size: .78rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-scratch { margin-top: 16px; }
  .field-card { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .field-art, .field-notes { min-width: 0; }
  .poster-inner { grid-template-columns: 1fr; }
  .poster-copy { text-align: center; }
  .poster .section-title { text-align: center; }
  .poster-points { justify-content: center; text-align: left; }
  .poster-stack { width: min(76%, 360px); }
  .field-parks { justify-content: center; }
  .nav-mark-sub { display: none; }
  .showcase { padding-inline: 0; }
  .showcase .section-head { padding-inline: 20px; }
  .shelf {
    --shot-width: min(68vw, 260px);
    display: flex; justify-content: flex-start; align-items: flex-start; gap: 16px;
    overflow-x: auto; padding: 24px calc((100% - var(--shot-width)) / 2) 32px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf .device:nth-child(n) {
    width: var(--shot-width); flex: 0 0 auto;
    scroll-snap-align: center; transform: none;
  }
  .shelf.is-looping .device figcaption { opacity: .4; transition: opacity .2s; }
  .shelf.is-looping .device.is-current figcaption { opacity: 1; }
}
@media (max-width: 560px) {
  .poster-points { font-size: .9rem; line-height: 1.5; gap: 8px; }
  .poster-points li { padding-left: 18px; }
  .poster-points li::before {
    width: 7px; height: 7px; top: .5em;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent);
  }
  .field-style { padding-inline: clamp(6px, 2vw, 9px); }
  .field-card { gap: 20px; padding: 20px; }
  .field-art { width: min(100%, 260px); gap: 12px; }
  .field-group { display: none; }
  .field-name { font-size: 1.5rem; line-height: 1.15; margin-bottom: 12px; }
  .field-details > summary {
    display: list-item; width: fit-content; margin-inline: auto;
    color: var(--accent); font-size: .85rem; font-weight: 600; cursor: pointer;
  }
  .field-details[open] > summary { margin-bottom: 18px; }
  .field-facts { text-align: left; gap: 14px; }
  .field-facts .field-parks { justify-content: flex-start; }
  .wild-collection { margin-top: 24px; }
  .style-showcase { grid-template-columns: 1fr; gap: 20px; }
  .style-intro { max-width: 420px; text-align: center; margin-inline: auto; }
  .style-options { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-option { padding-inline: 8px; border-radius: 16px; }
  .style-option img { width: clamp(82px, 24vw, 112px); height: clamp(82px, 24vw, 112px); }
  .style-option span { font-size: .63rem; }
  .scribble-scratch { right: 10px; }
  .scratch-corner-pin { top: -34px; left: -18px; }
  .wild-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .wild-grid li { width: auto; min-width: 0; }
  .wild-pick img { width: clamp(40px, 12vw, 56px); height: auto; aspect-ratio: 1; }
  .wild-pick { font-size: clamp(.55rem, 2.4vw, .65rem); min-height: 72px; padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .line-inner { animation-duration: .01s; animation-delay: 0s; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .wild-pick img, .field-badge { transition: none; }
  .scratch-badge img, #scratch-foil, .scratch-visit,
  .scratch-card, .scratch-scene { transition: none; }
  .scratch-corner-pin { transform: rotate(-12deg); transition: none; }
}

/* Blue selection and visible keyboard focus follow the app controls. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
