/* akshay bose site kit: shared by the work portfolios (job project) and the personal website.
   Design only; no content. Ideas taken from mprogano.com (layout, background, FAQ, logo strip), taewoongseo.com
   (signature monogram, big cover cards), jaimec.co (pill nav, sticky-note contact, ID card, toolkit tray,
   blur-rise intro), leerob.com (bio tabs, side art) and stream.thesephist.com (stream). Our own code. */
:root {
  --bg: #eef0f4; --surface: #f8f9fb; --raised: #ffffff; --ink: #17181c; --muted: #5d6170; --faint: #8b8f9c;
  --line: #dcdfe6; --accent: #4a63c9; --accent-soft: #e2e7f8; --note: #f6d34a; --note-ink: #2a2304;
  --shadow: 0 1px 2px rgba(20,22,30,.05), 0 8px 28px rgba(20,22,30,.06);
  --serif: "Newsreader", Georgia, serif; --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --r: 18px; --max: 1120px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121318; --surface: #1a1c22; --raised: #20232a; --ink: #eceef3; --muted: #a3a7b4; --faint: #7d8190;
  --line: #2d3039; --accent: #8fa3f0; --accent-soft: #252c45; --note: #e9c53c; --note-ink: #221c02;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25); } }
:root[data-theme="dark"] {
  --bg: #121318; --surface: #1a1c22; --raised: #20232a; --ink: #eceef3; --muted: #a3a7b4; --faint: #7d8190;
  --line: #2d3039; --accent: #8fa3f0; --accent-soft: #252c45; --note: #e9c53c; --note-ink: #221c02;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25); }
/* personal website: warmer paper, terracotta accent */
.personal { --bg: #f5f1ea; --surface: #fbf8f3; --raised: #fffdf9; --line: #e4ddd1; --accent: #b4532a; --accent-soft: #f4e3d8; --muted: #6a6359; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .personal {
  --bg: #17140f; --surface: #1f1b15; --raised: #26211a; --line: #362f26; --accent: #e8926a; --accent-soft: #3a261c; --muted: #aaa194; } }
:root[data-theme="dark"] .personal { --bg: #17140f; --surface: #1f1b15; --raised: #26211a; --line: #362f26; --accent: #e8926a; --accent-soft: #3a261c; --muted: #aaa194; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
/* No text-editor cursor or caret on pages (akshay 31 Oct 2026, rule for everything we build): arrow over text,
   hand on anything clickable, I-beam and caret only where you can type. Text can still be selected and copied. */
html, body { cursor: default; caret-color: transparent; }
a, button, summary, label, select, [role="button"], [data-contact], [data-about], .work-card, .chip { cursor: pointer; }
input, textarea, [contenteditable="true"] { cursor: text; caret-color: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; background-attachment: fixed; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 600px at 15% -10%, var(--accent-soft), transparent 60%), linear-gradient(var(--bg) 0, transparent 40%, transparent 70%, var(--bg)); opacity: .9; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.ribbon { background: var(--ink); color: var(--bg); font-size: 13px; text-align: center; padding: 6px 16px; position: relative; z-index: 30; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* top panel: monogram left, floating pill nav centre, sticky note right */
.top { position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg) 55%, color-mix(in srgb, var(--bg) 0%, transparent)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.logo svg { width: 46px; height: 46px; color: var(--ink); transition: transform .4s cubic-bezier(.2,.8,.2,1.2); }
.logo:hover svg { transform: rotate(-8deg) scale(1.05); }
.logo span { font-weight: 600; font-size: 15px; }
.pill { display: flex; gap: 2px; align-items: center; background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.pill a, .pill button { font: 500 14.5px var(--sans); color: var(--muted); text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer; }
.pill a:hover, .pill button:hover, .pill a.on { color: var(--ink); background: var(--raised); }
.pill .theme { padding: 6px 10px; }

/* contact note, jaimec.co pattern: one tilted note parked past the top-right corner, only the "Contact" corner in view;
   click and it swings down into the corner. */
.note-wrap { justify-self: end; width: 110px; }
.card-contact { position: fixed; top: 0; right: 0; z-index: 50; width: 300px; background: var(--note); color: var(--note-ink);
  border-radius: 14px; padding: 20px 20px 14px; display: flex; flex-direction: column; box-shadow: 0 0 22px -10px rgba(0,0,0,.45);
  transform-origin: 0 100%; transform: translate(calc(100% - 128px), calc(-100% + 54px)) rotate(-9deg);
  transition: transform .55s cubic-bezier(.25,1.25,.4,1); cursor: pointer; }
.card-contact:hover { transform: translate(calc(100% - 134px), calc(-100% + 60px)) rotate(-7deg); }
.card-contact .inner { opacity: 0; transition: opacity .2s; }
.card-contact .note-label { order: 2; align-self: flex-start; font: 500 15px var(--sans); color: inherit; opacity: .75; background: none;
  border: 0; padding: 14px 0 0; cursor: pointer; }
.contact-open .card-contact { transform: translate(-24px, 24px) rotate(0deg); cursor: default; box-shadow: 0 18px 40px rgba(60,45,0,.25); }
.contact-open .card-contact .inner { opacity: 1; transition-delay: .12s; }
.card-contact .close { opacity: 0; pointer-events: none; }
.contact-open .card-contact .close { opacity: 1; pointer-events: auto; }
.card-contact .who { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; overflow: hidden; }
.avatar svg { width: 80%; height: 80%; }
.card-contact .who b { display: block; font-size: 16px; }
.card-contact .who span { font-size: 13px; opacity: .75; }
.card-contact p { margin: 0 0 6px; font-size: 13px; opacity: .75; }
.card-contact ul { list-style: none; margin: 0; padding: 0; }
.card-contact li a { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(0,0,0,.12); text-decoration: none; font-weight: 500; }
.card-contact li a:hover { text-decoration: underline; }
.card-contact .close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 18px; cursor: pointer; color: inherit; }

/* hero (mprogano.com layout) with blur-rise intro (jaimec.co) */
.hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: end; padding-top: 64px; padding-bottom: 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 6px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; line-height: 1.02; }
.hero h1 em { color: var(--muted); }
.intro { font-size: 18.5px; color: var(--muted); max-width: 620px; margin: 24px 0 0; }
.attrs { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 640px; }
.attrs li { font-size: 16px; color: var(--muted); }
.attrs b { color: var(--ink); font-weight: 600; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.btn { font: 600 15px var(--sans); display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--raised); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.portrait { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4/5; background: var(--accent-soft); box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.portrait .ph svg { width: 46%; }
.rise { opacity: 0; filter: blur(10px); transform: translateY(16px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
@keyframes rise { to { opacity: 1; filter: blur(0); transform: none; } }

/* sections */
.sec { padding-top: 72px; padding-bottom: 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.kicker { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; margin: 0 0 6px; }
.sec h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; }
.sub { color: var(--muted); margin: 10px 0 0; max-width: 640px; }

/* company strip (mprogano.com client strip -> "places I'd love to work") */
.strip { padding-top: 34px; padding-bottom: 6px; }
.strip p { text-align: center; color: var(--faint); font-size: 14px; margin: 0 0 16px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-weight: 700; font-size: 24px; color: var(--faint); white-space: nowrap; letter-spacing: -0.02em; transition: color .2s; }
.marquee span:nth-child(3n+2) { font-family: var(--serif); font-style: italic; font-weight: 500; }
.marquee span:hover { color: var(--ink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 14px var(--sans); border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chip:hover { color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* big cover cards (taewoongseo.com) */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.work-card { text-decoration: none; display: flex; flex-direction: column; }
.work-card[hidden] { display: none; }
.cover { position: relative; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cover img, .cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.cover video { opacity: 0; }
.work-card:hover .cover img { transform: scale(1.04); }
.work-card:hover .cover video.ready { opacity: 1; }
.cover .badge { position: absolute; left: 14px; top: 14px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--raised) 88%, transparent); backdrop-filter: blur(8px); padding: 4px 10px; border-radius: 999px; }
.work-card h3 { font-size: 23px; font-weight: 650; margin: 16px 0 6px; }
.work-card .line { margin: 0; color: var(--muted); }
.meta { font-size: 14px; color: var(--faint); margin: 8px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; }
.status { font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: 2px 8px; }

/* rows (earlier roles, open source list) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 20px; font-weight: 650; }
.row ul { margin: 0; padding-left: 18px; color: var(--muted); }
.row li { margin-bottom: 4px; }
.row .when { color: var(--faint); font-size: 14px; margin: 4px 0 0; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); margin: 0; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.quote blockquote::before { content: "“"; display: block; font-size: 46px; line-height: .6; color: var(--accent); margin-bottom: 8px; }
.quote figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
.quote figcaption b { color: var(--ink); display: block; }

/* toolkit tray (jaimec.co) */
.tray { display: inline-flex; flex-wrap: wrap; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px; box-shadow: var(--shadow); }
.tool { position: relative; width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff;
  background: var(--c, #333); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.12); transition: transform .25s cubic-bezier(.2,.8,.2,1.4); cursor: default; }
.tool:hover { transform: translateY(-5px) rotate(-4deg); }
.tool img { width: 62%; height: 62%; object-fit: contain; }
.tool::after { content: attr(data-name); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) scale(.9); opacity: 0; white-space: nowrap;
  background: var(--ink); color: var(--bg); font: 500 12px var(--sans); padding: 4px 8px; border-radius: 6px; pointer-events: none; transition: opacity .15s, transform .15s; }
.tool:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }

/* connect + FAQ (mprogano.com) */
.connect { background: var(--raised); border: 1px solid var(--line); border-radius: 26px; padding: 44px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.connect h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.connect .ways { display: grid; gap: 10px; }
.connect .ways a { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 600; background: var(--surface); transition: border-color .2s, transform .2s; }
.connect .ways a:hover { border-color: var(--accent); transform: translateX(4px); }
.connect .ways small { color: var(--faint); font-weight: 400; }
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i, .process summary i { font-style: normal; color: var(--accent); font-size: 26px; line-height: 1; transition: transform .3s; flex: none; }
.faq details[open] summary i, .process details[open] summary i { transform: rotate(45deg); }
.faq .a { padding: 0 40px 22px 0; color: var(--muted); }

/* case-study view */
.case { padding-top: 20px; padding-bottom: 60px; }
.case[hidden], .view[hidden] { display: none; }
.back { display: inline-flex; gap: 6px; text-decoration: none; color: var(--muted); font-size: 15px; margin: 8px 0 28px; }
.back:hover { color: var(--ink); }
.case h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; max-width: 900px; }
.case .lede { font-family: var(--serif); font-style: italic; font-size: 23px; color: var(--muted); max-width: 780px; margin: 14px 0 0; }
.case .cover { margin: 34px 0 0; aspect-ratio: 21/9; }
.cols { display: grid; grid-template-columns: 1fr 340px; gap: 52px; margin-top: 44px; }
.story h4, .side h4 { font: 700 12.5px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 6px; }
.story p { margin: 0 0 28px; max-width: 660px; font-size: 18px; }
.flag { color: #a35a00; font-size: 15px !important; border-left: 3px solid #a35a00; padding-left: 12px; }
.side { align-self: start; position: sticky; top: 90px; display: grid; gap: 18px; }
.panel { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.docs { list-style: none; margin: 8px 0 0; padding: 0; }
.docs a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.docs li:last-child a { border-bottom: 0; }
.docs a:hover .dl { color: var(--accent); text-decoration: underline; }
.k { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; min-width: 48px; text-align: center; }
.dl { flex: 1; }
.hint { color: var(--faint); font-size: 13px; margin: 12px 0 0; }
.process { margin: 8px 0 28px; }
.process details { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.process summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; font-weight: 650; font-size: 17px; }
.process summary::-webkit-details-marker { display: none; }
.process summary span small { display: block; font-weight: 400; color: var(--faint); font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 4px 22px 22px; counter-reset: s; }
.steps li { position: relative; padding: 0 0 22px 46px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; left: 15.5px; top: 36px; bottom: 4px; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: 16.5px; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }
.steps .out { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--accent); }
.process details[open] .steps li { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
.clip { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 0 0 28px; background: #000; }
.clip figcaption { background: var(--raised); font-size: 13.5px; color: var(--muted); padding: 10px 14px; }
.pn { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.pn a { text-decoration: none; color: var(--muted); max-width: 45%; }
.pn a:hover { color: var(--ink); }

/* ID card on a lanyard (jaimec.co about) */
.id-layer { position: fixed; inset: 0; z-index: 50; display: grid; justify-items: center; align-items: start; background: rgba(10,12,18,.35); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .25s; }
.id-open .id-layer { opacity: 1; pointer-events: auto; }
.lanyard { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; transform: translateY(-110%); transition: transform .8s cubic-bezier(.25,1.45,.4,1); }
.id-open .lanyard { transform: translateY(0) scale(var(--fit, 1)); }   /* --fit set by kit.js so the whole card fits the screen */
.strap { width: 26px; height: clamp(36px, 12vh, 120px); background: repeating-linear-gradient(180deg, #22252e 0 10px, #2b2f3a 10px 20px); }
.clipper { width: 22px; height: 34px; border: 4px solid #b9bdc7; border-radius: 6px 6px 12px 12px; margin-top: -4px; background: transparent; }
.idcard { width: min(440px, calc(100vw - 32px)); margin-top: -6px; background: var(--raised); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.35);
  display: grid; grid-template-columns: 30px 1fr 1fr; overflow: hidden; transform-origin: top center; animation: none; }
.id-open .idcard { animation: swing 1.6s .55s ease-out; }
@keyframes swing { 0% { transform: rotate(0); } 20% { transform: rotate(3deg); } 45% { transform: rotate(-2deg); } 70% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
.idcard .dept { writing-mode: vertical-rl; transform: rotate(180deg); background: var(--surface); border-right: 1px solid var(--line); color: var(--faint); font-size: 12px; text-align: center; padding: 10px 0; }
.idcard .face { padding: 24px 14px; text-align: center; }
.photos { position: relative; width: 104px; height: 104px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); border: 3px solid var(--raised); box-shadow: 0 0 0 1px var(--line); }
.photos > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; display: grid; place-items: center; }
.photos > .on { opacity: 1; }
.photos .ph svg { width: 70%; }
.idcard .face b { display: block; font-size: 18px; }
.idcard .face span { color: var(--muted); font-size: 14px; }
.idcard ul { list-style: none; margin: 0; padding: 22px 18px 22px 4px; display: grid; align-content: center; }
.idcard li { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.idcard li:last-child { border-bottom: 0; }
.idcard li::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 3px; border-radius: 50%; background: var(--accent); }   /* plain dot: no sparkle icon anywhere (akshay 1 Nov 2026) */
.id-below { width: min(440px, calc(100vw - 32px)); margin-top: 14px; background: var(--raised); border-radius: 16px; padding: 18px 20px; font-size: 15px; color: var(--muted);
  box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity .4s .7s, transform .4s .7s; }
.id-open .id-below { opacity: 1; transform: none; }
.id-below p { margin: 0 0 10px; }
.id-below .tray { box-shadow: none; }
.id-close { position: absolute; top: 18px; right: 22px; background: var(--raised); border: 1px solid var(--line); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; font-size: 18px; cursor: pointer; }

/* stream (personal site) */
.stream { max-width: 720px; }
.entry { position: relative; padding: 22px 0 22px 26px; border-left: 2px solid var(--line); }
.entry::before { content: ""; position: absolute; left: -7px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.entry time { font-size: 13.5px; color: var(--faint); }
.entry .kind { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 7px; margin-left: 8px; }
.entry .body { font-size: 18px; margin-top: 6px; }
.empty { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 30px; color: var(--muted); text-align: center; }
.empty b { color: var(--ink); display: block; font-size: 19px; margin-bottom: 6px; }
.bio-tabs { display: inline-flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 14px; }
.bio-tabs button { font: 500 14px var(--sans); background: none; border: 0; padding: 6px 2px; margin-right: 16px; color: var(--faint); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.bio-tabs button.on { color: var(--ink); border-color: var(--ink); }
.bio [hidden] { display: none; }
.art { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 3/4; }
.art img { width: 100%; height: 100%; object-fit: cover; }

footer { border-top: 1px solid var(--line); margin-top: 80px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 18px; }
.colophon p { max-width: 680px; font-size: 18px; }
.colophon h3 { font-size: 20px; margin: 30px 0 6px; }

@media (max-width: 860px) {
  .hero, .connect, .cols { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
  .grid.three, .quotes { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top { grid-template-columns: auto 1fr auto; padding: 10px 16px; gap: 8px; }
  .logo span { display: none; }
  .logo svg { width: 40px; height: 40px; }
  .pill { justify-self: center; }
  .pill a, .pill button { padding: 6px 9px; font-size: 13.5px; }
  .note-wrap { width: 84px; }
  .card-contact { width: min(300px, calc(100vw - 32px)); transform: translate(calc(100% - 104px), calc(-100% + 50px)) rotate(-9deg); }
  .card-contact:hover { transform: translate(calc(100% - 104px), calc(-100% + 50px)) rotate(-9deg); }
  .contact-open .card-contact { transform: translate(-16px, 16px) rotate(0deg); }
  .hero { padding-top: 34px; padding-bottom: 30px; gap: 30px; }
  .grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .connect { padding: 26px; }
  .faq summary { font-size: 17.5px; }
  .idcard { grid-template-columns: 26px 1fr; }
  .idcard ul { grid-column: 2; padding: 0 16px 18px; }
  .case .cover { aspect-ratio: 16/10; }
}
@media (max-width: 400px) { .pill .hide-s { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; filter: none; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .lanyard, .card-contact, .work-card .cover img { transition: none; }
  .id-open .idcard, .process details[open] .steps li { animation: none; }
}

/* "currently at" block (jaimec.co "Currently designing at ...") */
.now { display: flex; gap: 18px; align-items: center; margin: 26px 0 0; padding: 16px 18px; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); max-width: 660px; }
.now .org { flex: none; padding-right: 18px; border-right: 1px solid var(--line); }
.now .org img { height: 40px; width: auto; }
.now p { margin: 0; font-size: 15px; color: var(--muted); }
.now p b { color: var(--ink); font-weight: 600; display: block; font-size: 15.5px; }
.on-dark { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; } :root[data-theme="dark"] .on-light { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .on-dark { display: block !important; } :root:not([data-theme="light"]) .on-light { display: none !important; } }
@media (max-width: 680px) { .now { flex-direction: column; align-items: flex-start; gap: 12px; } .now .org { border-right: 0; padding-right: 0; } }

/* opinions (personal site) */
.ops { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.op { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.op:hover { transform: translateY(-3px); border-color: var(--accent); }
.op .tag { align-self: flex-start; }
.op h3 { font-size: 22px; font-weight: 650; }
.op p { margin: 0; color: var(--muted); }
.op time { font-size: 13.5px; color: var(--faint); margin-top: auto; }
.essay { max-width: 680px; margin-top: 30px; }
.essay p { font-size: 19px; line-height: 1.7; margin: 0 0 22px; }
.essay p:first-child::first-letter { font-family: var(--serif); font-style: italic; float: left; font-size: 64px; line-height: .9; padding: 6px 10px 0 0; color: var(--accent); }
@media (max-width: 680px) { .ops { grid-template-columns: 1fr; } .essay p { font-size: 17.5px; } }

/* shelf (personal site) */
.tabs { margin-top: 0; }
.shelf-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.shelf-list li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.shelf-list b { font-weight: 600; } .shelf-list a { text-decoration: none; } .shelf-list a:hover { color: var(--accent); }
.shelf-list .yr { color: var(--faint); font-size: 14px; }
.shelf-list .rec { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 7px; margin-left: 8px; }
.shelf-list p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
[data-panel][hidden] { display: none; }
@media (max-width: 680px) { .shelf-list { columns: 1; } }

.mv-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 14px; }
.mv-tools input[type=search], .mv-tools select { font: 15px var(--sans); color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.mv-tools input[type=search] { flex: 1; min-width: 180px; }
.mv-only { font-size: 14.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.mv-genres { margin-bottom: 8px; }
.mv-count { font-size: 13.5px; color: var(--faint); margin: 6px 0 0; }
.mv-meta { font-size: 13.5px; color: var(--faint); margin-top: 2px; }
.mv[hidden] { display: none; }

/* movie posters (album-art grid) */
.mv-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 18px; }
.mv b { display: block; font-size: 15px; font-weight: 600; margin-top: 10px; line-height: 1.3; }
.mv p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.poster { position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1.3); }
.mv:hover .poster { transform: translateY(-4px) rotate(-1deg); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .rec { position: absolute; left: 8px; top: 8px; margin: 0; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 6px; padding: 2px 7px; }
.ph-poster { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; background: linear-gradient(160deg, hsl(var(--h) 45% 82%), hsl(calc(var(--h) + 30) 40% 62%)); color: hsl(var(--h) 45% 18%); }
.ph-poster span { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.1; }
.ph-poster small { font-size: 12px; opacity: .7; margin-top: 4px; }
@media (max-width: 680px) { .mv-list { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }

/* personal home: three groups, the old sections inside each (akshay 31 Oct 2026) */
.group { margin-top: 56px; }
.group-head { display: flex; align-items: baseline; gap: 16px; padding-top: 22px; border-top: 2px solid var(--ink); }
.group-head .num { font: italic 400 22px var(--serif); color: var(--accent); }
.group-head h2 { margin: 0; font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.02em; }
.group-head a { margin-left: auto; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.group-head a:hover { color: var(--ink); }
.group .sec { padding-top: 44px; }
.page .sec { padding-left: 0; padding-right: 0; }
@media (max-width: 760px) { .ribbon { padding-right: 96px; text-align: left; } .group { margin-top: 36px; } .group-head { flex-wrap: wrap; gap: 6px 12px; } }

/* jaimec.co case-page patterns (akshay 31 Oct 2026) */
/* 1. mockup stage: grey panel, browser window rising from its bottom edge */
.stage { margin: 8px 0 0; background: var(--stage, #ececec); border-radius: 18px; padding: 40px 40px 0; overflow: hidden; }
:root[data-theme="dark"] .stage { --stage: #23262c; }
.stage .win { background: #fff; border-radius: 10px 10px 0 0; overflow: hidden; box-shadow: 0 0 24px -12px rgba(0,0,0,.35); }
.stage .bar { position: relative; display: flex; gap: 6px; align-items: center; height: 30px; padding: 0 12px; background: #f6f6f6; border-bottom: 1px solid #e6e6e6; }
.stage .bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .stage .bar i:nth-child(2) { background: #febc2e; } .stage .bar i:nth-child(3) { background: #28c840; }
.stage .bar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; color: #777; pointer-events: none; }
.stage .screen img, .stage .screen video { display: block; width: 100%; height: auto; }
.stage + figcaption { font-size: 13.5px; color: var(--muted); margin: 10px 2px 30px; }
@media (max-width: 760px) { .stage { padding: 18px 14px 0; border-radius: 14px; } .stage .bar { height: 22px; } .stage .bar i { width: 7px; height: 7px; } .stage .bar span { font-size: 10px; } }
/* 2. fade-up as things scroll in: 24px, 0.6s, jaimec's easing */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.12,.23,.5,1), transform .6s cubic-bezier(.12,.23,.5,1); }
.reveal.in { opacity: 1; transform: none; }
/* 3. section list pinned on the left of a case page, current section in a pill */
.toc { display: none; }
@media (min-width: 1280px) {
  .toc { display: flex; flex-direction: column; gap: 4px; position: fixed; left: 16px; top: 110px; z-index: 5; }
  .toc a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 5px 12px; border-radius: 999px; transition: background .2s, color .2s; }
  .toc a:hover { color: var(--ink); } .toc a.on { color: var(--ink); background: var(--raised); box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* document pop-up (CV): close + expand dots top left, download top right, click outside to close */
.modal { width: min(880px, calc(100vw - 32px)); max-width: none; max-height: min(92dvh, 100%); margin: auto; padding: 0; border: 0;
  border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(10,15,30,.45);
  overflow: hidden auto; overscroll-behavior: contain; transition: width .3s cubic-bezier(.2,.8,.2,1), border-radius .3s; }
.modal[open] { animation: modal-in .38s cubic-bezier(.2,.9,.25,1.12); }
.modal[data-full] { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
.modal::backdrop { background: rgba(14,18,28,.42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal[open]::backdrop { animation: fade-in .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.modal-bar { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 12px 14px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.modal .dots { display: flex; gap: 8px; }
.modal .dot { position: relative; width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  font: 700 10px/1 var(--sans); color: transparent; cursor: pointer; }
.modal .dot::before { content: ""; position: absolute; inset: -9px; }   /* a comfortable tap area round the small dot */
.modal .dot.close { background: #ff5f57; } .modal .dot.expand { background: #28c840; }
.modal .dots:hover .dot, .modal .dot:focus-visible { color: rgba(0,0,0,.55); }
.modal-title { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-dl { justify-self: end; display: inline-flex; gap: 6px; align-items: center; padding: 7px 15px; border-radius: 999px; background: var(--ink);
  color: var(--bg); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: transform .2s; }
.modal-dl:hover { transform: translateY(-1px); }
.modal-body { display: grid; gap: 18px; padding: 22px; }
.modal[data-full] .modal-body { width: min(1000px, 100%); margin: 0 auto; }
.modal-body img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 10px 30px -14px rgba(0,0,0,.3); }
html:has(.modal[open]) { overflow: hidden; }
@media (max-width: 760px) { .modal { width: calc(100vw - 20px); border-radius: 16px; } .modal-body { padding: 12px; gap: 12px; } .modal-title { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .modal[open], .modal[open]::backdrop { animation: none; } }

/* "choose your own adventure" contact tiles and the FAQ sign-off (mprogano.com idea, akshay 31 Oct 2026) */
.adv-head { margin: 0 0 12px; font: italic 400 20px var(--serif); color: var(--muted); }
.adv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.adv > a, .adv > button { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none;
  font: inherit; cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1.3), border-color .2s, box-shadow .2s; }
.adv > *:hover { transform: translateY(-3px) rotate(-.8deg); border-color: var(--accent); box-shadow: var(--shadow); }
.adv > *:nth-child(even):hover { transform: translateY(-3px) rotate(.8deg); }
.adv i { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.adv i svg { width: 18px; height: 18px; }
.connect:has(.adventure) { grid-template-columns: 1fr 1.3fr; }
.adv b { font-size: 15px; font-weight: 600; } .adv small { color: var(--faint); font-size: 13px; }
.adv .phone-reveal.shown b { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.signoff { margin-top: 48px; text-align: center; }
.signoff p { margin: 0; font: italic 400 clamp(26px, 3.4vw, 40px) var(--serif); color: var(--muted); }
.signoff a { display: inline-block; font-size: clamp(34px, 5vw, 64px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-decoration: none;
  transition: transform .3s cubic-bezier(.2,.8,.2,1.4), color .2s; }
.signoff a:hover { transform: rotate(-2deg) scale(1.03); color: var(--accent); }
@media (max-width: 760px) { .adv { grid-template-columns: 1fr; } .connect:has(.adventure) { grid-template-columns: 1fr; gap: 26px; } }

/* five strengths as a row of tiles (akshay 31 Oct 2026: not one below another); swipe row on phones */
.strengths-wrap { margin-top: -12px; }
.strengths { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.strengths li { position: relative; padding: 18px 18px 20px; background: var(--raised); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); opacity: 0; animation: tile-in .6s cubic-bezier(.12,.23,.5,1) forwards; animation-delay: calc(.35s + var(--k) * .08s);
  transition: transform .3s cubic-bezier(.2,.8,.2,1.3), border-color .2s; }
.strengths li:hover { transform: translateY(-4px); border-color: var(--accent); }
.strengths .n { display: block; font: italic 400 15px var(--serif); color: var(--accent); }
.strengths b { display: block; margin: 6px 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.strengths p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
@keyframes tile-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 1080px) { .strengths { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .strengths { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 10px; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
  .strengths::-webkit-scrollbar { display: none; }
  .strengths li { flex: 0 0 72%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .strengths li { animation: none; opacity: 1; } }

/* case story: the task line and the insight cards (akshay 31 Oct 2026) */
.case .story p.task { font: italic 400 21px/1.45 var(--serif); color: var(--ink); }
.insights { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 10px; }
.insights li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: start; padding: 14px 16px; background: var(--raised);
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; }
.insights .n { font: italic 400 16px var(--serif); color: var(--accent); padding-top: 1px; }
.insights p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink); }

/* ===== personal site, 31 Oct 2026 edits ===== */
.intro-quiet { font: italic 400 clamp(18px, 1.8vw, 22px)/1.45 var(--serif); color: var(--ink); max-width: 34ch; }

/* animated document mock: the opinion cover and the scroll story (drawn by us, no copied screens) */
.docmock { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; background: var(--accent-soft); overflow: hidden; }
.dm-bar { position: absolute; left: 8%; right: 8%; top: 9%; height: 9%; display: flex; gap: 5px; align-items: center; padding: 0 10px;
  background: #fff; border-radius: 8px 8px 0 0; box-shadow: 0 1px 0 #eee; }
.dm-bar i { width: 7px; height: 7px; border-radius: 50%; background: #e3ddd4; }
.dm-state { position: relative; margin-left: auto; height: 1.4em; font-size: 11px; }
.dm-state b { position: absolute; right: 0; white-space: nowrap; font-weight: 600; transition: opacity .4s, transform .4s; }
.dm-state .s1 { color: #b4532a; } .dm-state .s2 { color: #2f7a4f; opacity: 0; transform: translateY(6px); }
.dm-page { position: absolute; left: 8%; right: 8%; top: 18%; bottom: -4%; background: #fff; padding: 7% 8%; box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
.dm-h { height: 9%; width: 55%; background: #2a2622; border-radius: 3px; margin-bottom: 7%; opacity: .85; }
.dm-l { height: 6%; background: #ddd6cc; border-radius: 3px; margin-bottom: 5%; position: relative; transform-origin: left; }
.dm-l.w9 { width: 90%; } .dm-l.w8 { width: 80%; } .dm-l.w7 { width: 70%; } .dm-l.w5 { width: 50%; }
.dm-l.hl::after { content: ""; position: absolute; inset: -3px -4px; background: #ffd84d; opacity: 0; border-radius: 3px; mix-blend-mode: multiply; transform: scaleX(0); transform-origin: left; transition: transform .6s, opacity .3s; }
.dm-l.add { background: #b8d9c4; transform: scaleX(0); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.dm-who { position: absolute; right: 10%; top: 26%; display: grid; gap: 4px; justify-items: end; }
.dm-who span { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; color: #fff; opacity: 0; transform: scale(.6); transition: .35s cubic-bezier(.2,.9,.25,1.4); }
.dm-who .me { background: #b4532a; } .dm-who .cl { background: #c4724f; filter: hue-rotate(-20deg) saturate(.8); background: #5b4bc4; }
.dm-comment { position: absolute; left: 50%; top: 44%; max-width: 46%; font-size: 11px; line-height: 1.3; padding: 7px 9px; background: #fff; border-radius: 10px 10px 10px 2px;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); opacity: 0; transform: translateY(8px) scale(.9); transition: .4s cubic-bezier(.2,.9,.25,1.3); }
.dm-ev { position: absolute; right: 6%; bottom: 8%; width: 46%; padding: 8px 10px; background: #fffdf8; border: 1px solid #eadfcf; border-radius: 10px; font-size: 10.5px;
  box-shadow: 0 12px 26px -12px rgba(0,0,0,.35); opacity: 0; transform: translateX(30px); transition: .5s cubic-bezier(.2,.8,.2,1.2); }
.dm-ev small { display: block; color: #9a8f80; } .dm-ev q { display: block; margin: 3px 0 6px; font: italic 400 12px var(--serif); color: #2a2622; }
.dm-ev .ok, .dm-ev .no { display: inline-block; padding: 2px 7px; margin-right: 4px; border-radius: 999px; font-weight: 600; }
.dm-ev .ok { background: #d9efe0; color: #2f7a4f; } .dm-ev .no { background: #f4e3d8; color: #b4532a; }
/* the loop on cards (only while in view) and the four states in the scroll story */
@keyframes dm-loop-s1 { 0%, 20% { opacity: 1; transform: none; } 26%, 94% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; } }
@keyframes dm-loop-s2 { 0%, 20% { opacity: 0; transform: translateY(6px); } 26%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes dm-loop-hl { 0%, 30% { opacity: 0; transform: scaleX(0); } 38%, 92% { opacity: .55; transform: scaleX(1); } 100% { opacity: 0; } }
@keyframes dm-loop-add { 0%, 40% { transform: scaleX(0); } 50%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes dm-loop-pop { 0%, 46% { opacity: 0; transform: translateY(8px) scale(.9); } 52%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes dm-loop-ev { 0%, 58% { opacity: 0; transform: translateX(30px); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes dm-loop-who { 0%, 24% { opacity: 0; transform: scale(.6); } 30%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.op-cover .docmock *, .op-hero .docmock * { animation-duration: 7s; animation-iteration-count: infinite; animation-play-state: paused; animation-timing-function: ease; }
.op-cover.in .docmock *, .op-card.in .docmock *, .op-hero .docmock * { animation-play-state: running; }
.op-cover .s1, .op-hero .s1 { animation-name: dm-loop-s1; } .op-cover .s2, .op-hero .s2 { animation-name: dm-loop-s2; }
.op-cover .hl::after, .op-hero .hl::after { animation-name: dm-loop-hl; } .op-cover .add, .op-hero .add { animation-name: dm-loop-add; }
.op-cover .dm-comment, .op-hero .dm-comment { animation-name: dm-loop-pop; } .op-cover .dm-ev, .op-hero .dm-ev { animation-name: dm-loop-ev; }
.op-cover .dm-who span, .op-hero .dm-who span { animation-name: dm-loop-who; } .op-cover .dm-who .cl, .op-hero .dm-who .cl { animation-delay: .4s; }
.stage-mock[data-step] .docmock * { animation: none !important; }
.stage-mock[data-step="1"] .s1 { opacity: 1; } .stage-mock[data-step="1"] .dm-comment { opacity: 1; transform: none; }
.stage-mock:not([data-step="1"]) .s1 { opacity: 0; } .stage-mock:not([data-step="1"]) .s2 { opacity: 1; transform: none; }
.stage-mock[data-step="2"] .dm-who span, .stage-mock[data-step="2"] .add, .stage-mock[data-step="4"] .dm-who span, .stage-mock[data-step="4"] .add { opacity: 1; transform: none; }
.stage-mock[data-step="3"] .hl::after, .stage-mock[data-step="4"] .hl::after { opacity: .55; transform: scaleX(1); }
.stage-mock[data-step="3"] .dm-ev, .stage-mock[data-step="4"] .dm-ev { opacity: 1; transform: none; }
.stage-mock[data-step="4"] .dm-l:not(.add) { background: #e9c9b6; } .stage-mock[data-step="4"] .dm-l.add { background: #c7c0ef; }
.op-card { padding: 0 0 18px; overflow: hidden; } .op-card .op-cover { margin-bottom: 14px; } .op-card .op-cover .docmock { border-radius: 0; }
.op-card > :not(.op-cover) { margin-left: 18px; margin-right: 18px; }
.op-hero { margin: 20px 0 30px; padding: 30px; background: var(--stage, #ececec); border-radius: 18px; } :root[data-theme="dark"] .op-hero { --stage: #2a251f; }
.op-hero .docmock { max-width: 760px; margin: 0 auto; }
.scrolly { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.scrolly-text p { margin: 0 0 42vh; font-size: 19px; line-height: 1.7; } .scrolly-text p:last-child { margin-bottom: 8vh; }
.scrolly-text p { opacity: .35; transition: opacity .4s; } .scrolly-text p.on { opacity: 1; }
.scrolly-art { position: sticky; top: 120px; } .stage-mock { padding: 22px; background: var(--stage, #ececec); border-radius: 18px; } :root[data-theme="dark"] .stage-mock { --stage: #2a251f; }
.pull { margin: -30vh 0 42vh; padding-left: 18px; border-left: 3px solid var(--accent); font: italic 400 26px/1.35 var(--serif); color: var(--ink); }
@media (max-width: 860px) { .scrolly { grid-template-columns: 1fr; gap: 0; } .scrolly-art { order: -1; top: 70px; z-index: 3; }
  .stage-mock { padding: 10px; } .scrolly-text p { margin-bottom: 28vh; font-size: 17px; } .pull { margin: -16vh 0 28vh; font-size: 21px; } .op-hero { display: none; } }

/* questions, ideas, reading spines */
.questions { list-style: none; margin: 0; padding: 0; columns: 2 340px; column-gap: 34px; }
.questions li { break-inside: avoid; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--line); font: 400 18px/1.45 var(--serif); }
.questions span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 13px var(--sans); }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.idea { position: relative; padding: 18px 18px 40px; background: var(--note); color: var(--note-ink); border-radius: 4px 4px 16px 4px; box-shadow: 0 8px 18px -10px rgba(80,60,0,.35);
  transform: rotate(calc((var(--k) - 4) * .35deg)); transition: transform .3s cubic-bezier(.2,.8,.2,1.4); }
.idea:nth-child(3n) { background: #ffe9a8; } .idea:nth-child(4n) { background: #f7d9c4; }
.idea:hover { transform: rotate(0) translateY(-4px) scale(1.02); }
.idea b { display: block; font-size: 17px; margin-bottom: 6px; } .idea p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.idea span { position: absolute; left: 18px; bottom: 12px; font: italic 400 13px var(--serif); opacity: .7; }
.spines { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 8px; overflow-x: auto; align-items: flex-end; scrollbar-width: thin; }
.spines li { flex: 0 0 auto; width: 54px; height: calc(210px + (var(--k) % 4) * 18px); padding: 12px 6px; border-radius: 4px 4px 2px 2px;
  background: hsl(var(--h) 38% 52%); color: #fff; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; justify-content: space-between;
  box-shadow: inset -6px 0 0 rgba(0,0,0,.08); transition: transform .3s; }
.spines li:hover { transform: rotate(180deg) translateY(10px); }
.spines b { font-size: 13.5px; } .spines span { font-size: 11px; opacity: .85; }

/* horizontal scroller (mouse wheel, drag, arrows, swipe) */
.hscroll { position: relative; }
.hs-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 2px 16px; cursor: grab; }
.hs-track::-webkit-scrollbar { display: none; } .hs-track.drag { cursor: grabbing; scroll-snap-type: none; } .hs-track.drag a { pointer-events: none; }
.hs-track > * { flex: 0 0 min(400px, 82vw); scroll-snap-align: start; }
.hscroll.small .hs-track > * { flex-basis: min(290px, 74vw); }   /* portfolios: smaller tool cards (akshay 31 Oct 2026) */
.hscroll.small .work-card h3 { font-size: 20px; } .hscroll.small .hs-end p { font-size: 17px; }
.hs-end { display: grid; place-items: center; text-align: center; padding: 30px; border: 2px dashed var(--line); background: transparent; box-shadow: none; }
.hs-end p { font: italic 400 20px/1.4 var(--serif); color: var(--muted); }
.hs-btn { position: absolute; top: 38%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised);
  box-shadow: var(--shadow); font-size: 18px; color: var(--ink); cursor: pointer; transition: opacity .2s, transform .2s; }
.hs-btn:hover { transform: scale(1.08); } .hs-btn.prev { left: -14px; } .hs-btn.next { right: -14px; } .hs-btn[disabled] { opacity: 0; pointer-events: none; }
.hs-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; } .hs-bar i { display: block; height: 100%; width: 20%; background: var(--accent); border-radius: 3px; transition: transform .1s linear; }
@media (max-width: 760px) { .hs-btn { display: none; } }

/* life list */
.life { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.life h3 { margin: 0 0 10px; font-size: 18px; } .life h3 small { font: italic 400 15px var(--serif); color: var(--accent); }
.life ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.life li { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; background: var(--raised); border: 1px solid var(--line); transition: transform .2s; }
.life li:hover { transform: translateY(-2px) rotate(-1deg); }
.life li.done { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); border-color: transparent; }
.life li.done::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 5px; vertical-align: -.14em; background: var(--accent); -webkit-mask: var(--ic-check) center / contain no-repeat; mask: var(--ic-check) center / contain no-repeat; }
@media (max-width: 760px) { .life { grid-template-columns: 1fr; } }

/* side projects and by day */
.ventures { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.venture { display: block; padding: 26px; border-radius: 20px; text-decoration: none; color: var(--ink); background: linear-gradient(135deg, var(--accent-soft), var(--raised));
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1.3); }
.venture:hover { transform: translateY(-4px) rotate(-.6deg); }
.venture b { font-size: 30px; } .venture p { color: var(--muted); margin: 8px 0 14px; } .venture span { font-size: 14px; font-weight: 600; color: var(--accent); }
.byday { display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 28px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line); }
.byday p { margin: 0; max-width: 60ch; font-size: 18px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .docmock * { animation: none !important; transition: none !important; } .hs-track { scroll-behavior: auto; } }

/* travelogue: a passport of stamps; each trip opens as a postcard with polaroids (akshay 31 Oct 2026: "very fun Ui") */
.passport { display: grid; grid-template-columns: 0.8fr 1.4fr; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(40,30,10,.45);
  background: #2c3a5a; padding: 10px; gap: 0; }
.pp-left, .pp-right { background: #f6efdf; background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(44,58,90,.06) 27px 28px); position: relative; }
.pp-left { border-radius: 10px 0 0 10px; padding: 30px 26px; border-right: 2px dashed rgba(44,58,90,.25); color: #2c3a5a; }
.pp-right { border-radius: 0 10px 10px 0; padding: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-content: start; min-height: 320px; }
.pp-emblem { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid #b08a3e; color: #b08a3e; font-size: 24px; }
.pp-kind { margin: 18px 0 2px; font: italic 400 15px var(--serif); color: #b08a3e; letter-spacing: .04em; }
.pp-left b { font-size: 26px; } .pp-meta { font-size: 13px; color: #6a6f80; margin-top: 6px; }
.pp-route { position: absolute; left: 26px; right: 26px; bottom: 30px; height: 60px; border-bottom: 2px dashed #b08a3e; border-radius: 0 0 50% 50%; opacity: .6; }
.pp-route::after { content: ""; width: 20px; height: 20px; background: #b08a3e; -webkit-mask: var(--ic-plane) center / contain no-repeat; mask: var(--ic-plane) center / contain no-repeat; position: absolute; right: -8px; bottom: -11px; animation: fly 6s ease-in-out infinite; }
@keyframes fly { 0% { right: 100%; bottom: -14px; } 50% { bottom: 30px; } 100% { right: -6px; bottom: -14px; } }
.stamp { aspect-ratio: 1; display: grid; place-content: center; text-align: center; padding: 10px; color: hsl(var(--h) 55% 38%); text-decoration: none;
  border: 3px solid currentColor; outline: 1.5px solid currentColor; outline-offset: -8px; mix-blend-mode: multiply; opacity: .9;
  transform: rotate(calc(-8deg + var(--k) * 7deg)); transition: transform .25s cubic-bezier(.2,.9,.25,1.6); }
.stamp.s0 { border-radius: 50%; } .stamp.s1 { border-radius: 10px; } .stamp.s2 { border-radius: 50% 50% 10px 10px; }
.stamp small { font-size: 10px; letter-spacing: .12em; } .stamp b { font: 700 17px/1.1 var(--sans); text-transform: uppercase; letter-spacing: .03em; }
.stamp span { font-size: 10.5px; }
a.stamp:hover { transform: rotate(0) scale(1.08); } a.stamp:active { transform: scale(.94); }
a.stamp.in { animation: stamp-in .5s cubic-bezier(.2,.9,.25,1.4) backwards; animation-delay: calc(var(--k) * .12s); }
@keyframes stamp-in { from { transform: scale(1.8) rotate(-20deg); opacity: 0; } }
.stamp.empty { color: rgba(44,58,90,.2); border-style: dashed; outline-style: dashed; }
.pp-note { grid-column: 1 / -1; margin: 6px 0 0; font: italic 400 18px var(--serif); color: #6a6f80; }
.postcard { position: relative; margin: 8px 0 26px; padding: 34px 30px; border-radius: 6px; background: #fbf6ea; color: #2c3a5a;
  border: 10px solid #fff; outline: 2px dashed #c75a3a; outline-offset: -16px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.4); }
.postcard h1 { color: #2c3a5a; } .postcard .meta { color: #6a6f80; }
.pc-postmark { position: absolute; right: 26px; top: 22px; width: 92px; height: 92px; border-radius: 50%; border: 2px solid #c75a3a; color: #c75a3a;
  display: grid; place-content: center; text-align: center; transform: rotate(12deg); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.pc-postmark small { font-size: 13px; }
.polaroids { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; margin: 30px 0; }
.polaroid { margin: 0; width: min(300px, 80vw); padding: 12px 12px 40px; background: #fff; box-shadow: 0 16px 30px -18px rgba(0,0,0,.45);
  transform: rotate(var(--r)); transition: transform .3s cubic-bezier(.2,.8,.2,1.4); }
.polaroid:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { margin-top: 10px; font: italic 400 15px var(--serif); color: #4a4036; text-align: center; }
:root[data-theme="dark"] .pp-left, :root[data-theme="dark"] .pp-right { filter: brightness(.92); }
@media (max-width: 760px) { .passport { grid-template-columns: 1fr; } .pp-left { border-radius: 10px 10px 0 0; border-right: 0; border-bottom: 2px dashed rgba(44,58,90,.25); min-height: 200px; }
  .pp-right { border-radius: 0 0 10px 10px; grid-template-columns: repeat(2, 1fr); } .pc-postmark { width: 70px; height: 70px; right: 14px; } }

/* the CV as a web page inside the pop-up; the PDF only comes from the Download button */
.modal-body.web { display: block; padding: 34px clamp(18px, 5vw, 56px) 44px; }
.cv-web { max-width: 720px; margin: 0 auto; }
.cv-web h1 { font: 700 clamp(34px, 5vw, 48px)/1 var(--sans); letter-spacing: -.02em; margin: 0; }
.cv-web .headline { margin: 10px 0 4px; font: italic 400 20px var(--serif); color: var(--accent); }
.cv-web .contact { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.cv-web .contact a { color: var(--ink); }
.cv-web h2 { margin: 30px 0 12px; font: italic 400 16px var(--serif); color: var(--accent); letter-spacing: .02em; border-top: 1px solid var(--line); padding-top: 16px; }
.cv-web .summary { font-size: 17px; line-height: 1.6; margin: 0; }
.cv-web .job { margin: 0 0 18px; padding: 16px 18px; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; }
.cv-web .jobline { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.cv-web .title { font-weight: 700; font-size: 17px; } .cv-web .dates { font-size: 13.5px; color: var(--muted); }
.cv-web .org { margin: 2px 0 8px; color: var(--muted); font-size: 14.5px; }
.cv-web ul { margin: 0; padding-left: 18px; } .cv-web li { margin: 5px 0; font-size: 15px; line-height: 1.55; } .cv-web li::marker { color: var(--accent); }
.cv-web .edu, .cv-web .skills { font-size: 15px; line-height: 1.6; margin: 4px 0; }

/* open-to pills (personal hero + portfolio contact) and the prominent work card (31 Oct 2026) */
.open-to { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.open-to span { font: italic 400 16px var(--serif); color: var(--muted); margin-right: 4px; }
.open-to a { padding: 7px 14px; border-radius: 999px; border: 1px dashed var(--accent); color: var(--ink); text-decoration: none; font-size: 14.5px;
  background: color-mix(in srgb, var(--accent-soft) 45%, transparent); transition: transform .2s cubic-bezier(.2,.8,.2,1.4), background .2s; }
.open-to a:hover { transform: translateY(-2px) rotate(-1deg); background: var(--accent-soft); }
.byday.big { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; padding: 34px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, var(--raised), var(--accent-soft)); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.2,1.2); }
.byday.big:hover { transform: translateY(-4px); } .byday.big:hover .bd-preview { transform: rotate(0) translateY(-6px); }
.bd-text p { font-size: 19px; line-height: 1.55; margin: 0 0 20px; }
.bd-preview { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,0,0,.4); transform: rotate(2deg); transition: transform .4s cubic-bezier(.2,.8,.2,1.3); }
.bd-preview .bar { position: relative; display: flex; gap: 5px; align-items: center; height: 26px; padding: 0 10px; background: #f3f3f3; }
.bd-preview .bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; } .bd-preview .bar i:nth-child(2) { background: #febc2e; } .bd-preview .bar i:nth-child(3) { background: #28c840; }
.bd-preview .bar span { position: absolute; inset: 0; text-align: center; line-height: 26px; font-size: 11px; color: #888; }
.bd-page { padding: 22px 22px 24px; background: #eef0f4; color: #16181d; }
.bd-page small { display: inline-block; font-size: 10px; padding: 3px 8px; border-radius: 6px; background: #e1e6f7; color: #3c55c6; }
.bd-page b { display: block; margin: 10px 0 14px; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; }
.bd-page b em { font: italic 400 1em var(--serif); color: #555c6b; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; } .bd-chips span { font-size: 11px; padding: 4px 9px; background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; } .bd-cards i { height: 52px; border-radius: 8px; background: linear-gradient(135deg, #f6d5c4, #e8b49b); }
.bd-cards i:nth-child(2) { background: linear-gradient(135deg, #cfe9e2, #9fd3c4); } .bd-cards i:nth-child(3) { background: linear-gradient(135deg, #dcd6f5, #b6aaf0); }
@media (max-width: 760px) { .byday.big { grid-template-columns: 1fr; padding: 22px; } .bd-preview { transform: none; } }
.early .cover img { object-fit: contain; background: #e7e7e7; padding: 18px; }
/* the drawn portrait shows whole, hair included (akshay 31 Oct 2026: "my whole hair needs to be seen") */
.portrait:has(img) { aspect-ratio: auto; background: #9b7f80; }
.portrait img { display: block; height: auto; }
.photos img { object-position: 50% 22%; }
/* personal hero: the portrait is as tall as the text beside it (akshay 31 Oct 2026: "same height as the adjacent text") */
.personal .hero { grid-template-columns: 1fr auto; align-items: stretch !important; gap: 40px; }
.personal .hero .portrait { position: relative; align-self: stretch; height: auto; min-height: 150px; aspect-ratio: 3 / 4; border-radius: 20px; }
.personal .hero .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; }
@media (max-width: 760px) { .personal .hero { grid-template-columns: 1fr; } .personal .hero .portrait { width: 160px; aspect-ratio: 3 / 4; order: -1; } }
.open-to.big { flex-direction: column; align-items: stretch; gap: 10px; margin: 0; }
.open-to.big a { padding: 14px 18px; border-radius: 14px; font-size: 16px; }
.pill a, .pill button { white-space: nowrap; }

/* Thinking out loud on the home page: one card of tiles (akshay 31 Oct 2026) */
.think-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; margin-top: 26px; background: var(--raised);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.think-tile { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; padding: 16px;
  border-radius: 16px; background: var(--surface); text-decoration: none; color: var(--ink); transition: transform .25s cubic-bezier(.2,.8,.2,1.4), background .2s; }
.think-tile:hover { transform: translateY(-3px) rotate(-.6deg); background: var(--accent-soft); }
.think-tile i { grid-row: span 3; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 20px;
  background: var(--accent-soft); color: var(--accent); }
.think-tile b { font-size: 17px; } .think-tile span { font-size: 14px; color: var(--muted); } .think-tile small { font: italic 400 13.5px var(--serif); color: var(--accent); }
@media (max-width: 900px) { .think-card { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .think-card { grid-template-columns: 1fr; padding: 10px; } }
.fav-sec { padding-top: 26px; }
/* personal hero portrait mirrored so the face turns left, towards the text (akshay 31 Oct 2026) */
.personal .hero .portrait img { transform: scaleX(-1); }
/* the whole drawing, uncropped, as tall as the hero text (akshay 31 Oct 2026: "Whole drawing, text height") */
.personal .hero .portrait { aspect-ratio: 800 / 1441; }
.personal .hero .portrait img { object-position: 50% 50%; }
@media (max-width: 760px) { .personal .hero .portrait { width: 140px; aspect-ratio: 800 / 1441; } }

/* mprogano.com patterns (akshay 31 Oct 2026) */
.logo span { order: 0; } .logo svg { order: 1; } .logo .by { font: italic 400 15px var(--serif); color: var(--muted); margin-right: 2px; }
.lone-quote { margin: 46px auto 10px; max-width: 900px; text-align: center; }
.lone-quote blockquote { margin: 0; font: italic 400 clamp(22px, 2.6vw, 32px)/1.35 var(--serif); color: var(--ink); }
.lone-quote figcaption { margin-top: 14px; font-weight: 600; font-size: 15px; } .lone-quote figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.flip { position: relative; width: 100%; height: 100%; min-height: 150px; border-radius: inherit; overflow: hidden; cursor: pointer; }
.flip > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.flip > .on { opacity: 1; }
.dummy { display: grid; place-items: end center; background: linear-gradient(160deg, hsl(var(--h) 45% 82%), hsl(var(--h) 40% 64%)); }
.dummy svg { width: 78%; fill: hsl(var(--h) 30% 40% / .55); }
.dummy small { position: absolute; left: 10px; top: 8px; font-size: 11px; color: hsl(var(--h) 30% 25%); opacity: .8; }
.how-btn { display: inline-flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--raised); color: var(--ink); font: 600 15px var(--sans); cursor: pointer; box-shadow: var(--shadow); transition: transform .2s; }
.how-btn:hover { transform: translateY(-2px); } .how-btn i { font-style: normal; color: var(--accent); font-size: 18px; }
.how-body h2 { font-size: clamp(30px, 4vw, 46px); margin: 6px 0 10px; } .how-body > p { color: var(--muted); font-size: 18px; margin: 0 0 26px; }
.how-body h3 { margin: 22px 0 6px; font-size: 21px; } .how-body ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.how-body li { counter-increment: s; position: relative; padding-left: 44px; } .how-body li::before { content: "0" counter(s); position: absolute; left: 0; top: 24px; font: italic 400 18px var(--serif); color: var(--accent); }
.how-body li p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
/* hero holds dummy flip photos now (his drawing is only on the About card) */
.personal .hero .portrait { aspect-ratio: 3 / 4; } .personal .hero .portrait img, .personal .hero .flip > * { transform: none; }
@media (max-width: 760px) { .personal .hero .portrait { width: 140px; aspect-ratio: 3 / 4; } }
.photos img { object-position: 50% 20%; }
/* hero photo wider (akshay 31 Oct 2026: "make it wider, now it looks bad") */
.personal .hero { grid-template-columns: 1fr minmax(260px, 340px); align-items: center !important; }
.personal .hero .portrait { width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
@media (max-width: 760px) { .personal .hero .portrait { width: 100%; max-width: 360px; aspect-ratio: 4 / 3; } }
@media (max-width: 760px) { .personal .hero { grid-template-columns: 1fr; } .personal .hero .portrait { order: -1; width: 100%; max-width: 340px; } }
.dummy svg { width: auto; height: 88%; }
/* no snapping for mouse users (it pulled the row back after each wheel turn); keep it for touch */
.hs-track { scroll-snap-type: none !important; }
@media (pointer: coarse) { .hs-track { scroll-snap-type: x proximity !important; } }
/* open-to pills in the contact card: one line where it fits, two at most (akshay 31 Oct 2026: "same line ... or 2 lines not 3") */
.connect .open-to { flex-wrap: wrap; gap: 6px; }
.connect .open-to span { flex-basis: 100%; margin: 0 0 2px; }
.connect .open-to a { padding: 6px 12px; font-size: 13.5px; white-space: nowrap; }
/* "Places I'd love to work" as its own card (akshay 31 Oct 2026) */
.strip-card { padding: 22px 0 26px; background: var(--raised); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.strip-card p { font: italic 400 17px var(--serif) !important; color: var(--accent) !important; }
/* phones: the open-to pills fit on two lines */
@media (max-width: 760px) { .connect .open-to a { font-size: 12px; padding: 5px 9px; } .connect .open-to { gap: 5px; } }
/* every card the same size, with title, line, details and tags in the same place across cards (akshay 31 Oct 2026) */
.work-card h3, .work-card .line, .work-card .meta { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.work-card h3 { -webkit-line-clamp: 2; line-height: 1.2; min-height: calc(2em * 1.2); }
.work-card .line { -webkit-line-clamp: 3; line-height: 1.5; min-height: calc(3em * 1.5); }
.work-card .meta { -webkit-line-clamp: 2; line-height: 1.4; min-height: calc(2em * 1.4); }
.work-card .tags { min-height: 54px; max-height: 54px; overflow: hidden; align-content: flex-start; }
.hscroll .work-card { height: auto; } .hs-track { align-items: stretch; }
.hscroll.small .work-card h3 { font-size: 19px; } .hscroll.small .work-card .line { font-size: 15px; }
.hs-end { align-self: stretch; }
/* other card families on the page: equal heights in their rows */
.adv { grid-auto-rows: 1fr; } .think-card { grid-auto-rows: 1fr; } .strengths { align-items: stretch; } .ideas { grid-auto-rows: 1fr; }
.op-card h3 { min-height: calc(2em * 1.25); }
@media (max-width: 760px) { .connect .open-to a { font-size: 11.5px; padding: 4px 8px; letter-spacing: -.01em; } }
@media (max-width: 760px) {
  .connect .open-to { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -26px; padding-right: 26px; }
  .connect .open-to::-webkit-scrollbar { display: none; }
  .connect .open-to span { flex: 0 0 auto; flex-basis: auto; margin: 0 4px 0 0; }
  .connect .open-to a { flex: 0 0 auto; font-size: 13px; padding: 6px 11px; }
}

/* ICONS: one pack on all three sites, Phosphor Regular (icons/SOURCES.md; akshay 31 Oct 2026). Inline svg.ic follows the text size and colour. */
:root { --ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); --ic-plane: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M185.33,114.21l29.14-27.42.17-.17a32,32,0,0,0-45.26-45.26c0,.06-.11.11-.17.17L141.79,70.67l-83-30.2a8,8,0,0,0-8.39,1.86l-24,24a8,8,0,0,0,1.22,12.31l63.89,42.59L76.69,136H56a8,8,0,0,0-5.65,2.34l-24,24A8,8,0,0,0,29,175.42l36.82,14.73,14.7,36.75.06.16a8,8,0,0,0,13.18,2.47l23.87-23.88A8,8,0,0,0,120,200V179.31l14.76-14.76,42.59,63.89a8,8,0,0,0,12.31,1.22l24-24a8,8,0,0,0,1.86-8.39Zm-.07,97.23-42.59-63.88A8,8,0,0,0,136.8,144c-.27,0-.53,0-.79,0a8,8,0,0,0-5.66,2.35l-24,24A8,8,0,0,0,104,176v20.69L90.93,209.76,79.43,181A8,8,0,0,0,75,176.57l-28.74-11.5L59.32,152H80a8,8,0,0,0,5.66-2.34l24-24a8,8,0,0,0-1.22-12.32L44.56,70.74l13.5-13.49,83.22,30.26a8,8,0,0,0,8.56-2L180.78,52.6A16,16,0,0,1,203.4,75.23l-32.87,30.93a8,8,0,0,0-2,8.56l30.26,83.22Z'/%3E%3C/svg%3E"); }
svg.ic { width: 1.05em; height: 1.05em; flex: none; display: inline-block; vertical-align: -.16em; fill: currentColor; }
a svg.ic, button svg.ic, .modal-dl svg.ic { pointer-events: none; }
.modal .dot svg.ic { width: 9px; height: 9px; vertical-align: 0; }
.modal:not([data-full]) .i-in, .modal[data-full] .i-out { display: none; }
.pill .theme svg.ic { width: 17px; height: 17px; vertical-align: -.22em; }
.think-tile i svg.ic { width: 22px; height: 22px; }
.pp-emblem svg.ic { width: 28px; height: 28px; }
.faq summary i svg.ic, .process summary i svg.ic { width: 22px; height: 22px; vertical-align: middle; }
.how-btn i svg.ic { width: 16px; height: 16px; vertical-align: -.2em; }
.hs-btn svg.ic, .id-close svg.ic { width: 18px; height: 18px; }

/* ===== MOBILE PASS (akshay 31 Oct 2026: "make it suitable for mobile viewing ... ideally fix by moving around") ===== */
/* grid children may shrink below their content, so a swipe row inside never widens the page */
.connect > *, .hero > *, .cols > *, .byday > *, .case-grid > *, .story > * { min-width: 0; }
/* tap targets: at least 40px tall on phones */
@media (max-width: 760px) {
  .pill a, .pill button { padding: 10px 11px; }
  .pill .theme { padding: 9px 11px; }
  footer .wrap a { display: inline-block; padding: 9px 2px; }
  .back { padding: 8px 0; margin-bottom: 18px; }
  .group-head a, .sec-head a { padding: 8px 0; }
}
/* hero photos: smaller on phones, after the name instead of before it */
@media (max-width: 760px) {
  .personal .hero .portrait { order: 0; width: 100%; max-width: none; aspect-ratio: auto; height: 210px; min-height: 0; }
  .hero:not(.personal .hero) .portrait, .hero > .portrait { max-width: none; width: 100%; aspect-ratio: auto; height: 230px; }
  .hero .portrait .flip { min-height: 0; }
}
/* group headings: number and "Open page" on one line, the title under them */
@media (max-width: 760px) {
  .group-head { flex-wrap: wrap; align-items: center; row-gap: 2px; }
  .group-head .num { order: 0; }
  .group-head a { order: 1; margin-left: auto; }
  .group-head h2 { order: 2; flex-basis: 100%; font-size: 30px; }
}
/* Thinking out loud card: two small tiles a row (each tile's one-line description is on the page it opens) */
@media (max-width: 560px) {
  .think-card { grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
  .think-tile { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 4px; padding: 14px 12px; align-content: start; }
  .think-tile i { grid-row: auto; width: 36px; height: 36px; margin-bottom: 4px; }
  .think-tile span { display: none; }
  .think-tile b { font-size: 15px; line-height: 1.25; }
}
/* ideas: two sticky notes a row */
@media (max-width: 560px) {
  .ideas { grid-template-columns: 1fr 1fr; gap: 10px; grid-auto-rows: auto; }
  .idea { padding: 14px 12px 34px; }
  .idea b { font-size: 15px; } .idea p { font-size: 13px; line-height: 1.45; }
  .idea span { left: 12px; bottom: 10px; font-size: 12px; }
}
/* long lists fold on phones; "Show all" opens them (kit.js) */
.fold-btn { display: none; }
@media (max-width: 760px) {
  ul.folded > li:nth-child(n+9) { display: none; }
  .fold-btn { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--raised); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
}
/* passport: three small stamps a row */
@media (max-width: 760px) {
  .pp-left { min-height: 0; padding-bottom: 70px; }
  .pp-right { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; min-height: 0; }
  .stamp { padding: 4px; font-size: 11px; }
}
/* scroll story on phones: the picture stays pinned on top, shorter gaps, text easier to read */
@media (max-width: 860px) {
  .scrolly-art { top: 0; padding: 64px 0 10px; background: var(--bg); }
  .scrolly-text p { margin-bottom: 14vh; opacity: .5; } .scrolly-text p.on { opacity: 1; }
  .pull { margin: -6vh 0 14vh; }
}
/* case pages on phones: the section list becomes a bar at the bottom of the screen */
@media (max-width: 1279px) {
  .toc { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; gap: 2px; padding: 5px; overflow-x: auto; scrollbar-width: none;
    background: var(--raised); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s; }
  .toc::-webkit-scrollbar { display: none; }
  .toc.show { opacity: 1; transform: none; pointer-events: auto; }
  .toc a { flex: 0 0 auto; font-size: 13.5px; color: var(--muted); text-decoration: none; padding: 9px 13px; border-radius: 999px; white-space: nowrap; }
  .toc a.on { color: var(--surface); background: var(--ink); }
  .case { padding-bottom: 70px; }
}
@media (min-width: 761px) and (max-width: 1279px) { .toc { left: 50%; right: auto; transform: translate(-50%, 16px); max-width: calc(100% - 24px); } .toc.show { transform: translate(-50%, 0); } }
/* breathing room between blocks that sat flush on phones */
@media (max-width: 760px) {
  .strip + .sec, .lone-quote + .sec, .sec + .sec { padding-top: 56px; }
  .lone-quote { margin-top: 36px; }
  .story > h4 { margin-top: 30px; }
}
.logo > span { white-space: nowrap; }
.flip > .doodle svg { width: 100%; height: 100%; display: block; }
.photos > .idp { background: var(--accent-soft); } .photos .idp svg { width: 100%; height: 100%; display: block; }
/* phone review fixes (akshay 31 Oct 2026, iPhone screenshots) */
/* top bar: solid enough that page text never shows through around the menu while scrolling */
.top { background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* logos as covers are shown whole, never cropped (cards and case pages) */
.cover img[src*="logo-"] { object-fit: contain; background: #ececec; padding: 6% 10%; }
.case .cover:has(img[src*="logo-"]) { aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .case .cover:has(img[src*="logo-"]) { aspect-ratio: 4 / 3; } }
/* tool logos: the grid fills the card's width evenly, no gap on the right */
@media (max-width: 760px) {
  .tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); width: 100%; box-sizing: border-box; }
  .tray .tool { width: auto; height: auto; aspect-ratio: 1; }
}

/* ===== ONE CARD (akshay 1 Nov 2026): every row of work uses .pcard; smaller, the same parts in the same places ===== */
.hs-track > .pcard, .hs-track > .hs-end { flex: 0 0 248px; }
@media (max-width: 760px) { .hs-track > .pcard, .hs-track > .hs-end { flex-basis: 74vw; max-width: 290px; } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line);
  border-radius: 18px; padding: 8px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1), border-color .3s; will-change: transform; }
.pcard:hover, .pcard:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(30,30,60,.35); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.pcard .pc-img { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface); }
.pcard .pc-img img, .pcard .pc-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.pcard .pc-img video { opacity: 0; } .pcard:hover .pc-img video.ready { opacity: 1; }
.pcard:hover .pc-img img { transform: scale(1.05); }
.pcard .pc-img img[src*="logo-"] { object-fit: contain; background: #ececec; padding: 8% 14%; }
.pc-badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--raised) 88%, transparent); backdrop-filter: blur(8px); color: var(--ink); }
.pc-body { display: flex; flex-direction: column; padding: 12px 6px 4px; flex: 1; }
.pcard h3 { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; overflow: hidden; min-height: calc(2em * 1.25); }
.pcard .pc-text { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; overflow: hidden; min-height: calc(3em * 1.45); }
.pc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; height: 22px; overflow: hidden; }
.pc-tag { font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pc-status { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.pc-org { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px;
  color: var(--faint); letter-spacing: .01em; margin-top: auto; }
.pc-tags + .pc-org { margin-top: 12px; }
.pc-org span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-go { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--muted);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, color .3s; flex: none; }
.pc-go svg.ic { width: 12px; height: 12px; }
.pcard:hover .pc-go { transform: translateX(3px); background: var(--accent); color: #fff; }
.hs-end { border-radius: 18px; }
.hs-end p { font-size: 16px !important; }
/* cards rise in one after another as their row comes into view */
.pcard.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.8,.2,1) calc(var(--k, 0) * 70ms),
  transform .6s cubic-bezier(.2,.8,.2,1) calc(var(--k, 0) * 70ms), box-shadow .45s, border-color .3s; }
.pcard.reveal.in { opacity: 1; transform: none; }
.pcard.reveal.in:hover { transform: translateY(-6px); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard .pc-img img { transition: none !important; } .pcard.reveal { opacity: 1; transform: none; } }
.hs-track > .pcard { width: 248px; min-width: 0; } .pcard, .pc-body, .pc-org { min-width: 0; }
@media (max-width: 760px) { .hs-track > .pcard { width: 74vw; max-width: 290px; } }
.pcard h3 .serif { font: inherit; font-style: normal; }

/* ===== ONE INSIDE PAGE (akshay 1 Nov 2026: "The inside page needs a lot of work") ===== */
.case2 { max-width: 1120px; }
.case2 .back { margin-bottom: 22px; }
.case-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: center; margin-bottom: 52px; }
.ch-kicker { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.case2 h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -.025em; margin: 0; }
.case2 .lede { font: italic 400 clamp(19px, 1.9vw, 23px)/1.45 var(--serif); color: var(--muted); margin: 16px 0 0; max-width: 34ch; }
.ch-tags { height: auto; margin-top: 18px; }
.ch-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 22px; margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.ch-facts div { min-width: 0; } .ch-facts dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ch-facts dd { margin: 3px 0 0; font-size: 14.5px; font-weight: 500; }
.ch-img { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ch-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-img img[src*="logo-"] { object-fit: contain; background: #ececec; padding: 10% 16%; }
.case2 .cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.case2 .story { counter-reset: sec; max-width: 680px; }
.case2 .story > h4 { counter-increment: sec; display: flex; align-items: baseline; gap: 12px; margin: 46px 0 14px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.case2 .story > h4:first-child { margin-top: 0; }
.case2 .story > h4::before { content: counter(sec, decimal-leading-zero); font: italic 400 22px var(--serif); color: var(--accent); letter-spacing: 0; text-transform: none; }
.case2 .story > p { font-size: 17.5px; line-height: 1.72; margin: 0 0 14px; }
.case2 .story > p.task { font: italic 400 22px/1.45 var(--serif); padding: 18px 22px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); border: 0; }
.case2 .insights { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case2 .insights li { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); box-shadow: none; }
.case2 .insights li .n { display: block; font: italic 400 20px var(--serif); color: var(--accent); margin-bottom: 6px; }
.case2 .insights li p { margin: 0; font-size: 15px; line-height: 1.55; }
.case2 .story > p.delivered { position: relative; padding: 18px 22px 18px 54px; border-radius: 16px; background: color-mix(in srgb, #2f7a4f 9%, var(--raised));
  border: 1px solid color-mix(in srgb, #2f7a4f 22%, transparent); }
.case2 .story > p.delivered::before { content: ""; position: absolute; left: 20px; top: 21px; width: 20px; height: 20px; background: #2f7a4f;
  -webkit-mask: var(--ic-check) center / contain no-repeat; mask: var(--ic-check) center / contain no-repeat; }
.case2 .side { position: sticky; top: 92px; display: grid; gap: 14px; }
.case2 .side .panel { margin: 0; border-radius: 18px; }
.case2 .side .toc { position: static; display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--raised); opacity: 1; transform: none; pointer-events: auto; box-shadow: none; overflow: visible; left: auto; right: auto; bottom: auto; }
.case2 .side .toc a { font-size: 13.5px; padding: 7px 12px; border-radius: 10px; color: var(--muted); }
.case2 .side .toc a.on { background: var(--accent-soft); color: var(--ink); }
.pn2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; padding-top: 0; border-top: 0; }
.pn2 a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); text-decoration: none; color: var(--ink);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.pn2 a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.pn2 a small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.pn2 a b { font-weight: 600; font-size: 15.5px; } .pn2 a.next { text-align: right; }
@media (max-width: 1099px) {
  .case2 .cols { grid-template-columns: minmax(0, 1fr); gap: 34px; } .case2 .side { position: static; }
}
@media (max-width: 760px) {
  .case-hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .ch-img { aspect-ratio: 16 / 10; border-radius: 18px; }
  .case2 .insights { grid-template-columns: 1fr; }
  .case2 .story > p { font-size: 16.5px; } .case2 .story > p.task { font-size: 19px; padding: 16px 18px; }
  .pn2 { grid-template-columns: 1fr; } .pn2 a.next { text-align: left; }
}
/* shorter cards (akshay 1 Nov 2026: "one line headings and 2 line description only") */
.pcard h3 { -webkit-line-clamp: 1; min-height: 1.25em; display: block; white-space: nowrap; text-overflow: ellipsis; }
.pcard .pc-text { -webkit-line-clamp: 2; min-height: calc(2em * 1.45); }
.pcard .pc-img { aspect-ratio: 16 / 9; }
.pc-body { padding: 10px 4px 2px; } .pc-tags { margin-top: 8px; } .pc-org, .pc-tags + .pc-org { margin-top: 10px; padding-top: 8px; }
.intro b { color: var(--ink); font-weight: 650; background: none; padding: 0; margin: 0; }   /* bold only, few of them (akshay 1 Nov 2026: "I dont like the handdrwan background marking, just give me highlights in bold, dont highlight too much") */
.intro + .intro { margin-top: 12px; }

/* ===== CASE PAGE WITH A PINNED MONITOR (akshay 1 Nov 2026: "The images inside the project have a mac monitor mockup for it
   and As I scroll down let the images chaneg in that with a smooth anmation contextually like its happening in a monitor") ===== */
article.case.c3 { max-width: 1288px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 760px) { article.case.c3 { padding-left: 16px; padding-right: 16px; } }
.c3-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 470px); gap: 64px; align-items: stretch; }
.c3 .case-hero { display: block; margin-bottom: 48px; }
.c3 .lede { max-width: 40ch; }
.c3-side { min-width: 0; }
.c3-stick { position: sticky; top: 96px; display: grid; gap: 16px; }
.c3-panel:not(:empty) { margin-top: 40px; } .c3-panel .panel { margin: 0; border-radius: 18px; }
.c3 .story { max-width: 640px; }
.c3-stick .toc { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 0; border: 0; background: none; opacity: 1; transform: none;
  pointer-events: auto; box-shadow: none; overflow: visible; left: auto; right: auto; bottom: auto; justify-content: center; }
.c3-stick .toc a { flex: 0 0 auto; width: auto; box-shadow: none; font-size: 12.5px; padding: 6px 11px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); background: var(--raised); text-decoration: none;
  transition: background .3s, color .3s, border-color .3s; }
.c3-stick .toc a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* scroll steps for figures and walkthroughs: on wide screens the picture plays on the monitor, the step keeps its caption */
@media (min-width: 1100px) {
  .c3 .shot-step { min-height: 38vh; display: flex; align-items: center; }
  .c3 .shot-step .stage { display: none; }
  .c3 .shot-step figcaption { font: italic 400 20px/1.5 var(--serif); color: var(--muted); padding-left: 18px; border-left: 2px solid var(--accent); }
}

/* the monitor: dark bezel, thin silver edge, stand; no brand marks */
.mon { margin: 0; display: grid; justify-items: center; }
.mon-frame { width: 100%; padding: 2.3%; background: #111214; border-radius: 16px;
  box-shadow: 0 0 0 1.5px #cfd1d6, 0 0 0 3px #a7a9af, 0 34px 50px -26px rgba(0,0,0,.5); }
.mon-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 5px; overflow: hidden; container-type: inline-size;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 26%, var(--surface)), color-mix(in srgb, var(--note) 30%, var(--surface))); }
.mon-bar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 4.6cqw; display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.6cqw; font: 600 2.1cqw/1 var(--sans); color: var(--ink); background: color-mix(in srgb, var(--raised) 72%, transparent); backdrop-filter: blur(10px); }
.mon-stack { position: absolute; inset: 4.6cqw 0 0 0; }
.mon-neck { width: 15%; height: 44px; margin-top: -1px; background: linear-gradient(90deg, #a9abb1, #e6e7ea 42%, #c4c6cb 70%, #a9abb1);
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.mon-foot { width: 36%; height: 9px; border-radius: 2px 2px 9px 9px; background: linear-gradient(#e2e3e6, #b2b4b9); box-shadow: 0 12px 18px -8px rgba(0,0,0,.35); }
:root[data-theme="dark"] .mon-frame { box-shadow: 0 0 0 1.5px #6b6d73, 0 0 0 3px #45474c, 0 34px 50px -26px rgba(0,0,0,.8); }
:root[data-theme="dark"] .mon-neck { background: linear-gradient(90deg, #5d5f64, #a2a4a9 42%, #7a7c81 70%, #5d5f64); }
:root[data-theme="dark"] .mon-foot { background: linear-gradient(#9a9ca1, #5f6166); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mon-frame { box-shadow: 0 0 0 1.5px #6b6d73, 0 0 0 3px #45474c, 0 34px 50px -26px rgba(0,0,0,.8); }
  :root:not([data-theme="light"]) .mon-neck { background: linear-gradient(90deg, #5d5f64, #a2a4a9 42%, #7a7c81 70%, #5d5f64); }
  :root:not([data-theme="light"]) .mon-foot { background: linear-gradient(#9a9ca1, #5f6166); } }

/* screens: the new one rises in sharp while the old one blurs away */
.scr { position: absolute; inset: 0; opacity: 0; transform: translateY(4%) scale(.975); filter: blur(10px); pointer-events: none;
  transition: opacity .6s ease, transform .9s cubic-bezier(.2,.8,.2,1), filter .7s ease; }
.scr.on { opacity: 1; transform: none; filter: none; }
.scr .si { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scr .si.logo { object-fit: contain; background: #ececec; padding: 9% 18%; }
.scr.on .si:not(.logo) { animation: monKen 9s ease-out both; }
@keyframes monKen { from { transform: scale(1.08); } to { transform: scale(1); } }
.sfig { position: absolute; inset: 5% 6%; display: grid; place-items: center; background: #fff; border-radius: 1.4cqw; box-shadow: 0 2cqw 5cqw -2cqw rgba(0,0,0,.4); overflow: hidden; }
.sfig img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* app windows on the screen */
.sw { position: absolute; inset: 7% 9% 9%; display: flex; flex-direction: column; background: var(--raised); color: var(--ink); border-radius: 1.6cqw;
  box-shadow: 0 2.4cqw 6cqw -2cqw rgba(0,0,0,.4), 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent); overflow: hidden;
  transform: translateY(3cqw); transition: transform 1s cubic-bezier(.2,.8,.2,1) .1s; }
.scr.on .sw { transform: none; }
.sw-bar { display: flex; align-items: center; gap: 1cqw; height: 5cqw; padding: 0 2cqw; border-bottom: 1px solid var(--line); font: 600 2cqw/1 var(--sans); color: var(--muted); flex: none; }
.sw-bar i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #ff5f57; } .sw-bar i:nth-child(2) { background: #febc2e; } .sw-bar i:nth-child(3) { background: #28c840; }
.sw-bar span { margin: 0 auto; padding-right: 5cqw; }
.sw-body { flex: 1; padding: 3.4cqw 4.2cqw; min-height: 0; overflow: hidden; font-family: var(--sans); }
.s-h { margin: 0 0 2.6cqw; font: 600 3.3cqw/1.3 var(--sans); clip-path: inset(0 100% 0 0); }
.scr.on .s-h { animation: monType 1.4s steps(36) .35s forwards; }
@keyframes monType { to { clip-path: inset(0 0 0 0); } }
.ln { display: block; height: 1.3cqw; margin-top: 2cqw; width: 0; border-radius: 1cqw; background: var(--line); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.scr.on .ln { width: var(--w); transition-delay: calc(1.4s + var(--i) * .16s); }
.s-k { display: block; font: 600 1.7cqw/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.s-t { margin: 1.8cqw 0 0; font: italic 400 3.1cqw/1.42 var(--serif); }
.s-row { display: flex; align-items: center; gap: 1.4cqw; margin-top: 3cqw; font-size: 2cqw; color: var(--muted); }
.s-av { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; }
.s-pill { margin-left: auto; position: relative; display: inline-grid; padding: .8cqw 1.8cqw; border-radius: 99px; background: var(--line); color: var(--ink); font: 600 1.8cqw/1 var(--sans); overflow: hidden; }
.s-pill b { grid-area: 1 / 1; font-weight: 600; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.s-pill b + b { transform: translateY(140%); opacity: 0; }
.ticket .s-pill { transition: background .5s 1.6s, color .5s 1.6s; }
.scr.on .ticket .s-pill { background: var(--accent); color: #fff; }
.scr.on .ticket .s-pill b:first-child { transform: translateY(-140%); opacity: 0; transition-delay: 1.6s; }
.scr.on .ticket .s-pill b + b { transform: none; opacity: 1; transition-delay: 1.6s; }
.s-pill.on { background: #2f7a4f; color: #fff; margin: 2.4cqw auto 0; }
.s-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.9cqw; }
.s-list li { display: flex; align-items: center; gap: 1.6cqw; font: 500 2.25cqw/1.3 var(--sans); color: var(--muted); transition: color .4s; }
.s-list i { flex: none; width: 2.8cqw; height: 2.8cqw; border-radius: .7cqw; border: .3cqw solid var(--line); position: relative; transition: background .35s, border-color .35s; }
.s-list i::after { content: ""; position: absolute; inset: 15%; background: #fff; -webkit-mask: var(--ic-check) center / contain no-repeat; mask: var(--ic-check) center / contain no-repeat; transform: scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.scr.on .s-list li { color: var(--ink); transition-delay: calc(.5s + var(--i) * .45s); }
.scr.on .s-list i { background: var(--accent); border-color: var(--accent); transition-delay: calc(.5s + var(--i) * .45s); }
.scr.on .s-list i::after { transform: scale(1); transition-delay: calc(.55s + var(--i) * .45s); }
.s-notes { list-style: none; margin: 0; padding: 7% 8%; position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3.2cqw; align-content: center; }
.s-notes li { padding: 2.4cqw 2.6cqw; min-height: 13cqw; background: var(--note); color: var(--note-ink); font: 500 2.05cqw/1.38 var(--sans); border-radius: .6cqw .6cqw 2.4cqw .6cqw;
  box-shadow: 0 1.6cqw 3cqw -1.6cqw rgba(60,45,0,.5); transform: rotate(var(--r)) scale(.4); opacity: 0; transition: transform .6s cubic-bezier(.3,1.5,.5,1), opacity .3s; }
.scr.on .s-notes li { transform: rotate(var(--r)); opacity: 1; transition-delay: calc(.35s + var(--i) * .3s); }
.done .sw-body { display: grid; justify-items: center; align-content: center; text-align: center; }
.s-ok { width: 9cqw; height: 9cqw; fill: none; stroke: #2f7a4f; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.s-ok circle { stroke-dasharray: 145; stroke-dashoffset: 145; } .s-ok path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.scr.on .s-ok circle { animation: monDraw .8s ease .3s forwards; } .scr.on .s-ok path { animation: monDraw .5s ease 1s forwards; }
@keyframes monDraw { to { stroke-dashoffset: 0; } }
.s-d { margin: 2.4cqw 0 0; max-width: 46ch; font: 400 2.4cqw/1.45 var(--sans); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .scr, .sw, .ln, .s-notes li, .s-list li, .s-list i, .s-list i::after, .s-pill b { transition: none !important; }
  .scr.on .si, .scr.on .s-h, .scr.on .s-ok circle, .scr.on .s-ok path { animation: none; } .s-h { clip-path: none; } .s-ok circle, .s-ok path { stroke-dashoffset: 0; } }

/* prev / next: one slim line (akshay 1 Nov 2026: "one line bottom left and wirte, let it not take this much height") */
.pn3 { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; padding: 16px 0 4px; border-top: 1px solid var(--line); font-size: 14.5px; }
.pn3 a { min-width: 0; max-width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); text-decoration: none; transition: color .25s; }
.pn3 a:hover { color: var(--ink); } .pn3 a small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 4px; }
.pn3 a b { font-weight: 600; color: var(--ink); } .pn3 .next { text-align: right; }

/* below 1100px: one column, the monitor right under the title (not pinned) */
@media (max-width: 1099px) {
  .c3-grid { display: flex; flex-direction: column; gap: 0; }
  .c3-main { display: contents; }
  .c3 .case-hero { order: 1; margin-bottom: 28px; } .c3-side { order: 2; margin-bottom: 44px; } .c3 .story, .c3 .process, .c3-panel { order: 3; }
  .c3-stick { position: static; max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) { .mon-neck { height: 30px; } .mon-frame { border-radius: 12px; } .pn3 { font-size: 13.5px; } .pn3 a small { display: none; } }

/* ===== WORK: Day job / Side projects toggle + explore-all page (akshay 1 Nov 2026) ===== */
.work-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.work-top .kicker { margin: 0; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); }
.seg button { font: 600 14px var(--sans); padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.seg button.on { background: var(--ink); color: var(--bg); }
.explore { margin-left: auto; font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: none; }
.explore:hover { text-decoration: underline; text-underline-offset: 4px; }
.wpanel[hidden] { display: none; }
.wpanel:not([hidden]) { animation: wpIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes wpIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .explore { margin-left: 0; width: 100%; } }

.allwork { max-width: 1240px; }
.allwork h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.025em; margin: 6px 0 10px; }
.allwork .chips { margin: 22px 0 22px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; grid-auto-flow: dense; gap: 14px; }
.bt { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 20px; background: var(--raised); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .3s; }
.bt[hidden] { display: none; }
.bt:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.bt-img { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: var(--surface); }
.bt-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.bt-img.logo img { object-fit: contain; padding: 8% 14%; background: #ececec; }
.bt:hover .bt-img img { transform: scale(1.04); }
.bt-body { flex: none; display: grid; gap: 5px; padding: 12px 14px 13px; }
.bt-kind { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bt h3 { margin: 0; font-size: 15.5px; line-height: 1.3; font-weight: 650; }
.bt p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.bt small { font-size: 12px; color: var(--faint); }
.bt .pc-tags { margin: 2px 0 0; }
/* shapes come from kit.js (packBento): s 1x1 picture + kind + short title · t tall · w wide (picture beside text) · l large */
.bt .t-short { display: none; }
.bt[data-shape="s"] .t-full { display: none; } .bt[data-shape="s"] .t-short { display: inline; }
.bt[data-shape="s"] p, .bt[data-shape="s"] .pc-tags, .bt[data-shape="s"] small { display: none; }
.bt[data-shape="s"] h3 { font-size: 14.5px; }
.bt[data-shape="t"] .bt-img { flex-basis: 46%; } .bt[data-shape="t"] .pc-tags, .bt[data-shape="t"] small { display: none; }
.bt[data-shape="w"] { flex-direction: row; } .bt[data-shape="w"] .bt-img { flex: 0 0 44%; } .bt[data-shape="w"] .bt-body { flex: 1; align-content: center; padding: 16px 18px; } .bt[data-shape="w"] .pc-tags { display: none; }
.bt[data-shape="l"] h3 { font-size: 22px; letter-spacing: -.01em; } .bt[data-shape="l"] p { font-size: 15px; } .bt[data-shape="l"] .bt-body { padding: 16px 18px 18px; }
.bento:not(.packed) .bt { grid-column: auto; grid-row: auto; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; }
  .bt[data-shape="l"] h3 { font-size: 18px; } .bt[data-shape="t"] .bt-img { flex-basis: 40%; }
  .bt[data-shape="w"] .bt-img { flex: 0 0 40%; } .bt[data-shape="w"] .bt-body { padding: 12px 14px; } .bt[data-shape="w"] small { display: none; }
}

/* "What I work with": the tray spans the page width, logos centred in each row (akshay 1 Nov 2026: "expand to the whole page's
   width" · "or center allign, whatever is possible") */
#toolkit .tray { display: flex; width: 100%; box-sizing: border-box; justify-content: center; gap: 10px; padding: 14px; }
@media (max-width: 760px) { #toolkit .tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); justify-items: center; } }

/* "What I'd change" card at the size of the other cards (akshay 1 Nov 2026: "the card here is too big, make it small") */
.ops { grid-template-columns: repeat(auto-fill, minmax(0, 300px)); gap: 14px; }
.op-card { padding: 0 0 14px; gap: 6px; border-radius: 18px; }
.op-card .op-cover { position: relative; height: 150px; overflow: hidden; margin-bottom: 8px; }
.op-card .op-cover .docmock { position: absolute; top: 0; left: 0; width: 166.7%; transform: scale(.6); transform-origin: top left; }
.op-card > :not(.op-cover) { margin-left: 14px; margin-right: 14px; }
.op-card h3 { font-size: 16px; line-height: 1.3; min-height: 0; }
.op-card p { font-size: 13.5px; line-height: 1.45; }
.op-card time { font-size: 12px; }
@media (max-width: 760px) { .ops { grid-template-columns: minmax(0, 300px); } }
.bt-img img[src$=".svg"] { object-position: left bottom; }   /* placeholder covers: keep the number whole on tall tiles */
