:root {
  --ink: #171a17;
  --ink-soft: #343834;
  --paper: #f6f5f0;
  --white: #fffefa;
  --line: #d8d8d0;
  --muted: #676c67;
  --lime: #b9df5a;
  --coral: #ff866d;
  --aqua: #93d8d2;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 560px;
  height: 72svh;
  max-height: 760px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}

.signal-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(23, 26, 23, 0.36);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 26px;
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
}

.location {
  color: rgba(255, 254, 250, 0.72);
}

.hero-content {
  display: flex;
  min-height: calc(100% - 78px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 0 66px;
  text-align: center;
}

.portrait-frame {
  width: clamp(126px, 11vw, 164px);
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 22px;
  border: 2px solid rgba(255, 254, 250, 0.85);
  border-radius: 50%;
  background: #a5a49e;
  box-shadow: 0 0 0 8px rgba(23, 26, 23, 0.24);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--lime);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(46px, 5.8vw, 82px);
  font-weight: 600;
  line-height: 0.88;
}

.role {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
  color: rgba(255, 254, 250, 0.78);
  font-size: clamp(16px, 1.6vw, 21px);
}

.role a {
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hero-thesis {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 254, 250, 0.58);
  font-size: 16px;
}

.section-band {
  padding: clamp(72px, 9vw, 130px) 0;
}

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 2fr);
  gap: clamp(48px, 9vw, 140px);
  align-items: start;
}

.tenure {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  color: var(--ink-soft);
}

.tenure strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(86px, 10vw, 150px);
  font-weight: 600;
  line-height: 0.72;
}

.tenure span {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.about-copy h2,
.section-heading h2 {
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 600;
  line-height: 0.98;
}

.about-copy p {
  max-width: 840px;
  margin: 32px 0 0;
  font-size: clamp(20px, 2.1vw, 29px);
  line-height: 1.42;
}

.about-copy p + p {
  color: var(--muted);
}

.record {
  border-top: 1px solid var(--line);
  background: #ecece5;
}

.record-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(48px, 9vw, 130px);
}

.record-heading {
  display: block;
  margin: 0;
}

.record-heading h2 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
}

.record-list {
  border-top: 1px solid var(--ink);
}

.record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid rgba(23, 26, 23, 0.25);
}

.record-company,
.contribution-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.record-item p {
  max-width: 520px;
  margin: 5px 0 0;
  font-size: 16px;
}

.record-item strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(27px, 3.5vw, 48px);
  font-weight: 600;
  white-space: nowrap;
}

.record-item small {
  color: var(--muted);
  font-family: "Instrument Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.work {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 54px;
}

.section-label {
  color: var(--muted);
}

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

.project {
  position: relative;
  display: flex;
  min-height: 500px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  transition: transform 220ms ease, border-color 220ms ease;
}

.project::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: var(--project-accent);
}

.project:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}

.project-leaply {
  --project-accent: var(--lime);
  grid-column: 1 / -1;
  min-height: 430px;
}

.project-comparetech {
  --project-accent: var(--aqua);
}

.project-aiter {
  --project-accent: var(--coral);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}

.project-index {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-link {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  background: var(--ink);
  color: var(--white);
  transform: rotate(7deg);
}

.project-link svg {
  width: 20px;
  height: 20px;
}

.project h3 {
  margin-top: 44px;
  font-size: clamp(34px, 4.5vw, 68px);
  font-weight: 600;
}

.project-pitch {
  max-width: 900px;
  margin: 12px 0 0;
  font-size: clamp(22px, 2.7vw, 38px);
  line-height: 1.18;
}

.project-detail {
  max-width: 820px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.contribution-label {
  margin: 32px 0 0;
}

.achievement-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.achievement-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
}

.achievement-list li::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--project-accent);
  font-weight: 700;
}

.project-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.project-signals li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.metric-row div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-row strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
}

.metric-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer {
  padding: clamp(72px, 9vw, 120px) 0 30px;
  background: var(--ink);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  gap: clamp(50px, 10vw, 150px);
  align-items: end;
}

.footer-identity .section-label {
  color: var(--lime);
}

.footer-identity h2 {
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 600;
  line-height: 0.96;
}

.footer-links {
  border-top: 1px solid rgba(255, 254, 250, 0.28);
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 254, 250, 0.28);
  color: rgba(255, 254, 250, 0.78);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.footer-links svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.footer-links a:hover svg,
.footer-links a:focus-visible svg {
  transform: translate(4px, -4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(70px, 10vw, 140px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 254, 250, 0.16);
  color: rgba(255, 254, 250, 0.48);
  font-size: 12px;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .hero {
    min-height: 600px;
    height: 78svh;
  }

  .nav {
    padding-top: 18px;
  }

  .hero-content {
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(43px, 12vw, 58px);
  }

  .role {
    max-width: 360px;
    gap: 6px;
  }

  .about-grid,
  .section-heading,
  .project-grid,
  .record-layout,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 48px;
  }

  .section-heading {
    gap: 18px;
  }

  .record-layout,
  .footer-main {
    gap: 52px;
  }

  .record-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .record-item strong {
    white-space: normal;
  }

  .about-copy p {
    font-size: 21px;
  }

  .project,
  .project-leaply {
    grid-column: auto;
    min-height: 0;
  }

  .project-topline {
    margin-bottom: 50px;
  }

  .project h3 {
    margin-top: 0;
  }

  .metric-row {
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 460px) {
  .hero-thesis {
    max-width: 330px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
