:root {
  --bg: #ffffff;
  --ink: #07182e;
  --muted: #5e6b7f;
  --line: #d7e0ea;
  --soft-line: #edf2f7;
  --surface: #f7fafc;
  --surface-strong: #eef5fb;
  --blue: #1f5f9f;
  --blue-dark: #123f70;
  --green: #148a51;
  --shadow: 0 22px 60px rgba(7, 24, 46, 0.11);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  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;
}

a:hover {
  color: var(--blue);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(20px, calc((100vw - 1140px) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--soft-line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 760;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #bfd0df;
  border-radius: 50%;
  background: #f4f8fb;
  color: var(--blue-dark);
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(380px, 1.07fr);
  gap: 54px;
  align-items: center;
  padding: 86px 0 72px;
}

.hero h1 {
  margin: 0;
  font-size: 84px;
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--ink);
}

.hero-role {
  margin: 22px 0 0;
  color: var(--blue-dark);
  font-size: 34px;
  font-weight: 760;
  line-height: 1.12;
}

.hero-summary {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(18, 63, 112, 0.18);
}

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

.button.secondary:hover {
  border-color: #a8bdcf;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
}

.proof-strip div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.proof-strip dt {
  color: var(--ink);
  font-size: 26px;
  font-weight: 820;
  line-height: 1;
}

.proof-strip dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-intro,
.role-fit,
.proof,
.site-footer {
  padding: 78px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading h2,
.site-footer h2,
.proof h2 {
  margin: 0;
  color: var(--ink);
  font-size: 50px;
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.site-footer p,
.proof-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.project-card {
  min-height: 178px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.project-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.project-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.project-card span {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
}

.role-fit {
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

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

.fit-layout article {
  padding: 22px 0 0;
  border-top: 3px solid var(--blue);
}

.fit-layout h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.fit-layout p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(300px, 0.4fr);
  gap: 44px;
  align-items: start;
}

.proof-copy h2 {
  margin-bottom: 18px;
}

.proof-copy ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.proof-copy li::marker {
  color: var(--green);
}

.log-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(7, 24, 46, 0.08);
  overflow: hidden;
}

.log-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.log-row:last-child {
  border-bottom: 0;
}

.log-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.log-row strong {
  color: var(--ink);
  font-size: 15px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(260px, 0.38fr);
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--soft-line);
}

.site-footer h2 {
  font-size: 42px;
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-links a {
  color: var(--blue-dark);
  font-weight: 760;
}

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

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .proof,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-role {
    font-size: 28px;
  }

  .section-heading h2,
  .site-footer h2,
  .proof h2 {
    font-size: 42px;
  }

  .hero-visual {
    order: -1;
  }

  .section-heading,
  .project-grid,
  .fit-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 28px, 1140px);
  }

  .site-header {
    padding: 14px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-role {
    font-size: 24px;
  }

  .section-heading h2,
  .site-footer h2,
  .proof h2 {
    font-size: 34px;
  }

  .hero-summary,
  .section-heading p,
  .site-footer p,
  .proof-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .resume-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .project-intro,
  .role-fit,
  .proof,
  .site-footer {
    padding: 54px 0;
  }

  .log-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
