:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5f6966;
  --line: #dce4df;
  --paper: #fbfcf8;
  --wash: #eef4f1;
  --mint: #7bc6a4;
  --teal: #0f7d78;
  --coral: #f26f4c;
  --gold: #d6a11f;
  --blue: #2e6fb7;
  --shadow: 0 24px 80px rgba(23, 33, 31, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(251, 252, 248, 0.9);
  border-bottom: 1px solid rgba(220, 228, 223, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 8px;
  font-size: 0.86rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
  min-height: calc(100vh - 190px);
  padding: clamp(28px, 4vw, 46px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(15, 125, 120, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(242, 111, 76, 0.12), transparent 38%),
    var(--paper);
}

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

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

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

h1 {
  margin-bottom: 24px;
  max-width: 920px;
  font-size: clamp(2.6rem, 4.8vw, 4.65rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.hero-lede,
.capability-copy p,
.timeline p,
.project-card p,
.education-list p,
.improvement-list p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-lede {
  max-width: 720px;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.hero-visual {
  position: relative;
  max-width: 340px;
  justify-self: center;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-panel {
  position: absolute;
  right: -20px;
  bottom: 28px;
  width: min(260px, 74%);
  padding: 18px;
  color: white;
  background: var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-panel span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.metrics article {
  min-height: 180px;
  padding: clamp(24px, 4vw, 46px);
  border-right: 1px solid var(--line);
}

.metrics article:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  margin-bottom: 14px;
  color: var(--coral);
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.intro-grid,
.capability-band,
.education,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
}

.improvement-list {
  display: grid;
  gap: 16px;
}

.improvement-list p {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.capability-band {
  background: var(--wash);
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}

.capabilities span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.systems-section {
  background: #fff;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.systems-grid article {
  min-height: 320px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.systems-grid span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  place-items: center;
  color: white;
  background: var(--coral);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 900;
}

.systems-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.tag {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.78rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.timeline {
  display: grid;
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.time {
  color: var(--gold);
  font-weight: 900;
}

.project-section {
  background: #fff;
}

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

.project-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.project-card.feature {
  grid-column: span 2;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  align-items: center;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--wash);
}

.project-visual {
  display: grid;
  min-height: 260px;
  place-items: center;
  border-radius: 6px;
  background: var(--wash);
}

.quiz-visual {
  position: relative;
  overflow: hidden;
  align-content: center;
  gap: 10px;
  color: white;
  background:
    linear-gradient(135deg, rgba(15, 125, 120, 0.92), rgba(46, 111, 183, 0.9)),
    var(--teal);
}

.quiz-visual::before {
  position: absolute;
  inset: 22px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.quiz-visual strong {
  position: relative;
  font-size: clamp(3.8rem, 7vw, 5.5rem);
  line-height: 0.9;
}

.quiz-visual > span:not(.quiz-badge) {
  position: relative;
  font-size: 1.45rem;
  font-weight: 900;
}

.quiz-badge {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 1;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 12px;
  color: var(--ink);
  background: white;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.quiz-options {
  position: relative;
  display: grid;
  width: min(210px, 70%);
  gap: 8px;
  margin-top: 8px;
}

.quiz-options i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.quiz-options i:nth-child(2) {
  width: 78%;
}

.quiz-options i:nth-child(3) {
  width: 58%;
}

.project-card a {
  color: var(--teal);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.education {
  background: var(--ink);
  color: white;
}

.education .eyebrow,
.education-list p {
  color: rgba(255, 255, 255, 0.72);
}

.education-list {
  display: grid;
  gap: 18px;
}

.education-list article {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact {
  align-items: center;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(123, 198, 164, 0.2), rgba(46, 111, 183, 0.12)),
    var(--paper);
}

.contact h2 {
  max-width: 880px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .intro-grid,
  .capability-band,
  .education,
  .contact,
  .timeline article,
  .systems-grid,
  .projects,
  .project-card,
  .project-card.feature {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    justify-self: start;
    width: min(100%, 440px);
  }

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

  .metrics article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics article:last-child {
    border-bottom: 0;
  }

  .project-card.feature {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px;
  }

  nav {
    gap: 12px 18px;
    font-size: 0.88rem;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    gap: 18px;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: 2.25rem;
    line-height: 1.04;
  }

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

  .hero-actions {
    margin-top: 20px;
  }

  .hero-visual {
    width: 180px;
  }

  .hero-visual img {
    min-height: 0;
  }

  .signal-panel {
    display: none;
  }

  .button {
    width: auto;
  }
}
