/* ───────────────────────────────────────────────────────────────────
   Sanket Lakhani — Portfolio
   Apple Liquid-Glass · monochrome · single font (Geist)
   ─────────────────────────────────────────────────────────────────── */

:root {
  /* Surface */
  --bg:        #08080b;
  --bg-2:      #0c0c10;
  --bg-3:      #111116;

  /* Ink */
  --ink:       rgba(255,255,255,0.96);
  --ink-2:     rgba(255,255,255,0.74);
  --ink-3:     rgba(255,255,255,0.52);
  --muted:     rgba(255,255,255,0.34);

  /* Lines & glass */
  --line:      rgba(255,255,255,0.06);
  --line-2:    rgba(255,255,255,0.12);
  --line-3:    rgba(255,255,255,0.20);

  --glass-bg:        rgba(255,255,255,0.045);
  --glass-bg-2:      rgba(255,255,255,0.065);
  --glass-border:    rgba(255,255,255,0.10);
  --glass-highlight: rgba(255,255,255,0.22);

  /* Solitary accent */
  --accent:    #d8b889;
  --ok:        #6ee787;

  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;

  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);

  --ease:     cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --r-sm: 12px;
  --r:    20px;
  --r-lg: 28px;
  --r-xl: 36px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); transition: background .4s ease, color .4s ease; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.011em;
  font-feature-settings: "ss01","cv11","calt";
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { list-style: none; padding: 0; margin: 0; }
::selection { background: rgba(216,184,137,0.30); color: var(--ink); }

/* ── Inline highlights ── */
mark {
  background: rgba(216,184,137,0.12);
  color: inherit;
  font-weight: inherit;
  padding: 2px 6px;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ── Testimonial key highlights ── */
.quote-key {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ── Project role line ── */
.proj-role {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.005em;
}

/* ─────────────────  AMBIENT AURORA (iOS-26-wallpaper style)  ─────────────────
   Dark dusty aurora — muted purples, soft pinks, deep blues — so the dark
   liquid-glass tiles have something rich to refract through their lens.
*/
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
  background: radial-gradient(140% 100% at 50% 0%, #1a1228 0%, #08080d 70%);
}
.amb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
  mix-blend-mode: screen;
}
.amb-1 {
  width: 760px; height: 760px; top: -160px; left: -120px;
  background: radial-gradient(circle at center, rgba(120, 70, 200, 0.55), transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.amb-2 {
  width: 680px; height: 680px; top: 18%; right: -180px;
  background: radial-gradient(circle at center, rgba(210, 90, 140, 0.45), transparent 65%);
  animation: drift2 30s ease-in-out infinite alternate;
}
.amb-3 {
  width: 800px; height: 800px; top: 55%; left: -100px;
  background: radial-gradient(circle at center, rgba(60, 90, 200, 0.50), transparent 65%);
  animation: drift3 34s ease-in-out infinite alternate;
}
.amb-4 {
  width: 700px; height: 700px; bottom: -180px; right: 5%;
  background: radial-gradient(circle at center, rgba(220, 130, 80, 0.40), transparent 65%);
  animation: drift4 40s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(160px, 120px); } }
@keyframes drift2 { to { transform: translate(-120px, 100px); } }
@keyframes drift3 { to { transform: translate(120px, -100px); } }
@keyframes drift4 { to { transform: translate(-100px, -80px); } }

.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─────────────────  LIQUID GLASS PRIMITIVE  ─────────────────
   Apple iOS 26 Liquid Glass — built in three stacked layers:

   1. Refraction layer (::before) — SVG feDisplacementMap warps what's behind,
      combined with blur + saturate + brightness for the "wet glass" feel.
   2. Tint + sheen layer (::after) — vertical tint with bright top, inner radial
      glow at top-center (light catching the curve), bottom darken (depth).
   3. Edge lighting — multiple inset shadows for the rim, plus a sharp specular
      line on the very top edge. Outer multi-layer shadow for elevation.

   This is the same recipe Apple uses; CSS just expresses it differently.
*/
/* DARK liquid glass — iOS 26 widget style.
   The card is a dark frosted tile sitting on the aurora; backdrop blur picks up
   colour faintly, displacement adds refraction at edges, and a sharp top rim
   highlight reads as "glass meniscus". */
.glass {
  position: relative;
  border-radius: var(--r);
  background: transparent;
  isolation: isolate;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);

  /* Edge rim lighting + multi-layer elevation shadow */
  box-shadow:
    /* outer depth */
    0 1px 2px rgba(0,0,0,0.45),
    0 12px 28px -8px rgba(0,0,0,0.55),
    0 36px 80px -20px rgba(0,0,0,0.70),
    /* sharp top rim — bright meniscus */
    inset 0  1.5px 0 0 rgba(255,255,255,0.38),
    /* faint bottom rim */
    inset 0 -1px 0 0 rgba(255,255,255,0.06),
    /* side rims — subtle vertical highlight */
    inset  1px 0 0 0 rgba(255,255,255,0.08),
    inset -1px 0 0 0 rgba(255,255,255,0.08),
    /* inner top sheen — light catching the curve */
    inset 0 28px 40px -28px rgba(255,255,255,0.20),
    /* bottom inner darkening — thickness */
    inset 0 -40px 60px -40px rgba(0,0,0,0.50);
}

/* Layer 1 — REFRACTION + dark frost
   backdrop-filter does the heavy lifting: it picks up the aurora colour
   beneath, blurs it, saturates it; SVG displacement adds the refraction warp. */
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  backdrop-filter: url(#lg-distort) blur(20px) saturate(180%) brightness(0.55);
  -webkit-backdrop-filter: url(#lg-distort) blur(20px) saturate(180%) brightness(0.55);
  /* dark glass tint on top of the refraction */
  background: linear-gradient(180deg,
    rgba(14, 14, 22, 0.45) 0%,
    rgba(10, 10, 16, 0.60) 100%
  );
}

/* Layer 2 — SPECULAR HIGHLIGHTS + INNER SHEEN */
.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    /* sharp top-edge specular highlight (bright meniscus) */
    linear-gradient(180deg, rgba(255,255,255,0.32) 0, rgba(255,255,255,0) 1.5px),
    /* upper-center inner radial glow */
    radial-gradient(140% 50% at 50% -10%, rgba(255,255,255,0.10), transparent 55%),
    /* upper-left studio reflection */
    radial-gradient(70% 50% at 18% 0%, rgba(255,255,255,0.08), transparent 60%),
    /* subtle inner border darkening at bottom for depth */
    linear-gradient(180deg, transparent 75%, rgba(0,0,0,0.20) 100%);
}

/* Hover — lift, brighten rim, deepen shadow */
.glass:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.50),
    0 18px 38px -8px rgba(0,0,0,0.62),
    0 48px 96px -20px rgba(0,0,0,0.78),
    inset 0  1.5px 0 0 rgba(255,255,255,0.50),
    inset 0 -1px 0 0 rgba(255,255,255,0.08),
    inset  1px 0 0 0 rgba(255,255,255,0.10),
    inset -1px 0 0 0 rgba(255,255,255,0.10),
    inset 0 32px 44px -28px rgba(255,255,255,0.26),
    inset 0 -44px 64px -40px rgba(0,0,0,0.50);
}
.glass:hover::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.50) 0, rgba(255,255,255,0) 1.5px),
    radial-gradient(140% 50% at 50% -10%, rgba(255,255,255,0.14), transparent 55%),
    radial-gradient(70% 50% at 18% 0%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(180deg, transparent 75%, rgba(0,0,0,0.22) 100%);
}

/* Content always above the glass layers */
.glass > * { position: relative; z-index: 2; }

/* ─────────────────  CONTACT STRIP  ───────────────── */
.strip {
  position: relative; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8,8,11,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.strip-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 11px var(--pad);
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.strip-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(20px) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(200%) brightness(1.1);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.32),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    0 1px 2px rgba(0,0,0,0.30),
    0 6px 16px -6px rgba(0,0,0,0.35);
  overflow: hidden;
}
.strip-pill::before {
  content: '';
  position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  pointer-events: none;
}
.strip-sep { color: var(--muted); }
.strip-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.strip-link:hover { color: var(--ink); }
.strip-loc em { font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .hide-sm { display: none !important; } }
@media (max-width: 480px) {
  .strip-inner { gap: 8px; font-size: 12px; }
  .strip-sep { display: none; }
  .strip-link { font-size: 12px; }
}

.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 10px rgba(110,231,135,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.82); }
}

/* ─────────────────  NAV  ───────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 14px max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  max-width: 100%;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(8,8,11,0.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.brand-mark {
  position: relative;
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(20px) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(200%) brightness(1.1);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(255,255,255,0.06),
    0 2px 6px rgba(0,0,0,0.30);
  overflow: hidden;
}
.brand-mark::before {
  content: '';
  position: absolute; top: 0; left: 22%; right: 22%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}
.brand-text { font-size: 15px; letter-spacing: -0.01em; }
.nav-links {
  display: flex; gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-2);
  transition: color .2s var(--ease);
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px; background: var(--ink);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--ink-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(24px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.08);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    0 2px 6px rgba(0,0,0,0.30),
    0 8px 18px -8px rgba(0,0,0,0.40);
  transition: color .2s var(--ease), border-color .2s, transform .2s, box-shadow .2s;
  overflow: hidden;
}
.icon-btn::before {
  content: '';
  position: absolute; top: 0; left: 22%; right: 22%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  pointer-events: none;
}
.icon-btn > svg { position: relative; z-index: 2; }
.icon-btn:hover {
  color: var(--ink);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.38),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 4px 10px rgba(0,0,0,0.35),
    0 12px 26px -8px rgba(0,0,0,0.50);
}

.cta-btn {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(235,235,240,0.88));
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.10),
    0 2px 6px rgba(0,0,0,0.25),
    0 12px 28px -10px rgba(0,0,0,0.35);
  transition: transform .2s var(--ease), box-shadow .2s;
  overflow: hidden;
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,0.10),
    0 4px 10px rgba(0,0,0,0.30),
    0 18px 36px -10px rgba(0,0,0,0.40);
}

/* ─── Hamburger button ─── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 8px 7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  backdrop-filter: blur(24px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.08);
  cursor: pointer;
  transition: border-color .3s var(--ease);
}
.menu-bar {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--ink-2);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 16px var(--pad) 24px;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .4s var(--ease), opacity .3s var(--ease), padding .4s var(--ease);
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
    padding-top: 16px;
    padding-bottom: 24px;
  }
  .nav-links a {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
}
@media (max-width: 520px) {
  .brand-text { display: none; }
  .cta-btn { padding: 8px 14px; font-size: 13px; }
  .nav-right .icon-btn.social-icon { display: none; }
}
@media (max-width: 380px) {
  .nav-right { gap: 5px; }
  .icon-btn { width: 32px; height: 32px; }
  .cta-btn { padding: 7px 12px; font-size: 12px; }
}

/* ─────────────────  SECTIONS  ───────────────── */
section {
  position: relative; z-index: 3;
  padding: clamp(80px, 12vh, 140px) var(--pad);
  max-width: var(--max); margin: 0 auto;
}
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  position: relative;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(24px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.08);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    0 1px 2px rgba(0,0,0,0.25),
    0 6px 14px -6px rgba(0,0,0,0.35);
  overflow: hidden;
}
.kicker::before {
  content: '';
  position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  pointer-events: none;
}
.h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.h2-sub {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 58ch;
  font-weight: 400;
}
.section-head.center .h2-sub { margin-left: auto; margin-right: auto; }

/* ─────────────────  HERO  ───────────────── */
.hero {
  padding-top: clamp(72px, 10vh, 110px);
  padding-bottom: clamp(60px, 9vh, 100px);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(40px, 5vw, 84px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .portrait { max-width: 400px; }
}
@media (max-width: 480px) {
  .hero { padding-top: clamp(48px, 8vh, 72px); padding-bottom: clamp(40px, 7vh, 60px); }
  .eyebrow { margin-bottom: 18px; font-size: 11px; }
  .hero-title { margin-bottom: 22px; }
  .hero-tag { margin-bottom: 28px; font-size: 1rem; }
  .hero-cta-row { margin-bottom: 32px; }
  .hero-facts > div { padding: 12px 14px; }
  .portrait { padding: 12px; }
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 28px;
}
.hero-title {
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 32px;
  color: var(--ink);
}
.hero-tag {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 36px;
  max-width: 38ch;
  font-weight: 400;
  letter-spacing: -0.012em;
}
.hero-cta-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    0 2px 6px rgba(0,0,0,0.28),
    0 10px 22px -8px rgba(0,0,0,0.40);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; top: 0; left: 16%; right: 16%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  pointer-events: none;
}
.btn > * { position: relative; z-index: 2; }
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.40),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 4px 10px rgba(0,0,0,0.30),
    0 16px 32px -8px rgba(0,0,0,0.50);
}
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn.primary {
  color: var(--bg);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(232,232,238,0.85));
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.10),
    0 2px 6px rgba(0,0,0,0.25),
    0 14px 30px -10px rgba(0,0,0,0.40);
}
.btn.primary::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,1), transparent);
}
.btn.primary:hover {
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 4px 10px rgba(0,0,0,0.30),
    0 20px 40px -10px rgba(0,0,0,0.50);
}
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .hero-facts { grid-template-columns: 1fr 1fr; } }
.hero-facts > div {
  padding: 16px 18px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-facts dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 500;
}
.hero-facts dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.portrait {
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.portrait-img {
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line-2);
  aspect-ratio: 4/5;
  position: relative;
  background: var(--bg-2);
}
.portrait-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.03) brightness(0.98);
}
.portrait figcaption {
  padding: 0 4px 4px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px;
}
.pc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pc-name { color: var(--ink); font-weight: 600; }
.pc-role { color: var(--ink-2); }
.pc-meta { color: var(--ink-3); font-size: 12px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* ─────────────────  WORDS (TESTIMONIALS) — masonry  ─────────────────
   Uses CSS multi-column layout for true masonry — cards take their natural
   height based on quote length, flowing into the next column when full.
*/
.quotes-grid {
  column-count: 3;
  column-gap: 16px;
}
@media (max-width: 980px) { .quotes-grid { column-count: 2; } }
@media (max-width: 620px) { .quotes-grid { column-count: 1; } }
@media (max-width: 480px) {
  .quote { padding: 20px; gap: 16px; }
  .quote header { grid-template-columns: 40px 1fr; gap: 10px; }
  .quote header img { width: 40px; height: 40px; }
  .quote blockquote { font-size: 13.5px; }
}

.quote {
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  margin: 0 0 16px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
.quote header {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.quote header img {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  margin-top: 2px;
}
.quote h5 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.quote header p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.45;
}
.quote header p.qm {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: 0.01em;
}
.quote blockquote {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.003em;
}

/* the summary card */
.quote-summary { background: rgba(255,255,255,0.025); }
.qs-head {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.qs-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 18px;
  font-weight: 600;
}
.qs-head h5 { margin: 0 0 2px; font-size: 15px; font-weight: 600; color: var(--ink); }
.qs-head p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.qs-traits {
  display: flex; flex-direction: column; gap: 10px;
}
.qs-traits li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 14px; color: var(--ink-2); line-height: 1.45;
}
.qs-traits li span {
  flex: 0 0 22px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ─────────────────  ABOUT  ───────────────── */
/* About section — two-column: text left, 3D right (overflows softly) */
.about {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .about-scene { height: 380px; order: -1; }
  .about-scene canvas {
    top: -5%;
    left: -5%;
    width: 110% !important;
    height: 110% !important;
  }
}
@media (max-width: 500px) {
  .about-scene { height: 300px; }
}
.about-body { max-width: 68ch; }
.about-lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
}
.about-body p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 18px;
  font-weight: 400;
}
.about-body p b { color: var(--ink); font-weight: 600; }
.about-body p:last-child { margin-bottom: 0; }

/* Stats row */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-stats > div {
  padding: 14px 12px;
  background: var(--bg);
  text-align: center;
}
.about-stats dt {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #a3db59;
  letter-spacing: -0.03em;
  line-height: 1;
}
.about-stats dd {
  margin: 6px 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 500;
}
@media (max-width: 500px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* 3D Scene — right column, canvas bleeds with soft fade on all edges */
.about-scene {
  position: relative;
  min-height: 520px;
  overflow: visible;
}
.about-scene canvas {
  display: block;
  position: absolute;
  top: -15%;
  left: -20%;
  width: 140% !important;
  height: 130% !important;
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 70%);
}


.card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.card-tags li {
  position: relative;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(200%) brightness(1.06);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 1px 2px rgba(0,0,0,0.20);
  overflow: hidden;
}
.card-tags li::before {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
}

/* ─────────────────  PROJECTS  ───────────────── */
.projects { display: grid; gap: 14px; }
.project-link {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  transition: transform .3s var(--ease), border-color .3s;
  text-decoration: none;
  color: inherit;
}
.proj-body { flex: 1; min-width: 0; }
.project-link:hover { transform: translateY(-3px); }
@media (max-width: 720px) {
  .project-link { padding: 22px; }
  .proj-cta { width: 100%; text-align: center; margin-top: 8px; }
}
@media (max-width: 480px) {
  .project-link { padding: 18px; gap: 14px; }
  .proj-logo { margin-bottom: 10px; }
  .proj-logo img { height: 28px; max-width: 160px; }
  .proj-logo--on-dark img { padding: 6px 12px; border-radius: 8px; max-height: 40px; }
  .proj-copy { font-size: 13.5px; }
  .proj-cta { font-size: 12px; padding: 8px 14px; }
}
.proj-logo {
  margin-bottom: 6px;
}
.proj-logo img {
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
/* Light logos (ChainIT, Cybaverse): white pill on dark, dark pill on light */
.proj-logo--on-dark img {
  background: rgba(255,255,255,0.88);
  padding: 8px 16px;
  border-radius: 10px;
  height: auto;
  max-height: 48px;
}
[data-theme="light"] .proj-logo--on-dark img {
  background: rgba(15,15,20,0.85);
}
/* Dark logos on white bg (Content Gen, LoyalList, Medical Ocean): white pill on dark, no pill on light */
.proj-logo--on-light img {
  background: rgba(255,255,255,0.88);
  padding: 10px 16px;
  border-radius: 10px;
  height: auto;
  max-height: 48px;
}
[data-theme="light"] .proj-logo--on-light img {
  background: none;
  padding: 0;
  height: auto;
  max-height: 48px;
}
.proj-name {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.proj-url {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.proj-tag {
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 500;
  letter-spacing: -0.008em;
}
.proj-copy {
  color: var(--ink-2);
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 70ch;
}
.proj-copy b { color: var(--ink); font-weight: 600; }
.proj-copy i { color: var(--ink); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  position: relative;
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--ink-2);
  letter-spacing: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(200%) brightness(1.06);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.24),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 1px 2px rgba(0,0,0,0.20);
  overflow: hidden;
}
.chips li::before {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
}

.proj-cta {
  position: relative;
  align-self: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(255,255,255,0.06),
    0 2px 6px rgba(0,0,0,0.28),
    0 8px 18px -8px rgba(0,0,0,0.38);
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  overflow: hidden;
}
.proj-cta::before {
  content: '';
  position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  pointer-events: none;
}
.project-link:hover .proj-cta {
  color: var(--bg);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(232,232,238,0.85));
  border-color: rgba(255,255,255,0.6);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(0,0,0,0.10),
    0 4px 10px rgba(0,0,0,0.30),
    0 14px 28px -8px rgba(0,0,0,0.42);
}

/* ─────────────────  STACK / LOGOS  ───────────────── */
.logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
@media (max-width: 980px) { .logos { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 720px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 460px) { .logos { grid-template-columns: repeat(3, 1fr); } }
.logo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 22px 12px;
  border-radius: var(--r-sm);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
  cursor: default;
}
.logo:hover {
  transform: translateY(-3px);
  border-color: var(--line-3);
  background: var(--glass-bg-2);
}
.logo img, .logo svg {
  width: 28px; height: 28px;
  opacity: 0.72;
  color: #d4d4d8;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.logo:hover img, .logo:hover svg { opacity: 1; transform: scale(1.06); }
.logo span {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  transition: color .25s var(--ease);
}
.logo:hover span { color: var(--ink-2); }


/* ─────────────────  CONTACT  ───────────────── */
.contact { padding-bottom: clamp(100px, 14vh, 160px); }
.contact-h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  max-width: 18ch;
  margin-inline: auto;
  font-weight: 600;
}
.contact-card {
  max-width: 760px; margin: 56px auto 0;
  padding: 36px;
  display: flex; flex-direction: column; gap: 28px;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 620px) { .contact-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .contact-card { padding: 20px; gap: 20px; }
  .contact-line { grid-template-columns: auto 1fr auto; padding: 14px 16px; gap: 8px; }
  .cl-label { font-size: 10px; }
  .cl-value { font-size: 13px; }
  .contact-socials { gap: 6px; }
  .contact-socials a { padding: 8px 12px; font-size: 12px; }
}
.contact-line {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(28px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.06);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.24),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    0 2px 6px rgba(0,0,0,0.25),
    0 10px 22px -8px rgba(0,0,0,0.35);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.contact-line::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.50), transparent);
  pointer-events: none;
}
.contact-line > * { position: relative; z-index: 2; }
.contact-line:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.32),
    inset 0 -1px 0 rgba(255,255,255,0.07),
    0 4px 10px rgba(0,0,0,0.30),
    0 16px 34px -8px rgba(0,0,0,0.45);
}
.contact-line svg { color: var(--ink-3); transition: transform .25s var(--ease), color .25s; }
.contact-line:hover svg { color: var(--ink); transform: translateX(3px); }
.cl-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 500;
}
.cl-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.contact-meta {
  display: flex; flex-direction: column; gap: 6px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-2);
}
.contact-meta div { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.contact-meta b { font-weight: 600; color: var(--ink); }

.contact-socials {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.contact-socials a {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(24px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.06);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.26),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    0 1px 2px rgba(0,0,0,0.25),
    0 6px 14px -6px rgba(0,0,0,0.35);
  transition: color .25s, transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.contact-socials a::before {
  content: '';
  position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.50), transparent);
  pointer-events: none;
}
.contact-socials a > * { position: relative; z-index: 2; }
.contact-socials a:hover {
  color: var(--ink);
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.36),
    inset 0 -1px 0 rgba(255,255,255,0.07),
    0 4px 10px rgba(0,0,0,0.30),
    0 12px 24px -6px rgba(0,0,0,0.42);
}

/* ─────────────────  FOOT  ───────────────── */
.foot {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line);
  padding: 22px var(--pad);
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
}
@media (max-width: 480px) {
  .foot { flex-direction: column; text-align: center; font-size: 11.5px; gap: 8px; }
}
@media (max-width: 480px) {
  section { padding: clamp(56px, 10vh, 100px) var(--pad); }
  .section-head { margin-bottom: 36px; }
}

/* ─────────────────  REVEAL  ───────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

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

/* ─────────────────  THEME TOGGLE  ───────────────── */
.theme-toggle {
  cursor: pointer;
  border: none;
  font: inherit;
}
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ─────────────────  SMOOTH HOVER ENHANCEMENTS  ───────────────── */
.glass {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.project-link {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.btn {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.cta-btn {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.icon-btn {
  transition: color .3s var(--ease), border-color .3s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-line {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.contact-socials a {
  transition: color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.quote {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.quote:hover {
  transform: translateY(-3px);
}

/* ─────────────────  LIGHT THEME  ───────────────── */
[data-theme="light"] {
  --bg:        #f5f5f7;
  --bg-2:      #ececee;
  --bg-3:      #e3e3e6;

  --ink:       rgba(0,0,0,0.88);
  --ink-2:     rgba(0,0,0,0.62);
  --ink-3:     rgba(0,0,0,0.42);
  --muted:     rgba(0,0,0,0.24);

  --line:      rgba(0,0,0,0.06);
  --line-2:    rgba(0,0,0,0.10);
  --line-3:    rgba(0,0,0,0.18);

  --glass-bg:        rgba(255,255,255,0.50);
  --glass-bg-2:      rgba(255,255,255,0.65);
  --glass-border:    rgba(0,0,0,0.06);
  --glass-highlight: rgba(255,255,255,0.85);

  --accent:    #a06e30;
  --ok:        #16a34a;
}
[data-theme="light"] ::selection {
  background: rgba(160,110,48,0.20);
  color: var(--ink);
}

/* Ambient aurora - softer pastels for light */
[data-theme="light"] .ambient {
  background: radial-gradient(140% 100% at 50% 0%, #e8e0f0 0%, #f5f5f7 70%);
}
[data-theme="light"] .amb { opacity: 0.30; }
[data-theme="light"] .amb-1 { background: radial-gradient(circle at center, rgba(180,140,240,0.35), transparent 65%); }
[data-theme="light"] .amb-2 { background: radial-gradient(circle at center, rgba(240,150,180,0.30), transparent 65%); }
[data-theme="light"] .amb-3 { background: radial-gradient(circle at center, rgba(130,160,240,0.30), transparent 65%); }
[data-theme="light"] .amb-4 { background: radial-gradient(circle at center, rgba(240,180,130,0.25), transparent 65%); }

[data-theme="light"] .noise { opacity: 0.02; }

/* Glass cards - light frosted glass */
[data-theme="light"] .glass {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 12px 28px -8px rgba(0,0,0,0.10),
    0 36px 80px -20px rgba(0,0,0,0.12),
    inset 0  1.5px 0 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 0 rgba(0,0,0,0.04),
    inset  1px 0 0 0 rgba(255,255,255,0.50),
    inset -1px 0 0 0 rgba(255,255,255,0.50),
    inset 0 28px 40px -28px rgba(255,255,255,0.60),
    inset 0 -40px 60px -40px rgba(0,0,0,0.04);
}
[data-theme="light"] .glass::before {
  backdrop-filter: url(#lg-distort) blur(20px) saturate(140%) brightness(1.08);
  -webkit-backdrop-filter: url(#lg-distort) blur(20px) saturate(140%) brightness(1.08);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(245, 245, 247, 0.65) 100%
  );
}
[data-theme="light"] .glass::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.70) 0, rgba(255,255,255,0) 1.5px),
    radial-gradient(140% 50% at 50% -10%, rgba(255,255,255,0.40), transparent 55%),
    radial-gradient(70% 50% at 18% 0%, rgba(255,255,255,0.30), transparent 60%),
    linear-gradient(180deg, transparent 75%, rgba(0,0,0,0.03) 100%);
}
[data-theme="light"] .glass:hover {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 18px 38px -8px rgba(0,0,0,0.14),
    0 48px 96px -20px rgba(0,0,0,0.16),
    inset 0  1.5px 0 0 rgba(255,255,255,0.90),
    inset 0 -1px 0 0 rgba(0,0,0,0.05),
    inset  1px 0 0 0 rgba(255,255,255,0.60),
    inset -1px 0 0 0 rgba(255,255,255,0.60),
    inset 0 32px 44px -28px rgba(255,255,255,0.70),
    inset 0 -44px 64px -40px rgba(0,0,0,0.04);
}
[data-theme="light"] .glass:hover::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.80) 0, rgba(255,255,255,0) 1.5px),
    radial-gradient(140% 50% at 50% -10%, rgba(255,255,255,0.50), transparent 55%),
    radial-gradient(70% 50% at 18% 0%, rgba(255,255,255,0.36), transparent 60%),
    linear-gradient(180deg, transparent 75%, rgba(0,0,0,0.04) 100%);
}

/* Strip + Nav backgrounds */
[data-theme="light"] .strip {
  background: rgba(245,245,247,0.75);
  border-bottom-color: var(--line);
}
[data-theme="light"] .nav {
  background: rgba(245,245,247,0.5);
  border-bottom-color: var(--line);
}
[data-theme="light"] .menu-toggle {
  background: linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.55));
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .menu-bar { background: var(--ink-2); }
@media (max-width: 900px) {
  [data-theme="light"] .nav-links {
    background: rgba(245,245,247,0.95);
  }
}

/* Glass pills, buttons, and small components for light mode */
[data-theme="light"] .strip-pill,
[data-theme="light"] .brand-mark,
[data-theme="light"] .kicker {
  background: linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.55));
  border-color: rgba(0,0,0,0.08);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.90),
    inset 0 -1px 0 rgba(0,0,0,0.04),
    0 1px 3px rgba(0,0,0,0.06),
    0 4px 12px -4px rgba(0,0,0,0.10);
}
[data-theme="light"] .strip-pill::before,
[data-theme="light"] .brand-mark::before,
[data-theme="light"] .kicker::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.90), transparent);
}

[data-theme="light"] .icon-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.55));
  border-color: rgba(0,0,0,0.08);
  color: var(--ink-2);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.90),
    inset 0 -1px 0 rgba(0,0,0,0.04),
    0 1px 3px rgba(0,0,0,0.06),
    0 4px 12px -4px rgba(0,0,0,0.10);
}
[data-theme="light"] .icon-btn:hover {
  color: var(--ink);
  border-color: rgba(0,0,0,0.12);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(0,0,0,0.05),
    0 2px 6px rgba(0,0,0,0.08),
    0 8px 18px -6px rgba(0,0,0,0.14);
}

/* Primary button - dark on light */
[data-theme="light"] .btn.primary {
  color: #fff;
  background: linear-gradient(180deg, rgba(20,20,28,0.92), rgba(30,30,38,0.88));
  border-color: rgba(0,0,0,0.15);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 2px 6px rgba(0,0,0,0.15),
    0 14px 30px -10px rgba(0,0,0,0.25);
}
[data-theme="light"] .btn.primary::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
[data-theme="light"] .btn.primary:hover {
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 4px 10px rgba(0,0,0,0.20),
    0 20px 40px -10px rgba(0,0,0,0.30);
}

/* Ghost button */
[data-theme="light"] .btn.ghost {
  background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.45));
  border-color: rgba(0,0,0,0.08);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(0,0,0,0.04),
    0 1px 3px rgba(0,0,0,0.06),
    0 6px 16px -6px rgba(0,0,0,0.10);
}
[data-theme="light"] .btn.ghost::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.80), transparent);
}

/* CTA button - dark on light */
[data-theme="light"] .cta-btn {
  color: #fff;
  background: linear-gradient(180deg, rgba(20,20,28,0.92), rgba(30,30,38,0.88));
  border-color: rgba(0,0,0,0.15);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 2px 6px rgba(0,0,0,0.12),
    0 12px 28px -10px rgba(0,0,0,0.22);
}

/* Card tags / chips */
[data-theme="light"] .card-tags li,
[data-theme="light"] .chips li {
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.50));
  border-color: rgba(0,0,0,0.07);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(0,0,0,0.03),
    0 1px 2px rgba(0,0,0,0.05);
}
[data-theme="light"] .card-tags li::before,
[data-theme="light"] .chips li::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
}


/* Project CTA */
[data-theme="light"] .proj-cta {
  background: linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.55));
  border-color: rgba(0,0,0,0.08);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.90),
    inset 0 -1px 0 rgba(0,0,0,0.04),
    0 1px 3px rgba(0,0,0,0.06),
    0 6px 14px -6px rgba(0,0,0,0.10);
}
[data-theme="light"] .proj-cta::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
}
[data-theme="light"] .project-link:hover .proj-cta {
  color: #fff;
  background: linear-gradient(180deg, rgba(20,20,28,0.92), rgba(30,30,38,0.88));
  border-color: rgba(0,0,0,0.15);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 4px 10px rgba(0,0,0,0.15),
    0 14px 28px -8px rgba(0,0,0,0.22);
}

/* Contact socials */
[data-theme="light"] .contact-socials a {
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.50));
  border-color: rgba(0,0,0,0.07);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(0,0,0,0.03),
    0 1px 2px rgba(0,0,0,0.05),
    0 4px 12px -4px rgba(0,0,0,0.08);
}
[data-theme="light"] .contact-socials a::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
}
[data-theme="light"] .contact-socials a:hover {
  border-color: rgba(0,0,0,0.12);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.90),
    inset 0 -1px 0 rgba(0,0,0,0.04),
    0 2px 6px rgba(0,0,0,0.08),
    0 10px 22px -6px rgba(0,0,0,0.14);
}

/* Contact line */
[data-theme="light"] .contact-line {
  background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.45));
  border-color: rgba(0,0,0,0.07);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(0,0,0,0.03),
    0 1px 3px rgba(0,0,0,0.06),
    0 6px 16px -6px rgba(0,0,0,0.10);
}
[data-theme="light"] .contact-line::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.80), transparent);
}
[data-theme="light"] .contact-line:hover {
  border-color: rgba(0,0,0,0.12);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.90),
    inset 0 -1px 0 rgba(0,0,0,0.04),
    0 2px 6px rgba(0,0,0,0.08),
    0 12px 28px -8px rgba(0,0,0,0.14);
}

/* Summary card accent */
[data-theme="light"] .quote-summary { background: rgba(0,0,0,0.02); }
[data-theme="light"] mark { background: rgba(160,110,48,0.10); }
[data-theme="light"] .quote-key { color: var(--accent); }
[data-theme="light"] .proj-role { color: var(--accent); }

/* Dot glow - green on both themes but lighter shadow */
[data-theme="light"] .dot {
  box-shadow: 0 0 8px rgba(22,163,74,0.5);
}

/* Tool icon colors on hover - handled via JS src swap, but SVG icons need CSS */
[data-theme="light"] .logo img {
  filter: brightness(0.35);
}
[data-theme="light"] .logo:hover img {
  filter: none;
}
[data-theme="light"] .logo svg {
  color: #52525b;
}

/* Light mode: Next.js & Vercel use dark icons on hover */
[data-theme="light"] .logo[data-color="ffffff"]:hover img {
  filter: brightness(0.1);
}

/* ─────────────────  PROJECT MODAL  ───────────────── */

/* Button reset for project cards */
button.project-link {
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
}

/* Overlay */
.pm-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.pm-overlay.open { opacity: 1; pointer-events: auto; }
.pm-overlay.open .pm { transform: translateY(0) scale(1); }
body.modal-open { overflow: hidden; }

/* Modal */
.pm {
  position: relative;
  width: 92vw; max-width: 1100px;
  max-height: calc(100vh - 40px);
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  box-shadow: 0 32px 100px -16px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.06);
  transform: translateY(14px) scale(0.97);
  transition: transform .35s var(--ease-out);
  display: flex; flex-direction: column;
  overflow: hidden;
}
[data-theme="light"] .pm {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 32px 100px -16px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.06);
}

/* Close */
.pm-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.8);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, color .2s;
}
.pm-close:hover { background: rgba(0,0,0,0.75); color: #fff; }
[data-theme="light"] .pm-close {
  background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.5);
}
[data-theme="light"] .pm-close:hover { background: rgba(255,255,255,0.95); color: rgba(0,0,0,0.8); }

/* Scrollable inner */
.pm-scroll {
  overflow-y: auto; flex: 1; min-height: 0;
}

/* ── Carousel ── */
.pm-carousel {
  position: relative;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  height: 400px;
  overflow: hidden; flex-shrink: 0;
}
[data-theme="light"] .pm-carousel { background: #f2f2f4; }
@media (min-width: 900px) { .pm-carousel { height: 460px; } }
@media (max-width: 600px) { .pm-carousel { height: 240px; } }

.pm-track {
  display: flex; width: 100%; height: 100%;
  transition: transform .4s var(--ease-out);
}
.pm-track .slide {
  flex: 0 0 100%; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.pm-track .slide img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 24px -4px rgba(0,0,0,0.3);
}
[data-theme="light"] .pm-track .slide img {
  box-shadow: 0 4px 24px -4px rgba(0,0,0,0.12);
}
.slide-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--ink-3); text-align: center;
}
.slide-placeholder svg { opacity: 0.2; }
.slide-placeholder p { font-size: 14px; margin: 0; }

/* Carousel arrows */
.pm-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.85);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, color .2s, opacity .3s;
}
.pm-prev { left: 14px; }
.pm-next { right: 14px; }
.pm-arrow:hover { background: rgba(0,0,0,0.7); color: #fff; }
.pm-arrow:disabled { opacity: 0; pointer-events: none; }
[data-theme="light"] .pm-arrow { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.6); }
[data-theme="light"] .pm-arrow:hover { background: rgba(255,255,255,0.9); color: rgba(0,0,0,0.85); }

/* Carousel dots */
.pm-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.pm-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); border: none; padding: 0;
  cursor: pointer; transition: background .25s, transform .25s;
}
.pm-dot.active { background: var(--accent); transform: scale(1.3); }
[data-theme="light"] .pm-dot { background: rgba(0,0,0,0.18); }
[data-theme="light"] .pm-dot.active { background: var(--accent); }

/* ── Details ── */
.pm-body { padding: 28px 32px 36px; }
@media (max-width: 600px) { .pm-body { padding: 20px; } }
.pm-logo { margin-bottom: 14px; }
.pm-logo img { height: auto; max-height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.pm-name {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700; letter-spacing: -0.025em;
  margin: 0 0 5px; line-height: 1.15;
}
.pm-tagline { font-size: 15px; color: var(--ink-2); margin: 0 0 5px; font-weight: 500; }
.pm-role { font-size: 13px; color: var(--accent); font-weight: 600; margin: 0 0 18px; }
.pm-desc { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 22px; }
.pm-desc p { margin: 0 0 10px; }
.pm-desc p:last-child { margin-bottom: 0; }

.pm-section { margin-bottom: 20px; }
.pm-section:last-child { margin-bottom: 0; }
.pm-section h4 {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent);
  margin: 0 0 10px; display: flex; align-items: center; gap: 8px;
}
.pm-section h4::after { content: ''; flex: 1; height: 1px; background: rgba(216,184,137,0.15); }
[data-theme="light"] .pm-section h4::after { background: rgba(160,110,48,0.12); }

.pm-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 5px;
}
.pm-list li {
  font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
  padding-left: 16px; position: relative;
}
.pm-list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.pm-chips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pm-chips li {
  padding: 4px 12px; font-size: 12px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  color: var(--ink-2);
}
[data-theme="light"] .pm-chips li {
  background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.06);
}

/* Learn more link */
.pm-learn-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px;
  font-size: 13.5px; font-weight: 600;
  color: var(--accent);
  transition: color .2s var(--ease);
}
.pm-learn-more:hover { color: var(--ink); }
.pm-learn-more svg { transition: transform .2s var(--ease); }
.pm-learn-more:hover svg { transform: translate(2px, -2px); }

@media (max-width: 600px) {
  .pm-overlay { padding: 10px; }
  .pm { width: 100%; max-height: calc(100vh - 20px); border-radius: 16px; }
}

/* ─────────────────  CV PAGE  ───────────────── */
.cv-page .ambient,
.cv-page .noise { display: none; }

.cv {
  position: relative; z-index: 3;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 60px;
}

/* ── CV Cards (sectioned design) ── */
.cv-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 10px;
}
[data-theme="light"] .cv-card {
  background: rgba(0,0,0,0.015);
  border-color: rgba(0,0,0,0.06);
}
.cv-card-note {
  display: flex; align-items: center;
}
.cv-card-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
  font-style: italic;
}

/* ── CV Header ── */
.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin: 0 calc(var(--pad) * -1) 10px;
}
.cv-header-left {
  display: flex; align-items: center; gap: 16px;
}
.cv-avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(216,184,137,0.25), rgba(160,110,48,0.15));
  border: 1px solid rgba(216,184,137,0.2);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
[data-theme="light"] .cv-avatar {
  background: linear-gradient(135deg, rgba(160,110,48,0.12), rgba(160,110,48,0.06));
  border-color: rgba(160,110,48,0.15);
}
.cv-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}
.cv-title {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 400;
}
.cv-contact {
  font-style: normal;
  text-align: right;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.cv-contact a {
  color: var(--ink-3);
  transition: color .2s var(--ease);
}
.cv-contact a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .cv-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cv-contact { text-align: left; }
}

/* ── Section labels (accent colored with line) ── */
.cv-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.cv-label::after {
  content: '';
  flex: 1; height: 1px;
  background: rgba(216,184,137,0.15);
}
[data-theme="light"] .cv-label::after {
  background: rgba(160,110,48,0.12);
}

/* ── Summary ── */
.cv-summary {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.cv-summary strong { color: var(--ink); font-weight: 600; }
.cv-summary-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.cv-summary-points li {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 14px;
  position: relative;
}
.cv-summary-points li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Core Competencies ── */
.cv-competencies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cv-comp-group {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
}
[data-theme="light"] .cv-comp-group {
  background: rgba(255,255,255,0.5);
  border-color: rgba(0,0,0,0.05);
}
.cv-comp-group h3 {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.cv-comp-group p {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
  margin: 0;
}
@media (max-width: 600px) {
  .cv-competencies { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .cv-competencies { grid-template-columns: 1fr; }
}

/* ── Experience ── */
.cv-employer { margin: 0; }
.cv-employer-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.cv-employer-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}
.cv-employer-date {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cv-role {
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 2px solid rgba(216,184,137,0.3);
}
[data-theme="light"] .cv-role {
  border-left-color: rgba(160,110,48,0.25);
}
.cv-role:last-child { margin-bottom: 0; }
.cv-role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.cv-role-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.005em;
}
.cv-role-date {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cv-role-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.cv-role-points li {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 12px;
  position: relative;
}
.cv-role-points li::before {
  content: '–';
  position: absolute; left: 0;
  color: var(--ink-3);
}
.cv-role-skills {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-3);
  font-style: italic;
}

@media (max-width: 500px) {
  .cv-employer-head, .cv-role-head {
    flex-direction: column; gap: 1px;
  }
}

/* ── Grid layouts ── */
.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  .cv-grid { grid-template-columns: 1fr; }
}

/* ── Highlights ── */
.cv-highlights {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.cv-highlights li {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 14px;
  position: relative;
}
.cv-highlights li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.cv-highlights li strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── Project list ── */
.cv-project-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.cv-project-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cv-project-list li:last-child {
  padding-bottom: 0; border-bottom: none;
}
.cv-project-list li strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.cv-project-list li span {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}
.cv-project-list li p {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

.cv-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  transition: color .2s var(--ease);
}
.cv-link:hover { color: var(--ink); }

/* ── Education ── */
.cv-edu strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
}
.cv-edu-school {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.cv-edu-year {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* ── Recommendations ── */
.cv-recs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cv-recs blockquote {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-left: 3px solid rgba(216,184,137,0.35);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
[data-theme="light"] .cv-recs blockquote {
  background: rgba(255,255,255,0.5);
  border-color: rgba(0,0,0,0.05);
  border-left-color: rgba(160,110,48,0.3);
}
.cv-recs blockquote p {
  margin: 0;
  font-style: italic;
}
.cv-recs cite {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 700px) {
  .cv-recs { grid-template-columns: 1fr; }
}

/* ── Footer ── */
.cv-footer {
  border-top: 1px solid var(--line);
  padding: 16px 0 0;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
}
.cv-footer a {
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.cv-footer a:hover { color: var(--ink); }

/* ─────────────────  CV PRINT  ───────────────── */
@media print {
  .cv-page { background: #fff !important; color: #000 !important; }
  .cv-page .nav,
  .cv-page .cv-footer a,
  .cv-page .cv-link { display: none !important; }

  .cv { max-width: 100%; padding: 0; font-size: 10pt; }
  .cv-card {
    background: none !important;
    border: 1px solid #e5e5e5;
    padding: 12pt 14pt;
    margin-bottom: 6pt;
    border-radius: 4pt;
    break-inside: avoid;
  }
  .cv-card-note { border: none; padding: 8pt 0; }

  .cv-avatar { display: none; }
  .cv-name { font-size: 20pt; color: #000; }
  .cv-title { font-size: 10pt; color: #444; }
  .cv-contact { font-size: 8.5pt; color: #555; }
  .cv-contact a { color: #555; }
  .cv-header { border-bottom: 1px solid #ddd; margin: 0 0 6pt; padding-bottom: 12pt; }

  .cv-label { font-size: 7.5pt; color: #8b6914; margin-bottom: 6pt; }
  .cv-label::after { background: rgba(139,105,20,0.15); }
  .cv-summary { font-size: 9.5pt; color: #222; }
  .cv-summary strong { color: #000; }
  .cv-summary-points li { font-size: 9pt; color: #333; }
  .cv-summary-points li::before { background: #8b6914; }

  .cv-competencies { gap: 6pt; }
  .cv-comp-group { background: #f8f8f8; border-color: #e5e5e5; padding: 6pt 8pt; }
  .cv-comp-group h3 { font-size: 8pt; color: #000; }
  .cv-comp-group p { font-size: 8.5pt; color: #555; }

  .cv-employer-name { font-size: 12pt; color: #000; }
  .cv-employer-date { font-size: 8.5pt; color: #666; }
  .cv-role { border-left-color: #d4b87a; padding-left: 10pt; margin-bottom: 10pt; }
  .cv-role-title { font-size: 10pt; color: #000; }
  .cv-role-date { font-size: 8.5pt; color: #666; }
  .cv-role-points li { font-size: 9pt; color: #222; }
  .cv-role-skills { font-size: 8pt; color: #888; }

  .cv-grid { gap: 6pt; }
  .cv-highlights li { font-size: 9pt; color: #222; }
  .cv-highlights li::before { background: #8b6914; }
  .cv-highlights li strong { color: #000; }

  .cv-project-list li strong { font-size: 9.5pt; color: #000; }
  .cv-project-list li span { font-size: 8pt; color: #8b6914; }
  .cv-project-list li p { font-size: 8.5pt; color: #555; }
  .cv-project-list li { border-bottom-color: #eee; }

  .cv-edu strong { font-size: 10pt; color: #000; }
  .cv-edu-school { font-size: 8.5pt; color: #666; }
  .cv-edu-year { font-size: 8.5pt; color: #666; }

  .cv-recs blockquote { font-size: 8.5pt; color: #333; }
  .cv-recs cite { font-size: 7.5pt; color: #666; }

  .cv-footer { border-top-color: #ddd; padding-top: 8pt; margin-top: 12pt; }
  .cv-footer span { color: #888; font-size: 7.5pt; }
  .cv-card-note p { font-size: 8pt; color: #888; }

  .cv-contact a[href]::after { content: " (" attr(href) ")"; font-size: 7pt; color: #999; }
  @page { margin: 16mm 14mm; }
}
