/*
 * About page story (pages/about + about_controller.js).
 *
 * Default styles are the static layout: every scene is a full-height section
 * shown in its "resting" pose. When the controller adds `.is-live`, the stage
 * pins to the viewport, scenes stack on top of each other, and scroll-driven
 * Web Animations take over the motion.
 */

.story {
  --story-header: 0px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  position: relative;
  background: #0b0b0d;
}

.story-stage {
  position: relative;
}

.story-scene {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--scene-ink);
  background: var(--scene-bg);
}

.scene-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene-art > * {
  position: absolute;
}

.story svg [data-kf] {
  transform-box: fill-box;
  transform-origin: center;
}

.story .layer {
  will-change: transform;
}

.scene-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  min-height: 100svh;
  padding: 1.25rem;
}

.scene-copy {
  max-width: 36rem;
}

/* -- Pinned, scroll-driven mode ------------------------------------------ */

.story.is-live .story-stage {
  position: sticky;
  top: var(--story-header);
  height: calc(100svh - var(--story-header));
  overflow: hidden;
  background: #0b0b0d;
}

.story.is-live .story-scene {
  position: absolute;
  inset: 0;
  min-height: 0;
  pointer-events: none;
}

.story.is-live .story-scene:not(.is-near) {
  background: none;
}

.story.is-live .story-scene:not(.is-near) .scene-art {
  visibility: hidden;
}

.story.is-live .scene-inner {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.story.is-live .copy-stack {
  display: grid;
}

.story.is-live .copy-stack > * {
  grid-area: 1 / 1;
}

.story:not(.is-live) .copy-stack > * + * {
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .scene-inner {
    align-items: center;
    padding: 3rem 6vw;
  }

  .scene-inner--top {
    align-items: flex-start;
    padding-top: clamp(4.5rem, 12vh, 8rem);
  }

  .scene-copy {
    max-width: min(36rem, 42vw);
  }

  .scene-copy.intro-copy {
    max-width: 48rem;
  }
}

@media (max-width: 767px) {
  .scene-copy {
    padding: 1.1rem 1.15rem 1.25rem;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--card-bg, var(--scene-bg)) 82%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

/* -- Type ------------------------------------------------------------------ */

.scene-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  margin: 0 0 1rem;
  font: 600 0.72rem/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scene-eyebrow span + span::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  margin-right: 0.9rem;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.6;
}

.scene-title {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw + 0.5rem, 4.4rem);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.scene-text {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(0.98rem, 0.5vw + 0.8rem, 1.18rem);
  line-height: 1.6;
  opacity: 0.92;
  text-wrap: pretty;
}

.story-w {
  display: inline-block;
  overflow: hidden;
  padding: 0 0.05em 0.12em;
  margin: 0 -0.05em -0.12em;
  vertical-align: top;
}

.story-wi {
  display: inline-block;
}

/* -- 0. Intro -------------------------------------------------------------- */

.scene-inner--center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.scene-intro .scene-copy {
  background: none;
  backdrop-filter: none;
}

.scene-intro .scene-eyebrow {
  justify-content: center;
}

.intro-title {
  font-size: clamp(3.2rem, 9vw, 8.5rem);
}

.scene-intro .scene-text {
  margin: 0 auto;
}

.scene-intro .story-wi {
  animation: story-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.scene-intro .story-w:nth-child(2) .story-wi { animation-delay: 0.1s; }
.scene-intro .story-w:nth-child(3) .story-wi { animation-delay: 0.2s; }

.intro-path {
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-path path {
  fill: none;
  stroke: #e3a46a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
}

.intro-shape {
  width: 1.1rem;
  height: 1.1rem;
}

.intro-shape--dot { border-radius: 50%; background: #f08a4b; }
.intro-shape--ring { border: 3px solid #3f6fb5; border-radius: 50%; }
.intro-shape--square { border-radius: 3px; background: #2f8f7b; }
.intro-shape--plus {
  background:
    linear-gradient(#e0b23a, #e0b23a) center / 100% 30% no-repeat,
    linear-gradient(#e0b23a, #e0b23a) center / 30% 100% no-repeat;
}

.intro-sun {
  left: 50%;
  bottom: calc(min(70vw, 60vh) * -0.62);
  width: min(70vw, 60vh);
  aspect-ratio: 1;
  margin-left: calc(min(70vw, 60vh) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #ffd58a, #ffae6e 40%, #ff8f5a);
}

.scene-chicago .scene-copy {
  text-shadow: 0 2px 18px #0b1d3a, 0 0 4px #0b1d3a;
}

.intro-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

.intro-cue-line {
  position: relative;
  width: 1px;
  height: 3.5rem;
  overflow: hidden;
  background: rgba(29, 26, 22, 0.2);
}

.intro-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  animation: story-cue 1.8s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

/* -- 1. Abilene ------------------------------------------------------------ */

.abilene-sky {
  inset: 0;
  background: linear-gradient(#ff8f5a 0%, #ffae6e 40%, #ffd79b 72%, #ffe6b5 100%);
}

.abilene-dusk {
  inset: 0;
  background: linear-gradient(#5e3478 0%, rgba(214, 94, 84, 0.55) 50%, transparent 82%);
}

.abilene-sun {
  --size: min(46vw, 48vh);
  left: 50%;
  bottom: 26%;
  width: var(--size);
  aspect-ratio: 1;
  margin-left: calc(var(--size) / -2);
  border-radius: 50%;
  background: linear-gradient(#fff3c4, #ffd36e 45%, #ff9c4a);
  -webkit-mask: linear-gradient(#000 56%, transparent 56% 60%, #000 60% 67%, transparent 67% 72%, #000 72% 79%, transparent 79% 85%, #000 85%);
  mask: linear-gradient(#000 56%, transparent 56% 60%, #000 60% 67%, transparent 67% 72%, #000 72% 79%, transparent 79% 85%, #000 85%);
}

.abilene-birds {
  left: 0;
  top: 16%;
  width: 40%;
}

.abilene-birds path {
  fill: none;
  stroke: #6b2a12;
  stroke-width: 4;
  stroke-linecap: round;
}

.abilene-mesas,
.abilene-prairie,
.abilene-front {
  left: 0;
  width: 100%;
}

.abilene-mesas--far { bottom: 24%; height: 26%; }
.abilene-mesas--far path { fill: #f29b67; }
.abilene-mesas--near { bottom: 19%; height: 26%; }
.abilene-mesas--near path { fill: #de7a4c; }

.abilene-prairie { bottom: 9%; height: 28%; }
.abilene-prairie-ground { fill: #b9532f; }
.abilene-mesquite path { fill: none; stroke: #7e3519; stroke-width: 4; stroke-linecap: round; }
.abilene-mesquite circle { fill: #8a3a1c; }

.abilene-front { bottom: 0; height: 46%; }
.abilene-ground { fill: #6b2814; }

.abilene-windmill path,
.abilene-windmill rect,
.abilene-windmill circle {
  fill: #3a160a;
  stroke: #3a160a;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.abilene-windmill .abilene-rotor-ring {
  fill: none;
  stroke-width: 3;
}

.abilene-rotor path {
  stroke-width: 1;
}

.abilene-tower path,
.abilene-tower rect {
  fill: #4a1d0d;
  stroke: #4a1d0d;
  stroke-width: 5;
  stroke-linecap: round;
}

.abilene-tower text {
  fill: #ffb36b;
  font: 700 19px/1 var(--mono);
  letter-spacing: 0.12em;
}

.abilene-fence rect { fill: #3a160a; }
.abilene-fence path { fill: none; stroke: #3a160a; stroke-width: 2; }

.abilene-tumbleweed circle,
.abilene-tumbleweed path {
  fill: none;
  stroke: #5a2410;
  stroke-width: 3;
}

@media (min-width: 768px) {
  .abilene-sun { left: 66%; }
}

/* -- 2. Tulsa -------------------------------------------------------------- */

.scene-tulsa {
  --u: min(1.9vw, 1.15vh);
}

.tulsa-wall {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 46px),
    linear-gradient(#2a807b, #1b5c59 75%);
}

.tulsa-lamp {
  left: 0;
  right: 0;
  top: 5%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(255, 228, 160, 0.3), transparent);
}

.tulsa-pennant {
  display: none;
  right: 5%;
  top: 9%;
  width: min(17vw, 210px);
  transform-origin: left center;
}

.tulsa-pennant path { fill: #f2b705; }
.tulsa-pennant rect { fill: #6b4325; }
.tulsa-pennant text {
  fill: #13294b;
  font: 800 25px/1 var(--mono);
  letter-spacing: 0.12em;
}

.tulsa-desk {
  left: 0;
  right: 0;
  bottom: 0;
  height: 21%;
  background: linear-gradient(#94623a, #6f4528);
  box-shadow: inset 0 0.8vh 0 #b07a4a;
}

.tulsa-box {
  display: none;
  left: 33%;
  bottom: 2%;
  width: min(10vw, 150px);
}

.tulsa-box rect { fill: #f7f3ea; }
.tulsa-box-flap { fill: #e2dac8; }
.tulsa-box-spot { fill: #1c1c1c; }

.pc-wrap {
  left: 50%;
  bottom: 13%;
  width: calc(var(--u) * 46);
  margin-left: calc(var(--u) * -23);
}

.pc {
  position: relative;
  transform-origin: calc(var(--u) * 23) calc(var(--u) * 16.75);
  will-change: transform;
}

.pc-monitor {
  position: relative;
  height: calc(var(--u) * 38);
  border-radius: calc(var(--u) * 2.4);
  background: linear-gradient(165deg, #f1e9d4, #d6c9a6);
  box-shadow:
    inset 0 calc(var(--u) * -0.8) 0 rgba(0, 0, 0, 0.12),
    inset 0 calc(var(--u) * 0.5) 0 rgba(255, 255, 255, 0.6),
    0 calc(var(--u) * 2.5) calc(var(--u) * 5) rgba(0, 0, 0, 0.35);
}

.pc-screen {
  position: absolute;
  top: calc(var(--u) * 3.5);
  left: calc(var(--u) * 4);
  right: calc(var(--u) * 4);
  height: calc(var(--u) * 26.5);
  overflow: hidden;
  border-radius: calc(var(--u) * 1.8);
  background: #0b1d3a;
  box-shadow: 0 0 0 calc(var(--u) * 0.8) #b8aa86;
}

.pc-code {
  position: absolute;
  inset: 0;
  padding: calc(var(--u) * 2) calc(var(--u) * 2.4);
  color: #8dffb0;
  font: max(calc(var(--u) * 1.3), 8px) / 1.6 var(--mono);
  text-shadow: 0 0 calc(var(--u) * 0.6) rgba(141, 255, 176, 0.55);
  box-shadow: inset 0 0 calc(var(--u) * 4) rgba(0, 0, 0, 0.65);
}

.pc-code::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 25% 0%, rgba(255, 255, 255, 0.12), transparent 50%);
}

.pc-code p {
  margin: 0;
  white-space: pre;
}

.pc-cursor {
  animation: story-blink 1s steps(1) infinite;
}

.pc-msgbox {
  position: absolute;
  right: calc(var(--u) * 2.4);
  bottom: calc(var(--u) * 2.4);
  width: calc(var(--u) * 17);
  padding: 2px;
  background: #c3c3c3;
  color: #000;
  font: max(calc(var(--u) * 1.15), 8px) / 1.35 Tahoma, "Segoe UI", sans-serif;
  box-shadow: inset -2px -2px #0a0a0a, inset 2px 2px #fff, inset -3px -3px #808080, inset 3px 3px #dfdfdf;
}

.pc-msgbox-title {
  padding: 0.25em 0.5em;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-weight: 700;
}

.pc-msgbox-body {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.9em 0.8em 0.5em;
}

.pc-msgbox-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: #1d5fd6;
  color: #fff;
  font: italic 700 1.1em Georgia, serif;
}

.pc-msgbox-actions {
  display: flex;
  justify-content: center;
  padding: 0.3em 0 0.8em;
}

.pc-msgbox-actions span {
  min-width: 5.5em;
  padding: 0.25em 0;
  text-align: center;
  outline: 1px dotted #000;
  outline-offset: -4px;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}

.pc-chin {
  position: absolute;
  left: calc(var(--u) * 4.5);
  right: calc(var(--u) * 4.5);
  bottom: calc(var(--u) * 2.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pc-led {
  width: calc(var(--u) * 0.9);
  height: calc(var(--u) * 0.9);
  border-radius: 50%;
  background: #5cff8d;
  box-shadow: 0 0 calc(var(--u) * 0.8) #5cff8d;
}

.pc-vents {
  width: calc(var(--u) * 10);
  height: calc(var(--u) * 1.6);
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 calc(var(--u) * 0.35), transparent 0 calc(var(--u) * 0.9));
}

.pc-neck {
  width: calc(var(--u) * 12);
  height: calc(var(--u) * 2.5);
  margin: 0 auto;
  background: linear-gradient(#cdbf9b, #b9aa84);
}

.pc-base {
  width: calc(var(--u) * 28);
  height: calc(var(--u) * 2);
  margin: 0 auto;
  border-radius: calc(var(--u) * 0.6) calc(var(--u) * 0.6) calc(var(--u) * 0.3) calc(var(--u) * 0.3);
  background: linear-gradient(#e6dcc2, #c8b993);
}

.pc-keyboard {
  width: calc(var(--u) * 44);
  height: calc(var(--u) * 4.5);
  margin: calc(var(--u) * 1.5) auto 0;
  border-radius: calc(var(--u) * 0.6);
  background:
    linear-gradient(transparent 0 28%, #c4b590 28% 36%, transparent 36% 64%, #c4b590 64% 72%, transparent 72%),
    repeating-linear-gradient(90deg, #c4b590 0 calc(var(--u) * 0.3), #efe7d2 0 calc(var(--u) * 2.2));
  box-shadow: 0 calc(var(--u) * 0.6) 0 #b3a47d, 0 calc(var(--u) * 1.4) calc(var(--u) * 2) rgba(0, 0, 0, 0.3);
}

.pc-tower {
  display: none;
  position: absolute;
  left: calc(100% + var(--u) * 3);
  bottom: calc(var(--u) * 6);
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 1.4);
  width: calc(var(--u) * 12);
  height: calc(var(--u) * 34);
  padding-top: calc(var(--u) * 3);
  border-radius: calc(var(--u) * 1);
  background: linear-gradient(165deg, #efe6cf, #cfc19c);
  box-shadow: inset 0 calc(var(--u) * -0.6) 0 rgba(0, 0, 0, 0.12), 0 calc(var(--u) * 2) calc(var(--u) * 4) rgba(0, 0, 0, 0.3);
}

.pc-drive {
  width: 76%;
  height: calc(var(--u) * 2.2);
  border-radius: 2px;
  background: linear-gradient(#d8ccab, #c6b891);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.pc-drive--floppy {
  height: calc(var(--u) * 1.6);
  background: linear-gradient(transparent 42%, #3a3328 42% 58%, transparent 58%), linear-gradient(#d8ccab, #c6b891);
}

.pc-power {
  width: calc(var(--u) * 2.4);
  height: calc(var(--u) * 2.4);
  margin: auto 0 calc(var(--u) * 3);
  border-radius: 50%;
  background: #d3c6a3;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
  .pc-tower { display: flex; }
}

@media (min-width: 768px) {
  .scene-tulsa { --u: min(0.72vw, 1.15vh); }
  .pc-wrap { left: 66%; bottom: 16%; }
  .tulsa-pennant,
  .tulsa-box { display: block; }
}

/* -- 3. Chicago ------------------------------------------------------------ */

.chicago-sky {
  inset: 0;
  background: linear-gradient(#0b1d3a 0%, #13275a 55%, #3b2f6e 85%, #5b3d7a 100%);
}

.chicago-stars,
.family-stars {
  inset: 0 0 40% 0;
}

.chicago-stars::before,
.family-stars::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 42%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 27% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 8%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 63% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 20%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 79% 62%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 32%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 93% 10%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 70%, #fff 50%, transparent 51%);
  animation: story-twinkle 3.5s ease-in-out infinite alternate;
}

.chicago-far,
.chicago-main,
.chicago-track {
  left: 0;
  width: 100%;
}

.chicago-far { bottom: 19%; height: 34%; }
.chicago-far-shape { fill: #1a2b5c; }
#chicago-win-far rect { fill: #a9bbff; opacity: 0.22; }

.chicago-main { bottom: 13%; height: 50%; }
.chicago-buildings { fill: #0a1532; }
#chicago-win rect { fill: #ffd98a; opacity: 0.55; }
#chicago-win-b rect { fill: #ffe7b0; opacity: 0.4; }
.chicago-antennas { fill: none; stroke: #0a1532; stroke-width: 5; }
.chicago-bracing { fill: none; stroke: #1d2c5c; stroke-width: 2.5; }
.chicago-beacon { fill: #ff4d5e; animation: story-blink 1.6s steps(1) infinite; }
.chicago-crown-roof { fill: #0a1532; }
.chicago-crown-glass { fill: #ffe2a0; opacity: 0.9; }
.chicago-crown-mullions { stroke: #0a1532; stroke-width: 2; }

.chicago-track { bottom: 0; height: 17%; }
.chicago-steel { fill: #050a18; }
.chicago-steel-brace { stroke: #050a18; stroke-width: 4; }
.chicago-car { fill: #a9b6d6; }
.chicago-car-window { fill: #ffe39a; }
.chicago-headlight { fill: #fff6c8; }

/* -- 4. Illinois ----------------------------------------------------------- */

.scene-illinois {
  --card-bg: #13294b;
}

.illinois-panel {
  top: 0;
  bottom: 0;
  width: 50.5%;
  overflow: hidden;
}

.illinois-panel--code { left: 0; }
.illinois-panel--philosophy { right: 0; }

.illinois-panel-fill,
.illinois-glyphs {
  position: absolute;
  inset: 0;
}

.illinois-panel--code .illinois-panel-fill { background-color: #13294b; }
.illinois-panel--philosophy .illinois-panel-fill { background-color: #e84a27; }

.illinois-glyph {
  position: absolute;
  color: rgba(255, 255, 255, 0.28);
  font-size: clamp(0.9rem, 1.5vw, 1.4rem);
  line-height: 1;
  white-space: nowrap;
}

.illinois-panel--philosophy .illinois-glyph { color: rgba(255, 255, 255, 0.6); }
.illinois-glyph.mono { font-family: var(--mono); }
.illinois-glyph.serif { font-family: var(--serif); }
.illinois-glyph.italic { font-style: italic; }
.illinois-glyph.big { font-size: clamp(1.8rem, 4vw, 3.4rem); }
.illinois-glyph.huge { font-size: clamp(4rem, 12vw, 11rem); }

.illinois-column {
  position: absolute;
  right: 10%;
  bottom: 0;
  height: 62%;
}

.illinois-column path { fill: rgba(255, 255, 255, 0.2); }
.illinois-column .illinois-flutes { fill: none; stroke: rgba(160, 40, 15, 0.35); stroke-width: 3; }

.illinois-amp {
  left: 50%;
  top: 62%;
  width: 1em;
  margin: -0.62em 0 0 -0.5em;
  color: #fff;
  font: italic 700 clamp(8rem, 28vh, 20rem) / 1 var(--serif);
  text-align: center;
  text-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .illinois-amp { top: 50%; }
  .illinois-copy { max-width: min(36rem, 38vw); }
}

/* -- 5. Theater ------------------------------------------------------------ */

.theater-wall {
  inset: 0;
  background: radial-gradient(80% 60% at 56% 30%, #3a1414, #160808 60%, #0c0404);
}

.theater-screen {
  --sw: 88vw;
  left: 6vw;
  top: 6%;
  width: var(--sw);
  aspect-ratio: 1.85;
  overflow: hidden;
  border-radius: 0.4rem;
  background: #ece6d6;
  box-shadow: 0 0 0 0.4rem #1a0a0a, 0 0 5rem rgba(255, 236, 190, 0.25);
}

.theater-leader {
  display: block;
  width: 100%;
  height: 100%;
}

.theater-leader-bg { fill: #ece6d6; }
.theater-leader-ring { fill: none; stroke: #2a2420; stroke-width: 1.2; }
.theater-leader-sweep { fill: none; stroke: rgba(40, 30, 25, 0.2); stroke-width: 38; }
.theater-leader-hand path { stroke: #2a2420; stroke-width: 1.4; }
.theater-leader-number { fill: #2a2420; font: 700 40px/1 system-ui, sans-serif; }

.theater-beam {
  inset: 0;
  background: linear-gradient(to top, rgba(255, 240, 205, 0.16), rgba(255, 240, 205, 0.03));
  clip-path: polygon(46% 100%, 54% 100%, 94% 7%, 6% 7%);
  mix-blend-mode: screen;
}

.theater-seats {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 24%;
}

.theater-seat--back rect { fill: #2a0d10; }
.theater-seat--front rect { fill: #170607; }

.theater-popcorn {
  display: none;
  left: 3%;
  bottom: 3%;
  width: clamp(64px, 7vw, 110px);
}

.theater-bucket { fill: #f4efe6; }
.theater-bucket-stripes { fill: #d0202f; }
.theater-popcorn-top,
.theater-kernel { fill: #ffe7a3; }
.theater-kernel { opacity: 0; }

.theater-curtain {
  top: 0;
  bottom: 0;
  width: 51%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.5)),
    repeating-linear-gradient(90deg, #5c0a16 0, #8f1626 1.6vw, #b52438 2.6vw, #8a1424 3.8vw, #5c0a16 5.2vw);
}

.theater-curtain--left { left: 0; transform: translateX(-86%); }
.theater-curtain--right { right: 0; transform: translateX(86%); }

.theater-valance {
  left: 0;
  right: 0;
  top: 0;
  height: 5%;
  background: linear-gradient(#5c0a16, #9b1a2c);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
}

.theater-valance::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 2.2vw;
  background: radial-gradient(circle at 50% 0, #9b1a2c 64%, transparent 66%) 0 0 / 4.4vw 2.2vw repeat-x;
}

.theater-marquee {
  position: relative;
  max-width: 30rem;
  padding: 1.5rem 1.6rem 1.7rem;
  border-radius: 0.9rem;
  background: #140606;
  box-shadow: 0 0 0 0.5rem #2b0b0b, 0 1.5rem 4rem rgba(0, 0, 0, 0.6), 0 0 4rem rgba(255, 190, 90, 0.12);
}

.theater-marquee::before {
  content: "";
  position: absolute;
  inset: -0.5rem;
  padding: 0.5rem;
  border-radius: 1.1rem;
  background: radial-gradient(circle, #ffd27a 0 0.17rem, rgba(255, 210, 122, 0.25) 0.18rem 0.26rem, transparent 0.28rem) 0 0 / 0.9rem 0.9rem;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: story-bulbs 0.8s steps(2) infinite;
  pointer-events: none;
}

.theater-reel {
  position: absolute;
  right: -1.4rem;
  top: -1.6rem;
  width: 3.8rem;
}

.theater-reel circle { fill: #2e2e2e; stroke: #8a8a8a; stroke-width: 3; }
.theater-reel .theater-reel-hole { fill: #140606; stroke: none; }

.scene-theater .scene-inner {
  align-items: flex-end;
  padding-bottom: 5.5rem;
}

@media (min-width: 768px) {
  .theater-screen {
    --sw: min(46vw, 92vh);
    left: calc(60% - var(--sw) / 2);
    top: 9%;
  }

  .theater-beam { clip-path: polygon(57% 100%, 63% 100%, 83% 9%, 37% 9%); }
  .theater-popcorn { display: block; }
  .scene-theater .scene-inner { align-items: center; padding-bottom: 3rem; }
  .theater-marquee { max-width: min(30rem, 30vw); }
}

/* -- 6. Mizzou ------------------------------------------------------------- */

.mizzou-grid {
  inset: 0;
  background:
    radial-gradient(rgba(241, 184, 45, 0.12) 1px, transparent 1.5px) 0 0 / 28px 28px,
    radial-gradient(70% 60% at 70% 50%, #1d1708, #0d0c0a);
}

.mizzou-circuit {
  inset: 0;
  width: 100%;
  height: 100%;
}

.mizzou-trace {
  fill: none;
  stroke: rgba(241, 184, 45, 0.42);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}

.mizzou-pulse {
  fill: none;
  stroke: #ffe08a;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0.08 1;
  stroke-dashoffset: 0.08;
}

.mizzou-pad { fill: #0d0c0a; stroke: #f1b82d; stroke-width: 3; }

.mizzou-stage {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0 1.25rem 6.5rem;
}

.mizzou-cap {
  width: clamp(100px, 13vw, 180px);
}

.mizzou-cap-board { fill: #1a1a1a; stroke: #f1b82d; stroke-width: 2; }
.mizzou-cap-crown { fill: #111; }
.mizzou-cap-tassel { fill: none; stroke: #f1b82d; stroke-width: 3; }
.mizzou-cap-tassel-end,
.mizzou-cap-button { fill: #f1b82d; }

.mizzou-diplomas {
  display: flex;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.mizzou-diploma {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  width: clamp(140px, 15vw, 230px);
  aspect-ratio: 4 / 3;
  padding: 0.9rem 1rem;
  border-radius: 0.3rem;
  background: #fbf6e8;
  color: #2a2010;
  box-shadow: inset 0 0 0 0.3rem #fbf6e8, inset 0 0 0 0.45rem #c99a2e, 0 1.2rem 2.5rem rgba(0, 0, 0, 0.5);
}

.mizzou-diploma-school {
  font: 600 clamp(0.5rem, 0.65vw, 0.68rem) / 1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.mizzou-diploma-degree {
  font: 700 clamp(0.95rem, 1.35vw, 1.35rem) / 1.1 var(--serif);
}

.mizzou-diploma-seal {
  position: absolute;
  right: 0.8rem;
  bottom: 0.7rem;
  width: clamp(1.4rem, 2.2vw, 2.2rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #f6d27a, #c99a2e 70%);
  box-shadow: 0 0 0 0.2rem rgba(201, 154, 46, 0.35);
}

@media (min-width: 768px) {
  .mizzou-stage {
    left: auto;
    width: 48%;
    justify-content: center;
    padding: 0 5vw 0 0;
  }
}

/* -- 7. Career ------------------------------------------------------------- */

.career-sky {
  inset: 0;
  background: linear-gradient(#b9d4f1, #e3eefa 55%, #f6f9fd);
}

.career-sun {
  right: 10%;
  top: 14%;
  width: 9rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7d6, #ffe08a 55%, rgba(255, 224, 138, 0) 72%);
}

.career-cloud {
  width: 8rem;
  height: 2.4rem;
  border-radius: 2rem;
  background: #fff;
  opacity: 0.85;
  box-shadow: 2rem -1rem 0 0.2rem #fff, -1.4rem -0.5rem 0 -0.2rem #fff;
}

.career-ticker {
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  height: 2.3rem;
  overflow: hidden;
  background: #12213a;
  color: #9be7a0;
}

.career-ticker-track {
  display: flex;
  gap: 2.5rem;
  padding-left: 2rem;
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.career-city {
  left: 0;
  bottom: 0;
  width: 100%;
}

.story.is-live .career-city {
  width: auto;
  max-width: none;
  height: 54%;
  aspect-ratio: 3200 / 600;
}

.career-rise { transform-origin: 50% 100%; }
.career-tower--a { fill: #5b7fae; }
.career-tower--b { fill: #3f5f8f; }
.career-tower--c { fill: #7d9dc7; }
#career-win rect { fill: #dbe9f8; opacity: 0.55; }
.career-door { fill: #1f3354; }
.career-mast { fill: none; stroke: #3f5f8f; stroke-width: 4; }
.career-flag { fill: #e85d4a; }
.career-tag rect { fill: #12213a; }
.career-tag text { fill: #fff; font: 600 20px/1 var(--mono); letter-spacing: 0.06em; }
.career-tree rect { fill: #6b4a2f; }
.career-tree circle { fill: #4f9a6a; }
.career-garage { fill: #f0e6d8; stroke: #c7b8a2; stroke-width: 2; }
.career-garage-door { fill: #d9cbb6; }
.career-garage-slats { stroke: #bfae95; stroke-width: 2; }
.career-sign { fill: #12213a; }
.career-sign-text { fill: #9be7a0; font: 700 16px/1 var(--mono); }
.career-loft { fill: #c46a46; }
.career-loft-window { fill: #ffe9b8; }
.career-neon { fill: #1c1030; }
.career-neon-text { fill: #ff7ad9; font: 700 15px/1 var(--mono); letter-spacing: 0.08em; }
.career-pad { fill: #59657a; }
.career-pad-tower { fill: none; stroke: #59657a; stroke-width: 4; }
.career-rocket { fill: #fafafa; stroke: #c9d2df; stroke-width: 2; }
.career-rocket-fin { fill: #e85d4a; }
.career-rocket-window { fill: #4f8fd6; stroke: #c9d2df; stroke-width: 3; }
.career-flame { fill: #ffb347; opacity: 0; }
.career-cowork { fill: #8fd3b6; }
.career-plant { fill: #3f8f5f; }
.career-frame { fill: none; stroke: #e0a03a; stroke-width: 6; }
.career-crane { fill: none; stroke: #f2b53a; stroke-width: 5; }
.career-beam { fill: #59657a; }
.story svg .career-hook { transform-box: view-box; transform-origin: 2560px 176px; }
.career-banner { fill: #e85d4a; }
.career-banner-text { fill: #fff; font: 700 16px/1 var(--mono); letter-spacing: 0.08em; }
.career-road { fill: #34425a; }
.career-road-line { fill: none; stroke: #f6f9fd; stroke-width: 3; stroke-dasharray: 30 24; }
.career-car--a { fill: #e85d4a; }
.career-car--b { fill: #ffd166; }

.scene-career .scene-inner {
  padding-top: 3.5rem;
}

/* -- 8. Family ------------------------------------------------------------- */

.family-dusk {
  inset: 0;
  background: linear-gradient(#3a2b6e 0%, #8b4d86 45%, #f08a63 78%, #ffc38a 100%);
}

.family-night {
  inset: 0;
  background: linear-gradient(#0d1030 0%, #1b1f4d 50%, #2d2a63 85%, #3c3170 100%);
}

.family-moon {
  right: 14%;
  top: 12%;
  width: clamp(56px, 7vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset calc(clamp(56px, 7vw, 96px) * -0.22) calc(clamp(56px, 7vw, 96px) * 0.12) 0 0 #fff1c9;
  filter: drop-shadow(0 0 1.2rem rgba(255, 241, 201, 0.45));
}

.family-hills {
  left: -50vw;
  bottom: 0;
  width: 150vw;
  height: 62%;
}

.family-hill--back { fill: #3d2f66; }
.family-hill--front { fill: #221c3f; }
.family-house { fill: #2e2550; }
.family-house-dark,
.family-door { fill: #1a1530; }
.family-window { fill: #15112a; }
.family-window-lit { fill: #ffd27a; }
.family-mullion { stroke: #2e2550; stroke-width: 3; }
.family-smoke { fill: rgba(255, 255, 255, 0.6); opacity: 0; }
.family-fence path { fill: #2f2856; stroke: #2f2856; stroke-width: 3; }
.family-bike circle,
.family-bike path { fill: none; stroke: #120f24; stroke-width: 3; stroke-linecap: round; }
.family-tree path { fill: none; stroke: #140f28; stroke-width: 9; stroke-linecap: round; }
.family-tree circle { fill: #18132e; }
.story svg .family-swing { transform-box: view-box; transform-origin: 1204px 296px; }
.family-swing path { stroke: #120f24; stroke-width: 3; }
.family-swing ellipse { fill: none; stroke: #120f24; stroke-width: 6; }

@media (min-width: 768px) {
  .family-hills { left: 0; width: 100%; }
}

.family-firefly {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff3a8;
  box-shadow: 0 0 12px 4px rgba(255, 243, 168, 0.6);
  animation: story-drift 7s ease-in-out infinite;
}

/* -- 9. Today -------------------------------------------------------------- */

.scene-today .scene-art {
  background: radial-gradient(60% 50% at 70% 55%, #141a3a, #0a0d1c 70%);
}

.today-glow {
  inset: 0;
  background: radial-gradient(40% 40% at 72% 50%, rgba(255, 122, 147, 0.22), transparent 70%);
}

.today-net {
  --size: min(84vw, 46vh);
  left: 50%;
  bottom: 3%;
  width: var(--size);
  margin-left: calc(var(--size) / -2);
}

.today-net svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.today-prompt {
  margin-bottom: 0.4rem;
  color: #a5f3fc;
  font: 500 clamp(0.78rem, 1.1vw, 1rem) / 1.4 var(--mono);
  text-align: center;
  white-space: nowrap;
}

.today-caret {
  margin-left: 0.15em;
  animation: story-blink 1s steps(1) infinite;
}

.today-edges line { stroke: rgba(125, 211, 252, 0.22); stroke-width: 1.5; }

.today-pulse {
  stroke: #a5f3fc;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0.2 1;
  stroke-dashoffset: 0.2;
}

.today-node-glow { fill: #67e8f9; opacity: 0.18; }
.today-node { fill: #a5f3fc; }

.today-heart {
  fill: rgba(255, 122, 147, 0.16);
  stroke: rgba(255, 122, 147, 0.7);
  stroke-width: 3;
  opacity: 0;
}

@media (min-width: 768px) {
  .today-net {
    --size: min(40vw, 70vh);
    left: auto;
    right: 6vw;
    top: 50%;
    bottom: auto;
    margin: calc(var(--size) / -2) 0 0;
  }

}

/* -- HUD, chapter rail, progress ------------------------------------------- */

.story-hud,
.story-rail,
.story-progress {
  display: none;
}

.story.is-live .story-hud {
  position: absolute;
  z-index: 20;
  left: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  border-radius: 1rem;
  background: rgba(12, 12, 18, 0.55);
  color: #fff;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  transition: opacity 0.4s, transform 0.4s;
}

.story-hud.is-hidden {
  opacity: 0;
  transform: translateY(1rem);
}

.hud-map {
  flex: none;
  width: 72px;
  height: 64px;
  transition: width 0.4s, opacity 0.4s;
}

.story-hud.is-unmapped .hud-map {
  width: 0;
  opacity: 0;
}

#hud-dots circle { fill: rgba(255, 255, 255, 0.22); }
.hud-route { fill: none; stroke: #ffd27a; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; }
.hud-city { fill: #fff; }

.story svg .hud-ring {
  fill: none;
  stroke: #ffd27a;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: story-ping 1.6s ease-out infinite;
}

.hud-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 7.5rem;
}

.hud-place,
.hud-year {
  display: block;
  overflow: hidden;
}

.hud-place span,
.hud-year span {
  display: inline-block;
}

.hud-place span {
  font: 600 0.68rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hud-year span {
  font: 600 1.35rem/1.1 var(--serif);
  font-variant-numeric: tabular-nums;
}

.story.is-live .story-progress {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: 0;
  display: block;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.story-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f08a4b, #ffd27a, #67e8f9, #ff7a93);
  transform: scaleX(0);
  transform-origin: left;
}

.story-rail button {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: height 0.3s, background-color 0.3s;
}

.story-rail button[aria-current] {
  height: 1.8rem;
  background: #fff;
}

.story-rail button span {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  padding: 0.3rem 0.55rem;
  border-radius: 0.4rem;
  background: rgba(12, 12, 18, 0.75);
  color: #fff;
  font: 600 0.68rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s;
  pointer-events: none;
}

.story-rail button:hover span,
.story-rail button:focus-visible span {
  opacity: 1;
}

@media (min-width: 768px) {
  .story.is-live .story-hud {
    left: 1.25rem;
    bottom: 1.25rem;
  }

  .hud-map { width: 108px; height: 96px; }
  .hud-year span { font-size: 1.7rem; }
}

@media (min-width: 900px) {
  .story.is-live .story-rail {
    position: absolute;
    z-index: 20;
    right: 1.1rem;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    transform: translateY(-50%);
  }
}

/* -- Outro ----------------------------------------------------------------- */

.story-outro {
  position: relative;
  padding: clamp(5rem, 14vh, 9rem) 1.25rem;
  background: #f4efe6;
  color: #1d1a16;
  text-align: center;
}

.story-outro-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.story-outro .scene-eyebrow {
  justify-content: center;
}

.story-outro .scene-text {
  margin: 0 auto;
}

.story-outro-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.story-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(29, 26, 22, 0.2);
  border-radius: 999px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

.story-button:hover {
  background: rgba(29, 26, 22, 0.06);
  transform: translateY(-1px);
}

.story-button--primary {
  border-color: #1d1a16;
  background: #1d1a16;
  color: #f4efe6;
}

.story-button--primary:hover {
  background: #000;
}

.story-replay {
  margin-top: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(29, 26, 22, 0.6);
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.story-replay:hover {
  color: #1d1a16;
}

/* -- Keyframes ------------------------------------------------------------- */

@keyframes story-rise {
  from { transform: translateY(105%); }
}

@keyframes story-cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

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

@keyframes story-twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@keyframes story-bulbs {
  to { background-position: 0.45rem 0.45rem; }
}

@keyframes story-ping {
  from { opacity: 1; transform: scale(0.4); }
  to { opacity: 0; transform: scale(1.4); }
}

@keyframes story-drift {
  0%, 100% { translate: 0 0; }
  25% { translate: 18px -14px; }
  50% { translate: -10px -26px; }
  75% { translate: -20px -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .story *,
  .story *::before,
  .story *::after {
    animation: none !important;
  }
}
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
  /* Admin styles using Tailwind's @apply directive */

  .admin-form-input {
    @apply mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm;
  }

  .admin-btn {
    @apply py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500;
  }

  .admin-btn-secondary {
    @apply py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500;
  }

  .admin-card {
    @apply bg-white shadow-md rounded-lg p-6 mb-6;
  }

  .admin-table {
    @apply min-w-full divide-y divide-gray-200;
  }

  .admin-table-header {
    @apply bg-gray-50;
  }

  .admin-table-cell {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-500;
  }

  .admin-table-row {
    @apply bg-white divide-y divide-gray-200;
  }

  .admin-link {
    @apply text-indigo-600 hover:text-indigo-900;
  }

  .admin-danger-link {
    @apply text-red-600 hover:text-red-900;
  }

  .admin-form-label {
    @apply block text-sm font-medium text-gray-700;
  }

  .admin-form-group {
    @apply mb-4;
  }

  .admin-sidebar {
    @apply w-64 bg-gray-800 text-white min-h-screen px-4 py-6;
  }

  .admin-sidebar-link {
    @apply block py-2 px-4 rounded hover:bg-gray-700;
  }

  .admin-sidebar-link-active {
    @apply bg-gray-700;
  }

  .admin-content {
    @apply flex-1 p-8;
  }

  .admin-heading {
    @apply text-2xl font-bold mb-6;
  }

  .admin-subheading {
    @apply text-lg font-medium text-gray-900 mb-4;
  }

  .admin-notice {
    @apply bg-green-100 border-l-4 border-green-500 text-green-700 p-4 mb-6;
  }

  .admin-alert {
    @apply bg-red-100 border-l-4 border-red-500 text-red-700 p-4 mb-6;
  }
}
@import "tailwindcss";

@layer components {
/* Code Block Styling */
.code-block-wrapper {
  position: relative;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: rgb(17 24 39);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: rgb(31 41 55);
  border-bottom: 1px solid rgb(55 65 81);
}

.code-language {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(156 163 175);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-code-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: rgb(156 163 175);
  background-color: rgb(55 65 81);
  border-radius: 0.25rem;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}

.copy-code-btn:hover {
  background-color: rgb(75 85 99);
  color: white;
}

.copy-code-btn.copied {
  background-color: rgb(21 128 61);
  color: rgb(220 252 231);
}

.copy-icon {
  width: 1rem;
  height: 1rem;
}

.copy-text {
  display: none;
}

.copy-code-btn:hover .copy-text {
  display: inline;
  margin-left: 0.25rem;
}

.copy-code-btn.copied .copy-text {
  display: inline;
  margin-left: 0.25rem;
}

/* Rouge syntax highlighting */
.highlight {
  background-color: rgb(17 24 39); /* bg-gray-900 */
  overflow-x: auto;
  color: #e5e7eb !important; /* Explicitly set light gray text color */
}

.highlight pre {
  padding: 1rem; /* p-4 */
  margin: 0; /* m-0 */
  color: #e5e7eb !important; /* Ensure pre elements have light text */
}

.highlight code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; /* font-mono */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.625; /* leading-relaxed */
  color: #e5e7eb !important; /* Ensure code elements have light text */
  background-color: transparent !important; /* Remove any background from code inside pre */
}

/* Add line numbers styling if needed */
.highlight .lineno {
  color: rgb(107 114 128); /* text-gray-500 */
  padding-right: 1rem; /* pr-4 */
  user-select: none; /* select-none */
}

/* Scrollbar styling for code blocks */
.highlight::-webkit-scrollbar {
  height: 0.5rem; /* h-2 */
}

.highlight::-webkit-scrollbar-track {
  background-color: rgb(31 41 55); /* bg-gray-800 */
}

.highlight::-webkit-scrollbar-thumb {
  background-color: rgb(75 85 99); /* bg-gray-600 */
  border-radius: 0.25rem; /* rounded */
}

.highlight::-webkit-scrollbar-thumb:hover {
  background-color: rgb(107 114 128); /* bg-gray-500 */
}
.highlight .c { color: rgb(156 163 175); font-style: italic; } /* Comment */
.highlight .err { color: rgb(239 68 68); } /* Error */
.highlight .k { color: rgb(216 180 254); font-weight: 600; } /* Keyword */
.highlight .o { color: rgb(234 179 8); } /* Operator */
.highlight .cm { color: rgb(107 114 128); } /* Comment.Multiline */
.highlight .cp { color: rgb(96 165 250); } /* Comment.Preproc */
.highlight .c1 { color: rgb(107 114 128); } /* Comment.Single */
.highlight .cs { color: rgb(107 114 128); } /* Comment.Special */
.highlight .gd { color: rgb(239 68 68); } /* Generic.Deleted */
.highlight .ge { font-style: italic; } /* Generic.Emph */
.highlight .gr { color: rgb(239 68 68); } /* Generic.Error */
.highlight .gh { color: rgb(96 165 250); } /* Generic.Heading */
.highlight .gi { color: rgb(34 197 94); } /* Generic.Inserted */
.highlight .go { color: rgb(107 114 128); } /* Generic.Output */
.highlight .gp { color: rgb(96 165 250); } /* Generic.Prompt */
.highlight .gs { font-weight: 700; } /* Generic.Strong */
.highlight .gu { color: rgb(192 132 252); } /* Generic.Subheading */
.highlight .gt { color: rgb(239 68 68); } /* Generic.Traceback */
.highlight .kc { color: rgb(192 132 252); } /* Keyword.Constant */
.highlight .kd { color: rgb(192 132 252); } /* Keyword.Declaration */
.highlight .kn { color: rgb(192 132 252); } /* Keyword.Namespace */
.highlight .kp { color: rgb(192 132 252); } /* Keyword.Pseudo */
.highlight .kr { color: rgb(192 132 252); } /* Keyword.Reserved */
.highlight .kt { color: rgb(234 179 8); } /* Keyword.Type */
.highlight .m { color: rgb(251 146 60); } /* Literal.Number */
.highlight .s { color: rgb(134 239 172); } /* Literal.String */
.highlight .na { color: rgb(96 165 250); } /* Name.Attribute */
.highlight .nb { color: rgb(234 179 8); } /* Name.Builtin */
.highlight .nc { color: rgb(234 179 8); } /* Name.Class */
.highlight .no { color: rgb(239 68 68); } /* Name.Constant */
.highlight .nd { color: rgb(96 165 250); } /* Name.Decorator */
.highlight .ni { color: rgb(192 132 252); } /* Name.Entity */
.highlight .ne { color: rgb(239 68 68); } /* Name.Exception */
.highlight .nf { color: rgb(147 197 253); font-weight: 600; } /* Name.Function */
.highlight .nl { color: rgb(234 179 8); } /* Name.Label */
.highlight .nn { color: rgb(234 179 8); } /* Name.Namespace */
.highlight .nt { color: rgb(96 165 250); } /* Name.Tag */
.highlight .nv { color: rgb(239 68 68); } /* Name.Variable */
.highlight .w { color: rgb(107 114 128); } /* Text.Whitespace */

@layer components {
  .article-body {
    color: rgb(31 41 55); /* text-gray-800 */
    line-height: 1.625; /* leading-relaxed */
  }

  .article-body h1, .article-h1 {
    position: relative;
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    margin-top: 2rem; /* mt-8 */
    margin-bottom: 1.5rem; /* mb-6 */
    color: rgb(17 24 39); /* text-gray-900 */
    border-bottom-width: 2px; /* border-b-2 */
    border-color: rgb(229 231 235); /* border-gray-200 */
    padding-bottom: 0.75rem; /* pb-3 */
  }

  .article-body h2, .article-h2 {
    position: relative;
    font-size: 1.875rem; /* text-3xl */
    font-weight: 600; /* font-semibold */
    margin-top: 2rem; /* mt-8 */
    margin-bottom: 1rem; /* mb-4 */
    color: rgb(17 24 39); /* text-gray-900 */
    border-bottom-width: 1px; /* border-b */
    border-color: rgb(229 231 235); /* border-gray-200 */
    padding-bottom: 0.5rem; /* pb-2 */
  }

  .article-body h3, .article-h3 {
    position: relative;
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
    margin-top: 1.5rem; /* mt-6 */
    margin-bottom: 0.75rem; /* mb-3 */
    color: rgb(17 24 39); /* text-gray-900 */
  }

  .article-body h4, .article-h4 {
    position: relative;
    font-size: 1.25rem; /* text-xl */
    font-weight: 500; /* font-medium */
    margin-top: 1rem; /* mt-4 */
    margin-bottom: 0.5rem; /* mb-2 */
    color: rgb(31 41 55); /* text-gray-800 */
  }
  
  /* Add hover effect for header anchors */
  .article-h1:hover, .article-h2:hover, .article-h3:hover, .article-h4:hover {
    cursor: pointer;
  }
  
  .article-h1:hover::before, .article-h2:hover::before, .article-h3:hover::before, .article-h4:hover::before {
    content: "#";
    position: absolute;
    margin-left: -1.5rem; /* -ml-6 */
    color: rgb(156 163 175); /* text-gray-400 */
  }

  .article-body p {
    margin-top: 1rem; /* my-4 */
    margin-bottom: 1rem;
  }

  .article-body a {
    color: rgb(37 99 235); /* text-blue-600 */
    text-decoration: underline;
  }

  .article-body a:hover {
    color: rgb(29 78 216); /* hover:text-blue-700 */
  }

  .article-body ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-top: 1rem; /* my-4 */
    margin-bottom: 1rem;
  }

  .article-body ol {
    list-style-type: decimal;
    list-style-position: inside;
    margin-top: 1rem; /* my-4 */
    margin-bottom: 1rem;
  }

  .article-body li {
    margin-top: 0.5rem; /* my-2 */
    margin-bottom: 0.5rem;
  }

  .article-body blockquote {
    padding-left: 1rem; /* pl-4 */
    border-left-width: 4px; /* border-l-4 */
    border-color: rgb(156 163 175); /* border-gray-400 */
    font-style: italic;
    margin-top: 1rem; /* my-4 */
    margin-bottom: 1rem;
    color: rgb(75 85 99); /* text-gray-600 */
  }

  .article-body pre {
    background-color: rgb(17 24 39); /* bg-gray-900 */
    border-radius: 0.5rem; /* rounded-lg */
    overflow-x: auto;
    color: #e5e7eb !important; /* Light gray text for code blocks */
  }

  .article-body pre code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; /* font-mono */
    font-size: 0.875rem; /* text-sm */
    color: #e5e7eb !important; /* Ensure code inside pre has light text */
    background-color: transparent !important;
  }

  .article-body code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; /* font-mono */
    font-size: 0.875rem; /* text-sm */
  }

  .article-body :not(pre) > code {
    background-color: rgb(243 244 246); /* bg-gray-100 */
    color: rgb(31 41 55); /* text-gray-800 */
    padding-left: 0.25rem; /* px-1 */
    padding-right: 0.25rem;
    padding-top: 0.125rem; /* py-0.5 */
    padding-bottom: 0.125rem;
    border-radius: 0.25rem; /* rounded */
  }

  .article-body table {
    min-width: 100%; /* min-w-full */
    border-width: 1px; /* border */
    border-color: rgb(229 231 235); /* border-gray-200 */
    margin-top: 1rem; /* my-4 */
    margin-bottom: 1rem;
  }

  .article-body th {
    background-color: rgb(249 250 251); /* bg-gray-50 */
    border-bottom-width: 1px; /* border-b */
    border-color: rgb(229 231 235); /* border-gray-200 */
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem;
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem;
    text-align: left;
    color: rgb(17 24 39); /* text-gray-900 */
  }

  .article-body td {
    border-bottom-width: 1px; /* border-b */
    border-color: rgb(229 231 235); /* border-gray-200 */
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem;
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem;
  }

  .article-body hr {
    margin-top: 2rem; /* my-8 */
    margin-bottom: 2rem;
    border-top-width: 1px; /* border-t */
    border-color: rgb(229 231 235); /* border-gray-200 */
  }

  .animate-slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
  }

  .animate-slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 767px) {
  #timeline > div {
    left: 20px !important;
  }
}
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */


 .article-body p {
  padding: 0.5rem 0;
 }
