@import url("https://fonts.googleapis.com/css2?family=Patua+One&display=swap");

:root {
  --color-page: #efeee9;
  --color-surface: #ffffff;
  --color-ink: #1d1f23;
  --color-muted: #6f7279;
  --color-line: #d9d8d2;
  --color-band: #41413f;
  --color-action: #2f67f6;
  --color-action-dark: #1f4dcc;
  --shadow-panel: 0 16px 30px rgba(29, 31, 35, 0.16);
  --frosted-nav-bg: rgba(255, 255, 255, 0.68);
  --frosted-nav-border: rgba(29, 31, 35, 0.1);
  --frosted-nav-filter: blur(18px) saturate(1.15);
  --frosted-nav-shadow: 0 8px 24px rgba(29, 31, 35, 0.08);
  --font-sans: "Inter", Arial, Helvetica, sans-serif;
  --font-display: "Patua One", Georgia, serif;
  --page-rail: min(1120px, calc(100vw - 40px));
  --nav-height: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.skip-link {
  background: var(--color-ink);
  color: var(--color-surface);
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 16px;
  transform: translateY(-140%);
  z-index: 20;
}

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

.site-header {
  align-items: center;
  background: transparent;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: var(--nav-height);
  padding: 10px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  z-index: 10;
}

.site-header::before {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(29, 31, 35, 0.08);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  z-index: 0;
}

.site-header.is-scrolled::before,
.site-header.is-menu-open::before {
  -webkit-backdrop-filter: var(--frosted-nav-filter);
  backdrop-filter: var(--frosted-nav-filter);
  background: var(--frosted-nav-bg);
  border-bottom-color: var(--frosted-nav-border);
  box-shadow: var(--frosted-nav-shadow);
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.brand__logo {
  height: 30px;
  object-fit: contain;
  width: auto;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 34px);
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.site-nav a {
  color: var(--color-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.mobile-nav a:hover,
.mobile-nav a:focus-visible,
.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--color-action);
  outline: none;
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  display: none;
  height: 36px;
  justify-content: center;
  margin: 0;
  padding: 6px;
  position: relative;
  width: 36px;
  z-index: 1;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-action);
  outline-offset: 4px;
}

.menu-toggle__icon {
  fill: currentColor;
  height: 24px;
  width: 24px;
}

.menu-toggle__icon--close,
.site-header.is-menu-open .menu-toggle__icon--open {
  display: none;
}

.site-header.is-menu-open .menu-toggle__icon--close {
  display: block;
}

.mobile-nav {
  -webkit-backdrop-filter: var(--frosted-nav-filter);
  backdrop-filter: var(--frosted-nav-filter);
  background: var(--frosted-nav-bg);
  border-top: 1px solid var(--frosted-nav-border);
  box-shadow: var(--frosted-nav-shadow);
  display: none;
  left: 0;
  padding: 16px clamp(18px, 4vw, 56px) 20px;
  position: absolute;
  right: 0;
  text-align: right;
  top: 100%;
  z-index: 2;
}

.mobile-nav a {
  color: var(--color-ink);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 11px 0;
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  position: relative;
}

.hero__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero::after {
  background: linear-gradient(90deg, rgba(29, 31, 35, 0.15), rgba(29, 31, 35, 0.02) 38%, rgba(29, 31, 35, 0.18));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero__copy {
  color: var(--color-surface);
  font-family: var(--font-display);
  left: 50%;
  max-width: 360px;
  position: absolute;
  text-align: center;
  top: 52%;
  transform: translate(-50%, -50%) rotate(-8.7deg);
  transform-origin: center center;
  z-index: 1;
}

.hero__eyebrow {
  display: block;
  font-size: clamp(1.1rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero__title {
  font-size: clamp(1.25rem, 2.8vw, 2.15rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

.feature-stack {
  display: grid;
  gap: clamp(84px, 10vw, 145px);
  margin: 0;
  padding: clamp(92px, 12vw, 160px) 0;
  width: 100%;
}

.project-lockup {
  --lockup-top-height: clamp(330px, 35vw, 560px);
  --lockup-lead-width: 40%;
  --lockup-thumb-rail: 86vw;
  --lockup-thumb-height: calc(var(--lockup-thumb-width) * 0.625);
  --lockup-overlap: clamp(42px, 5vw, 82px);
  --lockup-thumb-gap: clamp(28px, 3vw, 44px);
  --lockup-thumb-width: calc((var(--lockup-thumb-rail) - var(--lockup-thumb-gap) - var(--lockup-thumb-gap)) / 3);
  background: var(--color-page);
  width: 100%;
}

.project-lockup__top {
  background: var(--color-surface);
  display: grid;
  grid-template-columns: var(--lockup-lead-width) minmax(0, 1fr);
  min-height: var(--lockup-top-height);
}

.project-lockup--text-left {
  --lockup-top-areas: "content image-one";
}

.project-lockup--text-right {
  --lockup-top-areas: "image-one content";
}

.project-lockup--text-left .project-lockup__top {
  grid-template-columns: minmax(0, 1fr) var(--lockup-lead-width);
}

.project-lockup__top {
  grid-template-areas: var(--lockup-top-areas, "image-one content");
}

.project-lockup__image {
  min-height: 0;
  overflow: hidden;
}

.project-lockup__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.project-lockup__image--1 {
  grid-area: image-one;
}

.project-lockup__image--2,
.project-lockup__image--3,
.project-lockup__image--4 {
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  border: clamp(8px, 1.1vw, 14px) solid var(--color-page);
}

.project-lockup__thumbs {
  display: grid;
  gap: var(--lockup-thumb-gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: calc(-1 * var(--lockup-overlap)) auto 0;
  position: relative;
  width: var(--lockup-thumb-rail);
  z-index: 1;
}

.project-lockup__content {
  align-self: center;
  grid-area: content;
  justify-self: center;
  max-width: min(30rem, 72%);
  padding: clamp(48px, 7vw, 110px) 0;
}

.project-lockup__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 34px;
}

.project-lockup__description {
  color: var(--color-muted);
  font-size: 16px;
  margin: 0 0 28px;
  max-width: 30rem;
}

.button {
  align-items: center;
  background: var(--button-background, var(--color-action));
  border-radius: 999px;
  color: var(--color-surface);
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  min-height: 28px;
  padding: 7px 16px;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--button-background-hover, var(--color-action-dark));
  outline: none;
}

.image-link-band {
  background: var(--color-band);
  padding: clamp(48px, 7vw, 78px) 0 clamp(72px, 9vw, 112px);
}

.image-link-grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  width: min(80vw, 1280px);
}

.image-link {
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.image-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.image-link:hover img,
.image-link:focus-visible img {
  transform: scale(1.04);
}

.image-link:focus-visible {
  outline: 3px solid var(--color-action);
  outline-offset: 5px;
}

.image-link__label {
  background: rgba(29, 31, 35, 0.74);
  bottom: 0;
  color: var(--color-surface);
  font-size: 0.75rem;
  font-weight: 700;
  left: 0;
  opacity: 0;
  padding: 12px;
  position: absolute;
  right: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.image-link:hover .image-link__label,
.image-link:focus-visible .image-link__label {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  background: var(--color-surface);
  padding: clamp(58px, 8vw, 92px) max(20px, calc((100vw - 1120px) / 2)) clamp(120px, 18vw, 260px);
}

.site-footer__inner {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-column h2 {
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 22px;
}

.footer-column ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column a,
.footer-column p {
  color: var(--color-muted);
  margin: 0;
  text-decoration: none;
}

.footer-column a {
  font-size: 0.72rem;
}

.footer-column p {
  font-size: 16px;
}

.is-hidden {
  display: none;
}

.project-page {
  background: var(--color-page);
  min-height: calc(100vh - var(--nav-height));
  padding-bottom: clamp(88px, 12vw, 180px);
}

.project-page__status {
  color: var(--color-muted);
  margin: 0 auto;
  max-width: var(--page-rail);
  padding: 80px 0;
}

.project-hero {
  height: clamp(42vh, 58vw, 70vh);
  height: clamp(42svh, 58vw, 70svh);
  max-height: 70vh;
  overflow: hidden;
  width: 100%;
}

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

.project-hero--no-image {
  height: 10rem;
  max-height: none;
}

.project-details {
  display: grid;
  width: 100%;
}

.project-details__inner {
  align-items: start;
  display: grid;
  gap: clamp(3rem, 7vw, 9rem);
  grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.8fr);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) 0;
  width: min(84vw, 1600px);
}

.project-details__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 1.25rem;
}

.project-details__roles {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.35;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-details__description {
  color: var(--color-muted);
  font-size: 16px;
  max-width: 60rem;
}

.project-details__description p {
  margin: 0;
}

.project-details__description p + p {
  margin-top: 1.25rem;
}

.project-row {
  display: grid;
  grid-template-columns: var(--project-column-template, repeat(var(--project-columns, 1), minmax(0, 1fr)));
  margin: 0 auto;
  max-width: none;
  width: min(90vw, 1800px);
}

.project-row--full-width {
  width: 100%;
}

.project-row--level-0 + .project-row--level-0 {
  margin-top: clamp(28px, 5vw, 72px);
}

.project-hero + .project-row,
.project-page > .project-row:first-child {
  align-items: start;
  grid-template-columns: var(--project-column-template, minmax(180px, 0.9fr) minmax(0, 2fr));
  padding-top: clamp(56px, 8vw, 98px);
}

.project-column {
  display: grid;
  margin: 0.5rem;
  min-height: clamp(260px, 34vw, 520px);
  overflow: hidden;
}

.project-column--heading,
.project-column--paragraph,
.project-column--layout {
  min-height: auto;
}

.project-column img,
.project-column video {
  height: 100%;
  width: 100%;
}

.project-column--iframe {
  aspect-ratio: var(--project-embed-aspect-ratio, 16 / 9);
  min-height: 0;
}

.project-column--iframe iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.project-column__copy {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 48px);
}

.project-hero + .project-row .project-column__copy,
.project-page > .project-row:first-child .project-column__copy {
  padding: clamp(24px, 4vw, 48px);
}

.project-column__heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.project-column__paragraph {
  color: var(--color-muted);
  font-size: 16px;
  margin: 0;
  max-width: 60rem;
}

.project-column__nested {
  display: grid;
  gap: clamp(18px, 2.4vw, 34px);
}

.project-row--nested {
  gap: clamp(18px, 2.4vw, 34px);
  max-width: none;
  width: 100%;
}

.project-row--nested + .project-row--nested {
  margin-top: 0;
}

.project-row--nested .project-column {
  min-height: clamp(180px, 22vw, 360px);
}

.project-row--nested .project-column--heading,
.project-row--nested .project-column--paragraph {
  min-height: auto;
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 18px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.is-menu-open .mobile-nav {
    display: block;
  }

  .project-lockup,
  .project-lockup--text-left {
    background: var(--color-surface);
    aspect-ratio: auto;
    min-height: auto;
  }

  .project-lockup__top,
  .project-lockup--text-left .project-lockup__top {
    display: grid;
    grid-template-areas:
      "image-one"
      "content";
    grid-template-columns: 1fr;
    grid-template-rows: 280px auto;
    min-height: auto;
  }

  .project-lockup__image--1,
  .project-lockup--text-left .project-lockup__image--1 {
    grid-area: image-one;
    height: auto;
  }

  .project-lockup__content,
  .project-lockup--text-left .project-lockup__content {
    grid-area: content;
    max-width: none;
  }

  .project-lockup__thumbs {
    display: none;
  }

  .image-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(92vw, 620px);
  }

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

  .project-row,
  .project-hero + .project-row,
  .project-page > .project-row:first-child {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .project-hero + .project-row,
  .project-page > .project-row:first-child {
    gap: 22px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-column {
    min-height: 300px;
  }

  .project-column--heading,
  .project-column--paragraph,
  .project-column--layout,
  .project-column--iframe {
    min-height: auto;
  }

  .project-row--nested .project-column {
    min-height: 240px;
  }

  .project-row--nested .project-column--iframe {
    min-height: 0;
  }

  .project-details__inner {
    gap: 2.5rem;
    grid-template-columns: 1fr;
    padding: 4rem 0 5rem;
    width: calc(100% - 40px);
  }
}

@media (max-width: 520px) {
  :root {
    --page-rail: calc(100vw - 28px);
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand__logo {
    height: 26px;
  }

  .hero__copy {
    max-width: 260px;
  }

  .feature-stack {
    gap: 56px;
    padding: 60px 0;
  }

  .project-lockup,
  .project-lockup--text-left {
    grid-template-areas:
      "image-one"
      "content";
    grid-template-columns: 1fr;
    grid-template-rows: 240px auto;
  }

  .project-lockup__content {
    padding: 28px;
  }

  .image-link-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}
