/* Filthy Palms — original profile/broadcast interface */
:root {
  --ink: #f4ead8;
  --muted: #c7b79e;
  --dim: #a28f78;
  --void: #1b100b;
  --base: #2b180f;
  --surface: #3b2216;
  --surface-2: #4b2b1b;
  --line: #6e4932;
  --line-hot: #9a6544;
  --lime: #9aaa78;
  --lime-deep: #718356;
  --coral: #c65b2b;
  --amber: #d58a3d;
  --focus: #f0c98c;
  --radius: 5px;
  --display: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: "Space Grotesk", "Trebuchet MS", "Segoe UI", sans-serif;
  --mono: "Space Mono", "Lucida Console", Monaco, Consolas, monospace;
  --shadow: 8px 8px 0 #1b100b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 4%, rgba(198,91,43,.18), transparent 28%),
    radial-gradient(ellipse at 88% 16%, rgba(154,170,120,.12), transparent 24%),
    linear-gradient(115deg, #2b180f 0%, #321b12 46%, #24130d 100%);
  font-family: var(--body);
  line-height: 1.55;
  min-width: 300px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(213,138,61,.06) 9.1% 9.25%, transparent 9.35% 89%, rgba(154,170,120,.05) 89.1% 89.25%, transparent 89.35%),
    repeating-linear-gradient(0deg, rgba(244,234,216,.025) 0 1px, transparent 1px 5px);
  background-size: 100% 100%, 100% 5px;
  z-index: -2;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .2;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(244,234,216,.16) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(154,170,120,.12) 0 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(244,234,216,.045) 0 1px, transparent 1px 4px);
  background-size: 4px 4px, 7px 7px, 100% 4px;
  mix-blend-mode: screen;
  animation: static-flicker .18s steps(2, end) infinite;
}
::selection { background: var(--lime); color: var(--void); }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
code { font-family: var(--mono); color: var(--lime); font-size: .92em; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--void);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 10px clamp(16px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 10, .96);
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: max-content; }
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  overflow: hidden;
  color: var(--void);
  background: var(--void);
  border: 1px solid var(--line-hot);
  font: 900 20px/1 var(--mono);
  transform: rotate(-3deg);
}
.wordmark-mark img { width: 100%; height: 100%; display: block; object-fit: contain; transform: rotate(3deg) scale(1.12); }
.wordmark b { display: block; font: 900 20px/.95 var(--display); letter-spacing: 1.2px; }
.wordmark small { display: block; color: var(--muted); font: 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .8px; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.primary-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 13px; text-decoration: none; font: 700 12px/1 var(--mono); text-transform: uppercase; color: var(--muted); }
.primary-nav a:hover { color: var(--lime); background: var(--surface-2); }
.primary-nav .nav-member { border: 1px solid var(--coral); color: var(--ink); margin-left: 8px; }
.nav-member span { margin-left: 7px; color: var(--coral); font-size: 9px; }
.nav-toggle { display: none; min-height: 44px; color: var(--ink); background: transparent; border: 1px solid var(--line-hot); font: 700 12px var(--mono); }

.status-wire {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px clamp(16px, 4vw, 64px);
  background: var(--lime);
  color: var(--void);
  font: 11px/1.3 var(--mono);
  text-transform: uppercase;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(10,12,10,.15); animation: pulse 1.8s infinite; }
.status-meta { opacity: .7; }

.page-shell { width: min(1480px, 100%); margin: 0 auto; display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
.profile-column { position: sticky; top: 108px; padding: 28px 18px 48px clamp(16px, 3vw, 44px); max-height: calc(100vh - 108px); overflow-y: auto; scrollbar-color: var(--line-hot) transparent; }
.content-column { min-width: 0; border-left: 1px solid var(--line); }
.panel { margin-bottom: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: 5px 5px 0 #24150e; }
.profile-art { height: 220px; position: relative; overflow: hidden; background: var(--void); color: var(--ink); isolation: isolate; }
.profile-art::before { content: ""; position: absolute; inset: -18px; background: url("assets/images/filthy-palms-channel.png") center / cover no-repeat; filter: blur(16px); opacity: .55; transform: scale(1.08); }
.profile-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,16,11,.04) 35%, rgba(27,16,11,.68) 100%); pointer-events: none; z-index: 2; }
.profile-art img { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; filter: saturate(.95) contrast(1.06); }
.profile-stamp { position: absolute; right: 12px; bottom: 10px; z-index: 3; padding: 4px 6px; color: var(--ink); background: rgba(27,16,11,.72); text-align: right; font: 900 11px/1.05 var(--mono); letter-spacing: 1px; }
.profile-copy { padding: 19px 20px 16px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--lime); font: 700 10px/1.4 var(--mono); letter-spacing: 1.1px; text-transform: uppercase; }
.profile-copy h1 { margin: 0; font: 900 clamp(54px, 5vw, 76px)/.78 var(--display); letter-spacing: -1px; text-transform: uppercase; }
.dek { color: var(--muted); margin: 18px 0 0; font-size: 14px; }
.dek strong { color: var(--ink); }
.profile-facts { margin: 0; padding: 4px 20px; }
.profile-facts div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--line-hot); }
.profile-facts div:last-child { border-bottom: 0; }
.profile-facts dt { color: var(--dim); font: 10px var(--mono); text-transform: uppercase; }
.profile-facts dd { margin: 0; font-size: 12px; }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 15px; background: var(--surface-2); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border: 1px solid var(--line-hot); border-radius: 2px; text-decoration: none; color: var(--ink); background: transparent; font: 800 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .3px; cursor: pointer; transition: transform 130ms ease, background 130ms ease, color 130ms ease; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--void); }
.button-primary { background: var(--lime); border-color: var(--lime); color: var(--void); }
.button-quiet:hover { border-color: var(--lime); color: var(--lime); }
.button-coral { color: var(--void); background: var(--coral); border-color: var(--coral); }
.panel-title { min-height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 8px 11px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.panel-title h2 { margin: 0; font: 700 11px var(--mono); text-transform: uppercase; }
.panel-title span { color: var(--dim); font: 9px var(--mono); }
.link-list { margin: 0; padding: 0; list-style: none; }
.link-list a { display: grid; grid-template-columns: 24px 1fr; padding: 10px 12px; text-decoration: none; border-bottom: 1px solid var(--line); }
.link-list li:last-child a { border-bottom: 0; }
.link-list a:hover { background: var(--lime); color: var(--void); }
.link-list b { color: var(--coral); font: 10px var(--mono); }
.link-list a:hover b { color: var(--void); }
.link-list span { font-size: 12px; font-weight: 700; }
.link-list small { grid-column: 2; color: var(--dim); font: 9px var(--mono); text-transform: uppercase; }
.link-list a:hover small { color: #2b180f; }
.switch-row { min-height: 60px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; cursor: pointer; }
.switch-row b, .switch-row small { display: block; }
.switch-row b { font-size: 12px; }
.switch-row small { color: var(--dim); font: 9px var(--mono); }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 42px; height: 24px; position: relative; border: 1px solid var(--line-hot); background: var(--void); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--dim); transition: transform 160ms, background 160ms; }
.switch-row input:checked + .switch::after { transform: translateX(18px); background: var(--lime); }
.switch-row input:focus-visible + .switch { outline: 3px solid var(--focus); outline-offset: 4px; }

.section-block { padding: clamp(38px, 6vw, 76px) clamp(18px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font: 900 clamp(38px, 6vw, 72px)/.88 var(--display); text-transform: uppercase; letter-spacing: -.5px; }
.section-aside { max-width: 330px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.signal-badge, .gate-status { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px; border: 1px solid var(--line-hot); color: var(--muted); font: 700 10px var(--mono); }
.signal-badge i { width: 7px; height: 7px; background: var(--amber); border-radius: 50%; }
.broadcast-frame { border: 1px solid var(--line-hot); background: var(--void); box-shadow: var(--shadow); }
.broadcast-bar { min-height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--line-hot); color: var(--muted); font: 9px var(--mono); }
.live-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(270px, 1fr); min-height: 510px; }
.stage { min-width: 0; position: relative; display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--line-hot); background: #1b100b; }
.stage::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(154,170,120,.055) 4px 5px); pointer-events: none; }
.stage-placeholder { position: relative; z-index: 1; width: min(540px, 88%); padding: 28px; text-align: center; }
.signal-orbit { width: 142px; aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 30px; border: 1px solid var(--lime); border-radius: 50%; animation: orbit 12s linear infinite; }
.signal-orbit::before, .signal-orbit::after { content: ""; position: absolute; border: 1px dotted var(--line-hot); border-radius: 50%; }
.signal-orbit::before { width: 105px; height: 105px; }
.signal-orbit::after { width: 180px; height: 180px; }
.signal-orbit span { display: grid; place-items: center; width: 74px; aspect-ratio: 1; color: var(--void); background: var(--lime); border-radius: 50%; font: 900 30px var(--display); transform: rotate(-6deg); }
.kicker { color: var(--coral); font: 700 10px var(--mono); letter-spacing: 1px; }
.stage h3 { margin: 6px 0 8px; font: 900 clamp(28px, 4vw, 52px)/.95 var(--display); text-transform: uppercase; }
.stage-placeholder > p:not(.kicker):not(.stage-note) { color: var(--muted); }
.stage-note { max-width: 450px; margin: 22px auto 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; }
.provider-frame { width: 100%; height: 100%; min-height: 480px; border: 0; }
.chat-pane { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 13px; border-bottom: 1px solid var(--line); }
.chat-head h3 { margin: 0; font: 700 11px var(--mono); text-transform: uppercase; }
.chat-head span { color: var(--coral); font: 9px var(--mono); }
.chat-log { padding: 14px; overflow: auto; }
.chat-log p { margin: 0 0 15px; font-size: 12px; overflow-wrap: anywhere; }
.chat-log b { margin-right: 5px; font: 700 10px var(--mono); }
.user-lime { color: var(--lime); }.user-coral { color: var(--coral); }.user-amber { color: var(--amber); }
.system-message { color: var(--dim); font-style: italic; }
.chat-disabled { padding: 12px; border-top: 1px solid var(--line); }
.chat-disabled label { display: block; margin-bottom: 6px; color: var(--dim); font: 9px var(--mono); text-transform: uppercase; }
.chat-disabled div { display: grid; grid-template-columns: 1fr auto; }
.chat-disabled input, .chat-disabled button { min-height: 40px; border: 1px solid var(--line); color: var(--dim); background: var(--void); }
.chat-disabled input { width: 100%; padding: 8px; border-right: 0; font-size: 10px; }
.chat-disabled button { padding: 0 10px; font: 9px var(--mono); }

.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.archive-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.archive-open { width: 100%; height: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.archive-open:hover .tape-visual { filter: brightness(1.12); }
.archive-open:hover .play-disc { transform: scale(1.08) rotate(4deg); }
.tape-visual { aspect-ratio: 16 / 10; position: relative; display: block; overflow: hidden; padding: 15px; background: #4b2b1b; border-bottom: 1px solid var(--line); transition: filter 140ms; }
.tape-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,.06) 46%, transparent 49%); }
.tape-grid { position: absolute; inset: 0; opacity: .3; background: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 16px 16px; }
.accent-lime { --card-accent: var(--lime); }.accent-coral { --card-accent: var(--coral); }.accent-amber { --card-accent: var(--amber); }
.accent-lime .tape-visual { color: var(--lime); }.accent-coral .tape-visual { color: var(--coral); }.accent-amber .tape-visual { color: var(--amber); }
.tape-visual b, .tape-visual em { position: relative; z-index: 1; display: block; }
.tape-visual b { font: 800 10px var(--mono); }
.tape-visual em { margin-top: 4px; color: var(--muted); font: normal 8px var(--mono); }
.play-disc { position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 58px; aspect-ratio: 1; display: grid; place-items: center; color: var(--void); background: var(--card-accent, var(--lime)); border-radius: 50%; box-shadow: 0 0 0 8px rgba(0,0,0,.28); transition: transform 140ms; }
.archive-info { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding: 14px 14px 8px; }
.archive-info small, .archive-info strong { display: block; }
.archive-info small { color: var(--dim); font: 8px var(--mono); text-transform: uppercase; }
.archive-info strong { margin-top: 3px; font-size: 14px; }
.runtime { flex: 0 0 auto; padding: 3px 5px; color: var(--lime); background: var(--void); font: 8px var(--mono); }
.archive-description { display: block; padding: 0 14px 16px; color: var(--muted); font-size: 11px; }

.social-feed { display: grid; gap: 14px; }
.social-empty { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; padding: 28px; border: 1px dashed var(--line-hot); background: rgba(59,34,22,.82); }
.social-empty-mark { display: grid; place-items: center; width: 100px; aspect-ratio: 1; color: var(--void); background: var(--lime); font: 900 30px var(--display); transform: rotate(-4deg); }
.social-empty h3 { margin: 0; font: 900 30px/1 var(--display); text-transform: uppercase; }
.social-empty p:last-child { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.social-card { padding: 20px; border: 1px solid var(--line); background: rgba(59,34,22,.9); }
.social-card-head { display: flex; justify-content: space-between; gap: 16px; color: var(--lime); font: 10px var(--mono); text-transform: uppercase; }
.social-card time { color: var(--dim); }
.social-card h3 { margin: 16px 0 8px; font: 900 28px/1 var(--display); text-transform: uppercase; }
.social-card p { max-width: 760px; color: var(--muted); }
.social-link { color: var(--amber); font: 11px var(--mono); text-transform: uppercase; }

.project-stack { border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 75px 1fr auto; gap: 24px; align-items: center; min-height: 170px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.project-index { align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--dim); font: 12px var(--mono); }
.project-row h3 { margin: 0; font: 900 clamp(30px, 4vw, 48px)/1 var(--display); text-transform: uppercase; }
.project-row p:last-child { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.project-tag { padding: 7px 9px; border: 1px solid currentColor; font: 9px var(--mono); }
.project-snack .project-tag { color: var(--coral); }.project-scrap .project-tag { color: var(--amber); }.project-after .project-tag { color: var(--lime); }

.member-zone { position: relative; padding-top: calc(clamp(38px, 6vw, 76px) + 26px); background: #2b180f; overflow: hidden; }
.demo-ribbon { position: absolute; inset: 0 0 auto; padding: 8px; color: var(--void); background: repeating-linear-gradient(135deg, var(--coral) 0 16px, #d97a46 16px 32px); text-align: center; font: 900 10px var(--mono); letter-spacing: .5px; }
.member-inner { position: relative; }
.gate-status { border-color: var(--coral); color: var(--coral); }
.gate-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.large-copy { font-size: clamp(18px, 2vw, 24px); line-height: 1.4; }
.gate-promises { padding-left: 18px; color: var(--muted); font-size: 13px; }
.gate-promises li { margin: 8px 0; }
.fine-print { color: var(--dim); font-size: 10px; }
.gated-content { min-height: 310px; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 24px; padding: 32px; border: 1px dashed var(--coral); background: var(--void); }
.lock-plate { width: 116px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 2px; color: var(--void); background: var(--coral); transform: rotate(-3deg); }
.lock-plate span { font: 900 38px var(--display); }.lock-plate b { font: 900 9px var(--mono); }
.gated-content h3 { margin: 0; font: 900 36px/1 var(--display); text-transform: uppercase; }
.gated-content.is-unlocked { border-style: solid; border-color: var(--lime); }
.gated-content.is-unlocked .lock-plate { background: var(--lime); }
.member-tape { margin-top: 18px; padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.member-tape span { color: var(--lime); font: 800 9px var(--mono); }
.member-tape p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.realm-section { background: var(--lime); color: var(--void); }
.realm-grid { display: grid; grid-template-columns: .75fr 1.2fr .7fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.realm-number { font: 900 clamp(110px, 16vw, 240px)/.7 var(--display); letter-spacing: -8px; writing-mode: vertical-rl; transform: rotate(180deg); opacity: .13; }
.realm-copy .eyebrow { color: var(--void); opacity: .7; }
.realm-copy h2 { margin: 0; font: 900 clamp(60px, 10vw, 130px)/.76 var(--display); text-transform: uppercase; letter-spacing: -3px; }
.realm-copy p:last-child { max-width: 650px; }
.realm-manifesto { border: 2px solid var(--void); }
.realm-manifesto p { margin: 0; padding: 14px; border-bottom: 2px solid var(--void); font: 900 clamp(18px, 2.5vw, 30px)/1 var(--display); }
.realm-manifesto p:last-child { border-bottom: 0; background: var(--void); color: var(--lime); }

.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 32px clamp(16px, 4vw, 64px); color: var(--muted); background: var(--void); font-size: 11px; }
.site-footer p { margin: 0; }.site-footer a:hover { color: var(--lime); }
.player-dialog { width: min(960px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line-hot); color: var(--ink); background: var(--surface); box-shadow: 14px 14px 0 var(--void); }
.player-dialog::backdrop { background: rgba(5,6,5,.88); backdrop-filter: blur(3px); }
.dialog-shell { display: grid; max-height: calc(100vh - 26px); }
.dialog-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font: 900 32px/1 var(--display); text-transform: uppercase; }
.icon-button { min-width: 44px; min-height: 44px; border: 1px solid var(--line-hot); color: var(--ink); background: var(--void); font-size: 28px; cursor: pointer; }
.icon-button:hover { color: var(--void); background: var(--coral); }
.player-mount { min-height: 320px; display: grid; place-items: center; background: #000; overflow: hidden; }
.player-mount video { display: block; width: 100%; max-height: calc(100vh - 190px); background: #000; }
.unconfigured-player { max-width: 480px; padding: 40px; text-align: center; }
.unconfigured-player b { color: var(--coral); font: 900 24px var(--display); }
.unconfigured-player p { color: var(--muted); font-size: 12px; }
.dialog-meta { display: flex; justify-content: space-between; gap: 24px; padding: 14px 18px; color: var(--muted); font-size: 11px; }
.dialog-meta p { margin: 0; }.dialog-meta span { color: var(--lime); font: 10px var(--mono); }
.noscript { margin: 0; padding: 12px; color: var(--void); background: var(--coral); text-align: center; }

@keyframes static-flicker { 0% { transform: translate(0, 0); opacity: .16; } 25% { transform: translate(-1%, .5%); opacity: .22; } 50% { transform: translate(.5%, -1%); opacity: .18; } 75% { transform: translate(1%, .5%); opacity: .21; } 100% { transform: translate(0, 0); opacity: .16; } }
@keyframes pulse { 50% { transform: scale(.6); opacity: .55; } }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .page-shell { grid-template-columns: 270px minmax(0, 1fr); }
  .profile-column { padding-left: 16px; }
  .live-layout { grid-template-columns: 1fr; }
  .stage { min-height: 460px; border-right: 0; border-bottom: 1px solid var(--line-hot); }
  .chat-pane { min-height: 310px; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-card:first-child { grid-column: 1 / -1; }
  .archive-card:first-child .tape-visual { aspect-ratio: 21 / 8; }
  .realm-grid { grid-template-columns: .45fr 1.2fr; }
  .realm-manifesto { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); }
  .realm-manifesto p { border-right: 2px solid var(--void); border-bottom: 0; }
  .realm-manifesto p:last-child { border-right: 0; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 74px; }
  .site-header { min-height: 64px; padding: 8px 14px; }
  .wordmark-mark { width: 40px; }.wordmark b { font-size: 17px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 0 12px; }
  .primary-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0; padding: 10px; background: var(--void); border-bottom: 1px solid var(--line-hot); box-shadow: 0 12px 30px rgba(0,0,0,.55); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { justify-content: space-between; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-member { margin: 4px 0 0; }
  .status-wire { grid-template-columns: auto auto 1fr; padding: 7px 14px; }
  .status-meta { display: none; }
  .page-shell { display: block; }
  .profile-column { position: static; max-height: none; overflow: visible; padding: 18px 14px 0; }
  .profile-card { display: grid; grid-template-columns: 210px 1fr; }
  .profile-art { height: 100%; min-height: 260px; grid-row: 1 / 3; }
  .profile-copy h1 { font-size: 56px; }
  .profile-facts { align-self: start; }
  .profile-actions { grid-column: 1 / -1; }
  .contact-panel, .preferences-panel { display: none; }
  .content-column { border-left: 0; }
  .section-block { padding: 48px 18px; }
  .project-row { grid-template-columns: 54px 1fr; }
  .project-tag { grid-column: 2; justify-self: start; }
  .gate-layout { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 580px) {
  .status-wire b { display: none; }
  .status-wire { grid-template-columns: auto 1fr; }
  .profile-card { display: block; }
  .profile-art { height: 230px; min-height: 230px; }
  .profile-copy h1 { font-size: 64px; }
  .section-heading { display: block; }
  .section-heading > :last-child:not(:first-child) { margin-top: 14px; }
  .section-aside { text-align: left; }
  .stage { min-height: 420px; }
  .stage-placeholder { padding: 18px 8px; }
  .signal-orbit { width: 104px; margin-bottom: 22px; }
  .signal-orbit::before { width: 78px; height: 78px; }.signal-orbit::after { width: 132px; height: 132px; }
  .signal-orbit span { width: 58px; font-size: 25px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card:first-child { grid-column: auto; }
  .archive-card:first-child .tape-visual, .tape-visual { aspect-ratio: 16 / 10; }
  .social-empty { grid-template-columns: 1fr; }
  .social-empty-mark { width: 78px; }
  .social-empty h3 { font-size: 25px; }
  .project-row { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .project-index { display: block; border: 0; }
  .project-tag { grid-column: auto; }
  .gated-content { grid-template-columns: 1fr; padding: 24px; }
  .lock-plate { width: 90px; }
  .realm-grid { grid-template-columns: 1fr; }
  .realm-number { display: none; }
  .realm-manifesto { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .realm-manifesto p { border-right: 2px solid var(--void); border-bottom: 2px solid var(--void); }
  .realm-manifesto p:nth-child(2) { border-right: 0; }
  .realm-manifesto p:nth-child(3) { border-bottom: 0; }
  .dialog-meta { display: block; }
  .dialog-meta span { display: block; margin-top: 8px; }
  .player-mount { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
html[data-motion="reduced"] { scroll-behavior: auto; }
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
