:root {
  --black: #0a0a0a;
  --white: #f7f7f3;
  --paper: #ffffff;
  --muted: #686868;
  --line: #d9d9d4;
  --soft: #eeeeea;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 3px;
  background: var(--black);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left center;
  pointer-events: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: block;
  width: 26px;
  height: 40px;
  object-fit: contain;
}

.nav-links a {
  color: #303030;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.language-switch a {
  color: var(--muted);
}

.language-switch a[aria-current="page"] {
  color: var(--black);
}

.nav-links a:hover,
.contact-link:hover {
  color: var(--muted);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.44fr) minmax(0, 1fr);
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

.hero {
  min-height: calc(100vh - 83px);
  padding-top: 74px;
  padding-bottom: 36px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
}

.eyebrow,
.section-kicker,
.project-year {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  grid-column: 2;
  max-width: 920px;
  margin: 0;
  font-size: clamp(54px, 9vw, 126px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-meta {
  grid-column: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.hero-meta p {
  max-width: 560px;
  margin: 0;
  color: #333;
  font-size: 20px;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.button:hover {
  background: transparent;
  color: var(--black);
}

.section-block {
  padding-top: 96px;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

#work,
.about.section-block {
  padding-bottom: 72px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  border-color: var(--black);
  transform: translateY(-3px);
}

.project-card:nth-child(2) {
  transition-delay: 90ms;
}

.project-card:nth-child(3) {
  transition-delay: 180ms;
}

.project-card:nth-child(4) {
  transition-delay: 270ms;
}

.project-plate {
  position: relative;
  height: 330px;
  min-height: 330px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.plate-number,
.plate-type {
  position: absolute;
  z-index: 1;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.plate-number {
  top: 22px;
  left: 22px;
  color: var(--black);
  font-size: 13px;
}

.plate-type {
  right: 22px;
  bottom: 22px;
  max-width: 160px;
  text-align: right;
  font-size: 28px;
}

.plate-rule {
  position: absolute;
  inset: 50% 22px auto;
  height: 1px;
  background: var(--white);
}

.project-video-plate {
  background: var(--black);
}

.project-video-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.18), transparent 42%, rgb(0 0 0 / 0.28));
  pointer-events: none;
}

.project-video-plate video {
  width: 100%;
  height: calc(100% + 28px);
  min-height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--media-shift-y, 0), 0);
}

.project-image-plate {
  background: linear-gradient(135deg, #f8f8f5 0%, #ffffff 46%, #e8e8e4 100%);
}

.project-image-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.08), transparent 42%, rgb(0 0 0 / 0.34));
  pointer-events: none;
}

.project-image-plate img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: contain;
  transform: translate3d(0, var(--media-shift-y, 0), 0);
}

.project-image-plate-light::after {
  background: linear-gradient(180deg, rgb(0 0 0 / 0.02), transparent 46%, rgb(0 0 0 / 0.12));
}

.project-image-plate-light .plate-number {
  color: var(--black);
}

.project-image-plate-light .plate-type {
  color: #8a8a86;
}

.project-image-plate-light img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.18) translate3d(0, var(--media-shift-y, 0), 0);
}

.project-brand-plate .plate-type {
  color: var(--white);
}

.project-brand-plate img {
  object-fit: cover;
  object-position: center;
}

.plate-one {
  background:
    linear-gradient(90deg, transparent 0 22%, var(--white) 22% 23%, transparent 23% 100%),
    linear-gradient(0deg, transparent 0 44%, var(--white) 44% 45%, transparent 45% 100%),
    repeating-linear-gradient(90deg, #191919 0 38px, #0a0a0a 38px 76px);
}

.plate-two {
  background:
    radial-gradient(circle at 26% 28%, var(--white) 0 44px, transparent 45px),
    radial-gradient(circle at 68% 64%, var(--white) 0 86px, transparent 87px),
    linear-gradient(135deg, #0a0a0a 0 52%, #f7f7f3 52% 53%, #0a0a0a 53%);
}

.plate-two .plate-type,
.plate-two .plate-number {
  color: var(--black);
  mix-blend-mode: difference;
}

.plate-three {
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, var(--white) 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 24px, var(--white) 24px 25px),
    var(--black);
}

.plate-three::after {
  content: "";
  position: absolute;
  inset: 74px 50px;
  border: 1px solid var(--white);
  background: var(--black);
}

.project-info {
  padding: 24px;
}

.project-info h3,
.service-list h3 {
  margin: 14px 0 10px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0;
}

.project-info p:last-child,
.service-list p,
.about-copy p {
  margin: 0;
  color: #3f3f3f;
}

.project-hero {
  min-height: 62vh;
  padding-top: 94px;
  padding-bottom: 72px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.project-hero h1 {
  max-width: 980px;
  margin: 18px 0 24px;
  font-size: clamp(72px, 12vw, 168px);
  line-height: 0.86;
  letter-spacing: 0;
}

.project-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: #333;
  font-size: 22px;
  line-height: 1.38;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--black);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.back-link:hover {
  background: var(--black);
  color: var(--white);
}

.project-detail {
  scroll-margin-top: 92px;
  padding-top: 64px;
}

.project-detail .section-heading h2 {
  margin-bottom: 22px;
}

.project-detail .section-heading p:last-child {
  max-width: 760px;
  margin: 0;
  color: #3f3f3f;
  font-size: 20px;
  line-height: 1.45;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto 34px;
  padding-inline: 24px;
}

.project-detail-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.detail-copy {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.detail-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-copy h3 {
  margin: 14px 0 10px;
  font-size: 24px;
  line-height: 1.05;
}

.detail-copy p {
  margin: 0;
  color: #3f3f3f;
}

.video-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  max-width: 920px;
  margin: 0 auto;
  padding-inline: 24px;
}

.video-showcase figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}

.video-showcase video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  background: var(--black);
  object-fit: contain;
}

.video-showcase figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-text-stack {
  display: grid;
  gap: 1px;
  width: 100%;
  max-width: var(--max);
  margin: 64px auto 0;
  padding-inline: 24px;
}

.case-text-section {
  display: grid;
  grid-template-columns: minmax(160px, 0.36fr) minmax(0, 1fr);
  gap: 48px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.case-text-section:last-child {
  border-bottom: 1px solid var(--line);
}

.case-text-section span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-text-section > div {
  min-width: 0;
}

.case-text-section h2 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 0.98;
}

.case-text-section p {
  max-width: 780px;
  margin: 0;
  color: #3f3f3f;
  font-size: 19px;
  line-height: 1.45;
}

.case-text-section p + p {
  margin-top: 16px;
}

.case-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

.case-media figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}

.case-media img,
.case-media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  background: var(--paper);
  object-fit: contain;
}

.case-media figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-study-stack {
  display: grid;
  gap: 1px;
  max-width: var(--max);
  margin: 34px auto 0;
  padding-inline: 24px;
}

.case-study-stack figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}

.case-study-stack img {
  display: block;
  width: 100%;
  height: auto;
}

.case-study-stack figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-nav {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 72px auto 0;
  padding-inline: 24px;
}

.project-nav a {
  display: flex;
  min-height: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-nav > a:first-child {
  align-items: center;
  color: var(--muted);
}

.project-nav a:hover {
  border-color: var(--black);
  color: var(--black);
}

.project-next {
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.project-next span {
  color: var(--muted);
}

.project-next strong {
  max-width: 820px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: none;
}

.contact-direct-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 0;
}

.contact-direct {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.contact-direct p {
  max-width: 620px;
  margin: 0;
  color: #3f3f3f;
  font-size: 20px;
  line-height: 1.4;
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 950ms ease, transform 950ms ease;
}

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

.js .reveal-line {
  --line-scale: 0;
  position: relative;
}

.js .reveal-line::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -1px;
  height: 1px;
  background: var(--black);
  transform: scaleX(var(--line-scale));
  transform-origin: left;
}

.about {
  align-items: start;
}

.about-copy p {
  max-width: 680px;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.45;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 54px;
  border: 1px solid var(--line);
  background: var(--line);
}

.stat-row div {
  min-width: 0;
  padding: 24px;
  background: var(--paper);
}

.stat-row strong {
  display: block;
  font-size: 48px;
  line-height: 0.95;
}

.stat-row span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-list {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
  border-top: 1px solid var(--black);
}

.service-list article {
  display: grid;
  grid-template-columns: minmax(58px, 0.16fr) minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-list h3 {
  margin: 0;
}

.service-list p {
  max-width: 540px;
}

.contact {
  padding-bottom: 94px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--black);
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 22px;
  height: 34px;
  object-fit: contain;
}

@media (min-width: 900px) {
  .video-showcase {
    align-items: start;
  }

  .case-media {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
  }

  .section-grid,
  .hero-copy {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero h1,
  .project-hero div,
  .hero-meta,
  .hero-copy,
  .about-copy,
  .contact div {
    grid-column: 1;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 76px);
  }

  .project-hero {
    min-height: auto;
    padding-top: 56px;
  }

  .project-hero h1 {
    font-size: clamp(64px, 18vw, 96px);
  }

  .project-hero p:last-child {
    font-size: 18px;
  }

  .hero-meta {
    align-items: start;
    flex-direction: column;
  }

  .hero-meta p,
  .about-copy p {
    font-size: 18px;
  }

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

  .project-detail-grid,
  .project-detail-grid-three,
  .video-showcase,
  .case-media,
  .project-nav,
  .case-text-section {
    grid-template-columns: 1fr;
  }

  .project-plate {
    height: 260px;
    min-height: 260px;
  }

  .section-block {
    padding-top: 72px;
  }

  #work,
  .about.section-block {
    padding-bottom: 60px;
  }

  .stat-row,
  .service-list article {
    grid-template-columns: 1fr;
  }

  .service-list article {
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    padding: 18px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .section-grid,
  .project-grid,
  .project-detail-grid,
  .video-showcase,
  .case-media,
  .case-text-stack,
  .case-study-stack,
  .project-nav,
  .contact-direct-section,
  .service-list {
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .section-heading h2,
  .about h2,
  .contact h2 {
    font-size: 36px;
  }

  .stat-row strong {
    font-size: 40px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

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

  .project-video-plate video,
  .project-image-plate img,
  .project-image-plate-light img {
    transform: none;
  }
}
