/* ----------------------------------------------------------------------------
   Michael Gassmann — jazz trumpeter. A cinematic, dark, brass-lit site built
   around Luca Vantusso's photographs. Static: plain HTML + CSS + a little
   vanilla JS, no build, no dependencies. Shares one token system with its
   subpages (discography, photos).
   ------------------------------------------------------------------------- */

:root {
  --bg:        #0c0b0a;   /* warm near-black, the stage dark            */
  --bg-2:      #141210;   /* panels / cards                            */
  --bg-3:      #1b1814;   /* hover                                     */
  --ink:       #ece7dd;   /* warm off-white, the voice                 */
  --ink-soft:  #b3aa9a;   /* secondary                                 */
  --ink-faint: #847b6c;   /* labels, captions                         */
  --brass:     #c79a4e;   /* warm brass — the horn                      */
  --brass-dim: #9c7836;
  --line:      #2a2620;   /* hairlines                                 */

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans:  "Avenir Next", "Avenir", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 42rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ───────────────────────────────  NAV  ──────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.8rem, 2vw, 1.3rem) clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(8,7,6,0.55), rgba(8,7,6,0));
  transition: background 300ms ease, backdrop-filter 300ms ease;
}
.nav.is-stuck {
  background: rgba(10,9,8,0.82);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__name {
  font-family: var(--sans);
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav__links { display: flex; gap: clamp(0.9rem, 2.4vw, 1.8rem); }
.nav__links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 200ms ease;
}
.nav__links a:hover { color: var(--brass); }
@media (max-width: 36rem) { .nav__links { display: none; } }

/* ───────────────────────────────  HERO  ─────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  isolation: isolate;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(8,7,6,0.45) 0%, rgba(8,7,6,0.05) 30%, rgba(8,7,6,0.15) 55%, rgba(8,7,6,0.85) 100%);
}
.hero__inner {
  text-align: center;
  padding: 0 clamp(1.25rem, 5vw, 4rem) clamp(4rem, 12vh, 8rem);
  animation: rise 1400ms cubic-bezier(.16,.7,.27,1) both;
}
.hero__name {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.hero__tagline {
  margin: clamp(0.8rem, 2.4vh, 1.4rem) 0 0;
  font-family: var(--sans);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  color: var(--ink-soft);
  text-shadow: 0 1px 20px rgba(0,0,0,0.6);
}
.hero__credit {
  position: absolute;
  right: clamp(0.9rem, 2.5vw, 1.6rem);
  bottom: clamp(0.7rem, 2vh, 1.1rem);
  margin: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236,231,221,0.5);
}

/* ────────────────────────────  SECTIONS  ─────────────────────────────── */

.section {
  padding: clamp(4rem, 12vh, 9rem) clamp(1.25rem, 6vw, 3rem);
}
.section--tight { padding-top: clamp(2.5rem, 7vh, 5rem); }
.section__head {
  max-width: var(--measure);
  margin: 0 auto clamp(2rem, 5vh, 3.5rem);
  text-align: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}
.section__title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0;
}

/* Story / bio */
.story { max-width: var(--measure); margin: 0 auto; }
.story__lead {
  font-family: var(--sans);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 1.6rem;
}
.story p { color: var(--ink-soft); margin: 0 0 1.2rem; }
.story em { color: var(--ink); font-style: italic; }

/* ──────────────────────────  DISCOGRAPHY  ────────────────────────────── */

.records {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: clamp(1.2rem, 3vw, 2.2rem);
}
.record { display: block; }
.record__cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -22px rgba(0,0,0,0.8);
  transition: transform 300ms cubic-bezier(.16,.7,.27,1), box-shadow 300ms ease;
}
.record__cover img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.record__placeholder {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  padding: 1rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-faint);
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}
.record:hover .record__cover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px -22px rgba(0,0,0,0.9);
}
.record__meta { padding: 0.8rem 0.1rem 0; }
.record__title {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--ink);
}
.record__sub {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.record__year { font-family: var(--mono); color: var(--brass); }

.more {
  max-width: 72rem;
  margin: clamp(2rem, 5vh, 3rem) auto 0;
  text-align: center;
}
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.85em 1.6em;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}
.btn:hover { border-color: var(--brass); color: var(--brass); }

/* ─────────────────────────  RECORD DETAIL  ──────────────────────────── */
.page-head--rec { padding-bottom: 0; text-align: left; max-width: 56rem; margin: 0 auto; }
.rec { max-width: 56rem; margin: 0 auto; }
.rec__top { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: flex-start; }
.rec__cover {
  width: clamp(12rem, 36vw, 20rem); aspect-ratio: 1 / 1;
  object-fit: contain; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-2);
}
.rec__cover.record__placeholder { display: grid; place-items: center; padding: 1.5rem; }
.rec__info { flex: 1; min-width: 14rem; }
.rec__title { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.05; margin: 0 0 0.7rem; }
.rec__facts { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--ink-faint); margin: 0 0 0.8rem; }
.rec__facts .record__year { color: var(--brass); }
.rec__artists { color: var(--ink-soft); margin: 0 0 1.2rem; }
.rec__ext {
  display: inline-block; font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.rec__ext:hover { color: var(--brass); border-color: var(--brass); }
.rec__block { margin-top: clamp(2rem, 5vh, 3rem); }
.rec__h { font-size: 1.05rem; font-weight: 400; color: var(--ink); margin: 0 0 0.6rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.tracklist { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.tracklist li { display: flex; align-items: baseline; gap: 0.9rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); counter-increment: t; }
.tracklist li::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: 0.74rem; color: var(--ink-faint); width: 1.6rem; flex: none; }
.tracklist__t { flex: 1; color: var(--ink); }
.tracklist__d { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); }
.credits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.2rem 1.5rem; }
.credits li { padding: 0.4rem 0; }
.credits__n { display: block; color: var(--ink); }
.credits__r { display: block; font-size: 0.8rem; color: var(--ink-faint); }
.recmeta { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.4rem; margin: 0; }
.recmeta dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.recmeta dd { margin: 0; color: var(--ink-soft); }
.recmeta__lnk { color: var(--brass); border-bottom: 1px solid transparent; }
.recmeta__lnk:hover { border-color: var(--brass); }
.quote { margin: 0 0 1rem; padding-left: 1rem; border-left: 2px solid var(--brass-dim); font-style: italic; color: var(--ink); }
.quote cite { display: block; margin-top: 0.3rem; font-style: normal; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--ink-faint); }
.recprose { margin: 0 0 0.9rem; max-width: 42rem; color: var(--ink-soft); line-height: 1.7; }
.recprose:last-child { margin-bottom: 0; }
[id] { scroll-margin-top: 1.5rem; }

/* ────────────────────────────  JUKEBOX  ──────────────────────────────── */

.jukebox {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.jukebox__viz {
  position: relative;
  display: block;
  width: 100%;
  margin: clamp(1rem, 3vw, 1.6rem) auto 0.5rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(to bottom, #0a0908, #110e0a);
}
.jukebox__viz:not([data-size]),
.jukebox__viz[data-size="s"] { max-width: 300px; }
.jukebox__viz[data-size="m"] { max-width: 480px; }
.jukebox__viz[data-size="l"] { max-width: 760px; }
.jukebox__viz:fullscreen { max-width: none; width: 100vw; height: 100vh; margin: 0; border: 0; border-radius: 0; aspect-ratio: auto; }
.viz__c { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; transition: opacity 260ms ease; }
.viz__c--gl { opacity: 0; }
.viz__modes {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; gap: 0.15rem; justify-content: center;
  padding: 0.35rem; opacity: 0; transition: opacity 220ms ease; pointer-events: none;
}
.viz__ctl {
  position: absolute; top: 0; right: 0; z-index: 3;
  display: flex; gap: 0.15rem; padding: 0.35rem;
  opacity: 0; transition: opacity 220ms ease; pointer-events: none;
}
.jukebox__viz:hover .viz__modes, .viz__modes:focus-within,
.jukebox__viz:hover .viz__ctl, .viz__ctl:focus-within { opacity: 1; pointer-events: auto; }
.viz__modes button, .viz__ctl button {
  background: rgba(10,9,8,0.55); border: 1px solid var(--line); color: var(--ink-faint);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px; cursor: pointer; backdrop-filter: blur(4px);
  transition: color 160ms ease, border-color 160ms ease;
}
.viz__modes button:hover, .viz__ctl button:hover { color: var(--ink); }
.viz__modes button.is-on, .viz__ctl button.is-on { color: var(--brass); border-color: var(--brass-dim); }
@media (hover: none) { .viz__modes, .viz__ctl { opacity: 1; pointer-events: auto; } }
.jukebox__bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--line);
}
.jukebox__btn {
  flex: none;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}
.jukebox__btn:hover { border-color: var(--brass); color: var(--brass); }
.jukebox__play::before { content: '▶'; margin-left: 2px; }
.jukebox.is-playing .jukebox__play::before { content: '❚❚'; margin-left: 0; }
.jukebox__prev::before { content: '⏮'; }
.jukebox__next::before { content: '⏭'; }
.jukebox__step {
  flex: none;
  padding: 0 0.6rem; height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}
.jukebox__step:hover { border-color: var(--brass); color: var(--brass); }
.jukebox__now { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.8rem; }
.jukebox__title {
  font-family: var(--sans);
  font-size: 1.05rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 9rem;
}
.jukebox__seek { flex: 1; min-width: 4rem; accent-color: var(--brass); cursor: pointer; }
.jukebox__time { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-faint); white-space: nowrap; }
.jukebox__list { list-style: none; margin: 0; padding: 0.4rem 0; border-top: 1px solid var(--line); }
.jukebox__track { display: flex; align-items: center; transition: background 160ms ease; }
.jukebox__track:hover { background: var(--bg-3); }
.jukebox__pick {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.6rem 1.2rem;
  background: none; border: 0; color: var(--ink-soft);
  font-family: var(--sans); font-size: 0.98rem;
  text-align: left; cursor: pointer;
  transition: color 160ms ease;
}
.jukebox__track:hover .jukebox__pick { color: var(--ink); }
.jukebox__track.is-playing .jukebox__pick { color: var(--brass); }
.jukebox__from {
  flex: none; padding: 0 1.1rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--ink-faint); white-space: nowrap;
  transition: color 180ms ease;
}
.jukebox__from:hover { color: var(--brass); }
.jukebox__dur { flex: none; padding: 0 1.1rem; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); white-space: nowrap; }
.rec__h--disc { margin: 0; padding: 0.8rem 1.2rem 0.4rem; font-size: 0.95rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.rec__h--disc:first-of-type { border-top: 1px solid var(--line); }
.jukebox__num { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-faint); width: 1.4rem; }
.jukebox__note {
  margin: clamp(1.2rem, 3vh, 1.8rem) 0 0;
  text-align: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint);
}
.jukebox__note a { color: var(--brass); border-bottom: 1px solid transparent; transition: border-color 180ms ease; }
.jukebox__note a:hover { border-color: var(--brass); }
@media (max-width: 30rem) { .jukebox__title { max-width: 6rem; } }

/* ────────────────────────────  VIDEO  ────────────────────────────────── */

.videos {
  max-width: 72rem; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.vcard {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: 0;
  color: inherit; font-family: inherit; cursor: pointer;
}
.vcard__thumb {
  position: relative; display: block;
  aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.16,.7,.27,1); }
.vcard:hover .vcard__thumb img, .vcard:focus-visible .vcard__thumb img { transform: scale(1.04); }
.vcard__play {
  position: absolute; inset: 0; margin: auto;
  width: 3.4rem; height: 3.4rem; border-radius: 999px;
  background: rgba(12,11,10,0.5); border: 1px solid rgba(255,255,255,0.55);
  display: grid; place-items: center;
  transition: background 200ms ease, border-color 200ms ease;
}
.vcard__play::before {
  content: ''; width: 0; height: 0;
  border-style: solid; border-width: 0.46rem 0 0.46rem 0.76rem;
  border-color: transparent transparent transparent #fff; margin-left: 0.18rem;
}
.vcard:hover .vcard__play, .vcard:focus-visible .vcard__play { background: var(--brass); border-color: var(--brass); }
.vcard__meta { display: block; padding: 0.7rem 0.1rem 0; }
.vcard__title { display: block; font-size: 1.02rem; color: var(--ink); line-height: 1.3; }
.vcard__sub { display: block; margin-top: 0.2rem; font-size: 0.82rem; color: var(--ink-faint); }

/* Video lightbox */
.vbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6,5,4,0.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.vbox.is-open { display: grid; animation: lb-in 240ms ease both; }
.vbox__frame { width: min(94vw, 1120px); aspect-ratio: 16 / 9; }
.vbox__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #000; box-shadow: 0 30px 80px -24px rgba(0,0,0,0.85); }
.vbox__close {
  position: absolute; top: clamp(0.6rem, 3vw, 1.4rem); right: clamp(0.6rem, 3vw, 1.4rem);
  width: 2.8rem; height: 2.8rem; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; transition: background 180ms ease;
}
.vbox__close:hover { background: rgba(255,255,255,0.18); }
@media (prefers-reduced-motion: reduce) { .vbox.is-open { animation: none; } .vcard__thumb img { transition: none; } }

/* ────────────────────────────  PHOTOS  ───────────────────────────────── */

.photostrip {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(0.6rem, 1.5vw, 1rem);
}
.photostrip figure {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.photostrip img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.02);
  transition: transform 600ms cubic-bezier(.16,.7,.27,1);
}
.photostrip figure:hover img { transform: scale(1.04); }

/* ───────────────────────────  GALLERY (photos.html)  ─────────────────── */

.gallery__note {
  margin: 0.5rem auto 0;
  max-width: 32rem;
  font-family: var(--sans);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.gallery__intro {
  margin: 0.7rem auto 0;
  max-width: 44rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.gallery__event {
  margin: clamp(1.8rem, 4vh, 2.6rem) 0 0.2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brass);
}
.gallery__credit {
  margin: 0.6rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.gallery {
  max-width: 76rem;
  margin: 0 auto;
  column-count: 3;
  column-gap: clamp(0.6rem, 1.5vw, 1rem);
}
.gallery .shot {
  margin: 0 0 clamp(0.6rem, 1.5vw, 1rem);
  break-inside: avoid;
}
.gallery .shot a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  display: block;
  filter: grayscale(0.1) contrast(1.02);
  transition: transform 600ms cubic-bezier(.16,.7,.27,1);
}
.gallery .shot a:hover img { transform: scale(1.03); }
.shot__cap { margin: 0.4rem 0 0; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--ink-faint); }
@media (max-width: 60rem) { .gallery { column-count: 2; } }
@media (max-width: 34rem) { .gallery { column-count: 1; } }

/* Lightbox (photos.js) */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6,5,4,0.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; animation: lb-in 240ms ease both; }
.lightbox__img {
  max-width: 100%; max-height: 90vh; max-height: 90svh;
  border-radius: 6px; box-shadow: 0 30px 80px -24px rgba(0,0,0,0.85);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 2.8rem; height: 2.8rem;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  transition: background 180ms ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.18); }
.lightbox__link, .vbox__link {
  position: absolute; z-index: 2;
  top: clamp(0.6rem, 3vw, 1.4rem); left: clamp(0.6rem, 3vw, 1.4rem);
  background: rgba(255,255,255,0.10); color: #fff;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 999px;
  font: inherit; font-size: 0.78rem; padding: 0.45rem 0.85rem; cursor: pointer;
  backdrop-filter: blur(4px); transition: background 180ms ease;
}
.lightbox__link:hover, .vbox__link:hover { background: rgba(255,255,255,0.2); }
.lightbox__close { top: clamp(0.6rem, 3vw, 1.4rem); right: clamp(0.6rem, 3vw, 1.4rem); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: clamp(0.4rem, 2vw, 1.2rem); }
.lightbox__next { right: clamp(0.4rem, 2vw, 1.2rem); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lightbox.is-open { animation: none; }
  .gallery img { transition: none; }
}

/* ────────────────────────────  CONTACT  ──────────────────────────────── */

.contact { max-width: var(--measure); margin: 0 auto; text-align: center; }
.contact__mail {
  display: inline-block;
  font-family: var(--sans);
  font-size: clamp(1.3rem, 4vw, 2.1rem);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 220ms ease, color 220ms ease;
}
.contact__mail:hover { color: var(--brass); border-color: var(--brass); }
.social {
  margin: clamp(1.8rem, 4vh, 2.6rem) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
}
.social a {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 200ms ease;
}
.social a:hover { color: var(--brass); }

/* ────────────────────────────  FOOTER  ───────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 5vh, 3rem) 1.5rem;
  text-align: center;
}
.foot p {
  margin: 0.2rem 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* alternating section tint */
.tint { background: linear-gradient(to bottom, var(--bg), #0a0908); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ───────────────────────────  SUBPAGE HEAD  ──────────────────────────── */

.page-head {
  padding: clamp(6rem, 14vh, 9rem) clamp(1.25rem, 6vw, 3rem) clamp(2rem, 5vh, 3.5rem);
  text-align: center;
}
.back {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.back:hover { color: var(--brass); }

/* ────────────────────────────  MOTION  ───────────────────────────────── */

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

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__inner { animation: none; }
  * { transition: none !important; }
}
