/* ═══════════════════════════════════════════════════════════════════════════
   Toshan Khulbe — generated.
   Warm white, ink, eight tokenizer pastels and one lime for "active".
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #FAFAF7;
  --panel: #F1F0EB;
  --panel-2: #E9E8E1;
  --ink: #111113;
  --ink-2: #4B4B53;
  --ink-3: #8F8F98;
  --line: rgba(17, 17, 19, .1);
  --line-2: rgba(17, 17, 19, .18);
  --lime: #D7FF3D;
  --lime-soft: #E6FF8F;
  --t1: #FFD8C6; /* peach */
  --t2: #CFE5FF; /* sky */
  --t3: #D6F3DC; /* mint */
  --t4: #E7DCFF; /* lilac */
  --t5: #FFF0B0; /* butter */
  --t6: #FFD6E4; /* rose */
  --t7: #CDEFEA; /* aqua */
  --t8: #EFE3D0; /* sand */
  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(20px, 5.4vw, 88px);
  --max: 1360px;
  --nav: 64px;
  --ease: cubic-bezier(.16, .84, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.55; font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
img, svg, canvas { display: block; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skiplink { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skiplink:focus { top: 12px; }
.mono { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: .02em; font-weight: 500; }

/* ═══ ambient: section light, a lattice of token slots, grain ═══ */
@property --a1 { syntax: '<color>'; inherits: true; initial-value: #E7DCFF; }
@property --a2 { syntax: '<color>'; inherits: true; initial-value: #CFE5FF; }
@property --a3 { syntax: '<color>'; inherits: true; initial-value: #FFD8C6; }
.amb { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; transition: --a1 1.8s ease, --a2 1.8s ease, --a3 1.8s ease; }
.amb__b { position: absolute; border-radius: 50%; opacity: .62; will-change: transform; transition: opacity 1.2s ease; }
.amb__b--1 { width: 76vmax; height: 76vmax; left: -26vmax; top: -34vmax; background: radial-gradient(closest-side, var(--a1), transparent); animation: amb1 46s ease-in-out infinite alternate; }
.amb__b--2 { width: 66vmax; height: 66vmax; right: -28vmax; top: 14vh; background: radial-gradient(closest-side, var(--a2), transparent); animation: amb2 58s ease-in-out infinite alternate; }
.amb__b--3 { width: 82vmax; height: 82vmax; left: 6vw; bottom: -56vmax; background: radial-gradient(closest-side, var(--a3), transparent); animation: amb3 64s ease-in-out infinite alternate; }
@keyframes amb1 { to { transform: translate(20vmax, 16vmax) scale(1.15); } }
@keyframes amb2 { to { transform: translate(-22vmax, 12vmax) scale(.88); } }
@keyframes amb3 { to { transform: translate(-16vmax, -14vmax) scale(1.12); } }
.amb__lat { position: absolute; inset: 0; width: 100%; height: 100%; }
.amb__grain { position: absolute; inset: 0; background-size: 160px 160px; }
html.is-hot .amb__b { opacity: .95; }

/* ═══ tokens: the page's one special effect, used everywhere ═══ */
.tk { position: relative; z-index: 0; white-space: pre; }
.tk::before {
  content: ""; position: absolute; z-index: -1; left: -0.02em; right: -0.02em; top: 0.1em; bottom: 0.02em;
  border-radius: 0.13em; background: var(--c, var(--t2)); opacity: 0; transform: scaleY(.55);
  transition: opacity .28s var(--ease), transform .45s var(--spring);
}
.tk::after {
  content: attr(data-id); position: absolute; left: 0; bottom: 100%; margin-bottom: 0.08em;
  font: 500 clamp(8px, .11em, 11px)/1 var(--mono); letter-spacing: 0; color: var(--ink-3); white-space: nowrap;
  opacity: 0; transform: translateY(3px); transition: opacity .2s, transform .3s var(--ease);
}
.tk.on::before { opacity: 1; transform: none; }
.tk.on.id::after { opacity: 1; transform: none; }
html.js [data-tok]:not(.is-done) .tk:not(.in) { opacity: 0; }
.tk.in { opacity: 1; transition: opacity .12s; }
.tk.hot::before { background: var(--lime); }
.w { transition: opacity .18s; }
html.js [data-stream]:not(.is-done) .w:not(.in) { opacity: 0; }
.caret { display: inline-block; width: .5em; height: 1.05em; margin-left: 2px; vertical-align: -0.16em; background: var(--ink); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ═══ nav ═══ */
.nav {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: var(--nav);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad);
  transition: background-color .3s, box-shadow .3s;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav__name { justify-self: start; font-weight: 650; font-size: 17px; letter-spacing: -.02em; font-variation-settings: "opsz" 24; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { padding: 7px 12px; border-radius: 999px; font: 500 13px/1 var(--mono); color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav__links a:hover { background: var(--panel); color: var(--ink); }
.nav__links a.is-on { background: var(--ink); color: #fff; }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 18px; }
.ctx, .temp { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.ctx b, .temp b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ctx b { min-width: 5.4ch; text-align: right; }
.ctx__bar, .temp__bar { position: relative; width: 46px; height: 5px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.ctx__bar i, .temp__bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--ink); border-radius: 3px; }
.snd { display: flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3); font-size: 11.5px; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.snd:hover { background: var(--panel); color: var(--ink); }
.snd__eq { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.snd__eq i { width: 2px; border-radius: 1px; background: currentColor; }
.snd__eq i:nth-child(1) { height: 4px; } .snd__eq i:nth-child(2) { height: 7px; } .snd__eq i:nth-child(3) { height: 5px; } .snd__eq i:nth-child(4) { height: 8px; }
.snd.is-on { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.snd.is-on .snd__eq i { animation: eq 1s ease-in-out infinite; }
.snd.is-on .snd__eq i:nth-child(2) { animation-delay: -.35s; } .snd.is-on .snd__eq i:nth-child(3) { animation-delay: -.7s; } .snd.is-on .snd__eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.temp { padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s; }
.temp:hover { background: var(--panel); }
.temp__bar i { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
html.is-hot .temp { background: var(--lime); color: var(--ink); box-shadow: none; }
/* until it's been tried, the dial breathes now and then */
.temp.is-new { animation: tempnudge 3.4s ease-in-out 2.2s infinite; }
@keyframes tempnudge { 0%, 64%, 100% { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 0 rgba(215, 255, 61, 0); } 80% { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 7px rgba(215, 255, 61, .6); } }
/* the note under the dial: a one-time hint, a hover peek, and what each setting does */
.tbub { position: fixed; z-index: 70; top: 0; right: 0; max-width: min(320px, calc(100vw - 24px)); padding: 12px 14px 13px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.55; box-shadow: 0 18px 40px -18px rgba(17, 17, 19, .6); opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: calc(100% - var(--ax, 40px)) 0; pointer-events: none; transition: opacity .22s var(--ease), transform .4s var(--spring); }
.tbub.is-on { opacity: 1; transform: none; pointer-events: auto; }
.tbub.is-peek { pointer-events: none; }
.tbub::before { content: ""; position: absolute; top: -5px; right: calc(var(--ax, 40px) - 6px); width: 12px; height: 12px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.tbub b { display: block; margin-bottom: 2px; color: var(--lime); font-weight: 700; }
.tbub span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .7); }
.tbub__row { display: flex; gap: 8px; margin-top: 11px; }
.tbub__go, .tbub__x { padding: 7px 12px; border-radius: 999px; font: 600 12px/1 var(--mono); }
.tbub__go { background: var(--lime); color: var(--ink); }
.tbub__go:hover { background: #fff; }
.tbub__x { color: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.tbub__x:hover { box-shadow: inset 0 0 0 1px #fff; }

/* ═══ buttons + chips ═══ */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; overflow: hidden; isolation: isolate; transition: color .25s, box-shadow .25s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime); transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit; }
.btn:hover::before { transform: none; }
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { color: var(--ink); }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; background: var(--panel); color: var(--ink); font-weight: 600; }
.chip--lime { background: var(--lime); }

/* ═══ HERO ═══ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav) + 6vh) var(--pad) 40px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.cloud { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__body { position: relative; z-index: 1; max-width: 980px; }
.hero__kick { display: flex; align-items: center; gap: 8px; color: var(--ink-3); margin-bottom: 26px; }
.hero__kick .caret { width: 7px; height: 13px; vertical-align: 0; margin: 0; }
.hero__name { font-weight: 720; font-size: clamp(76px, 13.4vw, 232px); line-height: .84; letter-spacing: -.055em; font-variation-settings: "opsz" 96; margin-left: -0.04em; }
.hero__name .hn { display: block; }
.hero__comp { margin-top: 30px; min-height: 1.3em; font-weight: 500; font-size: clamp(24px, 2.8vw, 44px); line-height: 1.18; letter-spacing: -.025em; font-variation-settings: "opsz" 40; }
.comp__done { color: var(--ink); }
.comp__done mark { background: var(--lime); color: inherit; padding: 0 .06em; border-radius: .08em; }
.comp__ghost { color: #A9A9B0; }
.comp__tab { display: inline-flex; align-items: center; margin-left: 10px; padding: 3px 8px 4px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2), 0 2px 0 var(--line-2); font: 600 12px/1 var(--mono); color: var(--ink-3); vertical-align: .4em; transition: transform .12s, box-shadow .12s, background-color .12s; }
.comp__tab.is-down { transform: translateY(2px); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--lime); color: var(--ink); }
.hero__lede { margin-top: 30px; max-width: 34em; font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); }
.hero__cta { display: flex; gap: 12px; margin-top: 30px; }
.hero__meta { position: absolute; z-index: 1; right: var(--pad); bottom: 40px; display: grid; gap: 4px; min-width: 260px; padding-top: 12px; border-top: 1.5px solid var(--ink); }
.hero__meta div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.hero__meta dt { color: var(--ink-3); }
html.js .hero__kick, html.js .hero__comp, html.js .hero__lede, html.js .hero__cta, html.js .hero__meta { opacity: 0; transform: translateY(10px); }
html.is-live .hero__kick, html.is-live .hero__comp, html.is-live .hero__lede, html.is-live .hero__cta, html.is-live .hero__meta { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.is-live .hero__lede { transition-delay: .15s; }
html.is-live .hero__cta { transition-delay: .25s; }
html.is-live .hero__meta { transition-delay: .35s; }
html.js .hero__kick { opacity: 1; transform: none; }
html.skip .hero *, html.skip .hero { transition: none !important; }
html.js .hero__name:not(.is-wrapped) { opacity: 0; }
html.js .hero__name:not(.is-done) .tk:not(.in) { opacity: 0; }
.tk.land, .tk.land::before, .tk.land::after { transition: none !important; }
.hero__name .tk::before { top: .15em; bottom: .13em; border-radius: .1em; }
.hero__kick .caret.is-idle { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(17, 17, 19, .25); animation: none; }
.caret--bar { width: 2px; height: 1em; margin: 0 1px 0 2px; vertical-align: -0.14em; }
.comp__done mark { transition: background-color 1.4s ease .5s; }
.comp__done mark.is-set { background: transparent; }
.comp__tab { cursor: pointer; user-select: none; }

/* ═══ sections ═══ */
.sec { position: relative; padding: 20vh var(--pad) 16vh; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; }
.kick { color: var(--ink-3); margin-bottom: 24px; }
.h2 { font-weight: 700; font-size: clamp(42px, 5.8vw, 100px); line-height: .96; letter-spacing: -.045em; font-variation-settings: "opsz" 96; max-width: 16ch; text-wrap: balance; }
.h2--sm { font-size: clamp(36px, 4.2vw, 72px); }
.h2--xl { font-size: clamp(52px, 9vw, 160px); max-width: none; }
.lede { max-width: 34em; margin-top: 28px; font-size: clamp(17px, 1.3vw, 20.5px); color: var(--ink-2); }
.sec__head { margin-bottom: 10vh; }
.sec__head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6vw; align-items: end; }
.sec__head--split .lede { margin-top: 0; padding-bottom: 8px; }

/* approach + coverage */
.whole { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 5vw; align-items: center; }
.cover__stage { position: relative; aspect-ratio: 5 / 4; }
.cover__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover__cap { margin-top: 12px; color: var(--ink-3); }

/* projects */
.proj { padding: 7vh 0 12vh; border-top: 1px solid var(--line); }
.proj__no { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--ink-3); }
.proj__no b { color: var(--ink); font-weight: 700; }
.proj__t { margin-top: 18px; font-weight: 700; font-size: clamp(34px, 4.2vw, 68px); line-height: 1; letter-spacing: -.04em; font-variation-settings: "opsz" 72; max-width: 20ch; text-wrap: balance; }
.io { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 20px; color: var(--ink-2); font-size: 12.5px; }
.io__k { padding: 2px 8px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.io__arrow { color: var(--ink-3); }
.demo { position: relative; margin-top: 34px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.demo__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 11.5px; }
.demo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(17, 17, 19, .06); }
.demo__r { margin-left: auto; }
.demo__cv { display: block; width: 100%; aspect-ratio: 16 / 8.2; }
.proj__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4vw; margin-top: 34px; align-items: start; }
.proj__sum { font-size: clamp(17px, 1.25vw, 20px); color: var(--ink-2); }
.proj__ul { display: grid; gap: 10px; }
.proj__ul li { position: relative; padding-left: 22px; font-size: 16px; color: var(--ink-2); }
.proj__ul li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--t2); }
.proj__ul li:nth-child(2)::before { background: var(--t3); }
.proj__ul li:nth-child(3)::before { background: var(--t1); }
.proj__body .stack, .proj__body .gh { grid-column: 2; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.stack span { padding: 4px 9px; border-radius: 6px; background: var(--c, var(--t2)); font-size: 11.5px; color: var(--ink); }
.stack span:nth-child(8n+1) { --c: var(--t1); } .stack span:nth-child(8n+2) { --c: var(--t2); } .stack span:nth-child(8n+3) { --c: var(--t3); } .stack span:nth-child(8n+4) { --c: var(--t4); }
.stack span:nth-child(8n+5) { --c: var(--t5); } .stack span:nth-child(8n+6) { --c: var(--t6); } .stack span:nth-child(8n+7) { --c: var(--t7); } .stack span:nth-child(8n+8) { --c: var(--t8); }
.gh { display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; padding-bottom: 2px; border-bottom: 1.5px solid var(--ink); font-size: 12.5px; justify-self: start; }
.gh i { font-style: normal; transition: transform .35s var(--ease); }
.gh:hover i { transform: translate(2px, -2px); }

/* the reel: on a desktop the projects share one pinned frame and change as you scroll (reel.js).
   Inactive ones stay in the document for screen readers; they just aren't drawn or clickable. */
.reel__rail { display: none; }
.reel.is-pinned { height: calc(var(--n) * var(--seg, 90vh) + 100vh - var(--nav)); }
.reel.is-pinned .reel__stage { position: sticky; top: var(--nav); height: calc(100vh - var(--nav)); display: flex; flex-direction: column; padding: 2.2vh 0 3.2vh; }
.reel.is-pinned .reel__rail { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; }
.reel__rail a { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 2px 4px; border-top: 1.5px solid var(--line-2); color: var(--ink-3); font-size: 12px; white-space: nowrap; transition: color .3s; }
.reel__rail a b { flex: none; padding: 1px 6px; border-radius: 5px; color: inherit; font-weight: 700; transition: background-color .3s, color .3s; }
.reel__rail a span { overflow: hidden; text-overflow: ellipsis; }
.reel__rail a i { position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.reel__rail a:hover, .reel__rail a.is-on { color: var(--ink); }
.reel__rail a.is-on b { background: var(--lime); }
.reel.is-pinned .reel__frames { position: relative; flex: 1; min-height: 0; display: grid; margin-top: 2.6vh; }
.reel.is-pinned .proj {
  grid-area: 1 / 1; min-height: 0; padding: 0; border: 0;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); column-gap: 3.6vw; align-content: center;
  grid-template-areas: "head demo" "sum demo" "ul demo" ". foot"; grid-template-rows: auto auto auto auto;
  opacity: 0; transform: translateY(6vh); pointer-events: none;
  transition: opacity .35s var(--ease), transform .7s var(--ease);
}
.reel.is-pinned .proj.is-past { transform: translateY(-6vh); }
.reel.is-pinned .proj.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .55s var(--ease) .1s, transform .85s var(--ease) .05s; }
.reel.is-pinned .proj__head { grid-area: head; }
.reel.is-pinned .proj__t { margin-top: 14px; font-size: clamp(30px, min(3.3vw, 5.7vh), 58px); max-width: 17ch; }
.reel.is-pinned .io { margin-top: 14px; font-size: 12px; }
.reel.is-pinned .proj__body { display: contents; }
.reel.is-pinned .proj__sum { grid-area: sum; margin-top: 2.4vh; font-size: clamp(15px, min(1.12vw, 2.05vh), 19px); line-height: 1.5; }
.reel.is-pinned .proj__ul { grid-area: ul; align-self: start; gap: 8px; margin-top: 2.2vh; }
.reel.is-pinned .proj__ul li { font-size: clamp(14px, min(1vw, 1.85vh), 16px); line-height: 1.5; }
.reel.is-pinned .demo { grid-area: demo; align-self: center; margin-top: 0; }
.reel.is-pinned .demo__cv { aspect-ratio: 16 / 10.4; }
.reel.is-pinned .stack { grid-area: foot; align-self: start; margin-top: 16px; padding-right: 160px; }
.reel.is-pinned .gh { grid-area: foot; align-self: start; justify-self: end; margin-top: 16px; }
/* inside the frame, the pieces of the incoming project land one after another */
.reel.is-pinned .proj .demo, .reel.is-pinned .proj .proj__sum, .reel.is-pinned .proj .proj__ul { opacity: 0; transform: translateY(14px); transition: opacity .3s var(--ease), transform .5s var(--ease); }
.reel.is-pinned .proj.is-on .demo { opacity: 1; transform: none; transition: opacity .6s var(--ease) .18s, transform .8s var(--ease) .14s; }
.reel.is-pinned .proj.is-on .proj__sum { opacity: 1; transform: none; transition: opacity .6s var(--ease) .26s, transform .8s var(--ease) .22s; }
.reel.is-pinned .proj.is-on .proj__ul { opacity: 1; transform: none; transition: opacity .6s var(--ease) .34s, transform .8s var(--ease) .3s; }

/* experience */
.flow { margin: 0 0 9vh; }
.flow__stage { position: relative; height: clamp(260px, 27vw, 380px); }
.flow__cv { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.flow__tip, .map__tip { position: absolute; left: 0; top: 0; pointer-events: none; padding: 8px 11px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 11px; line-height: 1.5; opacity: 0; transition: opacity .15s; max-width: 320px; z-index: 2; }
.flow__tip.is-on, .map__tip.is-on { opacity: 1; }
.roles { border-top: 1.5px solid var(--ink); }
.role { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.8fr); gap: 4vw; padding: 26px 0 30px; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.role:hover { background: linear-gradient(90deg, transparent, rgba(215, 255, 61, .18) 40%, transparent); }
.role__when { color: var(--ink-3); padding-top: 8px; }
.role__org { font-weight: 700; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.05; letter-spacing: -.03em; font-variation-settings: "opsz" 48; }
.role__t { margin-top: 8px; color: var(--ink-3); }
.role__d { margin-top: 12px; max-width: 46em; font-size: 16.5px; color: var(--ink-2); }

/* skills */
.map__stage { position: relative; height: clamp(440px, 46vw, 640px); }
.map__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.skill-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3vw; margin-top: 7vh; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.skill-list h3 { color: var(--ink-3); margin-bottom: 10px; font-weight: 500; }
.skill-list p { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; }

/* credentials */
.creds__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5vw; }
.creds__k { color: var(--ink-3); padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); font-weight: 500; }
.list li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
.list li::before { content: ""; position: absolute; left: -18px; top: 26px; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); transform: scale(0); transition: transform .3s var(--spring); }
.list li:hover::before { transform: none; }
.list__t { font-weight: 620; font-size: 19px; letter-spacing: -.015em; line-height: 1.25; }
.list__m { color: var(--ink-3); }

/* contact */
.contact { padding-bottom: 0; }
.prompt { position: relative; margin-top: 7vh; padding: 22px 24px 16px; border-radius: 22px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line), 0 30px 60px -40px rgba(17, 17, 19, .35); transition: box-shadow .3s; }
.prompt:focus-within { box-shadow: 0 0 0 2px var(--ink), 0 30px 60px -40px rgba(17, 17, 19, .35); }
.prompt textarea { width: 100%; border: 0; outline: 0; resize: none; background: none; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.25; letter-spacing: -.02em; min-height: 2.6em; font-variation-settings: "opsz" 36; }
.prompt textarea::placeholder { color: #B4B4BA; }
.prompt__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.prompt__hint { color: var(--ink-3); }
.prompt__count { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.prompt.is-nudge { animation: nudge .4s var(--ease); }
@keyframes nudge { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
.copy.is-done { background: var(--lime); box-shadow: none; }
.tk.swap:empty::before { display: none; }
.contact__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 28px; margin-top: 8vh; }
.mail { font-weight: 700; font-size: clamp(30px, 4.4vw, 72px); letter-spacing: -.04em; line-height: 1; border-bottom: 2px solid var(--ink); padding-bottom: 6px; font-variation-settings: "opsz" 72; }
.mail:hover { background: var(--lime); }
.copy { padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 12px; }
.copy:hover { background: var(--lime); }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 13px; }
.links a { padding-bottom: 2px; border-bottom: 1px solid var(--line-2); }
.links a:hover { border-color: var(--ink); }
/* the sign-off: a counted thank-you, the name as a closing wordmark, a way back up */
.signoff { margin-top: 18vh; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.signoff__line { color: var(--ink-3); }
.signoff__line b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.signoff__name { width: max-content; margin: 5vh 0 3.4vh -0.045em; font-weight: 720; font-size: 15vw; line-height: .84; letter-spacing: -.055em; font-variation-settings: "opsz" 96; white-space: nowrap; }
.signoff__name .tk::before { top: .15em; bottom: .13em; border-radius: .1em; }
.signoff__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; color: var(--ink-3); }
.signoff__top { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); transition: background-color .25s; }
.signoff__top:hover { background: var(--lime); }
.signoff__top i { font-style: normal; transition: transform .35s var(--ease); }
.signoff__top:hover i { transform: translateY(-3px); }
.foot { display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; margin-top: 4vh; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--ink-3); }

/* temperature: the page improvises (headings only; body copy stays put) */
.tk.swap { color: var(--ink); }
.tk.swap::before { background: var(--t6) !important; opacity: 1 !important; transform: none !important; }

/* ═══ responsive ═══ */
/* narrower desktops: the right side of the nav gives up its words before it touches the links */
@media (max-width: 1380px) { .snd__t { display: none; } .snd { padding: 6px 9px; } .nav__end { gap: 12px; } }
@media (max-width: 1200px) { .ctx span:last-of-type { display: none; } }
@media (max-width: 1080px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .whole { grid-template-columns: 1fr; }
  .sec__head--split { grid-template-columns: 1fr; gap: 20px; }
  .proj__body { grid-template-columns: 1fr; gap: 22px; }
  .proj__body .stack, .proj__body .gh { grid-column: 1; }
  .creds__grid { grid-template-columns: 1fr; gap: 9vh; }
  .hero__meta { position: relative; right: auto; bottom: auto; margin-top: 44px; max-width: 360px; }
  .skill-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --nav: 58px; }
  body { font-size: 17px; }
  .ctx { display: none; }
  .snd__t { display: none; }
  .nav__end { gap: 10px; }
  .sec { padding: 14vh var(--pad) 11vh; }
  .hero { justify-content: flex-start; padding-top: calc(var(--nav) + 16vh); }
  .hero__comp { font-size: 23px; }
  .comp__tab { display: none; }
  .demo__cv { aspect-ratio: 3 / 4.2; }
  .cover__stage { aspect-ratio: 4 / 5; }
  .demo__r { display: none; }
  .role { grid-template-columns: 1fr; gap: 6px; }
  .role__when { padding-top: 0; }
  .map__stage { height: 560px; }
  .links { margin-left: 0; }
  .prompt__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
