:root {
  --bg: #0a0908;
  --raised: #151311;
  --line: rgba(241, 235, 224, 0.13);
  --text: #f1ebe0;
  --text-dim: rgba(241, 235, 224, 0.7);
  --text-faint: rgba(241, 235, 224, 0.46);
  --accent: #d9a441;
  --accent-hi: #ecc064;
  --ink: #0d0b09;
  --bone: #eee7da;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  padding: 0 var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-family: var(--display);
  font-size: 24px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  padding: 10px 20px;
  background: var(--accent); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.25s var(--ease);
}
.nav-links .nav-cta:hover { background: var(--text); color: var(--ink); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100svh - 64px), 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.stage {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(64%, 960px);
  z-index: 1;
  background: var(--bg);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%), linear-gradient(to bottom, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 38%), linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.stage-slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 8%;
  filter: contrast(1.1) saturate(0.85);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.slide.on { opacity: 1; }
.stage-ui {
  position: absolute; z-index: 2;
  right: clamp(18px, 3vw, 40px); bottom: clamp(18px, 3vw, 36px);
  display: flex; align-items: center; gap: 16px;
}
.stage.single .stage-ui { display: none; }
.stage-count { font-family: var(--display); font-size: 16px; letter-spacing: 0.1em; }
.stage-bars { display: flex; gap: 6px; }
.stage-bars button {
  position: relative;
  width: clamp(24px, 4vw, 44px); height: 18px;
  padding: 0; border: 0; background: transparent; cursor: pointer;
}
.stage-bars button::before, .stage-bars button::after {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px;
}
.stage-bars button::before { background: rgba(241, 235, 224, 0.3); }
.stage-bars button::after { background: var(--accent); transform: scaleX(0); transform-origin: left; }
.stage-bars button.on::after { transform: scaleX(1); }
.stage-bars button.run::after { animation: fill 5.2s linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-copy {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--pad) clamp(40px, 6vw, 80px);
}

.eyebrow {
  margin: 0 0 clamp(16px, 2.4vw, 28px);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
}

.hero-title {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase; line-height: 0.86;
}
.hero-role {
  display: block; margin-bottom: 0.2em;
  font-size: clamp(22px, 3.2vw, 40px); letter-spacing: 0.16em;
  color: var(--accent);
}
.hero-name {
  display: inline-flex; align-items: flex-start; gap: 0.06em;
  font-size: clamp(96px, 17vw, 260px);
}
.badge { width: 0.17em; height: 0.17em; flex-shrink: 0; margin-top: 0.08em; color: var(--accent); }

.tagline {
  margin: clamp(20px, 3vw, 32px) 0 0;
  max-width: 28em;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55;
  color: var(--text);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border: 1px solid transparent;
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--text); }
.btn-ghost { border-color: rgba(241, 235, 224, 0.35); }
.btn-ghost:hover { background: var(--text); color: var(--ink); border-color: var(--text); }

/* ---------- stats ---------- */
.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 36px 0 36px 28px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { font-family: var(--display); font-size: clamp(40px, 5.2vw, 72px); line-height: 1; color: var(--accent); }
.stat-label { font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }

.slot {
  width: 100%; height: 100%; min-height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-faint);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--raised);
}
.slot svg { width: 28px; height: 28px; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--accent); color: var(--ink); }
.ticker-track { display: flex; width: max-content; animation: ticker 50s linear infinite; }
.ticker span {
  flex-shrink: 0; padding: 14px 0;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 26px); letter-spacing: 0.12em; text-transform: uppercase;
}
.ticker span::after { content: "/"; margin: 0 clamp(20px, 3vw, 40px); opacity: 0.5; }
@keyframes ticker { to { transform: translateX(-25%); } }

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--pad) 0;
  scroll-margin-top: 64px;
}
.section-wide { max-width: none; padding-left: 0; padding-right: 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--pad); max-width: var(--max); margin-left: auto; margin-right: auto; }
.kicker {
  margin: 0 0 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(52px, 8vw, 112px);
  text-transform: uppercase; line-height: 1;
}

/* ---------- about ---------- */
.manifesto-text {
  margin: 0 0 clamp(56px, 8vw, 110px);
  max-width: 13em;
  font-family: var(--display);
  font-size: clamp(42px, 7.4vw, 108px);
  line-height: 1; text-transform: uppercase;
}
.manifesto-text em { font-style: normal; color: var(--accent); }

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.highlight { padding-top: 22px; border-top: 3px solid var(--accent); }
.hl-num { display: block; margin-bottom: 36px; font-family: var(--display); font-size: 20px; letter-spacing: 0.08em; color: var(--accent); }
.highlight h3 {
  margin: 0 0 14px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 3vw, 38px); letter-spacing: 0.02em; text-transform: uppercase; line-height: 1;
}
.highlight p { margin: 0; max-width: 34em; font-size: 16px; line-height: 1.65; color: var(--text-dim); }

/* ---------- gallery rail ---------- */
.rail-nav { display: flex; gap: 8px; }
.rail-btn {
  width: 52px; height: 52px;
  border: 1px solid var(--line); background: transparent;
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.rail-btn:hover { background: var(--text); color: var(--ink); border-color: var(--text); }

.rail {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 8px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  scroll-padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.g-item {
  position: relative; flex: 0 0 clamp(250px, 27vw, 380px);
  aspect-ratio: 3 / 4;
  padding: 0; margin: 0; border: 0; border-radius: 0;
  overflow: hidden; background: var(--raised);
  scroll-snap-align: start;
  cursor: default;
}
button.g-item { cursor: zoom-in; }
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
button.g-item:hover img { transform: scale(1.04); }
.g-num {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--display); font-size: 16px; letter-spacing: 0.1em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* ---------- links (light band) ---------- */
.links-band {
  margin-top: clamp(90px, 12vw, 160px);
  padding: clamp(72px, 10vw, 130px) var(--pad);
  background: var(--bone); color: var(--ink);
  scroll-margin-top: 64px;
}
.links-inner { max-width: var(--max); margin: 0 auto; }
.links-band .kicker { color: #8a5f12; }
.links { border-top: 2px solid var(--ink); }
.link-card {
  display: flex; align-items: center; gap: 20px;
  padding: clamp(22px, 3vw, 36px) 20px;
  border-bottom: 1px solid rgba(13, 11, 9, 0.2);
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.link-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; }
.link-icon svg { width: 28px; height: 28px; }
.link-text { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; min-width: 0; }
.link-label {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(32px, 5vw, 64px); line-height: 1;
}
.link-sub { font-size: 14.5px; opacity: 0.6; }
.arrow { width: 24px; height: 24px; flex-shrink: 0; opacity: 0.6; transition: transform 0.3s var(--ease), opacity 0.3s; }
.link-card:hover { background: var(--ink); color: var(--bone); }
.link-card:hover .arrow { transform: translate(4px, -4px); opacity: 1; color: var(--accent); }
.link-card.highlight { background: var(--ink); color: var(--bone); border-bottom-color: var(--ink); }
.link-card.highlight .link-label, .link-card.highlight .link-icon { color: var(--accent); }
.link-card.highlight .arrow { opacity: 1; color: var(--accent); }
.link-card.highlight:hover { background: var(--accent); color: var(--ink); }
.link-card.highlight:hover .link-label, .link-card.highlight:hover .link-icon, .link-card.highlight:hover .arrow { color: var(--ink); }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; padding: 32px var(--pad) 0; }
.footer-text { margin: 0; font-size: 13px; color: var(--text-faint); }
.footer-mark {
  margin: 0; padding-top: 4vw;
  font-family: var(--display); text-transform: uppercase; text-align: center;
  font-size: clamp(120px, 31vw, 520px); line-height: 0.78;
  color: var(--raised);
  user-select: none; white-space: nowrap;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(8, 7, 6, 0.96);
}
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; object-fit: contain; }
.lb-btn {
  position: absolute; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--text);
  font-size: 28px; line-height: 1; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lb-btn:hover { background: var(--text); color: var(--ink); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* mobile hero: photo fills the screen and fades into the copy, like desktop */
  .hero { min-height: max(calc(100svh - 64px), 700px); }
  .stage {
    inset: 0; width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 38%, transparent 82%);
    mask-image: linear-gradient(to bottom, #000 38%, transparent 82%);
  }
  .slide { object-position: 58% 0%; }
  .hero-copy { padding: 0 var(--pad) 36px; }
  .hero-name { font-size: clamp(96px, 29vw, 190px); }
  .tagline { max-width: 22em; }
  .hero-actions { flex-direction: column; margin-top: 28px; }
  .hero-actions .btn { width: 100%; }
  .stage-ui { right: var(--pad); bottom: auto; top: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .rail-nav { display: none; }
  /* gallery: on phones show everything as a 2-column grid instead of a swipe rail */
  .rail {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
    overflow: visible; scroll-snap-type: none;
    padding: 0 var(--pad);
  }
  .g-item { flex: none; }
  .g-item:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 3px); justify-self: center; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 0 22px 20px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .link-card { padding: 22px 14px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}
