:root {
  --ink: #0b0b10;
  --paper: #e9e7f1;
  --muted: #9a97a8;
  --magenta: #e33fa1;
  --cyan: #3fd5e3;
  --grad: linear-gradient(100deg, var(--magenta), var(--cyan));
  --measure: 66ch;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(63,213,227,0.35); transition: border-color .2s ease, color .2s ease; }
a:hover { color: var(--magenta); border-bottom-color: rgba(227,63,161,0.5); }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ———— Navigation ———— */
nav {
  border-bottom: 1px solid rgba(233,231,241,0.08);
}
.nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: none;
  color: var(--paper);
}
.nav-brand:hover { color: var(--paper); }
.nav-brand img { width: 34px; height: auto; display: block; }
.nav-brand span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* ———— Menu button + dropdown ———— */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, background .25s ease;
}
.menu-btn:hover span { background: var(--cyan); }
.menu-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-panel {
  display: none;
  border-top: 1px solid rgba(233,231,241,0.08);
  background: rgba(11,11,16,0.97);
}
.menu-panel.open { display: block; }
.menu-panel a {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: none;
}
.menu-panel a:hover { color: var(--paper); }
.menu-panel a[aria-current="page"] {
  color: var(--paper);
  border-left: 2px solid;
  border-image: linear-gradient(var(--magenta), var(--cyan)) 1;
  padding-left: calc(1.5rem - 2px);
}

/* ———— Landing ———— */
.landing {
  min-height: calc(100vh - 70px - 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.site-footer {
  padding: 1.5rem;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.6;
  border-top: 1px solid rgba(233,231,241,0.06);
}
.landing-lockup {
  width: min(560px, 84vw);
  height: auto;
  filter: drop-shadow(0 0 45px rgba(227,63,161,0.14)) drop-shadow(0 0 90px rgba(63,213,227,0.10));
}
/* ———— About page hero ———— */
header.page { position: relative; padding: 5.5rem 0 4.5rem; overflow: hidden; }
.enso-field {
  position: absolute;
  top: -140px;
  right: -160px;
  width: 520px;
  height: 520px;
  pointer-events: none;
  opacity: 0.55;
}
h1.page-title {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 1rem;
}
.role .sep { color: var(--magenta); padding: 0 0.4em; }
.thesis {
  font-family: 'Spectral', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.6;
  margin-top: 2.75rem;
  max-width: var(--measure);
}
.thesis strong {
  font-weight: 400;
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ———— Sections ———— */
section { padding: 3.5rem 0; border-top: 1px solid rgba(233,231,241,0.08); }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--grad);
  display: inline-block;
}
section p { max-width: var(--measure); margin-bottom: 1.25rem; }
section p:last-child { margin-bottom: 0; }
.questions {
  max-width: var(--measure);
  margin: 1.5rem 0 1.25rem;
  padding-left: 1.4rem;
  border-left: 1px solid rgba(227,63,161,0.35);
}
.questions p {
  font-family: 'Spectral', Georgia, serif;
  font-size: 1.12rem;
  color: #cfccdd;
  margin-bottom: 1rem;
}

/* ———— Contact / footer ———— */
footer { padding: 3.5rem 0 5rem; border-top: 1px solid rgba(233,231,241,0.08); }
.contact-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.6rem;
  font-size: 0.95rem;
  margin-top: 1.75rem;
}
.contact-row dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.15rem;
}
.entity {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.copyright {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
}

@media (max-width: 640px) {
  header.page { padding: 3.5rem 0 3rem; }
  .enso-field { width: 340px; height: 340px; top: -100px; right: -140px; opacity: 0.4; }
  .contact-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .contact-row dd { margin-bottom: 0.9rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .enso-field { animation: drift 24s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: rotate(0deg); } to { transform: rotate(8deg); } }
  .landing-lockup, .landing-name {
    animation: rise 1.1s ease-out both;
  }
  .landing-name { animation-delay: 0.3s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
