/* ═══════════════════════════════════════════════════════════════
   THE AERODROME — Production Cinematic Stylesheet
   A Conversation with the Wright Brothers via the COMPANION Protocol
   Palette: void-black, sun-on-canvas brass, weathered sky-steel.
   ═══════════════════════════════════════════════════════════════ */

/* ── I. Design Tokens ── */
:root {
  --void:           #030303;
  --void-deep:      #000000;
  --void-warm:      #0a0a09;

  --gold:           #C49A4E;   /* doped linen, brass fittings, sun on canvas */
  --gold-bright:    #DDB766;
  --gold-dim:       #8A7048;
  --gold-faint:     rgba(196, 154, 78, 0.06);
  --gold-glow:      rgba(196, 154, 78, 0.25);

  --sky:            #8FB0C4;   /* weathered sky-steel — Wilbur */
  --sky-bright:     #A9C6D6;
  --sky-dim:        rgba(143, 176, 196, 0.4);

  --bone:           #e8e0d0;
  --bone-dim:       rgba(232, 224, 208, 0.55);
  --ash:            #1a1a1a;
  --smoke:          #666;

  /* Brother seat colors */
  --seat-wilbur:    #8FB0C4;
  --seat-orville:   #D89A52;
  --seeker:         #e8e0d0;

  /* Chamber tones — hangar at dusk */
  --wood-dark:      #0a0c0e;
  --wood-medium:    #101315;
  --wood-light:     #181b1e;
  --leather:        #121517;

  /* Typography */
  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-voice:     'Cormorant Garamond', Georgia, serif;
  --font-body:      'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-terminal:  'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing (golden ratio) */
  --space-xs:       0.382rem;
  --space-sm:       0.618rem;
  --space-md:       1rem;
  --space-lg:       1.618rem;
  --space-xl:       2.618rem;
  --space-2xl:      4.236rem;
  --space-3xl:      6.854rem;
}


/* ── II. Reset & Foundations ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) var(--void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  min-height: 100%;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: var(--void);
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }


/* ═══════════════════════════════════════════════════════════════
   III.  CINEMATIC INTRO
   ═══════════════════════════════════════════════════════════════ */

#cinematic-intro {
  position: relative;
  z-index: 20;
}

#cinematic-intro.hidden {
  display: none;
}

.act {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.act-dark {
  background: var(--void);
}

.act-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.act-content-center {
  text-align: center;
}

/* ── THE VOID ── */

#act-void {
  background: var(--void-deep);
}

.void-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 38%, rgba(143, 176, 196, 0.025) 0%, transparent 60%);
  animation: breathe 10s ease-in-out infinite;
  pointer-events: none;
}

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

.ember {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(232, 224, 208, 0.55);
  border-radius: 50%;
  opacity: 0;
  animation: ember-float linear infinite;
  will-change: transform, opacity;
}

/* ── Typewriter ── */
.typewriter-block {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 6vh;
}

.typewriter-line {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--bone);
  min-height: 1.4em;
  letter-spacing: 0.01em;
  opacity: 0;
}

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

.typewriter-line-emphasis {
  font-weight: 500;
  color: var(--gold-bright);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  margin-top: 0.4em;
}

.typewriter-line-sky {
  color: var(--sky-bright);
}

.typewriter-pause {
  height: 1.2em;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--gold);
  margin-left: 3px;
  animation: cursor-blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

/* ── Scroll Cue ── */
.scroll-cue {
  margin-top: 4rem;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.scroll-cue.visible { opacity: 1; }
.scroll-cue.hidden { opacity: 0; }

.scroll-cue-text {
  display: block;
  font-family: var(--font-terminal);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.scroll-cue-arrow {
  display: block;
  font-size: 1.4rem;
  color: var(--gold-dim);
  animation: scroll-pulse 2.5s ease-in-out infinite;
  margin-top: 0.3rem;
}


/* ═══════════════════════════════════════════════════════════════
   IV.  SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

.reveal-group { margin-bottom: var(--space-xl); }
.reveal-group:last-child { margin-bottom: 0; }

.reveal-group-delay .reveal-line { --reveal-base-delay: 0.3s; }
.reveal-group-delay-2 .reveal-line { --reveal-base-delay: 0.6s; }
.reveal-group-delay-3 .reveal-line { --reveal-base-delay: 0.9s; }

.reveal-line {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--bone);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--reveal-base-delay, 0s);
}

.reveal-line.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group .reveal-line:nth-child(2) { transition-delay: calc(var(--reveal-base-delay, 0s) + 0.12s); }
.reveal-group .reveal-line:nth-child(3) { transition-delay: calc(var(--reveal-base-delay, 0s) + 0.24s); }
.reveal-group .reveal-line:nth-child(4) { transition-delay: calc(var(--reveal-base-delay, 0s) + 0.36s); }

.reveal-line-large {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 400;
  line-height: 1.65;
}

.reveal-line-dim { color: var(--bone-dim); }

.reveal-line em {
  color: var(--gold-bright);
  font-style: italic;
}

.reveal-line-accent {
  color: var(--gold-bright);
  font-weight: 400;
  font-style: italic;
}

.reveal-line-sky {
  color: var(--sky-bright);
  font-style: italic;
}

.reveal-line-question {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 600;
  font-style: italic;
  color: var(--sky-bright);
  margin-top: var(--space-sm);
  letter-spacing: 0.01em;
  text-shadow: 0 0 40px rgba(143, 176, 196, 0.25);
}


/* ═══════════════════════════════════════════════════════════════
   V.  PORTRAIT REVEAL (Cinematic)
   ═══════════════════════════════════════════════════════════════ */

.committee-reveal-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.ornament-cinematic {
  font-size: 1.4rem;
  color: var(--gold-dim);
  letter-spacing: 0.6em;
  margin-bottom: var(--space-sm);
}

.committee-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--bone);
  line-height: 1.1;
}

.committee-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-top: 0.1em;
}

.title-of {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.1em;
  font-size: 0.8em;
  color: var(--gold-dim);
}

.ornament-line-cinematic {
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  color: var(--gold-dim);
  letter-spacing: 0.8em;
}

/* Portrait Grid — two brothers, side by side */
.committee-portraits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  max-width: 620px;
  margin: 0 auto;
}

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

.portrait-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.portrait-reveal[data-delay="1"] { transition-delay: 0.18s; }

/* Portrait Initials (placeholder before images load) */
.portrait-initials {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  opacity: 0.5;
  letter-spacing: 0.1em;
  z-index: 1;
  position: relative;
}

/* Portrait Frame */
.portrait-frame-cinematic {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 2px solid var(--gold-dim);
  border-radius: 2px;
  overflow: hidden;
  background: var(--void-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(196, 154, 78, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 8px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.portrait-frame-cinematic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(196, 154, 78, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 3;
}

.portrait-frame-cinematic::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

.portrait-frame-cinematic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: sepia(0.18) saturate(0.82);
  z-index: 1;
  transition: opacity 1.2s ease;
}

.portrait-frame-cinematic img.loaded { opacity: 0.88; }

.portrait-info { margin-top: var(--space-md); }

.portrait-title {
  display: block;
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.2em;
}

.portrait-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--bone);
}

.portrait-epithet {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-dim);
  margin-top: 0.45em;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
   VI.  DIALOG CARDS (Interstitial Explanation)
   ═══════════════════════════════════════════════════════════════ */

.dialog-card {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid rgba(196, 154, 78, 0.12);
  border-radius: 2px;
  background: rgba(10, 10, 9, 0.7);
  backdrop-filter: blur(4px);
  text-align: left;
}

.dialog-card-ornament {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gold-dim);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-md);
  opacity: 0.6;
}

.dialog-card-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  font-weight: 500;
}

.dialog-card-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--bone);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.dialog-card-text em { color: var(--gold-bright); font-style: italic; }

.dialog-card-text-dim {
  color: var(--bone-dim);
  font-style: italic;
  margin-top: var(--space-md);
}

.dialog-card-steps {
  margin: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.dialog-card-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-left: 2px solid var(--gold-dim);
  background: rgba(196, 154, 78, 0.03);
}

.step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  font-family: var(--font-terminal);
  font-size: 0.7rem;
  color: var(--gold);
  margin-top: 0.15em;
}

.step-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--bone);
  line-height: 1.6;
}

.step-text strong { color: var(--gold-bright); font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════
   VII.  SUGGESTED PROMPTS + SUMMONS BLOCK
   ═══════════════════════════════════════════════════════════════ */

.suggested-prompts {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}

.suggested-prompts-label {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: var(--space-xs);
  text-align: center;
}

.suggested-prompt {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--bone-dim);
  background: rgba(196, 154, 78, 0.03);
  border: 1px solid rgba(196, 154, 78, 0.14);
  border-radius: 2px;
  padding: 0.7em 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  line-height: 1.5;
}

.suggested-prompt:hover {
  color: var(--bone);
  border-color: var(--gold-dim);
  background: rgba(196, 154, 78, 0.06);
  transform: translateY(-1px);
}

.suggested-prompt::before {
  content: '\201C';
  color: var(--gold-dim);
  margin-right: 0.15em;
}
.suggested-prompt::after {
  content: '\201D';
  color: var(--gold-dim);
  margin-left: 0.1em;
}

.summons-btn-wrapper {
  margin-bottom: var(--space-2xl);
  position: relative;
}

.summons-btn-wrapper::before {
  content: '\2191';
  display: block;
  text-align: center;
  font-size: 1.4rem;
  color: var(--gold-dim);
  margin-bottom: 0.8rem;
  animation: summon-arrow-bob 2.4s ease-in-out infinite;
}

@keyframes summon-arrow-bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-6px); opacity: 1; }
}

.summon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  padding: 1.4em 3em;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  font-family: var(--font-display);
  transition: all 0.5s ease;
  position: relative;
  animation: summon-breathe 3s ease-in-out infinite;
}

.summon-btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  transition: border-color 0.5s ease;
}

.summon-btn:hover {
  background: rgba(196, 154, 78, 0.06);
  border-color: var(--gold-bright);
  box-shadow:
    0 0 30px rgba(196, 154, 78, 0.15),
    0 0 60px rgba(196, 154, 78, 0.05);
  transform: translateY(-2px);
  animation: none;
}

.summon-btn:hover::before { border-color: var(--gold-dim); }
.summon-btn:active { transform: translateY(0); }

.summon-btn-prefix {
  font-size: clamp(0.7rem, 1.3vw, 0.85rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.summon-btn-main {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

@keyframes summon-breathe {
  0%, 100% { box-shadow: 0 0 0 rgba(196, 154, 78, 0); border-color: var(--gold); }
  50% { box-shadow: 0 0 25px rgba(196, 154, 78, 0.2), 0 0 50px rgba(196, 154, 78, 0.08); border-color: var(--gold-bright); }
}

.providence-quote {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--bone-dim);
  border-left: 2px solid rgba(143, 176, 196, 0.25);
  padding-left: 1.2em;
  margin: 2rem auto;
  max-width: 540px;
  text-align: left;
  line-height: 1.7;
}

.summons-footer {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
  line-height: 2;
}

.summons-divider {
  margin: 0 0.8em;
  color: var(--gold-dim);
  opacity: 0.4;
}


/* ═══════════════════════════════════════════════════════════════
   VIII.  SCREENS / THE CHAMBER
   ═══════════════════════════════════════════════════════════════ */

.screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--void);
}

.screen.active { display: flex; }

#chamber-screen {
  display: none;
  flex-direction: column;
  background: var(--wood-dark);
}

#chamber-screen.active { display: flex; }

#portrait-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-sm);
  min-height: 170px;
  background: linear-gradient(180deg, #030303 0%, var(--wood-dark) 100%);
  border-bottom: 1px solid rgba(196, 154, 78, 0.1);
  overflow-x: auto;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   IX.  PORTRAIT GALLERY
   ═══════════════════════════════════════════════════════════════ */

.portrait-gallery {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-lg);
  width: 100%;
  max-width: 620px;
}

.patriot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 84px;
  max-width: 120px;
  flex: 0 1 110px;
  opacity: 0;
  transform: translateY(15px) scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.4s ease;
}

.patriot-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.patriot-card.idle {
  opacity: 0.2;
  transform: translateY(5px) scale(0.92);
  filter: grayscale(0.6);
}

.patriot-card.speaking { filter: brightness(1.12); }

.patriot-card.arriving {
  animation: patriot-arrive 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes patriot-arrive {
  0% { opacity: 0; transform: translateY(20px) scale(0.9); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.patriot-frame {
  position: relative;
  width: 92px;
  height: 118px;
  border: 2px solid var(--gold-dim);
  border-radius: 2px;
  overflow: hidden;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(196, 154, 78, 0.06),
    0 4px 20px rgba(0, 0, 0, 0.5);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.patriot-card.speaking .patriot-frame {
  border-color: var(--patriot-color, var(--gold));
  box-shadow:
    0 0 0 1px rgba(196, 154, 78, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 30px var(--gold-glow);
}

.patriot-card.arriving .patriot-frame {
  animation: arrival-frame-glow 1.5s ease forwards;
}

@keyframes arrival-frame-glow {
  0% { box-shadow: 0 0 0 rgba(196, 154, 78, 0); border-color: transparent; }
  40% { box-shadow: 0 0 40px rgba(196, 154, 78, 0.4), 0 0 80px rgba(196, 154, 78, 0.15); border-color: var(--gold-bright); }
  100% { box-shadow: 0 0 0 1px rgba(196, 154, 78, 0.06), 0 4px 20px rgba(0, 0, 0, 0.5); border-color: var(--gold-dim); }
}

.patriot-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 245, 220, 0.03) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.06) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Engraved-initials fallback (shown until/unless the plate loads) */
.patriot-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  opacity: 0.55;
  z-index: 1;
}

.patriot-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: sepia(0.18) saturate(0.82);
  z-index: 2;
  transition: opacity 1s ease;
}

.patriot-frame.loaded .patriot-portrait { opacity: 0.88; }

.patriot-nameplate {
  margin-top: var(--space-xs);
  font-family: var(--font-terminal);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: center;
  transition: color 0.4s ease;
  white-space: nowrap;
}

.patriot-card.speaking .patriot-nameplate { color: var(--gold); }

.patriot-glow {
  position: absolute;
  inset: -10px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 70%);
}

.patriot-card.speaking .patriot-glow { opacity: 0.5; }


/* ═══════════════════════════════════════════════════════════════
   X.  COMMITTEE BAR / BADGES
   ═══════════════════════════════════════════════════════════════ */

#committee-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--wood-medium);
  border-bottom: 1px solid rgba(196, 154, 78, 0.08);
  flex-shrink: 0;
  min-height: 40px;
}

#persona-badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

.persona-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.25em 0.6em;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-terminal);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  transition: all 0.3s ease;
}

.persona-badge.speaking {
  opacity: 1;
  box-shadow: 0 0 12px currentColor;
}

#chamber-controls { display: flex; gap: var(--space-sm); }

.control-btn {
  background: transparent;
  border: 1px solid rgba(196, 154, 78, 0.2);
  color: var(--gold-dim);
  padding: 0.3em 0.7em;
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}

.control-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.control-icon { margin-right: 0.3em; }


/* ═══════════════════════════════════════════════════════════════
   XI.  FLIGHT STATUS LINE
   ═══════════════════════════════════════════════════════════════ */

.flight-indicator {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5em var(--space-md);
  background: var(--void);
  border-bottom: 1px solid rgba(196, 154, 78, 0.08);
  color: var(--gold-dim);
  transition: color 0.6s ease, border-color 0.6s ease;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   XII.  DIALOGUE MESSAGES
   ═══════════════════════════════════════════════════════════════ */

#dialogue-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

#dialogue-scroll {
  height: 100%;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-md);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}

#dialogue-messages {
  max-width: 800px;
  margin: 0 auto;
}

.message {
  margin-bottom: var(--space-lg);
  animation: fadeUp 0.4s ease;
}

.message-seeker {
  display: flex;
  justify-content: flex-end;
}

.message-bubble {
  background: rgba(196, 154, 78, 0.08);
  border: 1px solid rgba(196, 154, 78, 0.15);
  border-radius: 2px;
  padding: 0.7em 1.1em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--bone);
  max-width: 75%;
  line-height: 1.7;
  white-space: pre-wrap;
}

.message-persona { max-width: 85%; }

.message-header {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

.message-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--bone);
  border-left: 2px solid var(--gold-dim);
  padding-left: var(--space-md);
}

.message-body p { margin-bottom: 0.7em; }
.message-body p:last-child { margin-bottom: 0; }
.message-body strong { color: var(--gold); font-weight: 600; }
.message-body em { font-style: italic; color: var(--bone); }
.message-body code {
  font-family: var(--font-terminal);
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15em 0.4em;
  border-radius: 2px;
}
.message-body blockquote {
  border-left: 2px solid var(--gold-dim);
  padding-left: var(--space-md);
  margin: 0.7em 0;
  color: var(--bone-dim);
  font-style: italic;
}

.message-system { text-align: center; }

.message-system .message-body {
  border-left: none;
  padding-left: 0;
  font-family: var(--font-terminal);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
}

.streaming-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--gold);
  margin-left: 2px;
  animation: cursor-blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

.speaker-header {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
}


/* ═══════════════════════════════════════════════════════════════
   XIII.  INPUT AREA
   ═══════════════════════════════════════════════════════════════ */

#input-area {
  padding: var(--space-md);
  background: var(--wood-medium);
  border-top: 1px solid rgba(196, 154, 78, 0.08);
  flex-shrink: 0;
}

#input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  max-width: 800px;
  margin: 0 auto;
}

#user-input {
  flex: 1;
  padding: 0.7em 1em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(196, 154, 78, 0.15);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  resize: none;
  border-radius: 0;
  outline: none;
  min-height: 42px;
  max-height: 150px;
  transition: border-color 0.3s ease;
}

#user-input:focus { border-color: var(--gold-dim); }

#user-input::placeholder {
  color: var(--smoke);
  opacity: 0.5;
  font-style: italic;
}

#send-btn {
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(196, 154, 78, 0.2);
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

#send-btn:hover {
  background: rgba(196, 154, 78, 0.08);
  border-color: var(--gold);
}

#send-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

#input-hint {
  text-align: center;
  margin-top: var(--space-xs);
}

.hint-text {
  font-family: var(--font-terminal);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--smoke);
}

.chamber-action-nudge {
  text-align: center;
  font-family: var(--font-terminal);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  color: var(--smoke);
}


/* ═══════════════════════════════════════════════════════════════
   XIV.  SETTINGS PANEL
   ═══════════════════════════════════════════════════════════════ */

#settings-panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 40;
  width: 300px;
  max-height: 100vh;
  overflow-y: auto;
  background: rgba(3, 3, 3, 0.97);
  border-left: 1px solid rgba(196, 154, 78, 0.1);
  padding: var(--space-lg);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

#settings-panel.hidden { display: none; }

.settings-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.setting-row { margin-bottom: var(--space-md); }

.setting-row-btns {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.binding-label {
  display: block;
  font-family: var(--font-terminal);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: var(--space-xs);
}

.binding-select {
  width: 100%;
  padding: 0.75em 1em;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(196, 154, 78, 0.2);
  color: var(--bone);
  font-family: var(--font-terminal);
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
  transition: border-color 0.3s ease;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
}

.binding-select:focus { border-color: var(--gold); }

.binding-select option {
  background: var(--void);
  color: var(--bone);
}


/* ═══════════════════════════════════════════════════════════════
   XV.  LOADING & JUMP
   ═══════════════════════════════════════════════════════════════ */

.jump-to-latest {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10;
  background: rgba(3, 3, 3, 0.92);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-terminal);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.5em 1.2em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.jump-to-latest.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.jump-to-latest:hover {
  background: rgba(196, 154, 78, 0.12);
  border-color: var(--gold);
}


/* ═══════════════════════════════════════════════════════════════
   XVI.  NAVIGATION SIGIL & FOOTER
   ═══════════════════════════════════════════════════════════════ */

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

.nav-sigil:hover { color: var(--gold-bright); }

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

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

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

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

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


/* ═══════════════════════════════════════════════════════════════
   XVII.  RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .committee-portraits {
    gap: var(--space-lg);
    max-width: 420px;
  }

  #portrait-stage {
    gap: var(--space-md);
    padding: var(--space-sm);
    min-height: auto;
  }

  .patriot-frame {
    width: 72px;
    height: 92px;
  }

  .patriot-card {
    min-width: 70px;
    max-width: 92px;
  }

  #committee-bar {
    padding: var(--space-xs) var(--space-sm);
    min-height: 32px;
  }

  #dialogue-scroll { padding: var(--space-md) var(--space-sm); }

  .message-body { font-size: 0.9rem; line-height: 1.75; }
  .message-bubble { max-width: 88%; font-size: 0.9rem; }
  .message-persona { max-width: 95%; }

  #input-area { padding: var(--space-sm); }
  #user-input { font-size: 16px; padding: 0.6em 0.8em; }

  .summon-btn { padding: 1.1em 2em; }
  .act-content { padding: 3rem 1.5rem; }

  #settings-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(196, 154, 78, 0.1);
  }

  .flight-indicator {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    padding: 0.4em var(--space-sm);
  }
}

@media (max-width: 480px) {
  .committee-portraits {
    gap: var(--space-md);
    max-width: 340px;
  }

  .patriot-frame { width: 64px; height: 82px; }
  .patriot-card { min-width: 62px; max-width: 84px; }

  .message-header { font-size: 0.78rem; margin-bottom: 0.3em; }
  .message-body { font-size: 0.88rem; padding-left: var(--space-sm); }

  #input-wrapper { gap: var(--space-xs); }
  #send-btn { width: 38px; height: 38px; font-size: 0.9rem; }
  .hint-text { font-size: 0.5rem; }
}

/* iOS safe areas */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #input-area {
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
  }
}


/* ═══════════════════════════════════════════════════════════════
   XVIII.  KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

/* Motes drift gently upward — the eye is taught to look up */
@keyframes ember-float {
  0% { opacity: 0; transform: translateY(100vh) scale(0.5); }
  10% { opacity: 0.4; }
  90% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-20vh) scale(0.1); }
}

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


/* ═══════════════════════════════════════════════════════════════
   XIX.  PRINT
   ═══════════════════════════════════════════════════════════════ */

@media print {
  body { background: white; color: black; }
  #cinematic-intro, .screen, .flight-indicator { display: none !important; }
}
