:root {
  --background: #f7f5f0;
  --surface: #ffffff;
  --text: #17191e;
  --muted: #696d75;
  --line: #d8d6d0;
  --accent: #e95b36;
  --dark: #17191e;
  --container: 1200px;
  --space: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

h1,
h2,
h3 {
  line-height: 1.08;
}

.container {
  width: min(var(--container), calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 240, 0.96);
}

.header__inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.05rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.65fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.eyebrow {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin-bottom: 2rem;
  font-size: clamp(3.1rem, 6.9vw, 6.5rem);
  letter-spacing: -0.055em;
}

h2 {
  max-width: 850px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -0.05em;
}

h3 {
  letter-spacing: -0.025em;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.button--small {
  min-height: 2.75rem;
  font-size: 0.78rem;
}

.link {
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ece9e2;
}

.hero__portrait {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.metrics {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.metric {
  min-height: 11rem;
  padding: 1.75rem 1.25rem;
  border-right: 1px solid var(--line);
}

.metric:first-child {
  border-left: 1px solid var(--line);
}

.metric strong {
  display: block;
  margin-bottom: 1.5rem;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  letter-spacing: -0.045em;
}

.metric p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.section-heading {
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.section-heading--split {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  align-items: end;
  gap: 4rem;
}

.section-heading--split > p {
  color: var(--muted);
}

.cards {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

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

.card {
  display: flex;
  min-height: 26rem;
  flex-direction: column;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.card__number,
.project__number,
.row > span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.card h3 {
  margin-top: 4rem;
  font-size: 1.7rem;
}

.card p {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.7rem;
}

.section--dark {
  background: var(--dark);
  color: #fff;
}

.section--dark .eyebrow,
.section--dark .project__number {
  color: #ff7654;
}

.projects {
  border-top: 1px solid #44464b;
}

.project {
  display: grid;
  grid-template-columns: 0.1fr 0.32fr 0.58fr;
  gap: 2rem;
  padding-block: 3rem;
  border-bottom: 1px solid #44464b;
}

.project h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.project__role {
  color: #a9abb0;
  font-size: 0.8rem;
}

.project__content strong {
  display: block;
  margin-bottom: 1rem;
  color: #ff7654;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.project__content > p,
.project__content li {
  color: #c8c9cc;
  font-size: 0.9rem;
}

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

.row {
  display: grid;
  grid-template-columns: 0.1fr 0.32fr 0.58fr;
  gap: 2rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.row h3,
.row p {
  margin: 0;
}

.row p {
  color: var(--muted);
}

.section--muted {
  background: #ece9e2;
}

.career {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: clamp(4rem, 9vw, 8rem);
}

.career__intro {
  align-self: start;
  position: sticky;
  top: 8rem;
}

.career__intro h2 {
  margin-bottom: 2rem;
}

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

.timeline article {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.timeline h3 {
  margin-bottom: 0.25rem;
}

.timeline strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.teaching-section {
  background: var(--surface);
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.teaching-card {
  min-height: 17rem;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.teaching-card span {
  display: block;
  margin-bottom: 3rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.teaching-card h3 {
  font-size: 1.35rem;
}

.teaching-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.about {
  display: grid;
  grid-template-columns: 0.25fr 0.75fr;
  gap: 4rem;
}

.about h2 {
  margin-bottom: 2.5rem;
}

.text-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  color: var(--muted);
}

.brands {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.brands p {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.brands div div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: 0.55fr 0.45fr;
  gap: clamp(4rem, 8vw, 7rem);
}

.contact h2 {
  margin-bottom: 2rem;
}

.contact__links {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.contact__links a {
  border-bottom: 1px solid #77797e;
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid #4c4e53;
  background: #1d1f24;
}

.contact-card__label {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.contact-card > p:not(.contact-card__label, .copy-status) {
  color: #c2c3c6;
}

.contact-card__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.copy-email {
  font: inherit;
}

.copy-status {
  min-height: 1.5rem;
  margin: 0;
  color: #c2c3c6;
  font-size: 0.8rem;
}

.footer {
  padding-block: 2rem;
  border-top: 1px solid #36383d;
  background: var(--dark);
  color: #a8aaae;
  font-size: 0.75rem;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .nav > a:not(.button) {
    display: none;
  }

  .hero__grid,
  .section-heading--split,
  .career,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__visual {
    width: min(100%, 36rem);
    min-height: 0;
    margin-inline: auto;
  }

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

  .cards--three {
    grid-template-columns: 1fr;
  }

  .teaching-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 20rem;
  }

  .career__intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .project,
  .row,
  .about {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .text-columns {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

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

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