:root {
  --ink: #12201f;
  --muted: #596866;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(18, 32, 31, 0.12);
  --teal: #0f766e;
  --mint: #a7f3d0;
  --coral: #ef6f55;
  --blue: #2563eb;
  --gold: #c08400;
  --shadow: 0 22px 70px rgba(22, 42, 45, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(167, 243, 208, 0.45), transparent 24rem),
    radial-gradient(circle at 82% 6%, rgba(239, 111, 85, 0.18), transparent 26rem),
    linear-gradient(135deg, #f8fbfa 0%, #eef6f4 46%, #f7f4ec 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

#system-map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.58;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: 0 0 16px 16px;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(18, 32, 31, 0.11);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 44px rgba(18, 32, 31, 0.12);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.32);
  border-radius: 8px;
  color: #063f3a;
  background: linear-gradient(135deg, rgba(167, 243, 208, 0.9), rgba(255, 255, 255, 0.86));
  font-size: 0.78rem;
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.12);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(18, 32, 31, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: #123c39;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav {
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 32px rgba(18, 32, 31, 0.06);
}

.nav a {
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(15, 118, 110, 0.1);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

main,
.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-band {
  position: relative;
  margin: 1rem 0;
}

.hero {
  display: grid;
  min-height: calc(100vh - 6rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 2rem;
  padding: 4rem 0 3rem;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.hero-title {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
}

.hero-title {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  padding: 0.48rem 0.78rem;
  background: rgba(255, 255, 255, 0.58);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.2;
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.08);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.8rem, 5.9vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  color: #0c554f;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-text,
.about > p,
.timeline-body p,
.impact-list,
.education p,
.skill-card p,
.skill-list {
  color: var(--muted);
}

.hero-text {
  max-width: 690px;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.82rem 1.05rem;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(18, 32, 31, 0.1);
}

.button.primary {
  color: #ffffff;
  background: #123c39;
}

.button.secondary {
  border-color: var(--line);
  color: #123c39;
  background: rgba(255, 255, 255, 0.76);
}

.signal-panel,
.skill-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.signal-panel {
  align-self: center;
  padding: 1rem;
}

.signal-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.4rem 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.status-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(239, 111, 85, 0.16);
}

.terminal-card {
  padding: 1.15rem;
  border-radius: 8px;
  color: #d8fff3;
  background:
    linear-gradient(160deg, rgba(7, 33, 31, 0.98), rgba(9, 55, 52, 0.96)),
    #07211f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  box-shadow: inset 0 0 0 1px rgba(167, 243, 208, 0.18);
}

.terminal-card p {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.8rem;
  margin: 0;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(216, 255, 243, 0.12);
}

.terminal-card p:last-child {
  border-bottom: 0;
}

.terminal-card p > span:first-child {
  color: #87dbc2;
}

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

.metric {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.metric strong {
  display: flex;
  align-items: baseline;
  gap: 0.04em;
  white-space: nowrap;
  color: #0c554f;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.metric > span {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-weight: 700;
}

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.profile-metrics {
  grid-column: 1 / -1;
  padding: 0;
}

.about > p {
  max-width: 780px;
  font-size: 1.16rem;
}

.skills,
.experience,
.awards,
.education,
.contact-section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.8rem;
}

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

.skill-card {
  position: relative;
  overflow: hidden;
  min-height: 11rem;
  padding: 1.3rem;
}

.skill-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: var(--teal);
}

.skill-card:nth-child(2)::before {
  background: #2f6f9f;
}

.skill-card:nth-child(3)::before {
  background: var(--coral);
}

.skill-card:nth-child(4)::before {
  background: #6d6bb6;
}

.skill-card:nth-child(5)::before {
  background: var(--gold);
}

.skill-card:nth-child(6)::before {
  background: #2f8f68;
}

.skill-card h3 {
  color: #123c39;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
  color: #244442;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.timeline-item::before {
  position: absolute;
  top: 1.55rem;
  left: 0;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  content: "";
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(239, 111, 85, 0.12);
  transform: translateX(-1.25rem);
}

.timeline-meta span,
.timeline-meta small,
.timeline-meta h3 {
  display: block;
}

.timeline-meta h3 {
  margin-bottom: 0.45rem;
  color: #123c39;
  font-size: 1.18rem;
}

.timeline-meta span {
  margin-bottom: 0.28rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.timeline-meta small {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
}

.timeline-body {
  max-width: 820px;
}

.impact-list {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding-left: 1.15rem;
}

.impact-list li::marker {
  color: var(--teal);
}

.progression-note {
  margin: 1rem 0 0;
  border-left: 3px solid rgba(15, 118, 110, 0.34);
  padding: 0.55rem 0 0.55rem 0.8rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.progression-note strong {
  color: #123c39;
}

.award-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.award-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  padding: 0.62rem 0.8rem;
  color: #123c39;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.contact {
  display: grid;
  gap: 0.65rem;
  max-width: 520px;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.contact a,
.contact span {
  color: #0c554f;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact span:last-child {
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: #0c554f;
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding-inline: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.2rem;
    border-radius: 8px;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.86);
    overflow: visible;
  }

  .site-header.nav-open .nav {
    display: flex;
  }

  .nav a {
    min-height: 2.6rem;
    border-radius: 8px;
    padding: 0.62rem 0.75rem;
  }

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

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

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

@media (max-width: 640px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 1.1rem, 1180px);
  }

  .brand {
    min-width: 0;
    font-size: 0.94rem;
  }

  .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-title {
    border-radius: 8px;
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

  h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.55rem);
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metrics,
  .skill-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .skills,
  .experience,
  .awards,
  .education,
  .contact-section,
  .about {
    padding: 3rem 0;
  }

  .terminal-card {
    font-size: 0.78rem;
  }

  .terminal-card p {
    grid-template-columns: 4.4rem minmax(0, 1fr);
    gap: 0.5rem;
  }
}
