* {
  box-sizing: border-box;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: #111111;
  background: #f4f1ea;
  border: 0.125rem solid #111111;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

a:focus-visible,
button:focus-visible {
  outline: 0.16rem solid currentColor;
  outline-offset: 0.25rem;
}


:root {
  --viewport-height: 100svh;
  --viewport-width: 100vw;
  --hero-scroll-height: 145svh;
  --portfolio-scroll-height: 500svh;
  --section-padding: clamp(2rem, 7vw, 8.5rem);
  --header-offset: clamp(0.875rem, 1.35vw, 1.75rem);
  --title-size: clamp(7rem, min(24vw, 38svh), 27rem);
  --project-title-size: clamp(4.5rem, min(12vw, 18svh), 12rem);
  --contact-title-size: clamp(5rem, min(16vw, 26svh), 17rem);
}

@supports (height: 100dvh) {
  :root {
    --viewport-height: 100dvh;
    --hero-scroll-height: 145dvh;
    --portfolio-scroll-height: 500dvh;
    --title-size: clamp(7rem, min(24vw, 38dvh), 27rem);
    --project-title-size: clamp(4.5rem, min(12vw, 18dvh), 12rem);
    --contact-title-size: clamp(5rem, min(16vw, 26dvh), 17rem);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Geist", Arial, Helvetica, sans-serif;
  font-optical-sizing: auto;
  color: #111111;
  background: #111111;
  overflow-x: hidden;
  overflow-x: clip;
}

main {
  width: 100%;
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "Geist", Arial, Helvetica, sans-serif;
  font-optical-sizing: auto;
}

.site-header {
  position: fixed;
  top: var(--header-offset);
  left: var(--header-offset);
  right: var(--header-offset);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.625rem;
  color: #f4f1ea;
  mix-blend-mode: difference;
  pointer-events: none;
  transition: color 320ms ease, opacity 320ms ease;
}

.site-header.is-over-hero {
  color: #ffffff;
  mix-blend-mode: normal;
}

.site-logo,
.menu-toggle,
.site-menu {
  pointer-events: auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  transform-origin: center center;
  transition: color 180ms ease, transform 180ms ease;
}

.site-logo:hover,
.site-logo:focus-visible {
  transform: scale(1.04);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.625rem;
  height: 2.625rem;
  border: 0.125rem solid currentColor;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  font-family: "Bricolage Grotesque", "Geist", Arial, Helvetica, sans-serif;
  font-size: clamp(1.18rem, 1.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  font-variation-settings: "opsz" 96, "wdth" 100, "wght" 700;
}

.logo-letter {
  display: inline-block;
  width: auto;
  text-align: center;
  transform-origin: 50% 55%;
  will-change: font-variation-settings, transform, opacity;
}

.logo-letter-space {
  width: 0.45em;
}

.menu-toggle {
  position: relative;
  z-index: 22;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  grid-area: 1 / 1;
  width: 2rem;
  height: 0.125rem;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-0.5rem);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(0.5rem);
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.site-menu {
  position: fixed;
  top: clamp(4.75rem, 7vw, 5.5rem);
  right: var(--header-offset);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.menu-open .site-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.site-menu a,
.portfolio-menu-toggle {
  display: inline-block;
  color: inherit;
  font-size: clamp(2.1rem, 5vw, 4.75rem);
  font-family: "Bricolage Grotesque", "Geist", Arial, Helvetica, sans-serif;
  font-weight: 720;
  font-stretch: 75%;
  font-variation-settings: "opsz" 96, "wdth" 75, "wght" 720;
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-align: right;
  text-decoration: none;
  text-transform: uppercase;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transform-origin: 100% 50%;
  transition:
    font-variation-settings 220ms ease,
    font-stretch 220ms ease,
    font-weight 220ms ease,
    letter-spacing 220ms ease,
    transform 220ms ease,
    opacity 220ms ease;
}

.site-menu a:hover,
.site-menu a:focus-visible,
.portfolio-menu-toggle:hover,
.portfolio-menu-toggle:focus-visible {
  font-weight: 800;
  font-stretch: 92%;
  font-variation-settings: "opsz" 96, "wdth" 92, "wght" 800;
  letter-spacing: 0.035em;
  transform: translateX(-0.18em);
}

.site-menu a:active,
.site-menu a.is-pressed,
.portfolio-menu-toggle:active,
.portfolio-menu-toggle.is-pressed {
  font-weight: 800;
  font-stretch: 75%;
  font-variation-settings: "opsz" 96, "wdth" 75, "wght" 800;
  letter-spacing: 0.015em;
  transform: translateX(-0.08em) scale(0.98);
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.portfolio-submenu {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.25rem);
  transition: max-height 240ms ease, opacity 180ms ease, transform 220ms ease;
}

.portfolio-submenu-open .portfolio-submenu {
  max-height: 9rem;
  opacity: 1;
  transform: translateY(0);
}

.portfolio-submenu a {
  font-size: clamp(1.05rem, 2vw, 1.75rem);
  font-weight: 760;
  font-stretch: 86%;
  font-variation-settings: "opsz" 96, "wdth" 86, "wght" 760;
  line-height: 1;
}

.hero {
  min-height: var(--hero-scroll-height);
  background: #111111;
  color: #f4f1ea;
}

.hero-scene {
  position: sticky;
  top: 0;
  height: var(--viewport-height);
  min-height: var(--viewport-height);
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
  will-change: transform, filter;
}

.logo-3d-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  contain: layout paint size;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.logo-3d-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.logo-loading-rect {
  display: block;
  width: clamp(4.5rem, 11vw, 9rem);
  aspect-ratio: 1.65 / 1;
  border: 0.125rem solid #ffffff;
  background: #000000;
  animation: logo-loading-rect-spin 1.1s cubic-bezier(0.7, 0, 0.2, 1) infinite;
}

@keyframes logo-loading-rect-spin {
  0% {
    transform: rotate(0deg) scale(0.92);
  }

  50% {
    transform: rotate(180deg) scale(1);
  }

  100% {
    transform: rotate(360deg) scale(0.92);
  }
}

.hero-title {
  position: relative;
  z-index: 1;
  width: var(--viewport-width);
  height: var(--viewport-height);
  isolation: isolate;
  mix-blend-mode: difference;
}

.title-base {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: var(--title-size);
  font-weight: 800;
  font-stretch: 75%;
  font-variation-settings: "opsz" 96, "wdth" 75, "wght" 800;
  line-height: 0.72;
  text-align: center;
  letter-spacing: 0;
  white-space: nowrap;
  mix-blend-mode: difference;
  z-index: 3;
  color: #f4f1ea;
}

.title-line {
  display: block;
  overflow: visible;
}

.title-char {
  display: inline-block;
  transform-origin: 50% 75%;
  font-variation-settings: "opsz" 96, "wdth" 75, "wght" 800;
  will-change: transform, opacity, font-variation-settings, filter;
}

.portfolio {
  --project-count: 2;
  position: relative;
  z-index: 5;
  min-height: var(--portfolio-scroll-height);
  margin-top: calc(var(--viewport-height) * -1);
  background: #f4f1ea;
  color: #111111;
}

.portfolio-window {
  position: sticky;
  top: 0;
  height: var(--viewport-height);
  overflow: hidden;
  background: #f4f1ea;
}

.project-track {
  display: flex;
  width: calc(var(--project-count) * var(--viewport-width));
  height: 100%;
  transform: translate3d(calc(var(--portfolio-x, 0) * -1vw), 0, 0);
  will-change: transform;
}

.project-panel {
  flex: 0 0 var(--viewport-width);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-padding);
}

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(16rem, 34vw) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  background: #f4f1ea;
}

.studio-intro-section {
  position: relative;
  z-index: 5;
  min-height: var(--viewport-height);
  padding: var(--section-padding);
  color: #111111;
}

.intro-image {
  position: relative;
  --intro-image-bleed: 10%;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 0.125rem solid currentColor;
  background: #f4f1ea;
  color: #111111;
}

.intro-image-noise {
  position: absolute;
  inset: -50%;
  z-index: 10;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0 0.055rem, transparent 0.06rem),
    radial-gradient(circle at 48% 72%, rgba(0, 0, 0, 0.75) 0 0.05rem, transparent 0.055rem),
    radial-gradient(circle at 78% 34%, rgba(255, 255, 255, 0.75) 0 0.045rem, transparent 0.05rem),
    radial-gradient(circle at 31% 55%, rgba(0, 0, 0, 0.7) 0 0.045rem, transparent 0.05rem);
  background-size: 0.9rem 0.9rem, 1.15rem 1.15rem, 1.35rem 1.35rem, 1rem 1rem;
  animation: image-noise 420ms steps(2, end) infinite;
}

@keyframes image-noise {
  0% {
    transform: translate3d(-3%, 2%, 0);
  }

  20% {
    transform: translate3d(4%, -5%, 0);
  }

  40% {
    transform: translate3d(-6%, -2%, 0);
  }

  60% {
    transform: translate3d(5%, 3%, 0);
  }

  80% {
    transform: translate3d(-2%, -6%, 0);
  }

  100% {
    transform: translate3d(3%, 4%, 0);
  }
}

.intro-image-layer {
  position: absolute;
  top: calc(0% - var(--intro-image-bleed));
  left: calc(0% - var(--intro-image-bleed));
  display: block;
  width: calc(100% + var(--intro-image-bleed) + var(--intro-image-bleed));
  height: calc(100% + var(--intro-image-bleed) + var(--intro-image-bleed));
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}

img.intro-image-layer {
  object-fit: cover;
}

.intro-image-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-image-layer-back {
  z-index: 1;
}

.intro-image-depth {
  display: none;
}

.intro-image-depth-back {
  z-index: 2;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.42) 26%, transparent 52%);
  mix-blend-mode: multiply;
}

.intro-image-layer-middle {
  z-index: 3;
}

.intro-image-depth-front {
  z-index: 4;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.52) 28%, transparent 54%);
  mix-blend-mode: multiply;
}

.intro-image-layer-front {
  z-index: 5;
  overflow: visible;
}

.intro-image-layer-front img {
  will-change: transform;
}

.intro-content {
  max-width: 58rem;
}

.portfolio-intro h2 {
  max-width: 56rem;
  margin: 0 0 1.25rem;
  font-size: clamp(4.5rem, min(9vw, 15svh), 10rem);
  font-weight: 800;
  line-height: 0.78;
  text-transform: uppercase;
}

.portfolio-intro > .intro-content > p:not(.section-label) {
  max-width: 45rem;
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 620;
  line-height: 1.35;
}

.intro-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 5vw, 4rem);
}

.intro-lists h3 {
  margin: 0 0 0.625rem;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.intro-lists p {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 540;
  line-height: 1.35;
}

.portfolio-3d {
  position: relative;
  overflow: hidden;
  background: #d8ff3e;
}

.portfolio-category-copy {
  position: relative;
  z-index: 4;
  max-width: 54rem;
}

.portfolio-image-grid {
  position: absolute;
  top: 50%;
  right: var(--section-padding);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.45rem, 1vw, 0.9rem);
  width: min(54vw, 56rem);
  transform: translateY(-50%);
  pointer-events: none;
}

.portfolio-image-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: saturate(1.08) contrast(1.04);
  will-change: opacity, transform, filter;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-image-grid img {
    animation: none;
    transform: none;
  }
}

.section-label {
  margin: 0 0 1.125rem;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  will-change: opacity, transform, filter;
}

.project-panel h2 {
  max-width: 53.75rem;
  margin: 0 0 1.125rem;
  font-size: var(--project-title-size);
  font-weight: 800;
  line-height: 0.78;
  will-change: opacity, transform, filter;
}

.project-panel p:not(.section-label) {
  max-width: 38.75rem;
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.6;
  will-change: opacity, transform, filter;
}

.contact {
  position: relative;
  z-index: 6;
  min-height: var(--viewport-height);
  display: flex;
  align-items: center;
  padding: var(--section-padding);
  background: #111111;
  color: #f4f1ea;
}

.contact-inner {
  width: 100%;
}

.contact h2 {
  margin: 0 0 1.5rem;
  font-size: var(--contact-title-size);
  font-weight: 800;
  font-stretch: 120%;
  line-height: 0.78;
  text-transform: uppercase;
}

.contact a {
  color: inherit;
  font-size: clamp(1.75rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 720px) {
  .site-header {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 100;
    min-height: 3rem;
    padding: 0;
    color: #f4f1ea;
    mix-blend-mode: difference;
  }

  .site-header.is-over-hero {
    color: #ffffff;
    mix-blend-mode: difference;
  }

  .project-page .site-header {
    color: #f4f1ea;
  }

  .project-page .site-header.is-over-hero {
    color: #ffffff;
  }

  .site-logo {
    max-width: calc(100vw - 5.5rem);
    gap: 0.55rem;
  }

  .logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.78rem;
  }

  .logo-text {
    font-size: clamp(1rem, 4.4vw, 1.18rem);
  }

  .menu-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .menu-toggle span {
    width: 1.8rem;
  }

  .menu-toggle span:nth-child(1) {
    transform: translateY(-0.42rem);
  }

  .menu-toggle span:nth-child(3) {
    transform: translateY(0.42rem);
  }

  .site-menu {
    top: 4.25rem;
    left: 0.75rem;
    right: 0.75rem;
    max-width: calc(100vw - 1.5rem);
    gap: 0.5rem;
  }

  .site-menu a,
  .portfolio-menu-toggle {
    max-width: 100%;
    font-size: clamp(2.1rem, 10.5vw, 3.75rem);
    line-height: 0.84;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .site-menu a:hover,
  .site-menu a:focus-visible,
  .portfolio-menu-toggle:hover,
  .portfolio-menu-toggle:focus-visible {
    letter-spacing: 0.02em;
    transform: translateX(-0.08em);
  }

  .portfolio-submenu a {
    font-size: clamp(1.2rem, 5vw, 1.75rem);
  }

  .title-base {
    font-size: clamp(4.25rem, 28vw, 8.5rem);
    line-height: 0.76;
  }

  .project-panel {
    justify-content: flex-end;
    padding: 7rem 1.25rem 3rem;
  }

  .portfolio-intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 1.5rem;
  }

  .intro-image {
    width: min(18rem, 58vw);
    aspect-ratio: 1 / 1.18;
  }

  .portfolio-intro h2 {
    font-size: clamp(3.6rem, 17vw, 6.5rem);
  }

  .portfolio-intro > .intro-content > p:not(.section-label) {
    font-size: clamp(1.1rem, 5vw, 1.45rem);
  }

  .intro-lists {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .project-panel h2 {
    font-size: clamp(3.5rem, 20vw, 6rem);
  }

  .contact {
    padding: 7rem 1.25rem 3rem;
  }

  .contact h2 {
    font-size: clamp(4.5rem, 24vw, 8rem);
  }

  .contact a {
    display: inline-block;
    max-width: 100%;
    font-size: clamp(1.75rem, 9vw, 3rem);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .logo-text {
    font-size: clamp(0.88rem, 5vw, 1rem);
  }

  .site-menu a,
  .portfolio-menu-toggle {
    font-size: clamp(1.95rem, 12.5vw, 3.4rem);
  }

  .title-base {
    font-size: clamp(3.75rem, 29vw, 7rem);
  }
}

.hero-copy {
  position: absolute;
  bottom: clamp(2rem, 6vw, 5rem);
  left: 50%;
  z-index: 4;
  display: grid;
  justify-items: center;
  max-width: 34rem;
  color: #f4f1ea;
  text-align: center;
  mix-blend-mode: normal;
  transform: translateX(-50%);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  margin-bottom: clamp(1.35rem, 3vw, 2.25rem);
  padding: 0.2rem 1.65rem 0.08rem;
  border: 0.125rem solid currentColor;
  border-radius: 999rem;
  color: inherit;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  color: #111111;
  background: #f4f1ea;
  transform: translateY(-0.12rem);
}

.hero-copy p {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 620;
  line-height: 1.35;
}

.panel-link {
  display: inline-block;
  width: fit-content;
  margin-top: 1.5rem;
  color: inherit;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 850;
  text-transform: uppercase;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

.services {
  position: relative;
  z-index: 6;
  padding: var(--section-padding);
  background: #f4f1ea;
  color: #111111;
}

.services-inner {
  max-width: 90rem;
  margin: 0 auto;
}

.services h2 {
  max-width: 68rem;
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  font-size: clamp(3.2rem, min(9vw, 13svh), 8rem);
  font-weight: 800;
  line-height: 0.82;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.service-grid article {
  border-top: 0.125rem solid currentColor;
  padding-top: 1rem;
}

.service-grid h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.service-grid p,
.contact p {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 560;
  line-height: 1.45;
}

.no-script-content {
  padding: 2rem;
  color: #111111;
  background: #f4f1ea;
}

.no-script-content a {
  color: inherit;
  font-weight: 900;
}

.project-page {
  color: #111111;
  background: #f4f1ea;
}

.project-page .site-header {
  color: #f4f1ea;
}

.project-hero {
  position: relative;
  min-height: var(--viewport-height);
  display: grid;
  align-items: end;
  padding: var(--section-padding);
  overflow: hidden;
  color: #f4f1ea;
  background: #111111;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.78));
  pointer-events: none;
}

.project-hero-media {
  position: absolute;
  inset: 0;
  background: #111111;
}

.project-hero-media video,
.project-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-hero-image {
  display: grid;
  place-items: center;
  padding: clamp(5rem, 12vw, 11rem);
  background:
    linear-gradient(90deg, rgba(216, 255, 62, 0.95) 0 25%, transparent 25% 100%),
    #111111;
}

.project-hero-image img {
  width: min(42rem, 72vw);
  height: auto;
  object-fit: contain;
  mix-blend-mode: difference;
}

.project-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 72rem;
}

.project-hero h1 {
  max-width: 68rem;
  margin: 0 0 1.25rem;
  font-size: clamp(4.5rem, min(13vw, 20svh), 13rem);
  font-weight: 800;
  line-height: 0.78;
  text-transform: uppercase;
}

.project-hero p:not(.section-label),
.project-detail-intro p:not(.section-label),
.project-contact p {
  max-width: 47rem;
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 590;
  line-height: 1.45;
}

.project-hero-copy .section-label,
.project-hero-copy h1,
.project-hero-copy p,
.project-hero-copy .project-cta,
.project-detail .section-label,
.project-detail h2,
.project-detail h3,
.project-detail p,
.project-contact .section-label,
.project-contact h2,
.project-contact p,
.project-contact a {
  will-change: opacity, transform, filter;
}

.project-cta {
  display: inline-block;
  width: fit-content;
  margin-top: 1.75rem;
  color: inherit;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  font-weight: 900;
  text-transform: uppercase;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: var(--section-padding);
  background: #f4f1ea;
  color: #111111;
}

.project-page-3d .project-detail {
  background: #d8ff3e;
}

.project-index {
  min-height: var(--viewport-height);
  padding: calc(var(--section-padding) * 1.45) var(--section-padding) var(--section-padding);
  background: #f4f1ea;
  color: #111111;
}

.project-index-heading {
  max-width: 72rem;
  margin-bottom: clamp(2.5rem, 7vw, 6rem);
}

.project-index-heading h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(4.5rem, min(13vw, 20svh), 13rem);
  font-weight: 800;
  line-height: 0.78;
  text-transform: uppercase;
}

.project-index-heading p:not(.section-label) {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 590;
  line-height: 1.45;
}

.project-list {
  display: grid;
  gap: 0;
  border-top: 0.125rem solid currentColor;
}

.project-list-row {
  display: grid;
  grid-template-columns: minmax(22rem, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-bottom: 0.125rem solid currentColor;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 220ms ease, padding-inline 220ms ease;
}

.project-list-row:hover,
.project-list-row:focus-visible {
  padding-inline: clamp(0.75rem, 1.5vw, 1.25rem);
  background: rgba(17, 17, 17, 0.05);
  outline: none;
}

.project-list-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(8rem, 0.9fr) minmax(4.5rem, 0.45fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-content: start;
}

.project-list-meta span {
  display: block;
  margin-bottom: 0.55rem;
  font-family: "Geist", system-ui, sans-serif;
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  font-weight: 760;
  line-height: 1;
  text-transform: uppercase;
}

.project-list-meta h2,
.project-list-meta p {
  margin: 0;
}

.project-list-meta h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.75rem);
  font-weight: 850;
  line-height: 0.92;
  text-transform: uppercase;
}

.project-list-meta p {
  max-width: 22rem;
  font-size: clamp(0.98rem, 1.25vw, 1.16rem);
  font-weight: 560;
  line-height: 1.35;
}

.project-list-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}

.project-list-images figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111111;
}

.project-list-images img {
  display: block;
  width: 100%;
  height: 122%;
  object-fit: cover;
  background: #111111;
  transform: translate3d(0, -9%, 0) scale(1.18);
  transform-origin: 50% 50%;
  will-change: transform;
}

body::after,
.project-case-page::before,
.transition-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #111111;
  pointer-events: none;
}

body::after {
  transform: translateY(100%);
}

body.is-page-exiting::after {
  animation: page-exit-up 420ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.project-case-page::before,
.transition-page::before {
  animation: page-enter-up 680ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes page-exit-up {
  to {
    transform: translateY(0);
  }
}

@keyframes page-enter-up {
  to {
    transform: translateY(-100%);
  }
}

.project-case {
  display: grid;
  grid-template-columns: minmax(18rem, 0.42fr) minmax(0, 0.58fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: var(--viewport-height);
  padding: calc(var(--section-padding) * 1.45) var(--section-padding) var(--section-padding);
  background: #f4f1ea;
  color: #111111;
}

.project-case-copy {
  position: fixed;
  left: var(--section-padding);
  top: calc(var(--header-offset) + 5rem);
  bottom: var(--section-padding);
  z-index: 4;
  width: min(40rem, calc(42vw - var(--section-padding) - 1.5rem));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: calc(100vw - (var(--section-padding) * 2));
  pointer-events: none;
}

.project-case-copy a {
  pointer-events: auto;
}

.project-case-media {
  grid-column: 2;
}

.project-back-link {
  width: fit-content;
  margin-bottom: auto;
  color: inherit;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

.project-case-copy h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(3.6rem, min(8vw, 13svh), 9rem);
  font-weight: 840;
  line-height: 0.78;
  text-transform: uppercase;
}

.project-case-copy > p:not(.section-label) {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  font-weight: 570;
  line-height: 1.42;
}

.project-case-data {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 2vw, 2rem);
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  padding-top: 1rem;
  border-top: 0.125rem solid currentColor;
}

.project-case-data dt,
.project-case-data dd {
  margin: 0;
}

.project-case-data dt {
  margin-bottom: 0.5rem;
  font-family: "Geist", system-ui, sans-serif;
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  font-weight: 760;
  line-height: 1;
  text-transform: uppercase;
}

.project-case-data dd {
  max-width: 16rem;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  font-weight: 600;
  line-height: 1.25;
}

.project-case-media img,
.project-case-media video {
  display: block;
  width: 100%;
  min-height: min(78svh, 52rem);
  object-fit: cover;
  background: #111111;
}

.project-case-media img:nth-child(even),
.project-case-media video:nth-child(even) {
  aspect-ratio: 4 / 5;
}

.project-case-media img:nth-child(odd),
.project-case-media video:nth-child(odd) {
  aspect-ratio: 5 / 4;
}

.project-detail h2 {
  max-width: 50rem;
  margin: 0 0 1.25rem;
  font-size: clamp(3.3rem, min(7vw, 11svh), 7.5rem);
  font-weight: 800;
  line-height: 0.82;
  text-transform: uppercase;
}

.project-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-content: start;
}

.project-service-list article {
  border-top: 0.125rem solid currentColor;
  padding-top: 1rem;
}

.project-service-list h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.project-service-list p {
  margin: 0;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  font-weight: 560;
  line-height: 1.42;
}

.project-contact {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-padding);
  color: #f4f1ea;
  background: #111111;
}

.project-contact h2 {
  max-width: 64rem;
  margin: 0 0 1.35rem;
  font-size: clamp(4rem, min(11vw, 17svh), 11rem);
  font-weight: 800;
  line-height: 0.8;
  text-transform: uppercase;
}

.project-contact p {
  margin-bottom: 1.5rem;
}

.project-contact a {
  width: fit-content;
  color: inherit;
  font-size: clamp(1.75rem, 5vw, 5rem);
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.project-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-list-row,
  .project-list-meta {
    grid-template-columns: 1fr;
  }

  .project-list-meta {
    gap: 1rem;
  }

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

  .project-case-copy {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: auto;
    min-height: auto;
    pointer-events: auto;
  }

  .project-case-media {
    grid-column: auto;
  }

  .project-back-link {
    margin-bottom: 2.5rem;
  }

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

@media (max-width: 720px) {
  :root {
    --section-padding: 1.25rem;
    --project-title-size: clamp(2.9rem, 14vw, 4.75rem);
    --contact-title-size: clamp(3.2rem, 16vw, 5.25rem);
  }

  .site-header {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: calc(100vw - 1.5rem);
    gap: 0.75rem;
  }

  .site-logo {
    min-width: 0;
    max-width: calc(100vw - 5.25rem);
  }

  .menu-toggle {
    flex: 0 0 2.75rem;
    margin-left: auto;
  }

  .hero-copy {
    top: auto;
    left: 50%;
    right: auto;
    bottom: 2rem;
    width: calc(100% - 2.5rem);
    max-width: min(100%, 26rem);
    mix-blend-mode: normal;
    transform: translateX(-50%);
  }

  .hero-copy p {
    font-size: clamp(1rem, 4.8vw, 1.25rem);
  }

  .hero-cta {
    min-height: 2.85rem;
    margin-bottom: 1.15rem;
    padding-inline: 1.25rem;
    font-size: 1.05rem;
  }

  .portfolio {
    min-height: auto;
    margin-top: 0;
  }

  .hero {
    min-height: var(--hero-scroll-height);
  }

  .hero-scene {
    position: sticky;
    top: 0;
    height: var(--viewport-height);
    min-height: var(--viewport-height);
  }

  .hero-background {
    transform: scale(1.08);
  }

  .portfolio-window {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .project-track {
    display: block;
    width: 100%;
    height: auto;
    transform: none !important;
  }

  .project-panel {
    width: 100%;
    min-height: var(--viewport-height);
    height: auto;
    padding: 5.25rem 1.25rem 2.5rem;
  }

  .portfolio-category {
    justify-content: center;
  }

  .portfolio-3d {
    min-height: var(--viewport-height);
    padding-bottom: min(48svh, 24rem);
    justify-content: center;
  }

  .portfolio-category-copy {
    max-width: 100%;
  }

  .portfolio-image-grid {
    top: auto;
    right: 1.25rem;
    bottom: 0;
    left: 1.25rem;
    width: auto;
    height: min(46svh, 24rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: end;
    transform: none;
  }

  .portfolio-image-grid img:nth-child(n + 5) {
    display: none;
  }

  .portfolio-intro {
    display: flex;
    min-height: auto;
    padding-top: 4.75rem;
    padding-bottom: 2.75rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: clamp(1.1rem, 5vw, 1.6rem);
  }

  .project-index {
    padding-top: 5.25rem;
  }

  .project-index-heading {
    margin-bottom: 2.5rem;
  }

  .project-index-heading h1 {
    font-size: clamp(3.1rem, 18vw, 5.8rem);
  }

  .project-list-row {
    gap: 1.25rem;
  }

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

  .project-case {
    padding-top: 5.25rem;
    gap: 2.5rem;
  }

  .project-case-copy h1 {
    font-size: clamp(3.1rem, 17vw, 5.6rem);
  }

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

  .project-case-media img,
  .project-case-media video {
    min-height: auto;
  }

  .intro-image {
    width: min(100%, 28rem);
    margin: 0 auto;
    aspect-ratio: 4 / 4.85;
  }

  .portfolio-intro h2 {
    max-width: 100%;
    font-size: clamp(2.85rem, 13vw, 4.85rem);
    line-height: 0.82;
  }

  .portfolio-intro > .intro-content > p:not(.section-label) {
    max-width: 100%;
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
  }

  .intro-lists {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: clamp(1.1rem, 5vw, 1.5rem);
  }

  .project-panel h2 {
    max-width: 100%;
    font-size: var(--project-title-size);
    line-height: 0.84;
  }

  .project-panel p:not(.section-label) {
    max-width: 100%;
    font-size: clamp(1rem, 4.3vw, 1.2rem);
  }

  .services {
    padding: 7rem 1.25rem 3rem;
  }

  .services h2 {
    font-size: clamp(3.4rem, 17vw, 6.5rem);
  }

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

  .project-hero,
  .project-detail,
  .project-contact {
    padding: 7rem 1.25rem 3rem;
  }

  .project-hero h1 {
    font-size: clamp(3.55rem, 17vw, 6.5rem);
  }

  .project-detail h2 {
    font-size: clamp(3rem, 14vw, 5.5rem);
  }

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

  .project-contact h2 {
    font-size: clamp(3.5rem, 17vw, 6.5rem);
  }

  .project-contact a {
    max-width: 100%;
    font-size: clamp(1.75rem, 9vw, 3rem);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  main,
  section {
    width: 100%;
    max-width: 100%;
  }

  .site-header {
    position: fixed;
    top: max(0.75rem, env(safe-area-inset-top));
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    z-index: 100;
    max-width: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }

  .site-menu {
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    max-width: none;
  }

  .hero,
  .hero-scene,
  .portfolio,
  .portfolio-window,
  .project-track,
  .project-panel,
  .portfolio-intro,
  .services,
  .contact {
    width: 100%;
    max-width: 100%;
  }

  .hero-scene {
    position: sticky;
    top: 0;
    height: var(--viewport-height);
    min-height: var(--viewport-height);
  }

  .project-track {
    overflow: visible;
  }

  .project-panel {
    flex: none;
    overflow: hidden;
  }

  .portfolio-intro {
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .hero {
    position: relative;
    height: var(--hero-scroll-height);
    min-height: var(--hero-scroll-height);
    overflow: visible;
  }

  .hero-scene {
    position: sticky !important;
    top: 0;
    z-index: 1;
    height: var(--viewport-height);
    min-height: 0;
  }

  .portfolio-intro {
    position: relative;
    z-index: 2;
    margin-top: calc(var(--viewport-height) - var(--hero-scroll-height));
    padding-top: calc(4.75rem + 8.5rem);
  }

  .portfolio-intro > .hero-copy {
    position: absolute;
    top: calc(clamp(8.25rem, 25svh, 12.5rem) * -1);
    left: 50%;
    bottom: auto;
    width: calc(100% - 2.5rem);
    max-width: min(100%, 26rem);
    z-index: 6;
    color: #f4f1ea;
    transform: translateX(-50%);
    pointer-events: auto;
  }
}

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

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

  .project-track {
    transform: none !important;
  }

  .portfolio,
  .hero {
    min-height: auto;
    margin-top: 0;
  }

  .portfolio-window,
  .hero-scene {
    position: relative;
    height: auto;
    min-height: var(--viewport-height);
  }

  .project-track {
    display: block;
    width: 100%;
  }

  .project-panel {
    min-height: var(--viewport-height);
  }
}

.work-in-process {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.36em;
  transform: translate(-50%, -50%) rotate(-18deg);

  font-family: "Geist", Arial, Helvetica, sans-serif;
  font-size: clamp(0.5rem, min(2.2vw, 4.4svh), 3.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;

  color: rgba(1, 1, 1, 0.2);
  width: max-content;
  max-width: 140vw;
  text-align: center;
  white-space: nowrap;

  pointer-events: none;
  user-select: none;
}

@media (max-width: 720px) {
  .work-in-process {
    font-size: clamp(0.9rem, min(5.6vw, 5.8svh), 2.6rem);
    gap: 0.42em;
  }
}

@media (max-width: 720px) {
  h1,
  h2,
  h3,
  p,
  a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  h1,
  h2,
  h3 {
    text-wrap: balance;
  }

  .title-base {
    font-size: clamp(3.35rem, 23vw, 6.25rem);
  }

  .portfolio-intro h2,
  .services h2,
  .project-index-heading h1,
  .project-case-copy h1,
  .project-hero h1,
  .project-detail h2,
  .project-contact h2 {
    font-size: clamp(2.45rem, 12vw, 4.35rem);
    line-height: 0.88;
  }

  .project-panel h2,
  .contact h2 {
    font-size: clamp(2.75rem, 14vw, 4.75rem);
    line-height: 0.86;
  }

  .hero-copy p,
  .portfolio-intro > .intro-content > p:not(.section-label),
  .project-panel p:not(.section-label),
  .service-grid p,
  .contact p,
  .project-hero p:not(.section-label),
  .project-detail-intro p:not(.section-label),
  .project-contact p,
  .project-case-copy > p:not(.section-label),
  .project-service-list p {
    font-size: clamp(0.98rem, 4vw, 1.18rem);
    line-height: 1.42;
  }

  .contact a,
  .project-contact a {
    font-size: clamp(1.35rem, 7vw, 2.35rem);
    line-height: 1.05;
  }
}

@media (max-width: 420px) {
  .title-base {
    font-size: clamp(3rem, 21vw, 5rem);
  }

  .portfolio-intro h2,
  .services h2,
  .project-index-heading h1,
  .project-case-copy h1,
  .project-hero h1,
  .project-detail h2,
  .project-contact h2 {
    font-size: clamp(2.1rem, 10.5vw, 3.35rem);
  }

  .project-panel h2,
  .contact h2 {
    font-size: clamp(2.35rem, 12vw, 3.85rem);
  }
}
