/* Shared styles for every page except the blog post bodies (blog/blog.css). */
:root {
  --cream: #fbf5ee;
  --card: #ffffff;
  --ink: #1f1d3a;
  --ink-soft: #4a4866;
  --muted: #8a879f;
  --coral: #f6a77c;
  --coral-deep: #ee8a5a;
  --sun: #fbd56b;
  --line: #ece4da;
  --radius: 24px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  font-variation-settings: "SOFT" 100;   /* Fraunces's "soft" axis: rounder headings. Inter Tight ignores it. */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.35rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: var(--ink); box-shadow: 0 6px 0 -2px var(--coral-deep); }
.btn-coral:hover { background: var(--coral-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Nav */
header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; text-decoration: none; position: relative; }
.logo svg { position: absolute; left: -4px; bottom: -6px; width: calc(100% + 8px); height: 12px; }
.logo { white-space: nowrap; isolation: isolate; }
/* Logo swoosh: one coral stroke rising from under the first letters up through and over the name. */
.logo svg.logo-swoosh { position: absolute; left: -8px; top: -9px; bottom: auto; width: calc(100% + 16px); height: calc(100% + 18px); overflow: visible; z-index: -1; pointer-events: none; }
.logo svg.logo-swoosh path { fill: none; stroke: var(--coral); stroke-width: 3px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.nav.wrap { max-width: 1320px; }   /* the menu bar is wider than the page content so every tab fits on one line */
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links > a, .dropdown-toggle { white-space: nowrap; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink-soft); font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer;
  font: 500 .95rem var(--sans); color: var(--ink-soft); }
.dropdown-toggle:hover, .dropdown.open .dropdown-toggle { color: var(--ink); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.dropdown.open .caret { transform: translateY(1px) rotate(-135deg); }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); min-width: 200px;
  padding: 8px; background: var(--card); border-radius: 16px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -20px rgba(31,29,58,.35); }
.dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* hover bridge */
.dropdown.open .dropdown-menu { display: block; }
@media (hover: hover) and (min-width: 1241px) { .dropdown:hover .dropdown-menu { display: block; } .dropdown:hover .caret { transform: translateY(1px) rotate(-135deg); } }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 10px; }
.nav-links .dropdown-menu a:hover { background: var(--cream); color: var(--ink); }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--sun); cursor: pointer; font-size: 1.2rem;
}

/* Hero */
.hero { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: center; padding: 56px 0 72px; }
.portrait { position: relative; width: 360px; height: 360px; margin: 0 auto; }
.portrait::before {           /* yellow speech-bubble blob behind the photo */
  content: ""; position: absolute; inset: 22px -10px -10px 22px;
  background: var(--sun); border-radius: 50%;
}
.portrait::after {
  content: ""; position: absolute; right: -6px; bottom: 42px;
  border-left: 34px solid var(--sun); border-top: 18px solid transparent; border-bottom: 18px solid transparent;
  transform: rotate(28deg);
}
.portrait img, .portrait .initials {
  position: relative; z-index: 1; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; object-position: center 30%;
  border: 6px solid var(--cream);
}
.portrait .initials {
  display: none; place-items: center; background: #efe6da;
  font: 600 5rem var(--serif); color: var(--ink-soft);
}
.portrait.no-photo img { display: none; }
.portrait.no-photo .initials { display: grid; }

.hero h1 { font-size: clamp(3rem, 7vw, 5rem); margin-bottom: 24px; }
.squiggle { position: relative; white-space: nowrap; }
.squiggle svg { position: absolute; left: 0; bottom: -.17em; width: 100%; height: .28em; overflow: visible; }
/* Hero double underline: two tight orange strokes, the second shorter and offset right. */
.squiggle svg path { fill: none; stroke: var(--coral); stroke-width: 5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero p { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.5; color: var(--ink-soft); margin: 0 0 32px; max-width: 34ch; }
.hero p strong { color: var(--ink); font-weight: 600; }
.hero p a { color: var(--ink); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* The book title in the hero: big serif, bold and underlined, like a book cover callout. */
.hero p a.book-link, .hero p a.title-link { font-family: var(--serif); font-weight: 700; font-size: 1.18em; letter-spacing: -0.01em; text-decoration-thickness: 3px; text-underline-offset: 6px; white-space: nowrap; }
.hero p a.book-link:hover, .hero p a.title-link:hover { color: var(--coral-deep); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); padding: 48px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(31,29,58,.18); }
section { padding: 40px 0; }
/* Sections are also .wrap, whose `padding: 0 24px` would otherwise zero this out. 20px top + bottom
   puts 40px between sections, the same gap as between a section heading and its content. */
section.wrap { padding-top: 20px; padding-bottom: 20px; }

/* Feature (Nalanda) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-title { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.feature-title img { width: 64px; height: 64px; border-radius: 15px; }
.feature-title h2 { font-size: 2.4rem; }
.feature p { color: var(--ink-soft); margin: 0 0 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 32px; }
.stat { background: var(--cream); border-radius: 16px; padding: 16px; }
.stat b { display: block; font: 600 1.6rem/1.1 var(--serif); }
.stat span { font-size: .82rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }
.app-panel {
  border-radius: 20px; min-height: 380px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(165deg, #3b2470 0%, #6c3b84 55%, #c79a52 100%); color: #fff; padding: 32px;
}
.app-panel img { width: 148px; border-radius: 34px; box-shadow: 0 20px 40px rgba(0,0,0,.35); margin: 0 auto 24px; }
.app-panel .q { color: #fff; font-family: var(--serif); font-size: 1.25rem; font-style: italic; opacity: .95; max-width: 26ch; margin: 0 auto; }
.app-panel small { display: block; margin-top: 10px; opacity: .7; font-size: .85rem; }

/* Launchpad */
.pitch { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.pitch p { color: var(--ink-soft); margin: 0 0 16px; }
.pitch .note { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade .play {
  position: absolute; right: 18px; bottom: 18px; width: 64px; height: 64px;
  border-radius: 50%; background: rgba(31,29,58,.72); backdrop-filter: blur(4px); transition: transform .15s ease, background .15s ease;
}
.video-facade .play::after {
  content: ""; position: absolute; left: 26px; top: 20px;
  border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.video-facade:hover .play { background: var(--coral-deep); transform: scale(1.06); }
.deck { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 40px; }
.deck-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.deck-head a { font-weight: 600; font-size: .92rem; text-decoration: none; }
.deck-head a::after { content: " ↗"; }
.deck-head a:hover { color: var(--coral-deep); }
.deck-frame { box-shadow: 0 2px 8px rgba(63,69,81,.16); }
.deck .note { margin: 14px 0 0; }
@media (max-width: 980px) { .pitch { grid-template-columns: 1fr; gap: 28px; } }

.reel { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; margin: 8px 0 24px; }
.reel .note { margin: 0; }
.video-sm .play { right: 8px; bottom: 8px; width: 40px; height: 40px; }
.video-sm .play::after { left: 16px; top: 12px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 920px; margin: 0 auto; }
.vid { background: var(--card); border-radius: 20px; padding: 14px 14px 22px; box-shadow: 0 1px 0 var(--line); }
.vid .video { border-radius: 12px; }
.vid h3 { font-size: 1.2rem; margin: 16px 8px 4px; }
.vid-meta { display: block; margin: 0 8px; font-size: .88rem; color: var(--muted); }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* Podcast */
.podcast { display: grid; grid-template-columns: .9fr 1.3fr; gap: 48px; align-items: start; }
.pod-cover { width: 150px; border-radius: 16px; box-shadow: 0 16px 32px -16px rgba(31,29,58,.45); margin-bottom: 24px; }
.pod-info h2 { margin: 10px 0 6px; }
.pod-sub { font-weight: 600; color: var(--coral-deep); margin: 0 0 16px; }
.pod-info p { color: var(--ink-soft); }
.pod-info .btn { margin-top: 8px; }
.pod-facade, .pod-player .video { background: #e3d4c9; }
.pod-facade img { object-fit: contain; }
.episodes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ep { width: 100%; display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; text-align: left;
      padding: 14px 16px; border-radius: 14px; border: 2px solid transparent; background: var(--cream); cursor: pointer; font: inherit; color: var(--ink); }
.ep:hover { border-color: var(--line); }
.ep.is-active { border-color: var(--coral); background: #fff4ec; }
.ep-n { font-size: .8rem; font-weight: 600; color: var(--coral-deep); }
.ep-t { font-weight: 600; font-size: .95rem; }
.ep-d { font-size: .85rem; color: var(--muted); }

/* Scouting */
.scouting { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
.scout-badge { text-align: center; }
.medal { width: 180px; height: 180px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
         background: #fff; border: 10px solid #1f3a73; box-shadow: 0 0 0 6px #fff, 0 0 0 12px #c8102e, 0 20px 40px -18px rgba(31,29,58,.5); }
.medal span { font-size: 5.2rem; line-height: 1; }
.medal-label { margin-top: 26px; font: 700 .85rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #1f3a73; }
.scouting p { color: var(--ink-soft); margin: 0 0 20px; }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.roles li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: start; padding: 14px 16px; background: var(--cream); border-radius: 14px; }
.role-when { font-size: .8rem; font-weight: 600; color: var(--coral-deep); padding-top: 2px; }
.roles b { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.roles span:not(.role-when) { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 980px) {
  .podcast, .scouting { grid-template-columns: 1fr; gap: 28px; }
}

/* Blog teaser (cards match blog/blog.css) */
.blog-intro { color: var(--ink-soft); max-width: 52ch; margin: 14px auto 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--card); border-radius: 20px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(31,29,58,.3); }
.post-cover { aspect-ratio: 16 / 9; background: #efe6da; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.type-cover { width: 100%; height: 100%; display: grid; place-items: center; padding: 20px 26px; text-align: center; background: linear-gradient(150deg, #2d2a52 0%, #4a3c74 60%, #ee8a5a 140%); color: #fff; }
.type-cover span { font: 600 1.25rem/1.2 var(--serif); }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .78rem; font-weight: 600; color: var(--coral-deep); text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.post-card p { color: var(--ink-soft); font-size: .92rem; margin: 0 0 16px; flex: 1; }
.post-meta { font-size: .85rem; color: var(--muted); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .post-grid { grid-template-columns: 1fr; } }

.clipbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 22px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font: 600 .8rem var(--sans); }
.clip-play { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); cursor: pointer; display: grid; place-items: center; }
.clip-play:hover { background: var(--coral-deep); }
.i-play { width: 0; height: 0; margin-left: 3px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.i-pause { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.clip-track { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.3); cursor: pointer; }
.clip-track::before { content: ""; position: absolute; inset: -10px 0; }   /* bigger click target */
.clip-track:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }
.clip-fill { height: 100%; width: 0; border-radius: 3px; background: var(--coral); transition: width .2s linear; }
.clip-time { flex: none; font-variant-numeric: tabular-nums; }
.video-sm .clipbar { gap: 8px; padding: 14px 8px 8px; }
.video-sm .clip-play { width: 24px; height: 24px; }
.video-sm .clip-time { display: none; }

/* Logo strip */
.involved { text-align: center; padding: 32px 0 32px; }
.involved .eyebrow { margin-bottom: 18px; }
.orgs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.orgs span { font: 600 1.05rem var(--serif); color: var(--muted); }

/* What I do */
.center-head { text-align: center; margin-bottom: 40px; }
.center-head h2 span { display: block; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { background: var(--card); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); }
.tile .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 20px; flex: 1; }
.tile a { font-weight: 600; font-size: .92rem; text-decoration: none; }
.tile a::after { content: " →"; }

/* Photo pair (homepage Slug Fund card) */
.photo-pair { margin: 0; }
.photo-pair-imgs { display: grid; grid-template-columns: 3fr 2fr; gap: 6px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(31,29,58,.55); }
.photo-pair-imgs img { width: 100%; height: 100%; object-fit: cover; }

/* Book */
.book { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; background: #f3ebff; }
.book p { color: var(--ink-soft); }
.cover {
  aspect-ratio: 2 / 3; border-radius: 6px 14px 14px 6px; padding: 28px 22px;
  background: linear-gradient(160deg, #2a1033, #5b1a3c); color: #f5e6d3;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: -6px 0 0 #1a0920 inset, 0 24px 40px -16px rgba(42,16,51,.6);
  transform: rotate(3deg);
}
.cover b { font: 600 2rem/1 var(--serif); letter-spacing: .04em; }
.cover span { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.cover-link { display: block; transform: rotate(3deg); transition: transform .2s ease; }
.cover-link:hover { transform: rotate(1deg) translateY(-4px); }
.cover-img {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 4px 10px 10px 4px;
  box-shadow: -5px 0 0 rgba(0,0,0,.25) inset, 0 24px 40px -16px rgba(42,16,51,.6);
}
.book-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.book-meta { margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* Writer intro (book page) */
.writer h2 { margin: 10px 0 20px; }
.book h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.writer p { color: var(--ink-soft); max-width: 720px; margin: 0 0 16px; font-size: 1.08rem; }
.writer p a { font-weight: 600; }

/* Influences + conferences (book page) */
.influence-kind { font-size: .78rem; font-weight: 600; color: var(--coral-deep); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.events time { font-size: .88rem; font-weight: 600; color: var(--muted); padding-top: 4px; }
.events h3 { font-size: 1.25rem; }
.events p { color: var(--ink-soft); margin: 6px 0 0; }
.events p a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.events p a::after { content: " →"; }
@media (max-width: 720px) { .events li { grid-template-columns: 1fr; gap: 4px; } }

/* Blurb (book page) */
.blurb { text-align: center; }
.blurb-text { font: 500 clamp(1.15rem, 2.2vw, 1.4rem)/1.6 var(--serif); color: var(--ink); max-width: 720px; margin: 22px auto 0; }
.blurb-text p { margin: 0 0 18px; }
.blurb-text p:last-child { margin-bottom: 0; }
.blurb .book-cta { justify-content: center; margin-top: 32px; }

/* About */
.about > div { max-width: 720px; margin: 0 auto; }
.about p { color: var(--ink-soft); margin: 0 0 18px; }
.about h2 { margin-bottom: 28px; }
.about-side { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Experience */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp { background: var(--card); border-radius: 20px; padding: 28px; box-shadow: 0 1px 0 var(--line); display: flex; flex-direction: column; }
.exp time { font-size: .82rem; color: var(--muted); font-weight: 500; }
.exp h3 { margin: 8px 0 4px; font-size: 1.2rem; }
.exp .org { font-weight: 600; font-size: .92rem; color: var(--coral-deep); margin-bottom: 12px; }
.exp ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .92rem; }
.exp li { margin-bottom: 6px; }

/* Things I've made */
.made { background: var(--card); border-radius: 20px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.made:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(31,29,58,.3); }
.made-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.made-thumb-nalanda { display: grid; place-items: center; background: linear-gradient(165deg, #3b2470 0%, #6c3b84 55%, #c79a52 100%); }
.made-thumb-nalanda img { width: 34%; border-radius: 22%; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.made-thumb-sfig { display: grid; place-items: center; text-align: center; background: #12324a; color: #f5efe4; font: 600 1.5rem/1.15 var(--serif); }
.made-thumb-angreal { object-position: top; }
.made-grid { grid-template-columns: repeat(2, 1fr); }   /* 4 cards: 2×2 on desktop; the .grid-3 rules below still take it to 1 column on phones */
.made-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.made-k { font-size: .8rem; font-weight: 600; color: var(--coral-deep); }
.made h3 { font-size: 1.2rem; margin: 8px 0 10px; }
.made p { color: var(--ink-soft); font-size: .92rem; margin: 0 0 18px; flex: 1; }
.made-cta { font-weight: 600; font-size: .92rem; }
.made-cta::after { content: " ↗"; }
.made-cta-page::after { content: " →"; }   /* links to a page on this site, not an external one */
.orgs a { font: 600 1.05rem var(--serif); color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.orgs a:hover { color: var(--ink); text-decoration-color: var(--coral); }
.exp-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 14px; }
.exp-links a { font-weight: 600; font-size: .88rem; text-decoration: none; }
.exp-links a::after { content: " ↗"; }
.exp-links a:hover, .about p a:hover { color: var(--coral-deep); }
.about p a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill h3 { font-size: 1.1rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--cream); border-radius: 999px; padding: 6px 12px; font-size: .84rem; font-weight: 500; color: var(--ink-soft); }

/* Contact */
.contact { text-align: center; background: var(--ink); color: #fff; }
.contact h2 { margin-bottom: 14px; }
.contact p { color: #c9c7dc; max-width: 46ch; margin: 0 auto 30px; }
.contact .hero-cta { justify-content: center; }
.contact .btn-outline { border-color: #fff; color: #fff; }
.contact .btn-outline:hover { background: #fff; color: var(--ink); }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 32px 0 48px; }

/* Responsive */
@media (max-width: 1240px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px;
    background: var(--card); border-radius: 20px; box-shadow: 0 20px 40px -20px rgba(31,29,58,.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 12px; }
  .nav-links .btn { justify-content: center; margin-top: 6px; }
  .dropdown-toggle { padding: 10px 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); pointer-events: none; }
  .dropdown-toggle .caret { display: none; }
  .dropdown-menu { display: block; position: static; transform: none; box-shadow: none; padding: 0 0 6px; min-width: 0; border-radius: 0;
    border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .dropdown-menu::before { display: none; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .portrait { width: 280px; height: 280px; }
  .feature, .book { grid-template-columns: 1fr; }
  .book .cover { max-width: 200px; margin: 0 auto; order: -1; }
  .book .cover-link { width: 100%; max-width: 200px; margin: 0 auto; order: -1; }
  .grid-4, .skills { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .card { padding: 28px 22px; }
  .grid-4, .grid-3, .skills { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 12px 10px; }
  .stat b { font-size: 1.25rem; }
  .app-panel { min-height: 300px; }
  .feature-title h2 { font-size: 2rem; }
}

/* Inner pages (Nalanda, My Book, Videos, Podcast) */
.page-hero { text-align: center; padding: 48px 0 32px; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); margin: 10px 0 14px; }
.page-hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 56ch; margin: 0 auto; }
.page-top { padding-top: 32px; }
.single-video { max-width: 760px; margin: 0 auto; }
.center-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.pod-ep-now { margin: 14px 2px 0; font-size: .95rem; color: var(--ink-soft); }
.pod-ep-now b { color: var(--coral-deep); font-weight: 600; margin-right: 6px; }
.pod-info .hero-cta { margin-top: 8px; }
.page-title { font-size: clamp(2.6rem, 6vw, 3.6rem); }
.page-title span { display: block; }

/* Section links land below the sticky header instead of under it. */
[id] { scroll-margin-top: 90px; }

/* Slug Fund page */
.reports { display: grid; gap: 24px; }
.report { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.report-cover img { width: 100%; border-radius: 14px; box-shadow: 0 16px 36px -18px rgba(31,29,58,.45); transition: transform .15s ease; }
.report-cover:hover img { transform: translateY(-3px); }
.report h3 { font-size: 1.7rem; margin: 10px 0 6px; }
.report-by { font-weight: 600; color: var(--coral-deep); font-size: .92rem; margin: 0 0 14px; }
.report p { color: var(--ink-soft); }
.report-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.report-actions span { color: var(--muted); font-size: .88rem; }
#roles .grid-2 { max-width: none; }
.sfig-site { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; text-decoration: none; transition: transform .15s ease; }
.sfig-site:hover { transform: translateY(-3px); }
.sfig-site-mark { aspect-ratio: 16 / 10; border-radius: 16px; }
.sfig-site h3 { font-size: 1.5rem; margin: 10px 0 8px; }
.sfig-site p { color: var(--ink-soft); margin: 0 0 14px; }
@media (max-width: 980px) { .report, .sfig-site { grid-template-columns: 1fr; gap: 24px; } }

/* Light red swirl from the hero down to the Nalanda icon, ending just inside the card. */
main#top { position: relative; }
.nalanda-arrow { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 5; }
.nalanda-arrow path { fill: none; stroke: #f08c8c; stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 980px) { .nalanda-arrow { display: none; } }

/* "Watch My Videos": one line, light sans lead-in, bold serif word with a yellow swoosh. */
.center-head .one-line span { display: inline-block; }
h1.one-line { font-size: clamp(2rem, 4.2vw, 3rem); }   /* the same section headings used as page titles on /videos/, /podcast/, /blog/ */
.center-head .one-line .light { font-family: var(--sans); font-weight: 400; letter-spacing: -0.03em; }
.squiggle-sun svg path { stroke: var(--sun); }

/* Single presenting photo with Ali-style decorations: purple talk marks top right, coral lead line off the right edge. */
.speaker-photo { position: relative; margin: 0 auto; width: min(100%, 300px); }
.speaker-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 48px -28px rgba(31,29,58,.55); }
.speaker-deco { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.speaker-deco .talk path { fill: none; stroke: #a78bfa; stroke-width: 4; stroke-linecap: round; }
.speaker-deco .lead { fill: none; stroke: var(--coral-deep); stroke-width: 3; stroke-linecap: round; }
@media (max-width: 720px) { .speaker-photo { width: min(76%, 260px); } }

/* "Where I've Made an Impact": horizontal carousel with round arrow buttons. */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.carousel-head h2 span { display: block; }
.carousel-btns { display: flex; gap: 14px; flex: none; }
.carousel-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--sun); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .15s ease, transform .15s ease, opacity .15s ease; }
.carousel-btn:hover { background: #5cc8ec; transform: scale(1.06); }
.carousel-btn[disabled] { opacity: .35; cursor: default; transform: none; background: var(--sun); }
.carousel-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.exp-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; }
.exp-track::-webkit-scrollbar { display: none; }
/* About 3¼ cards visible (Ali Abdaal tile proportions, roughly 4:5); the card peeking in on the right invites a click on the arrow. */
.exp-track > .exp { flex: 0 0 calc((100% - 66px) / 3.25); scroll-snap-align: start; }
@media (max-width: 980px) { .exp-track > .exp { flex-basis: calc((100% - 44px) / 2.5); } }
@media (max-width: 720px) { .exp-track > .exp { flex-basis: 80%; } .carousel-btn { width: 46px; height: 46px; } }

/* Nalanda card: full Launchpad presentation on the right, captioned. */
.pitch-video { margin: 0; }
.pitch-video figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.pitch-video figcaption b { color: var(--ink-soft); }
.pitch-yt { font-weight: 600; color: var(--ink); white-space: nowrap; }
.pitch-yt:hover { color: var(--coral-deep); }
.feature .reel { margin: 24px 0 28px; }

/* Highlights clip inside the Nalanda card: full column width so the face is visible past YouTube's overlays. */
.feature .reel { grid-template-columns: 1fr; gap: 10px; }
.feature .reel .video-sm .play { right: 14px; bottom: 14px; width: 56px; height: 56px; }
.feature .reel .video-sm .play::after { left: 22px; top: 17px; border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; }
.feature .reel .video-sm .clipbar { gap: 12px; padding: 22px 14px 12px; }
.feature .reel .video-sm .clip-play { width: 32px; height: 32px; }
.feature .reel .video-sm .clip-time { display: inline; }

/* Experience cards that open a page: orange on hover, like a highlighted tile. */
.exp.is-link { cursor: pointer; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.exp.is-link:hover, .exp.is-link:focus-visible { background: #ff9d70; transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(31,29,58,.55); outline: none; }
.exp.is-link:hover time, .exp.is-link:hover .org, .exp.is-link:hover ul, .exp.is-link:hover > span,
.exp.is-link:focus-visible time, .exp.is-link:focus-visible .org, .exp.is-link:focus-visible ul { color: var(--ink); }
.exp.is-link:hover .exp-links a:hover { color: #fff; }
/* A link layer covering each experience card, so the whole card is clickable; inner links sit above it. */
.exp.is-link { position: relative; }
.exp .card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.exp .card-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.exp.is-link .exp-links { position: relative; z-index: 2; }
.exp.is-link:has(.card-link:focus-visible) { background: #ff9d70; }

/* Podcast and YouTube cards: text centered beside the player (no small cover). */
.podcast { align-items: center; }
.pod-info h2 { margin-top: 0; }
.yt-facade { background: #111; }
.yt-facade img { object-fit: cover; }

/* Hand-drawn circle around a word (Carmilla in the hero), like a pen loop. */
.hero p a.book-link.circled { position: relative; padding: 0 .12em; }
.circle-mark { position: absolute; left: -8%; top: -24%; width: 116%; height: 150%; overflow: visible; pointer-events: none; }
.circle-mark path { fill: none; stroke: #f08c8c; stroke-width: 3px; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.squiggle-sky svg path { stroke: #5cc8ec; }

.squiggle-leaf svg path { stroke: #6cc58a; }

/* Book card, Ali-style: small lead-in, huge bold title, sans subtitle. */
.book .book-kicker { font-family: var(--sans); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; margin: 0 0 6px; }
.book .book-title { font-size: clamp(3.2rem, 7vw, 5.2rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin: 0 0 14px; }
.fund-title { font-size: clamp(2.8rem, 7vw, 4.4rem); margin: 10px 0 18px; }
.alt-title { font-size: clamp(2.3rem, 4.8vw, 3.5rem); line-height: 1.05; }
.yt-title { font-family: "Young Serif", var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.pod-title { font-family: "Bricolage Grotesque", var(--sans); font-weight: 800; letter-spacing: -0.03em; }
.ang-title { font-family: "Space Grotesk", var(--sans); font-weight: 700; letter-spacing: -0.03em; }
.book .book-sub { font-family: var(--sans); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 500; color: var(--ink); margin: 0 0 22px; }

/* Big Nalanda title: same scale as the Carmilla title, but the crisp (un-softened) cut for variety. */
.feature-title .title-xl { font-size: clamp(3rem, 6.5vw, 4.8rem); font-weight: 700; line-height: 1; letter-spacing: -0.025em; font-variation-settings: "SOFT" 0; }
.feature-title:has(.title-xl) img { width: 84px; height: 84px; border-radius: 20px; }
.goodreads { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.goodreads p { color: var(--ink-soft); margin: 0; max-width: 52ch; }
.goodreads .book-cta { margin: 0; }

/* SFIG page: partnerships */
.partners .grid-2 { max-width: none; }
.partners-lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; margin: 16px auto 0; }
.partners .tile .eyebrow { margin-bottom: 10px; }
.partners .tile a::after { content: " ↗"; }
.speakers { text-align: center; max-width: 60ch; margin: 36px auto 0; }
.speakers p { color: var(--ink-soft); font-size: 1.1rem; margin: 10px 0 0; }

/* Homepage YouTube card: coral lead line from the video's top-left corner up to the "Watch" heading,
   and a purple click cursor to the right of the video, level with the play button. --rise is set in site.js. */
.yt-stage { position: relative; }
.yt-stage > .video { position: relative; z-index: 1; }
.yt-lead { position: absolute; right: 100%; bottom: 100%; width: var(--reach, 120px); height: var(--rise, 120px); overflow: visible; pointer-events: none; }
.yt-lead path { fill: none; stroke: var(--coral-deep); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.yt-lead-dot { position: absolute; right: calc(100% + var(--reach, 120px) - 11px); bottom: calc(100% + var(--rise, 120px) - 11px); width: 22px; height: 22px; border: 3px solid var(--coral-deep); border-radius: 50%; background: var(--cream); pointer-events: none; }
.yt-click { position: absolute; left: calc(100% + 52px); bottom: 26px; width: 54px; height: 54px; overflow: visible; pointer-events: none; }
.yt-click path { fill: none; stroke: #a78bfa; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 980px) { .yt-lead, .yt-lead-dot, .yt-click { display: none; } }

/* Homepage book card: very red looped arrow from the Kindle button to the cover (path set in site.js). */
.card.book { position: relative; }
.book-arrow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.book-arrow path { fill: none; stroke: #e10600; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 980px) { .book-arrow { display: none; } }

/* Videos page: the two other videos under the YouTube card */
.more-videos { margin-top: 48px; }
.vid-desc { margin: 10px 8px 0; font-size: .95rem; color: var(--ink-soft); }

/* Podcast page: the other episodes under the BFF card (same layout as the videos page) */
.more-episodes { margin-top: 48px; }

/* Magenta microphone with click-style lines around it, next to "Podcast" in "Listen to My Podcast" */
.mic-deco { width: 1.5em; height: 1.5em; margin-left: .08em; vertical-align: -0.38em; overflow: visible; }
.mic-deco path, .mic-deco rect { fill: none; stroke: #d0209a; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.mic-deco rect { fill: #fbe3f2; }
.mic-deco .rays { stroke-width: 4; }
/* Blog page: intro line under "Read My Blog" */
.blog-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 52ch; margin: 18px auto 0; }

/* Homepage: hand-drawn box around "My Toolkit" whose lines run past the corners */
.sketch-box, .center-head h2 span.sketch-box { position: relative; display: inline-block; padding: 10px 26px; }
.sketch-box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sketch-box path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* Homepage: three black underlines under "Impact", each shorter than the one above */
.carousel-head h2 span.triple-ul { display: inline-block; position: relative; }
.triple-ul svg { position: absolute; left: 0; top: 96%; width: 100%; height: .62em; overflow: visible; pointer-events: none; }
.triple-ul path { fill: none; stroke: #111; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.triple-ul path:nth-child(1) { stroke-width: 5px; }
.triple-ul path:nth-child(2) { stroke-width: 4px; }
.triple-ul path:nth-child(3) { stroke-width: 3px; }
/* Angreal card: purple lines under the screenshot, drawn down to the bottom of the card by fillShotLines() */
.shot-wrap { display: block; position: relative; }
.shot-underline { position: absolute; left: 0; top: calc(100% + 16px); width: 100%; height: 34px; overflow: visible; pointer-events: none; }
.shot-underline path { fill: none; stroke: #a78bfa; stroke-linecap: round; }
/* Green computer with lines around its top and sides (none below), next to "Blog" in "Read My Blog" */
.comp-deco { width: 1.5em; height: 1.5em; margin-left: .06em; vertical-align: -0.36em; overflow: visible; }
.comp-deco path, .comp-deco rect { fill: none; stroke: #1f9d55; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.comp-deco rect { fill: #e2f5e9; }
.comp-deco .rays { stroke-width: 4; }
/* Hero: original flat waving hand (yellow palm, blue motion lines) in place of the emoji */
.wave-hand { width: 1.15em; height: 1.15em; vertical-align: -0.15em; margin-left: .05em; overflow: visible; }
.wave-hand .finger path { fill: none; stroke: #f8c64a; stroke-width: 14; stroke-linecap: round; }
.wave-hand .palm { fill: #f8c64a; }
.wave-hand .shade { fill: none; stroke: #eaa92a; stroke-width: 3; stroke-linecap: round; }
.wave-hand .motion path { fill: none; stroke: #5cc8ec; stroke-width: 5; stroke-linecap: round; }
.wave-hand .lines path { fill: none; stroke: #e0a024; stroke-width: 2.2; stroke-linecap: round; }
/* Carmilla page: "How I made Carmilla" steps */
.making h2 { margin: 10px 0 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--cream); border-radius: 16px; padding: 18px 18px 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: var(--ink); font-weight: 700; font-size: .82rem; margin-bottom: 10px; }
.steps b { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; }
.steps span { color: var(--ink-soft); font-size: .93rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
