:root {
  --bg: #0b0b0b;
  --fg: #f4f4f2;
  --muted: #8b8b88;
  --line: #222;
  --font: "Archivo", system-ui, sans-serif;
  --pad: clamp(1rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--pad);
  background: rgba(11,11,11,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; margin-right: auto; }
.nav nav { display: flex; gap: 1.75rem; }
.nav nav a { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav nav a:hover, .nav nav a.active { color: var(--fg); }
.socials { display: flex; gap: 1rem; }
.socials a { color: var(--muted); transition: color .2s; display: grid; }
.socials a:hover { color: var(--fg); }
.socials svg { width: 18px; height: 18px; }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 28px; height: 20px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--fg); transition: transform .25s, top .25s; }
.burger span:first-child { top: 4px; } .burger span:last-child { top: 14px; }
.menu-open .burger span:first-child { top: 9px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 9px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .burger { display: block; }
  .nav { gap: 1rem; }
  .nav nav {
    position: fixed; inset: 61px 0 0 0; background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .nav nav a { font-size: 1.6rem; font-weight: 800; }
  .menu-open .nav nav { opacity: 1; pointer-events: auto; }
}

/* ---------- Pages ---------- */
.page { display: none; padding: clamp(1.5rem, 4vw, 3rem) var(--pad) 4rem; animation: fade .4s ease; }
.page.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.page-title { font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 7vw, 5rem); line-height: .95; letter-spacing: -.01em; margin-bottom: 1.5rem; }
.back { display: inline-block; margin-bottom: 1rem; color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.back:hover { color: var(--fg); }


/* ---------- Photo wall (dense masonry) ---------- */
.grid { columns: 4 260px; column-gap: 6px; }
.grid figure { break-inside: avoid; margin-bottom: 6px; cursor: zoom-in; overflow: hidden; background: #151515; }
.grid img { width: 100%; opacity: 0; transition: opacity .5s, transform .6s; }
.grid img.loaded { opacity: 1; }
.grid figure:hover img { transform: scale(1.03); }

/* ---------- Albums ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
.album-card .cover { aspect-ratio: 4/5; overflow: hidden; background: #151515; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; }
.album-card:hover img { transform: scale(1.04); filter: brightness(1); }
.album-card h3 { font-weight: 800; text-transform: uppercase; font-size: 1.1rem; margin-top: .8rem; letter-spacing: .02em; }
.album-card p { color: var(--muted); font-size: .8rem; }

/* ---------- Video ---------- */
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 2rem 1.5rem; }
.film { cursor: pointer; }
.film-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #151515; }
.film-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.film:hover .film-thumb img { transform: scale(1.04); }
.film-thumb::after {
  content: "▶"; position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  display: grid; place-items: center; border-radius: 50%; padding-left: 4px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.4);
  font-size: 1.2rem; transition: background .3s;
}
.film:hover .film-thumb::after { background: rgba(255,255,255,.3); }
.film h3 { font-weight: 800; text-transform: uppercase; font-size: 1.05rem; margin-top: .8rem; }
.film p { color: var(--muted); font-size: .8rem; }

/* ---------- About ---------- */
.about.active { display: block; }
.about.active .about-main { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about img { width: 100%; aspect-ratio: 3/4; object-fit: cover; position: sticky; top: 90px; }
.about h2 { font-weight: 500; font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.3; margin-bottom: 1.25rem; }
#about-text p { color: #c9c9c6; margin-bottom: 1rem; max-width: 60ch; }
@media (max-width: 760px) { .about.active .about-main { grid-template-columns: 1fr; } .about img { position: static; } }

.form { display: grid; gap: .75rem; margin-top: 2rem; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form input, .form textarea {
  width: 100%; background: #141414; border: 1px solid var(--line); color: var(--fg);
  padding: .9rem 1rem; font: inherit; font-size: .95rem; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--muted); }
.form button {
  justify-self: start; background: var(--fg); color: var(--bg); border: 0; cursor: pointer;
  padding: .9rem 2rem; font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
}
.form button:hover { background: #fff; }
@media (max-width: 500px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Clients strip + footer ---------- */
.clients { border-top: 1px solid var(--line); padding: 2.5rem var(--pad); text-align: center; }
.label { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.client-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 2.5rem; }
.client-row span { font-weight: 800; text-transform: uppercase; color: #555; font-size: .95rem; letter-spacing: .05em; }
.client-row img { height: 32px; width: auto; opacity: .55; filter: grayscale(1) invert(1); }
footer { text-align: center; padding: 1.5rem; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid var(--line); }

/* ---------- Viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(5,5,5,.97); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.viewer.open { opacity: 1; pointer-events: auto; }
.v-stage { width: min(92vw, 1600px); height: 84vh; display: grid; place-items: center; }
.v-stage img { max-width: 100%; max-height: 84vh; object-fit: contain; }
.v-stage iframe, .v-stage video { width: 100%; aspect-ratio: 16/9; max-height: 84vh; border: 0; background: #000; }
.v-caption { position: absolute; bottom: 1.25rem; color: var(--muted); font-size: .8rem; letter-spacing: .1em; }
.viewer button { position: absolute; background: none; border: 0; color: var(--fg); cursor: pointer; opacity: .7; font-size: 2.5rem; padding: 1rem; }
.viewer button:hover { opacity: 1; }
.v-close { top: .5rem; right: 1rem; }
.v-prev { left: .5rem; } .v-next { right: .5rem; }
.viewer.video .v-prev, .viewer.video .v-next { display: none; }
@media (max-width: 600px) { .v-prev, .v-next { top: auto; bottom: 0; } }

/* =========================================================
   BOLD / EDITORIAL LAYER
   ========================================================= */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.page-head .page-title { margin: 0; font-size: clamp(3.5rem, 14vw, 11rem); line-height: .82; letter-spacing: -.035em; }
.page-head .count { font-weight: 800; font-size: clamp(1rem, 2vw, 1.4rem); color: var(--muted); white-space: nowrap; }

/* photos run edge to edge */
.grid { margin: 0 calc(-1 * var(--pad)); column-gap: 3px; }
.grid figure { margin-bottom: 3px; }

/* albums: numbered magazine spreads, first one full width */
.albums { grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem); }
.album-card:first-child { grid-column: 1 / -1; }
.album-card:first-child .cover { aspect-ratio: 21/9; }
.album-card .cover { aspect-ratio: 4/3; }
.album-card .meta { display: flex; gap: 1rem; align-items: baseline; margin-top: .9rem; }
.album-card .num { font-weight: 800; color: var(--muted); font-size: .9rem; }
.album-card h3 { margin: 0; font-size: clamp(1.4rem, 3.5vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }
.album-card:first-child h3 { font-size: clamp(2rem, 6vw, 4.5rem); }
@media (max-width: 700px) { .albums { grid-template-columns: 1fr; } .album-card:first-child .cover { aspect-ratio: 4/3; } }

/* video: first film is a full-width feature */
.film:first-child { grid-column: 1 / -1; }
.film:first-child h3 { font-size: clamp(1.8rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -.02em; }
.film h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); letter-spacing: -.01em; }
#album-title { font-size: clamp(2.5rem, 8vw, 7rem); overflow-wrap: anywhere; }

/* wall tiles link to their event album; event name fades in on hover */
.grid .to-album { display: block; position: relative; break-inside: avoid; margin-bottom: 3px; overflow: hidden; background: #151515; }
.grid .to-album:hover img { transform: scale(1.03); }
.tile-cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem .9rem .8rem; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: opacity .3s; }
.to-album:hover .tile-cap, .to-album:focus-visible .tile-cap { opacity: 1; }
@media (hover: none) { .tile-cap { display: none; } }   /* phones: clean photo wall, no titles over the tiles */

/* design picker (preview tool, hidden when SITE.showDesignPicker is false) */
.design-picker { position: fixed; bottom: 1rem; left: 50%; translate: -50% 0; z-index: 60; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(20,20,20,.88); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.35); font: 500 12px/1 system-ui, sans-serif; }
.design-picker[hidden] { display: none; }
.design-picker span { color: #999; padding: 9px 8px 9px 12px; }
.design-picker button { all: unset; cursor: pointer; color: #ddd; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.design-picker button:hover { background: rgba(255,255,255,.1); }
.design-picker button.on { background: #fff; color: #111; }
@media (max-width: 560px) { .design-picker span { display: none; } .design-picker button { padding: 9px 10px; } }

/* Base Cam extras are hidden unless the basecam design is active */
.hero, .flash, .about-panel, .log, .album-meta, .next-show { display: none; }
.stage, .log-artist, .log-show { display: none; }
.brand .b2 { display: inline; }
.intro { display: none; }
.ticker { display: none; }

/* Photo wall: Instagram-style grid. Reads left → right, row by row, in album order (001 top-left). */
#photo-grid, #tour-grid { columns: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
#photo-grid > *, #tour-grid > * { margin: 0; aspect-ratio: 4 / 5; }
#photo-grid img, #tour-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
