/* =========================================================
   TECHWEEK — Pixel-forward tech design system
   ========================================================= */

/* Self-hosted accent/pixel fonts — guarantees the blocky numerals render
   even if the Google Fonts CDN request is slow or blocked. Latin subset only. */
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/press-start-2p.woff2") format("woff2");
}
@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/silkscreen-400.woff2") format("woff2");
}
@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/silkscreen-700.woff2") format("woff2");
}

:root {
  /* Core palette — terminal/CRT inspired */
  --bg: #0a0c0f;
  --bg-2: #11141a;
  --bg-3: #181c24;
  --line: #232834;
  --line-2: #2d3340;

  --ink: #e8ecf2;
  --ink-2: #b6bdca;
  --ink-3: #6f7787;
  --ink-4: #444b5a;

  /* Accents — phosphor green primary, cyan secondary, magenta pop */
  --acid: #c6ff3d;        /* primary accent — pixel green */
  --acid-dim: #8fb82a;
  --cyan: #5cf2ff;
  --magenta: #ff3df0;
  --amber: #ffb53d;
  --red: #ff5a4d;

  /* Category swatches */
  --cat-ai: #c6ff3d;
  --cat-hw: #5cf2ff;
  --cat-startup: #ff3df0;
  --cat-policy: #ffb53d;
  --cat-culture: #b08aff;

  /* Type — display is now a readable modern grotesk; pixel reserved for accents */
  --font-pixel: "VT323", ui-monospace, monospace;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-sans: "Inter Tight", "Sora", system-ui, sans-serif;
  --font-read: "Newsreader", Georgia, serif;
  --font-accent: "Press Start 2P", "Silkscreen", ui-monospace; /* big numerals only */

  /* Article reading */
  --read-size: 19px;
  --read-leading: 1.7;

  /* Geometry — pixel grid */
  --px: 4px;
  --radius: 0; /* sharp pixel corners */

  /* Shadow — chunky pixel-drop */
  --shadow-pixel: 4px 4px 0 0 var(--ink);
  --shadow-pixel-acid: 4px 4px 0 0 var(--acid);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 70px; /* clearance for the persistent sticky CTA */
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Pixel grid background ---------- */
.pixel-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
}
[data-light="1"] .pixel-grid {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.06) 1px, transparent 1px);
}
[data-light="1"] .noise-overlay { opacity: 0.04; mix-blend-mode: multiply; }
[data-light="1"] .scanlines { opacity: 0.12; }
[data-light="1"] .chip-dot, [data-light="1"] .chip { color: var(--ink-2); }

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 3px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* ---------- Typography utilities ---------- */
.t-pixel { font-family: var(--font-pixel); letter-spacing: 0.02em; }
.t-display { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 500; }
.t-mono { font-family: var(--font-mono); }
.t-sans { font-family: var(--font-sans); }
.t-read { font-family: var(--font-read); }
.t-accent { font-family: var(--font-accent); letter-spacing: -0.06em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0;
  transition: transform 80ms ease, box-shadow 80ms ease, background 120ms ease;
  position: relative;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--acid);
  background: var(--bg-3);
}
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 0 var(--acid); }

.btn-primary {
  background: var(--acid);
  border-color: var(--acid);
  color: #0a0c0f;
}
.btn-primary:hover {
  background: var(--acid);
  box-shadow: 4px 4px 0 0 var(--ink);
}

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

/* ---------- Pixel corners / decorations ---------- */
.pixel-corners {
  position: relative;
}
.pixel-corners::before,
.pixel-corners::after,
.pixel-corners > .pc-tr,
.pixel-corners > .pc-br {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  background: var(--acid);
  z-index: 2;
}
.pixel-corners::before { top: -3px; left: -3px; }
.pixel-corners::after { bottom: -3px; right: -3px; }
.pixel-corners > .pc-tr { top: -3px; right: -3px; }
.pixel-corners > .pc-br { bottom: -3px; left: -3px; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  transition: transform 120ms ease, border-color 120ms ease;
}
.card:hover {
  border-color: var(--ink-3);
}

/* ---------- Tags / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.chip-dot {
  width: 6px; height: 6px;
  background: var(--acid);
}

/* ---------- Marquee / ticker ---------- */
.ticker {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 10px 0;
  animation: ticker-slide 40s linear infinite;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ticker-sep {
  width: 6px; height: 6px;
  background: var(--acid);
  display: inline-block;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Glitch text ---------- */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
}
.glitch:hover::before {
  opacity: 0.85;
  color: var(--cyan);
  transform: translate(-2px, 0);
  animation: glitch-x 600ms steps(2) infinite;
}
.glitch:hover::after {
  opacity: 0.85;
  color: var(--magenta);
  transform: translate(2px, 0);
  animation: glitch-y 600ms steps(2) infinite;
}
@keyframes glitch-x {
  0% { transform: translate(-2px, 0); }
  50% { transform: translate(2px, -1px); }
  100% { transform: translate(-2px, 1px); }
}
@keyframes glitch-y {
  0% { transform: translate(2px, 0); }
  50% { transform: translate(-2px, 1px); }
  100% { transform: translate(2px, -1px); }
}

/* ---------- Pixel reveal ---------- */
@keyframes pixel-in {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
.reveal {
  animation: pixel-in 700ms steps(20) both;
}

/* ---------- Caret blink ---------- */
.caret {
  display: inline-block;
  width: 0.6em;
  height: 1em;
  background: var(--acid);
  margin-left: 4px;
  animation: blink 1s steps(2) infinite;
  vertical-align: -2px;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ---------- Loading bar pixels ---------- */
.pix-bar {
  display: inline-flex;
  gap: 2px;
}
.pix-bar > span {
  width: 6px; height: 14px;
  background: var(--line-2);
}
.pix-bar > span.on { background: var(--acid); }

/* ---------- Layout container ---------- */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ---------- Section dividers ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 60px 0 28px;
}
.divider .line { flex: 1; height: 1px; background: var(--line); }
.divider .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.divider .square { width: 8px; height: 8px; background: var(--acid); }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

/* ---------- Forms ---------- */
.input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  border-radius: 0;
}
.input:focus { border-color: var(--acid); outline: none; }

/* ---------- Article body type ---------- */
.article-body {
  font-family: var(--font-sans);
  font-size: var(--read-size);
  line-height: var(--read-leading);
  color: var(--ink);
  font-weight: 400;
}
.article-body p { margin: 0 0 1.4em; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  margin: 2em 0 0.6em;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.article-body h3 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  margin: 1.8em 0 0.5em;
  color: var(--ink);
}
.article-body a { color: var(--acid); border-bottom: 1px solid var(--acid-dim); }
.article-body blockquote {
  border-left: 4px solid var(--acid);
  padding: 4px 0 4px 24px;
  margin: 1.6em 0;
  font-style: normal;
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1.5;
  font-weight: 300;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-3);
  padding: 2px 6px;
  color: var(--cyan);
}
.article-body pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--acid);
  z-index: 100;
  transition: width 60ms linear;
}

/* ---------- Pixel sprite placeholder ---------- */
.pix-thumb {
  position: relative;
  background: var(--bg-3);
  overflow: hidden;
  image-rendering: pixelated;
}
.pix-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(198,255,61,0.25), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(92,242,255,0.18), transparent 50%);
}
/* 8 deterministic placeholder patterns (chosen by ACF `pattern` or post ID). */
.pix-thumb[data-pattern="1"]::after {
  background-image:
    radial-gradient(circle at 25% 30%, color-mix(in srgb, var(--cyan) 26%, transparent), transparent 52%),
    radial-gradient(circle at 75% 65%, color-mix(in srgb, var(--magenta) 20%, transparent), transparent 52%);
}
.pix-thumb[data-pattern="2"]::after {
  background-image:
    radial-gradient(circle at 60% 35%, color-mix(in srgb, var(--magenta) 24%, transparent), transparent 50%),
    radial-gradient(circle at 30% 75%, color-mix(in srgb, var(--amber) 22%, transparent), transparent 52%);
}
.pix-thumb[data-pattern="3"]::after {
  background-image:
    radial-gradient(circle at 35% 40%, color-mix(in srgb, var(--amber) 24%, transparent), transparent 50%),
    radial-gradient(circle at 70% 60%, color-mix(in srgb, var(--acid) 22%, transparent), transparent 52%);
}
.pix-thumb[data-pattern="4"]::after {
  background-image:
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--acid) 24%, transparent), transparent 52%),
    radial-gradient(circle at 30% 70%, color-mix(in srgb, var(--cyan) 20%, transparent), transparent 52%);
}
.pix-thumb[data-pattern="5"]::after {
  background-image:
    linear-gradient(160deg, color-mix(in srgb, var(--cyan) 20%, transparent), transparent 55%),
    radial-gradient(circle at 50% 80%, color-mix(in srgb, var(--magenta) 22%, transparent), transparent 55%);
}
.pix-thumb[data-pattern="6"]::after {
  background-image:
    radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--magenta) 22%, transparent), transparent 50%),
    radial-gradient(circle at 80% 50%, color-mix(in srgb, var(--acid) 20%, transparent), transparent 50%);
}
.pix-thumb[data-pattern="7"]::after {
  background-image:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--amber) 24%, transparent), transparent 48%),
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 45%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 45%);
}

/* ---------- Event Tickets RSVP form (scoped dark-theme skin) ----------
   Event Tickets ships light-theme CSS; these scoped overrides fit it to the
   Techweek palette. Scoped to .tw-rsvp so nothing leaks elsewhere. */
.tw-rsvp { color: var(--ink-2); }
.tw-rsvp .tribe-tickets,
.tw-rsvp .tribe-tickets__rsvp-wrapper,
.tw-rsvp .tribe-common {
  background: transparent !important;
  color: var(--ink-2) !important;
}
.tw-rsvp .tribe-tickets__rsvp-wrapper {
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 24px !important;
}
.tw-rsvp h1, .tw-rsvp h2, .tw-rsvp h3, .tw-rsvp h4,
.tw-rsvp .tribe-tickets__rsvp-title,
.tw-rsvp .tribe-common-h4, .tw-rsvp .tribe-common-h5,
.tw-rsvp .tribe-tickets__rsvp-attendance-number { color: var(--ink) !important; }
.tw-rsvp label,
.tw-rsvp .tribe-tickets__form-field-label { color: var(--ink-2) !important; }
.tw-rsvp input, .tw-rsvp select, .tw-rsvp textarea,
.tw-rsvp .tribe-tickets__form-field-input {
  background: var(--bg) !important;
  color: var(--ink) !important;
  border: 1px solid var(--ink-2) !important;
  border-radius: 0 !important;
}
.tw-rsvp button,
.tw-rsvp .tribe-common-c-btn,
.tw-rsvp .tribe-tickets__rsvp-form-button { border-radius: 0 !important; }
.tw-rsvp .tribe-common-c-btn:not([disabled]),
.tw-rsvp .tribe-tickets__rsvp-form-button--submit,
.tw-rsvp .tribe-tickets__rsvp-actions-button-going {
  background: var(--acid) !important;
  color: #0a0c0f !important;
  border-color: var(--acid) !important;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tw-rsvp .tribe-tickets__rsvp-form-button--cancel,
.tw-rsvp .tribe-common-c-btn--outline {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-2) !important;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,7,10,0.78);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 200ms ease;
}
.modal {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  max-width: 540px;
  width: 100%;
  position: relative;
  animation: pixel-pop 220ms steps(6) both;
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes pixel-pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* =========================================================
   FIGMA / CLEAN MODE — strip decorative effects for import.
   Activate by appending ?clean=1 to the URL.
   ========================================================= */
[data-clean="1"] .chroma-soft,
[data-clean="1"] .chroma {
  text-shadow: none !important;
}
[data-clean="1"] .glitch-text::before,
[data-clean="1"] .glitch-text::after,
[data-clean="1"] .vhs::before,
[data-clean="1"] .vhs::after {
  display: none !important;
  content: none !important;
}
[data-clean="1"] .noise-overlay,
[data-clean="1"] .scanlines,
[data-clean="1"] .scan-sweep,
[data-clean="1"] .pixel-grid {
  display: none !important;
}
[data-clean="1"] .glitch-img > .scan,
[data-clean="1"] .glitch-img > .tint,
[data-clean="1"] .glitch-img > .rgb-r,
[data-clean="1"] .glitch-img > .rgb-b {
  display: none !important;
}
[data-clean="1"] .glitch-img img {
  filter: contrast(1.02) brightness(0.95) !important;
}
[data-clean="1"] .caret,
[data-clean="1"] .static-band::after {
  display: none !important;
  animation: none !important;
}
[data-clean="1"] header {
  position: static !important;
}

/* =========================================================
   PIXEL GRAPHIC BACKGROUND — for highlighted sections
   ========================================================= */
.pixel-bg {
  position: relative;
  background: #050608;
  overflow: hidden;
}
/* Big pixel grid (faint) */
.pixel-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
}
/* Subtle animated film noise on top */
.pixel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: pixel-bg-noise 6s steps(6) infinite;
}
@keyframes pixel-bg-noise {
  0% { transform: translate(0,0); }
  50% { transform: translate(-2%, 2%); }
  100% { transform: translate(2%, -2%); }
}

/* Fluid ambient cloud background — soft deep-blue radial washes, slowly drifting */
.fluid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.fluid-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.fluid-bg .blob-a {
  width: 780px;
  height: 780px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, #4a78c9 0%, rgba(74,120,201,0) 70%);
  animation: fluid-a 24s ease-in-out infinite alternate;
}
.fluid-bg .blob-b {
  width: 900px;
  height: 900px;
  top: 10%;
  left: 40%;
  background: radial-gradient(circle, #2b5290 0%, rgba(43,82,144,0) 70%);
  animation: fluid-b 32s ease-in-out infinite alternate;
}
.fluid-bg .blob-c {
  width: 720px;
  height: 720px;
  bottom: -140px;
  right: -80px;
  background: radial-gradient(circle, #6090d4 0%, rgba(96,144,212,0) 70%);
  animation: fluid-c 28s ease-in-out infinite alternate;
}
.fluid-bg .blob-d {
  width: 640px;
  height: 640px;
  bottom: -60px;
  left: 20%;
  background: radial-gradient(circle, #1f3a6b 0%, rgba(31,58,107,0) 70%);
  animation: fluid-d 36s ease-in-out infinite alternate;
}
@keyframes fluid-a {
  0%   { transform: translate(0,0)    scale(1); }
  100% { transform: translate(60px,40px) scale(1.1); }
}
@keyframes fluid-b {
  0%   { transform: translate(0,0)    scale(1); }
  100% { transform: translate(-80px,-50px) scale(1.05); }
}
@keyframes fluid-c {
  0%   { transform: translate(0,0)    scale(1); }
  100% { transform: translate(-60px,30px) scale(1.08); }
}
@keyframes fluid-d {
  0%   { transform: translate(0,0)    scale(1); }
  100% { transform: translate(40px,-60px) scale(0.95); }
}

/* =========================================================
   60s/70s TV COLOUR-GLITCH BACKDROP (subscribe box)
   ========================================================= */
.tw-subscribe-box .tv-glitch {
  opacity: 0;
  transition: opacity 400ms ease;
}
.tw-subscribe-box:hover .tv-glitch {
  opacity: 0.5;
}

/* =========================================================
   ASCII TEXT-ART GLITCH (subscribe box) — appears on hover
   ========================================================= */
.ascii-glitch {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 360ms ease;
  /* organic clustered density via turbulence mask */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='400'><filter id='t'><feTurbulence type='fractalNoise' baseFrequency='0.06 0.07' numOctaves='2' seed='11'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.4 0.6'/></filter><rect width='100%25' height='100%25' filter='url(%23t)'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='400'><filter id='t'><feTurbulence type='fractalNoise' baseFrequency='0.06 0.07' numOctaves='2' seed='11'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.4 0.6'/></filter><rect width='100%25' height='100%25' filter='url(%23t)'/></svg>");
  -webkit-mask-size: cover;
          mask-size: cover;
}
.tw-subscribe-box:hover .ascii-glitch { opacity: 1; }
.ascii-glitch-pre {
  margin: 0;
  position: absolute;
  top: -6%;
  left: -2%;
  width: 104%;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 0.34em;
  white-space: pre;
  color: #2f6bff;
  user-select: none;
  text-shadow: 0 0 6px rgba(47,107,255,0.5);
  animation: ascii-drift 16s linear infinite, ascii-flicker 2.6s steps(2) infinite;
}
@keyframes ascii-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-22%); }
}
@keyframes ascii-flicker {
  0%, 92%, 100% { opacity: 1; }
  93%, 99% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .ascii-glitch-pre { animation: none; }
}

/* =========================================================
   MAN LOADER — revolving monospace text ring
   ========================================================= */
.man-ring-back, .man-ring-front {
  transform-origin: 50% 52%;
  animation: man-ring-spin 22s linear infinite;
}
.man-ring-back { z-index: 1; opacity: 0.9; }
/* Front copy only shows its lower arc, so it crosses in front of the legs */
.man-ring-front {
  z-index: 3;
  -webkit-mask-image: linear-gradient(to bottom, transparent 56%, black 56%);
          mask-image: linear-gradient(to bottom, transparent 56%, black 56%);
}
@keyframes man-ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .man-ring-back, .man-ring-front { animation: none; }
}
.tv-glitch {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  /* RGB colour bars, like mistuned analog TV */
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 61, 240, 0.16) 0 14px,
    rgba(92, 242, 255, 0.16) 14px 28px,
    rgba(198, 255, 61, 0.14) 28px 42px,
    rgba(255, 181, 61, 0.14) 42px 56px,
    transparent 56px 92px
  );
  background-size: 200% 100%;
  animation: tv-bars-drift 9s linear infinite;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 92%);
}
/* horizontal roll bands + chroma tear */
.tv-glitch::before {
  content: "";
  position: absolute;
  inset: -20% 0;
  background:
    linear-gradient(to bottom,
      transparent 0%,
      rgba(255,255,255,0.05) 48%,
      rgba(255,255,255,0.12) 50%,
      rgba(255,255,255,0.05) 52%,
      transparent 100%);
  animation: tv-roll 6s linear infinite;
}
/* chromatic offset blocks that jump every few seconds */
.tv-glitch::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 22%;
  top: 30%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 61, 240, 0.22) 0 3px,
    rgba(92, 242, 255, 0.22) 3px 6px,
    transparent 6px 16px
  );
  mix-blend-mode: screen;
  animation: tv-tear 7s steps(1) infinite;
}
/* scanlines on top */
@keyframes tv-bars-drift {
  from { background-position: 0 0; }
  to   { background-position: 200% 0; }
}
@keyframes tv-roll {
  from { transform: translateY(-120%); }
  to   { transform: translateY(120%); }
}
@keyframes tv-tear {
  0%, 100% { top: 30%; opacity: 0.6; transform: translateX(0); }
  20%      { top: 62%; opacity: 0.9; transform: translateX(-8px); }
  40%      { top: 18%; opacity: 0.4; transform: translateX(6px); }
  60%      { top: 74%; opacity: 0.8; transform: translateX(-4px); }
  80%      { top: 44%; opacity: 0.5; transform: translateX(10px); }
}
.tv-glitch { box-shadow: inset 0 0 120px 20px rgba(0,0,0,0.55); }
@media (prefers-reduced-motion: reduce) {
  .tv-glitch, .tv-glitch::before, .tv-glitch::after { animation: none; }
}

/* =========================================================
   INTEREST TILE — mobile sizing
   ========================================================= */
@media (max-width: 900px) {
  .tw-interest-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
}
@media (max-width: 640px) {
  .tw-interest-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .tw-interest-tile { aspect-ratio: 3 / 4 !important; padding: 12px 12px !important; }
}

/* =========================================================
   FIGMA-BOARD subscribe styling
   ========================================================= */
.tw-figma-board .fig-float {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}
.fig-card { box-shadow: 0 0 0 1px #fff, 0 24px 50px rgba(0,0,0,0.45); }
.fig-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--bg);
  border: 1.5px solid #fff;
  z-index: 5;
}
@media (max-width: 760px) {
  .tw-figma-board .fig-hide-sm { display: none !important; }
  .fig-card { transform: rotate(0deg) !important; }
}

/* events page calendar — mobile */
@media (max-width: 760px) {
  .tw-events-grid { grid-template-columns: 1fr !important; }
  .tw-cal-grid > div { min-height: 64px !important; padding: 4px !important; }
  .tw-cal-grid button { font-size: 8px !important; }
}

/* About page — mobile */
@media (max-width: 760px) {
  .tw-about-timeline { grid-template-columns: 1fr !important; gap: 24px !important; }
  .tw-about-careers { grid-template-columns: 1fr !important; gap: 32px !important; }
  .tw-about-event { grid-template-columns: 1fr !important; }
  .tw-about-event > div:last-child { text-align: left !important; padding: 0 20px 20px !important; }
}

/* Hide scroll bar for nav */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Metallic blob — slow alive breathing */
.metal-breathe {
  transform-origin: center;
  animation: metal-breathe 7s ease-in-out infinite;
}
@keyframes metal-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.05) rotate(2.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .metal-breathe { animation: none; }
}

/* =========================================================
   GLITCH / NOISE / CRT EFFECTS — subtle, atmospheric
   ========================================================= */

/* Chromatic aberration on text — applied with .chroma class */
.chroma {
  text-shadow:
    -1px 0 0 rgba(255, 61, 240, 0.55),
    1px 0 0 rgba(92, 242, 255, 0.55);
}
.chroma-soft {
  text-shadow:
    -0.5px 0 0 rgba(255, 61, 240, 0.4),
    0.5px 0 0 rgba(92, 242, 255, 0.4);
}

/* Subtle film noise — pure SVG filter, GPU friendly */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: noise-shift 8s steps(8) infinite;
}
@keyframes noise-shift {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1%, 1%); }
  50% { transform: translate(1%, -1%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0,0); }
}

/* Scan sweep — single horizontal line sweeps slowly down the page */
.scan-sweep {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.scan-sweep::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -10vh;
  height: 60vh;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(198, 255, 61, 0.025) 48%,
    rgba(198, 255, 61, 0.06) 50%,
    rgba(198, 255, 61, 0.025) 52%,
    transparent 100%
  );
  animation: scan-down 12s linear infinite;
}
@keyframes scan-down {
  from { transform: translateY(0); }
  to { transform: translateY(180vh); }
}

/* VHS "tear" — randomly shifts a horizontal band on hover/active */
.vhs {
  position: relative;
  isolation: isolate;
}
.vhs::before,
.vhs::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms;
}
.vhs:hover::before {
  color: var(--magenta);
  opacity: 0.6;
  clip-path: inset(40% 0 50% 0);
  transform: translateX(-2px);
  animation: vhs-tear 800ms steps(6) infinite;
}
.vhs:hover::after {
  color: var(--cyan);
  opacity: 0.6;
  clip-path: inset(60% 0 30% 0);
  transform: translateX(2px);
  animation: vhs-tear 800ms steps(6) infinite reverse;
}
@keyframes vhs-tear {
  0%   { clip-path: inset(20% 0 70% 0); transform: translateX(-3px); }
  20%  { clip-path: inset(50% 0 40% 0); transform: translateX(2px); }
  40%  { clip-path: inset(70% 0 20% 0); transform: translateX(-1px); }
  60%  { clip-path: inset(30% 0 60% 0); transform: translateX(4px); }
  80%  { clip-path: inset(85% 0 5% 0);  transform: translateX(-2px); }
  100% { clip-path: inset(45% 0 45% 0); transform: translateX(1px); }
}

/* Decay reveal — letters dissolve in on scroll */
@keyframes decay-in {
  from { opacity: 0; filter: blur(8px) contrast(2); transform: translateY(8px); }
  to   { opacity: 1; filter: blur(0) contrast(1); transform: translateY(0); }
}
.decay {
  animation: decay-in 900ms steps(20) both;
}

/* Random pixel rain — small dots that drop on a container */
.rain-container {
  position: relative;
  overflow: hidden;
}
.rain-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 0%, var(--acid) 0.5px, transparent 1px),
    radial-gradient(circle at 60% 0%, var(--cyan) 0.5px, transparent 1px),
    radial-gradient(circle at 85% 0%, var(--magenta) 0.5px, transparent 1px);
  background-size: 80px 30px, 110px 50px, 140px 40px;
  background-repeat: repeat;
  opacity: 0.4;
  animation: rain-drop 6s linear infinite;
  pointer-events: none;
}
@keyframes rain-drop {
  from { background-position: 0 0, 0 0, 0 0; }
  to   { background-position: 0 100%, 0 100%, 0 100%; }
}

/* Random subtle skew flicker for headers */
@keyframes hd-flicker {
  0%, 96%, 100% { transform: skewX(0); filter: none; }
  97% { transform: skewX(0.4deg); filter: hue-rotate(8deg); }
  98% { transform: skewX(-0.3deg) translateX(1px); }
  99% { transform: skewX(0.2deg) translateX(-1px); filter: hue-rotate(-6deg); }
}
.flicker {
  animation: hd-flicker 7s steps(2) infinite;
}

/* Marker / highlighter pixel underline */
.hl-pix {
  background-image: linear-gradient(transparent 70%, var(--acid) 70%, var(--acid) 92%, transparent 92%);
  padding: 0 2px;
}

/* Bigger blink for live indicators */
@keyframes blink-soft {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.25; }
}

/* Static / TV noise band */
.static-band {
  position: relative;
  overflow: hidden;
}
.static-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 3px
    );
  pointer-events: none;
}

/* =========================================================
   GLITCH IMAGE — simple, one-shot glitch flash on hover
   ========================================================= */
.glitch-img {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}
.glitch-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) contrast(1.05) brightness(0.85);
  transition: filter 300ms ease, transform 400ms ease;
}

/* Color tint overlay always present */
.glitch-img > .tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,15,0.15) 0%, rgba(10,12,15,0.55) 100%);
  pointer-events: none;
  transition: opacity 300ms;
}

/* Scanline pattern over photo */
.glitch-img > .scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0,0,0,0.22) 2px 3px
  );
  opacity: 0.45;
  transition: opacity 300ms;
}

/* RGB split layers — only animate briefly on hover entry */
.glitch-img > .rgb-r,
.glitch-img > .rgb-b {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
}

/* On hover: image goes color + gentle scale, glitch fires ONCE */
.glitch-img.is-hover img {
  filter: grayscale(0) contrast(1.05) brightness(0.95) saturate(1.1);
  transform: scale(1.02);
}
.glitch-img.is-hover > .tint { opacity: 0.6; }
.glitch-img.is-hover > .scan { opacity: 0.6; }
.glitch-img.is-hover > .rgb-r {
  animation: rgb-flash-r 380ms steps(4) 1;
  filter: hue-rotate(-30deg) saturate(2);
}
.glitch-img.is-hover > .rgb-b {
  animation: rgb-flash-b 380ms steps(4) 1;
  filter: hue-rotate(180deg) saturate(2);
}

@keyframes rgb-flash-r {
  0%   { opacity: 0;    transform: translateX(0); }
  20%  { opacity: 0.55; transform: translateX(6px); }
  50%  { opacity: 0.4;  transform: translateX(-2px); }
  80%  { opacity: 0.2;  transform: translateX(2px); }
  100% { opacity: 0;    transform: translateX(0); }
}
@keyframes rgb-flash-b {
  0%   { opacity: 0;    transform: translateX(0); }
  20%  { opacity: 0.55; transform: translateX(-6px); }
  50%  { opacity: 0.4;  transform: translateX(2px); }
  80%  { opacity: 0.2;  transform: translateX(-2px); }
  100% { opacity: 0;    transform: translateX(0); }
}

/* Glitch text — fires once on hover then settles */
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}
.glitch-text:hover::before {
  opacity: 0.8;
  color: var(--magenta);
  transform: translate(-2px, 0);
  animation: glitch-text-a 350ms steps(4) 1;
  text-shadow: none;
}
.glitch-text:hover::after {
  opacity: 0.8;
  color: var(--cyan);
  transform: translate(2px, 0);
  animation: glitch-text-b 350ms steps(4) 1;
  text-shadow: none;
}
@keyframes glitch-text-a {
  0%   { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  25%  { clip-path: inset(50% 0 30% 0); transform: translate(2px, 0); }
  50%  { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 0); }
  75%  { clip-path: inset(30% 0 50% 0); transform: translate(3px, 0); }
  100% { clip-path: inset(0% 0 0% 0); transform: translate(0, 0); opacity: 0; }
}
@keyframes glitch-text-b {
  0%   { clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); }
  25%  { clip-path: inset(30% 0 50% 0); transform: translate(-2px, 0); }
  50%  { clip-path: inset(10% 0 70% 0); transform: translate(2px, 0); }
  75%  { clip-path: inset(50% 0 30% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(0% 0 0% 0); transform: translate(0, 0); opacity: 0; }
}

/* Animated hamburger: bars converge + middle fades when the mobile menu is open. */
.tw-nav-burger svg rect { transition: y 200ms ease, opacity 200ms ease; }
.tw-nav-burger[aria-expanded="true"] .bar-top { y: 6px; }
.tw-nav-burger[aria-expanded="true"] .bar-mid { opacity: 0; }
.tw-nav-burger[aria-expanded="true"] .bar-bot { y: 6px; }

/* About — careers "Apply" button fills on hover (matches prototype). */
.tw-career-row > a { transition: background 160ms ease, color 160ms ease; }
.tw-career-row > a:hover { background: var(--acid); color: #0a0c0f; }

/* About — timeline marquee nav arrows invert on hover. */
[data-marquee-prev], [data-marquee-next] { transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
[data-marquee-prev]:hover, [data-marquee-next]:hover { background: var(--ink); color: #0a0c0f; }

/* Blog archive — category filter chips. */
.tw-cat-chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); padding: 8px 14px; transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.tw-cat-chip:hover { border-color: var(--ink-3); }
.tw-cat-chip.is-active { background: var(--acid); color: #0a0c0f; border-color: var(--acid); }
.tw-cat-chip-dot { width: 7px; height: 7px; display: inline-block; flex-shrink: 0; }
.tw-cat-chip.is-active .tw-cat-chip-dot { background: #0a0c0f !important; }

/* Home interest tiles — colour sweep fills upward on hover; content inverts when lit. */
.tw-tile-sweep { position: absolute; inset: 0; background: var(--tile-color, var(--acid)); transform: translateY(101%); transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); z-index: 0; }
.tw-interest-tile:hover:not(.is-active) .tw-tile-sweep { transform: translateY(0); }
.tw-interest-tile:hover:not(.is-active) .tw-tile-dot,
.tw-interest-tile.is-active .tw-tile-dot { background: #0a0c0f; }
.tw-interest-tile:hover:not(.is-active) .tw-tile-arrow { color: #0a0c0f; transform: translateY(3px); }
.tw-interest-tile.is-active .tw-tile-arrow { color: #0a0c0f; }
.tw-interest-tile:hover:not(.is-active) .tw-tile-label,
.tw-interest-tile.is-active .tw-tile-label { color: #0a0c0f; }

/* Home featured hero — lift + acid offset shadow on hover. */
.tw-hero-card:hover .tw-hero-image { border-color: var(--acid); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 0 var(--acid); }

/* ---- Y2K subscribe block (Windows-98 "Dispatch.exe") ---- */
.tw-y2k-stage { position: relative; overflow: hidden; border: 1px solid var(--line); min-height: 460px; font-family: Tahoma, "Segoe UI", Geneva, Verdana, sans-serif; background: radial-gradient(60% 38% at 18% 20%, rgba(255,255,255,0.9), rgba(255,255,255,0) 60%), radial-gradient(42% 26% at 72% 14%, rgba(255,255,255,0.85), rgba(255,255,255,0) 60%), radial-gradient(34% 22% at 45% 30%, rgba(255,255,255,0.7), rgba(255,255,255,0) 60%), linear-gradient(to bottom, #2f76d2 0%, #3f86dd 14%, #6aa6e6 30%, #9ec8f0 44%, #cfe6f8 52%, #eaf4fb 55%); }
.tw-y2k-grass { position: absolute; left: -5%; right: -5%; bottom: 0; height: 46%; background: linear-gradient(to bottom, #7cc34a 0%, #5fa72f 30%, #4f9426 70%, #3f7d1f 100%); border-radius: 50% 50% 0 0 / 26% 26% 0 0; box-shadow: 0 -2px 18px rgba(60,120,30,0.4) inset; }
.tw-y2k-inner { position: relative; z-index: 10; padding: 30px 40px 30px; }
.tw-win { background: #ece9d8; border: 1px solid #0a3a8c; border-radius: 8px 8px 2px 2px; box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 0 0 1px #fff; overflow: hidden; }
.tw-win-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 6px 5px 10px; color: #fff; font-weight: 700; font-size: 13px; text-shadow: 1px 1px 1px rgba(0,0,0,0.35); background: linear-gradient(to bottom, #0a6cf0 0%, #1f7ff7 8%, #2a86f8 45%, #1a6fe6 52%, #0a5ad8 100%); border-bottom: 1px solid #03379c; }
.tw-win-title .dot { display: inline-flex; align-items: center; gap: 8px; }
.tw-win-ctrls { display: flex; gap: 3px; }
.tw-win-ctrls span { width: 18px; height: 17px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #06245e; background: linear-gradient(to bottom, #6db1fb, #2a7df3); border: 1px solid #fff; border-radius: 3px; box-shadow: inset -1px -1px 1px rgba(0,0,0,0.25); }
.tw-win-ctrls span.x { background: linear-gradient(to bottom, #f7977a, #e0492a); color: #5a0e00; }
.tw-win-body { padding: 20px 22px; color: #1a1a1a; }
.tw-win-btn { font-family: Tahoma, "Segoe UI", sans-serif; font-size: 13px; font-weight: 700; color: #0a0a0a; background: linear-gradient(to bottom, #fdfdfd 0%, #e6e3d4 50%, #d2cfbe 100%); border: 1px solid #8a8674; border-radius: 4px; box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #b3af9c, 0 1px 2px rgba(0,0,0,0.2); padding: 7px 18px; cursor: pointer; }
.tw-win-btn:active { box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #b3af9c; }
.tw-win-btn.primary { background: linear-gradient(to bottom, #5fb8ff 0%, #2f8df0 50%, #1f73d8 100%); color: #fff; border-color: #0a4aa0; text-shadow: 1px 1px 1px rgba(0,0,0,0.3); box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5), 0 1px 2px rgba(0,0,0,0.3); }
.tw-win-input { font-family: Tahoma, "Segoe UI", sans-serif; font-size: 14px; color: #111; background: #fff; border: 2px solid; border-color: #7f7c6c #fff #fff #7f7c6c; padding: 8px 10px; outline: none; width: 100%; }
.tw-desk-icon { position: absolute; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: default; }
.tw-desk-icon .lbl { font-family: Tahoma, "Segoe UI", sans-serif; font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 0 1px rgba(0,0,0,0.9); line-height: 1.2; padding: 1px 3px; }
.tw-float-a { animation: tw-bob-a 6s ease-in-out infinite; }
.tw-float-b { animation: tw-bob-b 7.5s ease-in-out infinite; }
@keyframes tw-bob-a { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@keyframes tw-bob-b { 0%,100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .tw-float-a, .tw-float-b { animation: none; } }

/* ---- FAQ accordion (events page) ---- */
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tw-faq-a[hidden] { display: none; }
.tw-faq-a:not([hidden]) { overflow: hidden; animation: faq-reveal 300ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.tw-faq-icon { position: relative; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: var(--bg-3); transition: background 200ms ease; flex-shrink: 0; }
.tw-faq-icon .bar-h, .tw-faq-icon .bar-v { position: absolute; background: var(--ink-2); }
.tw-faq-icon .bar-h { top: 50%; left: 7px; width: 12px; height: 2px; transform: translateY(-50%); }
.tw-faq-icon .bar-v { left: 50%; top: 7px; width: 2px; height: 12px; transform: translateX(-50%); transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.tw-faq-item.is-open .tw-faq-icon { background: var(--cyan); }
.tw-faq-item.is-open .tw-faq-icon .bar-h, .tw-faq-item.is-open .tw-faq-icon .bar-v { background: #0a0c0f; }
.tw-faq-item.is-open .tw-faq-icon .bar-v { transform: translateX(-50%) scaleY(0); }
.tw-faq-item.is-open .tw-faq-num { color: var(--cyan); }

/* ---- Event badge tiers ("Choose your badge") ---- */
.tw-badge-select:hover { background: var(--swatch, var(--acid)) !important; color: #0a0c0f !important; }

/* ---------- Archive marquee ("from the archive." — home + about) ---------- */
.tw-arch-head { position: relative; text-align: center; margin-bottom: 0; }
.tw-arch-title { position: relative; z-index: 2; }
.tw-arch-lede { position: relative; z-index: 2; }

/* Three continuous rows (v2 ArchiveMarquee) */
.tw-arch-rows {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tw-arch-viewport {
  position: relative;
  overflow: hidden;
  padding: 2px 0;
}
.tw-arch-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 0 18px;
}
.tw-arch-track.is-left  { animation: tw-arch-left 115s linear infinite; }
.tw-arch-track.is-right { animation: tw-arch-right 115s linear infinite; }
.tw-arch-viewport:hover .tw-arch-track { animation-play-state: paused; }
@keyframes tw-arch-left {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
@keyframes tw-arch-right {
  from { transform: translate3d(-50%,0,0); }
  to   { transform: translate3d(0,0,0); }
}
.tw-arch-card { flex: 0 0 auto; width: 380px; margin: 0; }
.tw-arch-slot {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--bg-3);
}
.tw-arch-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.tw-arch-card:hover .tw-arch-slot img { transform: scale(1.04); }
.tw-arch-meta { display: flex; align-items: center; gap: 9px; padding: 11px 2px 0; }
.tw-arch-dot { width: 8px; height: 8px; flex: 0 0 auto; }
.tw-arch-cap { font-size: 11px; letter-spacing: 0.14em; color: var(--ink); }
.tw-arch-sub { font-size: 12px; color: var(--ink-3); font-weight: 300; margin-left: auto; font-style: italic; }
.tw-arch-fade { position: absolute; top: 0; bottom: 0; width: 90px; pointer-events: none; z-index: 4; }
.tw-arch-fade-l { left: 0;  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
.tw-arch-fade-r { right: 0; background: linear-gradient(270deg, var(--bg) 0%, transparent 100%); }
/* Design's minimal CTA: no border/outline box, just a hover/focus underline. */
.tw-arch-cta, .tw-arch-cta:focus, .tw-arch-cta:focus-visible, .tw-arch-cta:active {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.tw-arch-cta:hover, .tw-arch-cta:focus-visible {
  border-bottom: 1px solid var(--acid) !important;
}
@media (prefers-reduced-motion: reduce) { .tw-arch-track { animation: none; } }

/* Legal pages — style the editable WP Page content (the_content output). */
.tw-legal-prose > *:first-child { margin-top: 0; }
.tw-legal-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 44px 0 16px;
  color: var(--ink);
}
.tw-legal-prose h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--ink);
}
.tw-legal-prose p,
.tw-legal-prose li {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 300;
}
.tw-legal-prose p { margin: 0 0 14px; }
.tw-legal-prose ul,
.tw-legal-prose ol { margin: 14px 0 20px 22px; }
.tw-legal-prose li { margin-bottom: 8px; }
.tw-legal-prose ul { list-style: disc; }
.tw-legal-prose ol { list-style: decimal; }
.tw-legal-prose a { color: var(--legal-accent, var(--acid)); text-decoration: underline; }
.tw-legal-prose em { color: var(--ink-3); font-style: italic; }

/* =======================================================
   Events page — cities grid (travel posters) + submit banner
   ======================================================= */
.tw-cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tw-poster {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-top: 4px solid var(--card-accent, var(--cyan));
  padding: 16px;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}
.tw-poster:hover,
.tw-poster:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 0 var(--card-accent, var(--cyan));
  border-color: var(--card-accent, var(--cyan));
  outline: none;
}
.tw-poster:hover .tw-poster-cta,
.tw-poster:focus-visible .tw-poster-cta {
  color: var(--card-accent, var(--cyan)) !important;
}

.tw-submit-btn {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  transition: background 160ms, color 160ms;
}
.tw-submit-btn:hover,
.tw-submit-btn:focus-visible {
  background: var(--cyan);
  color: #0a0c0f;
  outline: none;
}

@media (max-width: 900px) {
  .tw-cities-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .tw-cities-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .tw-submit-banner {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .tw-submit-btn { justify-self: start !important; }
}

/* =======================================================
   Contact page — form fields + reach-out box
   ======================================================= */
.tw-contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.tw-contact-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 15px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 160ms ease;
}
.tw-contact-input:focus {
  outline: none;
  border-color: var(--acid);
}
.tw-contact-input::placeholder { color: var(--ink-3); }
.tw-contact-submit {
  transition: transform 160ms, filter 160ms;
}
.tw-contact-submit:hover,
.tw-contact-submit:focus-visible {
  transform: translate(-2px, -2px);
  filter: brightness(1.08);
  outline: none;
}

/* Home "View all stories" CTA */
.tw-view-all { transition: transform 160ms ease, filter 160ms ease; }
.tw-view-all:hover, .tw-view-all:focus-visible { transform: translate(-2px, -2px); filter: brightness(1.08); outline: none; }

/* Home article grid: show only the first 6 before JS runs (no flash of all
   stories). home-filter.js then manages visibility inline as filters change. */
.tw-home-grid .tw-article-card:nth-child(n+7) { display: none; }

/* =======================================================
   Archive marquee lightbox
   ======================================================= */
.tw-arch-card { cursor: pointer; }
.tw-arch-card:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

.tw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(6, 7, 10, 0.9);
  backdrop-filter: blur(6px);
}
.tw-lightbox.is-open { display: flex; }

.tw-lb-fig {
  margin: 0;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tw-lb-img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.tw-lb-cap {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: center;
}

.tw-lb-btn {
  background: var(--acid);
  color: #0a0c0f;
  border: none;
  width: 48px;
  height: 48px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 160ms, transform 160ms;
}
.tw-lb-btn:hover, .tw-lb-btn:focus-visible { filter: brightness(1.1); transform: scale(1.05); outline: none; }
.tw-lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.tw-lb-close:hover { background: var(--magenta); color: #0a0c0f; }

@media (max-width: 640px) {
  .tw-lb-btn { width: 40px; height: 40px; font-size: 22px; }
  .tw-lb-img { max-height: 68vh; }
}

/* Y2K subscribe buttons: never wrap the label; stack full-width on phones. */
.tw-win-btn { white-space: nowrap; }
@media (max-width: 520px) {
  .tw-y2k-btns { flex-direction: column !important; align-items: stretch !important; }
  .tw-y2k-btns .tw-win-btn { width: 100% !important; }
}
