/* ============================================================
   TIGHT KNIT & FRIENDS // 001 · event landing page
   Theme bridges the deck (CRT transmission) and the flyer
   (cyber grid · dual spotlights · Archivo + Space Mono)
   ============================================================ */

:root {
  --bg: #070707;
  --bg-raise: #0f0b09;
  --ink: #eceae3;
  --head: #fbf1e0;
  --muted: #8a857c;
  --line: #2a211c;
  --accent: #e8402c;          /* club / red */
  --warm: #ff7a3d;            /* lounge / warm */
  --accent-dim: rgba(232, 64, 44, 0.14);
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", system-ui, -apple-system, sans-serif;
  --nav-h: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    linear-gradient(180deg, #070707 0%, #0a0707 46%, #160d09 82%, #25140c 100%) no-repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- CRT atmosphere (shared with deck) ---------- */
.crt-overlay {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 2px,
    rgba(0, 0, 0, 0.16) 2px, rgba(0, 0, 0, 0.16) 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.vignette {
  position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 54%, rgba(8,3,3,0.6) 100%);
}

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(7,7,7,0.94), rgba(7,7,7,0.78));
  backdrop-filter: blur(8px);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--head);
  text-decoration: none;
  white-space: nowrap;
}
.brand .rec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.3s steps(1) infinite;
}
@keyframes blink { 0%, 56% { opacity: 1; } 57%, 100% { opacity: 0.18; } }

.site-nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); }
.site-nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e9e3d8;            /* bright grey, near-white for legibility */
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-nav a.nav-link:hover { color: #fff; }
.site-nav a.btn-primary { color: #000; }   /* nav Tickets button keeps black text */

/* visible keyboard focus across all interactive elements (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.25s, background 0.25s, color 0.2s;
}
.btn-primary {
  color: #000;
  background: linear-gradient(120deg, var(--accent), var(--warm));
  border-color: transparent;
  box-shadow: 0 0 0 rgba(232, 64, 44, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(232, 64, 44, 0.4);
}
.btn-ghost {
  color: var(--head);
  background: transparent;
}
.btn-ghost:hover { background: var(--accent-dim); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: 12.5px; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- shells ---------- */
main { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.section { padding: clamp(56px, 9vh, 110px) 0; }
.section-line { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 18px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
#bgCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; z-index: 0;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.42) 60%, rgba(28,12,8,0.5) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-kicker {
  font-family: var(--mono);
  font-size: clamp(12px, 1.6vw, 15px);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--head);
  margin-bottom: 6px;
}
.hero-kicker .sep { color: var(--warm); }
.hero-sub {
  font-family: var(--mono);
  font-size: clamp(12px, 1.5vw, 15px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e3ddd2;            /* brightened for legibility */
  margin-bottom: clamp(20px, 4vh, 38px);
}
.hero-title {
  font-weight: 900;
  font-size: clamp(68px, 17vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--head);
  text-shadow: 0 6px 60px rgba(0,0,0,0.6);
}
.hero-title span { display: block; }
.hero-flag {
  margin: clamp(20px, 3.6vh, 36px) 0 0;
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--head);
}
.hero-flag .sep { color: var(--warm); font-weight: 700; }
.hero-flag-2 { margin-top: clamp(10px, 1.6vh, 14px); }
.hero-flag-2 span:not(.sep) { color: #fbf1e0; }
.hero-cta { margin-top: clamp(26px, 4.4vh, 44px); display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: center; }

/* ---------- lineup ---------- */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); }
.room { position: relative; }
.room-tag {
  display: flex; align-items: center; gap: clamp(12px, 1.6vw, 18px);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--accent), var(--warm)) 1;
}
.room-tag .num {
  flex-shrink: 0;
  font-weight: 900; font-size: clamp(30px, 4.4vw, 48px); line-height: 0.9;
  color: var(--warm);
}
.room-head { display: flex; flex-direction: column; gap: 6px; }
.room-tag .label {
  font-family: var(--mono);
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--head);
  line-height: 1;
}
.room-tag .sub {
  font-family: var(--mono);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}
.lineup { list-style: none; }
.lineup li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.6vw, 18px);
  font-weight: 900;
  font-size: clamp(19px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--head);
  padding: 7px 0;
  white-space: nowrap;
}
.lineup li .who { display: inline-flex; align-items: center; gap: clamp(10px, 1.4vw, 16px); min-width: 0; }
.lineup li .name { display: inline-block; }

/* icon-only SoundCloud preview button beside each name */
.sc-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(28px, 2.6vw, 36px);
  height: clamp(28px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #ff5500;                        /* SoundCloud brand orange */
  background: rgba(255, 85, 0, 0.07);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.sc-btn:hover, .sc-btn:focus-visible {
  background: #ff5500;
  border-color: #ff5500;
  color: #000;
  transform: translateY(-1px);
}
.sc-ico { width: 74%; height: 74%; display: block; fill: currentColor; }

/* parenthetical lockup, e.g. ( HYBRID / LIVE SET ) flanking the name */
.paren-lockup { display: inline-flex; align-items: center; gap: 0.2em; }
.paren-lockup .paren {
  font-weight: 300;
  font-size: 0.92em;
  line-height: 0.78;
  color: var(--head);
}
.paren-lockup .paren-text {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.3em;
  line-height: 1.04;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--head);
}

/* ---------- details ---------- */
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.detail .k {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 12px;
}
.detail .v {
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  color: var(--head);
}
.detail .v small { display: block; color: var(--muted); font-size: 0.62em; font-weight: 400; letter-spacing: 0.04em; }

.details-cta { margin-top: clamp(32px, 6vh, 56px); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- proposal teaser ---------- */
.teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.teaser h2 {
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--head);
  text-wrap: balance;
  margin-bottom: 20px;
}
.teaser p { max-width: 54ch; color: var(--ink); font-size: clamp(15px, 1.6vw, 17px); margin-bottom: 26px; }
.teaser-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-raise);
  padding: clamp(22px, 3vw, 36px);
  font-family: var(--mono);
}
.teaser-card .row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px; letter-spacing: 0.08em;
}
.teaser-card .row:last-child { border-bottom: 0; }
.teaser-card .row .lab { color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; }
.teaser-card .row .val { color: var(--head); text-align: right; }

/* ---------- footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: clamp(40px, 7vh, 72px) 0 clamp(28px, 4vh, 44px);
}
.footer-marquee {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--head);
  margin-bottom: 32px;
}
.footer-marquee .sep { color: var(--warm); }
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a39d92;            /* lifted from --muted for AA on the warm-dark footer */
}
.footer-grid a { text-decoration: none; font-weight: 700; color: #e9e3d8; transition: color 0.2s; }
.footer-grid a:hover { color: var(--warm); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.end-transmission { display: flex; align-items: center; gap: 8px; color: var(--accent); }

/* ---------- entrance reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { animation: rise 0.8s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .rooms { grid-template-columns: 1fr; gap: 40px; }
  .teaser { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .site-nav { gap: 14px; }
  .site-nav .nav-link { display: none; }     /* keep tickets button only on small screens */
  .brand { font-size: 12px; letter-spacing: 0.18em; }
  .hero-flag { flex-direction: column; gap: 8px; }
  .hero-flag .sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .rec-dot { animation: none; }
}
