/* =========================================================
   Mahesh R S — Portfolio
   Dark modern developer design system
   ========================================================= */

:root {
  --bg:            #070b14;
  --bg-soft:       #0a101d;
  --bg-raised:     #0d1526;
  --surface:       rgba(148, 163, 184, 0.05);
  --surface-2:     rgba(148, 163, 184, 0.09);
  --border:        rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);

  --text:      #e6edf7;
  --text-dim:  #a9b7cc;
  --muted:     #7e8ca3;

  --accent:    #22d3ee;
  --accent-2:  #3b82f6;
  --accent-3:  #a78bfa;
  --accent-4:  #34d399;
  --accent-warm: #fbbf24;

  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 52%, var(--accent-3) 100%);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow:    0 18px 50px -22px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.18), 0 20px 60px -30px rgba(34, 211, 238, 0.45);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --container: 1160px;
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient background: grid + glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(760px 460px at 12% -8%, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(860px 520px at 92% 4%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(900px 620px at 50% 108%, rgba(167, 139, 250, 0.13), transparent 65%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 100% 78% at 50% 0%, #000 35%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 100% 78% at 50% 0%, #000 35%, transparent 88%);
  pointer-events: none;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: #7ee9fb; }

::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

main { display: block; }

section { padding: 76px 0; }
section.tight { padding: 54px 0; }

.section-head { max-width: 760px; margin-bottom: 44px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.26);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.022em;
  margin: 0 0 14px;
  color: #f2f7ff;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.15rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); }
h3 { font-size: 1.24rem; letter-spacing: -0.012em; }
h4 { font-size: 1.02rem; letter-spacing: -0.008em; }

.section-head p, .lead {
  color: var(--text-dim);
  font-size: 1.075rem;
  margin: 0;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }

.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: #04121b;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  box-shadow: 0 8px 26px -10px rgba(34, 211, 238, 0.8);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
  font-weight: 700;
  font-size: 0.99rem;
  letter-spacing: -0.01em;
}
.brand-text em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.715rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 0.935rem;
  font-weight: 500;
  transition: color .18s ease, background .18s ease;
}
.site-nav a:hover { color: #fff; background: var(--surface); }
.site-nav a.active { color: #fff; }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #04121b;
  box-shadow: 0 14px 34px -16px rgba(34, 211, 238, 0.85);
}
.btn-primary:hover { color: #04121b; box-shadow: 0 20px 44px -16px rgba(34, 211, 238, 0.95); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(34, 211, 238, 0.5); color: #fff; }

.btn-sm { padding: 9px 17px; font-size: 0.885rem; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 74px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.hero h1 { margin-bottom: 18px; }

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}
.hero-roles span {
  font-family: var(--mono);
  font-size: 0.775rem;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.hero p.lead { margin-bottom: 30px; max-width: 640px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; stroke: var(--accent); flex-shrink: 0; }

/* Profile / ID card */
.id-card {
  position: relative;
  background: linear-gradient(160deg, rgba(21, 32, 54, 0.92), rgba(10, 16, 29, 0.92));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.id-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.id-avatar {
  width: 78px; height: 78px;
  border-radius: 20px;
  background: var(--grad);
  display: grid; place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: #04121b;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.id-avatar.id-avatar--photo {
  width: 112px;
  height: 112px;
  padding: 0;
  background: #0a1019;
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.id-avatar.id-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.id-card h3 { margin-bottom: 3px; font-size: 1.35rem; }
.id-card .id-sub { color: var(--accent); font-family: var(--mono); font-size: 0.8rem; margin-bottom: 20px; }

.id-rows { display: grid; gap: 11px; margin: 0; }
.id-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.875rem;
  padding-bottom: 11px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
}
.id-row:last-child { border-bottom: 0; padding-bottom: 0; }
.id-row dt { color: var(--muted); }
.id-row dd { margin: 0; color: var(--text); text-align: right; font-weight: 500; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); background: var(--surface-2); }
.stat b {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: 7px; color: var(--muted); font-size: 0.86rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: linear-gradient(165deg, rgba(21, 32, 54, 0.62), rgba(11, 17, 30, 0.62));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: var(--shadow-glow);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); margin: 0; font-size: 0.955rem; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, 0.11);
  border: 1px solid rgba(34, 211, 238, 0.28);
  margin-bottom: 16px;
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; stroke: currentColor; }

/* ---------- Tags / chips ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.tag {
  font-family: var(--mono);
  font-size: 0.715rem;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.11);
  border: 1px solid rgba(59, 130, 246, 0.26);
  color: #9dc4ff;
}
.tag.alt { background: rgba(167, 139, 250, 0.11); border-color: rgba(167, 139, 250, 0.28); color: #c9b6ff; }
.tag.good { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.26); color: #7ee7c4; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, auto);
  gap: 40px;
  align-items: center;
}
.page-hero-profile {
  justify-self: end;
}
.profile-photo,
.page-hero-profile img {
  width: min(200px, 42vw);
  height: min(200px, 42vw);
  object-fit: cover;
  object-position: center 15%;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: #0a1019;
}

.page-hero {
  padding: 66px 0 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13, 21, 38, 0.65), transparent);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.15rem); margin-bottom: 14px; }
.page-hero p { color: var(--text-dim); font-size: 1.05rem; max-width: 720px; margin: 0; }

.breadcrumb {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 32px;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .18s ease;
}
.filter-btn:hover { border-color: rgba(34, 211, 238, 0.45); color: #fff; }
.filter-btn.active {
  background: var(--grad);
  border-color: transparent;
  color: #04121b;
  font-weight: 700;
}

/* ---------- Project cards ---------- */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(21, 32, 54, 0.66), rgba(11, 17, 30, 0.66));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, opacity .3s ease;
  height: 100%;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: var(--shadow-glow);
}
.project-card.is-hidden { display: none; }

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.project-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  padding-top: 5px;
}
.project-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--accent);
  white-space: nowrap;
}
.project-badge.live { background: rgba(52, 211, 153, 0.11); border-color: rgba(52, 211, 153, 0.3); color: #6ee7b7; }

.project-card h3 { margin-bottom: 6px; }
.project-date {
  font-family: var(--mono);
  font-size: 0.765rem;
  color: var(--accent-2);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.project-card p { color: var(--text-dim); font-size: 0.94rem; margin: 0 0 4px; }
.project-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 0.915rem;
}
.project-card ul li { margin-bottom: 6px; }
.project-card ul li::marker { color: var(--accent); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2) 45%, var(--accent-3));
  opacity: 0.5;
}

.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14), 0 0 16px rgba(34, 211, 238, 0.6);
}
.tl-item.current::before { background: var(--accent); }

.tl-card {
  background: linear-gradient(165deg, rgba(21, 32, 54, 0.62), rgba(11, 17, 30, 0.62));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .22s ease, transform .22s ease;
}
.tl-card:hover { border-color: rgba(34, 211, 238, 0.38); transform: translateX(4px); }

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 4px;
}
.tl-head h3 { margin: 0; }
.tl-period {
  font-family: var(--mono);
  font-size: 0.765rem;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.24);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.tl-role { color: var(--accent-2); font-weight: 600; font-size: 0.94rem; margin-bottom: 12px; }
.tl-card ul { margin: 0; padding-left: 19px; color: var(--text-dim); font-size: 0.94rem; }
.tl-card ul li { margin-bottom: 7px; }
.tl-card ul li::marker { color: var(--accent-3); }
.tl-now {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #04121b;
  background: var(--accent-4);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Skill groups ---------- */
.skill-group {
  background: linear-gradient(165deg, rgba(21, 32, 54, 0.6), rgba(11, 17, 30, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .22s ease, transform .22s ease;
  height: 100%;
}
.skill-group:hover { border-color: rgba(34, 211, 238, 0.36); transform: translateY(-4px); }
.skill-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.03rem;
  margin-bottom: 15px;
}
.skill-group h3::before {
  content: "";
  width: 4px; height: 17px;
  border-radius: 3px;
  background: var(--grad);
}
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.skill-list li {
  font-family: var(--mono);
  font-size: 0.745rem;
  padding: 6px 11px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all .18s ease;
}
.skill-list li:hover {
  border-color: rgba(34, 211, 238, 0.45);
  color: #fff;
  background: rgba(34, 211, 238, 0.09);
}

/* Proficiency bars */
.bar-row { margin-bottom: 17px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.bar-label span:last-child { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }
.bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.13);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.55);
}

/* ---------- Check lists ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.55);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 9.5px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Tables ---------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(11, 17, 30, 0.55);
}
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { padding: 15px 20px; text-align: left; }
thead th {
  background: rgba(34, 211, 238, 0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.735rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
tbody td { border-bottom: 1px solid rgba(148, 163, 184, 0.1); color: var(--text-dim); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(148, 163, 184, 0.045); color: var(--text); }
tbody td:first-child { color: var(--text); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  background:
    radial-gradient(600px 240px at 15% 0%, rgba(34, 211, 238, 0.15), transparent 70%),
    radial-gradient(600px 260px at 88% 100%, rgba(167, 139, 250, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(21, 32, 54, 0.9), rgba(10, 16, 29, 0.9));
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text-dim); max-width: 620px; margin: 0 auto 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item .ci-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.26);
  color: var(--accent);
}
.contact-item .ci-icon svg { width: 19px; height: 19px; stroke: currentColor; }
.contact-item .ci-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-item .ci-value { color: var(--text); font-weight: 500; font-size: 1rem; }
.contact-item .ci-value a { color: var(--text); }
.contact-item .ci-value a:hover { color: var(--accent); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.715rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #5d6b82; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}
.form-note { font-size: 0.83rem; color: var(--muted); margin: 4px 0 0; }
.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 0.895rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: #7ee7c4;
}
.form-status.show { display: block; }

/* ---------- Callout ---------- */
.callout {
  border-left: 3px solid var(--accent);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.callout strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: rgba(6, 9, 17, 0.75);
  padding: 54px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.footer-brand b { font-size: 1.06rem; letter-spacing: -0.015em; }
.site-footer p { color: var(--muted); font-size: 0.9rem; margin: 0; max-width: 420px; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 15px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: var(--text-dim); font-size: 0.905rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.84rem;
}
.footer-bottom .mono { font-size: 0.79rem; }

/* ---------- Reveal animation (only when JS is on) ---------- */
/* No blanket will-change here: it would promote every reveal target to its own
   compositor layer for no benefit, since these animate exactly once. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--grad);
  color: #04121b;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .28s ease;
  z-index: 50;
  box-shadow: 0 14px 34px -14px rgba(34, 211, 238, 0.85);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 19px; height: 19px; stroke: currentColor; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero-profile { justify-self: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin: 0;
    padding: 14px 20px 20px;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 14px; font-size: 1rem; }
  .site-nav a.active::after { display: none; }
  .site-nav a.active { background: rgba(34, 211, 238, 0.1); color: #fff; }

  .brand-text em { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 54px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .stat { padding: 19px 17px; }
  .hero { padding: 56px 0 46px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .id-card { padding: 24px; }
  .timeline { padding-left: 28px; }
  .tl-item::before { left: -28px; }
  .tl-card { padding: 20px; }
  .tl-head { flex-direction: column; align-items: flex-start; }
  th, td { padding: 12px 14px; font-size: 0.875rem; }
  .table-wrap { overflow-x: auto; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
