/* =========================================================
   Jerrix Studio — Endless Summer Syndrome
   Design system + landing page
   ========================================================= */

:root {
  /* Palette — deep ocean dusk + summer sky + sun gold + surreal coral */
  --ink:        #0a131e;   /* page base, darkest */
  --ink-1:      #0d1a28;   /* section base */
  --ink-2:      #112236;   /* raised surface */
  --ink-3:      #16304a;   /* borders / hovers */

  --sky:        #6cc0ff;   /* bright azure */
  --sky-deep:   #2f86e6;
  --gold:       #ffd584;   /* sun */
  --gold-deep:  #ffba4d;
  --coral:      #ff8fb4;   /* surreal accent (the café pink) */

  --paper:      #eef6ff;   /* primary text on dark */
  --paper-soft: #b9cbe0;   /* secondary text */
  --paper-mute: #7e93ab;   /* tertiary / captions */

  --line: rgba(120, 170, 220, 0.16);
  --line-strong: rgba(120, 170, 220, 0.30);

  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --shadow-md: 0 16px 40px -18px rgba(0, 0, 0, 0.65);

  --display: 'Fraunces', 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --body: 'Inter', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1180px;
  --nav-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; background-color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 0.75rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000;
  background: var(--gold); color: #1a1206; padding: 10px 16px; border-radius: 8px;
  font-weight: 600;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 1.1rem;
}
.eyebrow--center { text-align: center; }

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 18ch;
  margin: 0 auto 3rem;
  text-wrap: balance;
}

.pill {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4em 0.95em;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--paper-soft);
  background: rgba(10, 19, 30, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pill--accent {
  color: #1a1206;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  border-color: transparent;
  font-weight: 600;
}

/* ---------- buttons ---------- */
.btn {
  --btn-pad: 0.85em 1.5em;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: var(--btn-pad);
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn__icon { flex: none; }
.btn--primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #1c1305;
  box-shadow: 0 10px 30px -10px rgba(255, 186, 77, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(255, 186, 77, 0.7); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn--lg { font-size: 1.08rem; --btn-pad: 1em 1.9em; }

/* ---------- reveal on scroll ----------
   Guarded by html.js so content is fully visible without JS (resilience + SEO). */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.is-above { transform: translateY(-22px); } /* left via the top → sits/drifts upward */
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  /* persistent top scrim so nav text stays legible over the bright hero before scroll */
  background: linear-gradient(180deg, rgba(8, 16, 26, 0.62) 0%, rgba(8, 16, 26, 0) 100%);
  transition: background 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 16, 26, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: 0.14em; font-size: 0.92rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.brand__mark {
  width: 14px; height: 14px; flex: none; border-radius: 3px;
  background: linear-gradient(140deg, var(--gold), var(--coral));
  box-shadow: 0 0 16px rgba(255, 186, 77, 0.6);
  transform: rotate(45deg);
}
.brand__studio { color: var(--sky); }
/* CJK brand wordmark (蔓工作室) wants tighter tracking than the Latin one */
:lang(zh) .brand, :lang(zh) .footer__brand { letter-spacing: 0.06em; }

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { position: relative; font-size: 0.92rem; font-weight: 500; color: var(--paper-soft); transition: color 0.2s; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.nav.is-scrolled .nav__links a, .nav.is-scrolled .brand { text-shadow: none; }
.nav__links a:hover { color: var(--paper); }
.nav__links a[aria-current="page"],
.nav__links a.is-current { color: var(--paper); font-weight: 700; }
.nav__links a[aria-current="page"]::after,
.nav__links a.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--gold);
}
.nav__cta {
  color: #1c1305 !important;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  padding: 0.55em 1.1em; border-radius: 999px; font-weight: 600 !important;
  box-shadow: 0 8px 22px -10px rgba(255, 186, 77, 0.7);
  transition: transform 0.2s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); }

.lang-switch {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--paper-soft) !important;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.38em 0.85em; line-height: 1;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-shadow: none;
}
.lang-switch:hover { color: var(--paper) !important; border-color: var(--paper-soft); background: rgba(255, 255, 255, 0.06); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--ink) 2%, rgba(10, 19, 30, 0.35) 40%, rgba(10, 19, 30, 0.05) 70%),
    linear-gradient(to right, rgba(8, 15, 24, 0.78) 0%, rgba(8, 15, 24, 0.25) 45%, transparent 75%),
    linear-gradient(to bottom, rgba(8, 15, 24, 0.45), transparent 22%);
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.9rem, 9vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
  text-wrap: balance;
}
.hero__cn {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  letter-spacing: 0.42em;
  color: var(--paper-soft);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 0.42em;
}
.hero__tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  color: var(--paper);
  max-width: 32ch;
  margin-top: 1.6rem;
  margin-bottom: 1.7rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.6rem; }
.hero__platforms { font-size: 0.84rem; color: var(--paper-soft); letter-spacing: 0.02em; }

.scrollcue {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 7px;
}
.scrollcue span { width: 4px; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.8); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 70% { opacity: 1; transform: translateY(10px); } 100% { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .scrollcue span { animation: none; } }

/* =========================================================
   STORY / PREMISE (video bg)
   ========================================================= */
.story {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 13vw, 9rem) 0;
  background: var(--ink-1);
}
.story__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.85;
}
.story__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(80% 80% at 50% 50%, rgba(10, 19, 30, 0.5), rgba(10, 19, 30, 0.12) 100%),
    linear-gradient(180deg, var(--ink), transparent 16%, transparent 84%, var(--ink-1));
}
.story__content { position: relative; z-index: 2; max-width: 760px; text-align: center; }
.story__quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.6vw, 2.3rem);
  line-height: 1.4;
  color: var(--paper);
  margin-bottom: 2.2rem;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6);
}
.story__lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--paper);
  margin-bottom: 1.8rem;
}
.story__lead strong { color: var(--gold); font-weight: 600; letter-spacing: 0.04em; }
.story__body { max-width: 60ch; margin: 0 auto; }
.story__body p { color: var(--paper-soft); margin-bottom: 1.1rem; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.65); }
.story__body strong { color: var(--paper); font-weight: 600; }

/* =========================================================
   FEATURES
   ========================================================= */
.features {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 12vw, 8rem) 0;
  background: linear-gradient(180deg, var(--ink-1), var(--ink));
}
.features__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  opacity: 0.85;
}
.features__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(92% 88% at 50% 45%, rgba(10, 19, 30, 0.4), rgba(10, 19, 30, 0.7) 100%),
    linear-gradient(180deg, var(--ink-1), transparent 15%, transparent 82%, var(--ink));
}
.features > .wrap { position: relative; z-index: 2; }
.features .section-title { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55); }
.feature-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}
.feature {
  flex: 0 1 calc(33.333% - 0.8rem);
  background: linear-gradient(180deg, rgba(20, 40, 62, 0.5), rgba(11, 22, 34, 0.56));
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2rem 1.7rem;
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.75);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, rgba(24, 46, 70, 0.56), rgba(13, 26, 42, 0.62));
}
.feature__icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 13px;
  margin-bottom: 1.2rem;
  color: var(--gold);
  background: radial-gradient(circle at 30% 25%, rgba(255, 213, 132, 0.22), rgba(108, 192, 255, 0.10));
  border: 1px solid var(--line-strong);
}
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 1.22rem; line-height: 1.2; margin-bottom: 0.55rem; }
.feature p { color: var(--paper-soft); font-size: 0.96rem; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { padding: clamp(4.5rem, 12vw, 8rem) 0; background: linear-gradient(180deg, var(--ink), var(--ink-1)); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.shot {
  position: relative; display: block; padding: 0; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--ink-2);
  aspect-ratio: 16 / 9;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.shot--wide { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.shot::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 15, 24, 0.55), transparent 55%);
  opacity: 0; transition: opacity 0.3s;
}
.shot:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.shot:hover img { transform: scale(1.05); }
.shot:hover::after { opacity: 1; }

/* =========================================================
   WISHLIST CTA
   ========================================================= */
.cta { position: relative; overflow: hidden; padding: clamp(5rem, 14vw, 9rem) 0; background-color: var(--ink-1); }
.cta__media { position: absolute; inset: 0; z-index: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.cta__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(72% 82% at 50% 45%, rgba(10, 19, 30, 0.40), rgba(10, 19, 30, 0.10) 100%),
    linear-gradient(180deg, var(--ink-1), transparent 10%, transparent 90%, var(--ink-1));
}
.cta__content { position: relative; z-index: 2; text-align: center; max-width: 720px; }
.cta__title { font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 1rem; text-wrap: balance; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55); }
.cta__sub { color: var(--paper-soft); font-size: 1.1rem; margin-bottom: 2rem; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); }
.cta__sub strong { color: var(--paper); }
.steam-widget { margin: 2.4rem auto 0; max-width: 646px; }
.steam-widget iframe { width: 100%; border-radius: 8px; box-shadow: var(--shadow-lg); }
.content-note { margin-top: 1.8rem; font-size: 0.82rem; color: var(--paper-mute); letter-spacing: 0.02em; }
.cta__specs { margin-top: 1.8rem; font-size: 0.9rem; color: var(--paper-soft); letter-spacing: 0.03em; }

/* Taller CTA panel (content vertically centered); background + text unchanged. */
.cta--tall { display: flex; flex-direction: column; justify-content: center; min-height: 94vh; }

/* =========================================================
   MORE GAMES (minor)
   ========================================================= */
.more { padding: clamp(4rem, 11vw, 7rem) 0 clamp(3rem, 8vw, 5rem); background: var(--ink-1); }
.more__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.6vw, 2.3rem); text-align: center; margin-bottom: 2.4rem; }
.more__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; max-width: 880px; margin-inline: auto; }
.minicard {
  display: flex; gap: 1rem; align-items: stretch;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.minicard:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.minicard__img { flex: none; width: 38%; overflow: hidden; background: var(--ink-3); }
.minicard__img img { width: 100%; height: 100%; object-fit: cover; }
.minicard__body { display: flex; flex-direction: column; padding: 1.1rem 1.1rem 1.1rem 0; }
.minicard__title { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.2; margin-bottom: 0.4rem; }
.minicard__desc { color: var(--paper-soft); font-size: 0.9rem; line-height: 1.5; }
.minicard__more { margin-top: auto; padding-top: 0.7rem; color: var(--sky); font-size: 0.85rem; font-weight: 600; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: clamp(4rem, 11vw, 7rem) 0; background: linear-gradient(180deg, var(--ink-1), var(--ink)); }
.about__inner { max-width: 760px; }
.about__title { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1.1rem; letter-spacing: -0.01em; }
.about__text { color: var(--paper-soft); font-size: 1.12rem; line-height: 1.7; max-width: 60ch; }
.about__text strong { color: var(--paper); }
.about__text em { color: var(--gold); font-style: italic; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #07101a; border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; text-align: center; }
.footer__brand { font-weight: 700; letter-spacing: 0.18em; font-size: 0.95rem; }
.footer__brand span { color: var(--sky); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center; }
.footer__links a { color: var(--paper-soft); font-size: 0.92rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { color: var(--paper-mute); font-size: 0.8rem; max-width: 50ch; }
.footer__copy em { font-style: italic; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(5, 10, 16, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { grid-column: 2; text-align: center; margin: 0; max-height: 90vh; }
.lightbox__figure img { max-width: 100%; max-height: 82vh; margin-inline: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__figure figcaption { margin-top: 1rem; color: var(--paper-soft); font-family: var(--display); font-style: italic; font-size: 1.05rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1.3rem; }
.lightbox__close, .lightbox__nav {
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-strong); color: var(--paper);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s, transform 0.2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.18); transform: scale(1.06); }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }

/* =========================================================
   PROJECT DETAIL (the-faded / once-upon-a-spring)
   ========================================================= */
.detail { padding: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem)) 0 clamp(3rem, 8vw, 6rem); background: var(--ink); }
.detail__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail__media { position: relative; align-self: center; }
.detail__media img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.detail__back { display: inline-flex; align-items: center; gap: 0.4em; color: var(--paper-soft); font-size: 0.88rem; margin-bottom: 1.4rem; transition: color 0.2s; }
.detail__back:hover { color: var(--gold); }
.detail__title { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 1.4rem; }
.detail__body p { color: var(--paper-soft); margin-bottom: 1.15rem; }
.detail__body p strong { color: var(--paper); }
.detail__contrib { margin: 1.8rem 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.detail__contrib h2 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.8rem; }
.detail__contrib ul { list-style: none; display: grid; gap: 0.5rem; }
.detail__contrib li { color: var(--paper-soft); font-size: 0.94rem; }
.detail__contrib li b { color: var(--paper); font-weight: 600; }

/* =========================================================
   PRESS KIT
   ========================================================= */
.pk { background: var(--ink); }
.pk-muted { color: var(--paper-mute); }
.pk-link { color: var(--sky); transition: color 0.2s; }
.pk-link:hover { color: var(--gold); }

.pk-intro {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem)) 0 clamp(3rem, 8vw, 5rem);
  background-color: var(--ink-1);
}
.pk-intro__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.pk-intro__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 19, 30, 0.34), rgba(10, 19, 30, 0.55) 72%, var(--ink) 100%); }
.pk-intro > .wrap { position: relative; z-index: 2; }
.pk-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 5.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.015em;
  margin-bottom: 0.5rem; text-wrap: balance;
}
.pk-cn {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.35rem); letter-spacing: 0.4em;
  color: var(--paper-soft); margin-bottom: 1.4rem; padding-left: 0.4em;
}
.pk-lead { color: var(--paper-soft); font-size: 1.1rem; line-height: 1.7; max-width: 64ch; margin-bottom: 1.9rem; }
.pk-downloads { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.pk-section { padding: clamp(2.4rem, 5.5vw, 3.6rem) 0; border-top: 1px solid var(--line); }
.pk-section__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}
.pk-hint, .pk-brand figcaption span.pk-muted { font-size: 0.92rem; }
.pk-hint { color: var(--paper-soft); margin-bottom: 1.6rem; max-width: 62ch; }

/* fact sheet */
.pk-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.85rem 2rem; align-items: baseline; max-width: 720px; }
.pk-facts dt { color: var(--sky); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; }
.pk-facts dd { color: var(--paper); }

/* description */
.pk-quote {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 3vw, 1.8rem); line-height: 1.4; color: var(--paper);
  margin-bottom: 1.8rem; max-width: 34ch; text-wrap: balance;
  padding-left: 1.1rem; border-left: 2px solid var(--gold-deep);
}
.pk-prose p { color: var(--paper-soft); margin-bottom: 1.1rem; max-width: 66ch; }
.pk-prose strong { color: var(--paper); font-weight: 600; }
.pk-prose em { color: var(--gold); font-style: italic; }

/* features on a plain dark section want a subtle card border boost */
.pk-feature-grid .feature { background: linear-gradient(180deg, rgba(20, 40, 62, 0.4), rgba(11, 22, 34, 0.5)); }

/* credits */
.pk-credits { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem 2rem; max-width: 900px; }
.pk-credit__role { display: block; color: var(--sky); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.pk-credits b { color: var(--paper); font-weight: 600; }

/* streaming permission callout */
.pk-note {
  background: linear-gradient(180deg, rgba(20, 40, 62, 0.5), rgba(11, 22, 34, 0.55));
  border: 1px solid var(--line-strong); border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 2rem); max-width: 760px;
}
.pk-note h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.6rem; }
.pk-note p { color: var(--paper-soft); margin: 0; max-width: 62ch; }
.pk-note em { color: var(--gold); font-style: italic; }

/* logo & icon */
.pk-brand-row { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.pk-brand {
  display: flex; align-items: center; gap: 1rem;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.4rem; min-width: 240px;
}
.pk-brand img { width: 72px; height: 72px; border-radius: 12px; flex: none; }
.pk-brand__chip { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; background: #07101a; border: 1px solid var(--line); flex: none; }
.pk-brand__chip .brand__mark { width: 26px; height: 26px; }
.pk-brand figcaption { display: flex; flex-direction: column; gap: 0.25rem; }
.pk-brand figcaption b { font-weight: 600; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .feature { flex-basis: calc(50% - 0.6rem); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 16, 26, 0.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
    transform: translateY(-130%); transition: transform 0.35s var(--ease);
    max-height: calc(100vh - var(--nav-h)); max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 0.95rem clamp(20px, 5vw, 48px); border-bottom: 1px solid var(--line); }
  .nav__links a[aria-current="page"]::after, .nav__links a.is-current::after { display: none; }
  .nav__cta { margin: 0.8rem clamp(20px, 5vw, 48px) 0; text-align: center; border-radius: 999px !important; }
  .nav.is-scrolled { background: rgba(8, 16, 26, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .nav:has(.nav__links.is-open) { background: rgba(8, 16, 26, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }

  .hero { align-items: center; }
  .hero__media img { object-position: 64% 30%; }
  .hero__tagline { max-width: 24ch; }

  .feature { flex-basis: 100%; }
  .gallery__grid { grid-template-columns: 1fr; }
  .shot--wide { grid-column: span 1; }

  .more__grid { grid-template-columns: 1fr; max-width: 460px; }
  .minicard { flex-direction: column; }
  .minicard__img { width: 100%; aspect-ratio: 16 / 9; }
  .minicard__body { padding: 1.1rem; }

  .detail__inner { grid-template-columns: 1fr; }
  .detail__media { order: -1; }

  .pk-facts { grid-template-columns: 1fr; gap: 0.3rem 0; }
  .pk-facts dt { margin-top: 1rem; }
  .pk-facts dt:first-child { margin-top: 0; }

  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
  .lightbox__nav--prev { left: 0.8rem; }
  .lightbox__nav--next { right: 0.8rem; }
  .lightbox__figure { grid-column: 1; }
}

@media (max-width: 420px) {
  .hero__title { font-size: clamp(2.2rem, 11vw, 2.9rem); overflow-wrap: anywhere; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
}
