/* Dave — portofolio v2. Tech modern, terang/gelap. */
:root {
  --bg: #f5f7fb;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --glass: rgba(255, 255, 255, .72);
  --line: #e1e7f0;
  --line-2: #cfd8e5;
  --ink: #0a1020;
  --ink-2: #3a475c;
  --muted: #687790;
  --c1: #0891b2;  /* cyan */
  --c2: #2563eb;  /* blue */
  --c3: #7c3aed;  /* violet */
  --accent: #0e7fbf;
  --accent-ink: #ffffff;
  --ok: #059669;
  --grad: linear-gradient(110deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .25);
  --aurora-op: .35;
  --grid-op: .55;
  --radius: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060912; --bg-alt: #0a0f1c; --surface: #0e1424; --surface-2: #141b2e;
    --glass: rgba(14, 20, 36, .66); --line: #1c2540; --line-2: #2a3557;
    --ink: #eef3fb; --ink-2: #b4c0d4; --muted: #7f8ca6;
    --c1: #22d3ee; --c2: #60a5fa; --c3: #a78bfa;
    --accent: #38bdf8; --accent-ink: #03101c; --ok: #34d399;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
    --aurora-op: .5; --grid-op: .35;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060912; --bg-alt: #0a0f1c; --surface: #0e1424; --surface-2: #141b2e;
  --glass: rgba(14, 20, 36, .66); --line: #1c2540; --line-2: #2a3557;
  --ink: #eef3fb; --ink-2: #b4c0d4; --muted: #7f8ca6;
  --c1: #22d3ee; --c2: #60a5fa; --c3: #a78bfa;
  --accent: #38bdf8; --accent-ink: #03101c; --ok: #34d399;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
  --aurora-op: .5; --grid-op: .35;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: color-mix(in srgb, var(--c1) 35%, transparent); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  padding: .85em 1.4em; border-radius: 14px; font-weight: 600; font-size: .96rem; font-family: var(--font);
  background: var(--ink); color: var(--bg); border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--glow { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--c2) 70%, transparent); }
.btn--glow:hover { box-shadow: 0 16px 40px -8px color-mix(in srgb, var(--c3) 70%, transparent); }
.btn--ghost { background: var(--glass); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: #0a1020; }
.btn--sm { padding: .55em 1.1em; font-size: .88rem; border-radius: 11px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 1.15rem var(--display); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__name i { font-style: normal; color: var(--c1); }
.brand__mark {
  width: 36px; height: 36px; border-radius: 11px; display: inline-grid; place-items: center;
  background: var(--grad); color: #fff; font: 800 1rem var(--display);
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--c2) 80%, transparent);
}
.brand__mark--sm { width: 24px; height: 24px; border-radius: 7px; font-size: .72rem; vertical-align: -6px; margin-right: 6px; box-shadow: none; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav__links a:not(.btn) { position: relative; color: var(--ink-2); padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: .95rem; }
.nav__links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform .25s ease;
}
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }
.nav__links .btn { margin-left: 10px; }
.nav__tools { display: flex; gap: 8px; }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 22px; gap: 2px;
    transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .25s ease; box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 13px 12px; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin: 10px 0 0; }
  .nav__tools { margin-left: auto; }
  .nav__toggle { display: grid; }
}

/* Hero */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; pointer-events: none; filter: blur(70px); opacity: var(--aurora-op); }
.aurora i { position: absolute; border-radius: 50%; display: block; }
.aurora i:nth-child(1) { width: 520px; height: 520px; left: 52%; top: 0; background: var(--c1); animation: drift1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 460px; height: 460px; left: 70%; top: 22%; background: var(--c3); animation: drift2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 380px; height: 380px; left: 8%; top: 38%; background: var(--c2); opacity: .55; animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-90px, 60px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(60px, -70px) scale(.9); } }
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grid-op);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 55% 35%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 35%, #000 25%, transparent 75%);
}
.hero__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; min-height: min(640px, calc(100vh - 220px)); }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink);
  backdrop-filter: blur(10px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.hero h1 { margin: 22px 0 18px; }
.hero__hi { display: block; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; color: var(--ink-2); letter-spacing: -.02em; margin-bottom: 4px; }
.hero__name {
  display: inline-block; font-size: clamp(4rem, 11vw, 8.2rem); font-weight: 800; letter-spacing: -.06em; line-height: .95;
  background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s ease-in-out infinite alternate; padding-right: .05em;
}
.hero__dot { display: inline-block; width: .14em; height: .14em; margin-left: .03em; border-radius: 50%; background: var(--c1); box-shadow: 0 0 24px var(--c1); text-indent: -9999px; overflow: hidden; vertical-align: baseline; }
@keyframes shine { to { background-position: 100% 0; } }
.hero__type { font: 600 clamp(1.15rem, 2.2vw, 1.45rem)/1.4 var(--display); color: var(--ink); letter-spacing: -.02em; margin-bottom: 14px; min-height: 1.4em; }
.type { color: var(--c1); }
.caret { display: inline-block; width: 3px; height: 1.05em; margin-left: 3px; vertical-align: -3px; border-radius: 2px; background: var(--c1); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { font-size: 1.1rem; max-width: 33em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__role { margin-top: 30px; font-size: .84rem; color: var(--muted); }
.hero__role span { color: var(--c3); }

.hero__visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.orbit { position: absolute; inset: 0; }
.orbit span { position: absolute; inset: 4%; border: 1px dashed var(--line-2); border-radius: 50%; animation: spin 60s linear infinite; }
.orbit span:last-child { inset: 16%; border-style: solid; border-color: var(--line); animation-duration: 40s; animation-direction: reverse; }
.orbit span::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 16px var(--c1); }
.orbit span:last-child::before { background: var(--c3); box-shadow: 0 0 16px var(--c3); top: auto; bottom: -5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar { position: relative; width: 58%; aspect-ratio: 1; border-radius: 36%; }
.avatar__ring {
  position: absolute; inset: -4px; border-radius: inherit; padding: 4px;
  background: conic-gradient(from var(--a, 0deg), var(--c1), var(--c2), var(--c3), var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ringspin 6s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ringspin { to { --a: 360deg; } }
.avatar__in {
  position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden;
  background: radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--c1) 85%, #fff) 0%, var(--c2) 45%, var(--c3) 100%);
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.avatar__in img { width: 100%; height: 100%; object-fit: cover; }
.avatar__in span { font: 800 clamp(4rem, 9vw, 7rem) var(--display); color: #fff; letter-spacing: -.05em; text-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.float {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: .84rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; font: 700 .72rem var(--mono); }
.float--a { top: 10%; left: -2%; }
.float--b { top: 44%; right: -6%; animation-delay: -2s; }
.float--c { bottom: 8%; left: 6%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.stats {
  margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden;
}
.stats li { padding: 24px 28px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.stats li + li::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stats strong { font: 800 2.3rem/1.1 var(--display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: .9rem; color: var(--muted); }

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 14px; font: 600 1.05rem var(--display); color: var(--ink-2); letter-spacing: -.01em; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--c1); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow--light { color: #a5f3fc; }
.sec-head { margin-bottom: 48px; max-width: 40em; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-head__note { margin: 0 0 .7em; color: var(--muted); font-size: .92rem; }

.about { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.about .sec-head { position: sticky; top: 110px; margin: 0; }
.prose p { font-size: 1.07rem; }
.prose p:first-child { font: 600 1.35rem/1.5 var(--display); color: var(--ink); letter-spacing: -.02em; }
.values { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
.values li { padding: 18px 22px 18px 70px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); counter-increment: v; position: relative; transition: border-color .25s, transform .25s; }
.values li:hover { border-color: color-mix(in srgb, var(--c2) 45%, var(--line)); transform: translateX(4px); }
.values li::before { content: "0" counter(v); position: absolute; left: 20px; top: 18px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 600 .75rem var(--mono); color: #fff; background: var(--grad); }
.values strong { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; margin-bottom: 4px; letter-spacing: -.01em; }
.values span { font-size: .9rem; line-height: 1.55; display: block; }

/* Spotlight cards */
.spot { --mx: 50%; --my: 50%; position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), hsl(var(--h, 199) 90% 60% / .14), transparent 45%);
  transition: opacity .3s;
}
.spot:hover::after { opacity: 1; }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.skill {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.skill:hover { transform: translateY(-4px); border-color: hsl(var(--h) 80% 55% / .5); box-shadow: var(--shadow); }
.skill__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: hsl(var(--h) 85% 55% / .12); color: hsl(var(--h) 75% 48%); border: 1px solid hsl(var(--h) 85% 55% / .25);
}
:root[data-theme="dark"] .skill__icon { color: hsl(var(--h) 90% 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .skill__icon { color: hsl(var(--h) 90% 70%); } }
.skill__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skill h3 { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 13px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); transition: border-color .2s, color .2s;
}
.skill:hover .chips li { border-color: hsl(var(--h) 80% 55% / .35); }
.chips--sm li { padding: 3px 10px; font-size: .76rem; color: var(--ink-2); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.proj {
  grid-column: span 2; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .35s;
}
.proj:hover { transform: translateY(-6px); border-color: hsl(var(--h) 80% 55% / .55); box-shadow: var(--shadow-lg); }
.proj--feat { grid-column: span 3; }
.proj__shot {
  position: relative; margin: 14px 14px 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9;
  background:
    radial-gradient(80% 90% at 85% 0%, hsl(calc(var(--h) + 40) 90% 65% / .9), transparent 60%),
    radial-gradient(90% 90% at 0% 100%, hsl(var(--h) 90% 45% / .95), transparent 65%),
    linear-gradient(135deg, hsl(var(--h) 80% 50%), hsl(calc(var(--h) + 60) 70% 45%));
  padding: 16px 16px 0;
}
.shot__bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px 10px 0 0; background: rgba(255, 255, 255, .92); }
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; }
.shot__bar i:nth-child(2) { background: #fbbf24; } .shot__bar i:nth-child(3) { background: #34d399; }
.shot__bar span { margin-left: 10px; flex: 1; font: 500 .66rem var(--mono); color: #64748b; background: #f1f5f9; border-radius: 6px; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot__body { display: flex; height: 100%; background: #f8fafc; transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 0; }
.proj:hover .shot__body { transform: translateY(-6px); }
.shot__side { width: 22%; background: #0f172a; padding: 12px 10px; display: grid; gap: 8px; align-content: start; }
.shot__side b { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.shot__side b:first-child { background: hsl(var(--h) 85% 60%); width: 70%; }
.shot__main { flex: 1; padding: 12px 14px; display: grid; gap: 10px; align-content: start; }
.shot__title { font: 700 clamp(.85rem, 1.6vw, 1.05rem) var(--display); color: #0f172a; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shot__cards b { height: 34px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; position: relative; }
.shot__cards b::after { content: ""; position: absolute; left: 8px; bottom: 8px; width: 45%; height: 6px; border-radius: 3px; background: hsl(var(--h) 80% 55% / .7); }
.shot__lines { display: grid; gap: 6px; }
.shot__lines b { height: 6px; border-radius: 3px; background: #e2e8f0; }
.shot__lines b:nth-child(2) { width: 80%; } .shot__lines b:nth-child(3) { width: 60%; }
.proj__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.proj__top { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.proj__top span:first-child { color: hsl(var(--h) 70% 45%); font-weight: 500; }
:root[data-theme="dark"] .proj__top span:first-child { color: hsl(var(--h) 85% 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .proj__top span:first-child { color: hsl(var(--h) 85% 70%); } }
.proj h3 { font-size: 1.4rem; margin-bottom: 8px; }
.proj p { font-size: .95rem; flex: 1; }
.proj .chips { margin: 2px 0 20px; }
.proj__link { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .92rem; align-self: flex-start; }
.proj__link span[aria-hidden] { transition: transform .2s; }
.proj__link:hover span[aria-hidden] { transform: translate(2px, -2px); }
.proj__link--off { color: var(--muted); font-weight: 500; }

/* Business */
.biz {
  position: relative; overflow: hidden; isolation: isolate; color: #cbd5e1;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  background: #070b17; border: 1px solid #1d2742; border-radius: 32px; padding: clamp(28px, 5vw, 64px);
  box-shadow: var(--shadow-lg);
}
.biz::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(#ffffff10 1px, transparent 1px), linear-gradient(90deg, #ffffff10 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%);
}
.biz__glow { position: absolute; z-index: -1; width: 600px; height: 600px; right: -200px; top: -260px; border-radius: 50%; background: conic-gradient(from 90deg, #22d3ee, #6366f1, #a855f7, #22d3ee); filter: blur(90px); opacity: .45; animation: spin 30s linear infinite; }
.biz h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.biz__desc { font-size: 1.08rem; max-width: 32em; margin-bottom: 28px; color: #cbd5e1; }
.biz__points { display: grid; gap: 12px; }
.biz__points li {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-weight: 500;
  backdrop-filter: blur(10px); transition: transform .25s, background .25s;
}
.biz__points li:hover { transform: translateX(6px); background: rgba(255, 255, 255, .09); }
.biz__points svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; flex: none; background: linear-gradient(135deg, #22d3ee, #6366f1); fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Contact */
.contact {
  position: relative; text-align: center; padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px); border-radius: 32px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--c1) 18%, transparent), transparent 70%),
              radial-gradient(50% 60% at 50% 110%, color-mix(in srgb, var(--c3) 16%, transparent), transparent 70%);
}
.contact h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 14em; margin-inline: auto; }
.contact__lead { font-size: 1.12rem; margin: 0 auto 32px; max-width: 30em; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.socials { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.socials a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: .9rem; }
.socials a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.foot { border-top: 1px solid var(--line); padding: 30px 0; font-size: .9rem; color: var(--muted); }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot a { color: var(--muted); font-size: .85rem; }
.foot a:hover { color: var(--accent); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .proj.reveal.is-in:hover { transform: translateY(-6px); }
.js .skill.reveal.is-in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .proj, .proj--feat { grid-column: span 1; }
}
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .hero__visual { order: -1; max-width: 300px; }
  .float { font-size: .76rem; padding: 7px 10px; }
  .float b { width: 22px; height: 22px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about .sec-head { position: static; }
  .biz { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 24px 0 40px; }
  .hero__visual { max-width: 250px; }
  .float--b { display: none; }
  .float--a { left: -8%; }
  .float--c { left: auto; right: -8%; bottom: 4%; }
  .section { padding: 76px 0; }
  .projects { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; margin-top: 36px; }
  .stats li { flex-direction: row; align-items: baseline; gap: 14px; padding: 16px 20px; }
  .stats li + li::before { left: 20px; right: 20px; top: 0; bottom: auto; width: auto; height: 1px; }
  .stats strong { font-size: 1.7rem; min-width: 2.6em; }
  .hero__cta .btn { flex: 1 1 auto; }
  .biz, .contact { border-radius: 24px; }
  .sec-head { margin-bottom: 32px; }
}
