/* ==========================================================
   Sa'ad Mamode Saëb — Portfolio & CV
   Clean premium · Geist · one accent blue
   ========================================================== */
:root {
  --bg: #FFFFFF;
  --bg-2: #F5F5F7;
  --bg-3: #EDEDF0;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --ink-3: #86868B;
  --line: #E3E3E8;
  --blue: #0A66FF;
  --blue-2: #0052D9;
  --violet: #7A5CFF;
  --green: #1DB954;
  --red: #FF453A;
  --grad: linear-gradient(90deg, #0A66FF 0%, #7A5CFF 55%, #C04BFF 100%);
  --f: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --m: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 28px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.5; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
::selection { background: rgba(10, 102, 255, .18); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), calc(100% - 44px)); margin-inline: auto; }
.skip { position: fixed; top: -50px; left: 16px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 500; letter-spacing: -.01em; transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s; white-space: nowrap; }
.pill:active { transform: scale(.97); }
.pill-blue { background: var(--blue); color: #fff; }
.pill-blue:hover { background: var(--blue-2); }
.pill-ghost { background: var(--bg-2); color: var(--ink); }
.pill-ghost:hover { background: var(--bg-3); }
.pill-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.pill-lg { height: 56px; padding: 0 30px; font-size: 17px; }
.text-link { color: var(--blue); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 56px; background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.nav-in { width: min(1200px, calc(100% - 32px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-word { width: 62px; height: 30px; }
.links { display: flex; gap: 4px; }
.links a { font-size: 13.5px; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.links a:hover { color: var(--ink); }
.links a.active { color: var(--ink); background: var(--bg-2); }
.tools { display: flex; align-items: center; gap: 10px; }
.seg { position: relative; display: flex; padding: 2px; background: var(--bg-2); border-radius: 999px; }
.seg button { position: relative; z-index: 1; width: 36px; height: 28px; font-size: 12px; font-weight: 600; color: var(--ink-3); transition: color .3s; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg-pill { position: absolute; top: 2px; left: 2px; width: 36px; height: 28px; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); transition: transform .45s var(--ease); }
.seg[data-active="fr"] .seg-pill { transform: translateX(36px); }
.burger { display: none; width: 36px; height: 36px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* ---------- Load intro ---------- */
.intro { opacity: 0; transform: translateY(24px); filter: blur(8px); animation: intro 1.2s calc(.15s + var(--i, 0) * .12s) var(--ease) forwards; }
@keyframes intro { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Hero (pinned) ---------- */
.hero { --p: 0; position: relative; height: 230vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; }
.hero-text { position: absolute; inset: 0 0 auto; padding-top: max(110px, 13vh); text-align: center; z-index: 2; opacity: clamp(0, calc(1 - var(--p) * 2.6), 1); transform: translateY(calc(var(--p) * -90px)) scale(calc(1 - var(--p) * .06)); will-change: transform, opacity; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.eyebrow-mark { width: 26px; height: 26px; }
.hero-title { margin: 18px auto 0; padding: 0 20px; max-width: 1180px; font-size: clamp(40px, 6.2vw, 88px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; }
.hero-title > span { display: block; padding-bottom: .04em; }
.hero-sub { max-width: 640px; margin: 22px auto 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); line-height: 1.45; padding: 0 16px; }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: 30px; }

/* Assembly — floating cards that come together on scroll */
.assembly { --q: var(--p); position: absolute; left: 50%; top: 50%; width: min(1000px, 90vw); z-index: 1; display: grid; grid-template-columns: 1fr 1.25fr 1.25fr 1fr; grid-template-rows: auto auto auto; gap: 14px; transform: translate(-50%, calc(-46% + (1 - var(--p)) * 44vh)) scale(calc(.82 + var(--p) * .18)); will-change: transform; }
.pc { --x: 0px; --y: 0px; --r: 0deg; --s: .86; position: relative; background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 22px; padding: 16px 18px; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .28); font-size: 13px; transform: translate(calc((1 - var(--q)) * var(--x)), calc((1 - var(--q)) * var(--y))) rotate(calc((1 - var(--q)) * var(--r))) scale(calc(var(--s) + var(--q) * (1 - var(--s)))); opacity: clamp(.25, calc(.35 + var(--q) * 1.4), 1); will-change: transform; }
.pc-profile { grid-column: 2 / 4; grid-row: 1 / 3; background: #0B0B0F; color: #F5F5F7; border-color: #1F1F23; padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; overflow: hidden; --mark-bg: #F5F5F7; --mark-fg: #0B0B0F; opacity: 1; }
.pc-profile::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(47, 125, 255, .45), transparent 65%); pointer-events: none; }
.pc-mark { width: 54px; height: 54px; margin-bottom: 8px; animation: float 6s ease-in-out infinite; }
.pc-name { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.pc-role { font-size: 15px; color: #A1A1A6; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pc-tags span { font-size: 12px; padding: 4px 11px; border-radius: 99px; background: #1C1C1F; color: #D1D1D6; border: 1px solid #2C2C30; }
.pc-status { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: #8E8E93; }
.pc-status i { width: 8px; height: 8px; border-radius: 50%; background: #30D158; box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }
.pc-code { grid-column: 1; grid-row: 1 / 3; background: #0F0F12; color: #E6E6E6; border-color: #222226; padding: 14px 16px; }
.pc-h { display: flex; align-items: center; gap: 8px; font-family: var(--m); font-size: 11px; color: #8E8E93; margin-bottom: 10px; }
.dots { display: flex; gap: 4px; } .dots i { width: 8px; height: 8px; border-radius: 50%; background: #FF5F57; } .dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.pc-code pre { margin: 0; font-family: var(--m); font-size: 11.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.pc-code .k { color: #FF7AB2; } .pc-code .f { color: #67B7FF; } .pc-code .s { color: #FFC56B; }
.pc-k { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.pc-model { grid-column: 4; grid-row: 1; }
.pc-big { font-size: 34px; font-weight: 700; letter-spacing: -.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-big small { font-size: 12px; letter-spacing: 0; font-weight: 500; color: var(--ink-3); -webkit-text-fill-color: var(--ink-3); }
.pc-bars { display: grid; gap: 6px; margin-top: 12px; }
.pc-bars i { display: block; height: 7px; border-radius: 99px; width: calc(var(--w) * var(--q)); background: linear-gradient(90deg, #0A66FF, #8C74FF); }
.pc-build { grid-column: 4; grid-row: 2; }
.pc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; color: var(--ink-2); }
.pc-row b { font-weight: 600; color: var(--green); font-family: var(--m); font-size: 12px; }
.pc-row.muted b { color: var(--ink-3); }
.pc-learn .pc-row b { color: var(--violet); }
.pc-board { grid-column: 1; grid-row: 3; }
.pc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pc-cols > div { display: grid; gap: 5px; align-content: start; min-height: 46px; padding: 5px; border-radius: 10px; background: var(--bg-2); }
.pc-cols i { display: block; height: 14px; border-radius: 5px; background: var(--card-bg); border-left: 3px solid #C7C7CC; }
.pc-cols i.s { height: 9px; } .pc-cols i.b { border-left-color: var(--blue); animation: pmMove 4s ease-in-out infinite; } .pc-cols i.g { border-left-color: var(--green); }
.pc-spec { grid-column: 2; grid-row: 3; }
.pc-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--ink-2); font-size: 12.5px; }
.pc-check b { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 10px; }
.pc-learn { grid-column: 3 / 5; grid-row: 3; }
.pc-prog { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin: 4px 0; }
.pc-prog i { display: block; height: 100%; width: calc(78% * var(--q)); border-radius: 99px; background: linear-gradient(90deg, #7A5CFF, #C04BFF); }

/* ---------- Statement (scrubbed) ---------- */
.statement { --p: 0; height: 260vh; position: relative; }
.statement-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.statement-text { width: min(1040px, calc(100% - 44px)); margin: 0 auto; font-size: clamp(32px, 4.6vw, 62px); line-height: 1.12; letter-spacing: -.04em; font-weight: 650; }
.statement-text .w { color: var(--ink); opacity: .14; transition: opacity .25s linear; }
.statement-text .w.on { opacity: 1; }

/* ---------- Section heads ---------- */
section.wrap, .skills, .research { padding-top: clamp(100px, 13vw, 170px); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.kicker { font-size: 17px; font-weight: 600; color: var(--blue); margin-bottom: 12px; letter-spacing: -.01em; }
.kicker-light { color: #4D8FFF; }
.sec-head h2, .research-head h2 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; max-width: 900px; }

/* Reveal */
.rv { opacity: 0; transform: translateY(48px) scale(.98); filter: blur(6px); transition: opacity 1.1s var(--d, 0s) var(--ease), transform 1.1s var(--d, 0s) var(--ease), filter 1.1s var(--d, 0s) var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }

/* ---------- Numbers ---------- */
.numbers.wrap { padding-top: 40px; }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.num { background: var(--bg-2); border-radius: var(--r); padding: 30px 26px; display: flex; flex-direction: column; gap: 8px; min-height: 190px; justify-content: flex-end; }
.num b { font-size: clamp(44px, 4.6vw, 64px); letter-spacing: -.05em; line-height: 1; font-weight: 700; }
.num > span { color: var(--ink-2); font-size: 15px; line-height: 1.35; }
.num-award { background: linear-gradient(160deg, #FFF6E3, #FFE9C2); position: relative; overflow: hidden; }
.num-award b { font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -.03em; }
.num-award::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 4.5s 1s ease-in-out infinite; }
@keyframes sheen { 45%, 100% { transform: translateX(120%); } }
.trophy { width: 34px; height: 34px; margin-bottom: auto; fill: none; stroke: #B7791F; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); gap: 14px; }
.tile { position: relative; background: var(--bg-2); border-radius: var(--r); padding: 36px; overflow: hidden; display: flex; flex-direction: column; gap: 28px; transition: transform .6s var(--ease); }
.tile:hover { transform: scale(1.012); }
.t-wide { grid-column: span 2; flex-direction: row; align-items: center; }
.t-tall { grid-row: span 2; }
.t-dark { background: #0B0B0F; color: #F5F5F7; }
.tile-copy { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-k { font-size: 14px; font-weight: 600; color: var(--blue); }
.t-dark .tile-k { color: #4D8FFF; }
.tile h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; }
.tile p:not(.tile-k) { color: var(--ink-2); font-size: 16px; }
.t-dark p:not(.tile-k) { color: #A1A1A6; }
.tile em { font-style: normal; color: var(--ink); font-weight: 600; }
.t-dark em { color: #fff; }

.stack-vis { flex: 1; display: flex; flex-direction: column; gap: 10px; perspective: 900px; }
.layer { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .15); font-weight: 600; transform: rotateX(18deg) translateY(30px); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); }
.layer small { font-family: var(--m); font-size: 11px; color: var(--ink-3); font-weight: 500; }
.l1 { border-left: 4px solid var(--blue); } .l2 { border-left: 4px solid var(--violet); transition-delay: .12s; } .l3 { border-left: 4px solid #C04BFF; transition-delay: .24s; }
.in .layer { transform: none; opacity: 1; }

.mini-phone { margin: auto auto 0; width: 62%; max-width: 200px; aspect-ratio: 9 / 16; border-radius: 30px 30px 0 0; background: #0B0B0F; padding: 10px 10px 0; display: flex; flex-direction: column; gap: 8px; margin-bottom: -36px; }
.mini-phone i { display: block; border-radius: 14px; background: #2A2A2E; height: 22%; transform: scaleX(.3); transform-origin: left; opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.mini-phone i:first-child { background: var(--blue); height: 30%; }
.mini-phone i:nth-child(2) { transition-delay: .1s; } .mini-phone i:nth-child(3) { transition-delay: .2s; } .mini-phone i:nth-child(4) { transition-delay: .3s; }
.in .mini-phone i { transform: none; opacity: 1; }

.nn svg { width: 100%; max-width: 300px; margin-left: auto; }
.nn .nodes circle { fill: #1C1C1E; stroke: #4D8FFF; stroke-width: 1.5; }
.nn .nodes .out { fill: var(--blue); stroke: none; animation: glow 2.4s ease-in-out infinite; }
.nn .edges path { stroke-dasharray: 4 6; animation: flow 2s linear infinite; stroke: #4D8FFF; opacity: .5; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes glow { 50% { filter: drop-shadow(0 0 8px #4D8FFF); } }

.checks { display: grid; gap: 8px; }
.checks p { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 500; font-size: 15px; color: var(--ink) !important; opacity: 0; transform: translateX(-20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.checks p:nth-child(2) { transition-delay: .15s; } .checks p:nth-child(3) { transition-delay: .3s; }
.checks i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 12px; }
.in .checks p { opacity: 1; transform: none; }

/* ---------- Work (pinned horizontal) ---------- */
.work { --p: 0; position: relative; margin-top: clamp(60px, 8vw, 110px); }
.work-sticky { position: sticky; top: 0; height: 100vh; min-height: 680px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 40px; }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.work-ctrl { display: flex; align-items: center; gap: 24px; }
.work-count { font-family: var(--m); font-size: 14px; color: var(--ink-3); }
.work-count b { color: var(--ink); font-weight: 500; }
.track-wrap { width: 100%; }
.track { display: flex; gap: 20px; padding-inline: max(22px, calc((100vw - var(--wrap)) / 2)); width: max-content; will-change: transform; }
.card { width: min(440px, 80vw); background: var(--bg-2); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; flex: none; transition: transform .6s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card-vis { position: relative; height: 230px; display: grid; place-items: center; overflow: hidden; }
.card-body { padding: 4px 30px 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-k { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.card h3 { font-size: 30px; letter-spacing: -.04em; font-weight: 700; }
.card-body > p:not(.card-k) { color: var(--ink-2); font-size: 15.5px; flex: 1; }
.card .text-link { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips li { font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--ink-2); }
.chips-dark li { background: #1C1C1E; color: #C7C7CC; }

.c-gyr .card-vis { background: linear-gradient(160deg, #EAF2FF, #F5F5F7); }
.cv-gyr { display: flex; align-items: flex-end; gap: 18px; height: 160px; }
.cv-gyr p { display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; height: 100%; font-family: var(--m); font-size: 11px; color: var(--ink-3); }
.cv-gyr i { width: 46px; height: var(--h); border-radius: 12px 12px 4px 4px; background: linear-gradient(var(--blue), #4D8FFF); transform-origin: bottom; transform: scaleY(.08); transition: transform 1.2s var(--ease); }
.cv-gyr p:nth-child(3) i { background: linear-gradient(#FF9F0A, #FFC15A); } .cv-gyr p:nth-child(4) i { background: linear-gradient(#FF453A, #FF7A70); }
.cv-gyr p:nth-child(2) i { transition-delay: .1s; } .cv-gyr p:nth-child(3) i { transition-delay: .2s; } .cv-gyr p:nth-child(4) i { transition-delay: .3s; }
.work.in-view .cv-gyr i { transform: none; }

.c-inv .card-vis { background: linear-gradient(160deg, #F0ECFF, #F5F5F7); }
.cv-inv { position: relative; width: 74%; height: 150px; display: flex; gap: 5%; }
.cv-inv i { position: relative; flex: 1; }
.cv-inv i::before { content: ""; position: absolute; left: 50%; width: 1.5px; bottom: calc(var(--y) - 10%); height: calc(var(--h) + 20%); background: #C7C7CC; }
.cv-inv i::after { content: ""; position: absolute; left: 0; right: 0; bottom: var(--y); height: var(--h); border-radius: 4px; background: var(--green); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); }
.cv-inv i.d::after { background: var(--red); }
.work.in-view .cv-inv i::after { transform: none; }
.cv-inv i:nth-child(2)::after { transition-delay: .06s } .cv-inv i:nth-child(3)::after { transition-delay: .12s } .cv-inv i:nth-child(4)::after { transition-delay: .18s } .cv-inv i:nth-child(5)::after { transition-delay: .24s } .cv-inv i:nth-child(6)::after { transition-delay: .3s } .cv-inv i:nth-child(7)::after { transition-delay: .36s } .cv-inv i:nth-child(8)::after { transition-delay: .42s } .cv-inv i:nth-child(9)::after { transition-delay: .48s }
.vis-tag { position: absolute; top: 16px; left: 18px; font-family: var(--m); font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 99px; background: #fff; color: var(--violet); }

.c-q .card-vis { background: linear-gradient(160deg, #E9F9F0, #F5F5F7); }
.q-win { width: 78%; background: #0B0B0F; border-radius: 14px; padding: 14px 16px; font-family: var(--m); font-size: 12px; color: #fff; line-height: 1.8; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .4); }
.q-dots { display: flex; gap: 5px; margin-bottom: 6px; } .q-dots i { width: 8px; height: 8px; border-radius: 50%; background: #FF5F57; } .q-dots i:nth-child(2) { background: #FEBC2E; } .q-dots i:nth-child(3) { background: #28C840; }
.q-kw { color: #FF7AB2; } .q-kw span { color: #E6E6E6; }
.q-res { color: #5AD58A; }

.c-nin .card-vis { background: linear-gradient(160deg, #FFF1E6, #F5F5F7); }
.cv-nin { background: #fff; border-radius: 18px; padding: 18px 22px; display: grid; gap: 6px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .2); font-family: var(--m); }
.nin-l { font-size: 11px; color: var(--ink-3); letter-spacing: .2em; } .cv-nin code { font-size: 18px; letter-spacing: .04em; } .nin-ok { font-size: 12px; color: var(--green); font-weight: 500; }

.c-xl .card-vis { background: linear-gradient(160deg, #E8F7EE, #F5F5F7); }
.cv-xl { width: 64%; background: #fff; border-radius: 12px; overflow: hidden; font-family: var(--m); font-size: 12px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .2); }
.cv-xl p { display: flex; justify-content: space-between; padding: 7px 14px; border-bottom: 1px solid #F0F0F3; color: var(--ink-2); }
.cv-xl .h { background: #F5F5F7; color: var(--ink-3); }
.cv-xl em { font-style: normal; width: 20px; text-align: center; border-radius: 6px; } .cv-xl .ok { color: var(--green); } .cv-xl .ko { color: #fff; background: var(--red); }

.c-b64 .card-vis { background: linear-gradient(160deg, #EEF0FF, #F5F5F7); }
.cv-b64 { display: flex; align-items: center; gap: 14px; padding: 0 20px; }
.b64-img { flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--grad); box-shadow: 0 12px 24px -10px rgba(10, 102, 255, .6); }
.b64-arrow { font-size: 22px; color: var(--blue); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.cv-b64 code { font-family: var(--m); font-size: 11px; background: #fff; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); word-break: break-all; max-width: 180px; }

.c-lms .card-vis { background: linear-gradient(160deg, #FFF4E5, #F5F5F7); }
.cv-lms { position: relative; width: 72%; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .2); display: grid; gap: 6px; font-size: 12px; }
.cv-lms > b { font-size: 15px; letter-spacing: -.02em; }
.lms-k { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.lms-bar { height: 6px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.lms-bar i { display: block; height: 100%; width: 72%; border-radius: 99px; background: linear-gradient(90deg, #FF9F0A, #FF6B3A); transform: scaleX(0); transform-origin: left; transition: transform 1.4s .2s var(--ease); }
.work.in-view .lms-bar i { transform: none; }
.lms-pct { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 11px; }
.cv-lms ul { display: grid; gap: 3px; margin-top: 4px; color: var(--ink-2); font-size: 11.5px; }
.cv-lms li.done { color: var(--green); }
.lms-cert { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .3); font-size: 20px; animation: nudge 3s ease-in-out infinite; }
.c-pm .card-vis { background: linear-gradient(160deg, #EFEAFF, #F5F5F7); }
.cv-pm { position: relative; width: 80%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pm-col { background: #fff; border-radius: 12px; padding: 8px; display: grid; gap: 6px; align-content: start; min-height: 96px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .25); }
.pm-col span { font-size: 9.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.pm-col i { display: block; height: 22px; border-radius: 7px; background: var(--bg-2); border-left: 3px solid #C7C7CC; }
.pm-col i.s { height: 14px; }
.pm-col i.b { border-left-color: var(--blue); background: #EEF4FF; animation: pmMove 4s ease-in-out infinite; }
.pm-col i.o { border-left-color: #FF9F0A; }
.pm-col i.g { border-left-color: var(--green); }
@keyframes pmMove { 0%, 40% { transform: none; } 55%, 85% { transform: translateX(calc(100% + 24px)); opacity: .6; } 100% { transform: none; } }
.pm-gantt { grid-column: span 3; background: #fff; border-radius: 12px; padding: 8px 10px; display: grid; gap: 5px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .25); }
.pm-gantt i { display: block; height: 6px; border-radius: 99px; margin-left: var(--l); width: var(--w); background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.pm-gantt i.v { background: var(--blue); transition-delay: .15s; } .pm-gantt i.g { background: var(--green); transition-delay: .3s; }
.work.in-view .pm-gantt i { transform: none; }
.pm-timer { position: absolute; top: -12px; right: -10px; font-family: var(--m); font-size: 11px; padding: 4px 10px; border-radius: 99px; background: #0B0B0F; color: #fff; }
.work-bar { margin-top: 34px; height: 3px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.work-bar span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(calc((1 + var(--p) * (var(--n, 6) - 1)) / var(--n, 6))); }

/* ---------- Research (dark) ---------- */
.research { background: #000; color: #F5F5F7; margin-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(100px, 12vw, 160px); position: relative; overflow: hidden; }
.research::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; background: radial-gradient(circle, rgba(10, 102, 255, .28), transparent 60%); pointer-events: none; }
.research-in { position: relative; }
.research-head { margin-bottom: 60px; }
.research-head h2 { max-width: 980px; }
.research-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.r-copy { display: grid; gap: 20px; font-size: 19px; color: #A1A1A6; }
.r-copy p:first-child { color: #F5F5F7; }
.r-meta { font-size: 15px; color: #86868B; padding-top: 18px; border-top: 1px solid #2A2A2E; }
.r-vis { background: #0F0F12; border: 1px solid #1F1F23; border-radius: var(--r); padding: 34px; display: grid; gap: 26px; }
.r-score b { display: block; font-size: clamp(80px, 10vw, 132px); line-height: .9; letter-spacing: -.06em; font-weight: 700; background: linear-gradient(180deg, #fff, #8AB4FF); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.r-score span { color: #86868B; font-family: var(--m); font-size: 13px; }
.r-vs { display: flex; align-items: center; gap: 12px; font-family: var(--m); font-size: 13px; color: #86868B; }
.r-vs i { flex: 1; height: 1px; background: linear-gradient(90deg, #2A2A2E, #4D8FFF); }
.r-vs b { color: #fff; font-weight: 500; padding: 4px 12px; border-radius: 99px; background: rgba(10, 102, 255, .2); }
.shap { display: grid; gap: 10px; }
.shap-t { font-size: 12px; color: #6E6E73; font-family: var(--m); }
.shap p:not(.shap-t) { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; font-family: var(--m); font-size: 12px; color: #A1A1A6; }
.shap i { display: block; height: 10px; border-radius: 99px; width: var(--w); background: linear-gradient(90deg, #0A66FF, #8AB4FF); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.shap p:nth-child(3) i { transition-delay: .1s; } .shap p:nth-child(4) i { transition-delay: .2s; } .shap p:nth-child(5) i { transition-delay: .3s; } .shap p:nth-child(6) i { transition-delay: .4s; }
.in .shap i { transform: none; }

/* ---------- Experience ---------- */
.exp-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: 60px; align-items: start; }
.exp-head { position: sticky; top: 100px; }
.exp-head h2 { font-size: clamp(36px, 4.2vw, 56px); }
.exp-loc { margin-top: 18px; color: var(--ink-3); }
.roles { display: grid; gap: 16px; }
.role { background: var(--bg-2); border-radius: var(--r); padding: 34px 36px; }
.role-date { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.role h3 { font-size: 28px; letter-spacing: -.035em; margin: 6px 0 18px; font-weight: 700; }
.role ul { display: grid; gap: 12px; }
.role li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.role li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.role b { color: var(--ink); font-weight: 600; }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.edu-card { background: var(--bg-2); border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; gap: 8px; }
.edu-main { grid-row: span 2; background: linear-gradient(170deg, #EAF2FF 0%, #F5F5F7 60%); }
.edu-main h3 { font-size: clamp(28px, 3vw, 38px); margin-top: 30px; }
.edu-main p:last-child { margin-top: auto; color: var(--ink-2); font-size: 16px; padding-top: 20px; }
.edu-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.badge-merit { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 99px; background: #FFF1D6; color: #9A6200; }
.badge-gray { background: #E8E8ED; color: var(--ink-2); }
.edu-card h3 { font-size: 22px; letter-spacing: -.03em; font-weight: 700; line-height: 1.15; margin-top: 18px; }
.school { color: var(--blue); font-weight: 500; font-size: 15.5px; }

/* ---------- Skills marquee ---------- */
.marquee { overflow: hidden; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee + .marquee { margin-top: 10px; }
.mq-track { display: flex; gap: 10px; width: max-content; animation: mq 50s linear infinite; }
.marquee.rev .mq-track { animation-direction: reverse; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-track span { font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; padding: 16px 26px; border-radius: 999px; background: var(--bg-2); white-space: nowrap; transition: background .3s, color .3s; }
.mq-track span:hover { background: var(--ink); color: #fff; }
@keyframes mq { to { transform: translateX(calc(-50% - 5px)); } }

/* ---------- Lab ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lab-grid article { padding: 28px; border-radius: 22px; border: 1px solid var(--line); transition: border-color .3s, transform .5s var(--ease); }
.lab-grid article:hover { border-color: var(--ink-3); }
.lab-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); color: var(--blue); font-size: 18px; margin-bottom: 18px; }
.lab-grid h3 { font-size: 19px; letter-spacing: -.025em; margin-bottom: 6px; font-weight: 650; }
.lab-grid p { font-size: 15px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 40px; }
.contact-in { text-align: center; background: var(--bg-2); border-radius: 40px; padding: clamp(60px, 9vw, 120px) 24px; }
.contact-mark { width: 76px; height: 76px; margin: 0 auto 30px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18)); }
@keyframes float { 50% { transform: translateY(-10px) rotate(-3deg); } }
.contact h2 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -.05em; font-weight: 700; }
.contact-in > p { max-width: 560px; margin: 22px auto 0; color: var(--ink-2); font-size: 19px; }
.ct-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.contact .pill-ghost { background: #fff; }
.ct-links { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 30px; font-size: 15px; font-weight: 500; }
.ct-links a, .ct-links button { color: var(--blue); }
.ct-links a:hover, .ct-links button:hover { text-decoration: underline; text-underline-offset: 3px; }

.foot { padding: 30px 0 40px; border-top: 1px solid var(--line); margin-top: 60px; color: var(--ink-3); font-size: 13px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 30px); opacity: 0; visibility: hidden; padding: 12px 20px; border-radius: 999px; background: rgba(29, 29, 31, .92); color: #fff; font-size: 14px; font-weight: 500; backdrop-filter: blur(10px); transition: all .45s var(--ease); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

body.swap [data-i18n] { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; filter: blur(5px); } }

.cv { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .links a { padding: 6px 8px; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .links { position: fixed; top: 56px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 22px 22px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--ease); }
  .links.open { opacity: 1; pointer-events: auto; transform: none; }
  .links a { font-size: 22px; font-weight: 600; color: var(--ink); padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .burger { display: flex; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-wide { grid-column: span 2; }
  .t-tall { grid-row: span 1; }
  .research-grid, .exp-grid { grid-template-columns: 1fr; gap: 40px; }
  .exp-head { position: static; }
  .edu-grid { grid-template-columns: 1fr 1fr; } .edu-main { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 760px), (max-height: 560px) {
  .hero { height: auto; }
  .hero-sticky { position: relative; height: auto; min-height: 0; padding-bottom: 60px; overflow: visible; }
  .hero-text { position: relative; opacity: 1; transform: none; padding-top: 110px; }
  .assembly { --q: 1; position: relative; left: auto; top: auto; width: calc(100% - 40px); margin: 48px auto 0; transform: none; grid-template-columns: 1fr 1fr; }
  .pc-profile { grid-column: 1 / 3; grid-row: auto; }
  .pc-code { grid-column: 1 / 3; grid-row: auto; }
  .pc-model, .pc-build, .pc-board, .pc-spec { grid-column: auto; grid-row: auto; }
  .pc-learn { grid-column: 1 / 3; grid-row: auto; }
  .work { height: auto !important; }
  .work-sticky { position: relative; height: auto; min-height: 0; overflow: visible; }
  .track-wrap { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 10px; }
  .track-wrap::-webkit-scrollbar { display: none; }
  .track { transform: none !important; }
  .card { scroll-snap-align: center; }
  .work-bar, .work-count { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .brand-word { display: none; }
  .tools .pill-sm { display: none; }
  .hero-cta { flex-direction: column; gap: 16px; }
  .statement { height: 220vh; }
  .num-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .num { padding: 22px 18px; min-height: 150px; }
  .bento { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .tile { padding: 28px 24px; }
  .mini-phone { width: 46%; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .card-vis { height: 200px; }
  .card-body { padding: 4px 22px 26px; }
  .r-vis { padding: 24px; }
  .shap p:not(.shap-t) { grid-template-columns: 110px 1fr; font-size: 11px; }
  .role { padding: 26px 22px; }
  .edu-grid, .lab-grid { grid-template-columns: 1fr; } .edu-main { grid-column: auto; }
  .contact-in { border-radius: 28px; }
  .ct-actions .pill-lg { width: 100%; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .intro, .rv { opacity: 1; transform: none; filter: none; }
}

/* ==========================================================
   PRINT — only the CV
   ========================================================== */
@media print {
  @page { size: A4; margin: 10mm 12mm; }
  body { font-size: 9.2pt; line-height: 1.38; color: #1D1D1F; background: #fff; }
  body > *:not(.cv) { display: none !important; }
  .cv { display: block !important; }
  .cv-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14pt; align-items: center; padding-bottom: 12pt; border-bottom: 1.5pt solid #1D1D1F; }
  .cv-mark { width: 44pt; height: 44pt; }
  .cv h1 { font-size: 23pt; letter-spacing: -.04em; line-height: 1; }
  .cv-role { font-size: 10pt; color: #0A66FF; font-weight: 500; margin-top: 5pt; }
  .cv-contact { font-size: 8pt; color: #6E6E73; text-align: right; line-height: 1.6; }
  .cv-summary { margin: 9pt 0 2pt; font-size: 9.4pt; color: #333; }
  .cv-cols { display: grid; grid-template-columns: 1fr 175pt; gap: 20pt; }
  .cv h2 { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .14em; color: #0A66FF; margin: 10pt 0 5pt; padding-bottom: 3pt; border-bottom: .5pt solid #D2D2D7; }
  .cv-item { margin-bottom: 7pt; break-inside: avoid; }
  .cv-line { display: flex; justify-content: space-between; gap: 10pt; font-size: 10.2pt; }
  .cv-line > span { font-size: 8.5pt; color: #6E6E73; white-space: nowrap; }
  .cv-item ul { margin-top: 3pt; display: grid; gap: 2.5pt; }
  .cv-item li { position: relative; padding-left: 9pt; color: #333; }
  .cv-item li::before { content: ""; position: absolute; left: 0; top: .6em; width: 3pt; height: 3pt; border-radius: 50%; background: #0A66FF; }
  .cv-item p { color: #333; }
  .cv-side .cv-item b { display: block; font-size: 9.6pt; line-height: 1.25; }
  .cv-sm { font-size: 8.3pt; color: #6E6E73 !important; }
  .cv-sk { font-size: 8.8pt; color: #333; margin-bottom: 5pt; }
  .cv-sk b { display: block; color: #1D1D1F; }
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================
   DARK MODE
   ========================================================== */
:root { --mark-bg: #0B0B0F; --mark-fg: #FFFFFF; --nav-bg: rgba(255, 255, 255, .72); --chip: #FFFFFF; --card-bg: #FFFFFF; --card-line: #E8E8ED; }
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #161618;
  --bg-3: #242427;
  --ink: #F5F5F7;
  --ink-2: #A1A1A6;
  --ink-3: #8E8E93;
  --line: #2C2C2E;
  --blue: #2F7DFF;
  --blue-2: #5A97FF;
  --grad: linear-gradient(90deg, #3B8BFF 0%, #8C74FF 55%, #D27BFF 100%);
  --mark-bg: #F5F5F7; --mark-fg: #0B0B0F;
  --nav-bg: rgba(0, 0, 0, .7);
  --chip: #2A2A2D;
  --card-bg: #1C1C1E;
  --card-line: #2C2C2E;
  color-scheme: dark;
}
html.theming body, html.theming body * { transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), fill .5s var(--ease) !important; }
.nav { background: var(--nav-bg); }
:root[data-theme="dark"] .nav.scrolled { border-bottom-color: rgba(255, 255, 255, .1); }

.theme-btn { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); overflow: hidden; transition: background .3s; }
.theme-btn:hover { background: var(--bg-3); }
.theme-btn svg { position: absolute; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease), opacity .4s; }
.i-sun { transform: translateY(120%) rotate(-90deg); opacity: 0; }
.i-moon { transform: none; opacity: 1; }
[data-theme="dark"] .i-sun { transform: none; opacity: 1; }
[data-theme="dark"] .i-moon { transform: translateY(-120%) rotate(90deg); opacity: 0; }


/* surfaces that were pure white */
:root[data-theme="dark"] .seg-pill { background: #3A3A3C; box-shadow: none; }
:root[data-theme="dark"] .layer,
:root[data-theme="dark"] .checks p,
:root[data-theme="dark"] .chips li,
:root[data-theme="dark"] .vis-tag,
:root[data-theme="dark"] .cv-nin,
:root[data-theme="dark"] .cv-xl,
:root[data-theme="dark"] .cv-b64 code,
:root[data-theme="dark"] .cv-lms,
:root[data-theme="dark"] .pm-col,
:root[data-theme="dark"] .pm-gantt,
:root[data-theme="dark"] .lms-cert,
:root[data-theme="dark"] .contact .pill-ghost { background: var(--chip); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .cv-xl p { border-color: #38383B; }
:root[data-theme="dark"] .cv-xl .h { background: #333336; }
:root[data-theme="dark"] .pm-col i { background: #38383B; }
:root[data-theme="dark"] .pm-col i.b { background: rgba(47, 125, 255, .2); }
:root[data-theme="dark"] .lms-bar { background: #3A3A3C; }
:root[data-theme="dark"] .tile.t-dark { background: #0B0B0D; border: 1px solid var(--line); }
:root[data-theme="dark"] .mini-phone { background: #2A2A2D; }
:root[data-theme="dark"] .mini-phone i:not(:first-child) { background: #3A3A3D; }

/* tinted card visuals */
:root[data-theme="dark"] .c-gyr .card-vis { background: linear-gradient(160deg, rgba(47, 125, 255, .22), var(--bg-2)); }
:root[data-theme="dark"] .c-inv .card-vis { background: linear-gradient(160deg, rgba(122, 92, 255, .24), var(--bg-2)); }
:root[data-theme="dark"] .c-lms .card-vis { background: linear-gradient(160deg, rgba(255, 159, 10, .2), var(--bg-2)); }
:root[data-theme="dark"] .c-pm .card-vis { background: linear-gradient(160deg, rgba(140, 116, 255, .24), var(--bg-2)); }
:root[data-theme="dark"] .c-q .card-vis { background: linear-gradient(160deg, rgba(29, 185, 84, .2), var(--bg-2)); }
:root[data-theme="dark"] .c-nin .card-vis { background: linear-gradient(160deg, rgba(255, 122, 64, .2), var(--bg-2)); }
:root[data-theme="dark"] .c-xl .card-vis { background: linear-gradient(160deg, rgba(29, 185, 84, .18), var(--bg-2)); }
:root[data-theme="dark"] .c-b64 .card-vis { background: linear-gradient(160deg, rgba(92, 110, 255, .22), var(--bg-2)); }
:root[data-theme="dark"] .cv-inv i::before { background: #48484A; }

:root[data-theme="dark"] .num-award { background: linear-gradient(160deg, #2B2213, #1C1710); }
:root[data-theme="dark"] .num-award::after { background: linear-gradient(115deg, transparent 35%, rgba(255, 210, 120, .14) 50%, transparent 65%); }
:root[data-theme="dark"] .trophy { stroke: #F0B44C; }
:root[data-theme="dark"] .badge-merit { background: rgba(255, 193, 77, .14); color: #FFC14D; }
:root[data-theme="dark"] .badge-gray { background: #2C2C2E; color: var(--ink-2); }
:root[data-theme="dark"] .edu-main { background: linear-gradient(170deg, rgba(47, 125, 255, .2) 0%, var(--bg-2) 60%); }
:root[data-theme="dark"] .mq-track span:hover { background: var(--ink); color: var(--bg); }
:root[data-theme="dark"] .research { background: #0A0A0C; border-block: 1px solid var(--line); }
:root[data-theme="dark"] .lab-grid article:hover { border-color: #48484A; }
:root[data-theme="dark"] .contact-mark { filter: drop-shadow(0 18px 40px rgba(47, 125, 255, .35)); }
:root[data-theme="dark"] .toast { background: rgba(245, 245, 247, .94); color: #000; }
@media (max-width: 900px) { :root[data-theme="dark"] .links { background: rgba(0, 0, 0, .96); } }
@media print { html[data-theme] { --mark-bg: #0B0B0F !important; --mark-fg: #FFFFFF !important; color-scheme: light; } html[data-theme] body { background: #fff; } }
:root[data-theme="dark"] .pc { box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9); }
:root[data-theme="dark"] .pc-profile { background: linear-gradient(160deg, #13203A, #0B0B0F 60%); border-color: #26324A; }
:root[data-theme="dark"] .pc-cols i { background: #2C2C2E; }
