:root {
  --paper: #f8f8f6;
  --surround: #ececeb;
  --ink: #0a0a0a;
  --muted: #777;
  --line: rgba(10, 10, 10, 0.45);
  --gutter: clamp(18px, 2.5vw, 36px);
  --frame: min(1440px, calc(100vw - 48px));
  --display: clamp(3.4rem, 6.2vw, 7rem);
  --section-gap: clamp(8rem, 15vw, 15rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surround);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { font: inherit; }

.site-shell { width: var(--frame); margin: 0 auto; }
.page-panel { background: var(--paper); }

.brand { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; white-space: nowrap; }
.brand__mark { width: 1.45rem; height: auto; }
.brand--light { color: #fff; }

.header {
  min-height: 7.2rem;
  padding: 1.55rem var(--gutter);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.header__nav { display: flex; gap: 1.6rem; font-size: 0.72rem; }
.header__nav a, .floating-nav a, .footer a { transition: opacity 180ms ease; }
.header__nav a:hover, .floating-nav a:hover, .footer a:hover { opacity: 0.58; }

.hero { padding: clamp(4rem, 9vw, 8rem) var(--gutter) var(--gutter); }
.hero__copy { display: grid; grid-template-columns: 1.5fr 0.5fr; align-items: end; gap: 3rem; margin-bottom: 1.4rem; }
.hero h1 { margin: 0; font-size: var(--display); font-weight: 400; letter-spacing: -0.065em; line-height: 0.95; }
.hero__intro { max-width: 18rem; margin: 0 0 0.3rem auto; font-size: 0.86rem; }
.hero__media { margin: 0; overflow: hidden; aspect-ratio: 2.18 / 1; }
.hero__media img { height: 100%; object-fit: cover; }

.statement { padding: var(--section-gap) var(--gutter) 8rem; }
.statement__lead { width: min(48rem, 72%); margin: 0 auto 8rem; text-align: center; font-size: clamp(1.25rem, 1.8vw, 2rem); line-height: 1.18; letter-spacing: -0.025em; }
.statement__notes { display: grid; grid-template-columns: 1fr 1fr; max-width: 55rem; gap: 12vw; }
.statement__notes p { margin: 0; max-width: 19rem; font-size: 0.72rem; line-height: 1.35; }

.works { padding: 3rem var(--gutter) 9rem; }
.section-kicker { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 6rem; }
.section-kicker span { font-size: 0.72rem; }
.section-kicker h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 3.2rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.05; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 4vw, 4.5rem); row-gap: clamp(5rem, 10vw, 10rem); align-items: start; }
.project { min-width: 0; }
.project--01 { grid-column: 1 / span 6; }
.project--02 { grid-column: 8 / span 5; margin-top: 2rem; }
.project--03 { grid-column: 2 / span 10; }
.project--04 { grid-column: 1 / span 4; }
.project--05 { grid-column: 7 / span 6; }
.project__image-link { display: block; overflow: hidden; background: #ddd; }
.project__image-link img { aspect-ratio: auto; transition: transform 750ms cubic-bezier(.2,.8,.2,1), filter 400ms ease; }
.project__image-link:hover img { transform: scale(1.025); filter: saturate(0.9); }
.project__image-link--drawing { border: 1px solid rgba(0,0,0,.12); background: #fff; }
.project__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; margin-top: 0.75rem; font-size: 0.72rem; }
.works__link { display: block; width: fit-content; margin: 6rem 0 0 auto; }
.text-link { font-size: 0.76rem; border-bottom: 1px solid currentColor; padding-bottom: 0.15rem; }

.process { position: relative; padding: 8rem var(--gutter) 11rem; }
.process__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; min-height: 19rem; }
.process__eyebrow { font-size: 0.72rem; }
.process__intro h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.05em; font-weight: 400; }
.process__list { position: relative; border-top: 1px solid var(--line); }
.process-row { width: 100%; min-height: 4.2rem; display: grid; grid-template-columns: 2.35rem 2.35rem 1fr; align-items: center; gap: 0.45rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.process-row__number, .process-row__arrow { width: 2.1rem; height: 2.1rem; border: 1px solid #111; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.72rem; transition: background 200ms ease, color 200ms ease, transform 200ms ease; }
.process-row__text { font-size: clamp(0.85rem, 1.25vw, 1.2rem); }
.process-row:hover .process-row__arrow, .process-row:focus-visible .process-row__arrow { background: #111; color: white; transform: rotate(-18deg); }
.process-preview { position: absolute; z-index: 3; width: clamp(10rem, 17vw, 16rem); aspect-ratio: 0.74; overflow: hidden; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.92); transition: opacity 180ms ease, transform 180ms ease; box-shadow: 0 18px 35px rgba(0,0,0,.15); }
.process-preview.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.process-preview img { height: 100%; object-fit: cover; filter: grayscale(1); }

.contact { padding: 0 var(--gutter) var(--gutter); }
.contact__media { position: relative; min-height: clamp(34rem, 56vw, 50rem); overflow: hidden; }
.contact__media > img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.contact__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.48) 0%, rgba(0,0,0,.08) 55%, rgba(0,0,0,.26) 100%); }
.contact__title { position: absolute; left: 1.4rem; bottom: 1.4rem; margin: 0; color: white; font-weight: 400; font-size: clamp(3rem, 5.6vw, 6.5rem); letter-spacing: -0.055em; line-height: .98; }
.contact__aside { position: absolute; right: 2rem; top: 3rem; width: min(18rem, 30vw); color: white; font-size: 0.8rem; }
.contact__aside p { margin: 0 0 2rem; }
.text-link--light { color: #fff; }

.footer { background: #050505; color: #fff; padding: 1.3rem 1.4rem 1.1rem; min-height: 32rem; }
.footer__top { display: grid; grid-template-columns: 1.3fr .9fr .9fr 1.2fr; gap: 2rem; align-items: start; }
.footer__links, .footer__social { display: grid; gap: 0.2rem; font-size: 0.74rem; }
.footer__email { justify-self: end; font-size: 0.74rem; border-bottom: 1px solid #fff; }
.footer__bottom { margin-top: 13rem; display: grid; grid-template-columns: 1fr 2.2fr; align-items: end; gap: 3rem; }
.footer__about { max-width: 20rem; }
.footer__about span, .footer__about p, .footer__about small { display: block; font-size: 0.7rem; }
.footer__about p { color: rgba(255,255,255,.72); line-height: 1.35; }
.footer__about small { margin-top: 3rem; color: rgba(255,255,255,.55); }
.footer__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; height: 8rem; overflow: hidden; }
.footer__gallery img { height: 100%; object-fit: cover; filter: grayscale(1); }
.footer__gallery img:nth-child(2) { clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%); }
.footer__gallery img:nth-child(3) { clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }

.floating-nav { position: fixed; z-index: 20; left: 50%; bottom: 1.2rem; transform: translate(-50%, 160%); width: min(660px, calc(100vw - 2rem)); min-height: 3.25rem; padding: 0.75rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: #050505; color: #fff; border: 1px solid rgba(255,255,255,.28); transition: transform 500ms cubic-bezier(.2,.8,.2,1); }
.floating-nav.is-visible { transform: translate(-50%, 0); }
.floating-nav__links { display: flex; gap: 1.3rem; font-size: 0.72rem; }

.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #000; color: white; clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.76,0,.24,1); }
.loader.is-leaving { clip-path: inset(0 0 100% 0); }
.loader.is-gone { display: none; }
.loader__inner { position: relative; width: 18rem; height: 3rem; display: grid; place-items: center; }
.loader__hello, .loader__brand { position: absolute; margin: 0; opacity: 0; transform: translateY(.7rem); transition: opacity 450ms ease, transform 450ms ease; }
.loader__hello.is-visible, .loader__brand.is-visible { opacity: 1; transform: translateY(0); }
.loader__hello { font-size: 0.82rem; }

.reveal { opacity: 0; }
.reveal-up { transform: translateY(2rem); transition: opacity 850ms ease, transform 850ms cubic-bezier(.2,.8,.2,1); }
.reveal-mask { clip-path: inset(0 0 100% 0); transform: scale(1.035); transition: opacity 0ms, clip-path 1200ms cubic-bezier(.2,.8,.2,1), transform 1200ms cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-mask.is-visible { clip-path: inset(0); transform: scale(1); }
.delay-1 { transition-delay: 120ms; }
.delay-2 { transition-delay: 240ms; }

@media (max-width: 900px) {
  :root { --frame: calc(100vw - 20px); --section-gap: 7rem; }
  .header { min-height: 5.2rem; }
  .header__nav { gap: 0.8rem; }
  .hero { padding-top: 4.5rem; }
  .hero__copy, .section-kicker, .process__intro { grid-template-columns: 1fr; }
  .hero__intro { margin: 1.5rem 0 0; max-width: 24rem; }
  .hero__media { aspect-ratio: 1.38 / 1; }
  .statement__lead { width: 100%; }
  .statement__notes { gap: 3rem; }
  .project-grid { column-gap: 1.5rem; row-gap: 5rem; }
  .project--01 { grid-column: 1 / span 7; }
  .project--02 { grid-column: 8 / span 5; }
  .project--03 { grid-column: 1 / span 12; }
  .project--04 { grid-column: 1 / span 5; }
  .project--05 { grid-column: 6 / span 7; }
  .process__intro { min-height: 16rem; }
  .process-preview { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__email { justify-self: start; }
  .footer__bottom { grid-template-columns: 1fr; margin-top: 8rem; }
}

@media (max-width: 640px) {
  :root { --gutter: 14px; --frame: calc(100vw - 12px); --display: clamp(3rem, 14vw, 4.8rem); }
  body { font-size: 15px; }
  .header { align-items: center; }
  .header__nav a:nth-child(2), .header__nav a:nth-child(3) { display: none; }
  .hero { padding-top: 3.5rem; }
  .hero__media { aspect-ratio: .95 / 1; }
  .hero__media img { object-position: 42% center; }
  .statement { padding-bottom: 5rem; }
  .statement__lead { margin-bottom: 4rem; }
  .statement__notes { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-grid { display: block; }
  .project { margin-bottom: 4rem; }
  .project--02, .project--04 { width: 72%; }
  .project--05 { width: 84%; margin-left: auto; }
  .works__link { margin-top: 1rem; }
  .process { padding-top: 5rem; padding-bottom: 7rem; }
  .process-row { grid-template-columns: 1.95rem 1.95rem 1fr; min-height: 4.7rem; }
  .process-row__number, .process-row__arrow { width: 1.75rem; height: 1.75rem; }
  .contact__media { min-height: 38rem; }
  .contact__title { left: 1rem; bottom: 1rem; }
  .contact__aside { left: 1rem; right: auto; top: 1.2rem; width: 70%; }
  .footer { min-height: auto; }
  .footer__top { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .footer__email { grid-column: 1 / -1; }
  .footer__gallery { grid-template-columns: 1fr 1fr; height: 13rem; }
  .floating-nav { width: calc(100vw - 1rem); }
  .floating-nav .brand span { display: none; }
  .floating-nav__links { gap: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .loader { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* Automatic tour controls */
.floating-nav {
  width: min(820px, calc(100vw - 2rem));
}
.tour-status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(255,255,255,.22);
  white-space: nowrap;
}
.tour-status__progress {
  min-width: 2.7rem;
  color: rgba(255,255,255,.62);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}
.tour-control {
  min-width: 5rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.tour-control:hover,
.tour-control:focus-visible {
  background: #fff;
  color: #050505;
  border-color: #fff;
  outline: none;
}
.tour-control__icon {
  min-width: 0.8rem;
  font-size: 0.68rem;
  line-height: 1;
}
.tour-control__label {
  font-size: 0.68rem;
}
[data-scroll-scene] {
  scroll-margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .tour-status { display: none; }
  .floating-nav { width: min(660px, calc(100vw - 2rem)); }
}
