/* ==========================================================================
   The Boss Life Photos: Miguel Carrasco at Funnel Hacking Live 2026
   Gold and black identity · Inter Tight throughout (heavy uppercase display)
   ========================================================================== */

:root {
  --gold:      #c39848;   /* warm antique gold, the accent */
  --gold-hi:   #e5c078;   /* luminous highlight */
  --gold-deep: #9a7534;
  --ink:       #0e0801;   /* warm near-black base */
  --ink-soft:  #2a2218;
  --grey:      #555555;
  --paper:     #FAF9F7;
  --white:     #FFFFFF;
  --gutter:    clamp(6px, 1vw, 12px);
  --nav-h:     56px;
  --sans:      "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Theme (dark is the default; html[data-theme="light"] overrides).
     Only the gallery/page surface flips: hero, film strip, footer and
     lightbox are art-dark in both themes. */
  --page-bg:     #0e0801;
  --page-text:   #F2F1EE;
  --page-muted:  #A5A19A;
  --nav-solid-bg:   rgba(14,8,1,.92);
  --nav-solid-text: #F2F1EE;
  --nav-solid-line: rgba(250,249,247,.09);
}

html[data-theme="light"] {
  --page-bg:     #FAF9F7;
  --page-text:   #141519;
  --page-muted:  #555555;
  --nav-solid-bg:   rgba(250,249,247,.92);
  --nav-solid-text: #141519;
  --nav-solid-line: rgba(20,21,25,.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--page-bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-text);
  transition: background .35s ease, color .35s ease;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.booting > :not(noscript) { visibility: hidden; }
body.locked { overflow: hidden; }

img { display: block; }

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

/* Gold tick used before the letter-spaced eyebrow labels */
.tick {
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-1px);
}

/* ==========================================================================
   GATE
   ========================================================================== */

#gate {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--ink);
}

.gate-cover {
  position: absolute; inset: -40px;
  background-size: cover;
  background-position: center 30%;
  filter: blur(34px) saturate(0.7) brightness(0.7);
  transform: scale(1.1);
  opacity: 0;
  transition: opacity 1.2s ease;
}
#gate.has-cover .gate-cover { opacity: 1; }

.gate-veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(14,8,1,.25) 0%, rgba(14,8,1,.72) 100%);
}

.gate-card {
  position: relative;
  width: min(400px, 100%);
  background: #16100a;
  color: var(--white);
  border: 1px solid rgba(195,152,72,.35);
  border-radius: 14px;
  padding: 40px 36px 30px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: gate-in .5s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes gate-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-card { animation: none; }
}

.gate-crest { margin: 0 auto 18px; }

.gate-card h1 {
  font-weight: 900;
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.05;
}

.gate-sub {
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin: 10px 0 26px;
  color: var(--gold);
}
.gate-sub span { color: var(--gold-hi); }

#gate-form { display: grid; gap: 10px; }

#gate-code {
  width: 100%;
  padding: 13px 16px;
  font: 500 1rem var(--sans);
  letter-spacing: .06em;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8d5d0;
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#gate-code:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195,152,72,.12);
}

#gate-btn {
  padding: 13px 16px;
  font: 600 .95rem var(--sans);
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
#gate-btn:hover, #gate-btn:focus-visible { background: var(--gold-hi); }
#gate-btn[disabled] { opacity: .6; cursor: default; }

#gate-msg {
  min-height: 1.3em;
  margin: 12px 0 0;
  font-size: .86rem;
  color: var(--gold-hi);
}

/* ==========================================================================
   NAV
   ========================================================================== */

#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 32px);
  color: var(--white);
  transition: background .3s, color .3s, box-shadow .3s;
}
#nav.solid {
  background: var(--nav-solid-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--nav-solid-text);
  box-shadow: 0 1px 0 var(--nav-solid-line);
}

.nav-name {
  font-weight: 800;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: inherit;
  text-decoration: none;
}

.nav-mark {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85;
}
@media (max-width: 720px) {
  .nav-mark { display: none; }
}

/* ---- nav controls: music player + theme switch ---- */

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(155,155,155,.45);
  border-color: color-mix(in srgb, currentColor 34%, transparent);
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.nav-btn:hover, .nav-btn:focus-visible {
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-color: color-mix(in srgb, currentColor 60%, transparent);
}
.nav-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-btn svg { display: block; }

#player {
  display: flex;
  align-items: center;
  gap: 6px;
}
#player[hidden] { display: none; }

#pl-title {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  opacity: .85;
}
@media (max-width: 560px) {
  #pl-title { display: none; }
  .nav-right { gap: 8px; }
  .nav-btn { width: 31px; height: 31px; }
}

/* play/pause icon swap */
#player .ic-pause { display: none; }
#player.playing .ic-pause { display: block; }
#player.playing .ic-play { display: none; }

/* gentle pulse when autoplay was blocked: invites the tap */
#pl-toggle.nudge { animation: pl-pulse 1.8s ease-in-out 3; }
@keyframes pl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(195,152,72,0); }
  50%      { box-shadow: 0 0 0 7px rgba(195,152,72,.28); }
}
@media (prefers-reduced-motion: reduce) {
  #pl-toggle.nudge { animation: none; }
}

/* sun in dark mode (tap for light), moon in light mode (tap for dark) */
html[data-theme="dark"] #theme-toggle .ic-moon { display: none; }
html[data-theme="light"] #theme-toggle .ic-sun { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */

#hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

#hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero-scrim {
  position: absolute; inset: 0;
  background:
    /* signature motif, used quietly: a warm gold glow behind the type */
    radial-gradient(ellipse 60% 48% at 14% 88%, rgba(195,152,72,.20) 0%, rgba(195,152,72,0) 70%),
    linear-gradient(to bottom, rgba(14,8,1,.30) 0%, rgba(14,8,1,0) 26%),
    linear-gradient(to top, rgba(14,8,1,.72) 0%, rgba(14,8,1,0) 55%);
}

.hero-text {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  bottom: clamp(56px, 11vh, 120px);
  color: var(--white);
}

/* gold, uppercase, letter-spaced eyebrow labels (hero, film strip,
   chapter bands, film cards) share one voice */
.hero-eyebrow, .film-label, .ci-kicker, .cin-card .cin-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-eyebrow {
  margin: 0 0 14px;
  font-size: clamp(.75rem, 1.1vw, .8rem);
}

.hero-name {
  margin: 0;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 8rem);
  line-height: .9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-year {
  margin: 20px 0 0;
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: .04em;
}
.hero-year em {
  font-style: normal;
  font-weight: 800;
  color: var(--gold-hi);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.hero-cue {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  color: var(--white);
  opacity: .75;
  animation: cue-bob 2.4s ease-in-out infinite;
}
.hero-cue:hover { opacity: 1; }
@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cue { animation: none; }
}

/* ==========================================================================
   FILM STRIP (carousel)
   ========================================================================== */

#film {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(40px, 7vh, 84px) 0 clamp(34px, 5vh, 60px);
}

.film-label {
  margin: 0 0 26px;
  padding: 0 clamp(20px, 5vw, 72px);
}

#film-viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}
#film-viewport.dragging { cursor: grabbing; }
#film-viewport.static {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#film-track {
  display: flex;
  gap: var(--gutter);
  width: max-content;
  will-change: transform;
}

.film-item {
  position: relative;
  flex: none;
  height: clamp(190px, 30vh, 320px);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-radius: 3px;
}
.film-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.film-item img.loaded { opacity: 1; }
.film-item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(14,8,1,0);
  transition: background .25s;
}
.film-item:hover::after { background: rgba(14,8,1,.14); }

.film-hint {
  margin: 22px 0 0;
  padding: 0 clamp(20px, 5vw, 72px);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250,249,247,.4);
}

/* ==========================================================================
   GALLERY: justified rows
   ========================================================================== */

#gallery {
  padding: clamp(48px, 8vh, 110px) clamp(12px, 3vw, 40px) clamp(60px, 9vh, 120px);
  max-width: 1680px;
  margin: 0 auto;
}

.chapter { margin: 0 0 clamp(40px, 7vh, 90px); }
.chapter:last-child { margin-bottom: 0; }

.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 4px clamp(18px, 3vh, 30px);
}

.chapter-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.chapter-count {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--page-muted);
}

.chapter-body { position: relative; }

.ph {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
}

.ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s ease, transform .45s ease;
}
.ph img.loaded { opacity: 1; }

@media (hover: hover) {
  .ph:hover img.loaded { transform: scale(1.03); }
}

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

/* scroll reveal */
.ph.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--d, 0s);
}
.ph.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .ph.reveal { opacity: 1; transform: none; transition: none; }
  .ph img { transition: opacity .3s ease; }
  .ph:hover img.loaded { transform: none; }
}

/* ==========================================================================
   CHAPTER INTRO BANDS: scroll-driven storytelling
   Full-bleed featured image with a slow parallax drift, big heavy title and
   an editorial line. The image enters grayscale and washes into colour.
   ========================================================================== */

.chapter-intro {
  position: relative;
  height: clamp(300px, 52vh, 520px);
  margin: 0 0 clamp(18px, 3vh, 30px);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink);
}

.ci-img {
  position: absolute;
  left: 0; right: 0;
  top: -12%; height: 124%;   /* headroom for the parallax drift */
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(1) brightness(.9);
  transition: filter 1.4s ease .15s;
  will-change: transform;
}
.chapter-intro.in .ci-img { filter: grayscale(0) brightness(.96); }

.ci-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,8,1,.72) 0%, rgba(14,8,1,.08) 55%, rgba(14,8,1,.18) 100%);
}

.ci-text {
  position: absolute;
  left: clamp(18px, 4vw, 48px);
  bottom: clamp(18px, 4vh, 40px);
  right: clamp(18px, 4vw, 48px);
  color: var(--white);
}

.ci-kicker {
  margin: 0 0 10px;
}

.ci-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: .96;
  text-transform: uppercase;
}

.ci-line {
  margin: 12px 0 0;
  font-weight: 400;
  font-size: clamp(.98rem, 1.8vw, 1.2rem);
  color: rgba(250,249,247,.88);
  max-width: 34em;
}

/* text rises gently as the band reveals */
.chapter-intro .ci-text {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease .2s, transform .8s ease .2s;
}
.chapter-intro.in .ci-text { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ci-img { filter: none; transition: none; top: 0; height: 100%; }
  .chapter-intro .ci-text { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   CINEMA: shared engine for "Watch the film" and TV ambient mode.
   Two stacked layers crossfade; the visible one drifts (Ken Burns).
   ========================================================================== */

#cinema {
  position: fixed; inset: 0; z-index: 70;
  background: #0e0801;
}

.cin-layer {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: transform, opacity;
}
.cin-layer.show { opacity: 1; }

/* alternating drifts: subtle, cinematic, never fast */
@keyframes kb-a {
  from { transform: scale(1.02) translate(0.6%, 0.4%); }
  to   { transform: scale(1.11) translate(-0.8%, -0.6%); }
}
@keyframes kb-b {
  from { transform: scale(1.11) translate(-0.7%, 0.5%); }
  to   { transform: scale(1.02) translate(0.6%, -0.4%); }
}
.cin-layer.kb-a { animation: kb-a 12s linear forwards; }
.cin-layer.kb-b { animation: kb-b 12s linear forwards; }
#cinema.tv .cin-layer.kb-a { animation-duration: 22s; }
#cinema.tv .cin-layer.kb-b { animation-duration: 22s; }
@media (prefers-reduced-motion: reduce) {
  .cin-layer.kb-a, .cin-layer.kb-b { animation: none; }
}

.cin-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(14,8,1,0) 58%, rgba(14,8,1,.5) 100%);
  pointer-events: none;
}

/* chapter / title cards */
.cin-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 24px;
  background: #0e0801;
  color: var(--paper);
  opacity: 0;
  transition: opacity .9s ease;
}
.cin-card.show { opacity: 1; }
/* closing card: the flowing gold light streams, held back to a whisper */
.cin-card.closing {
  background:
    radial-gradient(ellipse at center, rgba(14,8,1,.55) 0%, rgba(14,8,1,.92) 72%),
    url("../assets/boss-life-logo.png") center / cover no-repeat,
    #0e0801;
}
.cin-card.closing h2 { color: var(--gold-hi); }
.cin-card .cin-kicker {
  margin: 0 0 16px;
}
.cin-card h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  letter-spacing: -0.025em;
  line-height: .96;
  text-transform: uppercase;
}
.cin-card p#cin-line {
  margin: 20px 0 0;
  font-weight: 400;
  font-size: clamp(1.02rem, 2.2vw, 1.4rem);
  color: rgba(250,249,247,.85);
  max-width: 30em;
}

#cin-exit {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
}
#cinema.idle #cin-exit { opacity: 0; pointer-events: none; }
#cin-exit { transition: opacity .5s ease; }

/* QR panel: TV mode only */
#cin-qr {
  position: absolute;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vh, 36px);
  z-index: 2;
  text-align: center;
  background: rgba(250,249,247,.94);
  border-radius: 12px;
  padding: 12px 12px 8px;
  box-shadow: 0 10px 34px rgba(0,0,0,.45);
}
#cin-qr img {
  width: clamp(96px, 11vw, 150px);
  height: auto;
  border-radius: 6px;
}
#cin-qr p {
  margin: 6px 0 2px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.45;
}

/* ==========================================================================
   DEPTH: WebGL parallax canvases ("Step Inside" + cinema drift)
   ========================================================================== */

.depth-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: none;
}
.cin-layer.has-depth .depth-canvas { display: block; }
#lightbox.depth-on .lb-stage .depth-canvas { display: block; }
#lightbox.depth-on #lb-img { visibility: hidden; }

#lb-depth.active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.lb-depth-hint {
  position: absolute;
  left: 50%; bottom: 84px;
  transform: translateX(-50%);
  padding: 9px 16px;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--paper);
  background: rgba(14,8,1,.72);
  border: 1px solid rgba(250,249,247,.25);
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: hint-fade 3.6s ease forwards;
}
@keyframes hint-fade {
  0% { opacity: 0; } 12% { opacity: 1; }
  72% { opacity: 1; } 100% { opacity: 0; }
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

#lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(14,8,1,.97);
  opacity: 0;
  transition: opacity .2s ease-out;
}
#lightbox.open { opacity: 1; }

.lb-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y pinch-zoom;
}

#lb-img {
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100svh;
  object-fit: contain;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .22s ease-out, transform .22s ease-out;
  user-select: none;
  -webkit-user-drag: none;
}
#lb-img.on { opacity: 1; transform: none; }

.lb-chrome > * { transition: opacity .4s ease; }
#lightbox.idle .lb-chrome > * { opacity: 0; pointer-events: none; }
#lightbox.idle { cursor: none; }

.lb-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(14px, 2.5vw, 26px);
  background: linear-gradient(to bottom, rgba(14,8,1,.55), rgba(14,8,1,0));
}

#lb-count {
  font-size: .78rem;
  letter-spacing: .14em;
  color: rgba(250,249,247,.72);
}

.lb-actions { display: flex; gap: 10px; }

.lb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  padding: 0;
  color: var(--white);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s;
  text-decoration: none;
}
.lb-btn:hover, .lb-btn:focus-visible {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.6);
}

.lb-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
}
#lb-prev { left: clamp(10px, 2vw, 24px); }
#lb-next { right: clamp(10px, 2vw, 24px); }
@media (max-width: 640px) {
  .lb-arrow { display: none; } /* swipe instead */
}

#lb-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 40px clamp(16px, 3vw, 28px) 16px;
  font-size: .82rem;
  color: rgba(250,249,247,.78);
  background: linear-gradient(to top, rgba(14,8,1,.55), rgba(14,8,1,0));
  pointer-events: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#footer {
  background:
    radial-gradient(ellipse 50% 70% at 50% 100%, rgba(195,152,72,.12) 0%, rgba(195,152,72,0) 70%),
    var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(56px, 9vh, 100px) 24px 46px;
}

.foot-rule {
  width: 44px; height: 2px;
  background: var(--gold);
  margin: 0 auto 40px;
}

.foot-line {
  margin: 0 0 10px;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(250,249,247,.75);
}

.foot-credit {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(250,249,247,.5);
}

/* the lockup sits on its own black; screen blending lets the footer's
   warm black show through instead of a boxed rectangle */
.foot-boss { display: inline-block; margin: 0 0 28px; opacity: .92; transition: opacity .2s; }
.foot-boss:hover, .foot-boss:focus-visible { opacity: 1; }
.foot-boss img { width: 180px; height: auto; margin: 0 auto; mix-blend-mode: screen; }

/* ==========================================================================
   Gate teardown: THE bug that made a correct passcode look wrong.
   #gate sets display:flex, which outranks the UA's [hidden]{display:none}.
   exitGate() set gate.hidden = true and the panel stayed on screen anyway,
   so the gallery built correctly behind a curtain that never lifted.
   A DOM dump reported hidden=true and looked healthy; only a rendered
   browser showed the truth.
   ========================================================================== */
#gate[hidden] { display: none !important; }

/* ==========================================================================
   Living Moments: a short clip that replaces the still in the lightbox.
   The lightbox is art-dark in both themes, so the badge matches .lb-btn's
   translucent glass styling rather than the flipping page palette.
   ========================================================================== */

.lb-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
#lightbox.moment-on #lb-img { visibility: hidden; }

#lb-moment {
  position: absolute;
  left: 50%; bottom: clamp(58px, 9vh, 88px);
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px;
  font: 500 .78rem/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s;
}
#lb-moment:hover, #lb-moment:focus-visible {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.6);
}
#lb-moment.active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}
#lb-moment[hidden] { display: none; }

/* ---- clear slideshow entry points (2026-08-01) -------------------- */
.hero-play {
  display: inline-flex; align-items: center; gap: .55em;
  margin-top: 1.35rem;
  padding: .74em 1.5em .74em 1.2em;
  font: 700 .82rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .15s, transform .15s;
}
.hero-play:hover, .hero-play:focus-visible { background: var(--gold-hi); transform: translateY(-1px); }
.hero-play svg { flex: none; }
.hero-play[hidden] { display: none; }

.lb-btn.lb-play {
  width: auto;
  border-radius: 999px;
  padding: 0 1.05em 0 .85em;
  gap: .5em;
  font: 600 .82rem/1 var(--sans);
  letter-spacing: .04em;
  white-space: nowrap;
}
