:root {
  color-scheme: dark;
  --background: #080a0f;
  --surface: rgba(17, 22, 31, 0.86);
  --surface-strong: #11161f;
  --surface-muted: #1b2330;
  --ink: #f4f1e8;
  --muted: #a8b0bd;
  --line: rgba(125, 249, 166, 0.24);
  --accent: #7df9a6;
  --signal: #b7ff5a;
  --acid: #7df9a6;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(125, 249, 166, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 249, 166, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 12% 5%, rgba(125, 249, 166, 0.16), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(125, 249, 166, 0.08), transparent 28rem),
    radial-gradient(circle at 50% 100%, rgba(125, 249, 166, 0.055), transparent 32rem),
    var(--background);
  background-size: 42px 42px, 42px 42px, auto, auto, auto, auto;
  color: var(--ink);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 50%, transparent 50%),
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 100% 4px, 20px 20px;
  mix-blend-mode: screen;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  opacity: 0.68;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 15, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand::before {
  width: 0.62rem;
  height: 0.62rem;
  border: 1px solid var(--acid);
  box-shadow: 0 0 18px rgba(125, 249, 166, 0.45);
  content: "";
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 1.6vw, 0.85rem);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 0.38rem 0.48rem;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
}

.nav a::before {
  content: "[";
  color: rgba(125, 249, 166, 0.7);
}

.nav a::after {
  content: "]";
  color: rgba(125, 249, 166, 0.7);
}

.nav a:hover {
  color: var(--acid);
  border-color: rgba(125, 249, 166, 0.38);
  background: rgba(125, 249, 166, 0.07);
}

main {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.not-found {
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: 4rem 0;
}

.not-found h1 {
  max-width: 760px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 360px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.hero::before {
  top: clamp(2rem, 8vw, 5rem);
}

.hero-copy {
  max-width: 800px;
}

.eyebrow,
.panel-label {
  margin: 0 0 0.75rem;
  color: var(--acid);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(125, 249, 166, 0.12);
}

.button.primary {
  background: var(--accent);
  color: #07100b;
}

.button.primary:hover {
  background: #b7ff5a;
}

.button.secondary {
  color: var(--accent);
}

.button.secondary:hover {
  background: rgba(125, 249, 166, 0.09);
}

.portrait-shell {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
  justify-self: end;
}

.portrait-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.portrait-card::before {
  position: absolute;
  inset: 0.7rem;
  z-index: 1;
  border: 1px solid rgba(125, 249, 166, 0.55);
  pointer-events: none;
  content: "";
}

.portrait-card img {
  display: block;
  width: 100%;
  height: clamp(280px, 44vh, 430px);
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(0.86) contrast(1.08);
}

.portrait-card figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(244, 241, 232, 0.22);
  background: rgba(8, 10, 15, 0.76);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.hero-panel {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 22, 31, 0.74);
  box-shadow: var(--shadow);
}

.hero-panel ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(160, 255, 190, 0.16);
}

.hero-panel li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-heading p,
.background-copy,
.contact-section p {
  color: var(--muted);
  font-size: 1.05rem;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.theme-card,
.publication-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(125, 249, 166, 0.08), transparent 38%),
    var(--surface);
}

.theme-card {
  min-height: 275px;
  padding: 1.15rem;
}

.theme-number {
  display: inline-flex;
  margin-bottom: 2.5rem;
  color: var(--signal);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.theme-card p,
.publication-card p {
  color: var(--muted);
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication-card {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.publication-card h3 {
  max-width: 850px;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
}

.publication-card h3 a {
  text-decoration-color: rgba(125, 249, 166, 0.36);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.16em;
}

.publication-card h3 a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.publication-meta span {
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(125, 249, 166, 0.25);
  border-radius: 999px;
  background: rgba(125, 249, 166, 0.08);
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.background-copy p:last-child,
.contact-section p:last-child {
  margin-bottom: 0;
}

.contact-section {
  align-items: center;
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.contact-section .button {
  justify-self: end;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.social-links a {
  padding: 0.38rem 0.52rem;
  border: 1px solid rgba(125, 249, 166, 0.28);
  border-radius: 4px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.social-links a::before {
  content: "[";
}

.social-links a::after {
  content: "]";
}

.social-links a:hover {
  background: rgba(125, 249, 166, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 960px) {
  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .portrait-shell {
    grid-template-columns: minmax(240px, 0.55fr) 1fr;
    align-items: stretch;
    max-width: none;
    justify-self: stretch;
  }

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

  .contact-section .button {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 4.2rem);
    letter-spacing: -0.04em;
  }

  .portrait-shell,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .theme-card {
    min-height: 0;
  }
}
