/*
  BitcoinNI V5 Immersive Portal
  Static HTML/CSS/JS. No frameworks. No tracking.
  Replace GitHub placeholder links before publishing.
*/

:root {
  --bg: #030303;
  --bg-2: #080705;
  --bg-3: #11100d;
  --panel: rgba(14, 13, 11, 0.74);
  --panel-solid: #11100d;
  --panel-strong: rgba(20, 18, 15, 0.92);
  --text: #f8f2e9;
  --muted: #c2b6a8;
  --muted-2: #8c8277;
  --orange: #f7931a;
  --orange-soft: rgba(247, 147, 26, 0.22);
  --orange-line: rgba(247, 147, 26, 0.34);
  --gold: #ffd08a;
  --gold-2: #ffb34d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
  --radius: 30px;
  --radius-sm: 18px;
  --container: 1180px;
  --header-height: 78px;
  --scroll-progress: 0;
  --scene-rotate-x: 57deg;
  --scene-rotate-y: -18deg;
  --coin-spin: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 22% -10%, rgba(247, 147, 26, 0.24), transparent 34rem),
    radial-gradient(circle at 82% 2%, rgba(255, 191, 117, 0.1), transparent 30rem),
    linear-gradient(180deg, #030303 0%, #080706 36%, #030303 100%);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, #000, transparent 76%);
  z-index: -7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

::selection {
  background: rgba(247, 147, 26, 0.35);
  color: var(--text);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: #160f06;
  font-weight: 900;
}

.skip-link:focus { transform: translateY(0); }

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.55;
  z-index: -5;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  z-index: -4;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.45) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.3) 0 1px, transparent 1px),
    radial-gradient(circle at 50% 90%, rgba(255,255,255,0.22) 0 1px, transparent 1px);
  background-size: 120px 120px, 170px 170px, 220px 220px;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -6;
  transition: transform 0.35s ease-out;
}

.orb-one {
  width: 42rem;
  height: 42rem;
  top: -20rem;
  right: -14rem;
  background: rgba(247, 147, 26, 0.14);
  transform: translate3d(calc(var(--scroll-progress) * -18px), calc(var(--scroll-progress) * 44px), 0);
}

.orb-two {
  width: 34rem;
  height: 34rem;
  bottom: 10rem;
  left: -18rem;
  background: rgba(255, 180, 76, 0.08);
  transform: translate3d(calc(var(--scroll-progress) * 24px), calc(var(--scroll-progress) * -28px), 0);
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  width: min(calc(100% - 28px), var(--container));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.38);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(0,0,0,0.24);
  z-index: 1000;
  transition: 0.28s ease;
}

.site-header.is-scrolled {
  top: 8px;
  background: rgba(5, 5, 5, 0.78);
  border-color: rgba(247,147,26,0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-left: 4px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 18%, #ffe1a5, var(--orange) 43%, #b65d08 100%);
  color: #17100a;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(247, 147, 26, 0.35);
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  color: var(--muted-2);
  font-size: 0.72rem;
  margin-top: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  padding: 11px 13px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.site-nav .nav-cta {
  color: #17100a;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 10px 28px rgba(247,147,26,0.2);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

main {
  position: relative;
  z-index: 1;
}

.hero,
.section,
.scroll-story,
.site-footer {
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
}

.hero {
  min-height: 100vh;
  padding: 136px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 6vw, 80px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 900;
  margin: 0 0 18px;
}

.eyebrow span {
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.9rem);
  line-height: 0.86;
  letter-spacing: -0.085em;
  max-width: 760px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

p {
  color: var(--muted);
  line-height: 1.76;
}

.hero-subtitle {
  margin: 24px 0 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  max-width: 670px;
}

.hero-text {
  max-width: 650px;
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: -80% -30%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.26), transparent);
  transform: translateX(-75%) rotate(10deg);
  transition: transform 0.7s ease;
}

.button:hover::after { transform: translateX(75%) rotate(10deg); }
.button:hover { transform: translateY(-2px); }

.button-primary {
  background: linear-gradient(135deg, var(--gold), var(--orange) 62%, #d5710c);
  color: #161009;
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 18px 50px rgba(247, 147, 26, 0.28);
}

.button-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--text);
}

.button-ghost {
  background: transparent;
  color: var(--muted);
}

.button.large {
  min-width: 210px;
  min-height: 58px;
}

.live-strip {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  color: var(--muted-2);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.live-strip span {
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
}

.experience {
  min-height: min(72vw, 690px);
  perspective: 1200px;
}

.stage-shell {
  position: sticky;
  top: 110px;
  min-height: min(72vw, 640px);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 24%, rgba(247,147,26,0.24), transparent 22rem),
    radial-gradient(circle at 50% 100%, rgba(255,255,255,0.08), transparent 18rem),
    rgba(6,6,5,0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--scene-rotate-x) - var(--scroll-progress) * 3deg)) rotateY(calc(var(--scene-rotate-y) + var(--scroll-progress) * 5deg));
  transition: transform 0.18s ease-out;
  isolation: isolate;
}

.stage-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 30%, transparent 68%, rgba(247,147,26,0.13));
  opacity: 0.75;
  z-index: 8;
  pointer-events: none;
}

.stage-shell::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 4%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(247,147,26,0.28), transparent 70%);
  filter: blur(18px);
  transform: translateZ(-70px) rotateX(78deg);
  z-index: 0;
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247,147,26,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,147,26,0.12) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: translateZ(-140px) rotateX(70deg) scale(1.6) translateY(26%);
  transform-origin: center bottom;
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, transparent 100%);
}

.ni-outline {
  position: absolute;
  inset: 12% 7% 28%;
  border: 2px solid rgba(247,147,26,0.78);
  border-radius: 42% 54% 47% 60% / 48% 52% 55% 43%;
  clip-path: polygon(20% 24%, 34% 10%, 52% 14%, 62% 5%, 78% 19%, 73% 37%, 92% 43%, 75% 55%, 84% 75%, 61% 71%, 47% 88%, 36% 70%, 13% 78%, 23% 55%, 6% 45%);
  background:
    radial-gradient(circle at 50% 50%, rgba(247,147,26,0.15), transparent 58%),
    rgba(255,255,255,0.018);
  box-shadow: inset 0 0 34px rgba(247,147,26,0.14), 0 0 32px rgba(247,147,26,0.22);
  transform: translateZ(22px) scale(calc(1 + var(--scroll-progress) * 0.02));
  animation: mapPulse 5s ease-in-out infinite;
}

@keyframes mapPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(247,147,26,0.2)); }
  50% { filter: drop-shadow(0 0 26px rgba(247,147,26,0.48)); }
}

.cityhall-card {
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 12%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  overflow: hidden;
  transform: translateZ(58px) rotateX(-4deg) scale(0.94);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

.cityhall-card img {
  width: 100%;
  aspect-ratio: 1 / 0.58;
  object-fit: cover;
  object-position: center 34%;
  opacity: 0.88;
  filter: saturate(1.05) contrast(1.05);
}

.coin-wrap {
  position: absolute;
  left: 50%;
  top: 41%;
  width: clamp(124px, 19vw, 210px);
  height: clamp(124px, 19vw, 210px);
  transform-style: preserve-3d;
  transform: translate3d(-50%, -50%, 140px) rotateX(-9deg);
  z-index: 6;
}

.coin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(var(--coin-spin));
}

.coin-spin {
  animation: coinRotate 10s linear infinite;
}

@keyframes coinRotate {
  to { transform: rotateY(calc(var(--coin-spin) + 360deg)); }
}

.coin-face,
.coin-edge {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.coin-face {
  display: grid;
  place-items: center;
  border: 5px solid rgba(255,232,165,0.72);
  background:
    radial-gradient(circle at 30% 18%, #fff0b7, #ffb242 28%, #f7931a 58%, #ab590a 100%);
  color: #221407;
  font-size: clamp(4.2rem, 10vw, 8rem);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(255,255,255,0.2);
  box-shadow: inset 0 -16px 30px rgba(83,39,0,0.34), 0 0 38px rgba(247,147,26,0.66);
  backface-visibility: hidden;
}

.coin-front { transform: translateZ(16px); }
.coin-back { transform: rotateY(180deg) translateZ(16px); }

.coin-edge {
  inset: -2px;
  background: repeating-conic-gradient(from 0deg, #f7931a 0 8deg, #a75205 8deg 14deg, #ffca74 14deg 20deg);
  transform: translateZ(0) scale(1.02);
  filter: blur(0.2px);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid rgba(247,147,26,0.24);
  border-radius: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) translateZ(92px) rotateX(72deg) rotateZ(18deg);
  animation: orbitSpin 18s linear infinite;
  z-index: 4;
}

.orbit-b {
  width: 56%;
  transform: translate(-50%, -50%) translateZ(108px) rotateX(68deg) rotateZ(-28deg);
  animation-duration: 13s;
  animation-direction: reverse;
  border-color: rgba(255,255,255,0.12);
}

.orbit i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(247,147,26,0.9);
}

.orbit i:nth-child(1) { left: 50%; top: -5px; }
.orbit i:nth-child(2) { right: 8%; top: 68%; }
.orbit i:nth-child(3) { left: 10%; top: 70%; }

@keyframes orbitSpin { to { rotate: 360deg; } }

.signal-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px;
  background: rgba(8,8,7,0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.34);
  transform: translateZ(155px);
  z-index: 9;
}

.signal-pill strong {
  color: var(--orange);
  font-size: 1.05rem;
}

.signal-pill span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.signal-one { top: 10%; left: 8%; }
.signal-two { right: 7%; top: 18%; }
.signal-three { left: 13%; bottom: 12%; }

.scroll-story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -28px;
  padding-bottom: 54px;
}

.story-card {
  position: relative;
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), transparent),
    rgba(12,11,9,0.75);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -28% 18%;
  height: 180px;
  background: radial-gradient(circle, rgba(247,147,26,0.18), transparent 70%);
}

.story-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #17100a;
  background: var(--orange);
  font-weight: 950;
  margin-bottom: 22px;
}

.story-card h2 {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.story-card p {
  margin-bottom: 0;
}

.section {
  padding: 92px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.section-top > p {
  margin: 0;
}

.glass-panel,
.telegram-card,
.disclaimer-card,
.contribute-shell,
.map-experience,
.event-card,
.info-card,
.resource-card,
.terminal-card {
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.075), transparent 36%),
    rgba(13,12,10,0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.glass-panel {
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius);
}

.glass-panel p:first-child {
  color: var(--text);
  font-size: 1.16rem;
  margin-top: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.metric-grid div {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  background: rgba(0,0,0,0.23);
}

.metric-grid strong {
  display: block;
  color: var(--orange);
  margin-bottom: 8px;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.telegram-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 38px;
  overflow: hidden;
}

.telegram-card::before {
  content: "";
  position: absolute;
  inset: -20% 42% -40% -10%;
  background: radial-gradient(circle, rgba(247,147,26,0.25), transparent 68%);
  pointer-events: none;
}

.telegram-card h2,
.telegram-card p {
  position: relative;
}

.telegram-card p:last-child {
  max-width: 760px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-card {
  position: relative;
  min-height: 255px;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  transform-style: preserve-3d;
}

.info-card::before,
.resource-card::before,
.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 24%), rgba(247,147,26,0.24), transparent 42%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.info-card:hover::before,
.resource-card:hover::before,
.event-card:hover::before {
  opacity: 1;
}

.info-card:hover,
.resource-card:hover,
.event-card:hover {
  border-color: rgba(247,147,26,0.35);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 18px;
  color: #17100a;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-size: 1.32rem;
  font-weight: 950;
  box-shadow: 0 14px 38px rgba(247,147,26,0.24);
}

.info-card p {
  margin-bottom: 0;
}

.span-card {
  grid-column: span 3;
  min-height: 180px;
}

.meetup-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
}

.event-card {
  position: relative;
  padding: 26px;
  border-radius: 24px;
  overflow: hidden;
}

.primary-event {
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 0, rgba(247,147,26,0.22), transparent 56%),
    rgba(14,13,11,0.82);
}

.event-stack {
  display: grid;
  gap: 16px;
}

.tag {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(247,147,26,0.27);
  background: rgba(247,147,26,0.09);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.event-meta {
  color: var(--gold);
  font-weight: 850;
}

.event-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--orange);
  font-weight: 900;
}

.map-experience {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 18px;
  padding: 16px;
  border-radius: 38px;
}

.map-3d-card {
  position: relative;
  min-height: 520px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 40% 28%, rgba(247,147,26,0.18), transparent 42%),
    #080706;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.map-glow {
  position: absolute;
  inset: 20% 10% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,147,26,0.22), transparent 68%);
  filter: blur(18px);
}

.map-title-row {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.map-title-row span {
  color: var(--text);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.map-title-row a {
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 900;
}

.ni-local-map {
  position: relative;
  z-index: 2;
  height: 430px;
  border: 1px solid rgba(247,147,26,0.24);
  border-radius: 28px;
  background:
    linear-gradient(rgba(247,147,26,0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,147,26,0.11) 1px, transparent 1px),
    radial-gradient(circle at 48% 44%, rgba(247,147,26,0.16), transparent 42%),
    rgba(0,0,0,0.25);
  background-size: 42px 42px, 42px 42px, auto, auto;
  overflow: hidden;
  transform: rotateX(10deg) rotateY(-6deg) translateZ(16px);
  box-shadow: inset 0 0 40px rgba(247,147,26,0.08), 0 35px 70px rgba(0,0,0,0.35);
}

.ni-local-map::before {
  content: "";
  position: absolute;
  inset: 10% 16% 9% 17%;
  clip-path: polygon(24% 18%, 42% 7%, 58% 13%, 70% 8%, 82% 25%, 76% 44%, 92% 53%, 73% 60%, 78% 78%, 60% 74%, 48% 90%, 36% 74%, 15% 82%, 22% 59%, 6% 48%, 20% 36%);
  border: 2px solid rgba(247,147,26,0.78);
  background:
    radial-gradient(circle at 48% 52%, rgba(247,147,26,0.2), transparent 70%),
    rgba(247,147,26,0.035);
  box-shadow: 0 0 26px rgba(247,147,26,0.32), inset 0 0 42px rgba(247,147,26,0.08);
}

.pin {
  position: absolute;
  z-index: 3;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(7,7,6,0.72);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3), 0 0 22px rgba(247,147,26,0.22);
  transition: transform 0.18s ease, background 0.18s ease;
}

.pin::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(247,147,26,0.88);
}

.pin:hover,
.pin.is-active {
  transform: translateY(-3px) scale(1.05);
  background: rgba(247,147,26,0.24);
}

.pin-belfast { left: 58%; top: 54%; }
.pin-derry { left: 24%; top: 24%; }
.pin-lisburn { left: 48%; top: 61%; }
.pin-newry { left: 52%; top: 78%; }
.pin-bangor { left: 72%; top: 49%; }

.map-route {
  position: absolute;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(247,147,26,0.74), transparent);
  transform-origin: left center;
  opacity: 0.7;
  filter: drop-shadow(0 0 8px rgba(247,147,26,0.44));
}

.route-one { left: 29%; top: 32%; width: 43%; rotate: 25deg; }
.route-two { left: 50%; top: 62%; width: 28%; rotate: -26deg; }

.map-location-readout {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(0,0,0,0.42);
  color: var(--muted);
  font-weight: 800;
}

.orange-iframe-panel {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  overflow: hidden;
  background: #070706;
}

.orange-iframe-panel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.02) contrast(1.05);
  background: #070706;
}

.iframe-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.iframe-fallback {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  background: rgba(6,6,5,0.78);
  backdrop-filter: blur(16px);
}

.iframe-fallback strong { display: block; color: var(--text); margin-bottom: 6px; }
.iframe-fallback p { margin: 0 0 10px; font-size: 0.92rem; }
.iframe-fallback a { color: var(--orange); font-weight: 900; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.resource-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
}

.resource-card span {
  color: var(--orange);
  font-weight: 950;
  letter-spacing: 0.12em;
}

.resource-card h3 {
  margin-top: 28px;
}

.contribute-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.72fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 38px;
}

.contribute-shell > div:first-child p:last-child {
  max-width: 740px;
}

.terminal-card {
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(247,147,26,0.1), transparent),
    #060605;
}

.terminal-card pre {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid rgba(247,147,26,0.16);
  border-radius: 18px;
  overflow-x: auto;
  color: var(--gold);
  background: rgba(0,0,0,0.36);
}

.terminal-card code {
  font: 850 0.92rem/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.disclaimer-card {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 38px;
  border-color: rgba(247,147,26,0.28);
  background:
    radial-gradient(circle at 0 0, rgba(247,147,26,0.18), transparent 36%),
    rgba(14,13,11,0.78);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 104px;
  border-top: 1px solid rgba(255,255,255,0.09);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 850;
  font-size: 0.9rem;
}

.mobile-telegram {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 999;
  display: none;
  min-height: 54px;
  place-items: center;
  border-radius: 999px;
  color: #17100a;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-weight: 950;
  box-shadow: 0 18px 44px rgba(247,147,26,0.34);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.26s; }

@media (max-width: 1100px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }
  .experience { min-height: 640px; }
  .stage-shell { min-height: 620px; }
  .scroll-story,
  .card-grid,
  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }
  .span-card { grid-column: span 2; }
  .map-experience { grid-template-columns: 1fr; }
  .orange-iframe-panel { min-height: 430px; }
}

@media (max-width: 840px) {
  .site-header {
    border-radius: 28px;
    align-items: flex-start;
    padding: 9px;
  }

  .brand { padding-top: 2px; }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 26px;
    background: rgba(5,5,5,0.9);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.22s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a,
  .site-nav a:not(.nav-cta) {
    display: block;
    padding: 13px 14px;
  }

  .hero,
  .section,
  .scroll-story,
  .site-footer {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero {
    padding-top: 118px;
    padding-bottom: 46px;
  }

  .hero-actions,
  .live-strip {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .experience,
  .stage-shell {
    min-height: 560px;
  }

  .stage-shell {
    top: 96px;
    transform: none;
  }

  .coin-wrap {
    width: 154px;
    height: 154px;
  }

  .signal-pill {
    transform: none;
  }

  .signal-one { top: 8%; left: 6%; }
  .signal-two { top: 8%; right: 6%; }
  .signal-three { left: 7%; bottom: 7%; }

  .scroll-story,
  .split,
  .section-top,
  .meetup-layout,
  .contribute-shell {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .resource-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .span-card { grid-column: auto; }

  .telegram-card {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .map-3d-card,
  .orange-iframe-panel {
    min-height: 430px;
  }

  .ni-local-map { height: 340px; }

  .pin {
    font-size: 0;
    width: 32px;
    height: 32px;
    padding: 0;
  }

  .pin::before {
    margin: 0;
    width: 10px;
    height: 10px;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 24px;
  }

  .mobile-telegram {
    display: grid;
  }
}

@media (max-width: 520px) {
  :root { --header-height: 70px; }

  .brand small { display: none; }
  .brand strong { font-size: 0.94rem; }
  .brand-mark { width: 40px; height: 40px; }

  h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
    letter-spacing: -0.08em;
  }

  .hero-subtitle { font-size: 1.35rem; }

  .experience,
  .stage-shell {
    min-height: 510px;
  }

  .cityhall-card {
    left: 6%;
    right: 6%;
    bottom: 17%;
  }

  .signal-pill span { display: none; }

  .map-experience {
    padding: 10px;
    border-radius: 28px;
  }

  .map-3d-card,
  .orange-iframe-panel {
    border-radius: 22px;
  }

  .iframe-fallback {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  #particleCanvas { display: none; }
}

/* Legal pages */
.legal-main {
  width: min(calc(100% - 36px), 920px);
  margin: 0 auto;
  padding: 132px 0 70px;
}

.legal-panel {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 34px;
  padding: clamp(24px, 5vw, 48px);
  background:
    radial-gradient(circle at 0 0, rgba(247,147,26,0.16), transparent 38%),
    rgba(14,13,11,0.78);
  box-shadow: var(--shadow);
}

.legal-panel h1 {
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  line-height: 0.92;
  margin-bottom: 22px;
}

.legal-panel h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 34px;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-panel a {
  color: var(--orange);
  font-weight: 900;
}

.legal-meta {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(247,147,26,0.27);
  border-radius: 999px;
  background: rgba(247,147,26,0.09);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
