:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #5b6678;
  --line: #d9e1ea;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --navy: #0f172a;
  --cyan: #0e7490;
  --green: #16714d;
  --gold: #b45309;
  --coral: #c2410c;
  --blue: #235cbd;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(245, 247, 251, 0.82), rgba(255, 255, 255, 0.96)),
    url("https://github.com/marvinbfreedman.png?size=900") center top / cover fixed;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.045) 0,
      rgba(15, 23, 42, 0.045) 1px,
      transparent 1px,
      transparent 72px
    );
  content: "";
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  margin: 0 auto;
  width: min(1120px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav,
.hero-actions,
.project-links,
.site-footer div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.site-header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header nav a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--ink);
}

main {
  display: grid;
  gap: 44px;
}

.hero,
.featured-project,
.work-section,
.fit-section {
  margin: 0 auto;
  width: min(1120px, calc(100% - 32px));
}

.hero {
  min-height: calc(100svh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 44px;
  align-items: center;
  padding: 48px 0 36px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.88;
}

.hero-subtitle {
  max-width: 760px;
  margin-top: 26px;
  color: #243044;
  font-size: clamp(23px, 3.2vw, 39px);
  font-weight: 750;
  line-height: 1.13;
}

.hero-summary {
  max-width: 760px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions,
.project-links {
  flex-wrap: wrap;
  margin-top: 28px;
}

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

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

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.hero-visual {
  display: grid;
  gap: 16px;
  align-self: stretch;
  align-content: center;
}

.hero-visual img {
  width: min(100%, 320px);
  height: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.signal-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.featured-project,
.work-section,
.fit-section {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.featured-project {
  margin-top: -46px;
  border-color: rgba(14, 116, 144, 0.32);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

h2 {
  max-width: 780px;
  font-size: clamp(31px, 5vw, 54px);
  line-height: 0.98;
}

.project-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.project-kicker,
.card-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-lead h3 {
  max-width: 780px;
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.project-lead p:not(.project-kicker),
.work-card p,
.fit-grid p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.project-lead p:not(.project-kicker) {
  max-width: 860px;
  margin-top: 16px;
}

.proof-grid,
.work-grid,
.fit-grid {
  display: grid;
  gap: 14px;
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.proof-grid li,
.work-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.proof-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.proof-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.work-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 280px;
}

.work-card:nth-child(2) .card-label {
  color: var(--gold);
}

.work-card:nth-child(3) .card-label {
  color: var(--coral);
}

.work-card:nth-child(4) .card-label {
  color: var(--blue, #235cbd);
}

.work-card h3 {
  font-size: 23px;
  line-height: 1.12;
}

.work-card a {
  align-self: end;
  color: var(--navy);
  font-weight: 900;
  text-decoration-color: rgba(15, 23, 42, 0.24);
  text-underline-offset: 4px;
}

.link-row {
  display: grid;
  gap: 8px;
  align-self: end;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 44px 0;
  color: var(--muted);
}

.site-footer div {
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .site-header,
  .site-footer,
  .project-lead {
    align-items: start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .hero-visual {
    grid-template-columns: 160px 1fr;
    align-items: center;
  }

  .hero-visual img {
    width: 160px;
  }

  .project-lead,
  .proof-grid,
  .work-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  .hero,
  .featured-project,
  .work-section,
  .fit-section {
    width: min(100% - 22px, 1120px);
  }

  .site-header {
    position: static;
  }

  .hero-visual,
  .signal-list {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    width: 132px;
  }

  .featured-project,
  .work-section,
  .fit-section {
    padding: 22px;
  }

  .button {
    width: 100%;
  }
}
