/* ==========================================================================
   Harsh Kumar — Personal Digital Headquarters
   Design system: near-black / deep navy, electric blue, cyan, subtle violet.
   ========================================================================== */

:root {
  --bg: #04060c;
  --bg-2: #070b16;
  --navy: #0b1224;
  --panel: rgba(13, 20, 38, 0.55);
  --panel-solid: #0c1325;
  --panel-hi: rgba(22, 33, 60, 0.6);
  --line: rgba(130, 160, 255, 0.11);
  --line-hi: rgba(120, 165, 255, 0.28);
  --text: #e9edf6;
  --text-2: #b9c1d4;
  --muted: #7f89a0;
  --blue: #3b82f6;
  --blue-hi: #60a5fa;
  --blue-deep: #1d4ed8;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --grad: linear-gradient(100deg, #60a5fa 0%, #3b82f6 35%, #22d3ee 100%);
  --glow: 0 0 0 1px rgba(96, 165, 250, 0.25), 0 10px 40px -12px rgba(59, 130, 246, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(59, 130, 246, 0.4); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
main { position: relative; z-index: 1; outline: none; overflow-x: clip; }
html { overflow-x: clip; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 1000; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.big { font-family: var(--display); font-size: 22px; margin-bottom: 16px; }
.h3 { font-size: clamp(20px, 2.2vw, 26px); margin: 48px 0 20px; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }

/* ---------- Backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(120, 150, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-glow.g1 { width: 620px; height: 620px; top: -220px; right: -120px; background: radial-gradient(circle, rgba(37, 99, 235, .55), transparent 65%); animation: drift 22s ease-in-out infinite alternate; }
.bg-glow.g2 { width: 520px; height: 520px; bottom: -260px; left: -180px; background: radial-gradient(circle, rgba(139, 92, 246, .28), transparent 65%); animation: drift 28s ease-in-out infinite alternate-reverse; }
.bg-noise { position: absolute; inset: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate3d(-60px, 60px, 0) scale(1.08); } }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 999; display: none; place-items: center; background: var(--bg); transition: opacity .5s var(--ease), visibility .5s; }
.js:not(.seen) .loader { display: grid; }
@media (prefers-reduced-motion: reduce) { .loader { display: none !important; } }
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.loader-mark span { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-mark i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(96, 165, 250, .15); border-top-color: var(--blue-hi); animation: spin 0.9s linear infinite; }

/* ---------- Buttons, chips, pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
  border: 1px solid transparent; will-change: transform;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(180deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 8px 28px -10px rgba(59, 130, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { box-shadow: 0 12px 36px -8px rgba(59, 130, 246, .9), inset 0 1px 0 rgba(255, 255, 255, .25); background: linear-gradient(180deg, #4f8ff7, #2563eb); }
.btn-ghost { border-color: var(--line-hi); background: rgba(13, 20, 38, .4); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(96, 165, 250, .6); background: rgba(30, 58, 138, .25); }
.btn-text { color: var(--text-2); padding: 0 8px; }
.btn-text:hover { color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: rgba(13, 20, 38, .5); transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--line-hi); background: rgba(30, 58, 138, .25); }
.icon-btn .ic { width: 20px; height: 20px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--line); background: rgba(13, 20, 38, .5); color: var(--text-2); transition: all .2s;
}
.chip:hover { color: #fff; border-color: var(--line-hi); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 20px -8px rgba(59, 130, 246, .9); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; border: 1px solid; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tone-ok { color: var(--ok); } .pill.tone-ok { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .3); }
.tone-live { color: var(--blue-hi); } .pill.tone-live { background: rgba(59, 130, 246, .1); border-color: rgba(96, 165, 250, .35); }
.tone-exp { color: #c4b5fd; } .pill.tone-exp { background: rgba(139, 92, 246, .1); border-color: rgba(167, 139, 250, .35); }
.tone-plan { color: #94a3b8; } .pill.tone-plan { background: rgba(148, 163, 184, .06); border-color: rgba(148, 163, 184, .25); }
.tone-mute { color: #64748b; } .pill.tone-mute { background: transparent; border-color: rgba(100, 116, 139, .3); }
.pill.tone-live::before { box-shadow: 0 0 0 0 rgba(96, 165, 250, .7); animation: ping 2s infinite; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12px; color: var(--text-2); background: rgba(59, 130, 246, .07); border: 1px solid rgba(96, 165, 250, .14); }
.tag i { font-size: 14px; }
.tag.link:hover { color: #fff; border-color: var(--line-hi); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags.big .tag { font-size: 13.5px; padding: 7px 12px; }
.bar { display: block; height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .12); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transform-origin: left; }
.js .bar i { transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
.js .in .bar i, .js .bar.in i, .js .in.bar i { transform: scaleX(1); }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); line-height: 1.7; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-hi); font-weight: 500; }
.link-arrow:hover { color: #fff; }
.link-arrow .ic { transition: transform .2s; width: 16px; height: 16px; }
.link-arrow:hover .ic { transform: translateX(3px); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2.2s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.pulse-dot { color: rgba(52, 211, 153, .6); }

.glass {
  background: linear-gradient(180deg, rgba(20, 30, 56, .5), rgba(10, 16, 32, .55));
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

/* ---------- Flash ---------- */
.flash-wrap { padding-top: calc(var(--nav-h) + 16px); display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-hi); background: rgba(13, 20, 38, .8); font-size: 14px; }
.flash-success { border-color: rgba(52, 211, 153, .4); color: #a7f3d0; }
.flash-error { border-color: rgba(248, 113, 113, .4); color: #fecaca; }
.flash-warning { border-color: rgba(251, 191, 36, .4); color: #fde68a; margin-bottom: 20px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .3s, border-color .3s, height .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(4, 6, 12, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 17px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, rgba(59, 130, 246, .9), rgba(34, 211, 238, .7)); box-shadow: 0 6px 20px -6px rgba(59, 130, 246, .8); font-family: var(--display); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 12px; font-size: 14px; color: var(--text-2); border-radius: 8px; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; }
.nav-links a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 480px) { .nav-resume span { display: none; } .nav-resume { padding: 0 12px; } }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: rgba(4, 6, 12, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow-y: auto; }
.mobile-menu:not([hidden]) { animation: fadeIn .3s var(--ease); }
.mobile-menu-inner { min-height: 100%; display: flex; flex-direction: column; padding: 16px var(--gutter) 32px; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.mobile-menu nav { display: flex; flex-direction: column; margin: 32px 0; }
.mobile-menu nav a { font-family: var(--display); font-size: clamp(30px, 9vw, 44px); font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-2); opacity: 0; transform: translateY(16px); animation: menuIn .5s var(--ease) forwards; animation-delay: calc(var(--d) * 45ms + 80ms); }
.mobile-menu nav a:hover, .mobile-menu nav a:focus { color: #fff; }
.mobile-menu-foot { margin-top: auto; display: grid; gap: 20px; }
@keyframes menuIn { to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
body.menu-open { overflow: hidden; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--text-2); background: rgba(13, 20, 38, .45); transition: all .2s; }
.socials a:hover { color: #fff; border-color: var(--line-hi); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section.is-featured::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .4), transparent); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.sec-title { font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; }
.sec-title.xl { font-size: clamp(36px, 6vw, 76px); }
.sec-sub { margin-top: 12px; color: var(--muted); max-width: 620px; font-size: clamp(15px, 1.4vw, 17px); }
.page-spacer { height: calc(var(--nav-h) + 20px); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 32px) 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-eyebrow { color: var(--blue-hi); }
.hero-title { font-size: clamp(46px, 7.6vw, 108px); font-weight: 700; line-height: .98; letter-spacing: -0.035em; }
.hero-title .line { display: block; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-roles { margin-top: 22px; font-family: var(--mono); font-size: clamp(15px, 1.6vw, 19px); color: var(--text); display: flex; align-items: center; gap: 10px; min-height: 1.8em; }
.role-prefix { color: var(--cyan); }
.role-text { transition: opacity .35s, transform .35s var(--ease), filter .35s; display: inline-block; }
.role-text.out { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
.caret { width: 9px; height: 1.2em; background: var(--blue-hi); border-radius: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-tagline { margin-top: 18px; font-family: var(--display); font-size: clamp(17px, 1.8vw, 21px); color: #cbd5ff; max-width: 560px; }
.hero-desc { margin-top: 14px; color: var(--text-2); max-width: 540px; font-size: clamp(15px, 1.35vw, 17px); }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-socials { margin-top: 28px; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(24px, 4vw, 48px); }
.availability { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(13, 20, 38, .5); }
.scroll-cue { width: 26px; height: 42px; border: 1.5px solid var(--line-hi); border-radius: 14px; position: relative; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--blue-hi); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.hero-visual { position: relative; }
.core-wrap { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin-left: auto; }
.core-halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .38), rgba(34, 211, 238, .08) 45%, transparent 70%); filter: blur(20px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.core-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.net-lines path { stroke: rgba(96, 165, 250, .22); stroke-width: 1; fill: none; stroke-dasharray: 4 6; animation: dash 18s linear infinite; }
.net-nodes circle { fill: var(--cyan); opacity: .6; animation: twinkle 3s ease-in-out infinite; }
.net-nodes circle:nth-child(2n) { animation-delay: -1.3s; fill: var(--blue-hi); }
.net-nodes circle:nth-child(3n) { animation-delay: -2.1s; }
@keyframes dash { to { stroke-dashoffset: -200; } }
@keyframes twinkle { 50% { opacity: .15; } }
.core-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(96, 165, 250, .2); animation: spin 40s linear infinite; }
.core-ring.r1 { inset: 24%; border-color: rgba(34, 211, 238, .28); animation-duration: 26s; }
.core-ring.r2 { inset: 12%; border-style: dashed; border-color: rgba(96, 165, 250, .2); animation-duration: 48s; animation-direction: reverse; }
.core-ring.r3 { inset: 1%; border-color: rgba(139, 92, 246, .16); animation-duration: 70s; }
.ring-node { position: absolute; top: 0; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; display: grid; place-items: center; border-radius: 12px; background: rgba(10, 16, 32, .9); border: 1px solid var(--line-hi); color: var(--blue-hi); box-shadow: 0 0 24px -4px rgba(59, 130, 246, .6); }
.ring-node.alt { top: auto; bottom: 0; margin: 0 0 -19px -19px; color: var(--cyan); }
.ring-node .ic { width: 18px; height: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.core { position: absolute; inset: 32%; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 35% 30%, #1e3a8a, #0b1224 70%); border: 1px solid rgba(96, 165, 250, .5); box-shadow: 0 0 0 8px rgba(59, 130, 246, .06), 0 0 60px rgba(59, 130, 246, .5), inset 0 0 40px rgba(34, 211, 238, .25); }
.core img { width: 100%; height: 100%; object-fit: cover; }
.core-initials { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 58px); letter-spacing: .02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.float-chip { position: absolute; display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 14px; font-family: var(--mono); font-size: 14px; color: var(--blue-hi); background: rgba(10, 16, 32, .8); border: 1px solid var(--line-hi); backdrop-filter: blur(8px); animation: float 7s ease-in-out infinite; }
.float-chip .ic { width: 20px; height: 20px; }
.float-chip.c1 { top: 10%; left: 12%; }
.float-chip.c2 { top: 36%; left: -2%; animation-delay: -2s; color: var(--cyan); }
.float-chip.c3 { top: 18%; right: 4%; animation-delay: -4s; }
.float-chip.c4 { top: 46%; right: -2%; animation-delay: -1s; color: #a78bfa; }
@keyframes float { 50% { transform: translateY(-12px); } }
.code-card { position: absolute; left: 4%; bottom: 6%; margin: 0; padding: 14px 18px; font: 12.5px/1.6 var(--mono); color: #a5b4fc; background: rgba(8, 12, 24, .85); border: 1px solid var(--line-hi); border-radius: 14px; box-shadow: 0 20px 40px -20px #000; backdrop-filter: blur(10px); animation: float 9s ease-in-out infinite; animation-delay: -3s; }
.code-card code { font: inherit; }
.hero-badge { position: absolute; right: 2%; bottom: 10%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 12.5px; color: var(--text-2); background: rgba(8, 12, 24, .85); border: 1px solid var(--line-hi); border-radius: 14px; backdrop-filter: blur(10px); max-width: 180px; }
.hero-badge-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); flex: none; }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 24px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .core-wrap { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .core-wrap { max-width: 300px; }
  .code-card { font-size: 10.5px; padding: 10px 12px; left: -2%; bottom: 0; }
  .hero-badge { display: none; }
  .float-chip { min-width: 38px; height: 38px; font-size: 12px; border-radius: 11px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-foot .scroll-cue { display: none; }
}

/* ---------- Stats ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; padding: 8px; }
.stat { padding: 20px 16px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat dd { margin: 0; font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat dt { order: 2; font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat { display: flex; flex-direction: column-reverse; }
@media (max-width: 560px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2n+1)::before { display: none; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-copy .prose { margin-bottom: 24px; }
.about-quote { margin: 28px 0; padding-left: 20px; border-left: 2px solid var(--blue); font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); color: #dbe4ff; line-height: 1.3; }
.meta-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.meta-list li { display: inline-flex; align-items: center; gap: 8px; }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 24px 0; }
.mv { padding: 20px; }
.mv p:last-child { color: var(--text-2); font-size: 14.5px; }
.about-photo { margin: 0 0 20px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.about-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.identity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.identity-card { position: relative; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(13, 20, 38, .45); display: grid; gap: 10px; transition: border-color .25s, transform .25s var(--ease), background .25s; }
.identity-card:hover { border-color: var(--line-hi); background: rgba(22, 33, 60, .55); transform: translateY(-3px); }
.identity-card .ic { width: 22px; height: 22px; color: var(--blue-hi); }
.id-num { position: absolute; top: 14px; right: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.id-title { font-weight: 600; font-size: 14.5px; }
.id-desc { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Beyond ---------- */
.beyond-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.beyond-card { padding: 26px 20px; text-align: center; transition: border-color .25s, transform .3s var(--ease); }
.beyond-card:hover { border-color: var(--line-hi); }
.beyond-icon { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 16px; color: var(--blue-hi); background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, .35), rgba(59, 130, 246, .05)); border: 1px solid rgba(96, 165, 250, .25); }
.beyond-icon .ic { width: 26px; height: 26px; }
.beyond-card h3 { font-size: 16px; margin-bottom: 6px; }
.beyond-card p { font-size: 13px; color: var(--muted); }

/* ---------- Filters ---------- */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar .chip { flex: none; }
.filter-item.is-hidden { display: none; }

/* ---------- Skills ---------- */
.level-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: -8px 0 20px; font-size: 12px; color: var(--muted); }
.level-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lv { display: inline-block; height: 4px; border-radius: 2px; background: var(--blue-hi); }
.lv-1 { width: 6px; } .lv-2 { width: 12px; } .lv-3 { width: 18px; } .lv-4 { width: 24px; } .lv-5 { width: 30px; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px; }
.skill-link { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px 16px; text-align: center; border-radius: 14px; border: 1px solid var(--line); background: rgba(13, 20, 38, .5); transition: border-color .25s, transform .25s var(--ease), background .25s; }
.skill-link:hover { border-color: rgba(96, 165, 250, .45); background: rgba(22, 33, 60, .6); transform: translateY(-3px); }
.skill-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(59, 130, 246, .08); border: 1px solid rgba(96, 165, 250, .16); font-size: 26px; color: var(--blue-hi); }
.skill-icon.xl { width: 88px; height: 88px; font-size: 48px; border-radius: 20px; flex: none; }
.skill-icon .mono { font-size: 13px; font-weight: 600; color: var(--cyan); }
.skill-icon.xl .mono { font-size: 22px; }
.skill-name { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.skill-level { margin-top: auto; display: grid; gap: 4px; justify-items: center; }
.dots { display: flex; gap: 3px; }
.dots i { width: 14px; height: 3px; border-radius: 2px; background: rgba(148, 163, 184, .18); }
.dots i.on { background: var(--blue-hi); box-shadow: 0 0 8px rgba(96, 165, 250, .6); }
.lvl-label { font-size: 11px; color: var(--muted); }
.skill-link .bar { width: 100%; margin-top: 4px; }
.skill-hero { display: flex; align-items: center; gap: 24px; padding: 24px; margin-bottom: 28px; }
.skill-level-big { font-family: var(--display); font-size: 28px; margin-bottom: 10px; }
@media (max-width: 420px) { .skill-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- AI section ---------- */
.ai-section { overflow: hidden; }
.ai-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 80% 20%, rgba(37, 99, 235, .18), transparent 70%), radial-gradient(ellipse 50% 50% at 10% 90%, rgba(139, 92, 246, .1), transparent 70%); border-block: 1px solid var(--line); pointer-events: none; }
.ai-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.ai-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.neural svg { width: 100%; max-width: 420px; margin-left: auto; }
.nn-edges path { fill: none; stroke-width: 1; opacity: .45; stroke-dasharray: 3 5; animation: dash 14s linear infinite; }
.nn-nodes circle { fill: #0b1224; stroke: var(--blue-hi); stroke-width: 1.5; }
.nn-nodes circle.out { stroke: var(--cyan); fill: rgba(34, 211, 238, .2); animation: breathe 3s ease-in-out infinite; transform-origin: 290px 120px; }
.ai-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ai-topic { padding: 20px; transition: border-color .25s; }
.ai-topic:hover { border-color: var(--line-hi); }
.ai-topic-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.phase { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ai-topic h3 { font-size: 17px; margin-bottom: 6px; }
.ai-topic p { font-size: 13.5px; color: var(--muted); }
.philosophy { margin-top: clamp(48px, 7vw, 96px); padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-lg); border: 1px solid var(--line-hi); background: linear-gradient(135deg, rgba(30, 58, 138, .35), rgba(8, 12, 24, .6) 60%); position: relative; overflow: hidden; }
.philosophy::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 70%); }
.philosophy-title { font-size: clamp(30px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; max-width: 900px; margin-bottom: 24px; line-height: 1.02; }
.philosophy .prose { max-width: 720px; position: relative; z-index: 1; }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } .neural { display: none; } }

/* ---------- Orbit ---------- */
.orbit-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.orbit-list { display: flex; flex-wrap: wrap; gap: 8px; }
.orbit-list li { font-size: 12.5px; color: var(--text-2); padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); }
.orbit { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1; margin: 0 auto; }
.orbit::before { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .35), transparent 70%); filter: blur(20px); }
.orbit-center { position: absolute; inset: 40%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #1d4ed8, #0b1224 75%); border: 1px solid rgba(96, 165, 250, .6); box-shadow: 0 0 50px rgba(59, 130, 246, .55); z-index: 2; }
.orbit-center span { font-family: var(--display); font-weight: 700; font-size: clamp(13px, 1.8vw, 20px); letter-spacing: .14em; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(96, 165, 250, .16); animation: spin var(--dur, 60s) linear infinite; }
.orbit-ring.ring-1 { inset: 26%; --dur: 45s; }
.orbit-ring.ring-2 { inset: 13%; --dur: 70s; animation-direction: reverse; border-style: dashed; }
.orbit-ring.ring-3 { inset: 0; --dur: 95s; }
.orbit-item { position: absolute; inset: 0; --a: calc(360deg / var(--n) * var(--i)); transform: rotate(var(--a)); pointer-events: none; }
.orbit-chip { position: absolute; top: 0; left: 50%; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 12px; font-weight: 500; white-space: nowrap; border-radius: 999px; background: rgba(8, 12, 24, .92); border: 1px solid var(--line-hi); box-shadow: 0 0 18px -6px rgba(59, 130, 246, .8); animation: counter var(--dur, 60s) linear infinite; animation-direction: inherit; }
.orbit-ring.ring-2 .orbit-chip { animation-direction: reverse; }
.orbit-chip i { font-size: 14px; }
@keyframes counter { from { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1)); } to { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1 - 360deg)); } }
@media (max-width: 900px) { .orbit-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .orbit-chip { font-size: 10px; padding: 3px 7px; } .orbit-chip i { display: none; } }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.service-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; min-height: 230px; transition: border-color .25s, transform .3s var(--ease), background .25s; }
.service-card:hover { border-color: rgba(96, 165, 250, .45); background: linear-gradient(180deg, rgba(30, 58, 138, .3), rgba(10, 16, 32, .6)); }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--blue-hi); background: rgba(59, 130, 246, .1); border: 1px solid rgba(96, 165, 250, .25); }
.service-icon .ic { width: 22px; height: 22px; }
.service-card h3 { font-size: 19px; }
.service-card p { color: var(--muted); font-size: 14.5px; }
.service-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.arrow-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--text-2); transition: all .25s var(--ease); }
.arrow-btn .ic { width: 16px; height: 16px; }
.service-card:hover .arrow-btn, .project-card:hover .arrow-btn { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(0deg) scale(1.05); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; left: 4%; right: 4%; top: 58px; height: 1px; background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .4), transparent); }
.process-step { position: relative; padding: 20px 16px; text-align: center; }
.process-num { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.process-icon { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-hi); color: var(--cyan); position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg); transition: all .3s; }
.process-step:hover .process-icon { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px var(--bg), 0 0 30px rgba(59, 130, 246, .7); }
.process-step h3 { font-size: 17px; margin-bottom: 6px; }
.process-step p { font-size: 13px; color: var(--muted); }
.process.compact { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.process.compact::before { display: none; }
.process.compact .process-step { text-align: left; border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 20, 38, .45); }
@media (max-width: 760px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { left: 41px; right: auto; top: 20px; bottom: 20px; width: 1px; height: auto; background: linear-gradient(180deg, transparent, rgba(96, 165, 250, .4), transparent); }
  .process-step { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; text-align: left; padding: 12px 16px; }
  .process-icon { grid-row: span 3; margin: 0; }
  .process-num { margin-bottom: 2px; }
  .process.compact .process-step { display: block; margin-bottom: 10px; }
}

/* ---------- Project art ---------- */
.project-media, .flagship-media, .case-media, .post-media { position: relative; min-height: 0; }
.art, .art-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.art { overflow: hidden; background: radial-gradient(ellipse at 50% 40%, rgba(37, 99, 235, .45), #060a16 70%); display: grid; grid-template: 100% / 100%; place-items: center; }
.art > * { grid-area: 1 / 1; }
.art.accent-cyan { background: radial-gradient(ellipse at 50% 40%, rgba(8, 145, 178, .5), #050b14 70%); }
.art.accent-violet { background: radial-gradient(ellipse at 50% 40%, rgba(109, 40, 217, .45), #07060f 70%); }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 180, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 180, 255, .08) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.art-label { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 11px; color: rgba(226, 232, 255, .7); letter-spacing: .06em; }
.art-core { position: relative; width: 26%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #93c5fd, #2563eb 45%, #0b1224 80%); box-shadow: 0 0 60px rgba(59, 130, 246, .8); animation: breathe 5s ease-in-out infinite; }
.accent-cyan .art-core { background: radial-gradient(circle at 35% 30%, #a5f3fc, #0891b2 45%, #051018 80%); box-shadow: 0 0 60px rgba(34, 211, 238, .7); }
.accent-violet .art-core { background: radial-gradient(circle at 35% 30%, #ddd6fe, #7c3aed 45%, #0b0716 80%); box-shadow: 0 0 60px rgba(139, 92, 246, .7); }
.art-core.small { width: 16%; }
.art-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(147, 197, 253, .3); animation: spin 20s linear infinite; }
.art-ring::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.art-ring.a { width: 44%; aspect-ratio: 1; }
.art-ring.b { width: 64%; aspect-ratio: 1; animation-duration: 32s; animation-direction: reverse; border-style: dashed; }
.art-ring.c { width: 84%; aspect-ratio: 1; animation-duration: 46s; }
.art-wave { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; }
.art-wave i { width: 4px; border-radius: 3px; background: linear-gradient(180deg, #c4b5fd, #7c3aed); height: 20%; animation: wave 1.4s ease-in-out infinite; animation-delay: calc(var(--k) * -90ms); opacity: .85; }
@keyframes wave { 50% { height: calc(15% + (var(--k) * 1%) + 30%); } }
.art-doc { position: relative; width: 38%; aspect-ratio: 3/4; border-radius: 8px; background: rgba(8, 20, 30, .85); border: 1px solid rgba(103, 232, 249, .35); padding: 12% 10%; display: grid; align-content: start; gap: 9%; overflow: hidden; box-shadow: 0 0 40px rgba(34, 211, 238, .25); }
.art-doc i { display: block; height: 5px; border-radius: 3px; background: rgba(103, 232, 249, .35); }
.art-doc i.short { width: 60%; }
.art-scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .35), transparent); animation: scan 3s ease-in-out infinite; }
@keyframes scan { 0% { top: -30%; } 100% { top: 100%; } }
.art-windows { position: relative; width: 70%; height: 64%; }
.art-windows .w { position: absolute; border-radius: 8px; background: rgba(8, 12, 24, .85); border: 1px solid rgba(147, 197, 253, .3); padding: 8%; display: grid; align-content: start; gap: 8px; }
.art-windows .w i { display: block; height: 5px; border-radius: 3px; background: rgba(147, 197, 253, .3); }
.art-windows .w1 { inset: 0 30% 25% 0; } .art-windows .w2 { inset: 20% 0 10% 45%; box-shadow: 0 0 30px rgba(59, 130, 246, .4); } .art-windows .w3 { inset: 60% 50% 0 15%; }
.art-img { object-fit: cover; }
.art-label { place-self: end start; position: relative; left: auto; bottom: auto; margin: 0 0 12px 14px; }

/* ---------- Flagship ---------- */
.flagship { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; border-color: var(--line-hi); }
.flagship-media { position: relative; min-height: 380px; border-right: 1px solid var(--line); }
.flagship-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.flagship-title { font-size: clamp(28px, 3.6vw, 44px); }
.flagship-tagline { font-family: var(--display); font-size: 18px; color: #c7d2fe; }
.flagship-body > p { color: var(--text-2); }
.feature-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 6px 0; font-size: 13.5px; color: var(--text-2); }
.feature-mini li { display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.project-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.flagship-body { min-width: 0; }
@media (max-width: 1080px) { .flagship { grid-template-columns: 1fr; } .flagship-media { min-height: 0; aspect-ratio: 16/8; border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 420px) { .feature-mini { grid-template-columns: 1fr; } }

/* ---------- Project cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.project-grid.two { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.project-card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: border-color .25s, transform .35s var(--ease); }
.project-card:hover { border-color: rgba(96, 165, 250, .45); transform: translateY(-4px); }
.project-media { display: block; aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid var(--line); }
.project-media > * { transition: transform .6s var(--ease); }
.project-card:hover .project-media > * { transform: scale(1.04); }
.project-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body h3 { font-size: 19px; padding-right: 40px; }
.project-body > p { font-size: 14px; color: var(--muted); }
.project-body .tags { margin-top: auto; padding-top: 6px; }
.arrow-btn.corner { position: absolute; right: 16px; top: calc(62.5% * 0 + 16px); background: rgba(8, 12, 24, .7); backdrop-filter: blur(6px); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.filter-empty { margin-top: 20px; }
@media (max-width: 360px) { .project-grid, .project-grid.two { grid-template-columns: 1fr; } }

/* ---------- Focus ---------- */
.focus-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.focus-intro { position: sticky; top: calc(var(--nav-h) + 32px); }
.focus-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.focus-item:first-child { border-top: 1px solid var(--line); }
.focus-num { font-family: var(--display); font-size: 30px; font-weight: 600; color: rgba(148, 180, 255, .3); line-height: 1; transition: color .3s; }
.focus-item:hover .focus-num { color: var(--blue-hi); }
.focus-main h3 { font-size: clamp(18px, 2vw, 22px); margin-bottom: 4px; }
.focus-main p { color: var(--muted); font-size: 14px; }
.focus-main .bar { margin-top: 12px; max-width: 360px; }
.prio { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.prio-high { color: var(--cyan); border-color: rgba(34, 211, 238, .35); }
@media (max-width: 900px) { .focus-layout { grid-template-columns: 1fr; } .focus-intro { position: static; } }
@media (max-width: 520px) { .focus-item { grid-template-columns: 44px 1fr; } .focus-num { font-size: 22px; } .prio { grid-column: 2; justify-self: start; } }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; position: relative; }
.roadmap-phase { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(13, 20, 38, .45); position: relative; }
.roadmap-phase:not(:last-child)::after { content: ""; position: absolute; right: -17px; top: 40px; width: 17px; height: 1px; background: rgba(96, 165, 250, .5); }
.phase-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.phase-num { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-family: var(--mono); font-size: 12px; color: var(--cyan); border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .06); }
.phase-head h3 { font-size: 17px; }
.roadmap-phase ul { display: grid; gap: 4px; position: relative; }
.rm-node { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.rm-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.rm-node.tone-ok .rm-dot, .core-chip.tone-ok .rm-dot { background: currentColor; }
.rm-node.tone-live .rm-dot, .core-chip.tone-live .rm-dot { background: currentColor; box-shadow: 0 0 10px currentColor; }
.rm-node.tone-plan { color: #7c8699; }
@media (max-width: 700px) { .roadmap-phase::after { display: none; } }

/* ---------- Knowledge map ---------- */
.kmap { display: grid; grid-template-columns: 1.45fr 1fr; overflow: hidden; }
.kmap-stage { position: relative; min-height: 520px; border-right: 1px solid var(--line); }
.kmap-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.kmap-lines line { stroke: rgba(96, 165, 250, .22); stroke-width: 1; stroke-dasharray: 3 5; transition: stroke .3s; }
.kmap-lines line.on { stroke: rgba(34, 211, 238, .9); stroke-dasharray: none; stroke-width: 1.5; }
.kmap-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 12px; z-index: 2; background: radial-gradient(circle at 35% 30%, #1d4ed8, #0b1224 75%); border: 1px solid rgba(96, 165, 250, .6); box-shadow: 0 0 60px rgba(59, 130, 246, .5); font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.kmap-nodes li { position: absolute; transform: translate(-50%, -50%); z-index: 3; }
.kmap-node { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; background: rgba(8, 12, 24, .92); border: 1px solid var(--line-hi); transition: all .25s var(--ease); }
.kmap-node:hover, .kmap-node.is-active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 28px rgba(59, 130, 246, .7); transform: scale(1.06); }
.kmap-count { font-family: var(--mono); font-size: 10.5px; opacity: .7; }
.kmap-panel { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.kmap-title { font-size: 26px; }
.kmap-body { display: grid; gap: 18px; margin-top: 12px; }
.kmap-body h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.kmap-body ul { display: flex; flex-wrap: wrap; gap: 8px; }
.kmap-body a { display: inline-flex; padding: 5px 11px; border-radius: 8px; font-size: 13px; background: rgba(59, 130, 246, .08); border: 1px solid rgba(96, 165, 250, .2); transition: all .2s; }
.kmap-body a:hover { border-color: var(--blue-hi); color: #fff; }
.kmap-empty { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .kmap { grid-template-columns: 1fr; }
  .kmap-stage { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 16px; }
  .kmap-lines { display: none; }
  .kmap-center { position: static; transform: none; margin: 0 auto 20px; width: 108px; height: 108px; font-size: 12px; }
  .kmap-nodes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .kmap-nodes li { position: static; transform: none; }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 20px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(96, 165, 250, .5) 8%, rgba(96, 165, 250, .5) 92%, transparent); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; }
.tl-marker { grid-column: 2; justify-self: center; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-hi); box-shadow: 0 0 0 6px var(--bg); z-index: 1; color: currentColor; }
.tl-marker .ic { width: 18px; height: 18px; }
.tl-item.tone-live .tl-marker { box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(59, 130, 246, .6); border-color: var(--blue-hi); }
.tl-item.tone-ok .tl-marker { border-color: rgba(52, 211, 153, .6); }
.tl-card { padding: 22px; grid-column: 1; grid-row: 1; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; }
.tl-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.tl-step { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tl-card h3 { font-size: 20px; margin-bottom: 6px; color: var(--text); }
.tl-card p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) {
  .timeline::before { left: 22px; }
  .tl-item { grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
  .tl-marker { grid-column: 1; }
  .tl-card, .tl-item:nth-child(even) .tl-card { grid-column: 2; grid-row: 1; }
}

/* ---------- Education & Core CS ---------- */
.edu-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.edu-card { display: flex; gap: 20px; padding: clamp(22px, 3vw, 36px); }
.edu-card h3 { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 8px; }
.edu-inst { font-weight: 600; color: var(--text); }
.edu-card p { margin-bottom: 4px; }
.edu-card .pill { margin-top: 12px; }
.edu-icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 16px; color: var(--cyan); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .3); }
.edu-icon .ic { width: 26px; height: 26px; }
.mini-timeline { display: grid; gap: 16px; padding: 24px; border-left: 1px solid var(--line-hi); }
.mini-timeline li { display: flex; gap: 14px; }
.mt-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: currentColor; flex: none; margin-left: -30px; box-shadow: 0 0 0 5px var(--bg); }
.core-layout .sec-head { margin-bottom: 28px; }
.core-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.core-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; font-size: 14.5px; color: var(--text); border: 1px solid var(--line); background: rgba(13, 20, 38, .5); }
.core-chip .rm-dot { color: inherit; }
.core-chip.tone-live { border-color: rgba(96, 165, 250, .35); }
.core-chip.tone-live .rm-dot { color: var(--blue-hi); }
.core-chip.tone-plan .rm-dot { color: #64748b; }
@media (max-width: 860px) { .edu-layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .edu-card { flex-direction: column; } }

/* ---------- Learning ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.learn-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s; }
.learn-card:hover { border-color: var(--line-hi); }
.learn-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.learn-card h3 { font-size: 19px; }
.learn-card > p { font-size: 14px; color: var(--muted); }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row .bar { flex: 1; }
.resources { display: grid; gap: 4px; font-size: 13px; }
.resources a { color: var(--blue-hi); display: inline-flex; align-items: center; gap: 6px; }
.resources .ic { width: 13px; height: 13px; }

/* ---------- Achievements & Certificates ---------- */
.ach-list { display: grid; gap: 12px; margin-bottom: 28px; }
.ach-item { display: flex; gap: 18px; padding: 20px; }
.ach-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--warn); background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .25); }
.ach-item h3 { font-size: 18px; margin-bottom: 4px; }
.ach-item p { color: var(--muted); font-size: 14px; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.cert-card { overflow: hidden; display: flex; flex-direction: column; }
.cert-thumb { display: block; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #0a0f1c; border-bottom: 1px solid var(--line); cursor: zoom-in; }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cert-thumb:hover img { transform: scale(1.04); }
.cert-thumb.placeholder { display: grid; place-items: center; color: var(--muted); cursor: default; }
.cert-thumb.placeholder .ic { width: 40px; height: 40px; }
.cert-body { padding: 18px; display: grid; gap: 8px; }
.cert-body h3 { font-size: 17px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(2, 4, 10, .92); display: grid; place-items: center; padding: 24px; backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: min(1100px, 100%); border-radius: 12px; border: 1px solid var(--line-hi); animation: zoomIn .35s var(--ease); }
.lightbox-close { position: absolute; top: 16px; right: 16px; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery .cert-thumb { border-radius: 12px; border: 1px solid var(--line); }

/* ---------- Open source stepper ---------- */
.stepper { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 14px; overflow-x: auto; padding: 8px 2px 16px; scroll-snap-type: x mandatory; position: relative; scrollbar-width: thin; scrollbar-color: rgba(96, 165, 250, .3) transparent; }
.step { scroll-snap-align: start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(13, 20, 38, .45); display: flex; flex-direction: column; gap: 10px; position: relative; }
.step::after { content: ""; position: absolute; right: -15px; top: 38px; width: 14px; height: 1px; background: rgba(96, 165, 250, .4); }
.step:last-child::after { display: none; }
.step-dot { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-family: var(--mono); font-size: 13px; border: 1px solid currentColor; }
.step.tone-live .step-dot { background: rgba(59, 130, 246, .15); box-shadow: 0 0 20px rgba(59, 130, 246, .5); }
.step.tone-ok .step-dot { background: rgba(52, 211, 153, .12); }
.step h3 { font-size: 16px; color: var(--text); }
.step p { font-size: 13px; color: var(--muted); }
.step .pill { margin-top: auto; align-self: flex-start; }

/* ---------- Repos ---------- */
.repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.repo-card { padding: 20px; display: grid; gap: 10px; transition: border-color .25s; }
.repo-card:hover { border-color: var(--line-hi); }
.repo-top { display: flex; align-items: center; gap: 10px; }
.repo-top h3 { font-size: 16px; font-family: var(--mono); font-weight: 500; }
.repo-card p { color: var(--muted); font-size: 14px; }
.repo-meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.repo-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lang-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); }

/* ---------- Career ---------- */
.statement { font-family: var(--display); font-size: clamp(24px, 3.4vw, 42px); line-height: 1.2; letter-spacing: -0.02em; max-width: 980px; margin-bottom: clamp(32px, 5vw, 56px); color: #dbe4ff; }
.career-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 40px; }
.career-item { display: flex; gap: 14px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.career-item:hover { background: rgba(30, 58, 138, .15); }
.career-item > .ic { width: 22px; height: 22px; color: var(--blue-hi); margin-top: 2px; }
.career-item h3 { font-size: 17px; margin-bottom: 4px; }
.career-item p { font-size: 13.5px; color: var(--muted); }
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.goal-col { padding: 22px; }
.goal-col ul { display: grid; gap: 18px; }
.goal-col li { display: grid; gap: 6px; justify-items: start; }
.goal-top { display: flex; justify-content: space-between; gap: 12px; width: 100%; }
.goal-col .bar { width: 100%; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(170px, auto); gap: 14px; }
.bento-cell { padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s; overflow: hidden; position: relative; }
.bento-cell:hover { border-color: var(--line-hi); }
.bento-cell.b1 { grid-column: span 2; grid-row: span 2; justify-content: flex-end; background: radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, .35), transparent 60%), linear-gradient(180deg, rgba(20, 30, 56, .5), rgba(10, 16, 32, .55)); }
.bento-cell.b1 h3 { font-size: clamp(26px, 3vw, 36px); }
.bento-cell.b2, .bento-cell.b7 { grid-column: span 2; }
.bento-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--cyan); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .25); }
.bento-cell.b1 .bento-icon { width: 60px; height: 60px; margin-bottom: auto; }
.bento-cell h3 { font-size: 19px; }
.bento-cell p { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-cell.b1, .bento-cell.b2, .bento-cell.b7 { grid-column: span 2; } .bento-cell.b1 { grid-row: span 1; min-height: 240px; } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .bento-cell.b1, .bento-cell.b2, .bento-cell.b7 { grid-column: auto; } }

/* ---------- Future (cinematic) ---------- */
.future { overflow: hidden; padding-block: clamp(96px, 14vw, 180px); isolation: isolate; }
.future-scene { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, #050a1c 40%, #0a0f2e 62%, var(--bg) 100%); }
.future-sun { position: absolute; left: 50%; top: 52%; width: min(720px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(96, 165, 250, .5), rgba(139, 92, 246, .22) 35%, transparent 65%); filter: blur(10px); animation: breathe 8s ease-in-out infinite; }
.future-floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; background-image: linear-gradient(rgba(96, 165, 250, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 165, 250, .35) 1px, transparent 1px); background-size: 60px 60px; transform: perspective(500px) rotateX(64deg); transform-origin: top center; mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 70%, transparent); animation: floor 6s linear infinite; }
@keyframes floor { to { background-position: 0 60px; } }
.future-beams i { position: absolute; top: 0; width: 1px; height: 60%; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .5), transparent); animation: beam 7s ease-in-out infinite; }
.future-beams i:nth-child(1) { left: 18%; } .future-beams i:nth-child(2) { left: 52%; animation-delay: -2.5s; } .future-beams i:nth-child(3) { left: 84%; animation-delay: -5s; }
@keyframes beam { 0%, 100% { opacity: 0; transform: translateY(-20%); } 50% { opacity: 1; transform: translateY(20%); } }
.future-inner { text-align: center; }
.future-title { font-size: clamp(38px, 7.5vw, 104px); font-weight: 700; letter-spacing: -0.04em; line-height: .98; max-width: 1100px; margin: 0 auto; background: linear-gradient(180deg, #ffffff 20%, #93c5fd 70%, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.future-inner .sec-sub { margin: 20px auto 0; }
.future-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: clamp(48px, 7vw, 88px); text-align: left; perspective: 1000px; }
.future-card { padding: 22px; border-radius: var(--radius); background: rgba(8, 14, 34, .6); border: 1px solid rgba(96, 165, 250, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .4s var(--ease), border-color .3s, box-shadow .3s; }
.future-card:hover { transform: translateY(-6px) rotateX(4deg); border-color: rgba(34, 211, 238, .5); box-shadow: 0 20px 50px -20px rgba(34, 211, 238, .5); }
.future-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 14px; color: var(--cyan); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .3); }
.future-card h3 { font-size: 17px; margin-bottom: 6px; }
.future-card p { font-size: 13.5px; color: var(--text-2); }

/* ---------- Principles ---------- */
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 20px; align-items: baseline; padding: clamp(16px, 2.4vw, 26px) 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.pr-num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pr-title { font-family: var(--display); font-size: clamp(24px, 4vw, 52px); font-weight: 600; letter-spacing: -0.03em; color: rgba(233, 237, 246, .38); transition: color .35s; line-height: 1.1; }
.pr-desc { color: var(--muted); font-size: 15px; opacity: .7; transition: opacity .35s; }
.principle:hover .pr-title, .principle:focus-within .pr-title { color: #fff; }
.principle:hover { padding-left: 12px; }
.principle:hover .pr-desc { opacity: 1; }
@media (max-width: 760px) { .principle { grid-template-columns: 40px 1fr; } .pr-desc { grid-column: 2; } .pr-title { color: rgba(233, 237, 246, .75); } }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.post-card { position: relative; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .35s var(--ease); }
.post-card:hover { border-color: rgba(96, 165, 250, .45); transform: translateY(-4px); }
.post-media { display: block; aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--line); }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 20px; display: grid; gap: 8px; }
.post-body h3 { font-size: 18px; }
.post-body > p { color: var(--muted); font-size: 14px; }
.post-body .muted { display: inline-flex; align-items: center; gap: 6px; }
.blog-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.blog-tools .filter-bar { margin: 0; flex: 1 1 400px; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(13, 20, 38, .6); flex: 0 1 280px; color: var(--muted); }
.search-field input { border: 0; background: none; outline: none; width: 100%; color: var(--text); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.empty { padding: clamp(32px, 6vw, 64px); text-align: center; display: grid; justify-items: center; gap: 10px; }
.empty > .ic { width: 38px; height: 38px; color: var(--blue-hi); }
.empty .h3 { margin: 6px 0 0; }
.empty a { color: var(--blue-hi); }

/* ---------- Article & prose ---------- */
.prose { color: var(--text-2); font-size: 16.5px; line-height: 1.8; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); color: var(--text); margin-top: 1.8em; }
.prose h3 { font-size: clamp(19px, 2.2vw, 23px); color: var(--text); margin-top: 1.6em; }
.prose h4 { font-size: 18px; color: var(--text); margin-top: 1.4em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--blue-hi); text-decoration: underline; text-decoration-color: rgba(96, 165, 250, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--blue-hi); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--blue); color: #cbd5ff; font-style: italic; }
.prose code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgba(59, 130, 246, .1); border: 1px solid rgba(96, 165, 250, .15); color: #bfdbfe; }
.prose pre { margin: 1.5em 0; padding: 18px 20px; overflow-x: auto; border-radius: 12px; background: #060a14; border: 1px solid var(--line-hi); font-size: 14px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; border: 0; color: #dbeafe; }
.prose img { border-radius: 12px; border: 1px solid var(--line); margin: 1.5em 0; }
.prose hr { border: 0; height: 1px; background: var(--line-hi); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: rgba(59, 130, 246, .08); color: var(--text); font-weight: 600; }
.prose .embed { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin: 1.5em 0; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lead-prose { font-size: clamp(17px, 1.8vw, 20px); }
.article-hero { padding-bottom: 24px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 20px; }
.article-cover { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); margin-bottom: 40px; }
.article-body { padding-bottom: 32px; }
.related-box { padding: 20px; margin-top: 32px; display: grid; gap: 8px; }

/* ---------- Page hero & details ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(24px, 4vw, 48px); position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: #fff; }
.page-title { font-size: clamp(38px, 6.4vw, 84px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.page-sub { margin-top: 18px; color: var(--text-2); font-size: clamp(16px, 1.7vw, 20px); max-width: 720px; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.side-card { padding: 22px; display: grid; gap: 14px; }
.side-card.sticky { position: sticky; top: calc(var(--nav-h) + 20px); }
.plain { display: grid; gap: 6px; color: var(--text-2); font-size: 14px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 32px; }
.list-card { padding: 22px; }
.check-list { display: grid; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .ic { color: var(--cyan); margin-top: 4px; width: 16px; height: 16px; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--blue-hi); font-size: 20px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding-bottom: 18px; color: var(--text-2); }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } .side-card.sticky { position: static; } }

/* Case study */
.case-hero { padding: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) 0 clamp(24px, 4vw, 40px); }
.case-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.case-hero .project-meta { margin-bottom: 16px; }
.case-media { aspect-ratio: 16/11; overflow: hidden; }
.case-facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 28px 0 0; }
.case-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.case-facts dd { margin: 4px 0 0; font-weight: 600; }
.case-nav { position: sticky; top: var(--nav-h); z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; background: linear-gradient(180deg, rgba(4, 6, 12, .9), rgba(4, 6, 12, .7)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); scrollbar-width: none; }
.case-nav a { flex: none; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); }
.case-nav a:hover { color: #fff; background: rgba(59, 130, 246, .12); }
.case-body { padding-block: clamp(32px, 5vw, 64px); display: grid; gap: clamp(48px, 7vw, 88px); }
.case-block .prose { max-width: 820px; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ps-grid .case-block { padding: clamp(22px, 3vw, 36px); }
.case-block.accent { border-color: rgba(96, 165, 250, .4); background: linear-gradient(160deg, rgba(30, 58, 138, .35), rgba(10, 16, 32, .6)); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.feature { padding: 20px; display: grid; gap: 8px; justify-items: start; }
.feature h3 { font-size: 17px; }
.feature p { font-size: 13.5px; color: var(--muted); }
.future-block { padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); border: 1px solid var(--line-hi); background: radial-gradient(ellipse at 100% 0%, rgba(139, 92, 246, .16), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(34, 211, 238, .1), transparent 55%), rgba(8, 12, 24, .5); }
.future-block .sec-title { margin-bottom: 16px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.module { padding: 18px; border-radius: 14px; border: 1px dashed rgba(148, 163, 184, .25); display: grid; gap: 8px; justify-items: start; background: rgba(8, 12, 24, .5); }
.module.tone-ok { border-style: solid; border-color: rgba(52, 211, 153, .35); }
.module.tone-live { border-style: solid; border-color: rgba(96, 165, 250, .4); }
.module.tone-exp { border-color: rgba(167, 139, 250, .4); }
.module h3 { font-size: 16px; color: var(--text); }
.module p { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .case-hero-grid, .ps-grid { grid-template-columns: 1fr; } }

/* Experience */
.exp-list { display: grid; gap: 14px; }
.exp-item { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 24px; }
.exp-when { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.exp-item h3 { font-size: 20px; margin-bottom: 8px; }
@media (max-width: 640px) { .exp-item { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- CTA band ---------- */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 5vw, 56px); border-color: var(--line-hi); background: radial-gradient(ellipse at 90% 50%, rgba(37, 99, 235, .3), transparent 60%), linear-gradient(180deg, rgba(20, 30, 56, .5), rgba(10, 16, 32, .6)); }
.cta-band .sec-title { font-size: clamp(26px, 3.6vw, 44px); margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-title { font-size: clamp(40px, 6.6vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 20px; background: linear-gradient(180deg, #fff 30%, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-info { display: grid; gap: 14px; margin-top: 32px; }
.contact-info li { display: flex; align-items: center; gap: 14px; }
.contact-info li > span:last-child { display: grid; min-width: 0; }
.contact-info a { overflow-wrap: anywhere; }
.contact-info a:hover { color: var(--blue-hi); }
.ci-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--blue-hi); border: 1px solid var(--line); background: rgba(13, 20, 38, .5); }
.contact-form { padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-row.three { grid-template-columns: 1.2fr 1fr 1fr; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line); background: rgba(4, 7, 15, .7); color: var(--text); transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.field .errorlist, .form-error { color: #fca5a5; font-size: 13px; list-style: none; padding: 0; margin: 0; }
.field.has-error input, .field.has-error textarea { border-color: rgba(248, 113, 113, .6); }
.contact-static { justify-items: start; }
.contact-static h3 { font-size: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: #6ee7b7; } .form-status.err { color: #fca5a5; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row.two, .form-row.three { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; padding: clamp(48px, 7vw, 80px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-brand-words { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 5.2vw, 72px); letter-spacing: -0.02em; line-height: 1.05; color: transparent; -webkit-text-stroke: 1px rgba(96, 165, 250, .28); margin-bottom: clamp(32px, 5vw, 56px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-about p { color: var(--muted); margin-top: 14px; max-width: 380px; font-size: 14.5px; }
.footer-about .small { display: flex; align-items: center; gap: 6px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: start; font-size: 14.5px; color: var(--text-2); }
.footer-links a:hover { color: #fff; }
.footer-social { display: grid; gap: 14px; align-content: start; }
.footer-social .eyebrow { margin: 0; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Ask AI ---------- */
.ask-ai { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; }
.ask-ai-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(8, 12, 24, .88); border: 1px solid var(--line-hi); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8), 0 0 30px -10px rgba(59, 130, 246, .6); transition: border-color .2s, transform .25s var(--ease); }
.ask-ai-btn:hover { border-color: var(--blue-hi); }
.ask-ai-orb { width: 26px; height: 26px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #bfdbfe, #3b82f6 45%, #1e1b4b 85%); box-shadow: 0 0 16px rgba(59, 130, 246, .9); animation: breathe 3.5s ease-in-out infinite; }
.ask-ai-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(340px, calc(100vw - 32px)); padding: 20px; border-radius: 18px; background: rgba(8, 12, 24, .96); border: 1px solid var(--line-hi); box-shadow: 0 30px 60px -20px #000; display: grid; gap: 14px; animation: panelIn .3s var(--ease); }
.ask-ai-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.ask-ai-head { display: flex; align-items: center; gap: 12px; }
.ask-ai-head > div { display: grid; gap: 4px; justify-items: start; flex: 1; }
.ask-ai-panel p { color: var(--text-2); font-size: 14px; }
.ask-ai-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-ai-topics li { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 520px) { .ask-ai-btn span:last-child { display: none; } .ask-ai-btn { padding: 10px; } }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(96, 165, 250, .5); }
.cursor-ring.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(59, 130, 246, .1); border-color: rgba(34, 211, 238, .7); }
.cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; position: relative; overflow: hidden; padding: calc(var(--nav-h) + 24px) 0 48px; text-align: center; }
.nf-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 16px; }
.nf-code { font-family: var(--display); font-weight: 700; font-size: clamp(110px, 24vw, 260px); line-height: .9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(96, 165, 250, .5); text-shadow: 0 0 80px rgba(59, 130, 246, .35); }
.nf .btn { margin-top: 12px; }
.nf-scene { position: absolute; inset: 0; display: grid; place-items: center; }
.nf-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(96, 165, 250, .15); animation: spin 40s linear infinite; }
.nf-ring.r1 { width: 40vmin; height: 40vmin; border-style: dashed; }
.nf-ring.r2 { width: 64vmin; height: 64vmin; animation-direction: reverse; animation-duration: 60s; }
.nf-ring.r3 { width: 90vmin; height: 90vmin; animation-duration: 90s; border-color: rgba(139, 92, 246, .12); }
.nf-ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .bar i { transform: none; }
  #particles { display: none; }
}
body.reduce-anim .bg-glow, body.reduce-anim .future-floor, body.reduce-anim .net-lines path { animation: none; }
