:root {
  --ink: #171515;
  --paper: #ffffff;
  --line: #d8d8d8;
  --muted: #74706f;
  --signal: #ef3e42;
  --brand-font: "Monoton", sans-serif;
  --soft: #f3f0ec;
  --radius: 4px;
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.25;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 30;
  transform: translateY(-140%);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 10px 14px;
}

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

.site-header {
  align-items: center;
  background: var(--signal);
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(80px, 1fr);
  height: var(--header-height);
  left: 0;
  padding: 0 clamp(18px, 4vw, 48px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background-color 240ms ease, box-shadow 240ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(23, 21, 21, 0.16);
}

.brand-mark,
.contact-link,
.desktop-nav a,
.mobile-nav a {
  font-size: clamp(15px, 1.35vw, 18px);
}

.brand-mark {
  font-weight: 400;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.site-header.is-scrolled .brand-mark {
  opacity: 1;
  transform: translateY(0);
}

.desktop-nav {
  display: flex;
  gap: clamp(18px, 2.8vw, 34px);
  justify-content: center;
}

.desktop-nav a,
.contact-link {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.desktop-nav a:hover,
.contact-link:hover,
.footer-links a:hover {
  border-color: currentColor;
}

.contact-link {
  justify-self: end;
}

.menu-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 44px;
  justify-self: end;
  padding: 0;
  width: 44px;
}

.menu-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 7px auto;
  width: 28px;
}

.mobile-nav {
  background: var(--signal);
  display: none;
  left: 0;
  padding: calc(var(--header-height) + 8px) 24px 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.mobile-nav a {
  border-top: 1px solid rgba(23, 21, 21, 0.28);
  display: block;
  padding: 18px 0;
}

.hero {
  background: var(--signal);
  min-height: 100svh;
  overflow: hidden;
  padding-top: var(--header-height);
  position: relative;
  --hero-progress: 0;
  --hero-logo-opacity: 1;
  --hero-logo-scale: 1;
  --hero-logo-y: 0px;
  --tile-scale: 1;
  --tiles-scale: 1;
  --tiles-y: 0px;
}

.hero-tiles {
  display: grid;
  gap: clamp(20px, 4vw, 54px) clamp(22px, 4.5vw, 68px);
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  inset: calc(var(--header-height) + 10px) clamp(18px, 4vw, 48px) 42px;
  position: absolute;
  transform: translateY(var(--tiles-y)) scale(var(--tiles-scale));
  transform-origin: center;
  transition: opacity 200ms linear;
}

.hero-tile {
  align-self: center;
  aspect-ratio: 1.55 / 1;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  overflow: hidden;
  transform: translateY(46px) scale(0.92);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: calc(var(--tile-index, 0) * 52ms);
  will-change: transform;
}

.is-loaded .hero-tile {
  opacity: 1;
  transform: translate3d(var(--tile-x, 0px), calc(var(--tile-drift, 0px) + var(--tile-shift, 0px)), 0) scale(var(--tile-scale));
}

.hero-tile img,
.hero-tile video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-tile:nth-child(2n) {
  --tile-drift: 44px;
  --tile-scroll: -76px;
}

.hero-tile:nth-child(3n) {
  --tile-drift: -22px;
  --tile-scroll: 86px;
}

.hero-tile:nth-child(4n) {
  --tile-x: -18px;
  --tile-scroll: -104px;
}

.hero-tile:nth-child(5n) {
  --tile-x: 22px;
  --tile-scroll: 112px;
}

.hero-tile:nth-child(7n) {
  --tile-drift: 76px;
}

.hero-tile:nth-child(8n) {
  --tile-drift: -58px;
}

.hero-tile:nth-child(9n) {
  --tile-x: -34px;
}

.hero-tile:nth-child(10n) {
  --tile-x: 36px;
}

.hero-logo {
  color: var(--paper);
  font-family: var(--brand-font);
  font-size: clamp(4.8rem, 16vw, 14rem);
  font-weight: 700;
  left: 50%;
  letter-spacing: 0;
  line-height: 0.85;
  margin: 0;
  max-width: 92vw;
  position: absolute;
  text-align: center;
  text-wrap: balance;
  top: 55%;
  opacity: var(--hero-logo-opacity);
  transform: translate3d(-50%, calc(-50% + var(--hero-logo-y)), 0) scale(var(--hero-logo-scale));
  transform-origin: center;
  will-change: transform, opacity;
  width: max-content;
  z-index: 2;
}

.brand-mark,
.footer-brand {
  font-family: var(--brand-font);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.hero-logo.has-logo-image {
  width: min(78vw, 900px);
}

.hero-logo .brand-logo {
  display: block;
  height: auto;
  width: 100%;
}

.brand-mark.has-logo-image,
.footer-brand.has-logo-image {
  display: inline-flex;
  align-items: center;
}

.brand-logo.compact {
  display: block;
  height: 42px;
  object-fit: contain;
  width: auto;
}

.intro-strip {
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 48px);
}

.intro-strip p {
  font-size: clamp(1.7rem, 5vw, 4.8rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 1120px;
}

.work-section,
.about-section,
.split-section,
.careers-section {
  padding: clamp(48px, 8vw, 104px) clamp(18px, 4vw, 48px);
}

.section-heading {
  align-items: end;
  border-bottom: 1px solid var(--ink);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(150px, 0.4fr) minmax(240px, 1fr);
  margin-bottom: 28px;
  padding-bottom: 24px;
}

.section-heading p,
.about-section > p:first-child,
.split-section p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  text-transform: uppercase;
}

.section-heading h2,
.about-section h2,
.split-section h2,
.careers-section h2 {
  font-size: clamp(2.2rem, 7vw, 6.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}

.work-grid {
  display: grid;
  gap: 42px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
  display: grid;
  gap: 14px;
}

.work-card figure {
  aspect-ratio: 1.45 / 1;
  background: var(--soft);
  margin: 0;
  overflow: hidden;
}

.work-card figure.media-poster {
  aspect-ratio: 4 / 5;
}

.work-card figure.media-square {
  aspect-ratio: 1;
}

.work-card figure.media-reel {
  aspect-ratio: 9 / 16;
}

.work-card figure.media-video {
  aspect-ratio: 16 / 9;
}

.work-card img,
.work-card video,
.work-card iframe {
  border: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
  width: 100%;
}

.work-card:hover img {
  transform: scale(1.04);
}

.work-meta {
  color: var(--muted);
  display: flex;
  font-size: 14px;
  gap: 12px;
  justify-content: space-between;
}

.work-card h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
}

.work-card h3 a {
  color: inherit;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-section {
  background: var(--ink);
  color: var(--paper);
}

.about-section > p:first-child {
  color: #bbb5b2;
  margin-bottom: 24px;
}

.about-section h2 {
  max-width: 1160px;
}

.about-section p:last-child {
  color: #ddd7d5;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  line-height: 1.28;
  margin: 28px 0 0 auto;
  max-width: 680px;
}

.split-section {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(220px, 0.55fr) minmax(240px, 1fr);
}

.list-stack {
  border-top: 1px solid var(--ink);
}

.list-item {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 22px 0;
}

.list-item strong {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 400;
}

.list-item span {
  color: var(--muted);
  font-size: 14px;
}

.careers-section {
  background: var(--soft);
}

.careers-section p {
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  max-width: 780px;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto;
  padding: 38px clamp(18px, 4vw, 48px);
}

.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.9;
}

.site-footer p {
  color: #ddd7d5;
  margin: 16px 0 0;
}

.footer-links {
  align-content: end;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: end;
}

.footer-links a {
  border-bottom: 1px solid transparent;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .contact-link {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 720px;
  }

  .hero-tiles {
    gap: 32px;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
  }

  .hero-logo {
    font-size: clamp(4rem, 18vw, 8rem);
    width: min-content;
  }

  .section-heading,
  .split-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: start;
  }
}

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

  .brand-mark,
  .hero-tile,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-logo,
  .hero-tiles,
  .is-loaded .hero-tile {
    transform: translate(-50%, -50%);
  }

  .hero-tiles,
  .is-loaded .hero-tile {
    transform: none;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 70px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-tiles {
    gap: 28px 24px;
    grid-template-columns: repeat(2, minmax(86px, 1fr));
  }

  .hero-tile:nth-child(n + 7) {
    display: none;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .list-item {
    grid-template-columns: 1fr;
  }
}
