:root {
  --bg: #faf9f7;
  --paper: #ffffff;
  --ink: #18181b;
  --ink-2: #27272a;
  --muted: #52525b;
  --soft: #71717a;
  --faint: #a1a1aa;
  --line: #e7e5e0;
  --line-2: #d4d4d8;
  --purple: #6d28d9;
  --purple-soft: #faf5ff;
  --purple-line: #e9d5ff;
  --green-soft: #f0fdf4;
  --green-ink: #166534;
  --green-line: #bbf7d0;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover, a:focus, a:visited, a:active { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ── Nav ─────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px) saturate(140%);
  background: rgba(250,249,247,0.82);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
}
.logo { font-size: 14px; letter-spacing: 0.4px; font-weight: 500; }
.logo b { color: var(--purple); font-weight: 500; }
.tabs { display: flex; gap: clamp(18px, 3vw, 32px); }
.tab {
  font-size: 13px; color: var(--soft); cursor: pointer;
  padding: 4px 0; border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
  background: none; border: none; font-family: inherit;
}
.tab { border-bottom: 1px solid transparent; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--purple); }
.status { font-size: 11px; color: var(--faint); display: flex; align-items: center; gap: 7px; letter-spacing: 1px; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 8px rgba(109,40,217,0.5); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:0.6} 50%{opacity:1} }

/* Burger (hidden on desktop) */
.burger {
  display: none; background: none; border: none; padding: 6px;
  cursor: pointer; width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-sheet {
  position: fixed; inset: 65px 0 0; z-index: 40;
  background: var(--bg); padding: 32px 24px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .2s ease;
  border-bottom: 1px solid var(--line);
}
.mobile-sheet.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-tab {
  display: block; padding: 14px 0; font-size: 22px; color: var(--ink);
  border-bottom: 1px solid var(--line); cursor: pointer;
  background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%;
  text-align: left; font-family: inherit; letter-spacing: -0.4px;
}
.mobile-tab.active { color: var(--purple); }

@media (max-width: 720px) {
  .tabs, .status { display: none; }
  .burger { display: flex; }
}

.page { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 56px) 120px; }

/* ── Type ────────────────────────────────────── */
.h1 { font-size: clamp(44px, 7vw, 84px); line-height: 0.98; font-weight: 400; letter-spacing: -2.4px; margin: 0; }
.h1 i { font-style: italic; color: var(--purple); font-weight: 400; }
.h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1; font-weight: 400; letter-spacing: -1.4px; margin: 0; }
.lede { font-size: 18px; color: var(--muted); max-width: 520px; line-height: 1.5; margin-top: 22px; font-weight: 300; }
.eyebrow { font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--purple); font-weight: 500; }

.reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
.reveal.d1 { animation-delay: .05s; }
.reveal.d2 { animation-delay: .15s; }
.reveal.d3 { animation-delay: .25s; }
.reveal.d4 { animation-delay: .35s; }
.reveal.d5 { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ── Hero ────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; min-height: calc(100vh - 80px - 120px); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; min-height: 0; } }
.hero-actions { display: flex; gap: 18px; align-items: center; margin-top: 36px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--ink); color: white; border: none;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: var(--purple); transform: translateY(-1px); }
.btn-link {
  display: inline-block;
  color: var(--ink); border-bottom: 1px solid var(--line-2);
  cursor: pointer; padding-bottom: 1px; font-size: 14px;
  transition: color .15s, border-color .15s;
}
.btn-link:hover { color: var(--purple); border-color: var(--purple); }

.dino-card {
  padding: 16px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 24px 48px -32px rgba(109,40,217,0.18);
  position: relative; overflow: hidden;
}
.dino-card::after {
  content: ''; position: absolute; inset: -1px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(109,40,217,0.18), transparent 40%);
  pointer-events: none; z-index: 1;
}
.dino-card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 1.6px; color: var(--faint);
  margin-bottom: 10px; position: relative; z-index: 2;
}
.dino-card-head .live { color: var(--purple); display: flex; align-items: center; gap: 6px; }
.dino-card-head .live::before { content: '●'; animation: pulse 1.8s ease-in-out infinite; }
.dino-frame { width: 100%; overflow: hidden; aspect-ratio: 1344 / 1080; border-radius: 3px; position: relative; z-index: 2; background: #fff; }
.dino-frame video { width: 142.86%; display: block; }

/* ── Section heads ───────────────────────────── */
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 36px; gap: 24px; flex-wrap: wrap; }

/* ── Projects (cards) ────────────────────────── */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }
.pcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 24px; cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
  display: block;
}
div.pcard { cursor: default; }
div.pcard:hover { transform: none; box-shadow: none; border-color: var(--line); }
div.pcard:hover::after { transform: none; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -12px rgba(0,0,0,0.1); border-color: var(--purple-line); }
.pcard .yr { font-size: 11px; color: var(--faint); letter-spacing: 1.5px; }
.pcard .pn { font-size: 26px; margin-top: 6px; letter-spacing: -0.6px; font-weight: 500; }
.pcard .pd { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.pcard .pf { display: flex; gap: 10px; margin-top: 18px; align-items: center; flex-wrap: wrap; }
.pcard::after {
  content: ''; position: absolute; right: -50px; top: -50px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,40,217,0.08), transparent 70%);
  transition: transform .35s;
}
.pcard:hover::after { transform: scale(1.4); }

.pill {
  display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: var(--purple-soft); color: var(--purple); border: 1px solid var(--purple-line);
}
.pill.done { background: var(--green-soft); color: var(--green-ink); border-color: var(--green-line); }
.pill.ghost { background: transparent; color: var(--soft); border-color: var(--line); }

/* ── Challenges accordion ────────────────────── */
.accord { border-top: 1px solid var(--line); }
.accord-item { border-bottom: 1px solid var(--line); }
.accord-btn {
  width: 100%; display: grid; grid-template-columns: 60px 1fr auto auto;
  gap: 20px; align-items: center; padding: 22px 0;
  background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: left;
  transition: padding .2s ease;
}
.accord-btn:hover { padding-left: 8px; }
.accord-btn .k { color: var(--faint); font-size: 12px; }
.accord-btn .t { font-size: 18px; color: var(--ink); }
.accord-btn .when { font-size: 13px; color: var(--soft); white-space: nowrap; }
.accord-btn .chev { color: var(--soft); font-size: 14px; transition: transform .25s ease, color .15s; }
.accord-item.open .accord-btn .chev { transform: rotate(180deg); color: var(--purple); }
.accord-item.open .accord-btn .t { color: var(--purple); }
.accord-body {
  overflow: hidden; max-height: 0;
  transition: max-height .35s cubic-bezier(.2,.7,.3,1);
}
.accord-body-inner {
  padding: 0 0 26px 80px; max-width: 720px;
  color: var(--ink-2); font-size: 15px; line-height: 1.65;
}
.accord-body-inner p { margin: 0 0 10px; }
.accord-body-inner p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .accord-btn { grid-template-columns: 40px 1fr auto; gap: 12px; }
  .accord-btn .when { display: none; }
  .accord-body-inner { padding-left: 52px; }
}

.upcoming { border-top: 1px solid var(--line); }
.up-item {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 20px; align-items: center; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.up-item .k { color: var(--faint); font-size: 12px; }
.up-item .t { font-size: 17px; color: var(--ink-2); }
.up-item .when { font-size: 12px; color: var(--soft); white-space: nowrap; }
@media (max-width: 600px) {
  .up-item { grid-template-columns: 40px 1fr; gap: 12px; }
  .up-item .when { display: none; }
}

.reading {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  border-top: 1px solid var(--line);
}
.rd-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.rd-item .rt { font-size: 15px; color: var(--ink); }
.rd-item .rt i { font-style: italic; }
.rd-item .ra { font-size: 13px; color: var(--soft); }
.rd-item .rn { font-size: 11px; color: var(--faint); letter-spacing: .5px; text-transform: uppercase; margin-top: 2px; }
@media (max-width: 700px) {
  .reading { grid-template-columns: 1fr; gap: 0; }
}

/* ── Swipe - masonry ─────────────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--soft);
  cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip.active { background: var(--ink); color: white; border-color: var(--ink); }

.masonry { column-count: 3; column-gap: 14px; }
@media (max-width: 880px) { .masonry { column-count: 2; } }
@media (max-width: 540px) { .masonry { column-count: 1; } }
.mitem {
  display: block; width: 100%; break-inside: avoid; margin-bottom: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  color: inherit; text-decoration: none;
}
.mitem img.thumb { object-fit: cover; }
.mitem:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -16px rgba(0,0,0,0.16); border-color: var(--purple-line); }
.mitem .thumb {
  width: 100%; display: block; position: relative;
  background: linear-gradient(135deg, var(--purple-soft), #fff);
}
.mitem .thumb-text {
  padding: 28px 22px;
  font-size: 22px; line-height: 1.3; color: var(--ink); font-weight: 400;
  background: linear-gradient(135deg, var(--purple-soft), #fff);
}
.mitem .thumb-text.q { font-style: italic; }
.mbody { padding: 14px 16px 16px; }
.mbody .kk { font-size: 10px; letter-spacing: 1.5px; color: var(--purple); text-transform: uppercase; }
.mbody .tt { font-size: 14px; color: var(--ink); margin-top: 4px; line-height: 1.4; }
.mbody .nn { font-size: 12px; color: var(--soft); margin-top: 6px; line-height: 1.5; }
.mbody .src { font-size: 11px; color: var(--faint); margin-top: 8px; font-family: 'JetBrains Mono', monospace; }

/* ── Founders ────────────────────────────────── */
.founders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .founders { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .founders { grid-template-columns: 1fr; } }
.fcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 22px; transition: transform .25s, border-color .25s, box-shadow .25s;
  cursor: pointer;
}
.fcard:hover { transform: translateY(-2px); border-color: var(--purple-line); box-shadow: 0 8px 22px -14px rgba(0,0,0,0.1); }
.fcard .av {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 500; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--purple-soft), #fff);
  border: 1px solid var(--purple-line); color: var(--purple);
  margin-bottom: 14px;
}
.fcard .fn { font-size: 17px; font-weight: 500; letter-spacing: -0.3px; }
.fcard .fr { font-size: 13px; color: var(--soft); margin-top: 2px; }
.fcard .fq { font-style: italic; color: var(--ink-2); font-size: 15px; line-height: 1.5; margin-top: 14px; }

/* ── Now ─────────────────────────────────────── */
.now-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .now-grid { grid-template-columns: 1fr; } }
.now-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.now-card .nh { font-size: 11px; letter-spacing: 1.8px; color: var(--purple); margin-bottom: 12px; text-transform: uppercase; }
.now-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.now-card p + p { margin-top: 8px; }
.now-card a.link { color: var(--purple); border-bottom: 1px solid rgba(109,40,217,0.3); }
.now-card a.link:hover { border-bottom-color: var(--purple); }

/* ── Footer ──────────────────────────────────── */
footer { padding: 60px clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); background: var(--paper); margin-top: 80px; }
.foot-grid { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 24px; }
.foot-grid .e { font-size: 13px; }
.foot-grid .e a { color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.foot-grid .e a:hover { color: var(--purple); border-bottom-color: var(--purple); }
.foot-grid .c { font-size: 11px; color: var(--faint); letter-spacing: 1px; }

.page-shell { animation: fade-in .4s ease forwards; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
