:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: rgba(16, 32, 53, 0.78);
  --surface-strong: #102035;
  --surface-light: #152941;
  --text: #ecf5ff;
  --muted: #9fb2c8;
  --subtle: #6f849c;
  --line: rgba(159, 178, 200, 0.18);
  --primary: #61d9c2;
  --primary-strong: #22bfa2;
  --secondary: #79a7ff;
  --accent: #c59bff;
  --warning: #ffc86b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(97, 217, 194, 0.09), transparent 28rem),
    radial-gradient(circle at 86% 20%, rgba(121, 167, 255, 0.11), transparent 30rem),
    linear-gradient(180deg, #07111f 0%, #091522 38%, #07111f 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

::selection {
  color: #06101c;
  background: var(--primary);
}

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

button,
input,
textarea {
  font: inherit;
}

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

code {
  padding: 0.08rem 0.36rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #bfeee5;
  background: rgba(97, 217, 194, 0.06);
  font-size: 0.92em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 2000;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--primary);
  color: #06101c;
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.section-shell {
  width: min(var(--content), calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(7, 17, 31, 0.94);
}

.nav-shell {
  width: min(var(--content), calc(100% - 3rem));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(97, 217, 194, 0.36);
  border-radius: 13px;
  color: var(--primary);
  background: linear-gradient(145deg, rgba(97, 217, 194, 0.16), rgba(121, 167, 255, 0.08));
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 18px rgba(97, 217, 194, 0.08);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand-copy span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  position: relative;
  padding: 0.7rem 0.82rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  min-height: calc(100vh - var(--header-height));
  padding-block: clamp(5rem, 9vw, 8rem) 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(97, 217, 194, 0.12), 0 0 18px rgba(97, 217, 194, 0.5);
}

.hero h1 {
  max-width: 820px;
  margin: 1.1rem 0 1.25rem;
  font-size: clamp(3rem, 7vw, 6.45rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.8;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 780;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #07111f;
  background: linear-gradient(135deg, #8ce8d6, var(--primary));
  box-shadow: 0 14px 35px rgba(34, 191, 162, 0.2);
}

.button.primary:hover {
  box-shadow: 0 18px 42px rgba(34, 191, 162, 0.28);
}

.button.secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.button.secondary:hover {
  border-color: rgba(121, 167, 255, 0.45);
  background: rgba(121, 167, 255, 0.07);
}

.hero-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 0.2s ease;
}

.hero-links a:hover {
  color: var(--primary);
}

.hero-links i {
  margin-right: 0.35rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-visual::before {
  width: 330px;
  height: 330px;
  border: 1px solid rgba(97, 217, 194, 0.16);
  box-shadow: 0 0 0 46px rgba(97, 217, 194, 0.025), 0 0 0 92px rgba(121, 167, 255, 0.025);
}

.hero-visual::after {
  width: 170px;
  height: 170px;
  right: 4%;
  top: 2%;
  background: rgba(121, 167, 255, 0.08);
  filter: blur(55px);
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(320px, 76vw);
  aspect-ratio: 0.84;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 42% 42% 34% 34% / 34% 34% 28% 28%;
  background: linear-gradient(145deg, rgba(97, 217, 194, 0.25), rgba(121, 167, 255, 0.1));
  box-shadow: var(--shadow), 0 0 0 9px rgba(255,255,255,.025);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: grayscale(1) contrast(1.05);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,17,31,.52), transparent 46%);
}

.floating-card {
  position: absolute;
  z-index: 3;
  min-width: 185px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;
  background: rgba(12, 27, 46, 0.86);
  box-shadow: 0 16px 45px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
}

.floating-card span,
.floating-card small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.floating-card strong {
  display: block;
  margin: 0.1rem 0;
  color: var(--primary);
  font-size: 1.32rem;
}

.card-one {
  left: -2.5rem;
  bottom: 5.2rem;
}

.card-two {
  right: -2.1rem;
  top: 6.4rem;
}

.metrics {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.025);
  overflow: hidden;
  box-shadow: 0 22px 65px rgba(0,0,0,.13);
}

.metrics article {
  min-height: 142px;
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metrics article + article {
  border-left: 1px solid var(--line);
}

.metrics strong {
  color: var(--text);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.metrics span {
  margin-top: 0.48rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.content-section {
  padding-block: clamp(5rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 3.2rem;
}

.section-heading h2 {
  margin: 0.9rem 0 0;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-heading p {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.about-copy {
  padding-right: clamp(0rem, 4vw, 4rem);
}

.about-copy p {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.about-copy .lead {
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.focus-panel {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(97,217,194,.055), rgba(121,167,255,.035));
  box-shadow: 0 20px 65px rgba(0,0,0,.14);
}

.focus-panel h3 {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.focus-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-panel li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.9rem;
  padding-block: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.focus-panel li + li {
  border-top: 1px solid var(--line);
}

.focus-panel i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--primary);
  background: rgba(97,217,194,.09);
}

.focus-panel strong {
  display: block;
  margin-bottom: 0.17rem;
  color: var(--text);
  font-size: 0.92rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 244px;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--primary), rgba(121,167,255,.15), transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3.2rem;
}

.timeline-meta {
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.timeline-meta::after {
  content: "";
  position: relative;
  z-index: 2;
  width: 11px;
  height: 11px;
  margin-top: 1.05rem;
  margin-right: -30px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(97,217,194,.14);
}

.date {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.location {
  margin-top: 0.35rem;
  color: var(--subtle);
  font-size: 0.78rem;
}

.timeline-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.025);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.timeline-card:hover {
  transform: translateY(-3px);
  border-color: rgba(97,217,194,.28);
  background: rgba(255,255,255,.038);
}

.timeline-card.compact {
  padding-bottom: 1.4rem;
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.role-header h3 {
  margin: 0;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.role-header p {
  margin: 0.24rem 0 0;
  color: var(--secondary);
  font-weight: 650;
}

.role-badge {
  flex: 0 0 auto;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(121,167,255,.18);
  border-radius: 999px;
  color: #b9ceff;
  background: rgba(121,167,255,.07);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.timeline-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.timeline-card li {
  margin-top: 0.58rem;
  padding-left: 0.2rem;
}

.timeline-card li::marker {
  color: var(--primary);
}

.timeline-card > p {
  margin: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.achievement-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  background: var(--surface-color);
}

.achievement-content {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.achievement-content h3,
.achievement-content p {
  max-width: 100%;
  overflow-wrap: break-word;
}

.achievement-content .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.achievement-content .tech-list span {
  max-width: 100%;
  white-space: normal;
}

.achievement-image {
  overflow: hidden;
  border-radius: 0.9rem;
  aspect-ratio: 750 / 585;
}

.achievement-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.achievement-feature:hover .achievement-image img {
  transform: scale(1.025);
}

.achievement-content h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.achievement-meta {
  margin-bottom: 1rem;
  color: var(--muted-text-color);
  font-size: 0.95rem;
}

@media (max-width: 1000px) {
  .achievement-feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .achievement-image {
    width: 100%;
    max-width: 650px;
    margin-inline: auto;
  }
}
.project-card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent 68%);
  opacity: .65;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(97,217,194,.3);
  box-shadow: 0 18px 55px rgba(0,0,0,.16);
}

.project-card.featured {
  min-height: 430px;
  padding: 2rem;
  background:
    radial-gradient(circle at 100% 0, rgba(121,167,255,.09), transparent 45%),
    linear-gradient(145deg, rgba(97,217,194,.055), rgba(255,255,255,.015));
}

.project-icon,
.skill-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(97,217,194,.17);
  border-radius: 13px;
  color: var(--primary);
  background: rgba(97,217,194,.07);
}

.project-label {
  margin-bottom: .55rem;
  color: var(--secondary);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0 0 .85rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-impact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.project-impact li,
.metric-callout {
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.project-impact strong,
.metric-callout strong {
  display: block;
  color: var(--primary);
  font-size: 1.08rem;
}

.project-impact span,
.metric-callout span {
  display: block;
  margin-top: .15rem;
  color: var(--subtle);
  font-size: .72rem;
  line-height: 1.4;
}

.metric-callout {
  margin: 1.25rem 0;
}

.tech-list {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.tech-list span {
  padding: .32rem .58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.024);
  font-size: .7rem;
  font-weight: 700;
}

.subsection-heading {
  margin: 5rem 0 2rem;
  max-width: 720px;
}

.subsection-heading span {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.subsection-heading h3 {
  margin: .65rem 0 0;
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.ai-grid .project-card::before {
  background: linear-gradient(90deg, var(--accent), transparent 68%);
}

.ai-grid .project-icon {
  color: var(--accent);
  border-color: rgba(197,155,255,.2);
  background: rgba(197,155,255,.07);
}

.earlier-work {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}

.earlier-work summary {
  padding: 1.2rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 780;
  list-style: none;
}

.earlier-work summary::-webkit-details-marker {
  display: none;
}

.earlier-work summary i {
  color: var(--primary);
  transition: transform .2s ease;
}

.earlier-work[open] summary i {
  transform: rotate(180deg);
}

.earlier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.earlier-grid article {
  padding: 1.5rem;
  background: var(--bg-soft);
}

.earlier-grid h4 {
  margin: 0 0 .55rem;
  font-size: 1.08rem;
}

.earlier-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 750;
}

.text-link i {
  margin-left: .25rem;
  font-size: .75rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.skill-card {
  min-height: 205px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.022);
  transition: transform .2s ease, border-color .2s ease;
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(121,167,255,.28);
}

.skill-card:nth-child(3n+2) .skill-icon {
  color: var(--secondary);
  border-color: rgba(121,167,255,.18);
  background: rgba(121,167,255,.06);
}

.skill-card:nth-child(3n) .skill-icon {
  color: var(--accent);
  border-color: rgba(197,155,255,.18);
  background: rgba(197,155,255,.06);
}

.skill-card h3 {
  margin: 0 0 .55rem;
  font-size: 1rem;
}

.skill-card p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
}

.education-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(121,167,255,.055), rgba(97,217,194,.025));
}

.education-mark {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1;
  border: 1px solid rgba(97,217,194,.2);
  border-radius: 24px;
  color: var(--primary);
  background: rgba(97,217,194,.06);
  font-weight: 900;
  letter-spacing: .06em;
}

.education-card h3 {
  margin: .4rem 0 .15rem;
  font-size: 1.5rem;
  letter-spacing: -.025em;
}

.education-card p {
  margin: 0;
  color: var(--secondary);
  font-weight: 650;
}

.education-card .education-detail {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 400;
}

.achievement-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.achievement-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.022);
}

.placement {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  color: var(--warning);
  background: rgba(255,200,107,.07);
  font-size: 1.15rem;
  font-weight: 900;
}

.icon-placement {
  color: var(--primary);
  background: rgba(97,217,194,.07);
}

.achievement-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.achievement-card p {
  margin: .15rem 0 .2rem;
  color: var(--secondary);
  font-size: .82rem;
  font-weight: 700;
}

.achievement-card small {
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(97,217,194,.08), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(121,167,255,.07), transparent 40%),
    rgba(255,255,255,.02);
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  margin: .85rem 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.contact-copy > p {
  max-width: 600px;
  color: var(--muted);
}

.contact-methods {
  margin-top: 1.8rem;
  display: grid;
  gap: .7rem;
}

.contact-methods a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .8rem;
  align-items: center;
  color: var(--muted);
}

.contact-methods a:hover {
  color: var(--text);
}

.contact-methods i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--primary);
  background: rgba(255,255,255,.025);
}

.contact-methods span {
  font-size: .88rem;
}

.contact-methods small {
  display: block;
  color: var(--subtle);
  font-size: .68rem;
  font-weight: 780;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.resume-links {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.resume-links a {
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.02);
  font-size: .8rem;
  font-weight: 750;
}

.resume-links a:hover {
  color: var(--primary);
  border-color: rgba(97,217,194,.28);
}

.contact-form {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(7,17,31,.52);
}

.contact-form label {
  display: block;
  margin: .75rem 0 .35rem;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: rgba(255,255,255,.025);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form input {
  height: 46px;
  padding: 0 .8rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 125px;
  padding: .7rem .8rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: rgba(97,217,194,.025);
  box-shadow: 0 0 0 3px rgba(97,217,194,.09);
}

.contact-form .button {
  width: 100%;
  margin-top: 1rem;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.08);
}

.footer-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p,
.footer-inner a {
  color: var(--subtle);
  font-size: .8rem;
}

.footer-inner a:hover {
  color: var(--primary);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 7vw, 5.3rem);
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-one { left: -1rem; }
  .card-two { right: -1rem; }
}

@media (max-width: 900px) {
  :root { --header-height: 70px; }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: calc(100% + .65rem);
    padding: .55rem;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(7,17,31,.98);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: .85rem 1rem;
  }

  .site-nav a.active::after {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 4.5rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 480px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metrics article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding-right: 0;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: .65rem;
    padding-left: 2.3rem;
  }

  .timeline-meta {
    position: relative;
    padding-top: 0;
    align-items: flex-start;
    text-align: left;
  }

  .timeline-meta::after {
    position: absolute;
    left: -31px;
    top: 4px;
    margin: 0;
  }

  .timeline-meta .location {
    display: inline;
  }
}

@media (max-width: 700px) {
  .section-shell,
  .nav-shell {
    width: min(var(--content), calc(100% - 2rem));
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.2rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 440px;
  }

  .portrait-frame {
    width: min(285px, 78vw);
  }

  .floating-card {
    min-width: 155px;
    padding: .75rem .8rem;
  }

  .floating-card strong {
    font-size: 1.12rem;
  }

  .card-one {
    left: 0;
    bottom: 3.6rem;
  }

  .card-two {
    right: 0;
    top: 4.5rem;
  }

  .project-grid,
  .achievement-grid,
  .earlier-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    min-height: auto;
  }

  .project-impact {
    grid-template-columns: 1fr;
  }

  .education-card {
    grid-template-columns: 1fr;
  }

  .education-mark {
    width: 86px;
  }

  .footer-inner {
    padding-block: 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .brand-copy span {
    display: none;
  }

  .hero-actions .button {
    width: 100%;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics article + article,
  .metrics article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .role-header {
    flex-direction: column;
  }

  .achievement-card {
    grid-template-columns: 58px 1fr;
  }

  .placement {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .contact-panel {
    padding: 1.15rem;
  }

  .contact-form {
    padding: 1rem;
  }
}
