/* Varun Vemulapalli — portfolio, "Navy & Signal" palette
   Colors come from Varun's own material: the deep navy of his book cover and his
   Learn AI in 100 Days graphics, their cyan signal accent, and the coral of his
   logo used sparingly. Layout follows the reference reel: cut-out hero over a
   giant name, flipping ID badge, periodic table of skills, sideways moments. */

:root {
  --paper: #F1F5FB;        /* cool page */
  --paper-2: #E2EAF5;
  --card: #FFFFFF;
  --ink: #0B1A33;          /* book-cover navy */
  --ink-2: #2A3A55;
  --muted: #61708A;
  --ghost: #D9E3F1;        /* giant VARUN behind the hero */
  --accent: #0A86C2;       /* signal cyan, dark enough for text */
  --accent-2: #38BDF8;     /* bright cyan, for fills on navy */
  --coral: #EE7A5C;        /* logo coral, small touches only */
  --on-ink: #EAF2FD;
  --on-ink-muted: #9FB2CF;
  --line: rgba(11, 26, 51, .11);
  --line-2: rgba(11, 26, 51, .2);
  --max: 78rem;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --sans: "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 60; }
.skip:focus { left: 1rem; }

h1, h2, h3 { margin: 0; line-height: 1; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(2.6rem, 6.4vw, 5.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.3; }
/* The one italic serif word per heading, as in the reference */
.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 36rem; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: .55rem; background: var(--ink); color: var(--paper); text-decoration: none; padding: .75rem 1.3rem; border-radius: 999px; font: 500 .98rem var(--sans); border: 0; cursor: pointer; }
.btn:hover { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn .tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Header: a floating pill */
.site-head { position: sticky; top: .75rem; z-index: 30; padding: 0 var(--gutter); }
.home .site-head { position: fixed; left: 0; right: 0; }
.site-head .wrap { max-width: var(--max); display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.4rem; padding: 0 .6rem 0 1.25rem; background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(0,0,0,.25); }
.brand { font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.nav { display: flex; gap: .2rem; flex-wrap: nowrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .92rem; padding: .45rem .8rem; border-radius: 999px; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"], .nav a.cta { background: var(--ink); color: var(--paper); }
@media (max-width: 52rem) { .nav .hide-sm { display: none; } }

/* ---------- Hero ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: fade-in .8s ease .1s both; }
  @keyframes giant-in { from { opacity: 0; letter-spacing: .05em; } to { opacity: 1; } }
  @keyframes rise-in { from { opacity: 0; transform: translate(-50%, 6%); } to { opacity: 1; transform: translate(-50%, 0); } }
  @keyframes fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- Sections ---------- */
section { padding: clamp(5rem, 11vw, 8.5rem) 0; position: relative; }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem 3rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.sec-head p { color: var(--muted); margin: 0; max-width: 28rem; }

/* Intro + ID badge */
.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem 4rem; align-items: center; }
.intro h2 { margin-bottom: 1.75rem; }
.intro .lede { margin-bottom: 1.25rem; }
.intro .row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.focus-list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.focus-list li { padding: .35rem .85rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: .9rem; color: var(--ink-2); }
@media (max-width: 52rem) { .intro { grid-template-columns: 1fr; } }

.lanyard { position: relative; display: grid; justify-items: center; padding-top: 0; perspective: 1400px; }
.lanyard .strap { width: 34px; height: 120px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, #1E1E1E 2px 4px); clip-path: polygon(10% 0, 90% 0, 72% 100%, 28% 100%); }
.lanyard .clip { width: 46px; height: 22px; border-radius: 6px 6px 3px 3px; background: linear-gradient(#C9C7C1, #9C9A94); margin-top: -2px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.badge { position: relative; width: min(19rem, 78vw); aspect-ratio: 5 / 7.6; margin-top: -6px; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,.7,.2,1); cursor: pointer; border: 0; padding: 0; background: none; font: inherit; color: inherit; transform-origin: 50% 0; }
.badge.flipped { transform: rotateY(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .badge.swing { animation: swing 2.8s ease-in-out .3s both; }
  @keyframes swing { 0% { transform: rotate(9deg); } 30% { transform: rotate(-6deg); } 55% { transform: rotate(3.5deg); } 78% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); } }
}
.badge .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -35px rgba(0,0,0,.45); overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.badge .hole { position: absolute; left: 50%; top: 12px; width: 54px; height: 9px; margin-left: -27px; border-radius: 9px; background: var(--paper-2); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); z-index: 2; }
.badge .top { background: var(--ink); color: var(--paper); padding: 2.2rem 1.25rem .9rem; display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; }
.badge .top b { font-size: 1.05rem; letter-spacing: -0.02em; }
.badge .photo { margin: 1.25rem 1.25rem 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.badge .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.badge .who { padding: 1rem 1.25rem 0; }
.badge .who strong { display: block; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1.05; }
.badge .who span { color: var(--muted); font-size: .92rem; }
.badge .foot { margin-top: auto; padding: 0 1.25rem 1.1rem; display: flex; justify-content: space-between; align-items: flex-end; font-size: .78rem; color: var(--muted); }
.badge .bars { height: 30px; width: 46%; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); }
.badge .back { transform: rotateY(180deg); padding: 2.4rem 1.4rem 1.25rem; }
.badge .back h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.9rem; letter-spacing: -0.01em; margin-bottom: .9rem; }
.badge .back ul { list-style: none; padding: 0; margin: 0; }
.badge .back li { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.badge .back .contact-mini { margin-top: auto; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.flip-hint { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* Periodic table of skills */
.filter { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.filter button { font: 500 .9rem var(--sans); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; color: var(--ink-2); padding: .4rem .95rem; border-radius: 999px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.ptable { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .5rem; }
.el { position: relative; aspect-ratio: 1 / 1.08; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: .55rem .6rem; display: flex; flex-direction: column; transition: background .25s, color .25s, opacity .25s, transform .25s; }
.el .n { font-size: .72rem; color: var(--muted); }
.el .sym { font-size: clamp(1.4rem, 2.6vw, 2.35rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: auto 0 .2rem; }
.el .name { font-size: .7rem; line-height: 1.15; color: var(--ink-2); min-height: 2.3em; }
.el.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.el.on .n, .el.on .name { color: var(--on-ink-muted); }
.el.dim { opacity: .35; }
.el:hover { transform: translateY(-3px); }
.ptable-note { margin-top: 1.25rem; color: var(--muted); font-size: .9rem; min-height: 1.5em; }
@media (max-width: 60rem) { .ptable { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .ptable { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; } .el .name { font-size: .62rem; } }

/* Always learning: book + research */
.learning { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem 4rem; }
.book-card { background: var(--card); border-radius: 18px; padding: 1.5rem; box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.book-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: var(--paper-2); box-shadow: 0 16px 30px -18px rgba(0,0,0,.5); }
.book-card small { color: var(--muted); font-size: .82rem; }
.book-card h3 { font-size: 1.2rem; margin: .3rem 0 .6rem; }
.book-card p { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 52rem) { .learning { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .book-card { grid-template-columns: 1fr; } .book-card img { max-width: 8rem; } }
.entries { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.entries li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .3rem 1.75rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.entries .meta { color: var(--muted); font-size: .88rem; padding-top: .15rem; }
.entries h3 { font-size: 1.08rem; }
.entries h3 a { text-decoration: none; }
.entries h3 a:hover { text-decoration: underline; }
.entries p { color: var(--muted); margin: .35rem 0 0; font-size: .94rem; }
@media (max-width: 40rem) { .entries li { grid-template-columns: 1fr; } }

/* Proud moments: sideways scroll */
.moments-wrap { position: relative; }
.moments { --mpad: var(--gutter); list-style: none; margin: 0; padding: .25rem var(--mpad) 1.5rem; scroll-padding-inline: var(--mpad); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 22rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: none; }
.moments::-webkit-scrollbar { display: none; }
@media (min-width: 78rem) { .moments { --mpad: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.moment { scroll-snap-align: start; background: var(--card); border-radius: 18px; padding: 1.5rem; box-shadow: inset 0 0 0 1px var(--line); min-height: 15rem; display: flex; flex-direction: column; }
.moment .big { font-size: clamp(3.5rem, 6vw, 5rem); font-weight: 600; letter-spacing: -0.06em; line-height: 1; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.moment .tag { font-size: .82rem; color: var(--muted); }
.moment h3 { font-size: 1.05rem; margin-top: auto; padding-top: 1.5rem; }
.moment p { color: var(--muted); font-size: .9rem; margin: .3rem 0 0; }
.moment.dark { background: var(--ink); color: var(--paper); box-shadow: none; }
.moment.dark .tag, .moment.dark p { color: var(--on-ink-muted); }
.scroller { display: flex; gap: .5rem; }
.scroller button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; cursor: pointer; font: 500 1.1rem var(--sans); color: var(--ink); }
.scroller button:hover { background: var(--ink); color: var(--paper); }

/* Contact */
.contact-big { font-size: clamp(1.45rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; overflow-wrap: break-word; margin-top: 1.75rem; }
.contact-big a { text-decoration: none; background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s ease; }
.contact-big a:hover { background-size: 100% 2px; }
.contact { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 2.5rem 0 0; }
.contact dt { color: var(--muted); font-size: .85rem; }
.contact dd { margin: .15rem 0 0; font-size: 1.05rem; }

.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* ---------- Videos ---------- */
.vplayer { position: relative; margin: 0; }
.vplayer video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.vplayer .play { position: absolute; left: 1rem; top: 0; margin-top: calc((100% * 9 / 16) - 3.6rem); display: inline-flex; align-items: center; gap: .55rem; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; border-radius: 999px; padding: .6rem 1.1rem .6rem .8rem; font: 500 .93rem var(--sans); }
.vplayer .play::before { content: ""; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.vplayer.playing .play { display: none; }
.vplayer figcaption { color: var(--muted); font-size: .9rem; margin: .7rem 0 .5rem; }
@media (max-width: 40rem) { .vplayer .play { left: .6rem; margin-top: calc((100% * 9 / 16) - 2.8rem); padding: .4rem .85rem .4rem .6rem; font-size: .85rem; } }

.vgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2.5rem 1.5rem; }
.vcard a { display: block; text-decoration: none; color: var(--ink); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.vcard a:hover .thumb img { transform: scale(1.04); }
.thumb .dur { position: absolute; right: .6rem; bottom: .6rem; background: rgba(11,26,51,.85); color: #fff; font-size: .76rem; font-weight: 500; padding: .12rem .5rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.thumb .pip { position: absolute; left: .6rem; bottom: .6rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.thumb .pip::before { content: ""; border-left: 9px solid var(--paper); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; margin-left: 3px; }
.thumb.text { display: flex; align-items: flex-end; padding: 1.1rem 1.2rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.vcard h3 { font-size: 1.02rem; margin-top: .85rem; }
.vcard a:hover h3 { text-decoration: underline; }
.vcard .meta { display: block; color: var(--muted); font-size: .85rem; margin-top: .25rem; }

.page-head { padding: clamp(5.5rem, 12vw, 8rem) 0 2.5rem; }
.page-head h1 { font-size: clamp(3.4rem, 10vw, 8rem); letter-spacing: -0.055em; line-height: .9; }
.page-head .lede { margin-top: 1.25rem; }
.vfeature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.75rem 3rem; align-items: center; margin: 0 0 3.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.vfeature h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: .4rem 0 1rem; }
.vfeature h2 a { text-decoration: none; }
.vfeature .meta { color: var(--muted); font-size: .9rem; }
.vfeature p { color: var(--ink-2); }
@media (max-width: 52rem) { .vfeature { grid-template-columns: 1fr; } }
.empty { border: 1px dashed var(--line-2); border-radius: 14px; padding: 2rem; color: var(--muted); max-width: 44rem; }
.empty strong { color: var(--ink); display: block; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: .35rem; }

/* Post page */
.post { padding: clamp(5.5rem, 11vw, 7.5rem) 0 5rem; }
.post .wrap { max-width: 50rem; }
.post .back { font-size: .93rem; color: var(--muted); text-decoration: none; }
.post .back:hover { color: var(--ink); }
.post h1 { font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: -0.05em; line-height: .98; margin: 1.25rem 0 1rem; }
.post .meta { color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: 2.25rem; }
.player { margin: 0 0 2.5rem; }
.post-body { font-size: 1.12rem; line-height: 1.75; color: var(--ink-2); }
.post-body p { margin-bottom: 1.15em; }
.post-body a { overflow-wrap: anywhere; }
.post .tags { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.post .tags li { box-shadow: inset 0 0 0 1px var(--line-2); padding: .2rem .75rem; border-radius: 999px; font-size: .85rem; color: var(--muted); }
.post .source { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-nav a { text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; padding: 1rem 1.1rem; background: var(--card); }
.post-nav a small { display: block; color: var(--muted); font-size: .82rem; }
.post-nav .next { text-align: right; grid-column: 2; }
.watch-next { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.watch-next h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
.post .watch-next .vgrid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }

/* Intro lightbox */
.screen { border: 0; padding: 0; background: transparent; width: min(92vw, 150vh); max-width: none; overflow: visible; }
.screen::backdrop { background: rgba(6, 14, 30, .9); }
.screen video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.screen .close { position: absolute; right: 0; top: -2.75rem; background: none; border: 0; color: #fff; font: 500 .95rem var(--sans); cursor: pointer; padding: .5rem 0; }

/* ---------- Launch intro: plays on load, then hands over to the page ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* menu stays out of the way while the intro plays */

/* ---------- AI Training: Learn AI in 100 Days ---------- */
.kicker { font-size: .9rem; color: var(--muted); margin: 0 0 .9rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.course-progress { display: flex; align-items: center; gap: .9rem; margin: 1.75rem 0; max-width: 36rem; }
.course-progress .bar { flex: 1; height: 8px; border-radius: 8px; background: var(--paper-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.course-progress .bar i { display: block; height: 100%; background: var(--ink); border-radius: 8px; }
.course-progress .count { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.course-progress .count b { color: var(--ink); font-size: 1.05rem; }
.course-hero { padding: clamp(6rem, 12vw, 8.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.course-hero h1 { font-size: clamp(3rem, 9vw, 7rem); letter-spacing: -0.055em; line-height: .92; }
.course-hero .lede { margin-top: 1.25rem; }
.course-hero .goal { max-width: 36rem; color: var(--ink-2); font-weight: 500; }
.course-hero .row, .more-link, .help-cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.more-link { margin-top: 2.25rem; }
.phase { padding-block: clamp(3rem, 7vw, 5rem); }
.ph-n { display: block; font-size: .95rem; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-bottom: .4rem; }
.lessons { counter-reset: none; }
.vcard .day { display: inline-block; margin-top: .85rem; font-size: .8rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: var(--ink); color: var(--paper); }
.vcard .day + h3 { margin-top: .5rem; }
.vcard .meta { line-height: 1.45; }

/* Lesson page */
.lesson-page { padding: clamp(5.5rem, 10vw, 7rem) 0 4rem; }
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem 4rem; align-items: start; }
.lesson { max-width: 46rem; min-width: 0; }
.lesson h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.05em; line-height: .98; }
.lesson .meta { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: 1rem 0 1.75rem; }
.hook { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink); margin-bottom: 1.75rem; }
.hook p { margin-bottom: .7em; }
.takeaway { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 1.4rem 1.5rem 1.5rem; margin: 0 0 2.5rem; }
.takeaway span { font-size: .82rem; color: var(--accent-2); font-weight: 600; }
.takeaway p { margin: .4rem 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.3; }
.lesson .post-body { font-size: 1.08rem; line-height: 1.75; color: var(--ink-2); }
.lesson .post-body h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: -0.035em; color: var(--ink); margin: 2.4rem 0 .9rem; line-height: 1.15; scroll-margin-top: 5.5rem; }
.lesson .post-body ul { padding-left: 1.2rem; margin: 0 0 1.2em; }
.lesson .post-body li { margin-bottom: .45em; }
.lesson .post-body li::marker { color: var(--muted); }
.lesson .post-body strong { color: var(--ink); font-weight: 600; }
.discuss { margin-top: 2.5rem; padding: 1.25rem 1.4rem; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.discuss p { margin: 0 0 .6rem; font-weight: 500; color: var(--ink); }
.post-nav .soon { opacity: .85; }
.lead { margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0,0,0,.35); }
.lead h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .75rem; }
.lead p { color: var(--ink-2); margin: 0; }
.lead-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.lead-addr { font-size: .85rem; color: var(--muted); user-select: all; overflow-wrap: anywhere; }
@media (max-width: 52rem) { .lead { grid-template-columns: 1fr; } }
.course-side { position: sticky; top: 5.5rem; }
.side-box { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 1.2rem 1.1rem; max-height: calc(100vh - 7rem); overflow: auto; }
.side-h { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
.side-h a { text-decoration: none; }
.side-box .course-progress { margin: .8rem 0 1rem; }
.side-box .course-progress .count { font-size: .78rem; }
.side-sub { font-size: .78rem; color: var(--muted); margin: 1rem 0 .4rem; }
.toc, .days { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.toc a, .days a { display: block; padding: .3rem .5rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); line-height: 1.3; }
.toc a:hover, .days a:hover { background: var(--paper-2); }
.days span { color: var(--muted); font-size: .78rem; display: inline-block; min-width: 3.4rem; }
.days [aria-current] a { background: var(--ink); color: var(--paper); }
.days [aria-current] span { color: var(--on-ink-muted); }
@media (max-width: 62rem) { .lesson-grid { grid-template-columns: 1fr; } .course-side { position: static; } .side-box { max-height: none; } .toc, .side-box .side-sub:first-of-type { display: none; } }

/* How I can help */
.help { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; counter-reset: help; }
.help li { counter-increment: help; background: var(--card); border-radius: 18px; padding: 1.4rem 1.4rem 1.5rem; box-shadow: inset 0 0 0 1px var(--line); }
.help li::before { content: counter(help); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.help h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.help p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Palette accents ---------- */
.it { color: var(--accent); }
.takeaway .it, .moment.dark .it { color: var(--accent-2); }
.btn { background: var(--ink); color: var(--on-ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.nav a[aria-current="page"], .nav a.cta { background: var(--ink); color: var(--on-ink); }
.nav a.cta:hover { background: var(--accent); }
.el.on { background: var(--ink); color: var(--on-ink); }
.el.on .sym { color: var(--accent-2); }
.moment.dark { background: var(--ink); color: var(--on-ink); }
.moment.dark .big { color: var(--accent-2); }
.takeaway { background: var(--ink); color: var(--on-ink); border-left: 4px solid var(--accent-2); }
.course-progress .bar i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.vcard .day { background: var(--accent); color: #fff; }
.thumb .pip, .vplayer .play { background: var(--ink); color: var(--on-ink); }
.thumb .pip::before { border-left-color: var(--accent-2); }
.vplayer .play::before { border-left-color: var(--accent-2); }
.help li::before { background: var(--accent); color: #fff; }
.lead { box-shadow: inset 0 0 0 1px var(--line), inset 4px 0 0 var(--accent), 0 30px 60px -40px rgba(11,26,51,.35); }
.entries .meta { color: var(--accent); }
.crumbs a:hover, .lesson .post-body a, .entries h3 a:hover { color: var(--accent); }
.contact-big a { background-image: linear-gradient(var(--coral), var(--coral)); }
.badge .top { background: var(--ink); color: var(--on-ink); }
.badge .top b { color: var(--accent-2); }
.lanyard .strap { background: repeating-linear-gradient(90deg, var(--ink) 0 2px, #1C3158 2px 4px); }
.badge .back h3 { color: var(--accent); }
.days [aria-current] a { background: var(--ink); color: var(--on-ink); }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.dots i.on, .dots i.done { background: var(--accent); }
:focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent-2); color: var(--ink); }
.book-card img { box-shadow: 0 22px 40px -20px rgba(11,26,51,.6); }
/* Post graphic on lesson pages */
.post-graphic { margin: 0 0 2.5rem; }
.post-graphic img { display: block; width: 100%; height: auto; max-width: 34rem; aspect-ratio: 1; object-fit: contain; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(11,26,51,.55); }
.post-graphic figcaption { color: var(--muted); font-size: .88rem; margin-top: .6rem; }
.draft-note { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--coral); background: rgba(238,122,92,.12); padding: .2rem .65rem; border-radius: 999px; margin-left: .4rem; }
.learning { align-items: start; }
.book-card { grid-template-columns: 11rem minmax(0, 1fr); background: linear-gradient(160deg, var(--ink), #16305A); color: var(--on-ink); box-shadow: 0 30px 60px -36px rgba(11,26,51,.6); }
.book-card small { color: var(--accent-2); font-weight: 600; }
.book-card h3 { color: #fff; }
.book-card p { color: var(--on-ink-muted); }
.book-card .btn { background: var(--accent-2); color: var(--ink); }
.book-card .btn:hover { background: #fff; }
.book-card img { border-radius: 6px; box-shadow: 0 18px 36px -12px rgba(0,0,0,.6); transform: rotate(-2deg); }
@media (max-width: 30rem) { .book-card { grid-template-columns: 1fr; } .book-card img { max-width: 10rem; } }


/* ---------- hero (static, replaces the intro video) ---------- */
.hero { padding-block: clamp(6.5rem, 12vh, 8.5rem) 0; background: radial-gradient(120% 80% at 75% 100%, var(--paper-2) 0%, var(--paper) 60%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1rem, 4vw, 3rem); align-items: end; }
.hero-copy { padding-bottom: clamp(2.5rem, 7vh, 5rem); min-width: 0; }
.hero-kicker { font-size: .95rem; font-weight: 600; color: var(--accent); margin: 0 0 .9rem; }
.hero h1 { font-size: clamp(2.7rem, 7.2vw, 6rem); line-height: .95; letter-spacing: -0.055em; margin: 0; text-wrap: balance; }
.hero h1 .it { display: block; }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 34rem; margin: 1.3rem 0 0; }
.hero-stats { list-style: none; padding: 0; margin: 1.6rem 0 1.8rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-stats li { background: #fff; border-radius: 14px; padding: .6rem .9rem; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; min-width: 0; }
.hero-stats b { font-size: 1.35rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.hero-stats span { font-size: .8rem; color: var(--muted); }
.hero-photo { position: relative; margin: 0; display: flex; justify-content: center; align-items: flex-end; min-width: 0; }
.hero-photo img { position: relative; z-index: 1; display: block; width: 100%; max-width: 34rem; height: auto; aspect-ratio: 1000 / 988; object-fit: contain; object-position: center bottom; }
.hero-ghost { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); font-weight: 800; font-size: clamp(5rem, 15vw, 13rem); letter-spacing: -0.06em; line-height: 1; color: var(--ghost); white-space: nowrap; pointer-events: none; user-select: none; }
@media (max-width: 52rem) {
  .hero { padding-top: 6rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { padding-bottom: 1.5rem; }
  .hero-photo img { width: min(88%, 24rem); }
  .hero-ghost { font-size: clamp(4.5rem, 27vw, 9rem); top: 6%; }
  .hero .row .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- small-screen polish ---------- */
.nav a { white-space: nowrap; }
@media (max-width: 30rem) {
  .site-head .wrap { padding: 0 .4rem 0 1rem; gap: .5rem; }
  .brand { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .nav a { font-size: .85rem; padding: .45rem .7rem; }
}
.thumb img { display: block; }
.hero { border-top: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 32rem; }
@media (max-width: 30rem) { .hero-stats li { padding: .55rem .6rem; } .hero-stats b { font-size: 1.15rem; } .hero-stats span { font-size: .72rem; line-height: 1.25; } }
.thumb { box-shadow: 0 0 0 1px var(--line), 0 12px 28px -18px rgba(11,26,51,.35); }

/* ---------- publications ---------- */
.pubs { margin-top: 3.5rem; }
.pubs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; margin-bottom: 1.25rem; }
.pubs-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -0.03em; margin: 0; }
.pubs-head p { color: var(--muted); margin: 0; flex: 1 1 16rem; }
.pubs .entries p b { color: var(--ink-2); font-weight: 600; }
.pubs .entries .venue { font-size: .86rem; }

/* testimonials */
.voices { background: var(--ink); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.voices-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.voices-kicker { color: #38BDF8; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .8rem; }
.voices-head h2 { color: #fff; margin: 0 0 1.2rem; font: 700 clamp(2.2rem, 5vw, 3.6rem)/1.02 var(--sans); letter-spacing: -.03em; }
.voices-head h2 .it { font-family: var(--serif); font-style: italic; font-weight: 400; color: #7DD3FC; }
.voices-link { color: #C9D6E8; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); font-weight: 500; }
.voices-link:hover { color: #fff; border-color: #fff; }
.voices-stage { position: relative; padding-top: 3.2rem; }
.voices-mark { position: absolute; top: -1.6rem; left: -.4rem; font: 400 9rem/1 var(--serif); color: #38BDF8; opacity: .35; pointer-events: none; }
.voices-track { display: grid; gap: 2.2rem; position: relative; }
.voice { margin: 0; }
.voice blockquote { margin: 0 0 1.6rem; font: 400 clamp(1.35rem, 2.6vw, 1.9rem)/1.4 var(--serif); font-style: italic; color: #fff; text-wrap: pretty; }
.voice figcaption { display: flex; align-items: center; gap: .9rem; }
.voice .ini { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #38BDF8; color: var(--ink); font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.voice figcaption b { display: block; color: #fff; font-weight: 600; }
.voice figcaption small { display: block; color: #9FB2CC; font-size: .88rem; line-height: 1.4; }
.voice-nav { display: none; }
.voices.js .voices-track { display: grid; grid-template-areas: "q"; }
.voices.js .voice { grid-area: q; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease, visibility .5s; }
.voices.js .voice.on { opacity: 1; visibility: visible; transform: none; }
.voices.js .voice-nav { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; }
.voice-nav > button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 1.05rem; cursor: pointer; }
.voice-nav > button:hover { background: #fff; color: var(--ink); }
.voice-dots { display: flex; gap: .45rem; }
.voice-dots button { width: .55rem; height: .55rem; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: width .3s, background .3s; }
.voice-dots button[aria-current="true"] { width: 1.6rem; background: #38BDF8; }
@media (max-width: 760px) { .voices-grid { grid-template-columns: 1fr; } .voices-stage { padding-top: 2.6rem; } .voices-mark { top: -1.2rem; font-size: 7rem; } }
