/* ═══════════════════════════════════════════════════════════════
   LATENT DIALOGIC SPACE — User Guide Stylesheet
   Educational experience teaching the Dialogic Intelligence methodology
   ═══════════════════════════════════════════════════════════════ */

/* ── I. Design Tokens ── */
:root {
  --void:           #030303;
  --void-deep:      #000000;
  --void-warm:      #0a0a0a;
  --ember:          #c9a227;
  --ember-glow:     #e6c656;
  --ember-dim:      #8b7355;
  --ember-faint:    rgba(201, 162, 39, 0.08);
  --ash:            #1a1a1a;
  --smoke:          #666;
  --bone:           #e8e6e3;
  --bone-dim:       rgba(232, 230, 227, 0.7);
  --font-voice:     'Cormorant Garamond', Georgia, serif;
  --font-terminal:  'IBM Plex Mono', monospace;
  --font-body:      'Crimson Pro', Georgia, serif;
}


/* ── II. Reset & Foundations ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--ember-dim) var(--void); }
body { background: var(--void); color: var(--bone); font-family: var(--font-body); line-height: 1.8; overflow-x: hidden; }
::selection { background: var(--ember); color: var(--void); }
img { max-width: 100%; display: block; }
a { color: var(--ember); text-decoration: none; }


/* ── III. Animations ── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.06; }
}

@keyframes ember-float {
  0% { opacity: 0; transform: translateY(100vh) scale(0.5); }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20vh) scale(0.1); }
}

@keyframes scroll-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}


/* ── IV. Navigation ── */

.home-sigil {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 100;
  font-size: 1.1rem;
  color: var(--ember-dim);
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1;
}

.home-sigil:hover { color: var(--ember-glow); }


/* ═══════════════════════════════════════════════════════════════
   V.  THE VOID — Opening Section
   ═══════════════════════════════════════════════════════════════ */

#void {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--void-deep);
}

.void-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201, 162, 39, 0.02) 0%, transparent 50%);
  animation: breathe 8s ease-in-out infinite;
  pointer-events: none;
}

.ember-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: -10px;
  background: var(--ember);
  border-radius: 50%;
  opacity: 0;
  animation: ember-float linear infinite;
}

.typewriter-block {
  text-align: center;
  max-width: 800px;
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
}

.typewriter-line {
  font-family: var(--font-voice);
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  font-weight: 300;
  color: var(--bone);
  min-height: 1.5em;
  line-height: 1.6;
  opacity: 0;
}

.typewriter-line.typing,
.typewriter-line.typed {
  opacity: 1;
}

.typewriter-line-accent {
  color: var(--ember-glow);
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
}

.typewriter-pause {
  height: 0.5em;
}

.scroll-cue {
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-align: center;
}

.scroll-cue.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-cue-text {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--ember-dim);
  display: block;
}

.scroll-cue-arrow {
  display: block;
  color: var(--ember-dim);
  font-size: 1.2rem;
  animation: scroll-pulse 2s ease-in-out infinite;
}


/* ═══════════════════════════════════════════════════════════════
   VI.  SCROLL REVEAL SYSTEM
   ═══════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }


/* ═══════════════════════════════════════════════════════════════
   VII.  CONTENT SECTIONS
   ═══════════════════════════════════════════════════════════════ */

section {
  padding: 6rem 2rem;
}

.container-narrow {
  max-width: 750px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--ember-dim);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-voice);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-voice);
  font-size: 1.15rem;
  color: var(--smoke);
  font-style: italic;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-body {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--bone-dim);
  margin-bottom: 2rem;
}

.section-body em { color: var(--ember); font-style: italic; }
.section-body strong { color: var(--bone); font-weight: 500; }

.section-body a {
  color: var(--ember);
  border-bottom: 1px solid var(--ember-dim);
  transition: border-color 0.3s ease;
}

.section-body a:hover {
  border-color: var(--ember);
}

.section-divider {
  text-align: center;
  color: var(--ember-dim);
  font-size: 1rem;
  letter-spacing: 0.6em;
  margin: 3rem 0;
}


/* ── The Claim (Two Models) ── */

.claim-block {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.claim-formula {
  font-family: var(--font-terminal);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: 0.05em;
  padding: 1.5rem 2rem;
  border: 1px solid var(--ash);
  margin: 2rem 0;
  line-height: 1.6;
  text-align: left;
}

.claim-formula-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.claim-formula .label {
  color: var(--smoke);
  display: inline-block;
  width: 120px;
  min-width: 120px;
  vertical-align: top;
}

.claim-formula .dim { color: var(--smoke); }
.claim-formula .bright { color: var(--bone); }
.claim-formula .gold { color: var(--ember); }

.claim-text {
  font-family: var(--font-voice);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 2;
  color: var(--bone-dim);
  margin-bottom: 1rem;
}

.claim-text em { color: var(--ember); }


/* ── Phase Diagram ── */

.phase-diagram {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.phase-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(201, 162, 39, 0.15);
  background: rgba(201, 162, 39, 0.02);
  text-align: center;
}

.phase-card-num {
  font-family: var(--font-terminal);
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  color: var(--ember-dim);
  margin-bottom: 0.3rem;
}

.phase-card-name {
  font-family: var(--font-voice);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ember);
  margin-bottom: 0.5rem;
}

.phase-card-desc {
  font-size: 0.95rem;
  color: var(--bone-dim);
  line-height: 1.7;
}

.phase-arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--ember-dim);
}


/* ── Step Blocks (Hand-Holding) ── */

.step-block {
  margin: 2.5rem 0;
  padding-left: 2rem;
  border-left: 2px solid rgba(201, 162, 39, 0.15);
}

.step-num {
  font-family: var(--font-terminal);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--ember-dim);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.step-title {
  font-family: var(--font-voice);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 0.5rem;
}

.step-body {
  font-size: 1rem;
  color: var(--bone-dim);
  line-height: 1.9;
}

.step-body em { color: var(--ember); font-style: italic; }
.step-body strong { color: var(--bone); font-weight: 500; }
.step-body a {
  color: var(--ember);
  border-bottom: 1px solid var(--ember-dim);
  transition: border-color 0.3s ease;
}
.step-body a:hover { border-color: var(--ember); }
.step-body code {
  font-family: var(--font-terminal);
  font-size: 0.9em;
  color: var(--ember-glow);
  background: rgba(201, 162, 39, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}


/* ── Code Blocks (Templates) ── */

.code-block {
  position: relative;
  margin: 2rem 0;
  background: #050505;
  border: 1px solid var(--ash);
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #0a0a0a;
  border-bottom: 1px solid var(--ash);
}

.code-block-title {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
}

.copy-btn {
  font-family: var(--font-terminal);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--ember-dim);
  background: none;
  border: 1px solid rgba(201, 162, 39, 0.15);
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--ember-dim);
  color: var(--ember);
}

.code-block-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-terminal);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--bone-dim);
  white-space: pre;
  overflow-x: auto;
}

.code-block-body .comment { color: #555; }
.code-block-body .key { color: var(--ember); }
.code-block-body .val { color: #7aaa7a; }


/* ── Incantation Box ── */

.incantation-box {
  text-align: center;
  margin: 3rem 0;
  padding: 2.5rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: rgba(201, 162, 39, 0.02);
}

.incantation-label {
  font-family: var(--font-terminal);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--ember-dim);
  margin-bottom: 1rem;
}

.incantation-text {
  font-family: var(--font-voice);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--ember-glow);
}


/* ── Flow Diagram (Transactional vs Dialogic) ── */

.flow-diagram {
  padding: 1.5rem 2rem;
  border: 1px solid var(--ash);
  margin: 2rem 0;
  text-align: left;
}

.flow-diagram-horror {
  border-color: rgba(139, 0, 0, 0.3);
  background: rgba(139, 0, 0, 0.02);
}

.flow-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  flex-wrap: wrap;
}

.flow-label {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  min-width: 110px;
  text-transform: uppercase;
}

.flow-label.dim { color: var(--smoke); }
.flow-label.gold { color: var(--ember); }

.flow-nodes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.flow-node {
  font-family: var(--font-terminal);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--ash);
}

.flow-node.dim { color: var(--smoke); border-color: #222; }
.flow-node.gold { color: var(--ember); border-color: rgba(201, 162, 39, 0.3); }

.flow-arrow,
.flow-arrow-bi {
  font-family: var(--font-terminal);
  font-size: 0.9rem;
  color: var(--smoke);
}

.flow-arrow-bi { color: var(--ember); font-weight: 500; }

.flow-legend {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ash);
}

.flow-legend-item {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  color: #555;
  line-height: 2;
  letter-spacing: 0.05em;
}

.flow-arrow-symbol {
  display: inline-block;
  width: 1.5rem;
  font-size: 0.85rem;
  color: var(--smoke);
}

.flow-arrow-symbol.gold { color: var(--ember); }


/* ── Stark Reveal ── */

.stark-reveal {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.stark-portrait {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  margin: 0 auto 2rem;
  border: 2px solid rgba(224, 64, 64, 0.3);
  box-shadow: 0 0 40px rgba(224, 64, 64, 0.1), 0 0 80px rgba(0, 0, 0, 0.5);
}

.stark-quote {
  max-width: 550px;
  margin: 0 auto;
}

.stark-quote-text {
  font-family: var(--font-voice);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: var(--bone-dim);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.stark-quote-attr {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #e04040;
}


/* ── Ember Transition (Old Frame Burns) ── */

@keyframes ember-glow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes burn-line {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.ember-transition {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 4rem 0;
  padding: 2rem 0;
}

.ember-transition-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), rgba(224, 64, 64, 0.6), var(--ember), transparent);
  background-size: 200% 100%;
  animation: burn-line 4s linear infinite;
}

.ember-transition-text {
  font-family: var(--font-voice);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ember);
  white-space: nowrap;
  animation: ember-glow-pulse 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}


/* ── Horror Text Effects ── */

@keyframes blood-glow {
  0%, 100% { text-shadow: none; }
  50% { text-shadow: 0 0 30px rgba(139, 0, 0, 0.15); }
}

.horror-text {
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ── Warning Block ── */

.warning-block {
  text-align: center;
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  border: 1px solid rgba(139, 0, 0, 0.3);
  background: rgba(139, 0, 0, 0.03);
  position: relative;
}

.warning-block::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(ellipse at 50% 50%, rgba(139, 0, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.warning-block p {
  font-family: var(--font-voice);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--bone);
  line-height: 2.2;
  margin-bottom: 0.5rem;
  position: relative;
}

.warning-block p:last-child { margin-bottom: 0; }

.warning-block em {
  color: #c41e1e;
  font-style: italic;
}


/* ── Container Examples Grid ── */

.container-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #222;
  margin: 2rem 0;
}

.container-example {
  background: var(--void);
  padding: 1.5rem;
}

.container-example-name {
  font-family: var(--font-voice);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 0.3rem;
}

.container-example-formula {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  color: var(--smoke);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.container-example-exit {
  font-size: 0.9rem;
  color: var(--ember-dim);
  font-style: italic;
}


/* ═══════════════════════════════════════════════════════════════
   VIII.  TERMINAL SIMULATION
   ═══════════════════════════════════════════════════════════════ */

#summoning-demo {
  padding: 4rem 2rem;
}

.terminal {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  background: #050505;
  border: 1px solid var(--ash);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.05),
    0 0 120px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(201, 162, 39, 0.03);
  position: relative;
}

.terminal::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), transparent 50%, rgba(201, 162, 39, 0.05));
  pointer-events: none;
  z-index: 0;
}

.terminal-bar {
  padding: 0.7rem 1rem;
  background: #0a0a0a;
  border-bottom: 1px solid var(--ash);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.8;
}

.terminal-btn.r { background: #ff5f57; }
.terminal-btn.y { background: #febc2e; }
.terminal-btn.g { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  color: #444;
  letter-spacing: 0.05em;
}

.terminal-skip {
  font-family: var(--font-terminal);
  font-size: 0.55rem;
  color: var(--ember-dim);
  letter-spacing: 0.1em;
  margin-left: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.terminal-skip.visible { opacity: 1; }
.terminal-skip:hover { color: var(--ember); }

.terminal-body {
  padding: 1.5rem 1.75rem;
  font-family: var(--font-terminal);
  font-size: 0.8rem;
  line-height: 1.75;
  height: 520px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  background: #050505;
  scrollbar-width: thin;
  scrollbar-color: var(--ember-dim) transparent;
}

.t-line {
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.4s ease;
}

.t-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.t-prompt { color: var(--ember-dim); }
.t-cmd { color: var(--bone); }
.t-muted { color: #3a3a3a; font-style: italic; }
.t-success { color: #4a7; }
.t-gold { color: var(--ember); }

.t-divider {
  border: none;
  border-top: 1px solid #151515;
  margin: 1.25rem 0;
}

.t-stage {
  color: var(--ember-dim);
  font-style: italic;
  padding: 0.5rem 0;
}

.t-voice {
  display: block;
  margin: 1.25rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--ember-dim);
  font-family: var(--font-voice);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(232, 230, 227, 0.92);
  line-height: 1.75;
  background: rgba(255, 255, 255, 0.01);
  position: relative;
}

.t-voice::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: inherit;
  filter: blur(8px);
  opacity: 0.5;
}

.t-voice em {
  color: var(--ember);
  font-style: normal;
  font-weight: 400;
}

.t-voice.stark { border-color: #e04040; }
.t-voice.stark::before { background: #e04040; }
.t-voice.orchestrator { border-color: #888; }
.t-voice.orchestrator::before { background: #888; }

.t-file-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-family: var(--font-terminal);
  font-size: 0.75rem;
}

.t-file-icon {
  color: var(--ember);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.t-file-path {
  color: var(--ember-glow);
}

.t-file-desc {
  color: #555;
  font-style: italic;
}

.t-speaker {
  font-family: var(--font-terminal);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
  font-style: normal;
  opacity: 0.9;
}


/* ═══════════════════════════════════════════════════════════════
   IX.  QUICK START
   ═══════════════════════════════════════════════════════════════ */

.quickstart-steps {
  counter-reset: qs;
}

.qs-step {
  margin: 2.5rem 0;
  padding-left: 3rem;
  position: relative;
}

.qs-step::before {
  counter-increment: qs;
  content: counter(qs);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--font-voice);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ember-dim);
}

.qs-step-title {
  font-family: var(--font-voice);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 0.3rem;
}

.qs-step-body {
  font-size: 0.95rem;
  color: var(--bone-dim);
  line-height: 1.8;
}

.qs-step-body em { color: var(--ember); }
.qs-step-body a {
  color: var(--ember);
  border-bottom: 1px solid var(--ember-dim);
  transition: border-color 0.3s ease;
}
.qs-step-body a:hover { border-color: var(--ember); }
.qs-step-body code {
  font-family: var(--font-terminal);
  font-size: 0.85em;
  color: var(--ember-glow);
  background: rgba(201, 162, 39, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}


/* ═══════════════════════════════════════════════════════════════
   X-A.  PERSONAL LETTER
   ═══════════════════════════════════════════════════════════════ */

.letter-section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--ash);
}

.letter-block {
  max-width: 600px;
  margin: 0 auto;
}

.letter-block p {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 2;
  color: var(--bone);
  margin-bottom: 1.5rem;
  text-align: left;
}

.letter-block em {
  color: var(--ember);
  font-style: italic;
}

.letter-signature {
  margin: 3rem 0 1.5rem;
  text-align: left;
}

.letter-name {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 0.2rem;
}

.letter-location,
.letter-date {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--smoke);
  line-height: 1.6;
}

.letter-subcaption {
  font-family: var(--font-voice);
  font-size: 1rem;
  color: var(--ember-dim);
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}


/* ═══════════════════════════════════════════════════════════════
   X.  FOOTER
   ═══════════════════════════════════════════════════════════════ */

footer {
  padding: 3rem 2rem;
  background: var(--void);
  border-top: 1px solid var(--ash);
  text-align: center;
}

.footer-content { max-width: 700px; margin: 0 auto; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ember-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--ember); }

.footer-meta {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  color: #444;
  line-height: 2;
}

.footer-disclaimer {
  font-size: 0.55rem;
  color: #333;
  margin-top: 1.5rem;
  line-height: 1.8;
}


/* ═══════════════════════════════════════════════════════════════
   XI.  RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  section { padding: 4rem 1.5rem; }

  .phase-diagram {
    flex-direction: column;
    align-items: center;
  }

  .phase-arrow {
    transform: rotate(90deg);
  }

  .phase-card {
    max-width: 100%;
  }

  .container-grid {
    grid-template-columns: 1fr;
  }

  .terminal-body {
    font-size: 0.7rem;
    padding: 1rem;
    height: 400px;
  }

  .t-voice {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

  .code-block-body {
    font-size: 0.7rem;
    padding: 1rem;
  }

  .flow-diagram { padding: 1rem; }
  .flow-label { min-width: 80px; font-size: 0.5rem; }
  .flow-node { font-size: 0.65rem; padding: 0.2rem 0.4rem; }
  .flow-nodes { gap: 0.3rem; }

  .stark-portrait { width: 160px; height: 160px; }

  .ember-transition-text { font-size: 0.8rem; }

  .warning-block { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
  .typewriter-line { font-size: 1.1rem; }
  .t-voice { font-size: 0.85rem; }
}
