:root {
  --ink: #12201c;
  --muted: #5f6f6b;
  --line: #d8e2df;
  --cloud: #f5f8f7;
  --paper: #ffffff;
  --aws: #ff9900;
  --green: #7bbf3a;
  --teal: #0d7788;
  --navy: #061624;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

img {
  display: block;
  max-width: 100%;
}

.hero {
  color: #f7fbff;
  background: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: #cfe4df;
  font-size: 0.92rem;
}

.nav-links a:hover,
.footer a:hover,
.project-list a:hover {
  color: var(--aws);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px;
  align-items: center;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 30px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.65rem, 4.2vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: #dce9e7;
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.actions.compact {
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  color: #111b17;
  background: var(--aws);
}

.button.secondary {
  color: #eff8f5;
  border-color: rgba(255, 255, 255, 0.32);
}

.profile-panel {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.profile-panel img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--green);
}

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

.profile-panel span {
  margin-top: 4px;
  color: #cfe4df;
  font-size: 0.95rem;
}

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

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: start;
  padding-bottom: 42px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 2.8vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.about-copy p,
.project-main p,
.timeline p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-copy {
  max-width: 640px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.skill-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 58px;
  padding: 0;
  background: var(--line);
}

.skill-band div {
  min-height: 158px;
  padding: 24px;
  background: var(--cloud);
}

.skill-band h3 {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 1rem;
  text-transform: uppercase;
}

.skill-band p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.section-head {
  max-width: 860px;
  margin-bottom: 34px;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.badge-card {
  display: flex;
  min-height: 214px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
  font-weight: 800;
}

.badge-card:hover {
  border-color: var(--teal);
}

.badge-card img {
  width: min(116px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.badge-card span {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
}

.projects {
  width: 100%;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background: #eef4f2;
}

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

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.project-main,
.project-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.project-main {
  padding: 34px;
}

.project-main h3 {
  font-size: 1.55rem;
}

.project-type {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.project-tech span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--cloud);
  font-size: 0.84rem;
  font-weight: 800;
}

.project-note {
  display: grid;
  align-content: center;
}

.project-list {
  display: grid;
  align-content: center;
  padding: 22px;
}

.project-list a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--teal);
  font-weight: 800;
}

.project-list a:last-child {
  border-bottom: 0;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.screenshot-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.screenshot-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.screenshot-gallery figcaption {
  min-height: 64px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px 56px;
}

.timeline .section-head {
  grid-row: span 3;
}

.timeline article {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-weight: 800;
}

.timeline h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.timeline p {
  margin-bottom: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 54px max(20px, calc((100% - 1180px) / 2));
  color: #eef7f4;
  background: var(--navy);
}

.footer-copy {
  max-width: 680px;
}

.footer-copy .section-kicker {
  margin-bottom: 12px;
}

.footer-copy strong,
.footer-copy span {
  display: block;
}

.footer-copy strong {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.footer-copy span {
  color: #cfe4df;
  font-size: 1.04rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  min-width: 260px;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: #eff8f5;
  font-weight: 800;
}

.footer-button.primary {
  color: #111b17;
  border-color: var(--aws);
  background: var(--aws);
}

.footer-link-text {
  flex-basis: 100%;
  color: #cfe4df;
  text-align: right;
}

@media (max-width: 980px) {
  .project-grid,
  .hero-grid,
  .intro,
  .project-layout,
  .screenshot-gallery,
  .timeline {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    max-width: 460px;
  }

  h1 {
    max-width: 680px;
  }

  .skill-band {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .timeline .section-head {
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-grid {
    padding-top: 38px;
  }

  .lead {
    font-size: 1.05rem;
  }

  .profile-panel,
  .skill-band,
  .badge-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .skill-band {
    padding: 0;
  }

  .projects {
    padding-top: 54px;
    padding-bottom: 54px;
  }

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

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

  .footer-links {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-link-text {
    text-align: left;
  }
}
