/* ============================================================
   Fonts: self-hosted, latin subset only (~180KB total)
   ============================================================ */
@font-face {
  font-family: "Big Shoulders";
  src: url("../assets/fonts/big-shoulders-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders";
  src: url("../assets/fonts/big-shoulders-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/work-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/work-sans-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/work-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/work-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/work-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ============================================================
   Tokens
   ============================================================ */
:root {
  /* paper-toned light workshop, default */
  --paper: oklch(96% 0.012 75);
  --paper-alt: oklch(91.5% 0.02 70);
  --paper-deep: oklch(85% 0.028 64);
  --ink: oklch(23% 0.02 50);
  --ink-dim: oklch(45% 0.022 55);
  --line: oklch(78% 0.022 65);
  --line-strong: oklch(60% 0.03 55);

  --accent: oklch(58% 0.17 42);
  --accent-strong: oklch(47% 0.17 38);
  --accent-ink: oklch(99% 0.004 80);

  --stamp-green: oklch(48% 0.11 150);
  --stamp-red: oklch(50% 0.17 27);
  --stamp-amber: oklch(52% 0.14 60);

  --shadow-soft: 0 1px 2px oklch(30% 0.02 50 / 0.08), 0 8px 20px oklch(30% 0.02 50 / 0.07);

  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.2rem;
  --text-xl: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  --text-2xl: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  --text-3xl: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;

  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(19% 0.015 55);
    --paper-alt: oklch(15.5% 0.015 55);
    --paper-deep: oklch(12.5% 0.014 55);
    --ink: oklch(92% 0.012 70);
    --ink-dim: oklch(68% 0.016 70);
    --line: oklch(33% 0.02 60);
    --line-strong: oklch(45% 0.025 60);

    --accent: oklch(72% 0.15 48);
    --accent-strong: oklch(80% 0.13 50);
    --accent-ink: oklch(14% 0.02 50);

    --stamp-green: oklch(68% 0.13 150);
    --stamp-red: oklch(68% 0.16 25);
    --stamp-amber: oklch(72% 0.13 65);

    --shadow-soft: 0 1px 2px oklch(0% 0 0 / 0.35), 0 10px 24px oklch(0% 0 0 / 0.4);
  }
}
:root[data-theme="dark"] {
  --paper: oklch(19% 0.015 55);
  --paper-alt: oklch(15.5% 0.015 55);
  --paper-deep: oklch(12.5% 0.014 55);
  --ink: oklch(92% 0.012 70);
  --ink-dim: oklch(68% 0.016 70);
  --line: oklch(33% 0.02 60);
  --line-strong: oklch(45% 0.025 60);
  --accent: oklch(72% 0.15 48);
  --accent-strong: oklch(80% 0.13 50);
  --accent-ink: oklch(14% 0.02 50);
  --stamp-green: oklch(68% 0.13 150);
  --stamp-red: oklch(68% 0.16 25);
  --stamp-amber: oklch(72% 0.13 65);
  --shadow-soft: 0 1px 2px oklch(0% 0 0 / 0.35), 0 10px 24px oklch(0% 0 0 / 0.4);
}
:root[data-theme="light"] {
  --paper: oklch(96% 0.012 75);
  --paper-alt: oklch(91.5% 0.02 70);
  --paper-deep: oklch(85% 0.028 64);
  --ink: oklch(23% 0.02 50);
  --ink-dim: oklch(45% 0.022 55);
  --line: oklch(78% 0.022 65);
  --line-strong: oklch(60% 0.03 55);
  --accent: oklch(58% 0.17 42);
  --accent-strong: oklch(47% 0.17 38);
  --accent-ink: oklch(99% 0.004 80);
  --stamp-green: oklch(48% 0.11 150);
  --stamp-red: oklch(50% 0.17 27);
  --stamp-amber: oklch(52% 0.14 60);
  --shadow-soft: 0 1px 2px oklch(30% 0.02 50 / 0.08), 0 8px 20px oklch(30% 0.02 50 / 0.07);
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--accent); display: inline-block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-notch: 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 13px 22px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  clip-path: polygon(var(--btn-notch) 0, 100% 0, 100% calc(100% - var(--btn-notch)), calc(100% - var(--btn-notch)) 100%, 0 100%, 0 var(--btn-notch));
  transition: transform 0.2s var(--ease-out-quint), background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: none; }

.btn-primary { background: var(--accent); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 3px 3px 0 var(--accent-strong); }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1.5px solid var(--line-strong);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }

.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark svg { flex-shrink: 0; }
.wordmark svg text { font-family: var(--font-display); }
.wordmark-text { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.35rem; line-height: 0.85; letter-spacing: 0.01em; }
.wordmark-text small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.16em; color: var(--ink-dim); text-transform: uppercase; margin-top: 3px; }

nav.main-nav { display: flex; gap: 30px; }
nav.main-nav a {
  text-decoration: none; color: var(--ink-dim); font-size: var(--text-sm);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  position: relative; padding-bottom: 3px;
}
nav.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--accent);
  transition: right 0.25s var(--ease-out-quint);
}
nav.main-nav a:hover { color: var(--ink); }
nav.main-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease-out-quint), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  border-bottom: 1.5px solid var(--line-strong);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-16); align-items: center; }

.hero-text {
  max-width: 640px;
  padding: var(--space-24) 0 calc(var(--space-24) + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-pinboard { opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease-out-quint) 0.05s forwards; }
.hero-text .eyebrow { opacity: 0; transform: translateY(10px); animation: rise 0.7s var(--ease-out-quint) 0.1s forwards; }
.hero h1 { font-size: var(--text-3xl); opacity: 0; transform: translateY(16px); animation: rise 0.8s var(--ease-out-quint) 0.22s forwards; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease-out-quint) 0.36s forwards; max-width: 46ch; color: var(--ink-dim); font-size: var(--text-lg); margin: 0; }
.hero-actions { opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease-out-quint) 0.48s forwards; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-actions .scroll-cue { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); text-decoration: none; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Section shells
   ============================================================ */
.section { padding: var(--space-24) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  margin: 0 0 var(--space-16);
  padding-bottom: var(--space-6);
  border-bottom: 1.5px solid var(--line-strong);
  flex-wrap: wrap;
}
.section-head h2 { font-size: var(--text-2xl); }
.section-head .section-note { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-dim); max-width: 32ch; text-align: right; text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================
   Builds: ledger rows, not a card grid
   ============================================================ */
.ledger-columns {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  padding: 0 0 var(--space-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-2);
}

.build-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) 1fr;
  gap: var(--space-12);
  padding: var(--space-16) clamp(0px, 3vw, 28px);
  border-bottom: 1.5px solid var(--line);
  align-items: start;
}
.build-row:nth-child(odd) { background: color-mix(in oklch, var(--paper-alt) 55%, transparent); }
.build-row:first-of-type { border-top: 1.5px solid var(--line-strong); }

.build-photos { position: relative; }
.photo-stack { position: relative; padding-top: 14px; padding-right: 14px; }
.photo-stack img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: var(--shadow-soft);
}
.photo-stack .photo-second {
  position: absolute;
  top: 0; right: 0;
  width: 46%;
  transform: rotate(4deg);
  z-index: 2;
}
.photo-stack .photo-second img { aspect-ratio: 1/1; cursor: pointer; }
.photo-stack .photo-first { position: relative; transform: rotate(-1.5deg); }
.photo-stack .photo-first img { cursor: pointer; }
.photo-stack .photo-first img,
.photo-stack .photo-second img { transition: transform 0.3s var(--ease-out-quint); }
.photo-stack:hover .photo-first img { transform: scale(1.015); }
.photo-stack:hover .photo-second img { transform: rotate(0deg) scale(1.03); }

.expand-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.2s var(--ease-out-quint);
}
.expand-btn:hover,
.photo-stack:hover .expand-btn { background: var(--ink); color: var(--paper); }
.expand-btn svg { width: 15px; height: 15px; }

.ref-tag {
  position: absolute;
  top: -10px;
  left: 10px;
  z-index: 3;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  padding: 3px 9px;
  transform: rotate(-2deg);
}

.stamp {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 3;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  opacity: 0;
  transform: rotate(-9deg) scale(1.5);
  transition: opacity 0.45s var(--ease-out-quint), transform 0.45s var(--ease-out-quint);
}
.stamp.stamp-in { opacity: 1; }
.stamp.status-in-stock { color: var(--stamp-green); border: 2px solid var(--stamp-green); transform: rotate(-4deg); }
.stamp.status-in-stock.stamp-in { transform: rotate(-4deg) scale(1); }
.stamp.status-made-to-order { color: var(--stamp-amber); border: 2px dashed var(--stamp-amber); transform: rotate(3deg); }
.stamp.status-made-to-order.stamp-in { transform: rotate(3deg) scale(1); }
.stamp.status-sold { color: var(--stamp-red); border: 2px solid var(--stamp-red); position: relative; transform: rotate(-3deg); }
.stamp.status-sold.stamp-in { transform: rotate(-3deg) scale(1); }
.stamp.status-sold::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: var(--stamp-red); transform: translateY(-50%) rotate(-1deg);
}

.build-info { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.build-info .name-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.build-info h3 { font-size: var(--text-xl); }
.build-info .price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--accent-strong);
  white-space: nowrap;
}
.build-info .tagline { margin: 0; color: var(--ink-dim); font-style: italic; font-size: var(--text-base); max-width: 52ch; }

.spec-ledger { width: 100%; margin: var(--space-2) 0; font-family: var(--font-mono); font-size: var(--text-sm); }
.spec-ledger .spec-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--line-strong);
}
.spec-ledger .spec-row .k { color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--text-xs); white-space: nowrap; }
.spec-ledger .spec-row .fill { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line); margin-bottom: 4px; }
.spec-ledger .spec-row .v { text-align: right; }

.build-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-2); }

/* ============================================================
   Checklist ("what leaves the bench")
   ============================================================ */
.checklist { max-width: 70ch; }
.checklist-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
}
.checklist-row:first-child { border-top: 1.5px solid var(--line-strong); }
.checklist-row .mark {
  width: 26px; height: 26px;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.checklist-row h3 { font-family: var(--font-body); text-transform: none; font-weight: 700; font-size: var(--text-base); letter-spacing: 0; margin: 0 0 4px; }
.checklist-row p { margin: 0; color: var(--ink-dim); font-size: var(--text-sm); max-width: 58ch; }

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-16); align-items: center; }
.pinboard { position: relative; padding: 30px 10px; }
.pinboard img {
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-soft);
  background: var(--paper-deep);
}
.pinboard .pin-a { width: 78%; transform: rotate(-3deg); position: relative; z-index: 1; aspect-ratio: 4/5; object-fit: cover; }
.pinboard .pin-b { width: 55%; transform: rotate(5deg); position: absolute; right: 0; bottom: 0; z-index: 2; aspect-ratio: 4/5; object-fit: cover; }
.pinboard .tape {
  position: absolute; top: 14px; left: calc(39% - 22px); width: 60px; height: 22px;
  background: color-mix(in oklch, var(--accent) 35%, var(--paper) 65%);
  opacity: 0.75;
  transform: rotate(-4deg);
  z-index: 2;
}

.about-text h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.about-text p { color: var(--ink-dim); margin: 0 0 var(--space-4); max-width: 56ch; }

/* ============================================================
   Contact: claim-ticket panel
   ============================================================ */
.ticket {
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto 1.3fr;
  align-items: stretch;
}
.ticket-stub {
  padding: var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
}
.ticket-stub strong { display: block; color: var(--ink); font-size: var(--text-sm); }
.ticket-perf {
  width: 0;
  border-left: 2px dashed var(--line-strong);
  position: relative;
}
.ticket-main { padding: var(--space-12) var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); justify-content: center; }
.ticket-main h2 { font-size: var(--text-2xl); }
.ticket-main p { margin: 0; color: var(--ink-dim); max-width: 42ch; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--space-2); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1.5px solid var(--line-strong); padding: var(--space-8) 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent-strong); }
.footer-links { display: flex; gap: 18px; }

/* ============================================================
   Lightbox: full-size photo viewer
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 64px);
  background: oklch(11% 0.012 50 / 0.94);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out-quint);
}
.lightbox-overlay.open { display: flex; opacity: 1; }

.lightbox-frame { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); max-width: 100%; max-height: 100%; }

.lightbox-frame img {
  display: block;
  max-width: min(1100px, 100%);
  max-height: 74vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1.5px solid oklch(90% 0.012 60 / 0.3);
  opacity: 0;
  transform: scale(0.97);
  animation: lightbox-in 0.35s var(--ease-out-quint) forwards;
}
@keyframes lightbox-in { to { opacity: 1; transform: scale(1); } }

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(92% 0.012 70);
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.lightbox-caption .count { color: oklch(62% 0.012 70); }

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid oklch(85% 0.012 70 / 0.5);
  color: oklch(96% 0.012 70);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: oklch(96% 0.012 70 / 0.12); border-color: oklch(96% 0.012 70 / 0.9); }

.lightbox-close { top: 20px; right: 20px; width: 42px; height: 42px; font-size: 1.4rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 1.5rem; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-nav[hidden] { display: none; }

@media (max-width: 640px) {
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero-text { padding: var(--space-16) 0 0; order: 1; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-pinboard { order: 2; max-width: min(320px, 70vw); margin: 0 auto; padding: 16px 10px 0; }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .about-grid .about-text { order: 1; }
  .about-grid .pinboard { order: 2; max-width: min(320px, 70vw); margin: 0 auto; padding: 16px 10px 0; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-perf { display: none; }
}

@media (max-width: 760px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1.5px solid var(--line-strong);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s var(--ease-out-quint), opacity 0.2s;
  }
  .site-header.nav-open nav.main-nav { max-height: 320px; opacity: 1; pointer-events: auto; }
  nav.main-nav a { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  nav.main-nav a::after { display: none; }

  .build-row { grid-template-columns: 1fr; }
  .photo-stack { max-width: 340px; }
}
