/*
  Project DELTΔ static website
  Stylesheet v2
  Focus: clearer wordmark alignment + explicit ideological/origin section.
*/

:root {
  --bg: #050505;
  --bg-soft: #0b0d0e;
  --panel: rgba(12, 16, 18, 0.9);
  --panel-2: rgba(20, 25, 28, 0.88);
  --border: #2a2d30;
  --border-soft: rgba(229, 224, 210, 0.08);
  --text: #f2f2f2;
  --text-soft: #d8d2c4;
  --muted: #9da4a6;
  --red: #c1121f;
  --red-dark: #8b0000;
  --cyan: #1f8ea3;
  --blue: #0b2635;
  --glow-red: rgba(193, 18, 31, 0.25);
  --glow-cyan: rgba(31, 142, 163, 0.18);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Rajdhani", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, rgba(193,18,31,0.18), transparent 28%),
    radial-gradient(circle at 90% 75%, rgba(31,142,163,0.14), transparent 24%),
    linear-gradient(180deg, #050505 0%, #090c0d 40%, #050505 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.site-noise,
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.site-noise {
  opacity: 0.08;
  background-image:
    radial-gradient(rgba(255,255,255,0.4) 0.45px, transparent 0.45px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
}
.grid-overlay {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 90%);
}

.nap-line {
  position: fixed;
  inset: 42vh 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(193,18,31,0.9), transparent);
  z-index: 1;
  pointer-events: none;
}
.nap-line span {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  top: -20px;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(193,18,31,0.28);
  background: rgba(5,5,5,0.8);
  color: var(--red);
  font: 500 0.72rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.18em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(10px);
}
.nav {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-grid;
  place-items: center;
  color: var(--red);
  font-size: 1.5rem;
  text-shadow: 0 0 16px var(--glow-red);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font: 500 0.87rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--red); }

main, .footer, .topbar { position: relative; z-index: 2; }
.section-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}
.hero { padding-top: 76px; padding-bottom: 84px; }
.hero-grid,
.workshop-layout,
.discord-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 760px; }
.eyebrow,
.section-label,
.visual-caption,
.topic span,
.card-number,
.panel-header,
.footer span,
.footer p {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow,
.section-label {
  color: var(--cyan);
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
}
#hero-title {
  margin: 0;
  line-height: 0.92;
}
.project-line {
  display: block;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}
.wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.06em;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.wordmark-text,
.delta-char {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(4.4rem, 12vw, 10rem);
}
.wordmark-text {
  color: var(--text);
  text-shadow: 0 0 26px rgba(255,255,255,0.05);
}
.delta-char {
  color: var(--red);
  line-height: 0.86;
  transform: translateY(-0.02em);
  text-shadow: 0 0 28px var(--glow-red);
}
.hero-kicker {
  margin: 1.2rem 0 0;
  display: inline-block;
  padding: 1rem 0 0.8rem;
  border-top: 2px solid rgba(193,18,31,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-text,
.hero-subtext,
.section-intro,
.signal-block p,
.dossier-card p,
.topic p,
.discord p {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
.hero-text {
  margin: 1.35rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--text-soft);
  max-width: 680px;
}
.hero-subtext {
  margin: 0.9rem 0 0;
  font-size: 1rem;
  color: var(--muted);
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.2rem;
  border: 1px solid transparent;
  text-decoration: none;
  font: 600 0.96rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  color: white;
  background: linear-gradient(180deg, rgba(193,18,31,0.9), rgba(139,0,0,0.92));
  border-color: rgba(193,18,31,0.35);
  box-shadow: 0 0 20px rgba(193,18,31,0.18);
}
.button.primary:hover { box-shadow: 0 0 30px rgba(193,18,31,0.26); }
.button.secondary {
  color: var(--text-soft);
  border-color: rgba(229,224,210,0.18);
  background: rgba(255,255,255,0.02);
}
.button.secondary:hover { border-color: rgba(193,18,31,0.5); color: var(--text); }

.hero-visual { justify-self: stretch; }
.map-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10,12,14,0.94), rgba(14,18,20,0.98));
  border: 1px solid rgba(229,224,210,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(31,142,163,0.08);
  aspect-ratio: 4 / 4.6;
}
.map-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(31,142,163,0.12);
  pointer-events: none;
}
.map-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.05) brightness(0.9);
  opacity: 0.84;
}
.scanline {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(193,18,31,0.9), transparent);
  top: 15%;
  box-shadow: 0 0 18px rgba(193,18,31,0.35);
  animation: scanMove 7s linear infinite;
}
.coordinate,
.visual-caption {
  color: var(--cyan);
  font-size: 0.73rem;
}
.coordinate {
  position: absolute;
  padding: 0.25rem 0.45rem;
  background: rgba(5,5,5,0.6);
  border: 1px solid rgba(31,142,163,0.18);
}
.c1 { top: 1rem; left: 1rem; }
.c2 { right: 1rem; top: 1rem; }
.c3 { left: 1rem; bottom: 1rem; }
.visual-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
}
.pulse {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(193,18,31,0.5);
  background: rgba(193,18,31,0.3);
  box-shadow: 0 0 12px rgba(193,18,31,0.4);
  animation: pulse 2.4s ease-in-out infinite;
}
.p1 { left: 18%; top: 29%; }
.p2 { left: 57%; top: 56%; animation-delay: 0.5s; }
.p3 { left: 74%; top: 18%; animation-delay: 1.1s; }

.signal,
.pillars,
.mapping,
.orientation,
.workshop,
.discord {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.signal-block h2,
.section-heading h2,
.workshop h2,
.discord h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0.04em;
}
.signal-block p,
.section-intro { max-width: 760px; color: var(--text-soft); font-size: 1.05rem; }
.formula {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  margin-top: 1.7rem;
}
.formula span {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(193,18,31,0.16);
  background: rgba(193,18,31,0.05);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.cards.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.dossier-card,
.topic,
.status-panel,
.discord-widget {
  background: linear-gradient(180deg, rgba(11,13,14,0.92), rgba(15,18,20,0.95));
  border: 1px solid var(--border-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.dossier-card,
.topic { padding: 1.15rem 1.15rem 1.2rem; }
.dossier-card:hover,
.topic:hover,
.status-panel:hover,
.discord-widget:hover {
  border-color: rgba(193,18,31,0.25);
}
.card-number {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--red);
  font-size: 0.78rem;
}
.dossier-card h3,
.topic h3 {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
}
.dossier-card p,
.topic p { margin: 0; color: var(--text-soft); }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.topic span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--cyan);
  font-size: 0.72rem;
}
.workshop-layout { align-items: start; }
.status-panel {
  padding: 1rem;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--cyan);
  font-size: 0.75rem;
}
.live-dot {
  color: var(--red);
  position: relative;
}
.live-dot::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(193,18,31,0.45);
}
.status-panel dl { margin: 0; display: grid; gap: 0.7rem; }
.status-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.status-panel dt,
.status-panel dd {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-panel dt { color: var(--muted); }
.status-panel dd { color: var(--text); text-align: right; }
.discord-widget {
  overflow: hidden;
  padding: 0.7rem;
}
.discord-widget iframe {
  width: 100%;
  max-width: 350px;
  height: 500px;
  border: 0;
  display: block;
  margin: 0 auto;
}
.footer {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 44px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-soft);
}
.footer strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}
.footer span,
.footer p {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}
.footer p { margin: 1rem 0 0; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scanMove {
  0% { top: 10%; }
  50% { top: 84%; }
  100% { top: 10%; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.35); opacity: 1; }
}

@media (max-width: 1080px) {
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero-grid,
  .workshop-layout,
  .discord-layout,
  .cards.three { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-shell { padding: 72px 0; }
  .hero { padding-top: 52px; }
  .hide-mobile { display: none; }
  .nap-line span { right: 16px; }
}
@media (max-width: 640px) {
  .nav { min-height: auto; padding: 14px 0; align-items: flex-start; flex-direction: column; }
  .nav-links { gap: 0.65rem 1rem; }
  .section-shell { width: min(var(--container), calc(100% - 22px)); }
  .hero-kicker { letter-spacing: 0.14em; }
  .topic-grid { grid-template-columns: 1fr; }
  .wordmark-text,
  .delta-char { font-size: clamp(4.05rem, 20vw, 6.3rem); }
  .project-line { font-size: clamp(1.95rem, 9vw, 2.8rem); }
  .formula span { width: 100%; }
  .discord-widget iframe { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
