:root {
  --bg: #f8f7f4;
  --text: #141414;
  --muted: #69655e;
  --line: rgba(20, 20, 20, 0.12);
  --accent: #141414;
  --display: "Instrument Serif", serif;
  --body: "DM Sans", sans-serif;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.3rem 0 6rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.1rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: max(1rem, calc((100vw - min(calc(100% - 2rem), var(--max-width))) / 2));
  padding-right: max(1rem, calc((100vw - min(calc(100% - 2rem), var(--max-width))) / 2));
  background: rgba(248, 247, 244, 0.58);
  backdrop-filter: blur(12px);
}

.brand,
.site-nav a,
.button,
.contact-link,
.project-link {
  text-decoration: none;
}

.brand {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.2rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
}

.section {
  padding-top: 8rem;
}

.hero {
  display: block;
  position: relative;
  width: 100vw;
  min-height: min(88vw, 980px);
  margin-left: calc(50% - 50vw);
  padding-top: 3.3rem;
  padding-right: max(1rem, calc((100vw - min(calc(100% - 2rem), var(--max-width))) / 2));
  padding-bottom: 4.75rem;
  padding-left: clamp(5rem, 8vw, 7.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.52) 0%, rgba(10, 10, 10, 0.26) 46%, rgba(10, 10, 10, 0.34) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.08) 0%, rgba(10, 10, 10, 0.18) 100%);
}

.eyebrow {
  max-width: 32rem;
  margin: 0 0 2.3rem;
  color: rgba(248, 244, 236, 0.96);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1.45;
}

.section-label {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.contact-section .section-label,
.about-section .section-label,
.section-heading .section-label {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
}

h1 {
  max-width: 720px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: unset;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h3 {
  font-size: clamp(1.85rem, 2vw, 2.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.lede,
.stack p,
.project-copy p,
.contact-section p,
.hero-subtitle {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.82;
}

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

.lede {
  max-width: 38rem;
  margin: 1.9rem 0 0;
}

#hero-description:empty {
  display: none;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 1.8rem;
}

.button,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.4rem 0;
  border-radius: 0;
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible,
.contact-link:hover,
.contact-link:focus-visible,
.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-2px);
}

.button.primary,
.contact-link.primary {
  color: var(--text);
}

.button.secondary,
.contact-link.secondary {
  color: var(--text);
}

.hero-copy {
  width: min(100%, 720px);
  max-width: 720px;
  min-height: calc(min(88vw, 980px) - 10.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0;
  position: relative;
  z-index: 1;
}

.hero-meta {
  margin-bottom: 1.7rem;
}

.hero-title-line {
  display: block;
}

.hero #hero-title {
  color: rgba(248, 244, 236, 0.98);
  margin-bottom: 3rem;
  max-width: none;
  font-size: clamp(4.35rem, 6.9vw, 7rem);
  line-height: 0.89;
  letter-spacing: -0.07em;
}

.hero-video-credit {
  position: absolute;
  right: max(1rem, calc((100vw - min(calc(100% - 2rem), var(--max-width))) / 2));
  bottom: 1.35rem;
  z-index: 1;
  max-width: 38rem;
  margin: 0;
  text-align: right;
  color: rgba(248, 244, 236, 0.74);
  font-size: 0.72rem;
  line-height: 1.45;
}

.hero-subtitle {
  max-width: 30rem;
  margin: 0;
}

.hero-subtitle:empty {
  display: none;
}

.hero-headshot-wrap {
  display: none;
}

.hero-headshot-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 72% 22%;
}

.section-heading {
  display: block;
}

.project-grid {
  display: grid;
  gap: 7.5rem;
  margin-top: 4rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.5fr);
  gap: 3rem;
  align-items: start;
}

.project-card:nth-child(even) {
  grid-template-columns: minmax(250px, 0.5fr) minmax(0, 1.5fr);
}

.project-card:nth-child(even) .project-visual {
  order: 2;
}

.project-card:nth-child(even) .project-copy {
  order: 1;
}

.project-card:nth-child(2) {
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.5fr);
  gap: 2rem;
}

.project-card:nth-child(2) .project-visual {
  height: 720px;
  min-height: 0;
}

.project-card:nth-child(5) {
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
}

.project-card:nth-child(5) .project-visual {
  min-height: 440px;
}

.project-visual {
  min-height: 580px;
  overflow: hidden;
  background: transparent;
}

.project-visual img,
.project-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.project-visual img {
  object-fit: cover;
}

.project-visual img.contain-image {
  object-fit: contain;
}

.project-placeholder {
  background:
    linear-gradient(135deg, rgba(52, 89, 78, 0.08), rgba(52, 89, 78, 0.02)),
    linear-gradient(180deg, #efe9df 0%, #e4ddd1 100%);
}

.project-copy {
  display: grid;
  align-content: start;
  gap: 1.15rem;
  padding-top: 0.8rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.chip::after {
  content: "·";
  margin-left: 0.5rem;
}

.chip:last-child::after {
  content: "";
  margin: 0;
}

.project-link {
  width: fit-content;
  font-weight: 700;
  color: var(--accent);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1.45fr);
  gap: 5rem;
  align-items: stretch;
}

.about-copy-block {
  width: 100%;
}

.headshot-wrap {
  width: min(100%, 210px);
  height: 100%;
}

.headshot-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.stack {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.45rem;
  width: min(100%, 56rem);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 3rem;
  align-items: start;
  margin-top: 4rem;
  padding-top: 5rem;
  border-top: 1px solid var(--line);
}

.contact-links {
  justify-content: flex-start;
  margin-top: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .project-card,
  .project-card:nth-child(even),
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding-top: 0;
  }

  .project-card:nth-child(even) .project-visual,
  .project-card:nth-child(even) .project-copy {
    order: initial;
  }

  .project-card:nth-child(2) {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(2) .project-copy {
    max-width: none;
  }

  .project-card:nth-child(2) .project-visual,
  .project-visual {
    height: auto;
    min-height: 420px;
  }

  .headshot-wrap {
    width: min(100%, 220px);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
    padding-bottom: 4rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .site-nav {
    gap: 1rem 1.25rem;
  }

  .section {
    padding-top: 6rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1.9rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
  }

  .hero-video-credit {
    right: 1rem;
    max-width: none;
  }

  .hero-copy {
    width: min(100%, 720px);
    max-width: 720px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(3.1rem, 12vw, 4.9rem);
  }

  .project-grid {
    gap: 5rem;
    margin-top: 3rem;
  }

  .project-visual,
  .project-card:nth-child(2) .project-visual,
  .project-card:nth-child(5) .project-visual {
    min-height: 300px;
  }

  .project-card:nth-child(2),
  .project-card:nth-child(5),
  .project-card:nth-child(3) {
    gap: 1.25rem;
  }

  .project-card:nth-child(2) .project-copy,
  .project-card:nth-child(5) .project-copy,
  .project-card:nth-child(3) .project-copy {
    padding-top: 0;
  }

  .about-section,
  .contact-section {
    gap: 2.25rem;
  }
}
