:root {
  --bg: #08111f;
  --bg-soft: #0b1628;
  --panel: rgba(12, 21, 38, 0.78);
  --panel-strong: rgba(9, 17, 31, 0.9);
  --panel-soft: rgba(17, 28, 49, 0.72);
  --line: rgba(173, 194, 255, 0.12);
  --line-strong: rgba(173, 194, 255, 0.22);
  --text: #eef4ff;
  --muted: #9fb0cc;
  --muted-2: #7e91ae;
  --gold: #d7b56d;
  --gold-soft: rgba(215, 181, 109, 0.16);
  --accent: #8ab7ff;
  --accent-soft: rgba(138, 183, 255, 0.16);
  --success: #79d3a6;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1220px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(30, 71, 139, 0.26), transparent 35%),
    radial-gradient(circle at bottom right, rgba(215, 181, 109, 0.12), transparent 26%),
    linear-gradient(180deg, #08111f 0%, #07111d 48%, #091626 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

body::selection {
  background: rgba(138, 183, 255, 0.24);
}

.site-noise,
.grid-overlay,
.orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.site-noise {
  opacity: 0.05;
  background-image: radial-gradient(rgba(255,255,255,0.8) 0.6px, transparent 0.6px);
  background-size: 16px 16px;
}

.grid-overlay {
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 86%);
}

.orb {
  z-index: -1;
  filter: blur(70px);
  opacity: 0.55;
}

.orb-a {
  inset: auto auto 62% -8%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(82, 142, 255, 0.28);
  animation: floatOrb 14s ease-in-out infinite;
}

.orb-b {
  inset: 18% -7% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(215, 181, 109, 0.18);
  animation: floatOrb 18s ease-in-out infinite reverse;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 70px 0;
}

.section-panel {
  margin: 0 auto;
  width: min(var(--container), calc(100% - 2rem));
  padding: 44px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 22, 39, 0.76), rgba(10, 18, 33, 0.92));
  backdrop-filter: blur(18px);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow);
}

.surface {
  background: linear-gradient(180deg, rgba(13, 22, 39, 0.68), rgba(8, 16, 29, 0.9));
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(215, 181, 109, 0), rgba(215, 181, 109, 1));
}

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  line-height: 1.1;
}

h1, .display-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

strong {
  color: var(--text);
}

.lead {
  font-size: 1.08rem;
  max-width: 65ch;
}

.micro-copy {
  color: var(--muted-2);
  font-size: 0.96rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(18px);
  background: rgba(7, 14, 26, 0.72);
  border-bottom: 1px solid rgba(173, 194, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #08111f;
  background: linear-gradient(135deg, #e7cb8e, #88b5ff);
  box-shadow: 0 8px 24px rgba(135, 181, 255, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-text strong {
  font-size: 0.98rem;
  color: var(--text);
}

.brand-text small {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  font-size: 0.94rem;
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 82px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-copy,
.hero-aside,
.hero-strip,
.content-card,
.glass-card,
.showcase-card,
.tier-card,
.publication-card,
.project-card,
.contact-card,
.statement-card,
.channel-panel,
.mini-card,
.timeline-card,
.hero-statement,
.data-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 25, 44, 0.78), rgba(9, 16, 29, 0.92));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-aside,
.hero-statement,
.channel-panel,
.contact-card,
.data-panel,
.statement-card {
  padding: 34px;
}

.hero-copy::before,
.hero-aside::before,
.content-card::before,
.glass-card::before,
.showcase-card::before,
.project-card::before,
.publication-card::before,
.contact-card::before,
.statement-card::before,
.channel-panel::before,
.data-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.06), transparent 30%, transparent 70%, rgba(138, 183, 255, 0.06));
  pointer-events: none;
}

.hero-copy .lead {
  margin-bottom: 1.6rem;
}

.hero-labels,
.hero-links,
.hero-stat-grid,
.tag-list,
.inline-list,
.filter-buttons,
.quick-links,
.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.role-pills span,
.tag-list span,
.pill,
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.68rem 0.96rem;
  font-size: 0.84rem;
  border: 1px solid rgba(173, 194, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-labels span,
.role-pills span {
  background: rgba(138, 183, 255, 0.09);
}

.pill.gold {
  background: var(--gold-soft);
  border-color: rgba(215, 181, 109, 0.24);
  color: #f2d99f;
}

.pill.subtle {
  color: var(--muted);
}

.hero-actions,
.cta-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.btn,
.text-button,
.filter-btn {
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn:hover,
.filter-btn:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #07111d;
  background: linear-gradient(135deg, #e7cb8e, #89b6ff);
  box-shadow: 0 16px 28px rgba(135, 181, 255, 0.18);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(173, 194, 255, 0.16);
  background: rgba(255,255,255,0.04);
}

.btn-ghost {
  color: var(--muted);
  border-color: rgba(173, 194, 255, 0.14);
  background: transparent;
}

.hero-stat-grid {
  margin-top: 1.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 1rem 0.8rem;
  border-right: 1px solid rgba(173, 194, 255, 0.08);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-value {
  display: block;
  margin-bottom: 0.25rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  color: var(--text);
}

.metric-label {
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-aside {
  display: grid;
  gap: 1rem;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.identity-badge {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(160deg, rgba(138, 183, 255, 0.22), rgba(215, 181, 109, 0.14));
  border: 1px solid rgba(173,194,255,0.16);
}

.identity-copy h2 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.identity-copy p {
  margin-bottom: 0;
}

.keylines {
  display: grid;
  gap: 0.8rem;
}

.keyline-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(173, 194, 255, 0.08);
}

.keyline-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.keyline-row span:first-child {
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
}

.keyline-row span:last-child {
  color: var(--text);
  font-weight: 500;
}

.section-head,
.split-head {
  margin-bottom: 2rem;
}

.section-head.left {
  text-align: left;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.split-head p {
  max-width: 68ch;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
}

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

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

.content-card,
.showcase-card,
.glass-card,
.mini-card,
.project-card,
.publication-card {
  padding: 28px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.content-card:hover,
.showcase-card:hover,
.glass-card:hover,
.mini-card:hover,
.project-card:hover,
.publication-card:hover,
.contact-card:hover,
.channel-panel:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

.card-kicker,
.card-meta,
.meta-row,
.pub-top,
.project-top,
.contact-list small {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  font-weight: 700;
}

.card-metrics {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.card-metric {
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(173, 194, 255, 0.08);
}

.card-metric strong {
  display: block;
  margin-bottom: 0.2rem;
}

.project-top,
.pub-top,
.dual-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.status-dot,
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot::before,
.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(121, 211, 166, 0.12);
}

.status-dot.draft::before {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(215, 181, 109, 0.12);
}

.link-row,
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.text-link,
.card-links a,
.inline-link {
  color: #dce8ff;
  font-weight: 600;
}

.text-link:hover,
.card-links a:hover,
.inline-link:hover {
  color: #f3dfb1;
}

.layout-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1.4rem;
  align-items: start;
}

.layout-2.reversed {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
}

.stack {
  display: grid;
  gap: 1rem;
}

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

.timeline-list li,
.clean-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--muted);
}

.timeline-list li::before,
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e7cb8e, #89b6ff);
}

.filter-wrap {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.filter-buttons {
  gap: 0.65rem;
}

.filter-btn {
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

.filter-btn.active {
  color: #07111d;
  background: linear-gradient(135deg, #e7cb8e, #89b6ff);
  border-color: transparent;
}

.project-card .tag-list {
  margin-top: 1rem;
}

.project-card p,
.publication-card p {
  margin-bottom: 0.75rem;
}

.project-accent,
.pub-accent {
  position: absolute;
  inset: auto -42px -42px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 183, 255, 0.18), transparent 68%);
}

.pub-accent {
  background: radial-gradient(circle, rgba(215, 181, 109, 0.18), transparent 68%);
}

.quote-box,
.statement-card {
  padding: 34px;
}

.quote-box p,
.statement-card p {
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(173, 194, 255, 0.09);
  background: rgba(255,255,255,0.03);
}

.contact-link span:first-child {
  color: var(--text);
  font-weight: 600;
}

.contact-link span:last-child {
  color: var(--muted);
}

.cta-box {
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(173, 194, 255, 0.12);
  background: linear-gradient(135deg, rgba(14, 24, 41, 0.84), rgba(8, 16, 29, 0.98));
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 24px 0 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.2rem;
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid rgba(173, 194, 255, 0.08);
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 0.8rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.footer-bottom {
  border-top: 1px solid rgba(173, 194, 255, 0.08);
  padding-top: 1.2rem;
}

.footer-bottom p {
  margin: 0;
}

.page-hero {
  padding: 64px 0 24px;
}

.page-hero .hero-statement {
  padding: 34px;
}

.not-found-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.not-found-card {
  padding: 44px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

code {
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(22px, -16px, 0) scale(1.06); }
}

@media (max-width: 1100px) {
  .hero-grid,
  .layout-2,
  .layout-2.reversed,
  .contact-grid,
  .cta-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 840px) {
  .section,
  .section-tight {
    padding: 72px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 1rem;
    min-width: 260px;
    display: none;
    padding: 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(7, 14, 26, 0.95);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-radius: 14px;
  }

  .hero-copy,
  .hero-aside,
  .hero-statement,
  .channel-panel,
  .contact-card,
  .data-panel,
  .statement-card,
  .content-card,
  .glass-card,
  .showcase-card,
  .project-card,
  .publication-card {
    padding: 24px;
  }

  .hero-stat-grid,
  .card-metrics {
    grid-template-columns: 1fr;
  }

  .metric-card {
    border-right: 0;
    border-bottom: 1px solid rgba(173, 194, 255, 0.08);
  }

  .metric-card:last-child {
    border-bottom: 0;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .split-head {
    align-items: start;
    flex-direction: column;
  }

  .keyline-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.project-metrics-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-copy h1,
.hero-statement h1 {
  max-width: 11.5ch;
}

.hero-statement h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
}

.hero-copy,
.hero-aside,
.hero-statement,
.section-panel,
.statement-card,
.data-panel,
.contact-card,
.channel-panel,
.timeline-card {
  backdrop-filter: blur(18px);
}

.hero-copy .micro-copy {
  max-width: 72ch;
}

.contact-link {
  align-items: center;
}

@media (max-width: 840px) {
  .project-metrics-3 {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .hero-statement h1 {
    max-width: none;
  }
}
