:root {
  color-scheme: light;
  --ink: #16202d;
  --muted: #566579;
  --soft: #7b8798;
  --line: #d8e0e9;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --teal: #2a9d8f;
  --teal-dark: #176f66;
  --coral: #d95f59;
  --gold: #c38b2b;
  --blue: #1f4d78;
  --lavender: #7a6ff0;
  --shadow: 0 20px 55px rgba(31, 77, 120, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(42, 157, 143, 0.09), transparent 32rem),
    linear-gradient(180deg, #fbfaf6 0%, var(--paper) 48%, #f3f6f7 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 64px;
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid rgba(216, 224, 233, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a,
.link-row a,
.site-footer a,
.file-grid a {
  text-decoration: none;
}

nav a:hover,
.link-row a:hover,
.site-footer a:hover,
.file-grid a:hover {
  color: var(--teal-dark);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 52px;
}

.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 40px;
}

.eyebrow,
.project-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 4.8rem;
  line-height: 0.97;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.65rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.lede,
.section-heading p,
.project-card p,
.skills-grid p,
.content-section p,
figcaption {
  color: var(--muted);
}

.lede {
  max-width: 680px;
  font-size: 1.12rem;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-visual,
.project-card,
.skills-grid > div,
.summary-card,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-visual {
  overflow: hidden;
}

.visual-image {
  height: 270px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef4f5;
}

.visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.visual-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.visual-profile img {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-name {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}

.profile-role {
  margin-bottom: 0;
  color: var(--muted);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metric-strip div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.metric-strip span,
.result-panel span {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.metric-strip p,
.result-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.feature-card {
  padding: 0;
  overflow: hidden;
}

.project-media {
  display: block;
  height: 240px;
  overflow: hidden;
  background: #eef4f5;
  border-bottom: 1px solid var(--line);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 180ms ease;
}

.project-media:hover img {
  transform: scale(1.025);
}

.project-body,
.project-card {
  padding: 24px;
}

.skills-grid > div {
  padding: 24px;
}

.feature-card .project-body {
  padding: 26px;
}

.mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.mini-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #fff6e6;
  color: #6d4d14;
  font-size: 0.86rem;
}

.mini-metrics strong {
  margin-right: 0.25rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #cdd9d6;
  border-radius: 8px;
  background: #f3faf8;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 900;
}

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

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

.skills-section {
  padding-top: 40px;
}

.project-hero {
  padding-top: 64px;
  padding-bottom: 34px;
}

.project-metrics {
  margin-top: 0;
}

.hero-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center;
}

.content-section {
  padding-top: 42px;
  padding-bottom: 36px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
}

.summary-card {
  align-self: start;
  padding: 24px;
  border-left: 4px solid var(--teal);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f3f6f8;
  color: var(--ink);
  font-size: 0.86rem;
}

td {
  color: var(--muted);
  font-size: 0.94rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

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

.result-panel {
  padding: 24px;
  border-top: 4px solid var(--gold);
}

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

.figure-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.figure-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--line);
}

.figure-grid figcaption {
  padding: 14px 16px 16px;
  font-size: 0.93rem;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.file-grid a {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 25px rgba(31, 77, 120, 0.08);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero,
  .split-hero,
  .featured-grid,
  .content-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 22px;
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 50px 0;
  }

  .hero,
  .project-hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 2.65rem;
    line-height: 1.04;
  }

  h2 {
    font-size: 1.9rem;
  }

  .project-grid,
  .skills-grid,
  .figure-grid,
  .file-grid {
    grid-template-columns: 1fr;
  }

  .project-media,
  .hero-figure img,
  .figure-grid img {
    height: 220px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 22px;
  }
}

@media (max-width: 520px) {
  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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