:root {
  --bg: #f6f4ef;
  --bg-soft: #efece5;
  --surface: rgba(15, 15, 15, 0.025);
  --surface-strong: rgba(15, 15, 15, 0.05);
  --border: rgba(15, 15, 15, 0.12);
  --border-strong: rgba(15, 15, 15, 0.32);
  --text: #0f0f0f;
  --text-dim: rgba(15, 15, 15, 0.62);
  --text-faint: rgba(15, 15, 15, 0.42);
  --ink: #0f0f0f;
  --paper: #f6f4ef;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1120px;
  --pad: clamp(20px, 4vw, 40px);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Animated gradient mesh */
.gradient-mesh {
  display: none;
}

.blob {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

.blob-1 {
  background: #ff9270;
  top: -15%;
  left: -10%;
  opacity: 0.55;
  animation: drift1 28s ease-in-out infinite alternate;
}
.blob-2 {
  background: #f0668c;
  top: 15%;
  right: -20%;
  opacity: 0.42;
  animation: drift2 32s ease-in-out infinite alternate;
}
.blob-3 {
  background: #b08cff;
  bottom: -25%;
  left: 5%;
  width: 45vw;
  height: 45vw;
  opacity: 0.38;
  animation: drift3 36s ease-in-out infinite alternate;
}
.blob-4 {
  background: #7dd3c0;
  bottom: 5%;
  right: 0%;
  width: 35vw;
  height: 35vw;
  opacity: 0.28;
  animation: drift4 40s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(8vw, 6vh, 0) scale(1.15);
  }
}
@keyframes drift2 {
  from {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  to {
    transform: translate3d(-10vw, 8vh, 0) scale(0.95);
  }
}
@keyframes drift3 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6vw, -8vh, 0) scale(1.2);
  }
}
@keyframes drift4 {
  from {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  to {
    transform: translate3d(-6vw, -4vh, 0) scale(1.1);
  }
}

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo {
  display: block;
  flex: none;
}
.logo--sm {
  width: 36px;
  height: 36px;
}
.logo--lg {
  width: 96px;
  height: 96px;
}
.logo-glyph {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 50px;
  fill: #f6f4ef;
  letter-spacing: -0.02em;
}

.nav-mark-text {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

@media (max-width: 540px) {
  .nav-links {
    gap: 14px;
  }
  .nav-mark-text {
    display: none;
  }
}

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section {
  padding: clamp(64px, 10vw, 120px) 0;
  scroll-margin-top: 80px;
  border-top: 1px solid var(--border);
}
.hero {
  border-top: none;
}

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 28px;
  font-weight: 500;
}

/* Hero */
.hero {
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 10vw, 100px);
  max-width: 920px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--surface);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

.hero-title em {
  font-style: italic;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: #2a2a2a;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

/* Thesis */
.thesis-body {
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 820px;
  margin: 0;
  font-weight: 400;
}

/* Ventures */
.venture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

@media (max-width: 600px) {
  .venture-grid {
    grid-template-columns: 1fr;
  }
}

.beyond-body {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 760px;
  margin: 0;
}
.beyond-body strong {
  color: var(--text);
  font-weight: 500;
}

.venture-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  min-height: 220px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease, background 0.3s ease;
}

.venture-card::before,
.venture-card::after {
  display: none;
}

.venture-card {
  background: transparent;
}
.venture-card:hover {
  transform: translateY(-2px);
  background: var(--surface);
  border-color: var(--border-strong);
}
.venture-name {
  transition: color 0.3s ease;
}

.venture-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.venture-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  letter-spacing: -0.01em;
}

.venture-arrow {
  font-size: 20px;
  color: var(--text-dim);
  transition: transform 0.3s ease, color 0.3s ease;
}

.venture-card:hover .venture-arrow {
  transform: translate(2px, -2px);
  color: var(--text);
}

.venture-card--soon {
  cursor: default;
  border-style: dashed;
}
.venture-card--soon:hover {
  transform: none;
  border-color: var(--border);
  background: transparent;
}
.venture-card--soon .venture-name {
  color: var(--text-dim);
}
.venture-card--soon .venture-arrow {
  letter-spacing: 0.1em;
  font-size: 18px;
}
.venture-card--soon:hover .venture-arrow {
  transform: none;
  color: var(--text-dim);
}

.venture-tagline {
  margin: 0;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.5;
  flex: 1;
}

.venture-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Notes */
.notes-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 760px) {
  .notes-list {
    grid-template-columns: 1fr;
  }
}

.note {
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.note:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
}

.note-meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.note-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 10px;
}

.note-body {
  margin: 0;
  color: var(--text-dim);
  font-size: 15.5px;
}

.note-body p {
  margin: 0 0 14px;
}
.note-body p:last-child {
  margin-bottom: 0;
}

.note--essay {
  grid-column: 1 / -1;
  padding: 32px 36px;
}
.note--essay .note-title {
  font-size: 32px;
  margin-bottom: 16px;
}
.note--essay .note-body {
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 68ch;
}

/* Contact */
.contact {
  text-align: left;
}

.contact-line {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-dim);
  margin: 0 0 18px;
  max-width: 560px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.contact-email:hover {
  border-bottom-color: var(--ink);
}

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad) 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

::selection {
  background: var(--ink);
  color: var(--paper);
}
