:root {
  --bg: #07111a;
  --bg-soft: #0c1d2b;
  --panel: rgba(10, 25, 39, 0.78);
  --panel-strong: rgba(9, 22, 35, 0.95);
  --line: rgba(132, 196, 255, 0.16);
  --text: #ecf6ff;
  --muted: #9fbbcf;
  --accent: #6af2c5;
  --accent-2: #ffb85c;
  --accent-3: #7dc3ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(122, 195, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(106, 242, 197, 0.13), transparent 24%),
    linear-gradient(135deg, #050d15 0%, #08141f 45%, #0d2231 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 195, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 195, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 88%);
  pointer-events: none;
}

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

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

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 13, 22, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #06202e;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-size: 0.96rem;
}

.brand-copy small,
.section-note,
.hero-text,
.story-card p,
.focus-list p,
.timeline p,
.panel-card p,
.proof-card p,
.contact-section p {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(125, 195, 255, 0.24);
  background: rgba(8, 20, 32, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(106, 242, 197, 0.45);
  background: rgba(106, 242, 197, 0.08);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: #d7e8f5;
}

.site-nav a {
  font-size: 0.95rem;
  color: #d7e8f5;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

main {
  display: grid;
  gap: 24px;
  padding-top: 28px;
}

.section-frame {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(4, 12, 22, 0.88));
  box-shadow: var(--shadow);
}

.section-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(125, 195, 255, 0.35), transparent 40%, rgba(106, 242, 197, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 24px;
  min-height: 72vh;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
}

.hero h1,
.story-card h2,
.section-heading h2,
.skill-card h2,
.contact-section h2 {
  margin: 0;
  line-height: 1.04;
}

.hero h1 {
  font-size: clamp(2.9rem, 5.5vw, 5.4rem);
  max-width: 11ch;
}

.hero-slogan {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.5rem, 3.1vw, 2.2rem);
  line-height: 1.2;
  font-weight: 700;
  color: #f0f8ff;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.social-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #06222d;
  background: linear-gradient(135deg, var(--accent), #9cf6de);
}

.button.secondary {
  border-color: rgba(125, 195, 255, 0.26);
  background: rgba(10, 24, 38, 0.7);
}

.signal-list {
  display: grid;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  padding: 14px 16px;
  border-left: 3px solid var(--accent-2);
  border-radius: 14px;
  background: rgba(255, 184, 92, 0.08);
}

.hero-panel,
.panel-grid,
.focus-list,
.skill-groups,
.projects-grid,
.stack-grid,
.about-grid,
.timeline {
  display: grid;
}

.hero-panel {
  gap: 18px;
}

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

.panel-card {
  position: relative;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  padding: 22px;
}

.panel-card.highlight {
  min-height: 220px;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 92, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(14, 34, 48, 0.95), rgba(5, 14, 23, 0.98));
}

.panel-label,
.project-meta,
.tag,
.chip {
  font-family: "IBM Plex Mono", monospace;
}

.panel-label,
.project-meta {
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.panel-card h2,
.panel-card strong,
.project-card h3,
.timeline h3,
.focus-list h3,
.proof-block h3,
.skill-groups h3 {
  margin: 0 0 12px;
}

.panel-card.stat span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent-3);
  font-family: "IBM Plex Mono", monospace;
}

.about-grid,
.stack-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.focus-list,
.skill-groups {
  gap: 18px;
}

.focus-list div,
.proof-block {
  padding: 18px 0;
  border-top: 1px solid rgba(125, 195, 255, 0.12);
}

.focus-list div:first-child,
.proof-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.timeline {
  grid-template-columns: 1fr;
  gap: 14px;
}

.timeline article {
  position: relative;
  padding: 18px 18px 18px 42px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 19, 29, 0.72);
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(106, 242, 197, 0.15);
}

.timeline span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(125, 195, 255, 0.12), transparent 30%),
    rgba(8, 19, 29, 0.78);
  transform: translateY(18px);
  opacity: 0;
  animation: revealUp 600ms ease forwards;
}

.project-card:nth-child(2) {
  animation-delay: 90ms;
}

.project-card:nth-child(3) {
  animation-delay: 180ms;
}

.project-card:nth-child(4) {
  animation-delay: 270ms;
}

.project-card:nth-child(5) {
  animation-delay: 360ms;
}

.project-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.status-badge {
  padding: 8px 12px;
  border-radius: 999px;
  color: #09212f;
  background: linear-gradient(135deg, var(--accent-2), #ffd39a);
  font-size: 0.8rem;
  font-weight: 700;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(125, 195, 255, 0.16);
  background: rgba(8, 18, 28, 0.82);
}

.chip.muted {
  color: var(--muted);
  border-color: rgba(138, 166, 187, 0.16);
  background: rgba(138, 166, 187, 0.06);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(106, 242, 197, 0.28);
  background: rgba(106, 242, 197, 0.08);
}

.project-link.disabled {
  color: #8aa6bb;
  border-color: rgba(138, 166, 187, 0.18);
  background: rgba(138, 166, 187, 0.06);
  cursor: not-allowed;
}

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

.skill-groups ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-groups li {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(125, 195, 255, 0.14);
  background: rgba(7, 18, 28, 0.8);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-links .button {
  min-width: 170px;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .about-grid,
  .stack-grid,
  .contact-section,
  .timeline,
  .skill-groups {
    grid-template-columns: 1fr;
  }

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

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

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

  .site-header {
    top: 10px;
    padding: 14px 16px;
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .header-social {
    width: 100%;
    justify-content: flex-start;
    padding-top: 4px;
  }

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

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

  .section-frame,
  .project-card {
    padding: 22px;
  }

  .contact-links {
    width: 100%;
  }
}