:root {
  /* ============================================================
     ACCENT — bound to the mode.
     Each mode owns its own accent: the values below are the
     DARK-MODE accent (cyan); the light-mode block overrides them
     with the light accent (pink). To recolor, edit the hue/chroma
     pairs in each place.
        cyan  : h 192  c 0.13
        pink  : h 352  c 0.16
        rose  : h 358  c 0.12
        magenta: h 335 c 0.19
     ============================================================ */
  --acc-h: 192;          /* DARK accent hue    → cyan */
  --acc-c: 0.13;         /* DARK accent chroma */
  --acc-l: 0.84;         /* DARK accent lightness (bright, glows on dark) */

  /* Accent roles, derived from the three values above */
  --cyan:           oklch(var(--acc-l) var(--acc-c) var(--acc-h));
  --cyan-soft:      oklch(var(--acc-l) var(--acc-c) var(--acc-h) / 0.16);
  --cyan-line:      oklch(var(--acc-l) var(--acc-c) var(--acc-h) / 0.34);
  --cyan-hover:     oklch(var(--acc-l) var(--acc-c) var(--acc-h) / 0.26);
  --cyan-glow-text: oklch(var(--acc-l) var(--acc-c) var(--acc-h) / 0.42);
  --glow: 0 0 24px oklch(var(--acc-l) var(--acc-c) var(--acc-h) / 0.48),
          0 0 4px  oklch(var(--acc-l) var(--acc-c) var(--acc-h) / 0.62);

  /* ---- Neutrals: DARK MODE — cyan-gray terminal feel ---- */
  --bg:        oklch(0.185 0.015 216);
  --bg-2:      oklch(0.215 0.016 216);
  --panel:     oklch(0.245 0.017 216);
  --panel-2:   oklch(0.285 0.018 216);
  --line:      oklch(0.34 0.016 216);
  --line-soft: oklch(0.30 0.015 216 / 0.6);

  --text:      oklch(0.965 0.005 216);
  --muted:     oklch(0.74 0.015 216);
  --faint:     oklch(0.58 0.015 216);

  /* Translucent surfaces (scrim = page base) */
  --nav-bg:     oklch(0.185 0.015 216 / 0.55);
  --nav-bg-2:   oklch(0.185 0.015 216 / 0.82);
  --content-bg: oklch(0.185 0.015 216 / 0.86);
  --menu-bg:    oklch(0.185 0.015 216 / 0.97);
  --avail-bg:   oklch(0.245 0.017 216 / 0.5);
  --shot-stripe: oklch(0.30 0.015 216);
  --veil-base:  oklch(0.15 0.015 216);

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1080px;
  --radius: 14px;
}

/* ---- LIGHT MODE: rose-gold interface (warm blush + dusty rose accent) ---- */
html[data-mode="light"] {
  --acc-h: 22;           /* LIGHT accent hue   → rose gold (warm, coppery rose) */
  --acc-c: 0.088;        /* muted, metallic — not a saturated pink */
  --acc-l: 0.55;         /* deep enough to read on cream (AA) */
  --cyan-glow-text: transparent;
  --glow: none;          /* neon glow is a dark-mode flourish only */

  --bg:        oklch(0.984 0.009 50);   /* warm blush cream */
  --bg-2:      oklch(0.968 0.012 48);
  --panel:     oklch(0.95 0.014 44);
  --panel-2:   oklch(0.925 0.016 40);
  --line:      oklch(0.885 0.016 38);
  --line-soft: oklch(0.885 0.016 38 / 0.7);

  --text:      oklch(0.30 0.018 32);    /* warm near-black */
  --muted:     oklch(0.47 0.022 30);
  --faint:     oklch(0.55 0.02 30);

  --nav-bg:     oklch(0.99 0.008 50 / 0.7);
  --nav-bg-2:   oklch(0.99 0.008 50 / 0.86);
  --content-bg: oklch(0.984 0.009 50 / 0.9);
  --menu-bg:    oklch(0.99 0.008 50 / 0.97);
  --avail-bg:   oklch(0.95 0.014 44 / 0.6);
  --shot-stripe: oklch(0.87 0.016 40);
  --veil-base:  oklch(0.995 0.006 55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cyan-soft); color: var(--text); }

a { color: inherit; text-decoration: none; }

/* ---------- Background canvas ---------- */
#net {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* Radial vignette so content stays legible over the network */
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 0%, transparent 40%, color-mix(in oklab, var(--veil-base) 55%, transparent) 100%),
    linear-gradient(180deg, transparent 0%, transparent 55%, color-mix(in oklab, var(--veil-base) 35%, transparent) 100%);
}

main, nav, footer { position: relative; z-index: 2; }

/* ---------- Shared layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.section { padding: 104px 0; }
.section-head { margin-bottom: 44px; }
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: lowercase;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan-line);
}
h2.title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.lead { color: var(--muted); max-width: 60ch; margin: 18px 0 0; }

/* ---------- Nav ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
nav.scrolled {
  background: var(--nav-bg-2);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand .mark {
  color: var(--cyan);
  text-shadow: var(--glow);
  font-size: 17px;
}
.brand .dim { color: var(--faint); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 14px;
}
.nav-links a {
  color: var(--muted);
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  position: relative;
}
.nav-links a::before { content: "<"; color: var(--cyan); opacity: 0; margin-right: 3px; transition: opacity 0.18s; }
.nav-links a::after  { content: ">"; color: var(--cyan); opacity: 0; margin-left: 3px;  transition: opacity 0.18s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::before, .nav-links a:hover::after { opacity: 1; }

.btn {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid var(--cyan-line);
  color: var(--cyan);
  background: var(--cyan-soft);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s, border-color 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:hover { background: var(--cyan-hover); box-shadow: var(--glow); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--cyan-line); color: var(--cyan); box-shadow: none; }
.btn.lg { padding: 14px 24px; font-size: 15px; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.hamburger { display: none; }

/* ---- Light/Dark toggle ---- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 9px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.theme-toggle:hover { color: var(--cyan); border-color: var(--cyan-line); background: var(--cyan-soft); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
html[data-mode="light"] .theme-toggle .i-sun  { display: block; }
html[data-mode="light"] .theme-toggle .i-moon { display: none; }

/* Smooth fade while switching theme (class toggled briefly by JS) */
html.mode-anim, html.mode-anim *,
html.mode-anim *::before, html.mode-anim *::after {
  transition: background-color 0.32s ease, border-color 0.32s ease,
              color 0.32s ease, box-shadow 0.32s ease, fill 0.32s ease !important;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 28px 80px;
}
.logo-mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 104px);
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-shadow: var(--glow);
  display: flex;
  align-items: center;
  gap: 0.12em;
  margin-bottom: 30px;
  animation: floaty 6s ease-in-out infinite;
}
.logo-mark .slash { animation: pulse 3.4s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

.hero .name {
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 26px;
}
.hero .role { margin-bottom: 20px; }
.hero .name em { color: var(--cyan); font-style: normal; text-shadow: 0 0 18px var(--cyan-glow-text); }
.hero .role {
  font-family: var(--mono);
  font-size: clamp(14px, 2vw, 17px);
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}
.hero .role .tag {
  color: var(--cyan);
  white-space: nowrap;
  border: 1px solid var(--cyan-line);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.86em;
}
.hero .blurb { color: var(--muted); max-width: 56ch; margin: 0 auto 38px; font-size: clamp(16px, 2.2vw, 19px); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.scroll-hint {
  margin-top: 64px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint .bar {
  width: 1px; height: 38px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: drop 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drop { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Panels & content backdrop ---------- */
.content {
  background: linear-gradient(180deg, transparent 0%, var(--bg) 130px, var(--bg) 100%);
}
.content-inner { background: var(--content-bg); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--muted); margin: 0 0 18px; }
.about-grid p strong { color: var(--text); font-weight: 600; }
.facts { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.fact { background: var(--bg-2); padding: 18px 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.fact .k { font-family: var(--mono); font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.fact .v { color: var(--text); font-size: 15px; text-align: right; }
.fact .v .on { color: var(--cyan); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: border-color 0.22s, transform 0.22s, background 0.22s;
  position: relative;
}
.card:hover { border-color: var(--cyan-line); transform: translateY(-3px); background: var(--panel); }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.1em; }
.card h3 { font-size: 19px; font-weight: 600; margin: 14px 0 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.6; }
.card .tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chip { font-family: var(--mono); font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill-col h4 { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.skill-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.skill-col li { color: var(--muted); font-size: 14.5px; display: flex; align-items: center; gap: 9px; }
.skill-col li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); opacity: 0.7; flex: none; }

/* Work / projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); transition: border-color 0.22s, transform 0.22s; }
.project:hover { border-color: var(--cyan-line); transform: translateY(-3px); }
.shot {
  aspect-ratio: 16 / 9;
  background-color: var(--panel);
  background-image: repeating-linear-gradient(135deg, var(--shot-stripe) 0 2px, transparent 2px 11px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}
.project .body { padding: 22px 24px 24px; }
.project .meta { font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.05em; }
.project h3 { font-size: 20px; font-weight: 600; margin: 10px 0 9px; letter-spacing: -0.01em; }
.project p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.project .stack { display: flex; flex-wrap: wrap; gap: 6px; }

/* Experience timeline */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 168px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: none; }
.tl-when { font-family: var(--mono); font-size: 13px; color: var(--cyan); padding-top: 3px; }
.tl-body h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.tl-body .org { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.tl-body .org span { color: var(--faint); }
.tl-body p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Contact */
.contact { text-align: center; }
.contact .big {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  margin: 0 auto 22px; max-width: 16ch; text-wrap: balance;
}
.contact .big em { color: var(--cyan); font-style: normal; text-shadow: 0 0 18px var(--cyan-glow-text); }
.contact .lead { margin: 0 auto 34px; text-align: center; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-mail { font-family: var(--mono); font-size: 15px; color: var(--cyan); margin-top: 34px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-row .copy { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.footer-row .copy { white-space: nowrap; }
.footer-row .copy .mark { color: var(--cyan); }
.footer-links { display: flex; gap: 18px; font-family: var(--mono); font-size: 13px; }
.footer-links a { color: var(--muted); transition: color 0.18s; }
.footer-links a:hover { color: var(--cyan); }

/* ---------- Reveal animation (only when JS is active) ---------- */
/* Uses a keyframe animation (not a transition) so it runs reliably even when an
   element is revealed the same frame it appears via an anchor jump. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; }
.js .reveal.in { animation: revealIn 0.7s cubic-bezier(.22,.61,.36,1) both; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; }
  .js .reveal.in { animation: none; }
  .logo-mark, .logo-mark .slash, .scroll-hint .bar { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .skills { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 1px solid var(--line); border-radius: 9px;
    padding: 11px 12px; cursor: pointer;
  }
  .hamburger span { width: 20px; height: 1.6px; background: var(--text); display: block; transition: transform 0.25s, opacity 0.25s; }
  nav.open .hamburger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  nav.open .hamburger span:nth-child(2) { opacity: 0; }
  nav.open .hamburger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: 64px 0 auto 0; z-index: 49;
    background: var(--menu-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    display: flex; flex-direction: column; padding: 14px 28px 24px; gap: 4px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.22s, transform 0.22s;
  }
  nav.open + .mobile-menu { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { font-family: var(--mono); color: var(--muted); padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu .btn { margin-top: 14px; justify-content: center; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
}
.mobile-menu { display: none; }
@media (max-width: 720px) { .mobile-menu { display: flex; } }

/* ===================================================================
   Employer-facing page additions (shared visual system, reused above)
   =================================================================== */

/* Availability badge in hero */
.avail {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px 7px 13px; margin-bottom: 26px;
  background: var(--avail-bg);
}
.avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow); animation: blip 2.6s ease-in-out infinite; }
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.avail b { color: var(--text); font-weight: 500; }

/* Experience impact bullets */
.tl-body ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tl-body li { color: var(--muted); font-size: 14.5px; line-height: 1.55; padding-left: 20px; position: relative; }
.tl-body li::before { content: "\203A"; position: absolute; left: 2px; top: -1px; color: var(--cyan); font-size: 16px; }
.tl-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* "What I'm looking for" — reuses .facts list, with one extra accent variant */
.looking .fact .v.want { color: var(--cyan); }

/* Education & certifications */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.edu-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: var(--bg-2); transition: border-color 0.22s; }
.edu-item:hover { border-color: var(--cyan-line); }
.edu-item .when { font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.04em; }
.edu-item h3 { font-size: 18px; font-weight: 600; margin: 10px 0 5px; letter-spacing: -0.01em; }
.edu-item .org { color: var(--text); font-size: 14.5px; margin: 0 0 8px; }
.edu-item p { color: var(--muted); font-size: 14px; margin: 0; }

/* Profile / contact links row */
.profile-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.profile-links .btn { font-size: 13.5px; }
.profile-links .btn .ic { width: 15px; height: 15px; display: inline-block; opacity: 0.85; }

@media (max-width: 860px) {
  .edu-grid { grid-template-columns: 1fr; }
}
