/* Production archive: password gate, unlabeled thumbnail grid, inline lightbox player */
.archive-page { background: var(--black); color: var(--white); }
.archive { padding: 110px var(--pad-x) 80px; min-height: 100svh; }
.page-hero { padding: clamp(30px, 5vw, 70px) 0 clamp(36px, 5vw, 64px); }
.page-hero__title { margin: 0; font-size: clamp(48px, 9vw, 150px); line-height: .95; letter-spacing: -.035em; font-weight: 700; }
.page-hero__lede { margin: 26px 0 0; max-width: 40em; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--mute-on-dark); }
.page-hero .section-label { color: var(--white); }
/* legacy */ .archive__intro { max-width: 46em; margin: 0 0 40px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; color: var(--mute-on-dark); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.card { position: relative; display: block; width: 100%; color: var(--white); aspect-ratio: 16 / 9; overflow: hidden; background: #0b0b0b; }
.card__media { position: absolute; inset: 0; overflow: hidden; transition: transform 1.2s var(--ease); }
.card img { width: 100%; height: 118%; margin-top: -9%; object-fit: cover; filter: brightness(.88); transition: filter .6s; will-change: transform; }
.card:hover .card__media, .card:focus-visible .card__media { transform: scale(1.05); }
.card:hover img, .card:focus-visible img { filter: brightness(1); }
.card__play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .35s, transform .5s var(--ease); }
.card__play svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 8px rgba(0,0,0,.5)); }
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: none; }
.card:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }

.gate[hidden] { display: none !important; }
.gate {
  position: fixed; inset: 0; z-index: 90; overflow: hidden;
  display: grid; place-items: center; padding: 100px var(--pad-x);
  background: var(--black); color: var(--white);
  transition: opacity .8s var(--ease), visibility .8s;
}
.gate.is-leaving { opacity: 0; visibility: hidden; }
.gate.is-leaving .gate__box { transform: translateY(-14px); }

/* slow crossfade + push-in through project stills */
.gate__bg { position: absolute; inset: 0; }
.gate__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12); filter: saturate(.85);
  animation: gate-still 28s linear infinite; animation-delay: calc(var(--i) * 7s - 1.5s);
}
@keyframes gate-still {
  0% { opacity: 0; transform: scale(1.12); }
  6% { opacity: .55; }
  25% { opacity: .55; }
  32% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.gate__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, rgba(0,0,0,.75) 70%, rgba(0,0,0,.92) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.65));
}

.gate__brand {
  position: absolute; z-index: 2; top: 0; left: 50%; transform: translateX(-50%);
  height: 85px; display: flex; align-items: center;
  font-size: clamp(20px, 2.2vw, 28.3px); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.gate__meta {
  position: absolute; z-index: 2; left: var(--pad-x); right: var(--pad-x); bottom: 28px;
  display: flex; gap: 18px; font-size: 14.4px; font-weight: 500; opacity: .8;
}
.gate__meta span:not(:last-child)::after { content: "/"; margin-left: 18px; opacity: .5; }

.gate__box { position: relative; z-index: 2; width: min(100%, 620px); text-align: center; transition: transform .8s var(--ease); animation: gate-in 1.2s var(--ease) both; }
@keyframes gate-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.gate__label { margin: 0 0 14px; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.gate__title { margin: 0 0 clamp(30px, 4vw, 48px); font-size: clamp(44px, 7.5vw, 112px); line-height: .98; font-weight: 700; letter-spacing: -.035em; }

.gate__field { position: relative; display: flex; align-items: center; max-width: 420px; margin: 0 auto; border-bottom: 1px solid rgba(255,255,255,.4); transition: border-color .3s; }
.gate__field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.gate__field:focus-within::after { transform: scaleX(1); }
.gate input {
  flex: 1; min-width: 0; padding: 14px 4px; border: 0; background: transparent; outline: none;
  font: 500 20px/1.2 var(--font); letter-spacing: .04em; color: var(--white); text-align: center;
}
.gate input::placeholder { color: rgba(255,255,255,.45); letter-spacing: .02em; }
.gate__field button { position: absolute; right: 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); opacity: .7; transition: opacity .3s, transform .4s var(--ease); }
.gate__field button svg { width: 22px; height: 22px; }
.gate__field button:hover, .gate__field button:focus-visible { opacity: 1; transform: translateX(4px); }
.gate__err { margin: 16px 0 0; font-size: 14px; color: #ff8a80; }
.gate__hint { margin: 22px 0 0; font-size: 13px; color: rgba(255,255,255,.6); }
.gate__hint a { color: var(--white); text-underline-offset: 3px; }
.gate.shake .gate__field { animation: shake .4s; }
@media (prefers-reduced-motion: reduce) {
  .gate__bg img { animation: none; transform: none; }
  .gate__bg img:first-child { opacity: .5; }
  .gate__box { animation: none; }
}
@media (max-width: 520px) { .gate__meta { display: none; } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.96); display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto auto; align-items: center; padding: 48px 0 22px; opacity: 0; transition: opacity .35s; }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb__stage { grid-column: 2; width: min(100%, calc((100svh - 190px) * 16 / 9)); justify-self: center; }
.lb__stage .player, .lb__stage .vm { width: 100%; aspect-ratio: 16 / 9; }
.lb__stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb__nav, .lb__close { color: #fff; opacity: .55; font-size: 26px; transition: opacity .25s; height: 64px; }
.lb__nav:hover, .lb__close:hover { opacity: 1; }
.lb__close { position: absolute; top: 6px; right: 14px; font-size: 34px; z-index: 2; }
.lb__thumbs { grid-column: 2; display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.lb__thumbs button { width: 96px; aspect-ratio: 16 / 9; opacity: .4; transition: opacity .25s; background: #111 center / cover; }
.lb__thumbs button[aria-current="true"], .lb__thumbs button:hover { opacity: 1; }
.lb__count { grid-column: 2; text-align: center; font-size: 12px; letter-spacing: .08em; opacity: .5; margin-top: 12px; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
  .lb__thumbs button { width: 64px; }
}

/* drifting thumbnail strips under the archive title — full-bleed like the homepage */
.archive-strips { margin: 0 calc(-1 * var(--pad-x)) clamp(30px, 4vw, 56px); }
.archive-strips .pj-strips { display: grid; }

/* Filter bar on the dark archive pages (same pills as the homepage, inverted) */
.filters--dark { background: transparent; color: var(--white); padding: 0 0 clamp(22px, 3vw, 36px); }
.filters--dark button[aria-pressed="true"] { background: var(--white); color: var(--black); }
.card[hidden] { display: none; }
