:root {
  --paper: #f4f1ea;
  --ink: #121212;
  --muted: #75716a;
  --line: rgba(18, 18, 18, 0.17);
  --dark: #151515;
  --light-on-dark: #f2efe8;
  --page: min(100% - 2.5rem, 1480px);
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

a:hover { text-decoration-thickness: 2px; }

button, input { font: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.site-shell { overflow: clip; }

.page-width { width: var(--page); margin-inline: auto; }

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 0.87rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.wordmark::after { content: ".wtf"; color: var(--muted); font-weight: 500; }

.desktop-nav { display: flex; align-items: center; gap: 1.45rem; }

.desktop-nav a, .nav-toggle {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }

.nav-toggle {
  display: none;
  padding: 0;
  color: var(--ink);
  background: none;
  border: 0;
}

.mobile-nav {
  display: none;
  position: fixed;
  z-index: 19;
  inset: 76px 0 auto;
  padding: 1.5rem max(1.25rem, calc((100vw - 1480px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[data-open="true"] { display: grid; gap: 1rem; }

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: min(830px, calc(100svh - 77px));
  padding: clamp(2.3rem, 7vw, 7.5rem) 0 1.4rem;
  isolation: isolate;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(260px, 0.97fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 6rem);
  min-height: min(700px, calc(100svh - 210px));
}

.hero-copy { align-self: start; }

.hero h1 {
  max-width: none;
  margin: 0.72rem 0 0;
  font-family: var(--display);
  font-size: clamp(4.75rem, 9.25vw, 11rem);
  font-stretch: normal;
  font-weight: 700;
  letter-spacing: -0.058em;
  line-height: 0.86;
  text-transform: none;
}

.hero h1 span { display: block; white-space: nowrap; }

.hero-description {
  max-width: 25rem;
  margin: 2rem 0 0;
  font-size: clamp(1rem, 1.32vw, 1.28rem);
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.hero-visual {
  position: relative;
  width: min(100%, 590px);
  aspect-ratio: 0.79;
  margin-left: auto;
  overflow: hidden;
  background: #ccc7bd;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.13));
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.22, .61, .36, 1);
}

.hero-visual picture { display: block; width: 100%; height: 100%; }

.hero-visual:hover img { transform: scale(1.025); }

.hero-visual[data-empty="true"]::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "Selected work loading";
  color: rgba(18, 18, 18, 0.66);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-caption {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 0.9rem;
  max-width: calc(100% - 2rem);
  color: var(--light-on-dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: right;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.42);
  text-transform: uppercase;
}

.hero-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-footer p { margin: 0; }

.scroll-cue {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue::after { content: " ↓"; font-size: 1rem; }

.home-section { padding: clamp(5rem, 11vw, 11rem) 0; }

.home-section--bordered { border-top: 1px solid var(--line); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(8rem, 0.37fr) 1fr;
  gap: 1.4rem;
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 4.8rem);
}

.section-heading h2 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.1vw, 6.3rem);
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.88;
  text-transform: uppercase;
}

.section-heading > p:not(.eyebrow) {
  max-width: 29rem;
  margin: 0.12rem 0 0;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  letter-spacing: -0.036em;
  line-height: 1.3;
}

.section-heading--stacked { display: block; }

.section-heading--stacked .eyebrow { margin-bottom: 1.1rem; }

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  justify-content: flex-end;
  padding-top: 0.15rem;
}

.gallery-filter {
  padding: 0.48rem 0.72rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.gallery-filter:hover, .gallery-filter[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.7rem);
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  min-width: 0;
  overflow: hidden;
  color: var(--light-on-dark);
  background: #c9c4ba;
  border: 0;
  padding: 0;
  text-align: left;
}

.gallery-item:nth-child(5n + 1) { grid-column: span 7; }
.gallery-item:nth-child(5n + 2) { grid-column: span 5; margin-top: 11vw; }
.gallery-item:nth-child(5n + 3) { grid-column: span 4; }
.gallery-item:nth-child(5n + 4) { grid-column: span 4; margin-top: 5vw; }
.gallery-item:nth-child(5n + 5) { grid-column: span 4; }

.gallery-item.is-hidden { display: none; }

.gallery-item__image { width: 100%; height: 100%; min-height: 18rem; object-fit: cover; }
.gallery-item picture { display: block; width: 100%; height: 100%; }

.gallery-item__caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 3.3rem 0.8rem 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.63));
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 230ms ease;
}

.gallery-item:hover .gallery-item__caption, .gallery-item:focus-visible .gallery-item__caption { transform: translateY(0); }

.gallery-item__caption span:last-child { opacity: 0.74; text-align: right; }

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 3rem 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}

.showreel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(14rem, 0.75fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  align-items: end;
  padding: clamp(1rem, 2.7vw, 2rem);
  color: var(--light-on-dark);
  background: var(--dark);
}

.showreel-stage {
  position: relative;
  min-height: min(53vw, 44rem);
  overflow: hidden;
  background: #252525;
}

.showreel-stage video, .showreel-stage iframe { width: 100%; height: 100%; min-height: inherit; border: 0; object-fit: cover; }

.showreel-stage[data-empty="true"]::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "Showreel — coming soon";
  color: #b8b4ac;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.showreel-external {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  color: var(--light-on-dark);
  background: linear-gradient(135deg, #262626, #111);
  font-size: clamp(1.5rem, 2.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.9;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.showreel-external::before {
  content: "▶";
  font-size: 1.3rem;
  letter-spacing: 0;
}

.showreel-external:hover { background: #303030; }

.showreel-external small {
  color: #aaa69e;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showreel-copy { padding: 0.25rem 0.5rem 0.5rem 0; }
.showreel-copy .eyebrow { color: #a8a49d; }

.showreel-copy h2 {
  margin: 0.7rem 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(3.3rem, 7vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 0.76;
  text-transform: uppercase;
}

.showreel-copy p:not(.eyebrow) {
  max-width: 23rem;
  margin: 0;
  color: #cfcbc4;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.text-link {
  display: inline-block;
  margin-top: 2rem;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 0.38fr) minmax(0, 1.2fr) minmax(12rem, 0.62fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  align-items: start;
}

.about-grid h2 {
  max-width: 8ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 4.4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.84;
  text-transform: uppercase;
}

.about-copy {
  margin: 0;
  font-size: clamp(1.35rem, 2.55vw, 2.9rem);
  letter-spacing: -0.058em;
  line-height: 1.05;
}

.about-copy p { margin: 0; }
.about-copy p + p { margin-top: 1em; }

.contact-card {
  padding-top: 0.3rem;
  border-top: 1px solid var(--ink);
}

.contact-card p { margin: 0; }
.contact-card a { display: inline-block; margin-top: 0.8rem; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.04em; }

.site-footer { padding: 1.25rem 0 1.7rem; border-top: 1px solid var(--line); }

.footer-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }

.footer-grid p, .footer-nav a {
  margin: 0;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; }
.footer-nav a:hover { color: var(--ink); }

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  grid-template-rows: auto 1fr auto;
  padding: 1rem;
  color: var(--light-on-dark);
  background: rgba(9, 9, 9, 0.985);
}

.lightbox[aria-hidden="false"] { display: grid; }

.lightbox-bar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }

.lightbox-close, .lightbox-nav {
  padding: 0.25rem 0;
  color: inherit;
  background: none;
  border: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; min-height: 0; }

.lightbox-image { width: 100%; height: min(78vh, 55rem); object-fit: contain; }

.lightbox-meta { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0 0; color: #c9c5be; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }

.legal-main { min-height: calc(100svh - 210px); padding: clamp(4rem, 10vw, 10rem) 0; }

.legal-kicker { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.legal-main h1 { max-width: 10ch; margin: 0; font-family: var(--display); font-size: clamp(3.8rem, 10vw, 10rem); font-weight: 800; letter-spacing: -0.1em; line-height: 0.76; text-transform: uppercase; }

.legal-content { max-width: 48rem; margin: clamp(3rem, 8vw, 7rem) 0 0 auto; }

.legal-content h2 { margin: 3rem 0 0.7rem; font-size: 1rem; letter-spacing: -0.03em; }
.legal-content h3 { margin: 1.6rem 0 0.5rem; font-size: 0.86rem; }
.legal-content p, .legal-content li { color: #3c3934; font-size: 0.96rem; line-height: 1.58; }
.legal-content p { margin: 0.6rem 0 0; }
.legal-content ul { padding-left: 1.2rem; }
.legal-content .legal-note { padding: 1rem; color: #4a453e; background: #e9e5dc; border-left: 2px solid var(--ink); }

@media (max-width: 760px) {
  :root { --page: min(100% - 2rem, 1480px); }
  .site-header { min-height: 66px; }
  .desktop-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { inset: 66px 0 auto; }
  .hero { min-height: auto; padding-top: 3rem; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero h1 { font-size: clamp(4rem, 18vw, 6.8rem); }
  .hero-description { margin-top: 1.5rem; }
  .hero-visual { width: 87%; margin-top: 1.5rem; margin-left: 0; }
  .hero-footer { margin-top: 1.2rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .gallery-controls { justify-content: flex-start; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: span 1; margin-top: 0; }
  .gallery-item:nth-child(3n + 1) { grid-column: span 2; }
  .gallery-item__image { min-height: 13rem; }
  .gallery-item__caption { transform: translateY(0); padding-top: 2.8rem; }
  .showreel { grid-template-columns: 1fr; padding: 0.8rem; }
  .showreel-stage { min-height: 75vw; }
  .showreel-copy { padding: 1.5rem 0.5rem 0.7rem; }
  .about-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .about-copy { max-width: 23ch; }
  .footer-grid { align-items: flex-start; flex-direction: column; gap: 1.1rem; }
  .footer-nav { justify-content: flex-start; }
  .lightbox-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 0.2rem; }
  .lightbox-image { height: min(67vh, 42rem); }
  .lightbox-nav { justify-self: center; }
  .lightbox-nav--previous { grid-row: 2; align-self: end; justify-self: start; }
  .lightbox-nav--next { grid-row: 2; align-self: end; justify-self: end; }
  .legal-main h1 { font-size: clamp(4rem, 19vw, 8rem); }
  .legal-content { margin-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
