/* ============================================================
   Hema Darshini — Portfolio
   Executive & polished · teal/cyan accent · moderate motion
   ============================================================ */

:root {
  /* Color — cool, refined neutrals + teal accent (oklch) */
  --bg:          oklch(0.985 0.004 225);
  --bg-2:        oklch(0.965 0.006 220);
  --surface:     #ffffff;
  --surface-2:   oklch(0.982 0.004 220);

  --ink:         oklch(0.24 0.018 252);
  --ink-soft:    oklch(0.46 0.015 250);
  --ink-faint:   oklch(0.60 0.012 248);
  --line:        oklch(0.915 0.006 240);
  --line-soft:   oklch(0.945 0.005 235);

  --accent:      oklch(0.59 0.108 207);
  --accent-deep: oklch(0.45 0.088 216);
  --accent-bright: oklch(0.70 0.115 200);
  --accent-wash: oklch(0.955 0.022 205);
  --accent-line: oklch(0.86 0.045 205);

  --ink-panel:   oklch(0.21 0.022 248);
  --ink-panel-2: oklch(0.27 0.026 246);

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing / shape */
  --container: 1180px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(16,32,48,0.04), 0 2px 6px rgba(16,32,48,0.05);
  --shadow:    0 4px 14px rgba(16,32,48,0.06), 0 14px 40px rgba(16,32,48,0.07);
  --shadow-lg: 0 12px 30px rgba(16,32,48,0.10), 0 30px 70px rgba(16,32,48,0.12);
  --shadow-accent: 0 10px 26px oklch(0.59 0.108 207 / 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent-wash); color: var(--accent-deep); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--ink-soft); font-size: 17px; margin-top: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 18px 24px;
  transition: padding 0.4s var(--ease);
}
.nav-inner {
  width: 100%; max-width: var(--container);
  display: flex; align-items: center; gap: 24px;
  padding: 12px 14px 12px 24px;
  background: oklch(1 0 0 / 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled .nav-inner { box-shadow: var(--shadow); background: oklch(1 0 0 / 0.86); }
.nav-brand { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.nav-brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: -0.03em;
  box-shadow: var(--shadow-accent);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: 14px; color: var(--ink-soft); font-weight: 500;
  padding: 9px 15px; border-radius: 100px; position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.active { color: var(--accent-deep); background: var(--accent-wash); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 14px;
  padding: 11px 20px; border-radius: 100px; border: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-burger { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 100px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent-deep); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px oklch(0.59 0.108 207 / 0.36); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.btn-wa { background: #1faa55; color: #fff; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,170,85,0.32); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.hero-bg .g1 { width: 520px; height: 520px; top: -180px; right: -120px; background: radial-gradient(circle, oklch(0.78 0.10 200 / 0.55), transparent 70%); }
.hero-bg .g2 { width: 420px; height: 420px; bottom: -160px; left: -100px; background: radial-gradient(circle, oklch(0.82 0.06 250 / 0.45), transparent 70%); }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.5;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }

.avail {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 16px 8px 12px; border-radius: 100px; font-size: 13px; font-weight: 500;
  color: var(--ink-soft); box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
.avail .dot { width: 9px; height: 9px; border-radius: 50%; background: #21b35b; position: relative; }
.avail .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #21b35b; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }

.hero h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.035em; }
.hero h1 .accent { color: transparent; background: linear-gradient(120deg, var(--accent-bright), var(--accent-deep)); -webkit-background-clip: text; background-clip: text; }
.hero h1 .hon { font-size: 0.4em; vertical-align: super; color: var(--accent-deep); margin-left: 6px; font-family: var(--display); }
.hero .role { font-family: var(--mono); font-size: 14px; color: var(--accent-deep); letter-spacing: 0.04em; margin-top: 22px; font-weight: 500; }
.hero .lede { font-size: 18px; color: var(--ink-soft); max-width: 520px; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-socials { display: flex; gap: 10px; margin-top: 34px; }
.hero-socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), color 0.25s, border-color 0.25s;
}
.hero-socials a:hover { transform: translateY(-3px); color: var(--accent-deep); border-color: var(--accent-line); }
.hero-socials svg { width: 19px; height: 19px; }

/* Hero word reveal */
.reveal-word { display: inline-block; overflow: hidden; vertical-align: top; }
.reveal-word > span { display: inline-block; transform: translateY(110%); animation: wordUp 0.9s var(--ease) forwards; }
@keyframes wordUp { to { transform: translateY(0); } }

/* ---- Abstract identity graphic ---- */
.identity { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.identity .ring { position: absolute; border-radius: 50%; border: 1.5px solid var(--accent-line); }
.identity .r1 { inset: 4%; animation: spin 38s linear infinite; border-style: dashed; opacity: 0.7; }
.identity .r2 { inset: 16%; border-color: var(--line); }
.identity .r3 { inset: 28%; animation: spin 26s linear infinite reverse; border-color: var(--accent-line); opacity: 0.5; }
@keyframes spin { to { transform: rotate(360deg); } }
.identity .core {
  position: relative; z-index: 3; width: 44%; aspect-ratio: 1; border-radius: 28px;
  background: linear-gradient(150deg, var(--ink-panel), var(--ink-panel-2));
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.identity .core::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, oklch(0.70 0.115 200 / 0.45), transparent 60%);
}
.identity .core .mono-initials { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 72px); color: #fff; letter-spacing: -0.04em; position: relative; }
/* photo variant: circular portrait inside the rings */
.identity .core.photo { width: 60%; border-radius: 50%; background: linear-gradient(150deg, var(--accent-wash), #fff); padding: 0; border: 5px solid var(--surface); }
.identity .core.photo::before { display: none; }
.identity .core.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.identity .chip {
  position: absolute; z-index: 4; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-family: var(--mono);
  font-size: 12px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 8px;
}
.identity .chip .pip { width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
.identity .chip.c1 { top: 8%; left: -6%; animation: float 6s var(--ease) infinite; }
.identity .chip.c2 { top: 38%; right: -8%; animation: float 7s var(--ease) infinite 0.6s; }
.identity .chip.c3 { bottom: 12%; left: 2%; animation: float 6.5s var(--ease) infinite 1.1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================================================
   STATS STRIP
   ============================================================ */
.summary-wrap { display: grid; grid-template-columns: 1fr; gap: 0; }
.summary-lede { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.5; font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); max-width: 900px; }
.summary-lede b { font-weight: 600; color: var(--accent-deep); }
.summary-body { margin-top: 26px; columns: 2; column-gap: 48px; color: var(--ink-soft); font-size: 16px; max-width: 920px; }
.summary-body p { break-inside: avoid; margin-bottom: 16px; }

.stats {
  margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.stat { padding: 34px 30px; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.03em; color: var(--ink); display: flex; align-items: baseline; gap: 2px; }
.stat .num .suffix { color: var(--accent); }
.stat .label { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.stat .sub { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 4px; letter-spacing: 0.04em; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; margin-top: 8px; }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line);
}
.timeline .progress { position: absolute; left: 19px; top: 8px; width: 2px; background: linear-gradient(var(--accent-bright), var(--accent-deep)); transition: height 0.1s linear; }
.tl-item { position: relative; padding: 0 0 8px 64px; margin-bottom: 14px; }
.tl-node {
  position: absolute; left: 9px; top: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center;
  transition: border-color 0.3s, transform 0.3s; z-index: 2;
}
.tl-node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.3s; }
.tl-item.lit .tl-node { border-color: var(--accent); transform: scale(1.12); }
.tl-item.lit .tl-node::after { background: var(--accent); }
.tl-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.tl-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.tl-top .role { font-family: var(--display); font-weight: 600; font-size: 19px; }
.tl-top .co { color: var(--accent-deep); font-weight: 600; font-size: 15px; }
.tl-date { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-left: auto; letter-spacing: 0.03em; white-space: nowrap; }
.tl-loc { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.tl-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.tl-card li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-soft); }
.tl-card li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent-line); transform: rotate(45deg); }
.tl-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { font-family: var(--mono); font-size: 11.5px; padding: 5px 11px; border-radius: 7px; background: var(--accent-wash); color: var(--accent-deep); border: 1px solid var(--accent-line); }

/* ============================================================
   EDUCATION + CERTS
   ============================================================ */
.edu-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.edu-col { display: grid; gap: 16px; }
.edu-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s;
  display: flex; gap: 18px;
}
.edu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.edu-card .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-wash); color: var(--accent-deep); display: grid; place-items: center; border: 1px solid var(--accent-line); }
.edu-card .ico svg { width: 22px; height: 22px; }
.edu-card h4 { font-size: 18px; }
.edu-card .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: 4px; letter-spacing: 0.03em; }
.edu-card p { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

.cert-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cert {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; display: flex; align-items: center; gap: 13px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.cert:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.cert .badge {
  flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: #fff;
  background: linear-gradient(140deg, var(--accent-bright), var(--accent-deep));
}
.cert .nm { font-weight: 600; font-size: 14.5px; }
.cert .iss { font-size: 12.5px; color: var(--ink-faint); }
.cert.pending { border-style: dashed; opacity: 0.85; }
.cert.pending .badge { background: var(--ink-faint); }
.cert .pend-tag { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--line); padding: 3px 7px; border-radius: 6px; }

/* ============================================================
   SKILLS MATRIX
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-cat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.skill-cat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.skill-cat .cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.skill-cat .cat-head .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-wash); color: var(--accent-deep); display: grid; place-items: center; border: 1px solid var(--accent-line); }
.skill-cat .cat-head .ico svg { width: 19px; height: 19px; }
.skill-cat .cat-head h4 { font-size: 17px; }
.skill-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.skill-row:first-of-type { border-top: 0; }
.skill-row .nm { font-size: 14.5px; flex: 1; color: var(--ink); }
.skill-meter { display: flex; gap: 4px; }
.skill-meter .pip { width: 22px; height: 5px; border-radius: 3px; background: var(--line); transition: background 0.5s var(--ease); }
.skill-meter .pip.on { background: var(--accent); }
.skill-row .lvl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); width: 64px; text-align: right; }

/* ============================================================
   ARCHITECTURE SHOWCASE
   ============================================================ */
.arch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.arch-card {
  background: var(--ink-panel); border-radius: var(--radius-lg); overflow: hidden; position: relative;
  border: 1px solid oklch(0.35 0.02 248); box-shadow: var(--shadow); color: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.arch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.arch-diagram {
  height: 240px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, oklch(0.70 0.115 200 / 0.25), transparent 50%),
    var(--ink-panel-2);
}
.arch-diagram .ph-stripe {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, oklch(0.40 0.03 230 / 0.35) 0 2px, transparent 2px 11px);
}
.arch-diagram .ph-label {
  position: absolute; bottom: 14px; left: 16px; font-family: var(--mono); font-size: 11px;
  color: oklch(0.75 0.04 220); letter-spacing: 0.04em; background: oklch(0.18 0.02 248 / 0.7);
  padding: 5px 10px; border-radius: 6px; border: 1px solid oklch(0.4 0.03 230 / 0.5);
}
/* simple node/edge motif (allowed simple shapes) */
.arch-diagram .node { position: absolute; border: 1.5px solid oklch(0.62 0.09 205); background: oklch(0.26 0.03 240); border-radius: 8px; width: 56px; height: 30px; }
.arch-diagram .node.n1 { top: 40px; left: 36px; }
.arch-diagram .node.n2 { top: 40px; right: 36px; }
.arch-diagram .node.n3 { top: 120px; left: 50%; transform: translateX(-50%); border-color: oklch(0.72 0.11 200); }
.arch-diagram .edge { position: absolute; height: 1.5px; background: oklch(0.5 0.06 210); top: 55px; }
.arch-diagram .badge-tag { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 10.5px; color: oklch(0.8 0.06 200); border: 1px solid oklch(0.5 0.07 205); padding: 4px 9px; border-radius: 100px; }
.arch-body { padding: 24px 26px; }
.arch-body h4 { color: #fff; font-size: 19px; }
.arch-body p { color: oklch(0.78 0.01 240); font-size: 14.5px; margin-top: 10px; }
.arch-body .arch-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.arch-body .arch-tags .tag { background: oklch(0.28 0.03 240); border-color: oklch(0.4 0.04 230); color: oklch(0.82 0.05 205); }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 36px; }
.filter-btn {
  font-size: 13.5px; font-weight: 500; padding: 9px 18px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  transition: all 0.22s var(--ease);
}
.filter-btn:hover { border-color: var(--accent-line); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  display: flex; flex-direction: column;
}
.proj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.proj-thumb { height: 168px; position: relative; overflow: hidden; background: var(--bg-2); }
.proj-thumb .ph {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 13px);
}
.proj-thumb .ph-tag { position: absolute; bottom: 12px; left: 14px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); background: oklch(1 0 0 / 0.8); padding: 4px 9px; border-radius: 6px; }
.proj-thumb .cat-pill { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--accent-deep); padding: 5px 10px; border-radius: 100px; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-info { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-info h4 { font-size: 18px; }
.proj-info p { font-size: 14px; color: var(--ink-soft); }
.proj-meta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-soft); }
.proj-meta .yr { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.proj-meta .view { font-size: 13px; font-weight: 600; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 6px; }
.proj-card:hover .view svg { transform: translateX(3px); }
.proj-meta .view svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }

/* Project modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: oklch(0.2 0.02 248 / 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); max-width: 760px; width: 100%;
  max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.98); transition: transform 0.35s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-hero { height: 220px; position: relative; background: var(--ink-panel-2); }
.modal-hero .ph { position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, oklch(0.4 0.03 230 / 0.4) 0 2px, transparent 2px 13px); }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: oklch(1 0 0 / 0.92); border: 0; display: grid; place-items: center; box-shadow: var(--shadow);
  transition: transform 0.2s; z-index: 3;
}
.modal-close:hover { transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 30px 34px 34px; }
.modal-body .cat-pill { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-deep); }
.modal-body h3 { font-size: 27px; margin-top: 10px; }
.modal-body .m-desc { font-size: 15.5px; color: var(--ink-soft); margin-top: 16px; line-height: 1.65; }
.modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.modal-grid .cell { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.modal-grid .cell .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.modal-grid .cell .v { font-size: 14px; font-weight: 600; margin-top: 5px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.modal-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.m-outcome { margin-top: 22px; background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 16px 18px; }
.m-outcome .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.m-outcome p { font-size: 14.5px; color: var(--ink); margin-top: 6px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: stretch; }
.contact-left { display: flex; flex-direction: column; gap: 16px; }
.contact-channel {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.contact-channel:hover { transform: translateX(4px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.contact-channel .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.contact-channel .ico.wa { background: #1faa55; }
.contact-channel .ico.mail { background: var(--accent-deep); }
.contact-channel .ico.li { background: #0a66c2; }
.contact-channel .ico svg { width: 22px; height: 22px; }
.contact-channel .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.contact-channel .v { font-weight: 600; font-size: 15px; margin-top: 2px; }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); font-family: var(--sans); font-size: 15px; color: var(--ink); resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-wash); }
.field.err input, .field.err textarea { border-color: oklch(0.6 0.2 25); }
.field .msg { font-size: 12px; color: oklch(0.55 0.2 25); margin-top: 6px; display: none; }
.field.err .msg { display: block; }
.form-submit { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.form-note { font-size: 12.5px; color: var(--ink-faint); }
.form-success { display: none; align-items: center; gap: 10px; color: #1faa55; font-weight: 600; font-size: 14px; }
.form-success.show { display: flex; }
.form-success svg { width: 18px; height: 18px; }

/* ============================================================
   FOOTER + FLOAT
   ============================================================ */
.footer { background: var(--ink-panel); color: oklch(0.78 0.01 240); padding: 64px 0 28px; margin-top: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; padding-bottom: 40px; border-bottom: 1px solid oklch(0.34 0.02 248); }
.footer-brand h3 { color: #fff; font-size: 24px; }
.footer-brand p { font-size: 14px; max-width: 360px; margin-top: 12px; }
.footer-nav { display: flex; gap: 48px; }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.65 0.04 220); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14px; color: oklch(0.8 0.01 240); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; padding-top: 26px; font-size: 13px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: oklch(0.28 0.02 248); color: oklch(0.82 0.01 240); transition: background 0.25s, transform 0.25s, color 0.25s; }
.footer-social a:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: var(--accent-bright); }

.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  display: flex; align-items: center; gap: 0; background: #1faa55; color: #fff;
  border-radius: 100px; padding: 0; height: 58px; box-shadow: 0 10px 30px rgba(31,170,85,0.4);
  overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s; max-width: 58px;
}
.wa-float:hover { transform: translateY(-2px); max-width: 230px; box-shadow: 0 14px 36px rgba(31,170,85,0.5); }
.wa-float .wa-ico { flex: none; width: 58px; height: 58px; display: grid; place-items: center; }
.wa-float .wa-ico svg { width: 28px; height: 28px; }
.wa-float .wa-txt { white-space: nowrap; font-weight: 600; font-size: 14px; padding-right: 22px; }
.wa-float .wa-ico::after { content: ""; position: absolute; left: 8px; top: 8px; width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; opacity: 0; animation: ping 2.4s var(--ease) infinite; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero { padding-top: 120px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { order: 1; }
  .identity { order: 0; max-width: 240px; margin: 0 auto; }
  .identity .chip { font-size: 11px; padding: 8px 11px; }
  .summary-body { columns: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .edu-grid, .skills-grid, .arch-grid, .contact-wrap { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-burger { display: grid; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .proj-grid, .cert-wall { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .footer-nav { gap: 30px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}
