/* =========================================================
   Christopher Lesoine — personal site
   Aesthetic: night-sky observatory / editorial journal
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,0..100,0..1&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=JetBrains+Mono:wght@300..700&display=swap');

:root {
  /* Palette — deep observatory night */
  --bg:        #0b0d13;
  --bg-2:      #11141c;
  --surface:   #161a24;
  --line:      #262a36;
  --line-soft: #1c1f29;
  --text:      #ece5d4;
  --text-soft: #b8b2a3;
  --muted:     #6f6c63;
  --accent:    #c89f5c;   /* observatory brass */
  --accent-2:  #8db8c4;   /* faint cyan, like a star */

  /* Type */
  --display: 'Fraunces', 'Times New Roman', serif;
  --body:    'Newsreader', Georgia, serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw:    1280px;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 380;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  /* Subtle atmospheric gradient + grain feel */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(200,159,92,0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(141,184,196,0.05), transparent 60%);
  background-attachment: fixed;
}

/* Faint film grain via SVG noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg { display: block; max-width: 100%; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

/* ---------- Header ---------- */
.site-header {
  padding-block: 1.6rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  z-index: 3;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
}

.brand .mark {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.28rem 0.5rem;
  border-radius: 2px;
}

.brand .name { color: var(--text); }

.nav {
  display: flex;
  gap: 1.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav a {
  position: relative;
  color: var(--text-soft);
  padding-bottom: 0.2rem;
  transition: color 220ms ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 280ms cubic-bezier(0.6, 0, 0.2, 1);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  right: 0;
}

/* ---------- Coordinate strip ---------- */
.coord-strip {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.coord-strip span { white-space: nowrap; }
.coord-strip .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.5rem;
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(200,159,92,0.7);
}

/* ---------- Hero (landing) ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem);
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.kicker::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
  font-weight: 360;
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0 0 1.6rem;
  color: var(--text);
}

.hero h1 .second {
  display: block;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  color: var(--text-soft);
  font-weight: 340;
}

.hero .lede {
  max-width: 38ch;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 2.4rem;
  font-weight: 380;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease, transform 240ms ease;
  border-radius: 2px;
}

.btn .arrow {
  transition: transform 240ms cubic-bezier(0.6, 0, 0.2, 1);
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a140a;
}

.btn--primary:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Orbit illustration */
.orbit {
  width: clamp(240px, 32vw, 420px);
  aspect-ratio: 1;
  position: relative;
  justify-self: end;
}

@media (max-width: 880px) {
  .orbit { justify-self: start; width: min(80vw, 320px); }
}

/* ---------- Below-the-fold strip on landing ---------- */
.intro-strip {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

@media (max-width: 720px) {
  .intro-grid { grid-template-columns: 1fr; }
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label .num {
  color: var(--accent);
  margin-right: 0.55rem;
}

.intro-strip p {
  font-family: var(--display);
  font-weight: 320;
  font-variation-settings: 'opsz' 60;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.4;
  color: var(--text);
  max-width: 36ch;
  margin: 0 0 1.5rem;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.tags li {
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
}

/* Inline 'read more' link */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.4rem;
  padding-bottom: 0.35rem;
  position: relative;
  transition: color 240ms ease;
}

.read-more::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(0.6, 0, 0.2, 1);
}

.read-more .arrow {
  display: inline-block;
  transition: transform 240ms cubic-bezier(0.6, 0, 0.2, 1);
}

.read-more:hover::after { transform: scaleX(1); }
.read-more:hover .arrow { transform: translateX(5px); }

/* ---------- About page ---------- */
.page-hero {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero h1 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-weight: 350;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 1.4rem;
}

.page-hero .lede {
  font-family: var(--display);
  font-weight: 320;
  font-variation-settings: 'opsz' 60;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0;
}

/* Sections */
section.block {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-soft);
}

.block-head {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 2.5rem;
  align-items: end;
}

@media (max-width: 720px) {
  .block-head { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
}

.block-title {
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-weight: 360;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}

/* Experience timeline */
.timeline {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}

@media (max-width: 720px) { .timeline { grid-template-columns: 1fr; } }

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2.4rem;
}

.role {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  position: relative;
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
  padding-bottom: 0.2rem;
}

.role::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(200,159,92,0.6);
}

.role.current::before {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(141,184,196,0.85);
  animation: pulse 2.4s ease-in-out infinite;
}

.role .meta .now {
  color: var(--accent-2);
  border: 1px solid currentColor;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
}

.role .meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.role .meta .at { color: var(--accent); }

.role h3 {
  font-family: var(--display);
  font-weight: 420;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--text);
}

.role h3 .org {
  display: block;
  font-style: italic;
  font-weight: 360;
  color: var(--text-soft);
  font-size: 0.85em;
}

.role ul {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  gap: 0.55rem;
  color: var(--text-soft);
  max-width: 70ch;
}

.role ul li {
  padding-left: 1.2rem;
  position: relative;
}

.role ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  border: 1px solid var(--line);
  padding: 1.4rem 1.4rem 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent);
  border-radius: 2px;
  transition: border-color 240ms ease, transform 240ms ease;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.skill-card .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}

.skill-card h4 {
  font-family: var(--display);
  font-weight: 440;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}

.skill-card p {
  font-size: 0.93rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.55;
}

/* Education + projects + awards: simple two-column */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: 1.4rem;
  border-top: 1px dashed var(--line-soft);
}

.entry:first-child { border-top: 0; padding-top: 0; }

@media (max-width: 720px) { .entry { grid-template-columns: 1fr; gap: 0.4rem; } }

.entry .meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.entry h3 {
  font-family: var(--display);
  font-weight: 420;
  font-size: 1.3rem;
  margin: 0 0 0.3rem;
  line-height: 1.25;
}

.entry h3 a {
  color: inherit;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size 320ms cubic-bezier(0.6, 0, 0.2, 1), color 240ms ease;
  display: inline;
}

.entry h3 a:hover {
  color: var(--accent);
  background-size: 100% 1px;
}

.entry h3 .ext {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75em;
  color: var(--accent);
  margin-left: 0.35rem;
  transition: transform 240ms cubic-bezier(0.6, 0, 0.2, 1);
  vertical-align: 0.15em;
}

.entry h3 a:hover .ext {
  transform: translate(3px, -3px);
}

.entry h3 .sub {
  display: block;
  font-style: italic;
  font-weight: 360;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

.entry p {
  margin: 0.4rem 0 0;
  color: var(--text-soft);
  max-width: 70ch;
}

/* ---------- Résumé / CV page ---------- */
.cv-actions {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.btn .down {
  display: inline-block;
  transition: transform 240ms cubic-bezier(0.6, 0, 0.2, 1);
}

.btn:hover .down {
  transform: translateY(3px);
}

.cv-meta-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.cv-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(3rem, 5vw, 4.5rem);
}

@media (max-width: 880px) {
  .cv-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.cv-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
}

@media (max-width: 880px) {
  .cv-sidebar { position: static; }
}

.cv-block {
  margin-bottom: 1.9rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.cv-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.cv-block h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem;
  font-weight: 500;
}

.cv-block p,
.cv-block ul,
.cv-block address {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
  font-style: normal;
}

.cv-block ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.cv-block .strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 440;
  line-height: 1.3;
}

.cv-block a {
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  transition: color 220ms ease, border-color 220ms ease;
}

.cv-block a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Main column */
.cv-section {
  margin-bottom: 2.6rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--line-soft);
}

.cv-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.cv-section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.cv-section-label .num {
  color: var(--accent);
  margin-right: 0.55rem;
}

.cv-section > h2 {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: 'opsz' 90;
  font-size: clamp(1.6rem, 2.5vw, 2.05rem);
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  line-height: 1.15;
}

.cv-summary {
  font-family: var(--display);
  font-variation-settings: 'opsz' 60;
  font-weight: 320;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 60ch;
  margin: 0;
}

/* Competencies as compact rows */
.cv-skills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.cv-skills li {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 1.2rem;
  padding-block: 0.55rem;
  border-top: 1px dashed var(--line-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cv-skills li:first-child { border-top: 0; padding-top: 0; }

@media (max-width: 640px) {
  .cv-skills li { grid-template-columns: 1fr; gap: 0.2rem; }
}

.cv-skills .label {
  font-family: var(--display);
  font-weight: 460;
  color: var(--text);
}

.cv-skills .detail {
  color: var(--text-soft);
}

/* Roles list */
.cv-roles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.7rem;
}

.cv-role {
  display: grid;
  gap: 0.45rem;
}

.cv-role-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.cv-role-meta .at { color: var(--accent); }

.cv-role h3 {
  font-family: var(--display);
  font-weight: 440;
  font-size: 1.18rem;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.cv-role h3 .org {
  display: block;
  font-style: italic;
  font-weight: 380;
  color: var(--text-soft);
  font-size: 0.92em;
  margin-top: 0.1rem;
}

.cv-role ul {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: grid;
  gap: 0.4rem;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.cv-role ul li {
  padding-left: 1rem;
  position: relative;
}

.cv-role ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Projects in resume page */
.cv-projects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.2rem;
}

.cv-projects li {
  font-size: 0.96rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.cv-projects li .title {
  font-family: var(--display);
  font-weight: 460;
  color: var(--text);
  font-size: 1.06rem;
  display: block;
  margin-bottom: 0.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.5rem 2rem;
  margin-top: 3rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem;
}

.site-footer a {
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  transition: color 240ms ease, border-color 240ms ease;
}

.site-footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

.reveal {
  opacity: 0;
  animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal.d1 { animation-delay: 80ms; }
.reveal.d2 { animation-delay: 220ms; }
.reveal.d3 { animation-delay: 360ms; }
.reveal.d4 { animation-delay: 500ms; }
.reveal.d5 { animation-delay: 640ms; }

.orbit-svg .ring-outer { animation: spin-slow 90s linear infinite; transform-origin: 50% 50%; }
.orbit-svg .ring-mid   { animation: spin-reverse 60s linear infinite; transform-origin: 50% 50%; }
.orbit-svg .ring-inner { animation: spin-slow 30s linear infinite; transform-origin: 50% 50%; }
.orbit-svg .star { animation: pulse 3s ease-in-out infinite; }
.orbit-svg .star-2 { animation: pulse 4.2s ease-in-out infinite; animation-delay: 0.6s; }
.orbit-svg .star-3 { animation: pulse 5s ease-in-out infinite; animation-delay: 1.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .orbit-svg * { animation: none !important; opacity: 1; }
}

/* ---------- Selection ---------- */
::selection {
  background: var(--accent);
  color: #1a140a;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
