/* ===========================================================
   MORRIS SASI — Portfolio
   Dark UI · neon green accents · modern editorial layout
   =========================================================== */

:root {
  --bg: #050807;
  --bg-2: #070c0a;
  --panel: #0a100e;
  --panel-2: #0d1512;
  --border: #182420;
  --border-2: #223330;
  --text: #e7ecea;
  --muted: #8a9691;
  --muted-2: #616d68;
  --accent: #00E676;
  --accent-2: #22c55e;
  --accent-glow: rgba(0, 230, 118, 0.35);
  --accent-soft: rgba(0, 230, 118, 0.08);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-glow: 0 0 40px rgba(0, 230, 118, 0.15);
  --shadow-card: 0 20px 40px -20px rgba(0, 0, 0, 0.5);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------- Ambient background -------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
}
.glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #00E676 0%, transparent 70%);
  top: -100px; right: -100px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  bottom: 20%; left: -150px;
  opacity: .2;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 70%);
}

/* -------- Wordmark / Logo -------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 14px;
}
.wordmark-mark {
  color: var(--accent);
  display: inline-flex;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}
.star { color: var(--accent); margin-left: 2px; }

/* -------- Navigation -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 7, 0.75);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  gap: 24px;
}
.nav-inner .nav-links {
  justify-self: center;
  grid-column: 2;
}
.nav-inner .nav-cta {
  justify-self: end;
  grid-column: 3;
}
.nav-inner .nav-toggle {
  justify-self: end;
  grid-column: 3;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  line-height: 1;
}
.btn-pill { border-radius: var(--radius-pill); }
.btn-primary {
  background: linear-gradient(135deg, #00E676, #10b981);
  color: #04140b;
  font-weight: 600;
  box-shadow: 0 8px 24px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px var(--accent-glow); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: rgba(0, 230, 118, 0.06);
  color: var(--accent);
  border-color: rgba(0, 230, 118, 0.25);
  padding: 9px 16px;
  font-size: 13px;
}
.btn-ghost:hover { background: rgba(0, 230, 118, 0.12); }

/* -------- Hero -------- */
.hero {
  padding: 60px 0 100px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}
.display-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 16px 0 0;
  text-transform: uppercase;
  color: #cfd6d3;
}
.accent { color: var(--accent); }
.lede {
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
  margin: 24px 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-socials {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}
.hero-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Hero portrait */
.hero-visual {
  position: relative;
  min-height: 500px;
}
.portrait {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: visible;
  isolation: isolate;
}
.portrait img {
  width: 88%;
  height: 88%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  position: relative;
  z-index: 2;
  margin: 6%;
  filter: contrast(1.05) saturate(1.1);
}
.portrait-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: .4;
  z-index: 1;
  animation: spin 25s linear infinite;
}
.portrait-ring::before,
.portrait-ring::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
.portrait-ring::before { top: -5px; left: 50%; }
.portrait-ring::after { bottom: -5px; left: 50%; }
.portrait-ring-2 {
  inset: 20px;
  border-style: dashed;
  opacity: .15;
  animation: spin 40s linear infinite reverse;
}
.portrait-ring-2::before, .portrait-ring-2::after { display: none; }
.portrait-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 55%);
  z-index: 0;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  50% { opacity: .5; transform: scale(1.05); }
}

/* Floating chips */
.chip {
  position: absolute;
  background: rgba(10, 16, 14, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 160px;
  z-index: 5;
  box-shadow: var(--shadow-card);
}
.chip-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.chip-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chip-value .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}
.chip-1 { top: 8%; right: -10px; }
.chip-2 { top: 40%; right: -30px; }
.chip-3 { bottom: 20%; right: 0; }

.tag-badge {
  position: absolute;
  bottom: 5%;
  left: -20px;
  background: rgba(10, 16, 14, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  z-index: 5;
  box-shadow: var(--shadow-card);
}
.tag-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

/* -------- Sections -------- */
.section {
  padding: 90px 0;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head.between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
  gap: 24px;
  flex-wrap: wrap;
}
.section-eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.muted { color: var(--muted); }

/* -------- About -------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.about-copy {
  text-align: left;
  padding-top: 8px;
}
.about-copy .section-eyebrow { text-align: left; margin-left: 0; }
.about-copy .section-title { margin-top: 6px; margin-bottom: 0; }
.about-copy p { margin: 20px 0 0; max-width: 560px; }
.about-copy p + p { margin-top: 14px; }
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
  max-width: 380px;
  background: var(--panel);
  box-shadow: var(--shadow-card);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: contrast(1.05) saturate(1.1);
}
.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,8,7,0.85));
  pointer-events: none;
}
.signature {
  position: absolute;
  bottom: 16px;
  left: 20px;
  color: var(--accent);
  font-family: var(--font-hand);
  font-size: 34px;
  z-index: 2;
  text-shadow: 0 0 12px var(--accent-glow);
}
.about-copy .muted { max-width: 560px; }
.about-copy > *:last-child { margin-bottom: 0; }
.about-copy .btn { margin-top: 32px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  max-width: 480px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
}
.stat-icon {
  color: var(--accent);
  margin-bottom: 8px;
  display: inline-flex;
  padding: 8px;
  background: var(--accent-soft);
  border-radius: 8px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* -------- Services -------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform .2s ease, border-color .25s ease, box-shadow .25s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 230, 118, 0.35);
  box-shadow: 0 20px 40px -20px var(--accent-glow);
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(0,230,118,0.15);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.arrow-link {
  align-self: flex-start;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.service-card:hover .arrow-link {
  background: var(--accent);
  color: #04140b;
  border-color: var(--accent);
}

/* -------- Tech Stack -------- */
.stack { padding-top: 20px; }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
}
.stack-item {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 10px 14px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stack-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 230, 118, 0.3);
  box-shadow: 0 12px 24px -14px var(--accent-glow);
}
.stack-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--brand, #00E676) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand, #00E676) 25%, transparent);
  color: var(--brand, #00E676);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform .2s ease;
}
.stack-item:hover .stack-ico { transform: scale(1.08); }
.stack-item span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.stack-item small {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-top: 2px;
  text-transform: uppercase;
}

/* -------- Role bar (Experience header) -------- */
.role-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 780px;
  margin: 0 auto 40px;
}
.role-chip {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.role-chip:hover {
  border-color: rgba(0, 230, 118, 0.3);
  transform: translateY(-2px);
}
.role-chip::before {
  content: '';
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px var(--accent-glow);
}
.role-chip-label {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.role-chip-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.role-chip-meta {
  color: var(--muted);
  font-size: 12.5px;
}

/* -------- Sub-head divider (Shipped) -------- */
.sub-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto 32px;
  max-width: 900px;
}
.sub-head-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}
.sub-head-copy {
  text-align: center;
  flex-shrink: 0;
}
.sub-head-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(0, 230, 118, 0.25);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.sub-head-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* -------- Projects -------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.projects-grid.two-up {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin: 0 auto;
}
.project-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-align: left;
  text-decoration: none;
}
button.project-card {
  font: inherit;
  cursor: pointer;
  padding: 0;
  width: 100%;
}
a.project-card { cursor: pointer; }
.project-card--link:hover .thumb-hover-icon,
.project-card--preview:hover .thumb-hover-icon {
  opacity: 1;
  transform: scale(1);
}
.thumb-hover-icon {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #04140b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 8px 20px -6px var(--accent-glow);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 230, 118, 0.35);
  box-shadow: 0 24px 40px -22px var(--accent-glow);
}
.project-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  background: #0b0f0d;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease, filter .3s ease;
  filter: saturate(0.95) brightness(0.92);
}
.project-card:hover .project-thumb img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1);
}
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 8, 7, 0.55));
  pointer-events: none;
  z-index: 1;
}
.thumb-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 2;
}
.thumb-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .55;
}
.thumb-art svg { width: 80%; height: 80%; }
.art-node {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: currentColor;
  filter: blur(1px);
  opacity: .6;
}
.thumb-1 .art-node:nth-child(1) { top: 30%; left: 15%; }
.thumb-1 .art-node:nth-child(2) { top: 60%; left: 25%; }
.thumb-1 .art-node:nth-child(3) { top: 40%; left: 48%; }
.thumb-1 .art-node:nth-child(4) { top: 25%; left: 72%; }
.thumb-1 .art-node:nth-child(5) { top: 70%; left: 70%; }
.art-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 24px;
}
.art-grid > div {
  aspect-ratio: 1;
  background: currentColor;
  opacity: .15;
  border-radius: 6px;
}
.art-grid > div:nth-child(3n) { opacity: .35; }
.art-grid > div:nth-child(5n) { opacity: .5; }

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.project-tag {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.project-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
}
.project-body p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 4px 0 8px;
  flex: 1;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-meta span {
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* -------- Experience Timeline -------- */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 42px;
}
.timeline-track {
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--border-2) 8%, var(--border-2) 92%, transparent);
}
.tl-item {
  position: relative;
  padding: 0 0 40px 30px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute;
  left: -42px;
  top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-glow);
}
.tl-date {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
}
.tl-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 8px 0 4px;
  letter-spacing: -0.01em;
}
.tl-org {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.tl-item p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}
.tl-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.tl-bullets li {
  color: var(--muted);
  font-size: 13.5px;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.6;
}
.tl-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-glow);
}
.tl-bullets strong { color: var(--text); }
.tl-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tl-stack span {
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid var(--border);
  font-family: var(--font-display);
}

/* -------- Education -------- */
.education-card {
  max-width: 780px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: flex-start;
  gap: 26px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.education-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(50px);
  opacity: .5;
  pointer-events: none;
}
.education-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 230, 118, 0.3);
  box-shadow: 0 20px 40px -22px var(--accent-glow);
}
.edu-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.edu-body { flex: 1; position: relative; z-index: 1; }
.edu-date {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
}
.edu-degree {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.edu-major {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 6px;
}
.edu-school {
  color: var(--muted);
  font-size: 13.5px;
}

/* -------- Testimonials (deprecated) -------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 24px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 230, 118, 0.3);
}
.quote-mark {
  color: var(--accent);
  font-family: 'Georgia', serif;
  font-size: 60px;
  line-height: 0.6;
  height: 30px;
  margin-bottom: 10px;
  opacity: .8;
}
.testimonial-card p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: #04140b;
  flex-shrink: 0;
}
.avatar-1 { background: linear-gradient(135deg, #00E676, #10b981); }
.avatar-2 { background: linear-gradient(135deg, #f472b6, #ec4899); color: #fff; }
.avatar-3 { background: linear-gradient(135deg, #60a5fa, #3b82f6); color: #fff; }
.testimonial-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
}
.testimonial-role {
  color: var(--muted);
  font-size: 11.5px;
}
.stars {
  margin-left: auto;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1px;
}

/* -------- Contact -------- */
.contact { padding-bottom: 60px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.7fr;
  gap: 40px;
  align-items: start;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.contact-grid::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.contact-copy .section-eyebrow { text-align: left; }
.contact-copy .muted { margin: 16px 0 24px; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13.5px;
}
.contact-list a { color: var(--muted); transition: color .2s ease; }
.contact-list a:hover { color: var(--accent); }
.ci-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,230,118,0.15);
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(0,230,118,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(0,230,118,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,230,118,0); }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,230,118,0.03);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  align-self: flex-start;
  margin-top: 4px;
}

.contact-mail-viz {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  z-index: 2;
}
.contact-mail-viz p { margin-top: 12px; line-height: 1.5; }

/* -------- Footer -------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 16px 0 20px;
  max-width: 340px;
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-socials a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease, border-color .2s ease;
}
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); }

.footer h4 {
  font-family: var(--font-display);
  font-size: 14px;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer ul a,
.footer ul li {
  color: var(--muted);
  font-size: 13px;
  transition: color .2s ease;
}
.footer ul a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  color: var(--muted-2);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

/* -------- Responsive -------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .stack-grid { grid-template-columns: repeat(6, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: span 3; border-top: 1px solid var(--border); padding-top: 24px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-mail-viz { grid-column: span 2; display: flex; align-items: center; justify-content: center; gap: 24px; }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(5, 8, 7, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px;
    transform: translateY(-120%);
    transition: transform .25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 40px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 420px; order: -1; }
  .portrait { max-width: 320px; }
  .chip-1 { right: 5%; }
  .chip-2 { right: -10px; top: 45%; }
  .chip-3 { bottom: 15%; right: 5%; }
  .tag-badge { left: 5%; bottom: 2%; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 320px; margin: 0 auto; }

  .education-card { flex-direction: column; padding: 26px 24px; gap: 18px; }
  .edu-degree { font-size: 19px; }

  .role-bar { grid-template-columns: 1fr; margin-bottom: 32px; }
  .projects-grid.two-up { grid-template-columns: 1fr; max-width: 480px; }

  .sub-head { gap: 14px; }
  .sub-head-title { font-size: 17px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(4, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }

  .section { padding: 70px 0; }

  .contact-grid { grid-template-columns: 1fr; padding: 32px; }
  .contact-mail-viz { grid-column: span 1; flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: span 2; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: span 1; }
  .display { font-size: 42px; }
  .chip { min-width: 130px; padding: 8px 12px; }
  .chip-label { font-size: 9px; }
  .chip-value { font-size: 11.5px; }
}

/* -------- Lightbox -------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 6, 5, 0.92);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.open {
  display: flex;
  opacity: 1;
}
.lightbox-inner {
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 1;
  animation: lightboxIn .3s ease;
}
@keyframes lightboxIn {
  from { transform: translateY(12px) scale(.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.lightbox-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border: 1px solid rgba(0, 230, 118, 0.25);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
}
.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 230, 118, 0.08);
  background: #05080a;
}
.lightbox-hint {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.lightbox-hint kbd {
  background: var(--panel);
  border: 1px solid var(--border-2);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border-2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.lightbox-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}
body.lightbox-open { overflow: hidden; }
