@charset "UTF-8";

:root {
  --ink: #07111f;
  --ink-soft: #0b1b2f;
  --surface: rgba(17, 36, 59, 0.72);
  --surface-solid: #10243b;
  --surface-raised: #15304b;
  --line: rgba(167, 202, 225, 0.18);
  --line-strong: rgba(103, 232, 249, 0.45);
  --text: #f3f7fb;
  --muted: #a8bbcc;
  --accent: #67e8f9;
  --accent-strong: #22d3ee;
  --lime: #c4f269;
  --warning: #f6c76a;
  --danger: #fb7185;
  --max-width: 1180px;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 8%, rgba(34, 211, 238, 0.1), transparent 28rem),
    radial-gradient(circle at 12% 22%, rgba(196, 242, 105, 0.06), transparent 24rem),
    var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image: linear-gradient(rgba(167, 202, 225, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 202, 225, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { color: var(--ink); background: var(--accent); }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(167, 202, 225, 0.12);
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 5rem;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  color: var(--ink) !important;
  background: var(--accent);
  font-size: 0;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.brand-mark::after { content: "JM"; color: var(--ink); font-size: 0.72rem; }
.brand > span:not(.brand-mark) { color: var(--text); }
.brand > span:not(.brand-mark) span { color: var(--accent); }
.brand-mark { color: var(--ink); }
.nav-toggle {
  display: none;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: transparent;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.site-nav { display: flex; align-items: center; gap: 0.35rem; }
.site-nav a {
  position: relative;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: rgba(103, 232, 249, 0.1); }
.site-nav .nav-contact { color: var(--ink); background: var(--accent); font-weight: 750; }
.site-nav .nav-contact:hover { background: var(--lime); }

.container { width: min(calc(100% - 2rem), var(--max-width)); margin-inline: auto; }
main { overflow: hidden; }
.section { padding: 6rem 0; }
.section--tight { padding-top: 2rem; }
.section--line { border-top: 1px solid var(--line); }
.section-heading { max-width: 42rem; margin-bottom: 2.5rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.status-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0.3rem rgba(196, 242, 105, 0.12); }
h1, h2, h3, h4 { margin: 0; color: var(--text); line-height: 1.08; letter-spacing: -0.045em; }
h1 { max-width: 16ch; font-size: clamp(2.8rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.025em; }
p { margin: 0; color: var(--muted); }
.lede { max-width: 42rem; font-size: clamp(1rem, 1.5vw, 1.22rem); }
.accent { color: var(--accent); }
.lime { color: var(--lime); }
.muted { color: var(--muted); }

.hero { padding: clamp(4rem, 9vw, 8rem) 0 5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 0.8fr); align-items: end; gap: clamp(2rem, 8vw, 7rem); }
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--lime); }
.button--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.button--ghost:hover { border-color: var(--accent); background: rgba(103, 232, 249, 0.1); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.hero-facts li { display: flex; flex-direction: column; color: var(--muted); font-size: 0.82rem; }
.hero-facts strong { color: var(--text); font-size: 1.25rem; }
.profile-panel { position: relative; padding: 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(21, 48, 75, 0.82), rgba(10, 26, 45, 0.9)); box-shadow: var(--shadow); }
.profile-panel::before { position: absolute; top: -0.8rem; right: 1.2rem; width: 5rem; height: 5rem; border: 1px solid rgba(196, 242, 105, 0.5); border-radius: 50%; content: ""; }
.profile-image { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: calc(var(--radius-lg) - 0.35rem); background: var(--surface-raised); }
.profile-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile-meta { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.25rem 0.5rem 0.35rem; }
.profile-meta p { font-size: 0.86rem; }
.profile-meta strong { display: block; margin-bottom: 0.25rem; color: var(--text); font-size: 1.1rem; }
.profile-tag { padding: 0.35rem 0.6rem; border: 1px solid rgba(196, 242, 105, 0.3); border-radius: 999px; color: var(--lime); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }

.section-label { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; color: var(--accent); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.section-label::before { width: 2.5rem; height: 1px; background: var(--accent); content: ""; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.card:hover { border-color: var(--line-strong); }
.card-number { display: block; margin-bottom: 2.6rem; color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.76rem; }
.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.94rem; }
.card-link { display: inline-flex; margin-top: 1.25rem; color: var(--accent); font-size: 0.85rem; font-weight: 800; text-decoration: none; }
.card-link:hover { color: var(--lime); }

.impact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.metric { padding: 1.25rem; border-left: 2px solid var(--accent); background: rgba(103, 232, 249, 0.05); }
.metric strong { display: block; color: var(--text); font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.06em; }
.metric span { color: var(--muted); font-size: 0.85rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.tag-list li { padding: 0.42rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.75rem; }

.path-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; }
.path-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 17rem; }
.path-card--accent { border-color: rgba(196, 242, 105, 0.32); background: linear-gradient(145deg, rgba(196, 242, 105, 0.12), rgba(17, 36, 59, 0.75)); }
.path-card h3 { max-width: 16ch; font-size: clamp(1.45rem, 3vw, 2.25rem); }
.path-card p { max-width: 34rem; }

.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 3rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18ch; margin-bottom: 1.25rem; font-size: clamp(2.8rem, 7vw, 5.8rem); }
.page-hero .lede { max-width: 45rem; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.page-hero-meta span { padding: 0.48rem 0.72rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.76rem; }

.timeline { position: relative; display: grid; gap: 0.9rem; margin-top: 2rem; }
.timeline::before { position: absolute; top: 1rem; bottom: 1rem; left: 0.55rem; width: 1px; background: var(--line-strong); content: ""; }
.timeline-item { position: relative; display: grid; grid-template-columns: 1.25rem 1fr; gap: 1.1rem; }
.timeline-marker { z-index: 1; width: 1.15rem; height: 1.15rem; margin-top: 1.55rem; border: 3px solid var(--ink); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline-item:first-child .timeline-marker { background: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 0 0 0.35rem rgba(196, 242, 105, 0.12); }
.timeline-content { padding: 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.timeline-content header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.timeline-content h2 { font-size: 1.18rem; letter-spacing: -0.025em; }
.timeline-content time { color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.75rem; text-align: right; white-space: nowrap; }
.timeline-content p { font-size: 0.93rem; }
.timeline-content .company { display: block; margin-top: 0.25rem; color: var(--lime); font-size: 0.85rem; font-weight: 750; }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cert-card { min-height: 12rem; }
.cert-card h2 { margin-bottom: 0.9rem; font-size: 1.25rem; letter-spacing: -0.025em; }
.cert-list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.cert-list li { color: var(--muted); font-size: 0.9rem; }
.cert-list li::before { margin-right: 0.5rem; color: var(--accent); content: "↳"; }
.education-card { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: center; }
.education-card h2 { max-width: 11ch; font-size: clamp(1.8rem, 4vw, 3rem); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.project-card { display: flex; flex-direction: column; min-height: 20rem; }
.project-card h2 { margin-bottom: 0.8rem; font-size: 1.8rem; letter-spacing: -0.035em; }
.metric-note { grid-column: 1 / -1; margin-top: 0.15rem; color: var(--muted); font-size: 0.72rem; }
.project-card .project-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.2rem 0; }
.project-meta span { padding: 0.35rem 0.55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.7rem; }
.project-card .card-link { margin-top: auto; }
.project-card--wide { grid-column: 1 / -1; }
.tabs-layout { display: grid; grid-template-columns: minmax(11rem, 0.3fr) 1fr; gap: 1rem; margin-top: 1.5rem; }
.tab-list { display: grid; align-content: start; gap: 0.45rem; }
.tab-button { padding: 0.75rem 0.9rem; border: 1px solid transparent; border-radius: 0.65rem; color: var(--muted); background: transparent; font-size: 0.87rem; text-align: left; transition: color 180ms ease, background 180ms ease, border-color 180ms ease; }
.tab-button:hover, .tab-button[aria-selected="true"] { border-color: var(--line-strong); color: var(--text); background: rgba(103, 232, 249, 0.1); }
.tab-panel { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(7, 17, 31, 0.35); }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { margin-bottom: 0.8rem; }
.code-surface { margin-top: 1.2rem; padding: 1rem; border: 1px solid rgba(103, 232, 249, 0.2); border-radius: 0.7rem; color: var(--accent); background: #06101d; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.8rem; line-height: 1.8; white-space: pre-wrap; }

.contact-panel { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(103, 232, 249, 0.34); border-radius: var(--radius-lg); background: linear-gradient(110deg, rgba(103, 232, 249, 0.12), rgba(196, 242, 105, 0.08)); }
.contact-panel h2 { max-width: 13ch; font-size: clamp(1.8rem, 4vw, 3.3rem); }

.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: rgba(4, 10, 18, 0.55); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0; }
.footer-inner p { font-size: 0.82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; }
.footer-links a { color: var(--muted); font-size: 0.82rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.scroll-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 10; display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); background: var(--accent); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(0.75rem); transition: opacity 180ms ease, transform 180ms ease; }
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top svg { width: 1rem; height: 1rem; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 1rem; left: 1rem; display: none; flex-direction: column; align-items: stretch; padding: 0.7rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(10, 26, 45, 0.98); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { border-radius: 0.6rem; }
  .site-nav .nav-contact { text-align: center; }
  .hero-grid, .impact-grid, .path-grid, .education-card { grid-template-columns: 1fr; }
  .hero-grid { align-items: start; }
  .profile-panel { max-width: 30rem; }
  .cards, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card--wide { grid-column: auto; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 4.5rem; }
  .section { padding: 4.2rem 0; }
  h1 { font-size: clamp(2.65rem, 15vw, 4rem); }
  .cards, .cert-grid, .project-grid, .metric-grid { grid-template-columns: 1fr; }
  .timeline-content header { display: block; }
  .timeline-content time { display: block; margin-top: 0.35rem; text-align: left; }
  .tabs-layout { grid-template-columns: 1fr; }
  .tab-list { grid-template-columns: repeat(2, 1fr); }
  .contact-panel, .footer-inner { display: block; }
  .contact-panel .button { margin-top: 1.4rem; }
  .footer-links { justify-content: flex-start; margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Portfolio refresh — visual system, data surfaces and responsive refinements */
:root {
  --ink: #06101d;
  --ink-soft: #0b1929;
  --surface: rgba(15, 35, 56, 0.82);
  --surface-solid: #102942;
  --surface-raised: #183b5b;
  --surface-soft: rgba(103, 232, 249, 0.06);
  --line: rgba(182, 215, 236, 0.2);
  --line-strong: rgba(103, 232, 249, 0.62);
  --text: #f7fbff;
  --muted: #aec0d0;
  --muted-strong: #d2deea;
  --accent: #67e8f9;
  --accent-strong: #22d3ee;
  --lime: #c4f269;
  --warning: #ffd166;
  --max-width: 1200px;
  --radius-sm: 0.65rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

html { scroll-padding-top: 6rem; }
body { color-scheme: dark; background-color: var(--ink); }
main { isolation: isolate; }
.site-header { border-bottom-color: rgba(182, 215, 236, 0.16); background: rgba(6, 16, 29, 0.9); }
.header-inner { min-height: 5.25rem; }
.brand { letter-spacing: 0.12em; }
.brand-mark { box-shadow: 0 0 0 0.3rem rgba(103, 232, 249, 0.08); }
.site-nav a::after { position: absolute; right: 0.8rem; bottom: 0.35rem; left: 0.8rem; height: 2px; background: var(--accent); content: ""; opacity: 0; transform: scaleX(0.4); transition: opacity 180ms ease, transform 180ms ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
.site-nav .nav-contact::after { display: none; }
.nav-toggle { min-width: 2.8rem; min-height: 2.8rem; }
.nav-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); background: rgba(103, 232, 249, 0.1); }

.hero { position: relative; overflow: hidden; }
.hero::after { position: absolute; right: -12rem; bottom: -18rem; z-index: -1; width: 38rem; height: 38rem; border: 1px solid rgba(103, 232, 249, 0.12); border-radius: 50%; box-shadow: 0 0 0 3rem rgba(103, 232, 249, 0.025), 0 0 0 7rem rgba(196, 242, 105, 0.02); content: ""; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 14ch; font-weight: 850; }
.hero h1 em { text-shadow: 0 0 2rem rgba(103, 232, 249, 0.16); }
.hero-actions { align-items: center; }
.button { min-height: 3.15rem; padding-inline: 1.2rem; box-shadow: 0 10px 26px rgba(34, 211, 238, 0.14); }
.button--ghost { box-shadow: none; }
.profile-panel { border-color: rgba(103, 232, 249, 0.3); }
.profile-panel::after { position: absolute; bottom: 1.1rem; left: -0.45rem; width: 0.6rem; height: 4.5rem; border-radius: 999px; background: var(--lime); box-shadow: 0 0 1.2rem rgba(196, 242, 105, 0.35); content: ""; }
.profile-meta { padding-inline: 0.75rem; }
.profile-meta p { color: var(--muted-strong); }

.hero-proof, .social-links, .data-note, .project-status, .timeline-tags, .credential-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.hero-proof { margin: 0 0 2.2rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(103, 232, 249, 0.045); }
.hero-proof-item { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted-strong); font-size: 0.78rem; }
.hero-proof-item + .hero-proof-item { padding-left: 0.7rem; border-left: 1px solid var(--line); }
.hero-proof-item strong { color: var(--text); }
.social-links { margin-top: 1rem; }
.social-links a { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.4rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted-strong); font-size: 0.78rem; font-weight: 750; text-decoration: none; transition: border-color 180ms ease, color 180ms ease, background 180ms ease; }
.social-links a:hover { border-color: var(--line-strong); color: var(--text); background: rgba(103, 232, 249, 0.08); }

.section-heading { position: relative; }
.section-heading::after { display: block; width: 4rem; height: 2px; margin-top: 1.5rem; background: linear-gradient(90deg, var(--accent), transparent); content: ""; }
.section-heading .lede { color: var(--muted-strong); }
.cards { gap: 1.2rem; }
.card { position: relative; overflow: hidden; border-color: rgba(182, 215, 236, 0.22); background: linear-gradient(145deg, rgba(21, 48, 75, 0.84), rgba(10, 26, 45, 0.82)); transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.card::before { position: absolute; top: 0; right: 0; width: 5rem; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); content: ""; opacity: 0.7; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2); transform: translateY(-3px); }
.card-number { margin-bottom: 1.8rem; color: var(--accent); }
.card p { color: var(--muted-strong); }
.card-link { align-items: center; gap: 0.35rem; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--line); }
.stat-band-item { padding: 1.1rem 1.2rem; background: rgba(15, 35, 56, 0.82); }
.stat-band-item strong { display: block; color: var(--text); font-size: 1.35rem; }
.stat-band-item span { color: var(--muted); font-size: 0.78rem; }
.metric-grid { gap: 1rem; }
.metric { min-height: 8rem; border-left-width: 3px; background: linear-gradient(110deg, rgba(103, 232, 249, 0.08), rgba(103, 232, 249, 0.015)); }
.metric strong { font-weight: 850; }
.metric-note, .data-note { color: var(--muted); font-size: 0.78rem; }
.data-note { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.data-note::before { color: var(--accent); content: "↳"; font-weight: 800; }

.page-hero { position: relative; overflow: hidden; }
.page-hero::after { position: absolute; right: -5rem; bottom: -9rem; width: 22rem; height: 22rem; border: 1px solid rgba(196, 242, 105, 0.12); border-radius: 50%; content: ""; pointer-events: none; }
.page-hero h1 { position: relative; z-index: 1; }
.page-hero-meta span, .project-meta span { border-color: rgba(182, 215, 236, 0.24); background: rgba(103, 232, 249, 0.035); }

.timeline { gap: 1.15rem; }
.timeline-content { border-color: rgba(182, 215, 236, 0.22); background: linear-gradient(145deg, rgba(21, 48, 75, 0.8), rgba(10, 26, 45, 0.78)); }
.timeline-content header { align-items: start; }
.timeline-content p { color: var(--muted-strong); }
.timeline-content .company { letter-spacing: 0.02em; }
.timeline-tags { margin-top: 1rem; }
.timeline-tags span { padding: 0.28rem 0.5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.68rem; }
.timeline-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 2rem 0 0 2.35rem; }
.timeline-summary div { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(103, 232, 249, 0.04); }
.timeline-summary strong { display: block; color: var(--accent); font-size: 1.2rem; }
.timeline-summary span { color: var(--muted); font-size: 0.76rem; }

.cert-grid { gap: 1.2rem; }
.cert-card { min-height: 14rem; }
.cert-card h2 { font-weight: 800; }
.cert-list li { color: var(--muted-strong); }
.cert-list li::before { content: "✓"; }
.credential-meta { margin: 1rem 0 0; }
.credential-meta span { padding: 0.28rem 0.5rem; border: 1px solid rgba(196, 242, 105, 0.3); border-radius: 999px; color: var(--lime); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.education-card { border-color: rgba(196, 242, 105, 0.28); }

.project-grid { gap: 1.2rem; }
.project-card { min-height: 23rem; }
.project-card--wide { background: linear-gradient(135deg, rgba(103, 232, 249, 0.12), rgba(15, 35, 56, 0.85) 58%); }
.project-card h2 { font-weight: 800; }
.project-status { margin: 0.8rem 0 0; }
.project-status span { padding: 0.3rem 0.55rem; border-radius: 999px; color: var(--muted-strong); background: rgba(7, 17, 31, 0.38); font-size: 0.7rem; }
.project-status .is-live { color: var(--lime); border: 1px solid rgba(196, 242, 105, 0.32); }
.project-status .is-research { color: var(--warning); border: 1px solid rgba(255, 209, 102, 0.32); }
.tabs-layout { gap: 1.4rem; }
.tab-list { position: sticky; top: 7rem; align-self: start; }
.tab-button { min-height: 2.8rem; }
.tab-button[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--accent); }
.tab-panel { min-height: 19rem; }
.code-surface { border-color: rgba(103, 232, 249, 0.3); box-shadow: inset 0 0 2rem rgba(103, 232, 249, 0.035); }

.contact-panel { position: relative; overflow: hidden; border-color: rgba(103, 232, 249, 0.44); box-shadow: var(--shadow); }
.contact-panel::after { position: absolute; right: -3rem; bottom: -6rem; width: 13rem; height: 13rem; border: 1px solid rgba(196, 242, 105, 0.2); border-radius: 50%; content: ""; pointer-events: none; }
.contact-panel > * { position: relative; z-index: 1; }
.site-footer { background: rgba(4, 10, 18, 0.78); }
.footer-status { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.45rem; color: var(--muted); font-size: 0.72rem; }
.footer-status::before { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--lime); content: ""; }

@media (max-width: 820px) {
  .hero::after { right: -17rem; bottom: -12rem; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .timeline-summary { margin-left: 2.35rem; }
  .tab-list { position: static; }
}

@media (max-width: 560px) {
  .hero-proof { align-items: stretch; flex-direction: column; }
  .hero-proof-item + .hero-proof-item { padding-top: 0.55rem; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .stat-band, .timeline-summary { grid-template-columns: 1fr; }
  .timeline-summary { margin-left: 2.35rem; }
  .profile-panel::after { bottom: 4.5rem; }
  .tab-list { grid-template-columns: 1fr; }
}

/* First-viewport balance: keep the message and CTA visible on desktop */
.hero { padding-top: clamp(3.5rem, 5vw, 5rem); padding-bottom: 3rem; }
.hero h1 { max-width: 20ch; font-size: clamp(2.65rem, 4.5vw, 4.2rem); }
.profile-panel { max-width: 31rem; justify-self: end; }
@media (max-width: 820px) {
  .profile-panel { justify-self: start; }
}

.hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr); gap: clamp(1.5rem, 5vw, 4rem); }
.hero h1 { max-width: 22ch; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { max-width: none; }

.hero h1 { font-size: clamp(2.4rem, 3.8vw, 3.8rem); line-height: 1.02; }
