/* =====================================================================
   MASA Radio: v3. Black / white / neon green. Print + pixel.
   Two voices: Bricolage Grotesque (display) + JetBrains Mono (everything else).
   ===================================================================== */

:root {
  --k0: #050505;
  --k1: #0a0a0a;
  --k2: #141414;
  --g4: #3a3a3a;
  --g5: #6a6a6a;
  --g6: #9a9a9a;
  --g7: #c4c4c4;
  --g8: #e4e4e4;
  --w1: #f4f4f4;
  --w0: #ffffff;
  --neon: #39ff14;
  --neon-dim: #1f8e0c;

  --bg: var(--w1);
  --ink: var(--k1);
  --line: var(--k1);
  --muted: var(--g5);
  --body-ink: var(--g4);

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* spacing scale: the only vertical values used */
  --s2: 1rem;
  --s3: 2rem;
  --s4: 3.5rem;
  --s5: 6rem;

  --gutter: clamp(1rem, 2.5vw, 2.5rem);
  --nav-h: 60px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--mono); font-size: .8rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--neon); color: var(--k1); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 1rem; z-index: 200; background: var(--w0); color: var(--k1); padding: .5rem .8rem; font-size: .75rem; }
.skip:focus { top: 1rem; }
main section[id] { scroll-margin-top: calc(var(--nav-h) + 1px); }

.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.55; }
.mono sup { font-size: .8em; vertical-align: top; margin-right: .6em; opacity: .55; }
.muted { color: var(--muted); }
.prose { font-family: var(--mono); font-size: .875rem; line-height: 1.7; letter-spacing: 0; text-transform: none; max-width: 54ch; color: var(--body-ink); }
.prose.muted { color: var(--muted); }
.note { margin-top: var(--s3); }

/* the pixel: the brand's punctuation, now a neon spark */
.px { display: inline-block; width: .11em; height: .11em; background: var(--neon); margin-left: .01em; vertical-align: baseline; }

.display {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-variation-settings: "opsz" 96, "wdth" 75; letter-spacing: -.025em; line-height: .86;
  font-size: clamp(2.8rem, 8vw, 8rem); text-wrap: balance;
}
.display em { font-style: normal; color: var(--g6); }

/* ---------------------------------------------------------------- layout */
.section { padding: var(--s4) var(--gutter) var(--s4); border-top: 1px solid var(--line); }
.section--flush { padding-bottom: 0; }
.section--flush .bleed { border-bottom: 0; }
.sec-head { position: relative; display: flex; justify-content: space-between; gap: var(--s2); padding-bottom: .8rem; margin-bottom: var(--s3); }
.sec-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; }
.sec-head a { border-bottom: 1px solid currentColor; }
.sec-head a:hover { color: var(--neon); border-color: var(--neon); }
/* full-bleed rows: hairlines meet the viewport edge, no outer box */
.bleed { margin-inline: calc(var(--gutter) * -1); border-block: 1px solid var(--line); }
.tiles > :first-child { padding-left: var(--gutter); }
.tiles > :last-child { padding-right: var(--gutter); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem; padding: 0 var(--gutter);
  background: var(--k1); color: var(--w1); border-bottom: 1px solid var(--g4);
}
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a { position: relative; padding: .25rem 0; color: var(--g7); transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--neon); transition: width .24s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--w0); }
.nav__links a.is-active::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1.2rem; color: var(--g7); }
.nav__right a:hover { color: var(--neon); }
.nav__burger { display: none; color: var(--w0); min-height: 44px; }

.mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 85; background: var(--k1); color: var(--w1); display: flex; flex-direction: column; padding: 1.5rem var(--gutter); }
.mobile-menu[hidden] { display: none; }
.mobile-menu > a { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 75; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(2.6rem, 11vw, 4rem); line-height: 1; padding: .18em 0; border-bottom: 1px solid var(--g4); }
.mobile-menu > a:hover { color: var(--neon); }
.mobile-menu > a sup { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; vertical-align: top; margin-right: 1rem; color: var(--g6); }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; color: var(--g7); }
.mobile-menu__foot a:hover { color: var(--neon); }

/* ---------------------------------------------------------------- hero: logo + sign up, dark and centered */
.hero {
  --bg: var(--k1); --ink: var(--w1); --line: var(--g4); --muted: var(--g6); --body-ink: var(--g7);
  background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; text-align: center; gap: var(--s3);
  padding: var(--s5) var(--gutter) var(--s4);
}
.hero__logo { height: clamp(64px, 10vw, 120px); width: auto; margin-inline: auto; }
.hero__join { width: 100%; max-width: 480px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--s2); }
.hero__headline { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.hero__join .join__form { width: 100%; }
.hero__join .join__check { justify-content: center; }
.hero__join .prose { max-width: 40ch; }

/* ---------------------------------------------------------------- intro statement */
.intro { padding-top: var(--s3); padding-bottom: var(--s3); }
.hero__statement { color: var(--body-ink); max-width: 60ch; }

/* ---------------------------------------------------------------- ticker: a status bar, not decoration */
.ticker { overflow: hidden; background: var(--k1); color: var(--g7); padding: .35rem 0; font-size: .62rem; }
.ticker__track { display: flex; width: max-content; animation: ticker 110s linear infinite; }
.ticker__track span { padding: 0 1.5rem; border-right: 1px solid var(--g4); white-space: nowrap; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- tiles (selectors) */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); }
.tile { position: relative; aspect-ratio: 1; background: var(--bg); overflow: hidden; text-align: left; display: flex; flex-direction: column; width: 100%; color: var(--ink); }
.tile--text { justify-content: space-between; padding: var(--s2); }
.tile__big { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 75; text-transform: uppercase; letter-spacing: -.02em; line-height: .86; font-size: clamp(2.4rem, 4.2vw, 4.2rem); }
.tile__ep { display: flex; justify-content: space-between; align-items: baseline; padding: .35rem .7rem .25rem; font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 75; letter-spacing: -.02em; font-size: clamp(1.4rem, 2.2vw, 2.2rem); line-height: 1; border-bottom: 1px solid var(--line); }
.tile__frame { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--k1); }
.tile__frame picture, .tile__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__frame img { transition: transform .6s var(--ease-out); }
.tile--photo:hover .tile__frame img { transform: scale(1.03); }
.tile__cap { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem .7rem; border-top: 1px solid var(--line); }
.tile__cap span:last-child { color: var(--muted); text-align: right; }
.tile--photo { transition: background .2s, color .2s; }
.tile--photo:hover { background: var(--k1); color: var(--w0); }
.tile--photo:hover .tile__cap span:first-child { color: var(--neon); }
.tile--photo:hover .tile__cap span:last-child { color: var(--g6); }
.tile--photo:hover .tile__ep, .tile--photo:hover .tile__cap { border-color: var(--g4); }
/* unreleased sets: blurred until they drop */
.tile--soon .tile__frame img { filter: blur(14px); transform: scale(1.12); }
.tile--soon:hover .tile__frame img { transform: scale(1.12); }
.tile__soon { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: var(--w0); background: rgba(10, 10, 10, .35); }
.tile__soon b { font-weight: 500; padding: .35rem .7rem; border: 1px solid var(--neon); color: var(--neon); }

/* ---------------------------------------------------------------- archive table */
.table { border-bottom: 0; }
.table__head, .table__row { display: grid; grid-template-columns: 3rem 1.6fr 1.4fr 1fr 9rem; gap: var(--s2); padding: .75rem var(--gutter); border-bottom: 1px solid var(--line); align-items: baseline; width: 100%; text-align: left; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.table__head { color: var(--muted); }
.table__row { position: relative; isolation: isolate; transition: color .2s; }
.table__row::before { content: ""; position: absolute; inset: 0; background: var(--k1); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); z-index: -1; }
.table__row span { transition: transform .28s var(--ease), color .2s; }
.table__row span:nth-child(2) { font-weight: 500; }
.table__row span:last-child { text-align: right; }
.table__row:hover { color: var(--w0); }
.table__row:hover span:nth-child(2) { color: var(--neon); }
.table__row:hover::before { transform: scaleX(1); }
.table__row:hover span:first-child { transform: translateX(8px); }
.table__row--open { color: var(--muted); }

/* ---------------------------------------------------------------- spaces */
.spaces { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 0; }
.spaces > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.1rem var(--gutter); border-bottom: 1px solid var(--line); align-items: baseline; }
.spaces > div:nth-child(even) { border-left: 1px solid var(--line); }
.spaces > div:nth-last-child(-n+2) { border-bottom: 0; }
.spaces dt { font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 96, "wdth" 92; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1; }
.spaces dt i { font-style: normal; color: var(--muted); margin-right: .8rem; letter-spacing: .04em; }
.spaces dd { color: var(--body-ink); text-transform: none; letter-spacing: .02em; line-height: 1.65; }

/* ---------------------------------------------------------------- newsletter sign up */
.join__row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.join__row input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.05rem; padding: .9rem 0; outline: none; letter-spacing: 0; }
.join__row input::placeholder { color: var(--g5); }
.join__row button { padding: .9rem 0 .9rem 1rem; white-space: nowrap; }
.join__row button:hover { color: var(--neon); }
.join__check { display: flex; gap: .6rem; align-items: center; margin-top: var(--s2); color: var(--muted); cursor: pointer; text-align: left; }
.join__check span { flex: 1; min-width: 0; }
.join__check input { accent-color: var(--neon); width: 14px; height: 14px; margin: 0; }
.join__status { margin-top: .8rem; min-height: 1.4em; }
.join__form.is-success .join__row, .join__form.is-success .join__check { display: none; }
.join__form.is-success .join__status { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 75; text-transform: uppercase; letter-spacing: -.02em; font-size: 2rem; line-height: 1; color: var(--neon); }
.hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--k1); color: var(--w1); border-top: 1px solid var(--k1); padding: var(--s4) var(--gutter) 0; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); padding-bottom: var(--s4); color: var(--g7); }
.footer__grid > div { display: flex; flex-direction: column; gap: .35rem; }
.footer__label { color: var(--g6); margin-bottom: .4rem; }
.footer__grid a:hover { color: var(--neon); }
.footer__mail { color: var(--w0); }
.footer__mail:hover { color: var(--neon); }
.footer__bottom { display: flex; justify-content: flex-start; align-items: flex-end; gap: var(--s2); padding: var(--s2) 0; border-top: 1px solid var(--g4); color: var(--g6); }
.footer__logo { height: 40px; width: auto; }

/* ---------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: var(--k0); color: var(--w1); display: grid; place-items: center; padding: 4rem var(--gutter); }
.lightbox[hidden] { display: none; }
.lightbox__fig { max-width: min(1500px, 100%); }
.lightbox__img { width: 100%; max-height: 74vh; object-fit: contain; }
.lightbox__img.is-soon { filter: blur(28px); }
.lightbox__fig figcaption { margin-top: .8rem; display: flex; gap: 1.5rem; color: var(--g7); }
.lightbox__close, .lightbox__nav { position: absolute; color: var(--g7); padding: .5rem; min-height: 44px; }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--neon); }
.lightbox__close { top: 1rem; right: var(--gutter); }
.lightbox__prev { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--gutter); top: 50%; transform: translateY(-50%); }
body.no-scroll { overflow: hidden; }

/* ---------------------------------------------------------------- motion */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .sec-head[data-reveal] { transform: none; }
.js .sec-head[data-reveal]::after { transform: scaleX(0); transition: transform .8s var(--ease-out); }
.js .sec-head[data-reveal].is-in::after { transform: scaleX(1); }
.js .tiles > [data-reveal]:nth-child(2) { transition-delay: .06s; }
.js .tiles > [data-reveal]:nth-child(3) { transition-delay: .12s; }
.js .tiles > [data-reveal]:nth-child(4) { transition-delay: .18s; }
.js .tiles > [data-reveal]:nth-child(5) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .sec-head[data-reveal]::after { transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav__mail { display: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile--text { grid-column: span 2; aspect-ratio: auto; min-height: 0; }
}
@media (max-width: 960px) {
  .nav__links, .nav__right a { display: none; }
  .nav__burger { display: inline-block; }
  .table__head span:nth-child(4), .table__row span:nth-child(4) { display: none; }
  .table__head, .table__row { grid-template-columns: 2.6rem 1.4fr 1.2fr 7.5rem; }
  .spaces { grid-template-columns: 1fr; }
  .spaces > div:nth-child(even) { border-left: 0; }
  .spaces > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .sec-head { font-size: .62rem; gap: .8rem; }
  .sec-head span:last-child { text-align: right; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile--text { grid-column: span 2; }
  .tile--photo { aspect-ratio: 3 / 4; }
  .tile__cap { flex-direction: column; gap: .1rem; }
  .tile__cap span:last-child { text-align: left; }
  .table__head { display: none; }
  .table__row { grid-template-columns: 2.4rem 1fr 4.2rem; grid-template-areas: "n name status" "n space status"; gap: .1rem .6rem; }
  .table__row span:nth-child(1) { grid-area: n; }
  .table__row span:nth-child(2) { grid-area: name; }
  .table__row span:nth-child(3) { grid-area: space; color: var(--muted); }
  .table__row span:nth-child(5) { grid-area: status; }
  .hide-s { display: none; }
  .spaces > div { grid-template-columns: 1fr; gap: .5rem; }
  .spaces dt { display: grid; grid-template-columns: 2.2rem 1fr; }
  .spaces dt i { margin: 0; }
  .spaces dd { padding-left: 2.2rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .join__row { flex-direction: column; align-items: stretch; border-bottom: 0; }
  .join__row input { border-bottom: 1px solid var(--line); }
  .join__row button { padding-left: 0; text-align: left; }
}
