:root {
  --void: #05060a;
  --ink: #0b0d12;
  --panel: rgba(12, 14, 20, 0.78);
  --panel-solid: #10131b;
  --line: rgba(224, 176, 104, 0.22);
  --line-strong: rgba(224, 176, 104, 0.45);
  --gold: #e0b068;
  --gold-2: #f0d09a;
  --copper: #c45c32;
  --teal: #7ec8d4;
  --teal-deep: #3a7ca5;
  --cream: #f4efe6;
  --muted: #b7b0a4;
  --dim: #8a8378;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max: 1180px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100vw; }
body {
  background: var(--void);
  color: var(--cream);
  font-family: "Outfit", "Source Sans 3", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(196, 92, 50, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(58, 124, 165, 0.14), transparent 55%),
    radial-gradient(800px 500px at 50% 120%, rgba(126, 200, 212, 0.08), transparent 50%);
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 1;
  min-width: 0;
}
p, h1, h2, h3, li {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  white-space: normal;
}
.hero-glass, .hero-glass p, .prose, .prose p, .exact, .x-bio, .x-profile {
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.site-header, .section, .site-footer, .page-hero {
  max-width: 100vw;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(5,6,10,0.92), rgba(5,6,10,0.72));
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--cream);
  min-width: 0;
}
.brand strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px 6px;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}
.nav a:hover {
  color: var(--gold);
}
.nav a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  background: rgba(126, 200, 212, 0.12);
}
.nav a.active:hover {
  color: var(--gold);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold);
  padding: 8px 12px;
  border-radius: 999px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  max-width: 100%;
}
.hero-bg {
  position: absolute;
  inset: -4%;
  background:
    radial-gradient(ellipse 36% 40% at 50% 50%, rgba(5,6,10,0) 0%, rgba(5,6,10,0.04) 38%, rgba(5,6,10,0.28) 72%, rgba(5,6,10,0.55) 100%),
    linear-gradient(180deg, rgba(5,6,10,0.22) 0%, transparent 18%, transparent 78%, rgba(5,6,10,0.55) 100%),
    url("helix.jpg") center center / cover no-repeat;
  filter: saturate(1.14) contrast(1.08);
  animation: nebula-drift 56s ease-in-out infinite;
}
.stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
}
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.72);
  text-decoration: none;
  animation: cue-in 1.2s 0.45s ease both;
}
.scroll-cue:hover { color: var(--cream); }
.scroll-cue-label { margin-inline-end: -0.28em; }
.scroll-cue-line {
  width: 1px;
  height: 2.1rem;
  margin-top: 0.45rem;
  background: linear-gradient(to bottom, transparent, rgba(244, 239, 230, 0.7));
  animation: scroll-line 2.4s ease-in-out infinite;
}
.hero .scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  z-index: 4;
  animation: cue-in-hero 1.2s 1.4s ease both;
}
.page-hero .scroll-cue,
.scroll-cue.inline {
  position: relative;
  margin: 28px auto 0;
  z-index: 2;
}
@keyframes cue-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cue-in-hero {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes scroll-line {
  0% { transform: scaleY(0.35); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.35); transform-origin: bottom; opacity: 0.3; }
}

.hero-slogan {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  margin: 0;
  width: min(14em, 86vw);
  max-width: 86vw;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(30px, 5vw, 62px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: #fbf6ec;
  text-shadow:
    0 0 28px rgba(126, 200, 212, 0.28),
    0 0 40px rgba(8, 10, 16, 0.7),
    0 1px 2px rgba(8, 10, 16, 0.9);
  animation: slogan-in 1.4s ease both, core-glow 8s ease-in-out 1.4s infinite;
}
.intro-section {
  padding-top: 56px;
  padding-bottom: 24px;
}
.intro-copy {
  max-width: 68ch;
  margin: 0 auto 8px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}
.intro-section .cta-row {
  justify-content: center;
}
@keyframes nebula-drift {
  0% { transform: scale(1.02) translate3d(0,0,0); }
  50% { transform: scale(1.09) translate3d(-1.4%, 0.9%, 0); }
  100% { transform: scale(1.02) translate3d(0,0,0); }
}
@keyframes slogan-in {
  from { opacity: 0; filter: blur(8px); transform: translate(-50%, calc(-50% + 16px)); }
  to { opacity: 1; filter: blur(0); transform: translate(-50%, -50%); }
}
@keyframes core-glow {
  0%, 100% { text-shadow: 0 0 24px rgba(126,200,212,0.22), 0 0 40px rgba(8,10,16,0.7); }
  50% { text-shadow: 0 0 34px rgba(224,176,104,0.38), 0 0 54px rgba(8,10,16,0.55); }
}
.kicker {
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 16px;
}
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 12px;
}
h1 { font-size: clamp(42px, 7vw, 84px); }
h2 { font-size: clamp(28px, 4vw, 44px); color: var(--gold-2); }
h3 { font-size: 22px; color: var(--gold); }
.lede {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 3vw, 34px);
  font-style: italic;
  color: var(--cream);
  max-width: 18em;
  margin: 0 0 22px;
}
.hero p {
  max-width: min(680px, 100%);
  color: var(--muted);
  font-size: 18px;
}
p, h1, h2, h3, .lede, .kicker, .x-bio, .exact {
  max-width: 100%;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  background: rgba(224, 176, 104, 0.08);
}
.btn.primary {
  background: var(--gold);
  color: #1a1208;
  border-color: var(--gold);
  font-weight: 600;
}
.btn.primary:hover { background: var(--gold-2); color: #1a1208; }
.btn:hover { border-color: var(--gold); color: var(--gold-2); }

.section { padding: 88px 0; position: relative; z-index: 1; }
.section.tight { padding: 48px 0 88px; }
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: 0;
  margin: 0 0 28px;
}

.page-hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero.photo {
  min-height: 68vh;
}
.page-hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.page-hero .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,6,10,0.15), rgba(5,6,10,0.88));
}
.page-hero .wrap { padding-bottom: 40px; z-index: 2; min-width: 0; }

.prose { width: 100%; max-width: 72ch; }
.prose p { color: var(--muted); margin: 0 0 18px; width: 100%; }
.prose p + p { margin-top: 0; }
.prose .exact {
  color: #e8e2d6;
  font-size: 18px;
  max-width: 68ch;
}

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 18px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(126, 200, 212, 0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 40px rgba(196, 92, 50, 0.12);
}
.card .media {
  aspect-ratio: 16/10;
  background: #111;
  overflow: hidden;
}
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 18px 20px; }
.card .body h3 { margin-bottom: 6px; }
.card .meta {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  color: var(--cream);
  min-height: 220px;
}
.social-card .logo {
  height: 168px;
  display: grid;
  place-items: center;
}
.social-card .logo svg { width: 84px; height: 84px; }
.social-card .label {
  padding: 14px 10px 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.social-card.x-card { border-color: rgba(255,255,255,0.2); }
.social-card.x-card .logo { background: #000; }
.social-card.li .logo { background: #0a66c2; }
.social-card.gander .logo { background: #0b0b0b; }
.social-card.yt .logo { background: #111; }

.x-feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
  align-items: stretch;
}
.x-profile {
  background:
    linear-gradient(180deg, rgba(224,176,104,0.08), transparent 40%),
    var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.x-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin-bottom: 16px;
}
.x-handle { color: var(--gold); letter-spacing: 0.08em; }
.x-bio { color: var(--muted); margin: 12px 0 20px; }
.x-stats {
  display: flex;
  gap: 22px;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.x-stats b { color: var(--cream); display: block; font-size: 18px; letter-spacing: 0; text-transform: none; }
.timeline-wrap {
  background: #000;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  overflow: hidden;
  height: 640px;
  display: flex;
  flex-direction: column;
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.timeline-head a { color: var(--gold); }
.timeline-feed {
  overflow-y: auto;
  flex: 1;
}
.post {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}
.post img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.post:hover { background: rgba(255,255,255,0.04); }
.post:last-child { border-bottom: 0; }
.post .when { color: var(--dim); font-size: 12px; letter-spacing: 0.06em; }
.post p { margin: 8px 0 0; color: #e8e8e8; font-size: 15px; line-height: 1.45; }

.cv-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 36px;
}
.cv-toc {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  align-self: start;
  height: fit-content;
  max-height: calc(100vh - var(--nav-h) - 36px);
  overflow-y: auto;
  z-index: 5;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10,12,18,0.92);
  backdrop-filter: blur(12px);
}
.cv-section {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.cv-toc a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 8px 6px 12px;
  letter-spacing: 0.04em;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}
.cv-toc a:hover {
  color: var(--gold);
}
.cv-toc a.is-current {
  color: var(--teal);
  border-left-color: var(--teal);
  background: rgba(126, 200, 212, 0.12);
}
.cv-toc a.is-current:hover {
  color: var(--gold);
}
.cv-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
}
.portrait {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 10px;
}
.chip {
  border: 1px solid var(--line);
  color: var(--gold-2);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

.cv-section {
  margin: 0 0 42px;
  padding: 0 0 8px;
}
.cv-section h2 {
  font-size: 28px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.entry {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(224,176,104,0.1);
}
.entry:last-child { border-bottom: 0; }
.when-col {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
}
.entry h3 { font-size: 20px; color: var(--cream); margin: 0 0 4px; }
.entry .role { color: var(--teal); font-size: 15px; margin-bottom: 8px; }
.entry p, .entry li { color: #d9d2c6; }
.entry ul { margin: 8px 0 0; padding-left: 18px; }
.entry li { margin: 4px 0; }
.abstract {
  background: rgba(126, 200, 212, 0.06);
  border-left: 3px solid var(--teal);
  padding: 22px 22px 8px;
  border-radius: 0 16px 16px 0;
}
.abstract p { color: #e6dfd3; font-size: 16.5px; }

.pub {
  padding: 12px 0;
  border-bottom: 1px solid rgba(224,176,104,0.1);
  color: #e6dfd3;
}
.pub em { color: var(--gold-2); font-style: italic; }
.pub a { word-break: break-word; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}
.panel h3 { margin-bottom: 10px; }
.panel p { color: var(--muted); margin: 0 0 8px; }

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.video-card .thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute;
  inset: auto auto 16px 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1208;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.4);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-row a { color: var(--muted); }
.obf { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; color: var(--gold-2); }

.contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.contact-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 12, 18, 0.55);
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.contact-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.contact-value {
  color: var(--cream);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.contact-chip .obf {
  font-size: 13px;
  color: var(--cream);
  user-select: all;
}
a.contact-chip:hover {
  border-color: var(--gold);
  background: rgba(224, 176, 104, 0.08);
}
a.contact-chip:hover .contact-label,
a.contact-chip:hover .contact-value {
  color: var(--gold);
}

.star-note {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 0;
}

@media (max-width: 980px) {
  .grid-3, .grid-4, .x-feature, .cv-layout, .cv-head, .two-col, .video-grid, .entry, .feature-row {
    grid-template-columns: 1fr;
  }
  .when-col { padding-top: 0; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(5,6,10,0.96);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .cv-toc {
    position: sticky;
    top: var(--nav-h);
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
    max-height: none;
    border-radius: 0;
    margin: 0 -16px 24px;
    padding: 10px 16px;
  }
  .cv-toc a { padding: 4px 8px 4px 10px; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; max-width: 100vw; }
  .brand strong { font-size: 18px; }
  .brand span { display: none; }
  .site-header { height: auto; min-height: 60px; }
  .kicker { letter-spacing: 0.14em; font-size: 11px; }
  h1 { font-size: 34px; }
  .lede { font-size: 22px; }
  .hero { min-height: 100svh; }
  .hero-slogan { font-size: 22px; width: min(92vw, 20rem); }
  .intro-copy { font-size: 16px; text-align: left; }
  .stars { display: none; }
  .page-hero, .page-hero.photo { min-height: 46vh; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .contact-row { grid-template-columns: 1fr; }
  .btn { justify-content: center; }
  .menu-btn { flex-shrink: 0; }
  .x-profile, .timeline-wrap, .prose, .exact, .hero-glass { min-width: 0; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-slogan, .scroll-cue, .scroll-cue-line { animation: none; }
}

@media print {
  .site-header, .site-footer, .menu-btn, .cta-row, .cv-toc, .scroll-cue { display: none !important; }
  body { background: #fff; color: #111; }
  .cv-layout { display: block; }
  .entry, .pub, .abstract, .prose p, .entry p, .entry li { color: #111 !important; }
}
