:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --panel: #fffdf7;
  --ink: #14213d;
  --muted: #5f6b7a;
  --line: #d8d2c3;
  --accent: #176f73;
  --accent-dark: #0e4c50;
  --gold: #b88a2d;
  --coral: #c85f4a;
  --blue: #4267ac;
  --shadow: 0 20px 60px rgba(20, 33, 61, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.82), rgba(247, 245, 239, 0.96)),
    radial-gradient(circle at 18% 12%, rgba(23, 111, 115, 0.12), transparent 28%),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent-dark);
}

.site-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(247, 245, 239, 0.84);
  border-bottom: 1px solid rgba(216, 210, 195, 0.8);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.nav-links,
.cta-row,
.profile-row,
.focus-strip,
footer {
  align-items: center;
  display: flex;
}

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

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #fffdf7;
  display: inline-flex;
  font-size: 0.78rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-links {
  color: var(--muted);
  font-size: 0.92rem;
  gap: clamp(14px, 2vw, 28px);
  flex-wrap: wrap;
}

.section-band,
.section,
.contact-band {
  padding-left: clamp(20px, 6vw, 88px);
  padding-right: clamp(20px, 6vw, 88px);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  min-height: min(760px, calc(88svh - 64px));
  padding-bottom: clamp(38px, 6vw, 76px);
  padding-top: clamp(42px, 7vw, 88px);
}

.hero-copy {
  max-width: 820px;
  min-width: 0;
}

.signal-panel,
.project-card,
.timeline-item,
.education-list article {
  min-width: 0;
}

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

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

.mobile-break {
  display: none;
}

h1 {
  font-size: clamp(2.35rem, 5.25vw, 4.85rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 24px;
  max-width: 980px;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 3.35rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 0;
}

h3 {
  font-size: 1.16rem;
  letter-spacing: 0;
  line-height: 1.22;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 760px;
}

.cta-row {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
}

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

.button.secondary {
  background: rgba(255, 253, 247, 0.68);
}

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

.signal-panel {
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.profile-row {
  gap: 12px;
  margin-bottom: 16px;
}

.profile-row img {
  border-radius: 50%;
  height: 54px;
  object-fit: cover;
  width: 54px;
}

.profile-row strong,
.profile-row span {
  display: block;
}

.profile-row span {
  color: var(--muted);
  margin-top: 4px;
}

.hero-figure-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  display: flex;
  height: 340px;
  justify-content: center;
  margin: 1.25rem auto 1.5rem;
  max-height: 340px;
  max-width: 620px;
  overflow: hidden;
  width: 100%;
}

.hero-figure {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
  width: auto;
}

.metric-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
  overflow: hidden;
}

.metric-grid div {
  background: #f4efe5;
  padding: 14px;
}

.metric-grid dt {
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 5px;
}

.metric-grid dd {
  font-weight: 780;
  margin: 0;
}

.focus-strip {
  background: var(--ink);
  color: #fffdf7;
  flex-wrap: wrap;
  gap: 1px;
  justify-content: center;
  padding: 1px;
}

.focus-strip span {
  background: rgba(255, 255, 255, 0.08);
  flex: 1 1 180px;
  font-size: 0.92rem;
  font-weight: 720;
  min-width: 0;
  padding: 17px 18px;
  text-align: center;
}

.section {
  padding-bottom: clamp(58px, 8vw, 110px);
  padding-top: clamp(58px, 8vw, 110px);
}

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

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

.project-card,
.timeline-item,
.education-list article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 22px;
}

.project-card.featured {
  background: linear-gradient(135deg, #fffdf7 0%, #edf4f2 100%);
  grid-column: span 2;
}

.project-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 760;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 12px;
}

.project-card p,
.timeline-item p,
.education-list p,
.education-list span {
  color: var(--muted);
  line-height: 1.55;
}

.project-figure-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 16px;
}

.project-thumb {
  margin: 0 0 16px;
}

.project-thumb img,
.project-figure-strip img {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  object-fit: contain;
  height: clamp(72px, 8vw, 96px);
  width: 100%;
}

.project-thumb img {
  height: 112px;
}

.project-card:not(.featured) .project-figure-strip img {
  height: 72px;
}

.project-card ul,
.timeline-item ul {
  color: #314056;
  line-height: 1.55;
  margin: 0 0 22px;
  padding-left: 19px;
}

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

.project-card a {
  color: var(--accent-dark);
  font-weight: 800;
  margin-top: auto;
}

.split {
  background: #eee9dd;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  padding: 24px;
}

.timeline-item h3,
.timeline-item p,
.timeline-item ul {
  margin-bottom: 0;
}

.education-skills {
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

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

.education-list article {
  padding: 22px;
}

.education-list h3 {
  margin-bottom: 8px;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud span {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #314056;
  font-weight: 740;
  padding: 10px 13px;
}

.contact-band {
  align-items: center;
  background: #10223a;
  color: #fffdf7;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: clamp(34px, 5vw, 56px);
  padding-top: clamp(34px, 5vw, 56px);
}

.contact-band .eyebrow {
  color: #8cd1ca;
}

.contact-band h2 {
  max-width: 760px;
}

.contact-band .button.secondary {
  background: transparent;
  border-color: rgba(255, 253, 247, 0.7);
  color: #fffdf7;
}

.contact-band .button.primary {
  background: #fffdf7;
  color: var(--ink);
}

footer {
  color: var(--muted);
  font-size: 0.9rem;
  justify-content: space-between;
  padding: 24px clamp(20px, 6vw, 88px);
}

@media (max-width: 980px) {
  .hero,
  .education-skills {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .project-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    justify-content: flex-start;
    width: 100%;
  }

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

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

  .project-card {
    min-height: auto;
  }

  .hero-copy,
  .signal-panel {
    max-width: min(100%, 330px);
    width: 100%;
  }

  .hero-figure-link {
    height: 240px;
    max-height: 240px;
  }

  .mobile-break {
    display: block;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.06;
  }

  .contact-band,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .hero-copy,
  .signal-panel {
    width: calc(100vw - 60px);
  }

  .mobile-break {
    display: block;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.06;
  }

  .nav-links {
    font-size: 0.83rem;
    gap: 10px;
  }

  .button {
    width: 100%;
  }

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