/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Space Mono"; src: url("fonts/space-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/space-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --black: #000000;
  --white: #ffffff;
  --mustard: #F5B81B;
  --grey: #9a9a9a;
  --dim: #2a2a2a;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --nav: 64px;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; background: var(--black); }
body { margin: 0; background: var(--black); color: var(--white); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
p { margin: 0 0 1em; }
h2, h3, h4 { margin: 0; }
.muted { color: var(--grey); }
.skip { position: fixed; left: -999px; z-index: 60; }
.skip:focus { left: 12px; top: 12px; background: var(--mustard); color: #000; padding: 8px 12px; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 clamp(16px, 3vw, 40px); background: linear-gradient(#000 60%, rgba(0,0,0,0));
}
.map-wrap { display: flex; align-items: center; gap: 12px; }
.map svg { display: block; height: 44px; width: auto; overflow: visible; }
.map path { fill: #5a5a5a; transition: fill 0.2s; }
.map a:hover path, .map a:focus-visible path { fill: var(--white); }
.map a.here path { fill: var(--mustard); }
.map a:focus-visible { outline: none; }
.map-home { position: absolute; left: -999px; }
.map-home:focus { position: static; font: 700 0.7rem/1 var(--mono); text-transform: uppercase; }
body:not(.zoomed) .map-wrap { visibility: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-links { margin-left: auto; display: flex; gap: clamp(12px, 2vw, 28px); font: 700 0.78rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.nav-links a { text-decoration: none; color: var(--grey); padding: 6px 0; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--white); }
.nav-links a[aria-current="true"] { box-shadow: 0 3px 0 var(--mustard); }
.nav-toggle { display: none; font: 700 0.8rem/1 var(--mono); text-transform: uppercase; background: none; color: var(--white); border: 2px solid var(--white); padding: 9px 12px; cursor: pointer; }

.section-head { margin-bottom: 1.4rem; }
.num { font: 700 clamp(2rem, 3.4vw, 2.8rem)/1 var(--mono); color: var(--mustard); margin: 0 0 0.3rem; }
.num::after { content: ""; display: block; width: 48px; height: 4px; background: var(--mustard); margin-top: 10px; }
h2 { font: 700 clamp(1.9rem, 3.3vw, 2.9rem)/1.05 var(--mono); text-transform: uppercase; letter-spacing: 0.01em; margin-top: 0.9rem; }
.sub { font: 400 1rem/1.4 var(--mono); color: var(--mustard); margin: 0.6rem 0 0; }
h3 { font: 700 0.9rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--white); margin: 2rem 0 0.8rem; }
h4 { font: 700 1.15rem/1.25 var(--sans); }
.lede { font-size: 1.15rem; color: #e6e6e6; max-width: 36em; }

.btn {
  display: inline-block; margin-top: 1.4rem; padding: 14px 20px; border: 0; cursor: pointer;
  font: 700 0.85rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none;
  background: var(--mustard); color: #000; box-shadow: 4px 4px 0 var(--white);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--white); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--white); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.btn-big { font-size: 1rem; padding: 18px 26px; }

.blink { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* film */
.reel { aspect-ratio: 16 / 9; background: #0e0e0e; border: 2px solid var(--white); margin: 1.4rem 0; display: grid; place-items: center; overflow: hidden; }
.reel iframe, .reel video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.reel-empty { color: var(--grey); font: 400 0.85rem/1 var(--mono); margin: 0; }
.reel-play { width: 100%; height: 100%; border: 0; cursor: pointer; background: #111 center / cover; color: #fff; display: grid; place-items: center; align-content: center; gap: 10px; font: 700 0.85rem/1 var(--mono); text-transform: uppercase; }
.reel-icon { width: 64px; height: 64px; display: grid; place-items: center; background: var(--mustard); color: #000; font-size: 1.4rem; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card { border: 2px solid #333; padding: 14px 16px; }
.card h3 { margin: 0; font-size: 0.82rem; }
.projects { list-style: none; margin: 10px 0 0; padding: 0; }
.projects li { padding: 6px 0; border-top: 1px solid #222; display: grid; }
.p-title { font-weight: 600; }
.p-meta { color: var(--grey); font-size: 0.9rem; }

/* dinners */
.ticket { display: grid; grid-template-columns: 1fr auto; border: 2px solid var(--white); margin-bottom: 12px; }
.ticket-main { padding: 18px; }
.ticket-date { font: 700 0.85rem/1.2 var(--mono); color: var(--mustard); text-transform: uppercase; margin-bottom: 6px; }
.ticket-stub { padding: 18px; border-left: 2px dashed #555; display: grid; align-content: center; justify-items: center; text-align: center; }
.ticket-stub .btn { margin-top: 0.6rem; }
.ticket-price { font: 700 1.6rem/1 var(--mono); margin: 0; }
.menus { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.menu ol { margin: 8px 0 0; padding-left: 1.2em; color: #ddd; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.private { border-top: 2px solid #222; margin-top: 2rem; }

/* lists: consulting services, pass pillars */
.list { list-style: none; margin: 1rem 0 0; padding: 0; }
.list li { display: grid; gap: 2px; padding: 12px 0 12px 22px; border-top: 1px solid #222; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 20px; width: 10px; height: 10px; background: var(--mustard); }
.list strong { font: 700 1rem/1.3 var(--sans); }
.list span { color: #bdbdbd; }

/* forms */
.join { margin-top: 2rem; }
.form { display: grid; gap: 14px; border: 2px solid var(--white); padding: clamp(18px, 3vw, 28px); margin-top: 1rem; }
.form-title { font: 700 1.1rem/1.2 var(--mono); text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: 10px; }
.tag { font: 700 0.65rem/1 var(--mono); background: var(--mustard); color: #000; padding: 5px 7px; }
.hint { color: var(--grey); margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font: 700 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: #cfcfcf; }
.opt { color: var(--grey); text-transform: none; font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--white); background: #0b0b0b; border: 2px solid #3a3a3a; border-radius: 0; padding: 11px 12px; width: 100%;
}
.field select option { color: #000; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mustard); }
.field [aria-invalid="true"] { border-color: #ff7a6b; }
.err { color: #ff9a8d; font-size: 0.85rem; margin: 0; min-height: 0; }
.form .btn { justify-self: start; margin-top: 0.4rem; }
.status { margin: 0; font-weight: 600; }
.status.ok { color: var(--mustard); }
.status.bad { color: #ff9a8d; }
.hp { position: absolute; left: -9999px; }
.elsewhere { margin-top: 1.4rem; }
.socials { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; gap: 10px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: -9px; color: var(--grey); transition: color 0.2s; }
.socials a:hover, .socials a:focus-visible { color: var(--mustard); }
.socials svg { width: 23px; height: 23px; }
/* home screen: pinned bottom center, arrives with the tagline */
.home-socials { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 5; margin: 0; gap: 14px; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s 0.7s; }
.home-socials a { margin: 0; }
body.ready:not(.zoomed):not(.intro) .home-socials { opacity: 1; visibility: visible; transition: opacity 0.7s ease 0.2s, visibility 0s; }
.allies { display: flex; flex-wrap: wrap; gap: 12px; }
.ally { display: grid; gap: 2px; padding: 12px 16px; border: 2px solid #333; text-decoration: none; }
.ally:hover { border-color: var(--mustard); }
.ally span { font-size: 0.85rem; color: var(--grey); }


/* ---------- sound button ---------- */
.nav { flex-wrap: nowrap; }
.nav-right { display: flex; align-items: center; gap: 14px; order: 3; }
.sound {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 2px; cursor: pointer;
  color: var(--grey); font: 700 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
}
.sound:hover { color: var(--white); }
.sound[aria-pressed="true"] { color: var(--mustard); }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-bars i { display: block; width: 3px; height: 3px; background: currentColor; }
.sound[aria-pressed="true"] .sound-bars i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -0.3s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -0.6s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* ---------- the universe: the logo and its pieces ---------- */
.universe { position: fixed; inset: 0; z-index: 1; overflow: hidden; }
.pieces { position: absolute; inset: 0; transform-origin: 0 0; }
.universe.inside .pieces { visibility: hidden; }
.piece { position: absolute; display: block; }
.piece svg { display: block; width: 100%; height: 100%; overflow: visible; }
.piece path { fill: var(--white); transition: fill 0.25s; }
body:not(.zoomed) .piece:hover path, .piece:focus-visible path, .piece.armed path { fill: var(--mustard); }
/* desktop: page links sit dead center, sound stays far right, banner / map stay far left */
@media (min-width: 900px) {
  .nav-links { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
  .nav-right { margin-left: auto; }
  /* when a dinner banner would bump into the centered links: first drop "Get tickets", then let the links slide right */
  .nav.tight .pill-cta { display: none; }
  .nav.tighter .nav-links { position: static; transform: none; margin-left: auto; }
  .nav.tighter .nav-right { margin-left: 0; }
}
.piece:focus-visible { outline: none; }

/* windows: the photo or video inside a letter */
.windows { position: absolute; inset: 0; pointer-events: none; }
.window {
  position: absolute; opacity: 0; transition: opacity 0.35s ease;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.window img, .window video { width: 100%; height: 100%; object-fit: cover; display: block; }
.window.on { opacity: 1; }
body.zoomed .window { opacity: 0; transition-duration: 0.12s; }
.reveal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.25s ease; }
.reveal.on { opacity: 1; visibility: visible; }
.reveal.instant { transition: none; }
.reveal.on.fade { opacity: 0; filter: blur(14px) brightness(0.15); transform: scale(1.04); transition: opacity var(--fade, 320ms) cubic-bezier(0.6, 0, 0.9, 0.5), filter var(--fade, 320ms) ease-out, transform var(--fade, 320ms) ease-out; }

.piece-label {
  position: absolute; left: 0; top: 0; translate: -50% 0; white-space: nowrap; pointer-events: none;
  font: 700 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--mustard);
  opacity: 0; transition: opacity 0.4s;
}
body.ready:not(.zoomed) .piece-label { opacity: 0.85; transition-delay: 1.4s; }
/* the opening: gold titles wait for the wave, then come in with the tagline */
body.ready.intro .piece-label { opacity: 0; transition-delay: 0s; }
body.ready.intro-end:not(.zoomed) .piece-label { transition: opacity 0.7s ease; transition-delay: 0s; }

.home-text { position: absolute; left: 0; right: 0; text-align: center; padding: 0 20px; transition: opacity 0.4s; }
.home-line { font: 400 min(clamp(1.05rem, 2vw, 1.4rem), 3.9vw)/1.3 var(--mono); margin-bottom: 0.7rem; white-space: nowrap; }
.home-hint { font: 700 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--mustard); margin-bottom: 0; }
.home-bio { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 520px; margin: 18px auto 0; text-align: left; }
.home-bio p { margin: 0; font-size: 0.88rem; line-height: 1.45; color: #cfcfcf; }
.home-headshot { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--mustard); }
.home-more { color: var(--mustard); font-weight: 600; white-space: nowrap; text-decoration: none; }
.home-more::after { content: " \2192"; }
.home-more:hover { text-decoration: underline; }
.home-text.asking .home-bio { display: none; }
.home-text { opacity: 0; }
body.ready:not(.zoomed) .home-text { opacity: 1; transition-delay: 1.2s; }
body.ready.intro .home-text { opacity: 0; transition-delay: 0s; }
body.ready.intro-end:not(.zoomed) .home-text { transition: opacity 0.7s ease; transition-delay: 0s; }
body.zoomed .home-text { opacity: 0; pointer-events: none; transition-delay: 0s; }

/* ---------- the worlds: content inside each piece ---------- */
.worlds { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.world {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--nav) + 28px) clamp(20px, 5vw, 64px) 96px;
  opacity: 0; visibility: hidden; transform: scale(0.97); filter: blur(8px);
  transition: opacity 0.3s ease, transform 0.5s var(--ease), visibility 0s linear 0.3s;
}
.world > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.world > .btn { margin-left: calc((100% - min(100%, 680px)) / 2); }
.world.is-open { opacity: 1; visibility: visible; transform: none; filter: none; pointer-events: auto; transition: opacity calc(var(--fade, 320ms) + 80ms) ease-out, filter calc(var(--fade, 320ms) + 160ms) ease-out, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }
.world:focus { outline: none; }
.back {
  display: inline-flex; gap: 8px; align-items: center; margin-bottom: 1.6rem; text-decoration: none;
  font: 700 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey);
}
.back::before { content: "\2190"; font-size: 1rem; color: var(--mustard); }
.back:hover { color: var(--white); }
.world .back { display: flex; }
.section-head { position: relative; }
.about p { color: #e2e2e2; max-width: 36em; }
.press { list-style: none; padding: 0; margin: 0 auto 1rem; }
.press li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid #222; }
.press-outlet { font: 700 0.7rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--mustard); }
.press a { font-weight: 600; text-decoration: none; }
.press a:hover { text-decoration: underline; }
.contact-title { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid #222; scroll-margin-top: calc(var(--nav) + 8px); }
.contact-title + .sub { margin-bottom: 0.4rem; }
.hero { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0.4rem auto 1.6rem; border: 2px solid var(--white); }
#contact .hero { aspect-ratio: 4 / 3; object-position: 50% 45%; }


/* event banner on the home screen */
.event-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto; margin-left: 4px;
  padding: 8px 14px; border: 2px solid var(--mustard); color: var(--white); text-decoration: none;
  font: 700 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.event-pill:hover { background: var(--mustard); color: #000; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mustard); animation: blink 1.4s steps(2) infinite; }
.event-pill:hover .pill-dot { background: #000; }
.pill-cta { color: var(--mustard); }
.event-pill:hover .pill-cta { color: #000; }
body.zoomed .event-pill { display: none; }
body:not(.zoomed) .map-wrap { display: none; }
@media (max-width: 899px) {
  .event-pill { padding: 7px 10px; font-size: 0.62rem; gap: 7px; }
  .pill-cta { display: none; }
  .sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sound { padding: 10px 6px; }
  .nav-right { gap: 8px; }
}

/* the event: poster, menu, fine print */
.event-more { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; margin: 4px 0 1.6rem; align-items: start; }
.event-more img { width: 100%; height: auto; border: 2px solid var(--white); }
.event-menu-title { font: 700 0.85rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--mustard); margin-bottom: 0.6rem; }
.event-menu ol { margin: 0 0 1rem; padding-left: 1.2em; }
.event-menu li { margin-bottom: 0.6rem; color: #e6e6e6; }
.small { font-size: 0.85rem; }
.sold-note { font: 700 0.8rem/1.2 var(--mono); text-transform: uppercase; color: var(--grey); margin: 0.8rem 0 0; }
.ticket-stub .small { margin: 0.7rem 0 0; }
.donate-note { max-width: 15em; line-height: 1.4; }
.donate-note strong { color: var(--white); font-weight: 600; }
@media (max-width: 560px) { .event-more { grid-template-columns: 1fr; } .ticket { grid-template-columns: 1fr; } .ticket-stub { border-left: 0; border-top: 2px dashed #555; } }

.event-tag { display: inline-block; font: 700 0.68rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; background: var(--mustard); color: #000; padding: 5px 8px; margin-bottom: 10px; }
.btn-line { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--mustard); color: var(--mustard); transform: none; }
.list-form { margin: 1.4rem auto 2rem; border-color: var(--mustard); scroll-margin-top: calc(var(--nav) + 16px); }
.list-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
@media (max-width: 560px) { .list-row { grid-template-columns: 1fr; } }

/* phone tap prompt */
.ask { display: none; }
.home-text.asking .home-line, .home-text.asking .home-hint { display: none; }
.home-text.asking .ask { display: block; }
.ask-text { font: 400 1.05rem/1.4 var(--mono); max-width: 22em; margin: 0 auto 0.4rem; }
.ask-actions { display: flex; justify-content: center; align-items: center; gap: 18px; }
.ask-actions .btn { margin-top: 0.6rem; }
.ask-no { background: none; border: 0; color: var(--grey); font: 700 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 14px 4px 0; cursor: pointer; }
.piece.armed path { fill: var(--mustard); }

/* ---------- phones ---------- */
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav); right: 0; left: 0; flex-direction: column; gap: 0;
    background: var(--black); border-bottom: 2px solid #222; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px clamp(16px, 3vw, 40px); border-top: 1px solid #1a1a1a; font-size: 0.9rem; }
  .nav-links a[aria-current="true"] { box-shadow: inset 4px 0 0 var(--mustard); }

  .piece-label { font-size: 0.6rem; letter-spacing: 0.03em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
