:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #6a6a6a;
  --line: #e6e6e6;
  --sans: HelveticaNowDisplay, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "adobe-garamond-pro", "EB Garamond", Garamond, "Times New Roman", serif;
  --pad: clamp(16px, 5vw, 48px);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 22px;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 40;
  background: transparent;
  border: none;
  color: #fff;
  mix-blend-mode: difference;
}

.menu-btn {
  appearance: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: inherit;
}

body.menu-open .menu-btn span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.menu-open .menu-btn span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-btn span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-btn span {
  display: block;
  height: 2px;
  background: currentColor;
  width: 22px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn span:nth-child(2) {
  width: 16px;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 80px var(--pad);
  background: #fff;
  color: #000;
  font-family: var(--sans);
}

.menu[hidden] {
  display: none !important;
}

.menu a {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  opacity: 0;
  transform: translate3d(0, 0.45em, 0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.menu.is-open a {
  opacity: 1;
  transform: none;
}

.menu a:nth-child(1) {
  transition-delay: 0.04s;
}

.menu a:nth-child(2) {
  transition-delay: 0.1s;
}

.menu a:nth-child(3) {
  transition-delay: 0.16s;
}

.menu a:nth-child(4) {
  transition-delay: 0.22s;
}

.menu a:nth-child(5) {
  transition-delay: 0.28s;
}

.menu a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .nav-overlay {
  mix-blend-mode: normal;
  color: #000;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  animation: heroEase 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroEase {
  to {
    transform: scale(1);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.38);
}

.hero-copy {
  width: min(920px, calc(100% - 2 * var(--pad)));
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 8vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 100%;
  overflow-wrap: break-word;
  perspective: 900px;
}

.hero-next {
  position: absolute;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  animation: heroNextIn 0.7s ease 1.15s forwards;
}

.hero-next::after {
  content: "";
  width: 1px;
  height: 42px;
  background: #fff;
  transform-origin: top center;
  animation: heroNextLine 1.9s ease-in-out 1.6s infinite;
}

@keyframes heroNextIn {
  to {
    opacity: 1;
  }
}

@keyframes heroNextLine {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  28% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1) translateY(12px);
    opacity: 0;
  }
}

body.menu-open .hero-next {
  visibility: hidden;
}

.section {
  padding: 64px var(--pad);
  width: min(1180px, 100%);
  margin-inline: auto;
}

.section h2,
.section-title {
  font-family: var(--sans);
  font-size: clamp(28px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  display: block;
  max-width: 100%;
  text-decoration: none;
  border-bottom: 0.08em solid currentColor;
  padding-bottom: 0.12em;
  margin-bottom: 28px;
  overflow-wrap: break-word;
  perspective: 800px;
}

.section .sub {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 28px;
}

.stack {
  display: block;
  padding: 72px var(--pad) 24px;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.stack > h2 {
  position: static;
}

.stack-body {
  flex: 1;
  min-width: 0;
  padding: 8px 0 28px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.stack-marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  column-gap: clamp(36px, 5vw, 72px);
  row-gap: 36px;
  padding: 36px 12px 20px;
}

.stack-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.js .hero h1:not(.split-text),
.js .section-title:not(.split-text),
.js .touch h2:not(.split-text) {
  visibility: hidden;
}

.js .stack-mark {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.7s ease, filter 0.7s ease;
  transition-delay: var(--d, 0ms);
}

.js .stack-mark.is-in {
  opacity: 1;
  filter: none;
}

.stack-mark:nth-child(odd) {
  transform: translateY(-10px);
}

.stack-mark:nth-child(even) {
  transform: translateY(14px);
}

.stack-mark:nth-child(3n) {
  transform: translateY(4px);
}

.stack-mark img {
  width: auto;
  max-width: 100%;
  height: clamp(32px, 8vw, 48px);
  object-fit: contain;
  transition: transform 0.35s ease;
}

.stack-mark:nth-child(4n + 1) img {
  height: 58px;
}

.stack-mark:nth-child(5n) img {
  height: 40px;
}

.stack-mark-wide img {
  height: clamp(22px, 6vw, 28px);
  max-width: min(140px, 100%);
}

.stack-mark figcaption {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.stack-mark:hover img {
  transform: translateY(-6px);
}

.stack-mark:hover figcaption {
  opacity: 1;
  color: var(--ink);
}

.projects {
  display: block;
  padding: 72px var(--pad) 32px;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.projects > h2 {
  position: static;
}

.projects-list {
  min-width: 0;
  overflow-x: clip;
  padding-top: 12px;
}

.project {
  width: min(100%, 920px);
  max-width: 100%;
  margin-bottom: 88px;
}

.js .project {
  opacity: 0;
  transform: translateX(clamp(24px, 8vw, 72px));
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.project:nth-child(even) {
  margin-left: auto;
}

.js .project:nth-child(even) {
  transform: translateX(calc(-1 * clamp(24px, 8vw, 72px)));
}

.js .project.is-in {
  opacity: 1;
  transform: translateX(0);
}

.project-stage {
  display: block;
  background: transparent;
  padding: 0;
  overflow: visible;
}

.project-stage img {
  width: 100%;
  height: auto;
  background: transparent;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-stage:hover img {
  transform: translateY(-8px);
}

.project-meta {
  padding-top: 16px;
  max-width: 42em;
}

.project-meta h3 {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.project-meta p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
}

.more {
  font-family: var(--serif);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.why {
  position: relative;
  isolation: isolate;
}

.why-doodles {
  position: absolute;
  inset: -8px 0 -24px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
}

.why-doodles svg {
  width: 100%;
  height: 100%;
  display: block;
}

.why > *:not(.why-doodles) {
  position: relative;
  z-index: 1;
}

.why-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.why-copy p {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.4;
  margin-bottom: 18px;
  max-width: 36em;
}

.why-proof {
  margin: 0;
}

.why-proof img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin-inline: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}

.step {
  background: transparent;
  border: none;
  padding: 0;
}

.js .step {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s ease;
  transition-delay: var(--d, 0ms);
}

.js .step.is-in {
  opacity: 1;
  transform: none;
}

.step img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 18px;
}

.step b {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.step p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.4;
}

.touch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #141414;
  color: #fff;
  text-align: center;
  padding: clamp(96px, 16vw, 160px) var(--pad) clamp(56px, 9vw, 96px);
}

.touch-doodles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.touch-doodles svg {
  width: 100%;
  height: 100%;
  display: block;
}

.touch > *:not(.touch-doodles) {
  position: relative;
  z-index: 1;
}

.touch-kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.touch h2 {
  font-family: var(--sans);
  font-size: clamp(36px, 9vw, 92px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 22px;
  perspective: 800px;
}

.touch-copy {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 36px;
}

.touch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.touch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 32px;
  border-radius: 999px;
  background: #fff;
  color: #141414;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}

.touch-btn:hover {
  background: #f2f2f2;
  transform: translateY(-2px);
}

.js .touch-btn.reveal.is-in:hover {
  transform: translateY(-2px);
}

.touch .socials {
  justify-content: center;
  margin-top: 28px;
}

.touch .socials a {
  opacity: 1;
}

.touch .socials img {
  width: 32px;
  height: 32px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.socials a {
  display: block;
  width: 28px;
  height: 28px;
}

.socials img {
  width: 28px;
  height: 28px;
  max-width: none;
  object-fit: contain;
}

.split-text .word-clip {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.split-text .word {
  display: inline-block;
  transform: translate3d(0, 108%, 0) rotateX(72deg);
  transform-origin: 50% 100%;
  opacity: 0;
  backface-visibility: hidden;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  transition-delay: calc(var(--i, 0) * 55ms);
}

.split-text.is-in .word {
  transform: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .stack-mark,
  .stack-mark img,
  .project,
  .project-stage img,
  .hero-bg,
  .hero-next,
  .hero-next::after,
  .split-text .word,
  .reveal,
  .step,
  .menu a,
  .touch-btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

@media (max-width: 860px) {
  .why-doodles {
    opacity: 0.22;
  }

  .steps,
  .why-body {
    grid-template-columns: 1fr;
  }

  .stack-marks {
    column-gap: 28px;
    row-gap: 28px;
    padding: 28px 0 12px;
  }

  .stack-mark:nth-child(odd),
  .stack-mark:nth-child(even),
  .stack-mark:nth-child(3n) {
    transform: none;
  }

  .project,
  .project:nth-child(even),
  .js .project,
  .js .project:nth-child(even) {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
}
