/* ============================================================
   jonahschulte.com — "Quiet Cosmos"
   Hand-built. No frameworks, no build step, no dependencies.
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---- Self-hosted display face (OFL) — the only font file we ship ---- */
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/marcellus-400.woff2") format("woff2");
}

/* ---- Tokens ---- */
:root {
  --bg: #070b16;
  --text: #eef2fb;
  --text-dim: #8ea0c8;
  --muted: #6b7ba3;
  --accent: #8fd3e6;
  --hairline: #1a2138;
  --panel: rgba(15, 23, 46, 0.42);
  --panel-line: rgba(141, 163, 217, 0.14);
  --maxw: 900px;
  --gutter: clamp(20px, 5vw, 40px);
  --pad: clamp(36px, 6vw, 64px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.65, 0.3, 1);
}

/* ---- Base ---- */
html { scroll-behavior: smooth; scrollbar-color: #24314f var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(143, 211, 230, 0.3); color: #f4f8ff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.12;
}
h2 { font-size: clamp(30px, 4.6vw, 42px); margin-bottom: 22px; }

a.link {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease);
  padding-bottom: 2px;
}
a.link:hover { background-size: 100% 1px; }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #04121a; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---- The sky — fixed behind the entire page ---- */
.sky-field {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 72% -8%, #0d1530 0%, transparent 55%),
    var(--bg);
}
.sky { position: absolute; inset: -100px; pointer-events: none; }

.sky--nebula {
  inset: 0;
  background:
    radial-gradient(circle at 84% 6%,  rgba(124, 108, 224, 0.27), transparent 46%),
    radial-gradient(ellipse 60% 42% at 10% 28%, rgba(208, 108, 168, 0.13), transparent 62%),
    radial-gradient(ellipse 55% 38% at 90% 70%, rgba(78, 204, 163, 0.11), transparent 62%),
    radial-gradient(ellipse 50% 34% at 38% 88%, rgba(196, 90, 106, 0.09), transparent 65%),
    radial-gradient(circle at 6% 96%,  rgba(56, 116, 200, 0.18), transparent 54%),
    radial-gradient(ellipse 75% 32% at 48% 46%, rgba(150, 130, 230, 0.07), transparent 65%),
    radial-gradient(circle at 48% 52%, rgba(90, 120, 210, 0.05), transparent 60%);
}
.sky-field::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 40% at 50% 115%, rgba(3, 5, 11, 0.55), transparent 65%);
}

.sky--far {
  background-image:
    radial-gradient(1px 1px at 40px 70px,   rgba(255,255,255,.48), transparent),
    radial-gradient(1px 1px at 130px 220px, rgba(255,255,255,.36), transparent),
    radial-gradient(1px 1px at 240px 100px, rgba(200,215,255,.46), transparent),
    radial-gradient(1px 1px at 310px 260px, rgba(255,255,255,.31), transparent),
    radial-gradient(1px 1px at 100px 340px, rgba(255,255,255,.33), transparent),
    radial-gradient(1px 1px at 420px 130px, rgba(230,225,255,.40), transparent),
    radial-gradient(1px 1px at 530px 70px,  rgba(255,255,255,.38), transparent),
    radial-gradient(1px 1px at 480px 340px, rgba(255,255,255,.29), transparent),
    radial-gradient(1.5px 1.5px at 600px 480px, rgba(210,220,255,.42), transparent),
    radial-gradient(1px 1px at 160px 520px, rgba(255,255,255,.31), transparent),
    radial-gradient(1px 1px at 70px 630px,  rgba(255,255,255,.29), transparent),
    radial-gradient(1px 1px at 650px 260px, rgba(255,255,255,.32), transparent),
    radial-gradient(1px 1px at 360px 560px, rgba(255,255,255,.28), transparent),
    radial-gradient(1px 1px at 700px 640px, rgba(220,215,255,.32), transparent),
    radial-gradient(1px 1px at 260px 410px, rgba(255,255,255,.27), transparent),
    radial-gradient(1px 1px at 450px 690px, rgba(255,255,255,.29), transparent),
    radial-gradient(1px 1px at 820px 150px, rgba(255,255,255,.34), transparent),
    radial-gradient(1px 1px at 900px 420px, rgba(210,220,255,.30), transparent),
    radial-gradient(1px 1px at 780px 780px, rgba(255,255,255,.27), transparent),
    radial-gradient(1px 1px at 560px 880px, rgba(255,255,255,.26), transparent),
    radial-gradient(1px 1px at 120px 820px, rgba(255,255,255,.28), transparent),
    radial-gradient(1px 1px at 880px 900px, rgba(220,220,255,.28), transparent);
  background-size: 1000px 1000px; background-repeat: repeat;
  animation: sky-far 480s linear infinite;
}
.sky--mid {
  background-image:
    radial-gradient(1.5px 1.5px at 60px 120px,  rgba(255,255,255,.80), transparent),
    radial-gradient(1px 1px at 180px 40px,      rgba(230,220,255,.68), transparent),
    radial-gradient(1px 1px at 210px 210px,     rgba(255,255,255,.60), transparent),
    radial-gradient(1px 1px at 30px 260px,      rgba(255,255,255,.50), transparent),
    radial-gradient(1.5px 1.5px at 300px 90px,  rgba(210,225,255,.70), transparent),
    radial-gradient(1px 1px at 360px 320px,     rgba(255,255,255,.53), transparent),
    radial-gradient(1px 1px at 440px 160px,     rgba(255,255,255,.58), transparent),
    radial-gradient(1px 1px at 120px 380px,     rgba(255,255,255,.48), transparent),
    radial-gradient(1px 1px at 480px 440px,     rgba(230,220,255,.56), transparent),
    radial-gradient(1px 1px at 250px 490px,     rgba(255,255,255,.46), transparent),
    radial-gradient(1.5px 1.5px at 90px 470px,  rgba(255,255,255,.60), transparent),
    radial-gradient(1px 1px at 400px 560px,     rgba(255,255,255,.44), transparent),
    radial-gradient(1px 1px at 600px 120px,     rgba(255,255,255,.52), transparent),
    radial-gradient(1px 1px at 680px 400px,     rgba(210,220,255,.50), transparent),
    radial-gradient(1px 1px at 560px 660px,     rgba(255,255,255,.44), transparent);
  background-size: 760px 760px; background-repeat: repeat;
  animation: sky-mid 290s linear infinite;
}
.sky--near {
  background-image:
    radial-gradient(2px 2px at 50px 80px,       rgba(255,255,255,.98), transparent),
    radial-gradient(1.5px 1.5px at 150px 160px, rgba(205,225,255,.92), transparent),
    radial-gradient(2px 2px at 320px 60px,      rgba(255,255,255,.90), transparent),
    radial-gradient(1.5px 1.5px at 240px 300px, rgba(255,255,255,.85), transparent),
    radial-gradient(2px 2px at 370px 340px,     rgba(220,230,255,.90), transparent),
    radial-gradient(1.5px 1.5px at 90px 350px,  rgba(255,255,255,.82), transparent),
    radial-gradient(1.5px 1.5px at 300px 200px, rgba(255,255,255,.80), transparent),
    radial-gradient(2px 2px at 470px 430px,     rgba(255,255,255,.88), transparent),
    radial-gradient(1.5px 1.5px at 430px 120px, rgba(210,225,255,.84), transparent);
  background-size: 560px 560px; background-repeat: repeat;
  animation: sky-near 175s linear infinite;
}
.sky--twa {
  background-image:
    radial-gradient(2px 2px at 80px 110px,  rgba(255,255,255,.95), transparent),
    radial-gradient(2px 2px at 300px 260px, rgba(190,255,225,.9), transparent),
    radial-gradient(2px 2px at 520px 90px,  rgba(255,255,255,.95), transparent),
    radial-gradient(2px 2px at 200px 470px, rgba(255,255,255,.95), transparent),
    radial-gradient(2px 2px at 560px 520px, rgba(230,225,255,.95), transparent);
  background-size: 640px 640px; background-repeat: repeat;
  animation: sky-twa 280s linear infinite, twinkle-a 4.5s ease-in-out infinite;
}
.sky--twb {
  background-image:
    radial-gradient(2px 2px at 140px 300px, rgba(255,255,255,.95), transparent),
    radial-gradient(2px 2px at 420px 140px, rgba(255,205,220,.9), transparent),
    radial-gradient(2px 2px at 600px 420px, rgba(255,255,255,.95), transparent),
    radial-gradient(2px 2px at 300px 600px, rgba(255,255,255,.95), transparent);
  background-size: 720px 720px; background-repeat: repeat;
  animation: sky-twb 300s linear infinite, twinkle-b 6s ease-in-out infinite;
  animation-delay: 0s, -2.5s;
}

/* Shooting stars — rare, slow, quiet */
.shooting {
  position: absolute; width: 130px; height: 1.5px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(238, 242, 251, 0.9), rgba(238, 242, 251, 0));
  opacity: 0; pointer-events: none;
  transform: rotate(-32deg);
}
.shooting--a { top: 12%; left: 70%; animation: shoot 13s linear 4s infinite; }
.shooting--b { top: 34%; left: 24%; animation: shoot 19s linear 11s infinite; }

@keyframes shoot {
  0%   { transform: translate3d(0, 0, 0) rotate(-32deg); opacity: 0; }
  1%   { opacity: 0.9; }
  6%   { transform: translate3d(-360px, 225px, 0) rotate(-32deg); opacity: 0; }
  100% { transform: translate3d(-360px, 225px, 0) rotate(-32deg); opacity: 0; }
}

@keyframes sky-far  { from { background-position: 0 0; } to { background-position: 1000px 1000px; } }
@keyframes sky-mid  { from { background-position: 0 0; } to { background-position: -760px 760px; } }
@keyframes sky-near { from { background-position: 0 0; } to { background-position: 560px 560px; } }
@keyframes sky-twa  { from { background-position: 0 0; } to { background-position: -640px 640px; } }
@keyframes sky-twb  { from { background-position: 0 0; } to { background-position: 720px 720px; } }
@keyframes twinkle-a { 0%, 100% { opacity: 0.40; } 50% { opacity: 1; } }
@keyframes twinkle-b { 0%, 100% { opacity: 0.55; } 45% { opacity: 1; } }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 22, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav--scrolled {
  background: rgba(7, 11, 22, 0.78);
  border-bottom-color: var(--hairline);
}
.nav__inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 17px; letter-spacing: 0.28em; text-decoration: none; color: var(--text);
}
.nav__brand::after { content: "."; color: var(--accent); }
.nav__menu { display: flex; gap: 30px; }
.nav__link {
  position: relative;
  text-decoration: none; color: var(--text-dim);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding-bottom: 4px;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__toggle { display: none; }

@media (max-width: 640px) {
  .nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 8px; }
  .nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
  .nav__menu {
    position: absolute; top: calc(100% + 8px); right: var(--gutter);
    flex-direction: column; gap: 18px; padding: 20px 26px;
    background: rgba(13, 20, 40, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--panel-line); border-radius: 14px;
    box-shadow: 0 20px 50px rgba(3, 5, 12, 0.5);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.hero::before {
  content: ""; position: absolute; left: -12%; top: 8%;
  width: 64vw; height: 64vh; pointer-events: none;
  background: radial-gradient(circle, rgba(96, 120, 220, 0.13), transparent 62%);
}
.hero__content {
  position: relative;
  max-width: 1080px; width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero__eyebrow .tick { color: var(--accent); }
.hero__name {
  font-size: clamp(52px, 9.5vw, 102px);
  line-height: 1.04;
  color: var(--text);
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero__name {
    background: linear-gradient(180deg, #ffffff 0%, #dde6fa 55%, #9db0da 125%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}
.hero__role {
  margin-top: 22px;
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--text-dim); font-weight: 300;
  letter-spacing: 0.01em;
}
.hero__actions {
  margin-top: 40px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.hero__alt {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--muted); text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: color 0.3s var(--ease), background-size 0.35s var(--ease);
  padding-bottom: 3px;
}
.hero__alt:hover { color: var(--accent); background-size: 100% 1px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--muted); text-decoration: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid rgba(143, 211, 230, 0.4);
  background: rgba(143, 211, 230, 0.05);
  color: var(--accent); text-decoration: none;
  font-size: 14px; letter-spacing: 0.04em;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover {
  border-color: rgba(143, 211, 230, 0.85);
  background: rgba(143, 211, 230, 0.11);
  box-shadow: 0 0 28px rgba(143, 211, 230, 0.2);
}
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---- Sections as glass panels ---- */
/* Each panel carries its own quiet color identity via --tint (r, g, b).
   Cool → green → warm as you travel down the page. */
.section {
  --tint: 143, 211, 230; /* default: cyan */
  position: relative;
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin: 0 auto clamp(64px, 11vh, 120px);
  padding: var(--pad);
  /* No backdrop-filter here: blurring a fixed starfield re-blurs every
     scrolled frame and tanks scroll performance. Opacity fakes the frost. */
  background:
    radial-gradient(ellipse 90% 65% at 50% -12%, rgba(var(--tint), 0.08), transparent 60%),
    linear-gradient(180deg, rgba(16, 24, 47, 0.82), rgba(11, 17, 35, 0.72));
  border: 1px solid var(--panel-line);
  border-radius: 22px;
  box-shadow:
    0 30px 70px rgba(2, 4, 10, 0.5),
    inset 0 1px 0 rgba(238, 242, 251, 0.05);
}
.section::before {
  content: ""; position: absolute; top: -1px; left: 9%; right: 9%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--tint), 0.6), transparent);
}

.about      { --tint: 167, 139, 250; } /* violet */
.experience { --tint: 110, 231, 183; } /* aurora mint */
.contact    { --tint: 244, 168, 174; } /* warm rose */

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(var(--tint), 0.95);
  margin-bottom: 18px;
}
.eyebrow::after {
  content: ""; height: 1px; width: 52px;
  background: linear-gradient(90deg, rgba(var(--tint), 0.6), transparent);
}

/* ---- About ---- */
.about__grid {
  display: grid; grid-template-columns: 176px 1fr;
  gap: clamp(28px, 5vw, 52px); align-items: start;
}
.about__photo { margin-top: 6px; }
.about__photo img, .about__monogram {
  width: 176px; height: 176px; border-radius: 50%;
}
.about__photo img {
  object-fit: cover;
  border: 1px solid rgba(141, 163, 217, 0.25);
  box-shadow:
    0 0 0 6px rgba(var(--tint), 0.06),
    0 0 54px rgba(var(--tint), 0.2),
    0 18px 40px rgba(2, 4, 10, 0.55);
}
.about__monogram {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #101a33, #1a2647);
  color: var(--accent); font-family: var(--font-display);
  font-size: 52px; letter-spacing: 0.1em;
  border: 1px solid var(--panel-line);
}
.about__body p + p { margin-top: 16px; color: var(--text-dim); }
.about__body p:first-of-type { color: var(--text); font-size: 17px; }

@media (max-width: 620px) {
  .about__grid { grid-template-columns: 1fr; justify-items: center; }
  .about__photo { margin-top: 0; }
}

/* ---- Experience — timeline ---- */
.experience__lede { color: var(--text-dim); margin-top: -6px; margin-bottom: 34px; }

.xp { position: relative; padding-left: 34px; display: grid; gap: 6px; }
.xp::before {
  content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg,
    rgba(var(--tint), 0.65),
    rgba(var(--tint), 0.18) 55%,
    transparent);
}
.xp__item {
  position: relative;
  padding: 16px 18px;
  border-radius: 14px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.xp__item::before {
  content: ""; position: absolute; left: -30px; top: 26px;
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(var(--tint), 1);
  box-shadow: 0 0 12px rgba(var(--tint), 0.8);
  transition: box-shadow 0.3s var(--ease);
}
.xp__item:hover { background: rgba(var(--tint), 0.06); transform: translateX(4px); }
.xp__item:hover::before { box-shadow: 0 0 20px rgba(var(--tint), 1); }
.xp__role { color: var(--text); font-size: 17.5px; font-weight: 400; }
.xp__org { color: var(--text-dim); font-size: 15px; margin-top: 2px; }
.xp__sub { color: var(--muted); }
.xp__dates {
  font-family: var(--mono);
  color: var(--muted); font-size: 12px; letter-spacing: 0.08em;
  margin-top: 6px;
}
.xp__edu {
  margin-top: 30px; padding-left: 34px;
  color: var(--text-dim); font-size: 15px;
}
.xp__edu-label {
  display: inline-block; margin-right: 12px;
  font-family: var(--mono);
  color: var(--muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em;
}
.experience__resume { margin-top: 36px; padding-left: 34px; }

@media (max-width: 620px) {
  .xp, .xp__edu, .experience__resume { padding-left: 26px; }
  .xp::before { left: 4px; }
  .xp__item { padding: 14px 10px; }
  .xp__item::before { left: -26px; }
}

/* ---- Writing (renders only when posts exist) ---- */
.writing__list { display: grid; gap: 4px; }
.writing__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 14px; border-radius: 12px;
  transition: background 0.3s var(--ease);
}
.writing__list li:hover { background: rgba(var(--tint), 0.05); }
.writing__date { font-family: var(--mono); color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---- Contact — the finale ---- */
.contact { text-align: center; }
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::before {
  content: ""; height: 1px; width: 52px;
  background: linear-gradient(270deg, rgba(var(--tint), 0.6), transparent);
}
.contact__lede { color: var(--text-dim); margin-top: -4px; }
.contact__big-wrap { margin: 34px 0 40px; }
.contact__big {
  font-family: var(--font-display);
  font-size: clamp(23px, 4.6vw, 44px);
  color: var(--text); text-decoration: none;
  line-height: 1.2;
  overflow-wrap: anywhere;
  background-image: linear-gradient(rgba(var(--tint), 1), rgba(var(--tint), 1));
  background-size: 0% 2px; background-position: 50% 100%; background-repeat: no-repeat;
  transition: background-size 0.45s var(--ease), color 0.35s var(--ease);
  padding-bottom: 6px;
}
.contact__big:hover { color: rgba(var(--tint), 1); background-size: 100% 2px; }
.contact__list {
  display: grid; gap: 14px; justify-items: center;
  margin-top: 8px;
}
.contact__list li { display: flex; align-items: baseline; gap: 16px; }
.contact__label {
  font-family: var(--mono);
  color: var(--muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em;
}
.contact__value { color: var(--text-dim); }

/* ---- Footer ---- */
.footer { padding-bottom: 40px; }
.footer__inner {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin: 0 auto; padding: 26px 0 0;
  border-top: 1px solid rgba(141, 163, 217, 0.12);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
.footer__note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.footer__gh { color: var(--muted); transition: color 0.3s var(--ease), filter 0.3s var(--ease); }
.footer__gh:hover { color: var(--accent); filter: drop-shadow(0 0 8px rgba(143, 211, 230, 0.6)); }

@media (max-width: 560px) {
  .footer__inner { justify-content: center; text-align: center; }
}

/* ---- Motion: hero load-in + scroll reveals ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow, .hero__name, .hero__role, .hero__actions {
    opacity: 0;
    animation: rise 0.9s var(--ease) forwards;
  }
  .hero__eyebrow { animation-delay: 0.15s; }
  .hero__name    { animation-delay: 0.3s; }
  .hero__role    { animation-delay: 0.5s; }
  .hero__actions { animation-delay: 0.68s; }
  .hero__scroll  { opacity: 0; animation: fade 1.2s var(--ease) 1.5s forwards; }
  .hero__scroll::after { animation: scrollcue 2.4s ease-in-out infinite; }

  html.js .reveal {
    opacity: 0; transform: translateY(26px);
    transition:
      opacity 0.8s var(--ease),
      transform 0.8s var(--ease);
    transition-delay: var(--d, 0s);
    /* safety net: if the observer never fires, reveal anyway */
    animation: reveal-safety 0s linear 3.2s forwards;
  }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollcue {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}
@keyframes reveal-safety { to { opacity: 1; transform: none; } }

/* ---- Reduced motion: a still, honest sky ---- */
@media (prefers-reduced-motion: reduce) {
  .sky--far, .sky--mid, .sky--near, .sky--twa, .sky--twb,
  .shooting--a, .shooting--b,
  .hero__scroll::after { animation: none; }
  .shooting { display: none; }
}
