/* ChickenShip: thisischickenship.com
   Static rebuild of the WordPress site. Cartoon-outline look taken from David
   Feiss's line art: thick ink borders, hard offset shadows, yolk-yellow display
   type on a drifting galaxy. Every size is fluid (clamp), so nothing jumps
   between breakpoints. Motion is transform/opacity only and stops entirely
   under prefers-reduced-motion. */

:root {
  --ink: #120d22;
  --night: #140f33;
  --night-2: #1d1648;
  --violet: #3a2a7c;
  --yolk: #ffe21f;
  --yolk-deep: #e9c300;
  --red: #e0162f;
  --sunset: #f28b24;
  --cream: #fff7e6;
  --text: #f4efff;
  --muted: #c9c0e8;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --display: "Road Rage", "Impact", "Arial Black", sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.88rem, 0.84rem + 0.2vw, 0.98rem);
  --step-0: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  --step-2: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  --step-3: clamp(2.1rem, 1.4rem + 3.4vw, 4.2rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 var(--step-0)/1.65 var(--body);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--yolk); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.1; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yolk); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 800; }
.skip:focus { left: 8px; }

/* ---------- display type: the wordmark's face ---------- */
.display {
  font: 400 var(--step-3)/1 var(--display);
  letter-spacing: 0.02em;
  color: var(--yolk);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink), 0 0 28px rgba(255, 226, 31, 0.25);
}
.display--sm { font-size: var(--step-2); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--cream); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.75em 1.35em; border: var(--line); border-radius: 999px;
  font: 800 var(--step-0)/1.2 var(--body); text-decoration: none; text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--yolk { background: var(--yolk); color: var(--ink); }
.btn--yolk:hover { color: var(--ink); background: #fff07a; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { color: #fff; background: #f2334a; }
.btn--ghost { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: var(--text); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.round-btn {
  width: 46px; height: 46px; border-radius: 50%; border: var(--line);
  background: var(--yolk); color: var(--ink); font: 800 1.6rem/1 var(--body);
  box-shadow: 3px 3px 0 var(--ink); cursor: pointer; transition: transform 0.15s;
}
.round-btn:hover { transform: translate(-1px, -2px); }

/* ---------- header ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; }
/* The frosted bar lives on a pseudo-element, not the header itself: a
   backdrop-filter on the header would make it the containing block for the
   fixed mobile drawer and clip the drawer to the bar's height. */
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(20, 15, 51, 0.82);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 2px 0 rgba(255, 226, 31, 0.35);
  opacity: 0; transition: opacity 0.35s;
}
.topbar.is-solid::before, .page-inner .topbar::before { opacity: 1; }
.topbar__inner {
  max-width: 1400px; margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand img { width: clamp(176px, 19vw, 280px); height: auto; filter: drop-shadow(1px 1px 0 var(--ink)); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(10px, 1.8vw, 28px); }
.nav__link, .nav__sub a {
  font: 400 clamp(1.05rem, 0.9rem + 0.45vw, 1.3rem)/1 var(--display);
  letter-spacing: 0.03em; color: var(--yolk); text-decoration: none;
  text-shadow: 2px 2px 0 var(--ink);
  position: relative; padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--yolk); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link:hover { color: #fff; }
.nav__group { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__toggle { background: none; border: 0; color: var(--yolk); padding: 6px 2px; cursor: pointer; }
.nav__sub {
  list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; right: -12px; min-width: 160px;
  background: var(--night-2); border: var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav__sub a { display: block; padding: 8px 18px; }
.nav__sub a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub, .nav__group.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
    background: var(--yolk); border: var(--line); box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
  }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
    display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--ink); position: relative;
    transition: transform 0.25s, opacity 0.2s;
  }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn__bars::before { top: -7px; }
  .menu-btn__bars::after { top: 7px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); padding: 88px 28px 28px;
    background: var(--night-2); border-left: var(--line); box-shadow: -8px 0 0 rgba(0, 0, 0, 0.3);
    transform: translateX(105%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav__link { font-size: 1.6rem; display: inline-block; padding: 8px 0; }
  .nav__group { flex-wrap: wrap; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: none; padding: 0 0 6px 14px; min-width: 0; width: 100%; display: none; }
  .nav__group.is-open .nav__sub { display: block; }
  .nav__toggle { padding: 10px; }
}

/* ---------- hero: the parallax scene ---------- */
.hero { position: relative; overflow: hidden; background: #2a2450; }
.hero__stage {
  position: relative; width: 100%;
  aspect-ratio: 1600 / 3600;          /* the artwork's own shape: never cropped */
}
.layer { position: absolute; max-width: none; height: auto; will-change: transform; user-select: none; pointer-events: none; }
.layer--background { inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: auto; }
/* links riding on the moon and the little yellow UFO (parallax.js moves them) */
.hotspot { position: absolute; z-index: 2; display: grid; place-items: center; text-decoration: none; will-change: transform; -webkit-tap-highlight-color: transparent; }
.hotspot__label {
  display: inline-block; white-space: nowrap; padding: 0.35em 0.75em 0.3em;
  font: 400 clamp(0.95rem, 0.7rem + 1.1vw, 1.7rem)/1 var(--display); letter-spacing: 0.04em;
  color: var(--yolk); text-shadow: 2px 2px 0 var(--ink);
  background: rgba(20, 15, 51, 0.72); border: 2px solid var(--yolk); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(var(--counter, 0deg)) scale(var(--pop, 1)); transition: transform 0.2s ease, background 0.2s ease;
}
.hotspot--moon { place-items: center start; }   /* the moon starts half off the right edge */
.hotspot--yellow-aircraft-middle { place-items: end center; }
.hotspot--yellow-aircraft-middle .hotspot__label { translate: 0 110%; }
.hotspot:hover, .hotspot:focus-visible { --pop: 1.1; }
.hotspot:hover .hotspot__label, .hotspot:focus-visible .hotspot__label { background: var(--ink); }
.hotspot:focus-visible { outline: none; }
.hotspot:focus-visible .hotspot__label { outline: 3px solid var(--yolk); outline-offset: 3px; }
.hero::after {           /* melt the city into the galaxy below */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9%;
  background: linear-gradient(to bottom, rgba(20, 15, 51, 0), var(--night));
  pointer-events: none;
}
.hero__cue {
  /* Bottom of the first screen, but never down on the characters on a phone,
     where the whole scene is only about one screen tall. */
  position: absolute; left: 50%; top: min(80vh, 150vw); transform: translateX(-50%);
  z-index: 3; display: grid; justify-items: center; gap: 4px;
  font: 400 clamp(1rem, 0.9rem + 0.5vw, 1.35rem)/1 var(--display); color: var(--yolk);
  text-decoration: none; text-shadow: 2px 2px 0 var(--ink); letter-spacing: 0.04em;
}
.hero__cue svg { animation: bob 1.8s ease-in-out infinite; filter: drop-shadow(2px 2px 0 var(--ink)); }
@keyframes bob { 50% { transform: translateY(6px); } }
.hero__cue.is-gone { opacity: 0; pointer-events: none; transition: opacity 0.4s; }

/* ---------- galaxy background ---------- */
.galaxy, .page-inner main {
  position: relative;
  background: var(--night) url("/assets/img/galaxy-1600.webp") center top / 1200px auto repeat;
}
.galaxy::before, .page-inner main::before {   /* slow-drifting second star layer */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/img/galaxy-800.webp") 0 0 / 700px auto repeat;
  opacity: 0.22; mix-blend-mode: screen;
  animation: drift 120s linear infinite;
}
@keyframes drift { to { background-position: 700px 394px; } }
.galaxy > *, .page-inner main > * { position: relative; }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 110px) var(--gutter); }

/* ---------- home ---------- */
.intro { max-width: 880px; margin: 0 auto; padding: clamp(40px, 7vw, 100px) var(--gutter) clamp(24px, 4vw, 56px); text-align: center; }

.wheel { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 96px); }
.wheel__head { max-width: var(--max); margin: 0 auto 18px; padding: 0 var(--gutter); display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.wheel__head .display { margin: 0; }
.wheel__controls { display: flex; gap: 10px; }
.wheel__track {
  list-style: none; margin: 0; padding: 12px var(--gutter) 22px;
  display: flex; gap: clamp(14px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--yolk) transparent;
  overscroll-behavior-x: contain; cursor: grab;
}
.wheel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.wheel__track.is-dragging a { pointer-events: none; }
.wheel__item { flex: 0 0 auto; height: clamp(200px, 30vw, 360px); scroll-snap-align: start; }
.wheel__item a {
  display: block; height: 100%; border: var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--night-2); box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}
.wheel__item a:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 8px 10px 0 var(--ink); }
.wheel__item img { height: 100%; width: auto; max-width: none; object-fit: cover; }

.trailer { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 8vw, 110px); }
.trailer__frame { border: 4px solid var(--ink); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: 8px 8px 0 var(--ink), 0 0 60px rgba(242, 139, 36, 0.25); background: #000; }
.trailer__frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }

.story { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 6vw, 80px); display: grid; gap: clamp(20px, 3vw, 36px); }
.story__card {
  width: min(100%, 720px); padding: clamp(22px, 3.4vw, 40px);
  background: rgba(29, 22, 72, 0.78); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-size: var(--step-1); line-height: 1.55; color: var(--cream);
}
.story__card p:last-child { margin: 0; }
.story__card--right { justify-self: end; }

.support { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 7vw, 96px); display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }
.support__copy .btn { margin-top: 8px; }
.support__embed { display: flex; justify-content: center; }
/* Before (or without) Instagram's script, the embed is a plain link: make it a card. */
.support__embed blockquote.instagram-media:not(iframe) {
  padding: 28px; background: rgba(29, 22, 72, 0.85); border: var(--line) !important; box-shadow: var(--shadow) !important;
  text-align: center; font-weight: 800;
}
.support__embed .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 420px !important; border-radius: var(--radius) !important; }

.signup {
  max-width: var(--max); margin: 0 auto clamp(56px, 8vw, 110px); padding: clamp(24px, 4vw, 48px);
  display: grid; gap: clamp(20px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: center;
  background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: calc(var(--radius) + 8px); box-shadow: 10px 10px 0 var(--ink);
  width: calc(100% - 2 * var(--gutter));
}
.signup .display { color: var(--red); -webkit-text-stroke: 0; text-shadow: none; font-size: var(--step-2); }
.signup__art img { border-radius: var(--radius); }
.signup .btn--ghost { color: var(--ink); border-color: var(--ink); }

/* ---------- inner pages ---------- */
.scene { position: relative; min-height: clamp(300px, 46vh, 460px); display: grid; place-items: center; overflow: hidden; padding: 110px var(--gutter) 40px; text-align: center; }
.scene__stage { position: absolute; top: 0; left: 0; }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(20, 15, 51, 0.15), rgba(20, 15, 51, 0.35) 70%, var(--night)); }
.scene__title { position: relative; z-index: 2; margin: 0; }
.scene__sub { position: relative; z-index: 2; max-width: 640px; margin: 14px auto 0; color: var(--cream); font-size: var(--step-1); }

.prose { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.prose h2 { font: 400 var(--step-2)/1.08 var(--display); color: var(--yolk); text-shadow: 2px 2px 0 var(--ink); margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--yolk); }
.prose strong { color: #fff; }

.panel {
  background: rgba(20, 15, 51, 0.82); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 48px); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.stack { display: grid; gap: clamp(28px, 5vw, 56px); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 110px); }
.split { display: grid; gap: clamp(20px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: center; }
.split > .prose { padding: 0; }
.figure { margin: 0; }
.figure img { width: 100%; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.figure--zoom { cursor: zoom-in; }
.figures { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.stats { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stats li { margin: 0; padding: 16px 18px; border: var(--line); border-radius: 14px; background: var(--yolk); color: var(--ink); font-weight: 800; box-shadow: 3px 3px 0 var(--ink); }
.cast { font-size: var(--step-1); color: var(--cream); }

/* galleries */
.cards { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.cards a, .masonry a {
  display: block; border: var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}
.cards a:hover, .masonry a:hover { transform: translateY(-5px); box-shadow: 8px 10px 0 var(--ink); }
.cards img, .masonry img { width: 100%; }
.masonry { columns: 3 300px; column-gap: clamp(14px, 2vw, 22px); }
.masonry a { break-inside: avoid; margin-bottom: clamp(14px, 2vw, 22px); }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.gallery-head h2, .gallery-head h3 { margin: 0; }
.gallery-head h3 { font: 400 var(--step-1)/1.1 var(--display); color: var(--yolk); text-shadow: 2px 2px 0 var(--ink); letter-spacing: 0.03em; }
.count { color: var(--muted); font-size: var(--step--1); }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto clamp(28px, 4vw, 44px); padding: 0 var(--gutter); }
.subnav a { padding: 8px 16px; border: 2px solid var(--yolk); border-radius: 999px; text-decoration: none; font-weight: 800; font-size: var(--step--1); }
.subnav a:hover { background: var(--yolk); color: var(--ink); }

/* ---------- footer ---------- */
.footer { background: #0c0920; border-top: 3px solid var(--yolk); padding: clamp(32px, 5vw, 56px) var(--gutter) 28px; }
.footer__inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer__brand img { width: min(280px, 70vw); height: auto; filter: drop-shadow(2px 2px 0 #000); }
.footer__links, .footer__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer__links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--yolk); }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--yolk); color: var(--yolk); transition: background 0.2s, color 0.2s, transform 0.2s; }
.footer__social a:hover { background: var(--yolk); color: var(--ink); transform: translateY(-2px); }
.footer__legal { margin: 0; color: var(--muted); font-size: var(--step--1); }
.footer__credit { margin-top: 6px; opacity: 0.85; }

.to-top {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 40;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--yolk); color: var(--ink); border: var(--line); box-shadow: 3px 3px 0 var(--ink);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--ink); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 56px clamp(8px, 2vw, 24px) 24px; background: rgba(10, 7, 26, 0.94); }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-height: 100%; min-width: 0; }
.lightbox__figure img { max-height: calc(100vh - 150px); width: auto; border: var(--line); border-radius: 12px; box-shadow: var(--shadow); animation: pop 0.25s ease; }
.lightbox__figure figcaption { max-width: 760px; color: var(--muted); font-size: var(--step--1); text-align: center; }
.lightbox__nav, .lightbox__close { background: var(--yolk); color: var(--ink); border: var(--line); border-radius: 50%; width: 48px; height: 48px; font: 800 1.7rem/1 var(--body); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.lightbox__close { position: absolute; top: 12px; right: 12px; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lightbox__figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav--prev { grid-row: 2; justify-self: end; }
  .lightbox__nav--next { grid-row: 2; justify-self: start; }
}

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

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