/* =========================================================================
   Twilight Design & Electric: Project Gallery
   ========================================================================= */

:root {
  --gold: #fec13b;
  --gold-hi: #ffe3a0;
  --glow: rgba(218, 165, 32, .45);
  --navy: #1c3d59;
  --navy-deep: #0c1a27;
  --ink: #07090c;
  --cream: #f6f5f0;
  --muted: rgba(246, 245, 240, .66);
  --faint: rgba(246, 245, 240, .4);
  --hair: rgba(246, 245, 240, .14);
  --coral: #f36d45;

  --f-display: "Lora", Georgia, "Times New Roman", serif;
  --f-ui: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pad-x: clamp(20px, 6vw, 96px);
}

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

html {
  scrollbar-gutter: stable;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}
html.lb-lock { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }

.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;
}

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

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0;
  font: 500 11px/1 var(--f-ui);
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; flex: none;
  background: currentColor;
  box-shadow: 0 0 10px var(--glow);
}

/* ----------------------------------------------------------------- loader */

.loader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: var(--ink);
  transition: opacity 1.1s ease, visibility 1.1s;
}
.loader img {
  width: 58px; height: 58px;
  animation: loaderPulse 1.8s ease-in-out infinite;
}
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
@keyframes loaderPulse {
  0%, 100% { opacity: .35; filter: drop-shadow(0 0 0 rgba(254, 193, 59, 0)); transform: scale(.96); }
  50% { opacity: 1; filter: drop-shadow(0 0 22px rgba(254, 193, 59, .7)); transform: scale(1); }
}

/* ----------------------------------------------------------------- header */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad-x);
  transition: transform .7s var(--ease-out), background-color .5s ease, box-shadow .5s ease,
              backdrop-filter .5s ease, height .5s var(--ease-out);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -60px 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(2, 4, 7, .72), rgba(2, 4, 7, 0));
  pointer-events: none;
  transition: opacity .5s ease;
}
.site-header.is-solid {
  height: 68px;
  background: rgba(7, 10, 14, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-105%); }

.brand { display: block; flex: none; line-height: 0; }
.brand img {
  display: block;
  height: clamp(28px, 3.1vw, 42px); width: auto;
  transition: height .5s var(--ease-out), opacity .3s;
}
.site-header.is-solid .brand img { height: clamp(26px, 2.6vw, 34px); }
.brand:hover img { opacity: .85; }

.site-nav { display: flex; align-items: center; gap: clamp(20px, 3.4vw, 52px); }
.site-nav a {
  position: relative;
  padding: 12px 0;
  font: 500 12px/1 var(--f-ui);
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  opacity: .86;
  transition: opacity .3s, color .3s, text-shadow .4s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: .26em; bottom: 3px; height: 1px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--glow);
  transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform .55s var(--ease-out);
}
.site-nav a:hover, .site-nav a:focus-visible {
  opacity: 1; color: #fff;
  text-shadow: 0 0 18px rgba(254, 193, 59, .45);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 540px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0;
  filter: brightness(.05) saturate(.15) contrast(1.2);
  transition: filter 3.2s cubic-bezier(.5, .05, .2, 1);
  will-change: transform;
}
.hero.is-lit .hero-media { filter: brightness(1) saturate(1) contrast(1); }
.hero.is-settled .hero-media { filter: none; transition: none; }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 2.4s var(--ease-io);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide { background-size: cover; background-position: center; }
.hero-frame {
  position: absolute; inset: 0;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
}
.hero-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-frame .hi { opacity: 0; transition: opacity 1.2s ease; }
.hero-frame .hi.is-ready { opacity: 1; }
.hero-slide.is-active .hero-frame,
.hero-slide.is-leaving .hero-frame { animation: kenburns var(--kb, 12s) cubic-bezier(.25, .1, .25, 1) both; }
@keyframes kenburns {
  from { transform: scale(1.16) translate3d(var(--tx, 0), var(--ty, 0), 0); }
  to   { transform: scale(1.03) translate3d(0, 0, 0); }
}

.hero-bloom {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(55% 45% at 50% 88%, rgba(255, 196, 96, .55), rgba(255, 196, 96, 0) 70%),
    radial-gradient(35% 30% at 22% 70%, rgba(255, 210, 130, .25), rgba(255, 210, 130, 0) 70%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.hero.is-lit .hero-bloom { animation: bloom 3.6s ease-out both; }
@keyframes bloom {
  0% { opacity: 0; }
  30% { opacity: .9; }
  100% { opacity: 0; }
}

.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(7, 9, 12, .88) 9%, rgba(7, 9, 12, .35) 36%, rgba(7, 9, 12, 0) 58%),
    linear-gradient(100deg, rgba(4, 6, 9, .62) 0%, rgba(4, 6, 9, .25) 38%, rgba(4, 6, 9, 0) 62%),
    radial-gradient(130% 100% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .5) 100%);
}

.grain {
  position: absolute; inset: -60%; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .085;
  mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-4%, 3%, 0); }
  40% { transform: translate3d(3%, -5%, 0); }
  60% { transform: translate3d(-6%, -2%, 0); }
  80% { transform: translate3d(5%, 4%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.hero-content {
  position: absolute; z-index: 3;
  left: var(--pad-x); right: var(--pad-x);
  bottom: clamp(72px, 14vh, 150px);
  max-width: 1040px;
  will-change: transform, opacity;
}
.hero-content .eyebrow {
  opacity: 0; transform: translateY(14px);
  transition: opacity 1.2s var(--ease-out) .5s, transform 1.4s var(--ease-out) .5s;
}
.hero-title {
  margin: .2em 0 .16em;
  font: 400 clamp(3.7rem, 12.8vw, 12rem)/.9 var(--f-display);
  letter-spacing: -.025em;
  color: var(--cream);
}
.hero-title .w { display: inline-block; white-space: nowrap; }
.hero-title .em { font-style: italic; padding-right: .06em; }
.hero-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .32em, 0);
  filter: blur(12px);
  transition: opacity 1.3s var(--ease-out), transform 1.6s var(--ease-out), filter 1.3s var(--ease-out);
  transition-delay: calc(var(--i) * 60ms + 650ms);
}
.hero-title .em .ch {
  background: linear-gradient(180deg, #fff4d6 8%, var(--gold) 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: blur(12px) drop-shadow(0 0 0 rgba(254, 193, 59, 0));
  transition-property: opacity, transform, filter;
  transition-duration: 1.3s, 1.6s, 2.6s;
}
.hero-tagline {
  margin: 0;
  max-width: 30ch;
  font: 400 clamp(1.02rem, 1.45vw, 1.3rem)/1.55 var(--f-display);
  font-style: italic;
  color: var(--muted);
  opacity: 0; transform: translateY(16px);
  transition: opacity 1.4s var(--ease-out) 1.45s, transform 1.6s var(--ease-out) 1.45s;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px;
  margin-top: clamp(26px, 4vh, 44px);
  opacity: 0; transform: translateY(16px);
  transition: opacity 1.4s var(--ease-out) 1.75s, transform 1.6s var(--ease-out) 1.75s;
}
.hero.is-lit .hero-content .eyebrow,
.hero.is-lit .hero-tagline,
.hero.is-lit .hero-actions { opacity: 1; transform: none; }
.hero.is-lit .hero-title .ch { opacity: 1; transform: none; filter: blur(0); }
.hero.is-lit .hero-title .em .ch { filter: blur(0) drop-shadow(0 0 26px rgba(254, 193, 59, .42)); }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 11px/1 var(--f-ui); letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none; color: var(--cream);
}
.scroll-cue .line {
  position: relative; width: 1px; height: 46px; overflow: hidden;
  background: rgba(246, 245, 240, .2);
}
.scroll-cue .line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 45%;
  background: var(--gold); box-shadow: 0 0 8px var(--gold);
  animation: drip 2.2s var(--ease-io) infinite;
}
@keyframes drip {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(240%); }
}
.scroll-cue:hover { color: var(--gold); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 22px 0 18px;
  border: 1px solid rgba(246, 245, 240, .28);
  border-radius: 999px;
  background: rgba(8, 10, 14, .25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 11px/1 var(--f-ui); letter-spacing: .26em; text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
  transition: border-color .35s, color .35s, box-shadow .45s, background-color .35s;
}
.btn-ghost svg { width: 15px; height: 15px; }
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 0 1px rgba(254, 193, 59, .2), 0 0 34px rgba(218, 165, 32, .35);
}

.hero-index {
  position: absolute; z-index: 3;
  right: var(--pad-x); bottom: clamp(72px, 14vh, 150px);
  display: flex; align-items: center; gap: 14px;
  font: italic 400 15px/1 var(--f-display); color: var(--muted);
  opacity: 0; transition: opacity 1.4s ease 2.1s;
}
.hero.is-lit .hero-index { opacity: 1; }
.hero-index .num { color: var(--gold); min-width: 1.4em; text-align: right; }
.hero-bars { display: flex; gap: 6px; }
.hero-bar {
  position: relative; width: 30px; height: 18px; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.hero-bar::before, .hero-bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
}
.hero-bar::before { background: rgba(246, 245, 240, .25); }
.hero-bar::after {
  background: var(--gold); box-shadow: 0 0 8px var(--glow);
  transform: scaleX(0); transform-origin: 0 50%;
}
.hero-bar.is-done::after { transform: scaleX(1); }
.hero-bar.is-active::after { animation: barFill var(--dur, 7s) linear forwards; }
.hero.is-paused .hero-bar.is-active::after { animation-play-state: paused; }
@keyframes barFill { to { transform: scaleX(1); } }

/* ------------------------------------------------------------- collection */

.collection {
  position: relative;
  padding: clamp(36px, 6vw, 84px) 0 clamp(70px, 10vw, 140px);
  background:
    radial-gradient(70% 50% at 85% 0%, rgba(28, 61, 89, .18), rgba(28, 61, 89, 0) 70%),
    var(--ink);
}
.collection-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 22px 40px;
  padding: 0 var(--pad-x) clamp(26px, 3.4vw, 46px);
}
.collection-title {
  margin: .5em 0 0;
  font: 400 clamp(2.1rem, 4.6vw, 4rem)/1 var(--f-display);
  letter-spacing: -.015em;
}
.collection-title em { font-style: italic; color: var(--gold); }
.collection-count {
  display: inline-block; margin-left: .7em;
  font: 500 11px/1 var(--f-ui); letter-spacing: .3em; text-transform: uppercase;
  color: var(--faint); vertical-align: middle;
}

.grid {
  position: relative;
  margin: 0 clamp(4px, .7vw, 12px);
  min-height: 40vh;
}
.grid-msg {
  padding: 80px var(--pad-x); text-align: center;
  font: italic 400 1.2rem/1.6 var(--f-display); color: var(--muted);
}

.tile {
  position: absolute;
  display: block; margin: 0; padding: 0; border: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--c, #10151b);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translate3d(0, 46px, 0);
  transition: opacity 1.1s var(--ease-out) var(--d, 0ms), transform 1.4s var(--ease-out) var(--d, 0ms),
              box-shadow .6s ease;
}
.tile.is-in { opacity: 1; transform: none; }
.tile.is-lifted { visibility: hidden; }
.tile .ph {
  position: absolute; inset: -12%;
  background-size: cover; background-position: center;
  filter: blur(18px) brightness(.8);
  transform: scale(1.05);
}
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  filter: brightness(.35) saturate(.6);
  transition: opacity 1.2s var(--ease-out), transform 2s var(--ease-out), filter 2.2s cubic-bezier(.5, .05, .2, 1);
  transition-delay: var(--d, 0ms);
}
.tile.is-in.is-loaded img {
  opacity: 1;
  transform: scale(1.001);
  filter: brightness(.86) saturate(.96);
}
.tile.is-settled img { transition-delay: 0ms; transition-duration: .9s, 1.4s, .7s; }

.tile::after { /* the spotlight that follows the cursor */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 222, 160, .42) 0%, rgba(255, 205, 130, .14) 18%, rgba(255, 205, 130, 0) 42%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .55s ease;
}
.tile::before { /* gold hairline */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(254, 193, 59, 0), inset 0 -90px 90px -60px rgba(0, 0, 0, 0);
  transition: box-shadow .6s ease;
}
.tile-label {
  position: absolute; z-index: 4; left: 16px; right: 16px; bottom: 14px;
  display: flex; align-items: baseline; gap: 12px;
  pointer-events: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .7s var(--ease-out);
}
.tile-num { font: italic 400 17px/1 var(--f-display); color: var(--gold); }
.tile-cap {
  font: 500 10.5px/1.3 var(--f-ui); letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (hover: hover) {
  .grid:hover .tile.is-settled img { filter: brightness(.5) saturate(.75); }
  .grid:hover .tile.is-settled:hover img,
  .tile.is-settled:focus-visible img { filter: brightness(1.06) saturate(1.08); transform: scale(1.045); }
  .tile:hover { z-index: 2; box-shadow: 0 18px 60px -18px rgba(218, 165, 32, .55), 0 0 0 1px rgba(254, 193, 59, .12); }
  .tile:hover::after { opacity: 1; }
  .tile:hover::before { box-shadow: inset 0 0 0 1px rgba(254, 193, 59, .5), inset 0 -90px 90px -60px rgba(0, 0, 0, .75); }
  .tile:hover .tile-label { opacity: 1; transform: none; }
}
.tile:focus-visible { outline: none; z-index: 2; }
.tile:focus-visible::before { box-shadow: inset 0 0 0 2px var(--gold); }

/* ----------------------------------------------------------------- footer */

.site-footer {
  position: relative; overflow: hidden;
  padding: clamp(90px, 13vw, 170px) 24px 34px;
  text-align: center;
  background:
    radial-gradient(90% 75% at 50% 110%, rgba(28, 61, 89, .7), rgba(28, 61, 89, 0) 70%),
    linear-gradient(to bottom, var(--ink), var(--navy-deep));
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.footer-inner { position: relative; }
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { width: min(330px, 72vw); height: auto; }
.footer-rule {
  width: 1px; height: 70px; margin: 38px auto 32px;
  background: linear-gradient(to bottom, rgba(254, 193, 59, 0), var(--gold));
  box-shadow: 0 0 14px var(--glow);
}
.footer-follow {
  margin: 0 0 22px;
  font: 500 11px/1 var(--f-ui); letter-spacing: .38em; text-transform: uppercase;
  color: var(--muted);
}
.social { display: flex; justify-content: center; gap: 14px; margin: 0 0 54px; padding: 0; list-style: none; }
.social a {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--hair); border-radius: 50%;
  color: var(--cream);
  transition: color .35s, background-color .35s, border-color .35s, box-shadow .5s, transform .5s var(--ease-out);
}
.social svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.social a:hover, .social a:focus-visible {
  color: #14110a; background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 6px rgba(254, 193, 59, .08), 0 0 40px rgba(254, 193, 59, .55);
  transform: translateY(-4px);
}
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(246, 245, 240, .08);
  font: 400 12.5px/1.6 var(--f-body); letter-spacing: .04em; color: var(--faint);
}
.to-top {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: 500 10.5px/1 var(--f-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.to-top svg { width: 14px; height: 14px; }
.to-top:hover { color: var(--gold); }

/* --------------------------------------------------------- custom cursor */

.cursor {
  position: fixed; left: 0; top: 0; z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
.cursor.is-on { opacity: 1; }
.cursor-ring {
  position: absolute; left: -38px; top: -38px;
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border: 1px solid rgba(254, 193, 59, .75);
  border-radius: 50%;
  background: rgba(8, 10, 14, .18);
  box-shadow: 0 0 30px rgba(218, 165, 32, .28), inset 0 0 18px rgba(254, 193, 59, .12);
  transform: scale(.4);
  transition: transform .5s var(--ease-out);
}
.cursor.is-on .cursor-ring { transform: scale(1); }
.cursor.is-down .cursor-ring { transform: scale(.86); }
.cursor-ring span {
  font: 600 9.5px/1 var(--f-ui); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(0, 0, 0, .6);
}
html.has-cursor .tile { cursor: none; }

/* --------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  overflow: hidden;
  color: var(--cream);
  touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.lightbox[hidden] { display: none; }
.lightbox:focus { outline: none; }

.lb-bg {
  position: absolute; inset: 0;
  background: #030405;
  opacity: 0;
  transition: opacity .7s var(--ease-out);
}
.lb-ambient {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.lightbox.is-open .lb-bg, .lightbox.is-open .lb-ambient { opacity: 1; }
.lb-amb {
  position: absolute; inset: -20%;
  background-size: cover; background-position: center;
  filter: blur(60px) saturate(1.8) brightness(.85);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.6s ease, transform 8s ease-out;
}
.lb-amb.is-on { opacity: .9; transform: scale(1.15); }
.lb-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 75% at 50% 50%, rgba(3, 4, 5, .1) 35%, rgba(3, 4, 5, .82) 100%);
}

.lb-stage { position: absolute; inset: 0; }
.lb-photo {
  position: absolute;
  background-size: cover; background-position: center;
  transform-origin: 0 0;
  will-change: transform;
  box-shadow: 0 40px 140px -30px rgba(0, 0, 0, .9);
}
.lb-photo img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  -webkit-user-drag: none; user-select: none;
}
.lb-photo .hi { opacity: 0; transition: opacity .6s ease; }
.lb-photo .hi.is-ready { opacity: 1; }
.lightbox.is-zoomable .lb-photo { cursor: zoom-in; }
.lightbox.is-zoomed .lb-photo { cursor: zoom-out; }
.lightbox.is-idle, .lightbox.is-idle .lb-photo { cursor: none; }

.lb-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  visibility: hidden;
}
.lb-canvas.is-active { visibility: visible; }

.lb-ui {
  opacity: 0;
  transition: opacity .55s var(--ease-out), transform .65s var(--ease-out);
}
.lightbox.is-open .lb-ui { opacity: 1; }
.lightbox.is-open.is-idle .lb-ui,
.lightbox.is-open.is-dragging .lb-ui { opacity: 0; pointer-events: none; }
.lightbox.is-open.is-zoomed .lb-strip,
.lightbox.is-open.is-zoomed .lb-arrow { opacity: 0; pointer-events: none; }
.lightbox.is-idle .lb-top { transform: translateY(-12px); }
.lightbox.is-idle .lb-strip { transform: translateY(14px); }

.lb-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(14px, 2.4vw, 34px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}
.lb-meta { display: flex; align-items: center; gap: 22px; min-width: 0; }
.lb-count { flex: none; font: italic 400 21px/1 var(--f-display); color: var(--muted); white-space: nowrap; }
.lb-count .cur { color: var(--gold); text-shadow: 0 0 16px rgba(254, 193, 59, .45); }
.lb-count .sep {
  display: inline-block; width: 30px; height: 1px; margin: 0 10px 0 12px; vertical-align: middle;
  background: rgba(246, 245, 240, .35);
}
.lb-caption { min-width: 0; overflow: hidden; }
.lb-caption .t {
  display: block;
  font: 500 11px/1.4 var(--f-ui); letter-spacing: .24em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-caption .s { display: block; font: italic 400 13px/1.4 var(--f-display); color: var(--muted); }

.lb-tools { display: flex; gap: 10px; flex: none; }
.lb-btn {
  position: relative;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  padding: 0;
  border: 1px solid rgba(246, 245, 240, .16);
  border-radius: 50%;
  background: rgba(8, 10, 14, .38);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--cream);
  cursor: pointer;
  transition: border-color .3s, color .3s, box-shadow .4s, background-color .3s;
}
.lb-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover, .lb-btn:focus-visible {
  border-color: rgba(254, 193, 59, .75); color: var(--gold);
  box-shadow: 0 0 26px rgba(218, 165, 32, .35);
}
.lb-btn .ico-alt { display: none; }
.lb-btn.is-alt .ico { display: none; }
.lb-btn.is-alt .ico-alt { display: block; }
.lb-btn .ico-play { margin-left: 2px; }
.lb-ring {
  position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px);
  transform: rotate(-90deg);
  pointer-events: none;
}
.lb-ring circle {
  fill: none; stroke: var(--gold); stroke-width: 1.5;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  filter: drop-shadow(0 0 3px rgba(254, 193, 59, .8));
  opacity: 0;
}
.lightbox.is-playing .lb-ring circle { opacity: 1; }
.lb-ring circle.run { animation: ring var(--auto, 6s) linear forwards; }
.lightbox.is-held .lb-ring circle.run { animation-play-state: paused; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.lb-btn.is-hidden { display: none; }

.lb-arrow {
  position: absolute; top: 50%; z-index: 3;
  width: 64px; height: 120px; margin-top: -60px;
  display: grid; place-items: center;
  padding: 0; border: 0; background: none;
  color: var(--cream);
  cursor: pointer;
}
.lb-arrow.prev { left: clamp(4px, 1.2vw, 22px); }
.lb-arrow.next { right: clamp(4px, 1.2vw, 22px); }
.lb-arrow svg {
  width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
  transition: transform .5s var(--ease-out), filter .4s;
}
.lb-arrow::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px;
  border-radius: 50%;
  border: 1px solid rgba(254, 193, 59, 0);
  transition: border-color .4s, box-shadow .4s, transform .5s var(--ease-out);
  transform: scale(.7);
}
.lb-arrow:hover { color: var(--gold); }
.lb-arrow:hover::before { border-color: rgba(254, 193, 59, .55); box-shadow: 0 0 30px rgba(218, 165, 32, .3); transform: scale(1); }
.lb-arrow.prev:hover svg { transform: translateX(-3px); filter: drop-shadow(0 0 8px rgba(254, 193, 59, .6)); }
.lb-arrow.next:hover svg { transform: translateX(3px); filter: drop-shadow(0 0 8px rgba(254, 193, 59, .6)); }

.lb-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 112px;
  display: flex; align-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
}
.lb-track {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 100%;
  padding: 0 50%;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.lb-track::-webkit-scrollbar { display: none; }
.lb-thumb {
  position: relative; flex: none;
  height: 58px; padding: 0; border: 0;
  border-radius: 2px; overflow: hidden;
  background: #111;
  cursor: pointer;
  opacity: .38;
  filter: saturate(.5) brightness(.85);
  transition: opacity .45s, filter .45s, transform .6s var(--ease-out), box-shadow .45s;
}
.lb-thumb img { display: block; height: 100%; width: 100%; object-fit: cover; pointer-events: none; }
.lb-thumb:hover { opacity: .85; filter: none; }
.lb-thumb.is-current {
  opacity: 1; filter: none;
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(218, 165, 32, .55);
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 700px) {
  .site-header { height: 68px; }
  .site-header.is-solid { height: 58px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 10.5px; letter-spacing: .18em; }
  .hero-index { left: var(--pad-x); right: auto; bottom: 30px; }
  .hero-content { bottom: 84px; }
  .hero-actions { gap: 16px 26px; }
  .scroll-cue .line { height: 34px; }
  .collection-count { display: block; margin: 14px 0 0; }

  .lb-top { height: 60px; }
  .lb-count { font-size: 18px; }
  .lb-count .sep { width: 20px; }
  .lb-caption { display: none; }
  .lb-tools { gap: 8px; }
  .lb-btn { width: 40px; height: 40px; }
  .lb-btn svg { width: 16px; height: 16px; }
  .lb-strip { height: 84px; }
  .lb-thumb { height: 44px; }
}
@media (max-width: 380px) {
  .site-nav { gap: 12px; }
  .site-nav a { letter-spacing: .12em; }
  .brand img { height: 24px; }
}
@media (hover: none), (pointer: coarse) {
  .lb-arrow { display: none; }
  /* phones: tiles appear quickly instead of a slow "power on" */
  .tile { transform: translate3d(0, 22px, 0); transition-duration: .7s, .9s, .6s; }
  .tile img { transition-duration: .6s, 1s, .9s; }
}

/* phone on its side: compact hero, and the lightbox photo uses the whole screen */
@media (max-height: 500px) {
  .site-header { height: 58px; }
  .site-header.is-solid { height: 50px; }
  .hero { min-height: 300px; }
  .hero-content { bottom: 30px; }
  .hero-title { font-size: clamp(2.6rem, 19vh, 5.6rem); margin: .14em 0 .1em; }
  .hero-tagline { font-size: .98rem; }
  .hero-actions { margin-top: 16px; }
  .scroll-cue .line { height: 30px; }
  .btn-ghost { height: 40px; }
  .hero-index { display: none; }

  .lb-strip, .lb-caption { display: none; }
  .lb-top { height: 56px; }
  .lb-btn { width: 38px; height: 38px; }
  .lb-btn svg { width: 15px; height: 15px; }
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue .line::after { animation: none; }
  .hero-slide.is-active .hero-frame, .hero-slide.is-leaving .hero-frame { animation: none; transform: scale(1.03); }
  .hero-media { transition-duration: 1s; }
  .hero-bloom { display: none; }
  .tile, .tile img { transition-duration: .4s !important; transition-delay: 0ms !important; transform: none !important; }
  .hero-title .ch { transition-duration: .6s; transition-delay: 0ms; transform: none; }
}
