:root {
  --bg: #121826;
  --bg-alt: #182133;
  --ink: #f3f7fb;
  --muted: #a7b4c4;
  --line: rgba(226, 232, 240, 0.14);
  --panel: rgba(27, 38, 58, 0.78);
  --panel-strong: rgba(31, 45, 67, 0.9);
  --accent: #7dd3c7;
  --accent-strong: #9bd8ff;
  --blue: #6ea8fe;
  --gold: #f6c66d;
  --shadow: 0 24px 70px rgba(4, 8, 18, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(226, 232, 240, 0.035) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(125, 211, 199, 0.14), transparent 31rem),
    radial-gradient(circle at 84% 24%, rgba(110, 168, 254, 0.13), transparent 29rem),
    var(--bg);
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 16px 0 56px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 24, 38, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact-actions,
.skill-controls,
.project-tags,
.skill-tags {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
}

.nav-links {
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.nav-action,
.button,
.skill-filter {
  min-height: 40px;
  border-radius: 8px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.nav-links a {
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-action:hover,
.button:hover,
.skill-filter:hover {
  transform: translateY(-2px);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(125, 211, 199, 0.1);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-action {
  display: inline-grid;
  place-items: center;
  padding: 9px 15px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
}

.nav-action.ghost {
  background: rgba(226, 232, 240, 0.08);
  color: var(--ink);
}

.section-band,
.section-block,
.contact-section {
  margin-bottom: 100px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 130px);
  padding-bottom: 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 4.7rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-grid;
  place-items: center;
  padding: 11px 18px;
  border: 1px solid var(--line);
  font-weight: 850;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.button.secondary {
  background: rgba(226, 232, 240, 0.08);
  color: var(--ink);
}

.system-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.system-visual::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(125, 211, 199, 0.13), transparent 36%),
    radial-gradient(circle at 84% 62%, rgba(110, 168, 254, 0.17), transparent 28%);
}

.profile-card,
.focus-list {
  position: relative;
  z-index: 1;
}

.profile-card {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.profile-card h2 {
  margin-bottom: 18px;
  font-size: 2.15rem;
}

.profile-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.focus-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.focus-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 22px;
  background: rgba(18, 24, 38, 0.64);
}

.focus-list article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(125, 211, 199, 0.1);
  color: var(--accent);
  font-weight: 900;
}

.focus-list article b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 850;
}

.focus-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats-strip div {
  padding: 26px;
  background: rgba(27, 38, 58, 0.78);
}

.metric-value {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
}

.section-heading {
  display: block;
  max-width: 780px;
  margin: 0 auto 44px;
  padding: 46px 0 34px;
  text-align: center;
}

.section-heading h2 {
  margin-right: auto;
  margin-left: auto;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 206px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 54px;
  padding: 0 0 34px;
}

.timeline-item::before {
  position: absolute;
  top: 9px;
  left: 199px;
  width: 15px;
  height: 15px;
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line);
  content: "";
}

.timeline-date {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
}

.timeline-content,
.skill-panel,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.timeline-content {
  padding: 24px;
}

.company {
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-weight: 850;
}

.timeline-content p:last-child,
.project-card p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.highlight-bullet {
  margin-top: 10px;
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  background: rgba(125, 211, 199, 0.08);
}

.skills-section {
  padding: 34px 58px 58px;
  border-radius: 8px;
  background: var(--bg-alt);
}

.skill-controls {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.skill-filter {
  border: 1px solid var(--line);
  padding: 9px 13px;
  background: rgba(226, 232, 240, 0.08);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.skill-filter.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

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

.skill-panel {
  padding: 22px;
}

.skill-tags,
.project-tags {
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.skill-tags span,
.project-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(226, 232, 240, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 750;
}

.skill-panel.is-hidden {
  display: none;
}

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

.project-card {
  min-height: 300px;
  padding: 26px;
}

.project-card:nth-child(1) {
  border-top: 5px solid var(--accent);
}

.project-card:nth-child(2) {
  border-top: 5px solid var(--blue);
}

.project-card:nth-child(3) {
  border-top: 5px solid #78d0ff;
}

.project-card:nth-child(4) {
  border-top: 5px solid var(--gold);
}

.project-meta {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-card h3 a {
  border-bottom: 1px solid transparent;
}

.project-card h3 a:hover,
.project-link:hover {
  border-bottom-color: var(--accent);
}

.project-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: end;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(31, 45, 67, 0.96), rgba(19, 27, 42, 0.98));
  color: var(--bg);
}

.contact-section .eyebrow {
  color: var(--accent);
}

.contact-section p {
  max-width: 640px;
  color: rgba(244, 251, 255, 0.74);
}

.contact-section .button.secondary {
  background: rgba(226, 232, 240, 0.08);
  color: var(--ink);
}

.contact-section .button.primary {
  background: var(--accent);
  color: var(--bg);
}

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition:
    opacity 640ms ease,
    transform 640ms ease;
}

.reveal.in-view {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 28px, 720px);
  }

  .site-header,
  .hero,
  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    gap: 12px;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-action {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    gap: 28px;
    min-height: auto;
  }

  .stats-strip,
  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 34px;
  }

  .timeline-item::before {
    left: 1px;
  }

  .skills-section {
    padding: 28px;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  h1 {
    font-size: 3.85rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .profile-card h2 {
    font-size: 1.95rem;
  }

  .metric-value {
    font-size: 2.4rem;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 520px);
  }

  .section-band,
  .section-block,
  .contact-section {
    margin-bottom: 70px;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.8rem;
  }

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

  .stats-strip,
  .skills-grid,
  .project-grid,
  .focus-list article {
    grid-template-columns: 1fr;
  }

  .stats-strip div,
  .timeline-content,
  .project-card,
  .contact-section {
    padding: 20px;
  }

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

  .button {
    text-align: center;
    overflow-wrap: anywhere;
  }
}
