/* toron.day -- horizontal Scandinavian debate salon */

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

:root {
  --bg: #0a0f0d;
  --panel: #141c18;
  --neon: #00ff88;
  --neon-soft: rgba(0, 255, 136, 0.08);
  --cyan: #00d4ff;
  --text: #e0f0e8;
  --muted: #6a8a78;
  --warm: #ff6b35;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  height: 100%;
  overflow: hidden;
}

body { position: relative; }

/* Topbar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  z-index: 100;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(10,15,13,0.95), rgba(10,15,13,0));
  pointer-events: none;
}

.topbar-mark {
  color: var(--neon);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.topbar-meta { color: var(--muted); }

/* Horizontal stage */
.scroll-stage {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.scroll-stage::-webkit-scrollbar { display: none; }

/* Panels */
.panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  padding: clamp(72px, 8vh, 100px) clamp(32px, 6vw, 96px) clamp(56px, 7vh, 90px);
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}

/* Hero panel */
.panel-hero {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.1), transparent 60%);
  animation: glowPulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
}

.kanji-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(180px, 28vw, 460px);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
  text-shadow:
    0 0 40px rgba(0, 255, 136, 0.6),
    0 0 80px rgba(0, 255, 136, 0.3),
    0 0 120px rgba(0, 212, 255, 0.2);
  animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { text-shadow: 0 0 40px rgba(0, 255, 136, 0.6), 0 0 80px rgba(0, 255, 136, 0.3); }
  50% { text-shadow: 0 0 50px rgba(0, 255, 136, 0.8), 0 0 100px rgba(0, 255, 136, 0.4), 0 0 160px rgba(0, 212, 255, 0.3); }
}

.hero-subtitle {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 34px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon);
  margin-top: 12px;
}

.hero-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 32px;
}

.cityline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  color: var(--muted);
  opacity: 0.18;
  pointer-events: none;
}

.scroll-cue,
.scroll-cue-hero {
  position: absolute;
  bottom: 32px;
  right: clamp(32px, 6vw, 96px);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon);
  animation: cueDrift 1.6s ease-in-out infinite;
}

@keyframes cueDrift {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(8px); opacity: 1; }
}

/* Debate panels */
.panel-debate {
  background: var(--panel);
}

.debate-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.thesis,
.antithesis {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vh, 40px) 0;
}

.thesis {
  border-right: none;
}

.antithesis {
  background: rgba(0, 255, 136, 0.04);
  padding-left: clamp(20px, 3vw, 40px);
  padding-right: clamp(20px, 3vw, 40px);
  margin-right: -1 * clamp(32px, 6vw, 96px);
}

.panel-warm .thesis .claim,
.panel-warm .antithesis .claim {
  color: var(--warm);
  text-shadow: 0 0 12px rgba(255, 107, 53, 0.4);
}

.side-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: block;
}

.thesis .side-label { color: var(--neon); }
.antithesis .side-label { color: var(--cyan); }

.topic {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.thesis .topic {
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}

.argument {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 540px;
}

.claim {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.04em;
  color: var(--neon);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.antithesis .claim {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* VS divider */
.vs-divider {
  position: relative;
  width: 1px;
  height: 60vh;
  background: linear-gradient(180deg, transparent, var(--neon), transparent);
  align-self: center;
  animation: vsPulse 2s ease-in-out infinite;
}

@keyframes vsPulse {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 8px rgba(0, 255, 136, 0.3); }
  50% { opacity: 1; box-shadow: 0 0 18px rgba(0, 255, 136, 0.7); }
}

.vs-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  background: var(--panel);
  color: var(--neon);
  padding: 6px 14px;
  border: 1px solid var(--neon);
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
}

/* Footnote and arrows */
.panel-footnote {
  position: absolute;
  bottom: 32px;
  left: clamp(32px, 6vw, 96px);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.next-arrow {
  position: absolute;
  bottom: 32px;
  right: clamp(32px, 6vw, 96px);
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  color: var(--neon);
  letter-spacing: 0.1em;
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
  animation: cueDrift 1.5s ease-in-out infinite;
}

/* Final panel */
.panel-final {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  text-align: center;
}

.final-inner {
  max-width: 1100px;
  width: 100%;
  position: relative;
}

.final-prefix {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--neon);
  margin-right: 12px;
  text-shadow: 0 0 14px rgba(0, 255, 136, 0.6);
  vertical-align: middle;
}

.typewriter {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.2;
  color: var(--text);
  text-shadow: 0 0 14px rgba(0, 255, 136, 0.4);
  vertical-align: middle;
  letter-spacing: -0.01em;
}

.typewriter::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 0.9em;
  background: var(--neon);
  margin-left: 6px;
  vertical-align: middle;
  animation: blink 1.06s step-end infinite;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
}

@keyframes blink {
  50% { opacity: 0; }
}

.final-meta {
  margin-top: 56px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Progress bar */
.progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 255, 136, 0.08);
  z-index: 99;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.7);
  transition: width 100ms linear;
}

.progress-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 2px;
}

.progress-ticks .tick {
  width: 1px;
  height: 100%;
  background: rgba(224, 240, 232, 0.3);
}

@media (max-width: 820px) {
  .debate-grid { grid-template-columns: 1fr; gap: 20px; }
  .vs-divider { width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--neon), transparent); margin: 12px auto; }
  .vs-label { transform: translate(-50%, -50%); }
  .antithesis { margin-right: 0; }
}
