/* AeroScope inside Yunie's Room: atmospheric shell, precise data surfaces. */
:root {
  color-scheme: dark;
  --paper: #071a27;
  --surface: #fbfdfc;
  --ink: #1d2229;
  --ink-2: #4c5661;
  --muted: #727982;
  --line: #d8d3cd;
  --line-dark: #aaa29a;
  --blue: #196da5;
  --blue-dark: #104e79;
  --blue-pale: #e7f2f8;
  --orange: #c86e4b;
  --code: #f0ece7;
  --s1: #196da5;
  --s2: #71afd0;
  --s3: #c86e4b;
  --neutral: #a8a4a0;
  --grid: #dedbd7;
  --axis: #b7b1ab;
  --ring: #d6d0ca;
  --accent-ink: #196da5;
  --accent-wash: #e7f2f8;
  --sign: #196da5;
  --room-cream: #f4faf9;
  --room-white: #fbfdfc;
  --room-rose: #4d7280;
  --room-brown: #183b42;
  --room-black: #06131e;
  --room-type: "Courier Prime", "Courier New", monospace;
}

html { background: var(--room-black); }

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 12% 13%, rgba(42,119,136,.82) 0 8%, transparent 31%),
    radial-gradient(ellipse at 72% 3%, rgba(81,150,179,.78) 0 12%, transparent 34%),
    radial-gradient(ellipse at 88% 58%, rgba(45,108,116,.72) 0 10%, transparent 30%),
    radial-gradient(ellipse at 35% 82%, rgba(23,66,72,.92) 0 15%, transparent 40%),
    linear-gradient(118deg, #092132 0%, #06131e 45%, #123b46 72%, #071622 100%);
  background-attachment: fixed;
}

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

main,
footer {
  position: relative;
  z-index: 1;
}

body::before {
  inset: -34px;
  opacity: .9;
  /* CC0: Flight over the Alps, Stinglehammer, Wikimedia Commons. */
  background-image:
    linear-gradient(112deg, rgba(218,240,243,.52), rgba(231,246,248,.4) 45%, rgba(190,224,221,.48)),
    url("flight-over-alps.jpg");
  background-position: center;
  background-size: cover;
  filter: blur(20px) brightness(.96) saturate(.7) contrast(.94);
  transform: scale(1.07);
  animation: room-drift 24s ease-in-out infinite alternate;
}

body::after {
  opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a { color: var(--blue); }

/* Room-like navigation */
.top {
  color: #fff;
  background: rgba(4, 17, 29, .78);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(18px) saturate(.9);
}

.bar { max-width: 1360px; }

.brand,
nav a {
  color: rgba(255,255,255,.86);
  font-family: var(--room-type);
}

.brand { min-width: 240px; letter-spacing: 0; font-weight: 700; }
.brand small { color: rgba(255,255,255,.55); font-family: var(--room-type); letter-spacing: .08em; }
.brand-ic {
  color: #17232b;
  background: #eef8f8;
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(120,195,235,.42);
}

nav a { font-weight: 400; }
nav a:hover,
nav a[aria-current="page"] { color: #fff; border-color: #9ed5f1; }
nav .room-link { margin-left: .75rem; color: #dff3f3; }
nav .source-link { margin-left: .15rem; border-color: rgba(255,255,255,.35); }
nav .source-link:hover { border-color: #fff; }

/* Give every project view room to breathe over the atmospheric backdrop. */
main { max-width: 1360px; }
.page:not(#overview) { padding: 1px 0 2rem; }
.page:not(#overview) > h1,
.page:not(#overview) > h2,
.page:not(#overview) > .lede,
.page:not(#overview) > .note { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.42); }
.page:not(#overview) > .lede,
.page:not(#overview) > .note { color: rgba(255,255,255,.76); }

.mono,
.readout .v,
.strip .code,
.route .wp-code,
.eyebrow,
.mission-line,
.map-heading,
.route-switch button,
.filter-summary,
th,
.source-note,
.finding-label,
.map-caption,
.chips span {
  font-family: var(--room-type);
}

/* The overview reads like a research file opened inside the room. */
.mission-line {
  margin: 0 -2rem;
  padding: 1rem 2rem;
  color: rgba(255,255,255,.64);
  border-color: rgba(255,255,255,.22);
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.hero-layout {
  position: relative;
  gap: 3rem;
  margin: 2rem 0 1rem;
  padding: clamp(1.5rem, 3vw, 2.7rem);
  border: 1px solid rgba(219,244,247,.62);
  border-radius: 18px;
  background: rgba(247, 252, 251, .91);
  box-shadow: 0 28px 80px rgba(0,9,18,.38), 0 0 55px rgba(100,194,208,.12);
  backdrop-filter: blur(14px);
  animation: glass-enter .72s cubic-bezier(.2,.7,.2,1) both;
}

.hero-copy { padding: .4rem 0; }
.hero h1 { font-size: clamp(3.25rem, 5.5vw, 5.3rem); }
.hero .lede { color: #4b5158; }
.eyebrow { color: var(--blue); }
.source-note { color: #77716d; }

.button { border-radius: 999px; font-family: var(--room-type); font-weight: 700; }
.primary { color: #fff; box-shadow: 0 8px 22px rgba(25,109,165,.2); }
.secondary { background: rgba(255,255,255,.65); }

.airspace,
.readout,
.filters,
figure,
.card,
.panel,
.archdetail,
.sqlbox,
.callout,
.tablewrap,
table {
  box-shadow: 0 18px 45px rgba(0,13,24,.24);
}

.airspace {
  overflow: hidden;
  border-color: #afc1c4;
  border-radius: 12px;
  background: #f1f6f8;
}
.route-switch button:first-child { border-bottom-left-radius: 0; }
.map-airports text { font-family: var(--room-type); }
.secondary-airports text { font-family: var(--room-type); }

.readout {
  overflow: hidden;
  margin-top: 1.2rem;
  border-color: rgba(255,255,255,.62);
  border-radius: 12px;
  background: rgba(248,253,252,.94);
  animation: glass-enter .72s .1s cubic-bezier(.2,.7,.2,1) both;
}

.section-intro {
  margin-top: 4.75rem;
  border-color: rgba(255,255,255,.78);
}
.section-intro h2,
.section-intro .eyebrow { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.section-intro > p { color: rgba(255,255,255,.68); }

.board {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 14px;
  background: rgba(248,252,251,.92);
  box-shadow: 0 28px 70px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
  animation: glass-enter .72s .16s cubic-bezier(.2,.7,.2,1) both;
}
.finding { padding: 2.2rem; border-color: #d9d2cb; }
.finding:last-child { border-bottom: 0; }

/* Timeline stays atmospheric, but its text remains high-contrast. */
#overview > h2.sign,
#overview > .note { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
#overview > .note { color: rgba(255,255,255,.74); }
.route::before { border-color: rgba(255,255,255,.42); }
.route .wp { background: #082333; border-color: #8dcced; box-shadow: 0 0 14px rgba(114,190,228,.42); }
.route .wp-code { color: #a7daf2; }
.route b { color: #fff; }
.route span.d { color: rgba(255,255,255,.7); }
.route li.end .wp { background: transparent; color: #a7daf2; }
.chips span {
  color: #2d3339;
  background: rgba(248,253,252,.94);
  border-color: rgba(255,255,255,.55);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
}

/* The analytical views use dependable light panels on top of the room. */
.filters,
figure,
.card,
.panel,
.archdetail,
.sqlbox,
.callout,
table {
  background: rgba(249,253,252,.97);
  border-color: #c9d5d4;
}

.hero-layout,
.readout,
.board,
.filters,
figure,
.card,
.panel,
.archdetail,
.sqlbox,
.callout {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

figure:hover,
.card:hover,
.panel:hover {
  transform: translateY(-3px);
  border-color: #a9c7cb;
  box-shadow: 0 24px 55px rgba(0,13,24,.29);
}
.filters,
figure,
.card,
.panel,
.archdetail,
.sqlbox,
.callout,
.tablewrap { border-radius: 10px; }
.filters { backdrop-filter: blur(10px); }
select, input, button { border-radius: 6px; }
.strip button { overflow: hidden; border-radius: 8px; background: rgba(249,253,252,.97); }
.archdetail { border-left: 4px solid var(--blue); }
.tablewrap { overflow: hidden; overflow-x: auto; background: rgba(249,253,252,.97); }

.page:not(#overview) h2:not(.sign) { color: #fff; margin-top: 3.5rem; text-shadow: 0 2px 12px rgba(0,0,0,.48); }
.page:not(#overview) .grid2,
.page:not(#overview) .cards { margin-bottom: 1.2rem; }
.page:not(#overview) .filter-summary { color: rgba(255,255,255,.7); }
.page:not(#overview) .readout.light { border-color: rgba(255,255,255,.7); }
.page:not(#overview) .split .labels { color: rgba(255,255,255,.72); }
.page:not(#overview) .loading,
.page:not(#overview) .empty { color: rgba(255,255,255,.74); }

.sign-ic { border-radius: 50%; box-shadow: 0 0 18px rgba(80,170,220,.26); }
.card { border-top: 3px solid var(--blue); }

footer {
  color: rgba(255,255,255,.58);
  border-color: rgba(255,255,255,.2);
  font-family: var(--room-type);
}

@keyframes room-drift {
  from { transform: scale(1.07) translate3d(-.35%, -.2%, 0); }
  to { transform: scale(1.1) translate3d(.35%, .2%, 0); }
}

@keyframes glass-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.footer-brand { color: rgba(255,255,255,.9); }
.footer-brand a { color: #addbf2; }

@media (max-width: 980px) {
  nav .room-link { margin-left: 0; }
  .hero-layout { margin-top: 1.4rem; }
}

@media (max-width: 720px) {
  .top { background: rgba(4,17,29,.92); }
  .bar { padding-bottom: .8rem; }
  .brand { min-width: 0; }
  nav { flex-wrap: wrap; overflow-x: visible; row-gap: .05rem; }
  nav a { padding: .48rem .62rem; }
  .mission-line { margin: 0 -1.25rem; padding-inline: 1.25rem; }
  .hero-layout { margin-inline: -.25rem; padding: 1.2rem; border-radius: 14px; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .section-intro { margin-top: 3.8rem; }
  .finding { padding: 1.55rem 1.25rem; }
}

@media (prefers-reduced-transparency: reduce) {
  .top { background: #071a27; }
  .hero-layout,
  .board,
  .readout,
  .filters,
  figure,
  .card,
  .panel { background: var(--room-white); backdrop-filter: none; }
}
