:root {
  --bg: #f6f3ed;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --surface: #fffcf7;
  --text: #171717;
  --muted: #66635e;
  --line: rgba(23, 23, 23, 0.12);
  --accent: #5b5bd6;
  --accent-strong: #4444bf;
  --accent-soft: rgba(91, 91, 214, 0.10);
  --shadow: 0 24px 80px rgba(30, 24, 16, 0.08);
  --radius: 26px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(91, 91, 214, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 35%, rgba(120, 96, 64, 0.06), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-strong); }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(246, 243, 237, 0.80);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -0.04em;
}
.brand-dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.nav a { transition: color .18s ease; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 72px;
  align-items: center;
  padding-block: 86px 100px;
}

.eyebrow, .section-label {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(56px, 8vw, 108px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 760;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 700;
}
h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }

.hero-role {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}
.hero-role a, .prose a { text-decoration: underline; text-decoration-color: rgba(91,91,214,.35); text-underline-offset: 4px; }
.hero-lead {
  max-width: 810px;
  margin-bottom: 30px;
  font-size: clamp(20px, 2.35vw, 29px);
  line-height: 1.45;
  letter-spacing: -.02em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.50);
  font-size: 14px;
  font-weight: 650;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(91,91,214,.45); background: #fff; }
.button.primary { background: var(--text); border-color: var(--text); color: white; }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: white; }

.hero-portrait-wrap { display: grid; justify-items: center; gap: 18px; }
.portrait-ring {
  width: min(100%, 390px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 36% 64% 58% 42% / 42% 38% 62% 58%;
  background: linear-gradient(145deg, rgba(91,91,214,.20), rgba(255,255,255,.88));
  box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out infinite;
}
.portrait {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit;
  display: block;
  filter: saturate(.92) contrast(1.02);
}
.status-card {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 13px;
  box-shadow: 0 12px 35px rgba(30, 24, 16, 0.05);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #39a96b; box-shadow: 0 0 0 4px rgba(57,169,107,.12); }

.section { padding-block: 110px; border-top: 1px solid var(--line); }
.split-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 84px; align-items: start; }
.prose { font-size: 20px; color: #2d2c29; }
.prose p { margin-bottom: 24px; }
.prose p:last-child { margin-bottom: 0; }
.section-heading { margin-bottom: 42px; }
.work-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.text-link { color: var(--accent-strong); font-size: 14px; font-weight: 680; }
.text-link.muted { color: var(--muted); }

.focus-grid, .project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.focus-card, .project-card, .feature-card {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: 0 16px 42px rgba(30, 24, 16, 0.035);
}
.focus-card {
  min-height: 250px;
  padding: 28px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.focus-card h3 { margin: auto 0 10px; }
.focus-card p, .project-card p, .feature-note p { color: var(--muted); margin-bottom: 0; }
.card-index { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .12em; }

.feature-card { border-radius: 34px; padding: 34px; margin-bottom: 18px; }
.tokenlab-card { background: linear-gradient(135deg, rgba(91,91,214,.13), rgba(255,255,255,.72) 48%, rgba(255,255,255,.56)); }
.feature-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 38px; }
.pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: white; font-size: 11px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.domain-link { color: var(--accent-strong); font-size: 14px; font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; }
.feature-grid h3 { margin-bottom: 14px; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.045em; }
.feature-lead { margin-bottom: 0; max-width: 650px; font-size: 21px; line-height: 1.5; }
.feature-note .button { margin-top: 22px; }

.project-card { padding: 28px; border-radius: var(--radius); }
.project-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 52px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.project-card h3 { margin-bottom: 10px; }
.project-card p { min-height: 88px; margin-bottom: 20px; }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-year { color: var(--accent-strong); font-size: 13px; font-weight: 700; }
.timeline-item h3 { margin-bottom: 8px; }
.timeline-item p { margin-bottom: 4px; }
.subtle { color: var(--muted); }

.writing-section { display: flex; align-items: end; justify-content: space-between; gap: 56px; }
.writing-copy { max-width: 680px; margin: 18px 0 0; font-size: 17px; }
.contact-section { padding-bottom: 130px; }
.contact-section h2 { max-width: 900px; margin-bottom: 18px; }
.contact-section > p:not(.section-label) { color: var(--muted); font-size: 19px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.contact-links a { font-size: 17px; font-weight: 650; color: var(--accent-strong); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 46px; min-height: auto; padding-top: 72px; }
  .hero-copy { order: 1; }
  .hero-portrait-wrap { order: 0; justify-items: start; }
  .portrait-ring { width: 230px; }
  .split-section, .feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card p { min-height: auto; }
  .work-heading, .writing-section { align-items: start; flex-direction: column; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { position: static; }
  .nav-wrap { min-height: 64px; }
  .nav { gap: 14px; overflow-x: auto; font-size: 13px; }
  .nav a:nth-child(2), .nav a:nth-child(3) { display: none; }
  .hero { padding-block: 50px 76px; }
  h1 { font-size: clamp(52px, 17vw, 78px); }
  .hero-lead { font-size: 20px; }
  .section { padding-block: 78px; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card { min-height: 210px; }
  .feature-card { padding: 24px; border-radius: 24px; }
  .feature-topline { margin-bottom: 28px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-elevated: rgba(27, 27, 27, 0.80);
    --surface: #1b1b1b;
    --text: #f2efe9;
    --muted: #aaa69f;
    --line: rgba(255, 255, 255, 0.11);
    --accent: #9a95ff;
    --accent-strong: #b3afff;
    --accent-soft: rgba(154, 149, 255, .14);
    --shadow: 0 24px 90px rgba(0, 0, 0, .26);
  }
  body {
    background:
      radial-gradient(circle at 12% 10%, rgba(116, 108, 255, 0.13), transparent 28rem),
      radial-gradient(circle at 88% 35%, rgba(180, 150, 105, 0.05), transparent 30rem),
      var(--bg);
  }
  .site-header { background: rgba(18,18,18,.78); }
  .button { background: rgba(255,255,255,.04); }
  .button:hover { background: rgba(255,255,255,.09); }
  .button.primary { background: #f2efe9; border-color: #f2efe9; color: #171717; }
  .button.primary:hover { background: var(--accent); border-color: var(--accent); color: #171717; }
  .prose { color: #ddd9d2; }
  .tokenlab-card { background: linear-gradient(135deg, rgba(91,91,214,.22), rgba(27,27,27,.86) 50%, rgba(27,27,27,.78)); }
}
