/* ══════════════════════════════════════════════════
   ordinarysalauddin.com — Style System
   ══════════════════════════════════════════════════ */

:root {
  --color-void: #0a0a0f;
  --color-paper: #f5f0e8;
  --color-paper-dark: #e8e0d0;
  --color-gold: #d4a843;
  --color-glow: #ffc800;
  --color-text: #e8e4dc;
  --color-text-dim: #6a645c;
  --color-text-dark: #2a2520;
  --color-cyan: #3a8f9f;
  --color-cta: #ff6b35;
  --color-terminal-green: #4ade80;

  --font-bengali: 'Noto Serif Bengali', serif;
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--color-void);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }
a { color: var(--color-gold); text-decoration: none; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-void); }
::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 3px; }
::selection { background: rgba(212,168,67,0.3); color: var(--color-text); }

/* ══════════════ ACT 1: HOOK ══════════════ */
#act-hook {
  min-height: 150vh;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.hook-text {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 2;
  padding: 2rem;
}
.hook-line {
  font-family: var(--font-bengali);
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  color: var(--color-text);
  opacity: 0;
  line-height: 1.9;
  font-weight: 400;
}
.hook-line:last-child { font-weight: 600; }

.scroll-hint {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  z-index: 5;
  color: var(--color-gold);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════ ACT 2: PEEL ══════════════ */
#act-peel {
  min-height: 500vh;
  position: relative;
}
.peel-overlay {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-void);
  z-index: 10;
  clip-path: polygon(
    0 0, 100% 0, 100% 100%,
    95% 97%, 90% 100%, 85% 96%, 80% 100%,
    75% 97%, 70% 100%, 65% 96%, 60% 100%,
    55% 97%, 50% 100%, 45% 96%, 40% 100%,
    35% 97%, 30% 100%, 25% 96%, 20% 100%,
    15% 97%, 10% 100%, 5% 96%, 0 100%
  );
  will-change: transform;
}
.paper-layer {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: 100vh;
  background: var(--color-paper);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    repeating-conic-gradient(rgba(0,0,0,0.015) 0% 25%, transparent 0% 50%) 0 0 / 4px 4px;
}
.story-lines {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  gap: 0.6rem;
}
.story-line {
  font-family: var(--font-bengali);
  font-size: clamp(1.2rem, 3.5vw, 2.2rem);
  color: var(--color-text-dark);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-align: center;
  line-height: 2;
}
.story-line.visible {
  opacity: 1;
  transform: translateY(0);
}
.story-line:last-child {
  font-weight: 600;
  color: var(--color-cta);
}

/* ══════════════ ACT 3: MECHANISM (CYBERNETIC SYSTEM MAP) ══════════════ */
#act-mechanism {
  position: relative;
  background: #06070a;
  min-height: 120vh;
}
.mechanism-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
}
.mechanism-scroll-spacer { height: 60vh; }

/* ── HUD Background Elements ── */
.hud-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(212, 168, 67, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 168, 67, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.hud-radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(212, 168, 67, 0.12);
  pointer-events: none;
  z-index: 0;
}
.hud-radar-ring.ring-1 {
  width: 320px;
  height: 320px;
  border-color: rgba(212, 168, 67, 0.18);
  animation: radar-spin 60s linear infinite;
}
.hud-radar-ring.ring-2 {
  width: 600px;
  height: 600px;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(212, 168, 67, 0.07);
}
.hud-radar-ring.ring-3 {
  width: 880px;
  height: 880px;
  border-color: rgba(212, 168, 67, 0.04);
  animation: radar-spin-reverse 90s linear infinite;
}

@keyframes radar-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes radar-spin-reverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

.hud-corner-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(212, 168, 67, 0.35);
  pointer-events: none;
  z-index: 2;
}
.hud-corner-tag.top-left { top: 2.5rem; left: 3rem; }
.hud-corner-tag.top-right { top: 2.5rem; right: 3rem; }
.hud-corner-tag.bottom-left { bottom: 2.5rem; left: 3rem; }
.hud-corner-tag.bottom-right { bottom: 2.5rem; right: 3rem; }

#connections-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Symmetrical Schematic Board Layout ── */
.schematic-board {
  position: relative;
  z-index: 5;
  width: 94%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px 1fr 330px;
  gap: clamp(1.5rem, 3.5vw, 4rem);
  align-items: center;
}

.schematic-col {
  display: flex;
  flex-direction: column;
}

.schematic-col.col-left,
.schematic-col.col-right {
  gap: clamp(2.5rem, 5vh, 4rem);
  justify-content: center;
}

.schematic-col.col-center {
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 380px;
}

/* ── Central Reactor Core Node ── */
.node--center {
  position: relative;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  text-align: center;
  pointer-events: auto;
  padding: 2rem;
}
.center-reactor-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255, 200, 0, 0.35);
  box-shadow: 0 0 50px rgba(212, 168, 67, 0.15), inset 0 0 30px rgba(212, 168, 67, 0.1);
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.9; box-shadow: 0 0 70px rgba(255, 200, 0, 0.3); }
}

/* Core Emitter Terminal Pins */
.core-port {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-glow);
  box-shadow: 0 0 10px var(--color-glow);
  pointer-events: none;
  z-index: 10;
}
.core-port.port-tl { top: calc(50% - 62px); left: calc(50% - 62px); }
.core-port.port-tr { top: calc(50% - 62px); right: calc(50% - 62px); }
.core-port.port-bl { bottom: calc(50% - 10px); left: calc(50% - 62px); }
.core-port.port-br { bottom: calc(50% - 10px); right: calc(50% - 62px); }

.core-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #201a0e, #0a0a0f);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--color-gold);
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.35);
  z-index: 2;
}
.core-meta {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.core-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  background: rgba(212, 168, 67, 0.12);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(212, 168, 67, 0.25);
}
.node--center .node-label {
  font-family: var(--font-bengali);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}
.node--center .node-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-dim);
  letter-spacing: 0.05em;
}

/* ── HUD Module Cards (Outer Nodes) ── */
.node-card {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 330px;
  background: rgba(12, 15, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 168, 67, 0.24);
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s, background 0.3s;
  opacity: 0;
}
.node-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.6;
  transition: opacity 0.3s;
}
.node-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--color-glow);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 168, 67, 0.25);
  background: rgba(18, 22, 32, 0.95);
}
.node-card:hover::before {
  opacity: 1;
}

/* Dedicated Circuit Connection Pin on Card */
.card-port {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-glow);
  box-shadow: 0 0 8px var(--color-glow);
  border: 2px solid #06070a;
  z-index: 10;
  pointer-events: none;
}
.card-port.port-right {
  right: -5px;
}
.card-port.port-left {
  left: -5px;
}

.card-status-dot {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  opacity: 0.85;
  margin-bottom: 0.6rem;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.6rem;
}
.card-head .node-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.card-entity {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-gold);
  opacity: 0.8;
}

.card-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #a8a39d;
  margin-bottom: 0.85rem;
}

.card-tags, .card-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.card-tags span, .card-channels span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1ccc2;
}
.card-channels span {
  border-color: rgba(212, 168, 67, 0.2);
  color: var(--color-gold);
}

/* ══════════════ DETAIL PANELS ══════════════ */
.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.96);
}
.detail-panel.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: scale(1);
}
.detail-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* Terminal theme (Founder) */
[data-theme="terminal"] {
  background: #080c12;
  color: #c8d6e5;
  background-image: repeating-linear-gradient(
    transparent 0, transparent 1px,
    rgba(255,255,255,0.015) 1px, rgba(255,255,255,0.015) 2px
  );
}
[data-theme="terminal"] h2,
[data-theme="terminal"] h3 {
  color: var(--color-terminal-green);
  font-family: var(--font-mono);
}

/* Blueprint theme (Architect) */
[data-theme="blueprint"] {
  background: #060d14;
  color: #b0c4d6;
  background-image:
    repeating-linear-gradient(rgba(58,143,159,0.04) 0 1px, transparent 1px 50px),
    repeating-linear-gradient(90deg, rgba(58,143,159,0.04) 0 1px, transparent 1px 50px);
}
[data-theme="blueprint"] h2,
[data-theme="blueprint"] h3 { color: var(--color-cyan); }

/* Paper theme (Creator) */
[data-theme="paper"] {
  background: var(--color-paper);
  color: var(--color-text-dark);
  background-image:
    repeating-conic-gradient(rgba(0,0,0,0.012) 0% 25%, transparent 0% 50%) 0 0 / 4px 4px;
}
[data-theme="paper"] h2,
[data-theme="paper"] h3 {
  color: #6b4226;
  font-family: var(--font-bengali);
}
[data-theme="paper"] .detail-back { color: var(--color-text-dark); }
[data-theme="paper"] .detail-tag { border-color: rgba(0,0,0,0.12); color: var(--color-text-dark); }
[data-theme="paper"] .detail-link { color: #6b4226; }
[data-theme="paper"] .detail-metrics span { color: var(--color-text-dark); }

/* Cinematic theme (Studio) */
[data-theme="cinematic"] {
  background: #0a0806;
  background-image: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
  color: #d4c8b0;
}
[data-theme="cinematic"] h2,
[data-theme="cinematic"] h3 {
  color: #e8a838;
  font-family: var(--font-display);
}

/* ── Panel components ── */
.detail-back {
  position: sticky;
  top: 0;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.detail-back:hover { opacity: 1; }

.detail-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.detail-subtitle {
  font-size: 1rem;
  opacity: 0.6;
  margin-bottom: 2.5rem;
  font-family: var(--font-body);
}
.detail-block { margin-bottom: 2.5rem; }
.detail-block h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.detail-tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.5;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.detail-block p { line-height: 1.85; font-size: 0.95rem; opacity: 0.85; }
.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.detail-link:hover { border-color: var(--color-gold); }

.detail-metrics {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.detail-metrics span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.45;
}
.detail-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  margin-top: 2rem;
  opacity: 0.5;
}

/* Schematic cards (Architect) */
.schematic-card {
  border: 1px solid rgba(58, 143, 159, 0.18);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  background: rgba(58, 143, 159, 0.03);
}
.schematic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--color-cyan);
  opacity: 0.35;
}
.schematic-card h4 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-cyan);
  margin-bottom: 0.2rem;
}
.schematic-sub { font-size: 0.78rem; opacity: 0.5; margin-bottom: 0.8rem; }
.schematic-card p { font-size: 0.9rem; line-height: 1.75; opacity: 0.8; }
.schematic-stack {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.35;
  letter-spacing: 0.06em;
}

/* Episode grid (Creator) */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.episode-card {
  padding: 1.2rem;
  border: 1px solid rgba(107, 66, 38, 0.12);
  background: rgba(107, 66, 38, 0.03);
}
.ep-number {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.35;
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
}
.ep-hook {
  font-family: var(--font-bengali);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
  color: var(--color-text-dark);
}
.ep-topic { font-size: 0.78rem; opacity: 0.45; }
.ep-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  margin-top: 0.5rem;
}
.ep-status.released {
  background: rgba(74, 222, 128, 0.1);
  color: #16a34a;
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.ep-status.coming {
  background: rgba(212, 168, 67, 0.1);
  color: #a17c2e;
  border: 1px solid rgba(212, 168, 67, 0.2);
}

/* Capabilities grid (Studio) */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.capability-item {
  padding: 1.2rem;
  border: 1px solid rgba(232, 168, 56, 0.12);
  text-align: center;
  font-size: 0.88rem;
  transition: all 0.3s ease;
}
.capability-item:hover {
  border-color: var(--color-gold);
  background: rgba(232, 168, 56, 0.05);
}

/* ══════════════ ACT 4: REVEAL ══════════════ */
#act-reveal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: #06070a;
  position: relative;
}
.reveal-statement {
  font-family: var(--font-bengali);
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--color-text);
  margin-bottom: 0.8rem;
  opacity: 0;
  font-weight: 600;
}
.reveal-sub {
  font-family: var(--font-bengali);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-text-dim);
  margin-bottom: 3rem;
  line-height: 2;
  opacity: 0;
}

/* Portrait styling with cybernetic frame */
.reveal-portrait-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.portrait-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 3s infinite alternate ease-in-out;
}
.reveal-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(212,168,67,0.3);
  position: relative;
  z-index: 2;
  background: #111;
}
.portrait-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--color-glow);
  z-index: 3;
  pointer-events: none;
}
.portrait-corner.c-tl {
  top: 0;
  left: 0;
  border-top: 2px solid var(--color-gold);
  border-left: 2px solid var(--color-gold);
}
.portrait-corner.c-br {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
}

.reveal-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 0.4rem;
  opacity: 0;
}
.reveal-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.25);
  padding: 0.25rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  opacity: 0;
}

.reveal-roles-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 650px;
  margin-bottom: 2.5rem;
  opacity: 0;
}
.role-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #c9c4bb;
  line-height: 1.6;
}
.role-item strong {
  color: #fff;
  font-weight: 600;
}
.role-icon {
  font-size: 1.1rem;
}
.role-divider {
  display: none;
}

.reveal-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
  opacity: 0;
}
.reveal-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-gold);
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 6px;
  background: rgba(212, 168, 67, 0.04);
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.reveal-links a:hover {
  border-color: var(--color-glow);
  background: rgba(212, 168, 67, 0.12);
  box-shadow: 0 0 15px rgba(212, 168, 67, 0.2);
}
.reveal-links a.link-featured {
  border-color: var(--color-gold);
  background: rgba(212, 168, 67, 0.15);
  color: #fff;
}

.social-channels-bar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
  opacity: 0;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #d1ccc2;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.social-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(212, 168, 67, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.site-footer {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  opacity: 0.4;
  margin-top: 1rem;
}

/* ══════════════ DEPTH INDICATOR ══════════════ */
.depth-indicator {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  transition: opacity 0.5s;
}
.depth-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 67, 0.3);
  background: transparent;
  padding: 0;
  transition: all 0.3s ease;
}
.depth-dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.4);
}

/* ══════════════ SVG ANIMATIONS ══════════════ */
@keyframes dash-flow {
  from { stroke-dashoffset: 88; }
  to { stroke-dashoffset: 0; }
}

/* ══════════════ RESPONSIVE & MOBILE BREAKPOINTS ══════════════ */
@media (max-width: 1100px) {
  .schematic-board {
    grid-template-columns: 290px 1fr 290px;
    gap: 1.5rem;
  }
  .node-card {
    max-width: 290px;
    padding: 1.1rem;
  }
}

@media (max-width: 900px) {
  #act-mechanism { min-height: auto; }
  .mechanism-wrap {
    height: auto;
    min-height: 100vh;
    position: relative;
    padding: 5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .mechanism-scroll-spacer { display: none; }
  #connections-svg { display: none; }
  .hud-radar-ring { display: none; }
  .hud-corner-tag { display: none; }
  .card-port, .core-port { display: none; }

  .schematic-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }

  .schematic-col.col-center {
    order: -1;
    min-height: auto;
    margin-bottom: 1rem;
  }

  .schematic-col.col-left,
  .schematic-col.col-right {
    width: 100%;
    max-width: 440px;
    gap: 1.5rem;
  }

  .node-card {
    max-width: 100%;
    opacity: 1 !important;
  }
}

@media (max-width: 768px) {
  .detail-inner { padding: 1.5rem 1.2rem 3rem; }
  .depth-indicator { right: 0.8rem; }
  .depth-dot { width: 6px; height: 6px; }
  .episode-grid { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr 1fr; }
  .reveal-roles-list { text-align: left; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hook-line { font-size: 1.25rem; }
  .story-line { font-size: 1.15rem; }
  .card-title { font-size: 0.92rem; }
  .capabilities-grid { grid-template-columns: 1fr; }
}
