:root {
  --bg: #090d16;
  --bg-raise: #10172a;
  --bg-raise-2: #141d35;
  --ink: #eef1f8;
  --muted: #9aa3c0;
  --teal: #35d8c2;
  --teal-deep: #1e9c8a;
  --gold: #e0b876;
  --gold-deep: #b98f4f;
  --indigo: #5b6fe0;
  --line: rgba(238, 241, 248, 0.13);
  --line-soft: rgba(238, 241, 248, 0.06);
  --glow-teal: rgba(53, 216, 194, 0.45);
  --glow-gold: rgba(224, 184, 118, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; position: relative; }
section { padding: 84px 0; position: relative; }
.rule-top { border-top: 1px solid var(--line); }
.tight { padding-top: 52px; padding-bottom: 52px; }

/* --- living background: fixed, behind everything, same on every page --- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: .4; will-change: transform;
}
.aurora .a1 { width: 56vw; height: 56vw; left: -14vw; top: -18vw; background: var(--teal); animation: drift1 28s ease-in-out infinite alternate; }
.aurora .a2 { width: 46vw; height: 46vw; right: -12vw; bottom: -14vw; background: var(--gold); animation: drift2 34s ease-in-out infinite alternate; }
.aurora .a3 { width: 38vw; height: 38vw; right: 12vw; top: 14vw; background: var(--indigo); opacity: .3; animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(7vw, 9vw) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-8vw, -6vw) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-5vw, 8vw) scale(0.94); } }
.grain { position: fixed; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; color: var(--ink); margin: 0 0 14px; }
h1 { font-size: clamp(36px, 6.6vw, 60px); font-weight: 600; line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(27px, 4.6vw, 40px); font-weight: 600; line-height: 1.14; }
h3 { font-size: 19px; font-weight: 600; color: var(--ink); }
p { margin: 0 0 14px; color: var(--ink); }
.lede { font-size: 18.5px; color: var(--muted); max-width: 600px; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--gold); display: inline-block; }

header.site {
  position: sticky; top: 0; z-index: 30;
  background: rgba(9, 13, 22, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 1px rgba(224,184,118,.25), 0 0 18px -4px var(--glow-gold); }
.brand .names { display: flex; flex-direction: column; line-height: 1.2; }
.brand .names span.main { font-family: "Fraunces", serif; font-weight: 600; font-size: 17px; }
.brand .names span.sub { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
nav.links { display: flex; gap: 22px; align-items: center; font-size: 14px; }
nav.links a.navlink { color: var(--ink); text-decoration: none; position: relative; opacity: .85; }
nav.links a.navlink[aria-current="page"] { color: var(--teal); opacity: 1; }
nav.links a.navlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
nav.links a.navlink:hover::after, nav.links a.navlink[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 680px) { nav.links .hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 3px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #06110f; text-decoration: none; font-weight: 700; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px var(--glow-teal); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); box-shadow: 0 10px 26px -10px var(--glow-gold); }
.btn.small { padding: 10px 17px; font-size: 13.5px; }

.hero { padding: 84px 0 56px; overflow: visible; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: start; }
@media (min-width: 840px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

.reveal-up { opacity: 0; transform: translateY(18px); animation: riseIn .75s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .36s; } .d4 { animation-delay: .52s; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

.seal-wrap { display: flex; justify-content: center; padding-top: 6px; }
.seal { position: relative; width: min(250px, 62vw); aspect-ratio: 1; display: grid; place-items: center; }
.seal.small { width: min(150px, 42vw); }
.seal .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--gold); opacity: .6; animation: spin 34s linear infinite; box-shadow: 0 0 40px -6px var(--glow-gold); }
.seal .ring2 { inset: 16px; border-style: solid; border-width: 1px; border-color: var(--teal); opacity: .35; animation: spin 46s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal img { width: 70%; border-radius: 50%; filter: drop-shadow(0 14px 26px rgba(0,0,0,.45)); transform: rotate(-6deg); }
.seal .ink-stamp {
  position: absolute; bottom: -4px; right: 0;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600;
  color: var(--bg); border: none; border-radius: 50%;
  width: 90px; height: 90px; display: grid; place-items: center; text-align: center;
  transform: rotate(10deg); background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  line-height: 1.3; padding: 4px; box-shadow: 0 10px 24px -6px var(--glow-gold);
}

.ledger { margin-top: 32px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(12px); }
.js .entry.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .entry.reveal.in { opacity: 1; transform: translateY(0); }
body:not(.js) .entry { opacity: 1; transform: none; }
.entry .tag { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--teal); border: 1px solid var(--line); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; font-weight: 600; background: var(--bg-raise); }
.entry h3 { margin-bottom: 6px; }
.entry p { color: var(--muted); max-width: 620px; }
.entry:hover .tag { border-color: var(--teal); box-shadow: 0 0 18px -4px var(--glow-teal); }

.note-strip { margin-top: 28px; padding: 20px 22px; border-left: 3px solid var(--gold); background: var(--bg-raise); font-size: 15.5px; color: var(--muted); border-radius: 0 4px 4px 0; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px; padding: 24px 24px 24px 76px; transition: border-color .2s ease; }
.steps li:hover { border-color: var(--teal-deep); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 24px; font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--gold); font-size: 15px; }
.steps li strong { display: block; font-family: "Fraunces", serif; color: var(--ink); font-size: 17.5px; margin-bottom: 5px; font-weight: 600; }

.about { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; }
@media (min-width: 760px) { .about { grid-template-columns: 220px 1fr; } }
.about .photo { position: relative; }
.about img.portrait { border-radius: 6px; width: 100%; max-width: 250px; border: 1px solid var(--line); filter: contrast(1.04) saturate(1.03); }
.about .photo::after { content: ""; position: absolute; inset: 12px -12px -12px 12px; border: 1.5px solid var(--gold); border-radius: 6px; z-index: -1; opacity: .7; }
.affiliation { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-raise); font-size: 15px; }
.affiliation strong { color: var(--gold); }

.registry { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 12px; }
.registry .row { display: grid; grid-template-columns: 1fr; gap: 2px 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.registry .row:last-child { border-bottom: none; }
.registry .row:nth-child(odd) { background: var(--bg-raise); }
@media (min-width: 600px) { .registry .row { grid-template-columns: 230px 1fr; align-items: baseline; } }
.registry dt { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: .04em; color: var(--teal); text-transform: uppercase; }
.registry dd { margin: 0; font-weight: 500; }
.todo { color: var(--muted); font-style: italic; font-weight: 400; }

.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.contact-list li { padding: 18px 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: var(--bg-raise); transition: background .2s ease; }
.contact-list li:hover { background: var(--bg-raise-2); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .k { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--teal); text-transform: uppercase; letter-spacing: .04em; }

.doorcards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
@media (min-width: 700px) { .doorcards { grid-template-columns: repeat(3, 1fr); } }
.doorcard {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 6px; padding: 26px 24px;
  background: var(--bg-raise); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.doorcard:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 16px 34px -14px var(--glow-teal); }
.doorcard .tag { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.doorcard h3 { margin: 10px 0 7px; }
.doorcard p { color: var(--muted); font-size: 14.5px; margin: 0; }
.doorcard .go { display: inline-block; margin-top: 14px; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--teal); }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { border: 1px solid var(--line); border-radius: 6px; padding: 18px 16px; background: var(--bg-raise); text-align: left; }
.stat .n { font-family: "Fraunces", serif; font-size: 28px; color: var(--gold); font-weight: 600; display: block; }
.stat .l { font-size: 12.5px; color: var(--muted); font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }

footer.site { border-top: 1px solid var(--line); padding: 36px 0 52px; font-size: 13.5px; color: var(--muted); }
footer.site p { margin-bottom: 6px; }
footer.site .foot-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .entry, .seal .ring, .seal .ring2, .aurora span { animation: none !important; opacity: 1 !important; transform: none !important; }
}
