/* The Research Library · Shivam Meet
   Same family as The Internship Method: warm cream, sage, espresso ink, serif display. */
:root {
  --bg: #f6f2e9;
  --bg-2: #efe9dc;
  --surface: #fffcf6;
  --text: #352a22;
  --strong: #1f1813;
  --muted: #766c60;
  --line: #ded7ca;
  --line-2: #cfc6b5;
  --accent: #52634d;
  --accent-bg: #52634d;
  --accent-bg-2: #3e4e3a;
  --accent-soft: #e5e9dc;
  --accent-ink: #3e4e3a;
  --clay: #b8643f;
  --clay-soft: #f3e2d6;
  --clay-ink: #8a4526;
  --butter: #f4e7b8;
  --butter-ink: #6d5712;
  --lilac: #ecdcfb;
  --lilac-ink: #5b3d86;
  --night: #1f1813;
  --on-night: #fffcf6;
  --glass: rgba(246, 242, 233, .82);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 0 rgba(53, 42, 34, .04), 0 12px 32px -18px rgba(53, 42, 34, .28);
  --shadow-lg: 0 2px 0 rgba(53, 42, 34, .04), 0 40px 80px -40px rgba(53, 42, 34, .45);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15110e;
  --bg-2: #1d1814;
  --surface: #1f1a16;
  --text: #e9e1d3;
  --strong: #f7f1e6;
  --muted: #a3978a;
  --line: #332a23;
  --line-2: #47392f;
  --accent: #a9bc9c;
  --accent-bg: #52634d;
  --accent-bg-2: #627760;
  --accent-soft: #252d23;
  --accent-ink: #bfd0b2;
  --clay: #d98a62;
  --clay-soft: #36231a;
  --clay-ink: #f0b495;
  --butter: #3b3219;
  --butter-ink: #ecd68e;
  --lilac: #2e2540;
  --lilac-ink: #d9c2f5;
  --night: #0c0a08;
  --glass: rgba(21, 17, 14, .82);
  --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 12px 32px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 0 rgba(0, 0, 0, .2), 0 40px 80px -40px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
::selection { background: var(--accent-bg); color: #fffcf6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
em { font-style: italic; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--strong); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .16 0 0 0 0 .13 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::before { opacity: .9; mix-blend-mode: screen; }
main, header, footer { position: relative; z-index: 1; }

/* ---------- type ---------- */
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; color: var(--strong); }
h1 em, h2 em, h3 em { color: var(--accent); }
h2 { font-size: clamp(38px, 5vw, 64px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.025em; line-height: 1.15; }
.lede { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--muted); max-width: 62ch; line-height: 1.65; }
.small { font-size: 13px; color: var(--muted); }
b, strong { font-weight: 650; color: var(--strong); }
.step-no { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; transition: transform .18s ease, background .18s ease, border-color .18s, color .18s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent-bg); color: #fffcf6; box-shadow: 0 10px 24px -12px rgba(62, 78, 58, .8); }
.btn-primary:hover { background: var(--accent-bg-2); }
.btn-ghost { border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }
.btn-light { background: #fffcf6; color: #1f1813; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 650; letter-spacing: .02em; white-space: nowrap; }
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.a-open { background: var(--accent-soft); color: var(--accent-ink); }
.a-freereg { background: var(--butter); color: var(--butter-ink); }
.a-limited { background: var(--clay-soft); color: var(--clay-ink); }
.a-paywall { border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 200; }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--glass); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .35s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.wordmark { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wordmark img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex: none; }
.wordmark b { display: block; font-size: 14.5px; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; }
.wordmark span { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 14px; line-height: 1.2; white-space: nowrap; }
.hdr nav { display: flex; align-items: center; gap: 24px; font-size: 13.5px; font-weight: 500; }
.hdr nav a.nl { color: var(--muted); transition: color .15s; }
.hdr nav a.nl:hover, .hdr nav a.nl.on { color: var(--strong); }
.wispr-chip { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--night); color: #fffcf6; font-size: 13px; font-weight: 600; transition: transform .18s; white-space: nowrap; flex: none; }
[data-theme="dark"] .wispr-chip { background: #2a221c; border: 1px solid #3d3229; }
.wispr-chip:hover { transform: translateY(-1px); }
.wispr-chip .wlogo { height: 14px; width: auto; }
.wispr-chip .wsep { width: 1px; height: 14px; background: rgba(255, 252, 246, .3); }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); background: var(--surface); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .15s; flex: none; }
.theme:hover { border-color: var(--text); transform: rotate(-18deg); }
.theme svg { width: 17px; height: 17px; }
.theme .sun { display: none; }
[data-theme="dark"] .theme .sun { display: block; }
[data-theme="dark"] .theme .moon { display: none; }
.chapters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 0 12px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.chapters::-webkit-scrollbar { display: none; }
.chapters a { flex: none; font-size: 12.5px; font-weight: 550; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; transition: all .15s; }
.chapters a:hover { color: var(--text); border-color: var(--line); }
.chapters a.on { background: var(--strong); color: var(--bg); }
.chapters a i { font-style: normal; opacity: .55; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(46px, 5.9vw, 88px); margin: 24px 0 26px; letter-spacing: -.05em; line-height: .98; }
.hero h1 .under { position: relative; white-space: nowrap; }
.hero h1 .under svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.hero h1 .under path { stroke: var(--clay); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.2s .6s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.byline { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.byline:hover { border-color: var(--text); transform: translateY(-1px); }
.byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.byline .t { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.byline .t b { display: block; font-size: 14.5px; }
.byline .t i { font-family: var(--serif); font-size: 15px; color: var(--text); }
.byline .pill { margin-left: 4px; }

/* hero visual: search window + stacked source cards */
.stage { position: relative; min-height: 620px; }
.src-ghost { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; width: min(400px, 88%); box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.src-ghost.g1 { top: 0; right: 0; transform: rotate(2.4deg); background: var(--bg-2); }
.src-ghost.g2 { top: 58px; right: 30px; transform: rotate(-1.6deg); }
.src-ghost .lg, .finder .lg, .src .lg { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; font-size: 12px; font-weight: 700; color: #766c60; }
.src-ghost .lg img, .finder .lg img, .src .lg img { width: 22px; height: 22px; object-fit: contain; }
.src-ghost b { display: block; font-size: 14px; }
.src-ghost span { font-size: 12.5px; color: var(--muted); }
.finder { position: absolute; top: 120px; right: 56px; z-index: 2; width: min(460px, 94%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.finder .bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.finder .bar svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.finder .q { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.finder .q .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.finder kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; color: var(--muted); }
.finder .res { padding: 8px; min-height: 204px; }
.finder .hit { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s, background .2s; }
.finder .hit.on { opacity: 1; transform: none; }
.finder .hit:first-child { background: var(--bg-2); }
.finder .hit .tx { flex: 1; min-width: 0; }
.finder .hit b { display: block; font-size: 14px; line-height: 1.3; }
.finder .hit span { font-size: 12px; color: var(--muted); }
.finder .foot { display: flex; justify-content: space-between; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--bg); font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.stat-card { position: absolute; left: 0; bottom: 0; z-index: 3; background: var(--night); color: #fffcf6; border-radius: var(--r-lg); padding: 18px 20px; width: 236px; box-shadow: var(--shadow-lg); transform: rotate(-3deg); }
[data-theme="dark"] .stat-card { border: 1px solid #3a3029; }
.stat-card .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; font-weight: 600; }
.stat-card .v { font-family: var(--serif); font-size: 44px; line-height: 1; margin: 8px 0 10px; letter-spacing: -.04em; }
.stat-card .bars { display: flex; gap: 4px; align-items: end; height: 34px; }
.stat-card .bars i { flex: 1; background: #f4e7b8; border-radius: 3px; height: 0; transition: height .9s cubic-bezier(.2, .8, .2, 1); }
.stat-card .lbls { display: flex; gap: 4px; margin-top: 6px; }
.stat-card .lbls span { flex: 1; font-size: 8.5px; text-align: center; opacity: .5; font-family: var(--mono); letter-spacing: 0; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip > div { padding: 26px 22px; display: flex; align-items: baseline; gap: 14px; }
.strip > div + div { border-left: 1px solid var(--line); }
.strip .n { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 48px); letter-spacing: -.04em; line-height: 1; color: var(--strong); }
.strip .t { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* ---------- sections ---------- */
section.sec { padding: clamp(72px, 10vw, 130px) 0 0; }
.sec-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { margin-top: 16px; }
.sec-head .lede { justify-self: end; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--accent-soft); border-radius: var(--r-lg); padding: 24px 26px; margin-top: 28px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.callout .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-bg); color: #fffcf6; display: grid; place-items: center; }
.callout .ic svg { width: 19px; height: 19px; }
.callout h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; font-weight: 700; }
.callout p { font-size: 15.5px; }
.callout.clay { background: var(--clay-soft); border-color: color-mix(in srgb, var(--clay) 25%, transparent); }
.callout.clay .ic { background: var(--clay); }
.callout.clay h4 { color: var(--clay-ink); }

/* method */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.steps > div { padding: 26px 22px 28px; position: relative; transition: background .2s; }
.steps > div + div { border-left: 1px solid var(--line); }
.steps > div:hover { background: var(--bg-2); }
.steps .si { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin: 22px 0 20px; transition: background .2s, color .2s; }
.steps > div:hover .si { background: var(--accent-bg); color: #fffcf6; }
.steps .si svg { width: 20px; height: 20px; }
.steps h4 { font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 8px; color: var(--strong); }
.steps p { font-size: 13.5px; color: var(--muted); }
.steps .ex { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); }
.steps .ex b { font-weight: 600; color: var(--text); }

/* tasks */
.tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.task { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; text-align: left; transition: transform .2s, box-shadow .2s, border-color .2s; min-height: 250px; }
.task:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.task .top { display: flex; justify-content: space-between; align-items: center; }
.task .ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); }
.task .ti svg { width: 20px; height: 20px; }
.task h4 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.025em; margin: 20px 0 6px; line-height: 1.1; color: var(--strong); }
.task p { font-size: 13.5px; color: var(--muted); }
.task .logos { display: flex; margin-top: 16px; }
.task .logos span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); background: #fff; margin-left: -7px; display: grid; place-items: center; overflow: hidden; }
.task .logos span:first-child { margin-left: 0; }
.task .logos img { width: 17px; height: 17px; }
.task .go { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 650; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.task .go .arr { transition: transform .2s; }
.task:hover .go .arr { transform: translateX(3px); }

/* library */
.lib-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 550; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); transition: all .15s; }
.tab:hover { border-color: var(--text); }
.tab .c { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.tab.on { background: var(--strong); color: var(--bg); border-color: var(--strong); }
.tab.on .c { background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); }
.search { position: relative; }
.search input { height: 42px; width: 280px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 44px 0 40px; font-size: 14px; outline: none; transition: border-color .15s; }
.search input:focus { border-color: var(--accent); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; color: var(--muted); pointer-events: none; }
.acc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; font-size: 12.5px; color: var(--muted); }
.acc { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 550; display: inline-flex; align-items: center; gap: 7px; transition: all .15s; color: var(--muted); }
.acc i { width: 8px; height: 8px; border-radius: 50%; }
.acc:hover { border-color: var(--line-2); color: var(--text); }
.acc.on { border-color: var(--text); color: var(--strong); background: var(--surface); }
.task-chip { display: none; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--accent-bg); color: #fffcf6; font-size: 12.5px; font-weight: 600; }
.task-chip.on { display: inline-flex; }
.task-chip button { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 252, 246, .2); display: grid; place-items: center; font-size: 12px; line-height: 1; color: #fffcf6; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grp-h { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; margin: 22px 0 2px; }
.grp-h:first-child { margin-top: 0; }
.grp-h h3 { font-size: clamp(24px, 2.4vw, 30px); }
.grp-h .ln { flex: 1; height: 1px; background: var(--line); align-self: center; }
.grp-h span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.src { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; position: relative; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .2s; animation: pop .45s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.src:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.src .tt { display: flex; align-items: center; gap: 12px; }
.src .nm { flex: 1; min-width: 0; }
.src h4 { font-size: 15.5px; font-weight: 650; line-height: 1.25; color: var(--strong); }
.src .ct { font-size: 12px; color: var(--muted); }
.src p { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; flex: 1; line-height: 1.55; }
.src .ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.src .open { font-size: 13px; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.src .open .ar { transition: transform .15s; }
.src:hover .open .ar { transform: translate(2px, -2px); }
.src .open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.save { position: relative; z-index: 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .15s, background .15s, transform .2s; flex: none; }
.save:hover { background: var(--bg-2); color: var(--text); }
.save svg { width: 17px; height: 17px; }
.save.on { color: var(--clay); }
.save.on svg { fill: currentColor; }
.save.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }
.src mark { background: var(--butter); color: inherit; border-radius: 3px; padding: 0 1px; }
.empty { grid-column: 1 / -1; padding: 56px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 6px; }
.lib-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--muted); }
.copy { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; background: var(--surface); transition: all .15s; white-space: nowrap; }
.copy:hover { border-color: var(--text); }
.copy.done { background: var(--accent-bg); border-color: var(--accent-bg); color: #fffcf6; }

/* inline wispr nudge */
.nudge { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--lilac); color: var(--strong); font-size: 14px; line-height: 1.45; transition: transform .15s; }
.nudge:hover { transform: translateY(-1px); }
.nudge .mi { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #1f1813; color: #ecdcfb; display: grid; place-items: center; }
.nudge .mi svg { width: 16px; height: 16px; }
.nudge .go { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* ---------- WISPR ---------- */
.wispr { margin-top: clamp(72px, 10vw, 130px); background: var(--night); color: #fffcf6; position: relative; overflow: hidden; }
[data-theme="dark"] .wispr { border-top: 1px solid #2a221c; border-bottom: 1px solid #2a221c; }
.wispr::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% 0%, rgba(236, 220, 251, .16), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(82, 99, 77, .45), transparent 60%); pointer-events: none; }
.wispr .wrap { position: relative; padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }
.wispr h2, .wispr h3, .wispr h4, .wispr b { color: #fffcf6; }
.w-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.w-brand { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border: 1px solid rgba(255, 252, 246, .16); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: rgba(255, 252, 246, .8); }
.w-brand .lgw { background: #fffcf6; border-radius: 999px; padding: 6px 12px; display: grid; place-items: center; }
.w-brand .lgw img { height: 13px; width: auto; }
.wispr h2 { font-size: clamp(44px, 6.2vw, 90px); letter-spacing: -.05em; line-height: .98; margin-top: 22px; }
.wispr h2 em { color: #ecdcfb; }
.wispr .lede { color: rgba(255, 252, 246, .7); }
.w-sub { display: flex; align-items: center; gap: 14px; margin: clamp(48px, 6vw, 72px) 0 18px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: rgba(255, 252, 246, .55); }
.w-sub::after { content: ""; flex: 1; height: 1px; background: rgba(255, 252, 246, .12); }

/* research cards */
.science { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.sci { border: 1px solid rgba(255, 252, 246, .12); border-radius: var(--r-lg); padding: 26px; background: rgba(255, 252, 246, .04); display: flex; flex-direction: column; }
.sci .tag { font-family: var(--mono); font-size: 11.5px; color: rgba(255, 252, 246, .5); display: flex; justify-content: space-between; gap: 10px; }
.sci .big { font-family: var(--serif); font-size: clamp(54px, 6vw, 80px); line-height: .9; letter-spacing: -.05em; margin: 22px 0 12px; color: #ecdcfb; }
.sci .big small { font-size: .38em; letter-spacing: -.02em; color: rgba(255, 252, 246, .7); font-style: italic; margin-left: 4px; }
.sci h4 { font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 10px; }
.sci p { font-size: 14px; color: rgba(255, 252, 246, .66); }
.sci .so { margin-top: auto; padding-top: 18px; font-size: 12.5px; color: rgba(255, 252, 246, .55); }
.sci .so a { color: #fffcf6; border-bottom: 1px solid rgba(255, 252, 246, .35); font-weight: 600; }
.sci .so a:hover { border-color: #fffcf6; }
.sci .apply { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(236, 220, 251, .1); font-size: 13.5px; color: #f1e6fd; line-height: 1.5; }
.sci .apply b { color: #ecdcfb; }
.sci.lil { background: #ecdcfb; border-color: #ecdcfb; color: #1f1813; }
.sci.lil .tag { color: #5b3d86; }
.sci.lil .big { color: #5b3d86; }
.sci.lil .big small { color: #7a6596; }
.sci.lil h4, .sci.lil b { color: #1f1813; }
.sci.lil p { color: #4b3c5c; }
.sci.lil .apply { background: rgba(255, 252, 246, .6); color: #1f1813; }
.sci.lil .apply b { color: #5b3d86; }
.sci.lil .so { color: #5b4a6e; }

.w-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.demo { background: rgba(255, 252, 246, .05); border: 1px solid rgba(255, 252, 246, .12); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 14px; }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-top .eyebrow { color: rgba(255, 252, 246, .6); }
.demo-top .eyebrow .dot { background: #ff7a6b; box-shadow: 0 0 0 4px rgba(255, 122, 107, .2); animation: rec 1.4s infinite; }
@keyframes rec { 50% { opacity: .35; } }
.fnkey { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 252, 246, .55); }
.fnkey kbd { font-family: var(--mono); font-size: 11.5px; border: 1px solid rgba(255, 252, 246, .25); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: #fffcf6; }
.spoken { background: rgba(0, 0, 0, .25); border-radius: 16px; padding: 18px; min-height: 150px; }
.spoken .lbl, .flowed .lbl { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.spoken .lbl { color: rgba(255, 252, 246, .5); }
.spoken p { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.5; color: rgba(255, 252, 246, .82); }
.spoken p .um { color: #ff9d8f; text-decoration: line-through; text-decoration-color: rgba(255, 157, 143, .6); }
.wave { display: flex; gap: 3px; align-items: center; height: 18px; }
.wave i { width: 3px; border-radius: 3px; background: #ecdcfb; height: 4px; }
.demo.live .wave i { animation: wv .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s !important; } .wave i:nth-child(3) { animation-delay: .25s !important; } .wave i:nth-child(4) { animation-delay: .05s !important; } .wave i:nth-child(5) { animation-delay: .3s !important; } .wave i:nth-child(6) { animation-delay: .15s !important; } .wave i:nth-child(7) { animation-delay: .35s !important; }
@keyframes wv { 0%, 100% { height: 4px; } 50% { height: 18px; } }
.arrow-down { display: flex; align-items: center; gap: 10px; color: rgba(255, 252, 246, .45); font-size: 12px; font-weight: 600; letter-spacing: .06em; padding-left: 4px; }
.arrow-down .ln { flex: 1; height: 1px; background: rgba(255, 252, 246, .14); }
.flowed { background: #fffcf6; color: #352a22; border-radius: 16px; padding: 18px; min-height: 176px; }
.flowed .lbl { color: #52634d; }
.flowed p { font-size: 15px; line-height: 1.65; }
.flowed p + p { margin-top: 8px; }
.flowed .caret { display: inline-block; width: 2px; height: 1.05em; background: #52634d; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.replay { font-size: 12.5px; font-weight: 600; color: rgba(255, 252, 246, .7); display: inline-flex; gap: 6px; align-items: center; justify-self: start; }
.replay:hover { color: #fffcf6; }
.replay svg { width: 13px; height: 13px; }

.quote { background: #ecdcfb; color: #1f1813; border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.quote .qm { font-family: var(--serif); font-size: 120px; line-height: .6; color: #b48ee0; height: 46px; }
.quote blockquote { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 29px); letter-spacing: -.025em; line-height: 1.22; }
.quote blockquote em { color: #6b3fa8; }
.quote .by { display: flex; align-items: center; gap: 12px; }
.quote .by img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fffcf6; }
.quote .by b { display: block; font-size: 14.5px; color: #1f1813; }
.quote .by span { font-size: 13px; color: #5b4a6e; }
.quote .stk { position: absolute; right: -10px; bottom: -14px; width: 120px; transform: rotate(-8deg); opacity: .95; }

.math { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 18px; margin-top: 18px; }
.mbox { border: 1px solid rgba(255, 252, 246, .12); border-radius: var(--r-lg); padding: 24px; background: rgba(255, 252, 246, .04); }
.mbox .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 252, 246, .55); font-weight: 650; }
.mbox .v { font-family: var(--serif); font-size: clamp(46px, 5vw, 68px); line-height: 1; letter-spacing: -.05em; margin: 14px 0 8px; }
.mbox p { font-size: 13.5px; color: rgba(255, 252, 246, .62); }
.mbox .track { height: 8px; border-radius: 99px; background: rgba(255, 252, 246, .1); margin-top: 16px; overflow: hidden; }
.mbox .track i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.mbox.slow .track i { background: #e8a98c; }
.mbox.fast .track i { background: #ecdcfb; }
.mbox.in.slow .track i { width: 100%; }
.mbox.in.fast .track i { width: 31%; }
.mbox.win { background: #ecdcfb; color: #1f1813; border-color: #ecdcfb; }
.mbox.win .k { color: #5b3d86; }
.mbox.win p { color: #4b3c5c; }
.mbox.win .v em { color: #6b3fa8; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-top: 1px solid rgba(255, 252, 246, .12); }
.ben { padding: 26px 24px 26px 0; border-bottom: 1px solid rgba(255, 252, 246, .12); }
.ben:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid rgba(255, 252, 246, .12); }
.ben .bi { width: 38px; height: 38px; border-radius: 11px; background: rgba(236, 220, 251, .14); color: #ecdcfb; display: grid; place-items: center; }
.ben .bi svg { width: 18px; height: 18px; }
.ben h4 { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -.02em; margin: 16px 0 6px; line-height: 1.15; }
.ben p { font-size: 14px; color: rgba(255, 252, 246, .65); }
.ben code { font-family: var(--mono); font-size: 12px; background: rgba(255, 252, 246, .1); padding: 1px 6px; border-radius: 5px; color: #fffcf6; }
.offer { margin-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: #fffcf6; color: #1f1813; border-radius: 26px; padding: 26px 28px; }
.offer .ot { display: flex; align-items: center; gap: 18px; }
.offer .badge { flex: none; width: 76px; height: 76px; border-radius: 22px; background: #ecdcfb; display: grid; place-items: center; text-align: center; line-height: 1; }
.offer .badge b { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -.04em; display: block; color: #5b3d86; }
.offer .badge span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #5b3d86; }
.offer h3 { font-size: clamp(22px, 2.4vw, 30px); color: #1f1813; }
.offer h3 em { color: #52634d; }
.offer p { font-size: 14px; color: #766c60; margin-top: 4px; }
.offer code { font-family: var(--mono); font-size: 12.5px; background: #efe9dc; padding: 2px 7px; border-radius: 6px; color: #352a22; }
.btn-wispr { background: #1f1813; color: #fffcf6; height: 56px; padding: 0 26px; font-size: 15.5px; }
.btn-wispr:hover { background: #000; }
.btn-wispr .mic { width: 28px; height: 28px; border-radius: 50%; background: #ecdcfb; display: grid; place-items: center; margin-left: -8px; }
.btn-wispr .mic svg { width: 14px; height: 14px; color: #1f1813; }
.w-note { font-size: 12px; color: rgba(255, 252, 246, .45); margin-top: 14px; }
.w-note a { border-bottom: 1px solid rgba(255, 252, 246, .3); }

/* mistakes */
.mist { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.mi-item { padding: 26px 26px 28px 0; border-bottom: 1px solid var(--line); }
.mi-item:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.mi-item .x { font-family: var(--mono); font-size: 12px; color: var(--clay); }
.mi-item h4 { font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: -.025em; margin: 14px 0 8px; line-height: 1.12; color: var(--strong); }
.mi-item p { font-size: 14px; color: var(--muted); }
.mi-item .fix { margin-top: 10px; font-size: 13.5px; color: var(--accent-ink); font-weight: 550; }

/* about */
.about { display: grid; grid-template-columns: 330px 1fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.portrait { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--accent-soft); min-height: 400px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.portrait:hover img { transform: scale(1.03); }
.portrait .tag { position: absolute; left: 14px; bottom: 14px; right: 14px; background: rgba(255, 252, 246, .92); color: #352a22; backdrop-filter: blur(8px); border-radius: 14px; padding: 12px 14px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.portrait .tag b { font-size: 14px; color: #1f1813; }
.portrait .tag .small { color: #766c60; }
.portrait .tag .pill { background: #e5e9dc; color: #3e4e3a; }
.about h2 { font-size: clamp(36px, 4.4vw, 56px); margin: 14px 0 16px; }
.creds { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid var(--line); }
.creds > div { padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line); }
.creds > div:not(:nth-child(3n+1)) { padding-left: 18px; border-left: 1px solid var(--line); }
.creds .n { font-family: var(--serif); font-size: 38px; letter-spacing: -.04em; line-height: 1; color: var(--strong); }
.creds .t { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; background: var(--surface); transition: border-color .15s, transform .15s; }
.socials a:hover { border-color: var(--text); transform: translateY(-1px); }
.socials svg { width: 15px; height: 15px; }

/* final */
.final { margin-top: clamp(72px, 10vw, 130px); }
.final-card { background: #52634d; color: #fffcf6; border-radius: 32px; padding: clamp(36px, 7vw, 88px); text-align: center; position: relative; overflow: hidden; }
[data-theme="dark"] .final-card { background: #2b3628; }
.final-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(255, 252, 246, .14), transparent 70%); }
.final-card .eyebrow { color: #dfe6d6; justify-content: center; position: relative; }
.final-card .eyebrow .dot { background: #f4e7b8; box-shadow: 0 0 0 4px rgba(244, 231, 184, .25); }
.final-card h2 { font-size: clamp(42px, 6.2vw, 90px); position: relative; letter-spacing: -.05em; margin-top: 18px; color: #fffcf6; }
.final-card h2 em { color: #f4e7b8; }
.final-card p { max-width: 58ch; margin: 22px auto 0; color: rgba(255, 252, 246, .82); font-size: 17px; position: relative; }
.final-card .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; position: relative; }
.final-card .btn-ghost { color: #fffcf6; border-color: rgba(255, 252, 246, .35); background: transparent; }
.final-card .btn-ghost:hover { border-color: #fffcf6; background: rgba(255, 252, 246, .08); }

footer { padding: 56px 0 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot p { font-size: 14px; color: var(--muted); max-width: 46ch; margin-top: 14px; }
.foot h5 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.foot ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.foot ul a:hover { color: var(--accent); }
.copyline { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.copyline em { font-family: var(--serif); font-size: 15px; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  .hero h1 .under path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--strong); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: all .25s; z-index: 300; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(5, minmax(210px, 1fr)); overflow-x: auto; }
  .grid, .tasks { grid-template-columns: repeat(2, 1fr); }
  .science { grid-template-columns: 1fr 1fr; }
  .science .sci.lil { grid-column: 1 / -1; }
  .math { grid-template-columns: 1fr 1fr; }
  .math .win { grid-column: 1 / -1; }
  .hdr nav a.nl { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .sec-head, .about, .w-head, .w-grid, .foot { grid-template-columns: 1fr; }
  .sec-head .lede { justify-self: start; }
  .stage { min-height: 500px; max-width: 540px; }
  .portrait { min-height: 0; aspect-ratio: 4/3.6; }
  .benefits, .mist { grid-template-columns: 1fr 1fr; }
  .ben:not(:nth-child(3n+1)), .mi-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .ben:nth-child(2n) { padding-left: 24px; border-left: 1px solid rgba(255, 252, 246, .12); }
  .mi-item:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .offer { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hdr { height: 64px; gap: 10px; }
  .wordmark span { display: none; }
  .wordmark img { width: 36px; height: 36px; }
  .wispr-chip { padding: 0 12px; gap: 8px; font-size: 12px; height: 34px; }
  .wispr-chip .wlogo { height: 12px; }
  .wispr-chip .wsep, .wispr-chip .tx { display: none; }
  .theme { width: 34px; height: 34px; }
  .hdr nav { gap: 8px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div:nth-child(3) { border-left: 0; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .strip > div { padding: 18px 14px; flex-direction: column; gap: 6px; }
  .creds { grid-template-columns: 1fr 1fr; }
  .creds > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .creds > div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .grid, .tasks, .science, .math, .benefits, .mist { grid-template-columns: 1fr; }
  .ben:nth-child(2n), .mi-item:nth-child(2n) { padding-left: 0; border-left: 0; }
  .ben, .mi-item { padding-right: 0; }
  .stage { min-height: 480px; }
  .src-ghost.g1 { display: none; }
  .src-ghost.g2 { top: 0; right: 0; }
  .finder { top: 52px; right: 10px; }
  .stat-card { width: 200px; }
  .stat-card .v { font-size: 36px; }
  .search, .search input { width: 100%; }
  .fnkey { display: none; }
  .nudge .go { display: none; }
  .byline { border-radius: 22px; }
  .byline .pill { display: none; }
  .offer .ot { flex-direction: column; align-items: flex-start; }
  .btn-wispr { width: 100%; justify-content: center; }
}
.hero-grid > *, .about > *, .w-head > *, .w-grid > *, .sec-head > * { min-width: 0; }
