:root {
  --bg: #070c13;
  --bg-soft: #0d1520;
  --panel: rgba(13, 21, 32, 0.92);
  --panel-strong: rgba(10, 17, 27, 0.98);
  --text: #ebf2ff;
  --muted: #a5b4c8;
  --line: rgba(165, 180, 200, 0.18);
  --accent: #74e8bd;
  --accent-strong: #48cfa1;
  --warning: #d7ad62;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(126, 240, 196, 0.14), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(54, 216, 160, 0.11), transparent 20%),
    linear-gradient(180deg, #060b13 0%, var(--bg) 42%, #06101a 100%);
}

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

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 32px;
}

.brand,
.eyebrow,
.section-kicker,
.project-year,
.signal-label {
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--accent);
}

.toplinks {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.panel h3,
.timeline-item h3,
.project-card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

.eyebrow,
.section-kicker,
.signal-label,
.project-year {
  color: var(--warning);
  font-size: 0.74rem;
}

.eyebrow,
.section-kicker,
.project-year {
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  margin-top: 10px;
}

.lead {
  max-width: 640px;
  font-size: 1.22rem;
  line-height: 1.6;
  color: #f4f8ff;
  margin: 22px 0 10px;
}

.summary,
.panel p,
.timeline-item p,
.timeline-item li,
.project-card p,
.project-card li,
.contact-card span {
  color: var(--muted);
  line-height: 1.68;
}

.summary {
  max-width: 640px;
  font-size: 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.toplinks a:hover,
.contact-card a:hover,
.project-card a:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #04120f;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.hero-card,
.panel,
.timeline-item,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
  border-radius: 8px;
}

.signal-grid {
  display: grid;
  gap: 18px;
}

.signal-grid strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
}

.section {
  padding: 64px 0 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.55rem);
}

.panel,
.timeline-item,
.project-card,
.contact-card {
  border-radius: 8px;
}

.panel {
  padding: 24px;
}

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

.timeline,
.project-grid,
.skills-grid,
.dual-panel {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 24px;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--warning);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.org {
  margin: 8px 0 0;
}

.timeline-item ul,
.project-card ul {
  padding-left: 18px;
  margin: 16px 0 0;
}

.timeline-item li + li,
.project-card li + li {
  margin-top: 7px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.project-card h3 {
  font-size: 1.24rem;
}

.project-card p {
  margin: 18px 0 0;
}

.project-card p,
.project-card ul {
  max-width: 860px;
}

.project-card a {
  align-self: flex-start;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 600;
}

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

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

.contact-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .project-grid,
  .skills-grid,
  .dual-panel,
  .contact-card {
    grid-template-columns: 1fr;
  }
}

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

  .topbar,
  .timeline-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .toplinks {
    gap: 14px;
    flex-wrap: wrap;
  }

  .lead {
    font-size: 1.08rem;
  }
}
