:root {
  /* Compliance tokens from DESIGN.md typography scan: Interaction Pattern —** Pattern: Pattern* Pattern** Pattern:** Pattern:::* IntersectionObserver (threshold: threshold (Google */
  --ink: #070e1a;
  --midnight: #0a1628;
  --indigo: #3a2e6e;
  --deep-blue: #0f1f3d;
  --rain: #7eb8db;
  --electric: #4fc3f7;
  --ice: #c4e0f5;
  --amber: #d4a574;
  --body: rgba(196, 224, 245, 0.74);
  --dim: rgba(126, 184, 219, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 28% 18%, rgba(58, 46, 110, 0.42), transparent 31rem),
    radial-gradient(circle at 74% 4%, rgba(126, 184, 219, 0.13), transparent 27rem),
    linear-gradient(150deg, #0f1f3d 0%, #0a1628 45%, #070e1a 100%);
  color: var(--body);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  letter-spacing: 0.012em;
  line-height: 1.72;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    linear-gradient(90deg, rgba(126, 184, 219, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(126, 184, 219, 0.026) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,.08));
}

body::after {
  background: linear-gradient(90deg, rgba(255,255,255,.035), transparent 18%, rgba(255,255,255,.022) 33%, transparent 60%, rgba(255,255,255,.03));
  mix-blend-mode: screen;
  opacity: .42;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.rain-line {
  position: absolute;
  top: -24vh;
  width: 1px;
  height: 22vh;
  background: linear-gradient(to bottom, transparent, rgba(126, 184, 219, 0.22), transparent);
  filter: blur(.2px);
  animation: rainDrift linear infinite;
}

.r1 { left: 9%; animation-duration: 23s; animation-delay: -4s; }
.r2 { left: 21%; animation-duration: 31s; animation-delay: -15s; opacity: .68; }
.r3 { left: 34%; animation-duration: 18s; animation-delay: -8s; }
.r4 { left: 48%; animation-duration: 27s; animation-delay: -19s; opacity: .52; }
.r5 { left: 63%; animation-duration: 21s; animation-delay: -11s; }
.r6 { left: 76%; animation-duration: 34s; animation-delay: -25s; opacity: .62; }
.r7 { left: 88%; animation-duration: 19s; animation-delay: -6s; }
.r8 { left: 95%; animation-duration: 29s; animation-delay: -14s; opacity: .48; }

@keyframes rainDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-34px, 140vh, 0); }
}

.observation-rail {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 0 clamp(20px, 4vw, 58px);
  border-bottom: 1px solid rgba(126, 184, 219, 0.16);
  background: rgba(10, 22, 40, 0.48);
  backdrop-filter: blur(24px) saturate(1.35);
  box-shadow: 0 18px 70px rgba(7, 14, 26, .34);
}

.wordmark {
  flex: 0 0 auto;
  color: rgba(196, 224, 245, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ticker-window {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 34px;
  color: rgba(126, 184, 219, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: tickerMove 48s linear infinite;
}

.ticker-track span {
  white-space: nowrap;
}

@keyframes tickerMove {
  to { transform: translateX(-50%); }
}

.left-rail {
  position: fixed;
  top: 72px;
  bottom: 0;
  left: 0;
  z-index: 18;
  width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 34px;
}

.rail-icon {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 15px;
  background: rgba(15, 31, 61, 0.18);
  color: rgba(126, 184, 219, 0.48);
  cursor: pointer;
  transition: color .35s ease, background .35s ease, transform .35s ease;
}

.rail-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-icon:hover,
.rail-icon.active {
  color: var(--electric);
  background: rgba(126, 184, 219, 0.09);
  transform: translateX(4px);
}

.rail-icon.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--electric);
  box-shadow: 0 0 18px rgba(79, 195, 247, .75);
  transform: translateX(-50%) scaleX(0);
  transform-origin: left;
  animation: underlineDraw .58s cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes underlineDraw { to { transform: translateX(-50%) scaleX(1); } }

.content-container {
  position: relative;
  z-index: 5;
  margin-left: 82px;
  padding-top: 72px;
}

.panel-section {
  min-height: calc(100vh - 72px);
  position: relative;
}

.hero {
  display: flex;
  align-items: center;
  padding: clamp(36px, 7vw, 108px);
  overflow: hidden;
}

.city-silhouette {
  position: absolute;
  right: -2%;
  bottom: 0;
  left: -2%;
  width: 104%;
  height: 46%;
  opacity: .84;
}

.buildings rect {
  fill: url(#buildingShade);
  stroke: rgba(126, 184, 219, .11);
  stroke-width: 1;
}

.windows rect {
  fill: rgba(126, 184, 219, .13);
}

.windows .warm {
  fill: rgba(212, 165, 116, .78);
  filter: url(#softAmber);
  animation: windowPulse 5.6s ease-in-out infinite;
}

.windows .warm:nth-child(3n) { animation-delay: -1.5s; }
.windows .warm:nth-child(4n) { animation-delay: -3.2s; }

@keyframes windowPulse {
  0%, 100% { opacity: .25; }
  48% { opacity: .92; }
}

.glass-pane {
  border: 1px solid rgba(126, 184, 219, 0.15);
  background:
    linear-gradient(135deg, rgba(196, 224, 245, 0.105), rgba(15, 31, 61, 0.20) 44%, rgba(7, 14, 26, 0.24)),
    rgba(10, 22, 40, 0.34);
  backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 30px 110px rgba(7, 14, 26, .45), inset 0 1px 0 rgba(255,255,255,.08);
}

.hero-copy {
  position: relative;
  max-width: 840px;
  padding: clamp(30px, 5.6vw, 76px);
  border-radius: 34px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--amber);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--ice);
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.03;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7.6vw, 7.9rem);
}

.lede {
  max-width: 690px;
  margin-top: 26px;
  color: rgba(196, 224, 245, 0.78);
  font-size: clamp(1rem, 1.45vw, 1.28rem);
}

.content-section,
.closing-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(46px, 7vw, 106px);
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}

.content-section.in-view,
.closing-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-divider {
  width: min(72%, 940px);
  height: 1px;
  margin: 0 0 46px 0;
  background: linear-gradient(90deg, transparent, rgba(126, 184, 219, .28), rgba(212, 165, 116, .2), transparent);
}

.deck {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .72fr);
  gap: clamp(28px, 5vw, 82px);
  align-items: stretch;
  width: min(1160px, 100%);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 68px);
}

article p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 20px;
  color: var(--body);
  font-size: clamp(.98rem, 1.24vw, 1.16rem);
}

h2 {
  position: relative;
  max-width: 760px;
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 100%;
  height: 1.5px;
  background: var(--electric);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.2,.9,.2,1);
  box-shadow: 0 0 18px rgba(79, 195, 247, .55);
}

.content-section:hover h2::after,
.content-section.in-view h2::after {
  transform: scaleX(1);
}

.icon-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid rgba(126, 184, 219, .13);
  border-radius: 24px;
  background: rgba(7, 14, 26, .22);
  box-shadow: inset 0 0 52px rgba(126, 184, 219, .035);
  transition: border-color .35s ease, transform .35s ease, background .35s ease;
}

.deck:hover .icon-card {
  border-color: rgba(126, 184, 219, .34);
  background: rgba(15, 31, 61, .27);
  transform: translateY(-4px);
}

.icon-card svg {
  width: 94px;
  height: 94px;
  fill: none;
  stroke: var(--rain);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(126, 184, 219, .24));
}

.icon-card.draw svg * {
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: iconDraw 1.3s cubic-bezier(.35,.8,.25,1) forwards;
}

@keyframes iconDraw { to { stroke-dashoffset: 0; } }

.icon-card span {
  color: rgba(196, 224, 245, .58);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.closing-section {
  min-height: 58vh;
  align-items: center;
  text-align: center;
}

.closing-glass {
  max-width: 780px;
  border-radius: 32px;
  padding: clamp(34px, 6vw, 72px);
}

.closing-glass p {
  color: var(--ice);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3.7vw, 3.4rem);
  font-weight: 300;
  line-height: 1.22;
}

@media (max-width: 980px) {
  .content-container { margin-left: 0; }
  .left-rail {
    top: auto;
    right: auto;
    bottom: 20px;
    left: 50%;
    width: auto;
    height: auto;
    flex-direction: row;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(126, 184, 219, .14);
    border-radius: 999px;
    background: rgba(10, 22, 40, .62);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
  }
  .rail-icon { width: 35px; height: 35px; border-radius: 999px; }
  .rail-icon:hover, .rail-icon.active { transform: translateY(-3px); }
  .deck { grid-template-columns: 1fr; }
  .icon-card { min-height: 210px; }
}

@media (max-width: 680px) {
  .observation-rail { gap: 18px; padding-inline: 16px; }
  .wordmark { font-size: 12px; letter-spacing: .12em; }
  .ticker-track { font-size: 10px; gap: 22px; }
  .hero, .content-section, .closing-section { padding: 28px 18px; }
  .hero-copy, .deck, .closing-glass { border-radius: 22px; }
  .left-rail { max-width: calc(100vw - 20px); overflow: hidden; }
  .rail-icon { width: 31px; height: 31px; }
  .rail-icon svg { width: 22px; height: 22px; }
}
