:root {
  color-scheme: dark;
  --ink: #0b0b0a;
  --ink-soft: #11110f;
  --paper: #f4f0e7;
  --muted: #aaa69d;
  --line: rgba(244, 240, 231, 0.18);
  --fox: #f05a28;
  --max: 1540px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 2%, rgba(240, 90, 40, 0.09), transparent 29rem),
    var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

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

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark,
.footer-mark {
  display: grid;
  place-items: center;
  background: var(--fox);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.12em;
}

.wordmark-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding-right: 0.16em;
  font-size: 0.78rem;
}

.header-note {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.intro {
  min-height: min(790px, calc(100vh - 99px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 0 52px;
}

.eyebrow,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.73rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 1330px;
  margin: auto 0;
  padding-block: 7vh;
  font-size: clamp(4.25rem, 11.8vw, 11rem);
  font-weight: 650;
  line-height: 0.8;
  letter-spacing: -0.085em;
}

.intro h1 em {
  color: var(--fox);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.07em;
}

.intro-bottom {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 20px;
}

.lede {
  grid-column: 7 / span 4;
  margin: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.explore-link {
  grid-column: 11 / -1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

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

.section-heading {
  align-items: baseline;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  color: var(--paper);
  font: inherit;
}

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

.project {
  display: block;
  text-decoration: none;
}

.project-googoo,
.project-calabria {
  grid-column: span 7;
}

.project-poipoi,
.project-claw {
  grid-column: span 5;
}

.project-visual {
  position: relative;
  display: grid;
  min-height: 410px;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  background: var(--ink-soft);
  border: 1px solid var(--line);
}

.project-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0 solid var(--fox);
  content: "";
  pointer-events: none;
  transition: border-width 260ms ease;
}

.project img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 300ms ease;
}

.project-number,
.project-arrow {
  position: absolute;
  z-index: 2;
  top: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 11, 10, 0.78);
  backdrop-filter: blur(10px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.project-number {
  left: 18px;
}

.project-arrow {
  right: 18px;
  font-family: inherit;
  font-size: 1.1rem;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.project-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.72fr);
  gap: 24px;
  align-items: start;
  padding-top: 18px;
}

.project-copy h3,
.project-copy p {
  margin: 0;
}

.project-copy h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.project-copy p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.project-googoo .project-visual {
  background: #2b0804;
}

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

.project-poipoi .project-visual {
  background: #0e0e0d;
}

.project-poipoi img,
.project-claw img {
  width: 88%;
  height: auto;
}

.project-claw .project-visual {
  background: #0c1117;
}

.project-calabria .project-visual {
  background:
    radial-gradient(circle at 50% 48%, rgba(24, 90, 121, 0.28), transparent 40%),
    #070b0d;
}

.project-calabria img {
  width: min(78%, 500px);
  height: auto;
}

.project:hover .project-visual::after,
.project:focus-visible .project-visual::after {
  border-width: 5px;
}

.project:hover img,
.project:focus-visible img {
  transform: scale(1.025);
}

.project:hover .project-arrow,
.project:focus-visible .project-arrow {
  transform: rotate(45deg);
  background: var(--fox);
  color: var(--ink);
}

.project:focus-visible,
.wordmark:focus-visible,
.explore-link:focus-visible {
  outline: 2px solid var(--fox);
  outline-offset: 5px;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: end;
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.footer-mark {
  width: 38px;
  height: 38px;
  padding-right: 0.14em;
  font-size: 0.7rem;
}

footer p {
  margin: 0;
  text-align: right;
}

@media (max-width: 900px) {
  .intro {
    min-height: 690px;
  }

  .intro h1 {
    font-size: clamp(4rem, 15vw, 7.6rem);
  }

  .lede {
    grid-column: 1 / span 8;
  }

  .explore-link {
    grid-column: 9 / -1;
  }

  .project-grid {
    gap-block: 56px;
  }

  .project-googoo,
  .project-calabria {
    grid-column: span 7;
  }

  .project-poipoi,
  .project-claw {
    grid-column: span 5;
  }

  .project-visual {
    min-height: 320px;
  }

  .project-copy {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    padding-block: 20px;
  }

  .header-note {
    display: none;
  }

  .intro {
    min-height: calc(100svh - 83px);
    padding: 28px 0 32px;
  }

  .eyebrow span:last-child {
    display: none;
  }

  .intro h1 {
    padding-block: 3rem;
    font-size: clamp(3.75rem, 19vw, 6.2rem);
    line-height: 0.84;
  }

  .intro-bottom {
    display: block;
  }

  .lede {
    max-width: 30rem;
    margin-bottom: 32px;
  }

  .explore-link {
    width: 100%;
  }

  .work {
    padding: 46px 0 66px;
  }

  .project-grid {
    display: block;
  }

  .project + .project {
    margin-top: 54px;
  }

  .project-visual {
    min-height: 0;
    aspect-ratio: 1 / 0.82;
  }

  .project-googoo .project-visual {
    aspect-ratio: 1 / 0.94;
  }

  .project-copy h3 {
    font-size: 1.75rem;
  }

  footer {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding-block: 24px;
  }

  footer p {
    text-align: right;
    line-height: 1.45;
  }
}

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

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