/* Wangsun — site styles */

:root {
  --bg: #05070C;
  --bg-2: #070A13;
  --ink: #ECE7DB;
  --soft: #D6D1C4;
  --dim: #C9C5BA;
  --faint: #B5B1A6;
  --gold: #C9A96A;
  --gold-hi: #E3C689;
  --gold-label: #D9BC80;
  --star: #F1D89C;
  --blue: #A9C9EA;
  --line: rgba(236, 231, 219, .16);
  --pad: clamp(22px, 6.67vw, 96px);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --planet-dim: brightness(.62) saturate(.86);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, dl, dd, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg, canvas { display: block; }
em { font-style: italic; color: var(--gold-hi); }

a { color: var(--ink); text-decoration: none; transition: color .4s ease; }
a:hover { color: var(--gold-label); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 6px; }

section, footer { position: relative; scroll-margin-top: 72px; }

.wrap {
  position: relative;
  width: 100%;
  max-width: calc(1248px + 2 * var(--pad));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
}
.skip:focus { top: 16px; color: var(--bg); }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--gold-label);
  text-transform: uppercase;
}
.eyebrow--rule { display: flex; align-items: center; gap: 18px; letter-spacing: .38em; }
.eyebrow--rule::before { content: ''; width: 56px; height: 1px; background: var(--gold); flex: none; }

.h-xl { font-weight: 300; font-size: clamp(40px, 4.72vw, 68px); line-height: 1.06; letter-spacing: -.005em; text-wrap: balance; }
.h-lg { font-weight: 300; font-size: clamp(36px, 4.1vw, 60px); line-height: 1.06; text-wrap: balance; }
.h-md { font-weight: 300; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; text-wrap: balance; }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.62; color: var(--soft); text-wrap: pretty; }

.rule { width: 120px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(201, 169, 106, 0)); }

.sheen {
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 42%, #F5DFA6 50%, var(--ink) 58%, var(--ink) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}

/* ---------- motion ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheen { 0% { background-position: 120% 0; } 55%, 100% { background-position: -20% 0; } }
@keyframes halo { 0% { transform: translate(-50%, -50%) scale(.6); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(3.6); opacity: 0; } }
@keyframes flare { 0%, 100% { transform: translate(-50%, -50%) scale(.92); opacity: .75; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }
@keyframes drop { 0% { transform: translateY(-24px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(56px); opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(120px, 60px) scale(1.15); } }
@keyframes glint { 0% { stroke-dashoffset: 90; } 70%, 100% { stroke-dashoffset: -860; } }

.rise { animation: rise 1.6s var(--ease) both; animation-delay: var(--d, 0s); }
.tw { animation: breathe var(--t, 5s) ease-in-out infinite; animation-delay: var(--o, 0s); }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- shared scenery ---------- */

.nebula { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }

.planet { position: absolute; pointer-events: none; filter: var(--planet-dim); }
.planet__still, .planet__live { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.planet__live { opacity: 0; transition: opacity 1.6s ease; }
.planet.is-live .planet__live { opacity: 1; }
.planet.is-live .planet__still { opacity: 0; transition: opacity .3s ease 1.7s; }

/* ---------- nav ---------- */

.nav { position: fixed; left: 0; top: 0; width: 100%; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .5s ease; animation: fade 2s ease both; }
/* the blur lives on a pseudo-element so the bar never becomes the containing block of the full-screen menu */
.nav::before { content: ''; position: absolute; inset: 0; background: rgba(5, 7, 12, .72); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.nav--solid { border-bottom-color: rgba(236, 231, 219, .08); }
.nav--solid::before { opacity: 1; }
.nav__inner { position: relative; }
.nav__inner { max-width: calc(1248px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); height: 88px; display: flex; align-items: center; justify-content: space-between; transition: height .5s ease; }
.nav--solid .nav__inner { height: 68px; }
.nav__brand { display: flex; align-items: center; gap: 16px; min-height: 44px; font-family: var(--mono); font-size: 12px; letter-spacing: .42em; }
.nav__brand svg { width: 36px; height: 36px; }
.nav__links { display: flex; align-items: center; gap: clamp(24px, 3.3vw, 48px); }
.nav__links a { display: flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.nav__toggle { display: none; }

/* ---------- hero ---------- */

.hero { height: clamp(720px, 100svh, 1080px); overflow: hidden; background: radial-gradient(ellipse 70% 76% at 85% 44%, #14213c 0%, #0a101f 46%, var(--bg) 100%); }
.hero__bg { position: absolute; inset: 0; }
.nebula--violet { left: 57%; top: -12%; width: 620px; height: 460px; background: #3B2A78; opacity: .34; animation: drift 34s ease-in-out infinite alternate; }
.nebula--blue { left: 25%; top: 52%; width: 560px; height: 420px; background: #1D4E86; opacity: .30; animation: drift 40s ease-in-out infinite alternate-reverse; }
.sky { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.planet--earth { right: 0; bottom: 0; width: max(100%, 900px); aspect-ratio: 1440 / 380; }
.hero__scrim { position: absolute; inset: 0; background: var(--bg); opacity: .3; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 7, 12, .84) 0%, rgba(5, 7, 12, .5) 36%, rgba(5, 7, 12, 0) 58%); pointer-events: none; }
.hero__fade { position: absolute; left: 0; bottom: 0; width: 100%; height: 200px; background: linear-gradient(180deg, rgba(5, 7, 12, 0) 0%, rgba(5, 7, 12, .72) 62%, var(--bg) 100%); pointer-events: none; }

.hero__content { position: relative; padding-top: clamp(150px, 27vh, 300px); display: flex; flex-direction: column; gap: clamp(22px, 2.5vw, 36px); }
.hero__title { font-weight: 300; font-size: clamp(54px, 10.55vw, 152px); line-height: .95; letter-spacing: .1em; white-space: nowrap; }
.hero__tag { font-size: clamp(22px, 2.36vw, 34px); line-height: 1.3; font-weight: 300; font-style: italic; color: #D8D3C6; }

.hero__foot { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 56px; animation: fade 2.4s ease 1.4s both; }
.scroll { display: flex; align-items: center; gap: 18px; min-height: 56px; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--dim); }
.scroll__line { position: relative; width: 1px; height: 56px; background: rgba(236, 231, 219, .18); overflow: hidden; }
.scroll__line::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 24px; background: var(--gold-hi); animation: drop 2.6s ease-in-out infinite; }
.coords { display: flex; align-items: center; gap: 24px; min-height: 56px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink); text-shadow: 0 0 12px rgba(5, 7, 12, .9); }
.coords > div { display: flex; gap: .7em; align-items: center; }
.coords > div + div::before { content: ''; width: 1px; height: 14px; background: rgba(236, 231, 219, .4); margin-right: 24px; }
.coords__gold { color: var(--star); }

/* orbit system */

.orbit { --s: clamp(420px, 52.8vw, 760px); position: absolute; top: 60px; right: calc(var(--s) * -.2237); width: var(--s); height: var(--s); animation: fade 3s ease both; pointer-events: none; }
.orbit__ticks { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin-rev 400s linear infinite; }
.orbit__ring { position: absolute; border-radius: 50%; animation: spin var(--t) linear infinite; animation-delay: var(--o); }
.orbit__ring--3 { inset: 6.58%; border: 1px solid rgba(143, 180, 217, .30); --t: 220s; --o: -60s; }
.orbit__ring--2 { inset: 17.1%; border: 1px solid rgba(201, 169, 106, .38); --t: 150s; --o: -104s; }
.orbit__ring--1 { inset: 27.63%; border: 1px solid rgba(236, 231, 219, .30); --t: 96s; --o: -30s; }
.orbit__body { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); height: auto; }
.orbit__body--3 { width: calc(var(--s) * .0526); filter: drop-shadow(0 0 14px rgba(143, 180, 217, .55)); }
.orbit__body--2 { width: calc(var(--s) * .1658); filter: drop-shadow(0 0 14px rgba(201, 169, 106, .45)); }
.orbit__body--1 { width: calc(var(--s) * .0421); filter: drop-shadow(0 0 12px rgba(236, 231, 219, .45)); }
.orbit__upright { position: absolute; left: 50%; top: 0; width: 0; height: 0; animation: spin-rev var(--t) linear infinite; animation-delay: var(--o); }
.orbit__label { position: absolute; top: -8px; white-space: nowrap; font-family: var(--mono); font-size: 11px; letter-spacing: .24em; }
.orbit__label--3 { left: calc(var(--s) * .045); color: #C7D8EA; }
.orbit__label--2 { left: calc(var(--s) * .095); color: #E6D3A8; }
.orbit__label--1 { left: calc(var(--s) * .037); color: var(--ink); }

.sun { --u: calc(var(--s) / 760); position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.sun > * { position: absolute; left: 0; top: 0; }
.sun__flare { width: calc(220 * var(--u)); height: calc(220 * var(--u)); border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 190, .34) 0%, rgba(241, 216, 156, .12) 32%, rgba(241, 216, 156, 0) 68%); animation: flare 7s ease-in-out infinite; }
.sun__spike { transform: translate(-50%, -50%); }
.sun__spike--h { width: calc(280 * var(--u)); height: 1px; background: linear-gradient(90deg, rgba(255, 240, 205, 0), rgba(255, 240, 205, .9) 50%, rgba(255, 240, 205, 0)); }
.sun__spike--v { width: 1px; height: calc(220 * var(--u)); background: linear-gradient(180deg, rgba(255, 240, 205, 0), rgba(255, 240, 205, .9) 50%, rgba(255, 240, 205, 0)); }
.sun__reticle { width: calc(120 * var(--u)); height: calc(120 * var(--u)); margin: calc(-60 * var(--u)) 0 0 calc(-60 * var(--u)); border-radius: 50%; border: 1px dashed rgba(236, 231, 219, .30); animation: spin 60s linear infinite; }
.sun__halo { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(241, 216, 156, .8); animation: halo 4.5s ease-out infinite; }
.sun__halo--late { animation-delay: -2.25s; }
.sun__core { width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #fff 0%, #FFF1CC 45%, var(--star) 100%); box-shadow: 0 0 46px 14px rgba(241, 216, 156, .6); }
.sun__label { left: calc(24 * var(--u)); top: calc(16 * var(--u)); display: flex; flex-direction: column; gap: 6px; white-space: nowrap; font-family: var(--mono); }
.sun__name { font-size: 10.5px; letter-spacing: .2em; color: var(--star); }
.sun__meta { font-size: 9.5px; letter-spacing: .16em; color: #CFCABD; }

/* ---------- family ---------- */

.family { min-height: clamp(620px, 55.5vw, 800px); display: flex; align-items: center; overflow: hidden; padding: 110px 0; background: radial-gradient(ellipse 53% 78% at 82% 50%, #1a1210 0%, #0a0809 55%, var(--bg) 100%); }
.nebula--family { left: -200px; top: 300px; width: 520px; height: 420px; background: #1D4E86; opacity: .18; }
.planet--mars { width: clamp(420px, 44.4vw, 640px); aspect-ratio: 1; right: -4.2vw; top: 50%; transform: translateY(-50%); }
.family__text { max-width: 680px; display: flex; flex-direction: column; gap: 36px; }
.family__text .lede { max-width: 600px; }

/* ---------- generations / constellation ---------- */

.gens { overflow: hidden; padding: clamp(90px, 9vw, 130px) 0 clamp(100px, 10vw, 150px); background: radial-gradient(ellipse 76% 66% at 50% 58%, #0d1730 0%, #070a14 60%, var(--bg) 100%); }
.nebula--gens-a { left: 17%; top: 33%; width: 560px; height: 380px; background: #3B2A78; opacity: .22; animation: drift 38s ease-in-out infinite alternate; }
.nebula--gens-b { left: 57%; top: 42%; width: 520px; height: 360px; background: #1D4E86; opacity: .24; animation: drift 44s ease-in-out infinite alternate-reverse; }
.gens__chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.gens__chart-labels { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; fill: rgba(199, 216, 234, .62); }
.gens .h-lg { margin-top: 22px; }

.cons { position: relative; margin-top: 36px; aspect-ratio: 1248 / 580; }
.cons__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cons__glint { stroke-dasharray: 90 1400; animation: glint 7s cubic-bezier(.4, 0, .6, 1) infinite; }
.cons__list { position: absolute; inset: 0; }
.gen { position: absolute; display: grid; align-items: start; }
.gen h3 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.1; font-weight: 400; }
.gen p { margin-top: 8px; font-size: clamp(16px, 1.32vw, 19px); line-height: 1.45; color: var(--soft); }
.gen__num { font-size: clamp(52px, 5vw, 72px); line-height: .9; font-weight: 300; color: transparent; -webkit-text-stroke: 1px var(--gold-hi); }
.gen__star { display: none; }
.gen--1 { left: 2.88%; top: 75.86%; width: 28.85%; grid-template-columns: clamp(42px, 3.9vw, 56px) minmax(0, 1fr); }
.gen--2 { left: 32.85%; top: 7.93%; width: 27.2%; grid-template-columns: clamp(56px, 5.3vw, 76px) minmax(0, 1fr); }
.gen--3 { left: 65.7%; top: 74.14%; width: 32%; grid-template-columns: clamp(72px, 6.7vw, 96px) minmax(0, 1fr); }
.gen--next { left: 84.9%; top: 23.8%; display: block; }
.gen__future { white-space: nowrap; font-family: var(--mono); font-size: 11px; letter-spacing: .26em; color: #DAD6CB; }

/* ---------- the star ---------- */

.star { overflow: hidden; padding: clamp(90px, 8vw, 120px) 0; border-top: 1px solid rgba(236, 231, 219, .10); }
.nebula--star { left: 4%; top: 20%; width: 560px; height: 460px; background: #8A6A2E; opacity: .16; }
.star__grid { display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 576fr); column-gap: clamp(40px, 7.8vw, 112px); align-items: center; }
.scope { --s: 100cqw; position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; container-type: inline-size; }
.scope > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope__ticks { animation: spin 240s linear infinite; }
.scope__labels { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; fill: #C7D8EA; }
.sun--scope { --u: calc(100cqw / 560); }
.sun--scope .sun__flare { width: calc(240 * var(--u)); height: calc(240 * var(--u)); }
.sun--scope .sun__spike--h { width: calc(340 * var(--u)); }
.sun--scope .sun__spike--v { height: calc(340 * var(--u)); }
.sun--scope .sun__core { width: 20px; height: 20px; }
.scope__reticle { width: calc(120 * var(--u)); height: calc(120 * var(--u)); margin: calc(-60 * var(--u)) 0 0 calc(-60 * var(--u)); animation: spin-rev 50s linear infinite; }
.star__text { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.star__name { font-weight: 300; font-style: italic; font-size: clamp(46px, 5.55vw, 80px); line-height: 1.05; letter-spacing: .005em; }
.facts { border-top: 1px solid rgba(236, 231, 219, .18); }
.facts > div { display: grid; grid-template-columns: minmax(150px, 260fr) minmax(0, 316fr); align-items: center; gap: 16px; min-height: 58px; padding: 8px 0; border-bottom: 1px solid rgba(236, 231, 219, .18); }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; color: var(--dim); }
.facts dd { font-size: clamp(21px, 1.8vw, 26px); }

/* ---------- maxims ---------- */

.maxims { overflow: hidden; padding: clamp(100px, 10vw, 150px) 0; background: var(--bg-2); }
.planet--saturn { --w: clamp(760px, 83.3vw, 1200px); width: var(--w); aspect-ratio: 1200 / 720; right: calc(var(--w) * -.2667); top: 50%; transform: translateY(-50%); }
.maxims__shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-2) 0%, rgba(7, 10, 19, .94) 38%, rgba(7, 10, 19, .55) 58%, rgba(7, 10, 19, 0) 76%); pointer-events: none; }
.maxims .h-lg { margin-top: 28px; }
.maxims__list { margin-top: 64px; max-width: 840px; border-bottom: 1px solid var(--line); }
.maxims__list li { display: grid; grid-template-columns: clamp(64px, 7.6vw, 110px) minmax(0, 1fr); align-items: baseline; padding: 40px 0; border-top: 1px solid var(--line); }
.maxims__n { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; color: var(--dim); }
.maxims__list p { font-size: clamp(24px, 2.3vw, 33px); line-height: 1.32; font-weight: 300; text-wrap: pretty; }

/* ---------- resources ---------- */

.res { overflow: hidden; padding: clamp(90px, 8.5vw, 130px) 0; }
.nebula--res { left: 62%; top: 8%; width: 620px; height: 420px; background: #1D4E86; opacity: .18; }
.res .h-md { margin-top: 28px; }
.res__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.res__grid li { min-height: 148px; padding: 26px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .5s ease; }
.res__grid li:hover { background: rgba(201, 169, 106, .07); }
.res__grid span { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; color: var(--gold-label); }
.res__grid strong { font-weight: 400; font-size: clamp(21px, 1.75vw, 25px); line-height: 1.15; }
.res__note { margin-top: 40px; font-size: 18px; font-style: italic; color: var(--dim); }

/* ---------- quote ---------- */

.quote { overflow: hidden; padding: clamp(100px, 9vw, 130px) 0 0; background: radial-gradient(ellipse 62% 60% at 50% 34%, #14110f 0%, var(--bg) 100%); }
.planet--jupiter { width: max(100%, 900px); aspect-ratio: 1440 / 300; left: 50%; bottom: 0; transform: translateX(-50%); }
.quote__fade { position: absolute; left: 0; bottom: 0; width: 100%; height: 160px; background: linear-gradient(180deg, rgba(4, 6, 10, 0) 0%, rgba(4, 6, 10, .8) 70%, #04060A 100%); pointer-events: none; }
.quote__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; padding-bottom: max(26vw, 300px); }
.quote blockquote { max-width: 1060px; text-align: center; font-size: clamp(25px, 2.78vw, 40px); line-height: 1.4; font-weight: 300; font-style: italic; text-wrap: balance; }
.quote__by { display: flex; align-items: center; gap: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .32em; color: var(--gold-label); text-align: center; }
.quote__by::before, .quote__by::after { content: ''; width: 48px; height: 1px; background: var(--gold); flex: none; }

/* ---------- footer ---------- */

.foot { padding: clamp(80px, 7.6vw, 110px) 0 44px; background: #04060A; }
.foot__mail { display: inline-block; margin-top: 24px; padding-bottom: 8px; font-size: clamp(34px, 5.28vw, 76px); line-height: 1.1; font-weight: 300; letter-spacing: .01em; border-bottom: 1px solid rgba(201, 169, 106, .6); overflow-wrap: anywhere; }
.foot__legal { margin-top: 44px; max-width: 900px; font-size: 16px; line-height: 1.6; color: var(--faint); text-wrap: pretty; }
.foot__bar { margin-top: 44px; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(236, 231, 219, .10); font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--faint); }
.foot__bar span:first-child { letter-spacing: .34em; }
.foot__credit { margin-top: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: #8F8C84; }

/* ---------- tablet ---------- */

@media (max-width: 1080px) {
  .cons { aspect-ratio: auto; margin-top: 56px; }
  .cons__lines { display: none; }
  .cons__list { position: relative; inset: auto; display: flex; flex-direction: column; gap: 0; padding-left: 8px; }
  .gen, .gen--1, .gen--2, .gen--3, .gen--next { position: relative; left: auto; top: auto; width: auto; max-width: 620px; display: grid; grid-template-columns: 44px 64px minmax(0, 1fr); padding: 0 0 56px; }
  .gen::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: -12px; width: 1px; background: linear-gradient(180deg, rgba(227, 198, 137, .6), rgba(227, 198, 137, .25)); }
  .gen--3::before { background: none; border-left: 1px dashed rgba(236, 231, 219, .45); }
  .gen--next::before { display: none; }
  .gen--next { padding-bottom: 0; grid-template-columns: 44px minmax(0, 1fr); align-items: center; }
  .gen__star { display: block; position: relative; width: 23px; height: 23px; margin-top: 12px; }
  .gen__star::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; background: rgba(236, 231, 219, .12); animation: breathe 5s ease-in-out infinite; }
  .gen__star::after { content: ''; position: absolute; left: 6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 3px rgba(236, 231, 219, .5); }
  .gen__star--2::after { background: var(--star); box-shadow: 0 0 14px 3px rgba(227, 198, 137, .6); }
  .gen__star--3::after { background: #CFE3F7; box-shadow: 0 0 14px 3px rgba(143, 180, 217, .6); }
  .gen__star--next { margin-top: 0; }
  .gen__star--next::before { background: none; inset: 1px; border: 1px dashed var(--ink); animation: none; }
  .gen__star--next::after { left: 9px; top: 9px; width: 5px; height: 5px; box-shadow: none; animation: breathe 3s ease-in-out infinite; }
  .gen__num { font-size: 52px; }
  .gen h3 { font-size: 30px; }
  .gen p { font-size: 18px; }

  .res__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body { font-size: 19px; }

  .nav__inner { height: 72px; }
  .nav--solid .nav__inner { height: 64px; }
  .nav__toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 0 9px; background: none; border: 0; cursor: pointer; z-index: 2; }
  .nav__toggle span { display: block; width: 26px; height: 1px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s ease; }
  .nav--open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav--open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__brand { z-index: 2; }
  .nav__links { position: fixed; inset: 0; height: 100dvh; flex-direction: column; justify-content: center; gap: 10px; background: rgba(5, 7, 12, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease; }
  .nav--open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a { min-height: 56px; font-size: 14px; letter-spacing: .34em; }

  .hero { height: auto; min-height: max(100svh, 760px); }
  .hero__content { padding-top: 132px; }
  .hero__title { font-size: clamp(50px, 15.2vw, 120px); letter-spacing: .06em; }
  .hero__shade { background: linear-gradient(180deg, rgba(5, 7, 12, .8) 0%, rgba(5, 7, 12, .35) 46%, rgba(5, 7, 12, 0) 70%); }
  .orbit { --s: min(118vw, 600px); top: auto; bottom: 120px; right: auto; left: 50%; margin-left: calc(var(--s) * -.5); opacity: .9; }
  .orbit__label { font-size: 9.5px; letter-spacing: .2em; }
  .sun__name { font-size: 9.5px; }
  .sun__meta { font-size: 8.5px; }
  .hero__foot { left: 0; transform: none; bottom: 28px; gap: 0; }
  .scroll { display: none; }
  .coords { flex-wrap: wrap; gap: 6px 18px; font-size: 10px; letter-spacing: .16em; min-height: 0; }
  .coords > div + div::before { margin-right: 18px; }

  .family { display: block; min-height: 0; padding: 0 0 100px; background: radial-gradient(ellipse 90% 46% at 70% 22%, #1a1210 0%, #0a0809 55%, var(--bg) 100%); }
  .planet--mars { position: relative; right: auto; top: auto; transform: none; width: min(86vw, 520px); margin: 0 -8vw 0 auto; }
  .family__text { margin-top: -6vw; gap: 28px; }

  .star__grid { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .scope { max-width: 440px; margin: 0 auto; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }

  .maxims { padding-top: 0; }
  .planet--saturn { position: relative; --w: max(150vw, 620px); right: auto; top: auto; transform: none; left: 50%; margin-left: calc(var(--w) * -.5); }
  .maxims__shade { background: linear-gradient(180deg, rgba(7, 10, 19, 0) 0%, rgba(7, 10, 19, 0) 30%, var(--bg-2) 64%); }
  .maxims .wrap { margin-top: -16vw; }
  .maxims__list { margin-top: 44px; }
  .maxims__list li { padding: 30px 0; }

  .quote__inner { padding-bottom: 300px; }
}

@media (max-width: 560px) {
  .eyebrow { font-size: 11px; letter-spacing: .28em; }
  .eyebrow--rule { gap: 12px; letter-spacing: .3em; }
  .eyebrow--rule::before { width: 32px; }
  .res__grid { grid-template-columns: minmax(0, 1fr); }
  .res__grid li { min-height: 0; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 22px; padding: 22px 20px; }
  .gen, .gen--1, .gen--2, .gen--3 { grid-template-columns: 40px 62px minmax(0, 1fr); }
  .gen__num { font-size: 44px; }
  .quote__by::before, .quote__by::after { width: 24px; }
  .quote__by { letter-spacing: .24em; font-size: 10px; }
  .foot__bar { letter-spacing: .14em; font-size: 10px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .orbit__ring, .orbit__upright, .orbit__ticks, .scope__ticks, .scope__reticle, .sun__reticle { animation: none !important; }
  .orbit__ring--3 { transform: rotate(98deg); } .orbit__ring--3 .orbit__upright { transform: rotate(-98deg); }
  .orbit__ring--2 { transform: rotate(250deg); } .orbit__ring--2 .orbit__upright { transform: rotate(-250deg); }
  .orbit__ring--1 { transform: rotate(112deg); } .orbit__ring--1 .orbit__upright { transform: rotate(-112deg); }
  .sun__halo, .cons__glint, .scroll__line::after { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
