/* ==========================================================================
   QQ Barbershop — THE LINEUP
   DGENIUS concept study. Photographic stage: one chair, registered across
   seven real portraits, so the chair holds while the barber changes.
   ========================================================================== */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink:        #0a0a0b;
  --ink-2:      #121214;
  --bone:       #f4f1ec;
  --bone-dim:   #b9b4ac;
  --muted:      #6f6b64;
  --line:       #26262a;
  --brass:      #d8b26a;
  --plate-ar:   1.5;            /* portrait plates are 2:3 */
  --gut:        clamp(18px, 5vw, 64px);
  --display:    'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --text:       'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: min(1280px, 100% - var(--gut) * 2); margin-inline: auto; }

.eyebrow {
  font-family: var(--text);
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--bone); color: var(--ink);
  padding: 12px 18px; z-index: 100; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: absolute; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gut);
  mix-blend-mode: difference;
  pointer-events: none;
}
.masthead .mark {
  font-family: var(--display); font-weight: 800;
  font-size: 22px; letter-spacing: .06em; text-transform: uppercase;
}
.masthead .loc {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-dim);
}

/* ------------------------------------------------- hero, over the live stage */

/* The chair IS the hero. The headline sits on top of the first lineup frame
   rather than in front of it, and scroll lifts it away. `--hero-out` runs 0 -> 1
   across the first step of the track. */

.hero-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: grid; align-content: end; justify-items: center;
  gap: clamp(10px, 1.6vh, 18px);
  padding: 0 var(--gut) clamp(34px, 6vh, 74px);
  text-align: center;
  pointer-events: none;
  opacity: calc(1 - var(--hero-out, 0));
  transform: translateY(calc(var(--hero-out, 0) * -30px));
  transition: opacity .5s ease, transform .5s ease;
}
.hero-overlay h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, min(7.6vw, 9vh), 112px);
  line-height: .88; letter-spacing: -0.015em; text-transform: uppercase;
  margin: 0;
  text-shadow: 0 6px 40px rgba(0,0,0,.85);
}
.hero-overlay h1 em { font-style: normal; color: var(--brass); }
.hero-overlay .eyebrow {
  position: absolute; top: clamp(62px, 9vh, 104px); left: var(--gut); right: var(--gut);
  text-shadow: 0 2px 16px rgba(0,0,0,.9);
}
.hero-overlay .cue {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--bone-dim); margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.9);
}
.hero-overlay .cue span.rule { width: 56px; height: 1px; background: currentColor; display: block; }

/* Darkens the plate so the headline stays readable over a photograph. Driven by
   the intro phase, not only by scroll: heavy on arrival, light while the lineup
   runs itself, then gone once you scroll. */
.plate-scrim {
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,.35) 0%, rgba(0,0,0,.82) 100%);
  opacity: 0;
  transition: opacity .75s ease;
  pointer-events: none;
}
.stage[data-hero='in']   .plate-scrim { opacity: .92; }
.stage[data-hero='run']  .plate-scrim { opacity: .34; }
.stage[data-hero='idle'] .plate-scrim { opacity: calc(.34 * (1 - var(--hero-out, 0))); }

/* The working UI is out of the way until the intro has had its moment, then
   fades in as the headline leaves. */
.stage[data-hero] .stage-meta,
.stage[data-hero] .rail,
.stage[data-hero] .ticks { opacity: var(--hero-out, 0); transition: opacity .5s ease; }
.stage[data-hero='in'] .stage-meta,
.stage[data-hero='in'] .rail,
.stage[data-hero='in'] .ticks,
.stage[data-hero='run'] .stage-meta,
.stage[data-hero='run'] .rail,
.stage[data-hero='run'] .ticks { opacity: 0; }
.stage[data-hero] .stage-meta { pointer-events: none; }
.stage[data-hero='idle'] .stage-meta { pointer-events: auto; }

/* The giant name behind the plate is the intro's loudest signal, so it is
   brighter while the lineup is running itself. */
.stage[data-hero='run'] .stage-name b { color: #34343d; }

/* ------------------------------------------------------------------ stage */

.lineup { position: relative; }

.stage {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(48px, 7vh, 80px) var(--gut) clamp(28px, 5vh, 52px);
}

.stage-inner {
  position: relative; z-index: 2;
  display: block;
  width: max-content; max-width: 100%;
}

/* enormous name, sitting behind the plate */
.stage-name {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  z-index: 1;
}
.stage-name b {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(110px, 27vw, 420px);
  line-height: .8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #25252b;
  white-space: nowrap;
  transition: opacity .45s ease;
}

/* the photographic plate */
.plate {
  position: relative; z-index: 2;
  width: min(clamp(260px, 44vw, 470px), calc((100svh - 150px) / var(--plate-ar)));
  aspect-ratio: 1 / 1.5;
  margin-inline: auto;
  background: var(--ink-2);
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9);
}
.plate img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.plate img.is-on { opacity: 1; }

.plate-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: 4;
  background: linear-gradient(to top, rgba(6,6,7,.95) 0%, rgba(6,6,7,.72) 34%, rgba(6,6,7,0) 100%);
  pointer-events: none;
}

/* caption block under the plate */
.stage-meta {
  position: absolute; z-index: 6;
  left: 50%; transform: translateX(-50%);
  bottom: clamp(16px, 2.6vh, 30px);
  width: max-content; max-width: min(92vw, 560px);
  display: grid; justify-items: center; gap: 7px;
  text-align: center;
}
.stage-meta .who {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1; letter-spacing: .01em; text-transform: uppercase;
  margin: 0;
}
.stage-meta .where {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-dim); margin: 0;
}
.stage-meta .stat { font-size: 13px; color: var(--muted); margin: 0; }
.stage-meta .stat b { color: var(--bone-dim); font-weight: 600; }

.stage-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

.btn {
  display: inline-block;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 12px 20px;
  border: 1px solid var(--line);
  color: var(--bone);
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn.solid { background: var(--brass); border-color: var(--brass); color: #191306; }
.btn.solid:hover, .btn.solid:focus-visible { background: var(--bone); border-color: var(--bone); color: var(--ink); }

/* name rail */
.rail {
  position: absolute; z-index: 3;
  top: 50%; transform: translateY(-50%);
  right: var(--gut);
  display: grid; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.rail button {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 700;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: #4a4740; padding: 4px 0 4px 26px;
  position: relative;
  transition: color .2s ease;
}
.rail button::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 16px; height: 1px; background: currentColor;
  transform: scaleX(.35); transform-origin: left; transition: transform .2s ease;
}
.rail button:hover { color: var(--bone-dim); }
.rail li[aria-current='true'] button { color: var(--bone); }
.rail li[aria-current='true'] button::before { transform: scaleX(1); }

/* progress ticks (mobile) */
.ticks {
  display: none; gap: 6px; justify-content: center;
  position: absolute; z-index: 6; left: 0; right: 0; bottom: -18px;
}
.ticks i { display: block; width: 18px; height: 2px; background: #2d2d31; transition: background .2s ease; }
.ticks i.on { background: var(--brass); }

.hint {
  position: absolute; z-index: 3; left: var(--gut); bottom: clamp(18px, 4vh, 44px);
  opacity: var(--hero-out, 1);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #46433d;
}

/* the scroll track that drives the stage */
.track { position: relative; }
.track > .step { height: 100svh; }

/* ------------------------------------------------- no-JS / static fallback */

.static-roster { padding: clamp(60px, 9vw, 130px) 0; }
.roster-grid {
  display: grid; gap: clamp(18px, 2.4vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 20vw, 230px), 1fr));
  list-style: none; margin: 32px 0 0; padding: 0;
}
.roster-grid figure { margin: 0; }
.roster-grid img { width: 100%; height: auto; aspect-ratio: 1 / 1.5; object-fit: cover; background: var(--ink-2); }
#pending .roster-grid { grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 22vw, 260px), 1fr)); }
#pending .roster-grid img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.roster-grid figcaption { padding-top: 12px; }
.roster-grid .rn {
  font-family: var(--display); font-weight: 700; font-size: 20px;
  text-transform: uppercase; letter-spacing: .03em;
}
.roster-grid .rm { font-size: 12px; color: var(--muted); }
.roster-grid .gap {
  display: inline-block; margin-top: 8px; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brass); border: 1px solid #3a3121; padding: 4px 8px;
}
.js-on .static-roster.js-hidden { display: none; }

/* --------------------------------------------------------------- sections */

.section { padding: clamp(70px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.section h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 6.5vw, 86px);
  line-height: .92; letter-spacing: -0.01em; text-transform: uppercase;
  margin: 14px 0 20px;
}
.section p.lede { max-width: 62ch; color: var(--bone-dim); font-size: clamp(15px, 1.4vw, 17px); margin: 0 0 8px; }

.cols { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 860px) { .cols.two { grid-template-columns: 1fr 1fr; } }

.loc-card { border: 1px solid var(--line); padding: clamp(22px, 3vw, 34px); }
.loc-card h3 {
  font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 34px);
  text-transform: uppercase; letter-spacing: .02em; margin: 10px 0 14px;
}
.loc-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; }
.loc-card dt { color: var(--muted); }
.loc-card dd { margin: 0; color: var(--bone-dim); }
.loc-card .roster { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.loc-card .roster li { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #191919; padding-bottom: 7px; }
.loc-card .roster .rv { color: var(--muted); font-size: 12px; white-space: nowrap; }

.note {
  border: 1px solid var(--line); padding: clamp(22px, 3vw, 34px);
  font-size: 14px; color: var(--bone-dim); max-width: 78ch;
}
.note h3 {
  font-family: var(--display); font-weight: 700; font-size: 20px;
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; color: var(--bone);
}
.note ul { margin: 12px 0 0; padding-left: 18px; }
.note li { margin-bottom: 7px; }

.site-foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 70px;
  font-size: 12px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 860px) {
  .rail { display: none; }
  .ticks { display: flex; }
  .hint { display: none; }
  .masthead .loc { display: none; }
  .plate { width: min(86vw, calc((100svh - 130px) / var(--plate-ar))); }
  .stage-cta { gap: 8px; }
  .btn { padding: 11px 16px; font-size: 11px; }
  .stage-name b { color: #1b1b20; font-size: 34vw; }
}

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

@media (prefers-reduced-motion: reduce) {
  .plate img, .stage-name b, .hero-overlay, .plate-scrim { transition: none !important; }
  html { scroll-behavior: auto !important; }
}
