:root {
  --page-bg: #e3e3db;
  --text-light: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  scroll-padding-bottom: 7rem;
}

body {
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: var(--page-bg);
  overflow-x: clip;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1,
h3 {
  font-weight: 400;
  letter-spacing: -0.05rem;
  line-height: 1;
}

h1 {
  font-size: 5rem;
}

h3 {
  font-size: 3rem;
}

section {
  position: relative;
  width: 100%;
  height: 100svh;
}

.hero-track {
  position: relative;
  height: 450svh;
}

.hero {
  position: sticky;
  top: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-img,
.hero-header,
.hero-copy {
  position: absolute;
  width: 100%;
  height: 100%;
  will-change: transform, opacity, width, height;
}

.hero-img {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.hero-header,
.hero-copy {
  padding: 4rem 4rem 9.5rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-end;
}

.hero-logo {
  position: absolute;
  top: 4rem;
  left: 4rem;
  width: clamp(5.5rem, 8vw, 6.9rem);
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-header h1 {
  width: 75%;
}

.hero-copy h3 {
  width: 75%;
  transition: opacity 0.2s linear;
}

.hero-copy .word {
  display: inline-block;
  opacity: 0;
  will-change: opacity;
}

.hero-copy .word-space {
  display: inline;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.about {
  margin-top: -75svh;
}

.about-images {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem;
}

.about-imgs-col {
  --col-x: 0px;
  --col-y: 0px;
  position: relative;
  height: 125%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  transform: translate3d(var(--col-x), var(--col-y), 0);
  will-change: transform;
}

.about-imgs-col .img {
  width: 125px;
  height: 125px;
  border-radius: 10px;
  overflow: hidden;
}

#about-imgs-col-1 {
  --col-y: 1000px;
}

#about-imgs-col-2 {
  --col-x: -225px;
  --col-y: 500px;
}

#about-imgs-col-3 {
  --col-x: 225px;
  --col-y: 500px;
}

#about-imgs-col-4 {
  --col-y: 1000px;
}

.about-header {
  position: absolute;
  top: calc(50% - 56px);
  left: 50%;
  transform: translateX(-50%);
  width: min(72vw, 900px);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0;
}

.about-title {
  margin: 0 0 1.75rem;
  max-width: none;
  font-size: clamp(2.65rem, 4.7vw, 4.9rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

@media (min-width: 1001px) {
  .about-title-line {
    display: inline-block;
    white-space: nowrap;
  }
}

.about-copy {
  max-width: 30rem;
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}


@media (max-width: 1000px) {
  h1 {
    font-size: 3rem;
  }

  h3 {
    font-size: 2rem;
  }

  .hero {
    z-index: 2;
  }

  .hero-header,
  .hero-copy {
    padding: 2rem 2rem 7.5rem;
  }

  .hero-logo {
    top: 2rem;
    left: 2rem;
    width: clamp(4.5rem, 24vw, 5.5rem);
  }

  .hero-header h1,
  .hero-copy h3 {
    width: 100%;
  }

  .hero-header h1 {
    font-size: clamp(2rem, 8.5vw, 2.55rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .about-header {
    top: calc(50% + 10px);
    width: 100%;
    padding: 2rem;
  }

  .about-title {
    max-width: 12ch;
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 8.4vw, 2.9rem);
    line-height: 1.01;
  }

  .about-copy {
    max-width: 24rem;
    font-size: clamp(0.96rem, 3.6vw, 1.08rem);
    line-height: 1.42;
  }

  .about-images {
    padding: 2rem;
  }

  .about-imgs-col .img {
    width: 75px;
    height: 75px;
    opacity: 0.25;
    filter: saturate(0);
  }

  #about-imgs-col-2,
  #about-imgs-col-3 {
    --col-x: 0px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track {
    height: 100svh;
  }

  .hero {
    position: relative;
  }

  .hero-header {
    transform: none !important;
  }

  .hero-copy h3,
  .hero-copy .word {
    opacity: 1 !important;
    transition: none;
  }

  .hero-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
  }

  .about {
    margin-top: 0;
  }

  .about-imgs-col {
    transform: none !important;
  }
}

/* Clients marquee — CSS-only infinite loop, scoped so scroll scenes stay untouched. */
.clients {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(3.5rem, 8vh, 5.5rem);
  padding: clamp(5.5rem, 12vh, 7.5rem) 0;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.clients-title {
  margin: 0;
  padding-inline: 1.5rem;
  font-size: clamp(2.6rem, 5.2vw, 3.35rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: center;
}

.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clients-marquee 48s linear infinite;
}

.clients-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clients-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding-inline: clamp(1.6rem, 3.2vw, 2.75rem);
}

.clients-list img {
  width: auto;
  height: clamp(2.1rem, 3.4vw, 2.85rem);
  max-width: min(42vw, 11.5rem);
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

@keyframes clients-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 1000px) {
  .clients {
    gap: 3rem;
    padding-block: 4.5rem;
  }

  .clients-marquee {
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 4%,
      #000 96%,
      transparent 100%
    );
  }

  .clients-list li {
    padding-inline: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee {
    mask-image: none;
    overflow-x: auto;
  }

  .clients-track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 1.75rem;
  }

  .clients-list:nth-child(2) {
    display: none;
  }

  .clients-list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1.75rem;
  }
}

/* Cases showcase — scoped styles imported from the case-scroll concept. */
.cases-showcase {
  position: relative;
  width: 100%;
  background: #fcfcfc;
  color: #141414;
}

.case-item {
  position: relative;
  width: 100%;
  height: 110svh;
  min-height: 38rem;
  overflow: hidden;
}

.case-item picture,
.case-item img {
  display: block;
  width: 100%;
  height: 100%;
}

.case-item-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(25% 25%, 75% 40%, 100% 100%, 0% 100%);
  will-change: clip-path;
}

@media (min-width: 701px) {
  .case-item-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
    pointer-events: none;
  }
}

.case-item-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding-inline: 1rem;
  z-index: 1;
  pointer-events: none;
}

.case-item-name h1 {
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  font-size: 5rem;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.05rem;
}

.case-char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.case-char {
  display: inline-block;
  transform: translateY(125%);
  will-change: transform;
}

.case-char-space {
  width: 0.28em;
}

@media (max-width: 1000px) {
  .case-item-name h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 700px) {
  .case-item {
    height: 78svh;
    min-height: 30rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 1svh 0.75rem;
    background: #fcfcfc;
  }

  .case-item-img {
    position: relative;
    inset: auto;
    width: min(92%, calc(72svh * 0.8));
    height: auto;
    aspect-ratio: 4 / 5;
    flex: 0 0 auto;
    border-radius: 0.8rem;
    overflow: hidden;
  }

  .case-item-img picture {
    width: 100%;
    height: 100%;
  }

  .case-item-name {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding-inline: 0.5rem;
  }

  .case-item-name h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 0.95;
    color: #141414;
    text-wrap: balance;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-item-img {
    clip-path: none !important;
  }

  .case-char {
    transform: none !important;
  }
}

/* Four-stage process — sticky card stack, scoped to avoid conflicts. */
.process-showcase {
  position: relative;
  width: 100%;
  background: var(--page-bg);
  color: #141414;
}

.process-intro {
  min-height: 42svh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 6svh 4rem 3svh;
  overflow: hidden;
}

.process-intro h2 {
  width: min(100%, 12ch);
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.030em;
  text-wrap: balance;
  text-align: center;
}

.process-track {
  position: relative;
  width: 100%;
  height: 520svh;
}

.process-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  perspective: 1000px;
  perspective-origin: center center;
}

.process-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(65%, 1100px);
  height: 60%;
  display: flex;
  gap: 1rem;
  padding: 2.5rem;
  border-radius: 1rem;
  color: #111;
  background-color: #F7F6F2;
  transform-origin: center bottom;
  backface-visibility: hidden;
  will-change: transform;
}

.process-card-copy,
.process-card-media {
  flex: 1 1 0;
  height: 100%;
}

.process-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 0.5rem;
}

.process-card-step {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-card-text {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.process-card-copy h3 {
  max-width: 100%;
  font-size: clamp(2.5rem, 4.2vw, 4.5rem);
  font-weight: 550;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.process-card-description {
  max-width: 100%;
  font-size: clamp(0.95rem, 1.15vw, 1.2rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-transform: none;
}

.process-card-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 0.75rem;
  overflow: hidden;
}

.process-card-media img {
  object-fit: contain;
  object-position: center bottom;
}

#process-card-1 {
  background-color: #F7F6F2;
  z-index: 5;
}

#process-card-2 {
  background-color: #F7F6F2;
  z-index: 4;
}

#process-card-3 {
  background-color: #F7F6F2;
  z-index: 3;
}

#process-card-4 {
  background-color: #F7F6F2;
  z-index: 2;
}

@media (max-width: 1000px) {
  .process-intro {
    min-height: 30svh;
    justify-content: flex-start;
    padding: 4svh 2rem 2svh;
  }

  .process-intro h2 {
    width: min(100%, 10ch);
    font-size: clamp(3rem, 12vw, 6rem);
    text-align: left;
  }

  .process-track {
    height: 400svh;
  }

  .process-card {
    width: calc(100% - 4rem);
    height: 74%;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .process-card-copy {
    flex: 0 0 42%;
    padding: 0.25rem;
  }

  .process-card-media {
    flex: 1 1 auto;
  }

  .process-card-media img {
    object-position: left center;
  }

  .process-card-copy h3 {
    font-size: clamp(2.25rem, 9vw, 4.5rem);
  }
}

@media (max-width: 600px) {
  .process-intro {
    padding-inline: 1rem;
  }

  .process-card {
    width: calc(100% - 2rem);
    height: 76%;
    padding: 1rem;
  }

  .process-card-copy h3 {
    font-size: clamp(2rem, 10vw, 3.3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-track {
    height: auto;
  }

  .process-sticky {
    position: relative;
    height: auto;
    display: grid;
    gap: 1rem;
    padding: 1rem;
    overflow: visible;
    perspective: none;
  }

  .process-card {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 1100px);
    min-height: 32rem;
    height: min(70svh, 44rem);
    margin-inline: auto;
    transform: none !important;
  }
}

/* Brand character showcase — four-card scroll sequence adapted to vanilla JS. */
.brand-character-showcase {
  position: relative;
  width: 100%;
  height: auto;
  background: #111;
  color: #fff;
  overflow: clip;
}

.brand-sequence-track {
  position: relative;
  width: 100%;
  height: 380svh;
}

.brand-sequence-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  perspective: 1200px;
}

.brand-detail-cards {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(94vw, 1600px);
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 1.35vw, 1.5rem);
}

.brand-detail-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 330px;
  aspect-ratio: 5 / 7;
  border-radius: 0.85rem;
}

.brand-character-title {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(94vw, 22ch);
  margin: 0;
  transform: translate(-50%, -50%);
  opacity: 1;
  text-align: center;
  font-size: clamp(3.5rem, 8vw, 9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.030em;
  text-wrap: balance;
  will-change: transform, opacity;
}

.brand-detail-cards {
  z-index: 4;
  pointer-events: none;
}

.brand-detail-card {
  position: relative;
  perspective: 1200px;
  opacity: 0;
  transform: translate3d(0, -130%, 0) scale(0.25);
  will-change: transform, opacity;
}

.brand-detail-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.brand-detail-front,
.brand-detail-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.85rem;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.brand-detail-front {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3e3da;
  color: #111;
  box-shadow: 0 1.25rem 4rem rgb(0 0 0 / 0.18);
}

.brand-detail-front span {
  font-size: clamp(4.75rem, 7vw, 6.5rem);
  font-weight: 450;
  color: #cecec5;
  line-height: 1;
  letter-spacing: -0.06em;
}

.brand-detail-back {
  --brand-pad: clamp(1rem, 1.6vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--brand-pad);
  background: #e3e3da;
  color: #111;
  transform: rotateY(180deg);
  box-shadow: 0 1.25rem 4rem rgb(0 0 0 / 0.18);
}

.brand-detail-number {
  font-size: clamp(4.75rem, 7vw, 6.5rem);
  font-weight: 450;
  color: #cecec5;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.brand-detail-copy {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-height: 12rem;
}

.brand-detail-copy h3 {
  margin: 0;
  font-size: clamp(1.4rem, 1.9vw, 2.25rem);
  font-weight: 550;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.brand-detail-copy p {
  margin: 0;
  font-size: clamp(0.95rem, 1.15vw, 1.2rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

@media (max-width: 1180px) and (min-width: 1001px) {
  .brand-detail-cards {
    width: calc(100% - 2rem);
    gap: 0.65rem;
  }

  .brand-detail-back {
    --brand-pad: 0.9rem;
    padding: var(--brand-pad);
  }

  .brand-detail-copy {
    gap: 0.6rem;
  }

  .brand-detail-copy h3 {
    font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  }

  .brand-detail-copy p {
    font-size: clamp(0.9rem, 1.05vw, 1rem);
  }
}

@media (max-width: 1000px) {
  .brand-character-showcase {
    padding: 0;
  }

  .brand-sequence-track {
    height: 560svh;
  }

  .brand-sequence-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    perspective: 1100px;
    isolation: isolate;
  }

  .brand-character-title {
    position: absolute;
    top: 42%;
    left: 50%;
    z-index: 30;
    width: min(94vw, 20ch);
    margin: 0;
    transform: translate(-50%, -50%);
    opacity: 1;
    font-size: clamp(2.85rem, 11.5vw, 5.6rem);
    line-height: 1;
    pointer-events: none;
  }

  .brand-detail-cards {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    transform: none;
    display: block;
    pointer-events: none;
  }

  .brand-detail-card {
    position: absolute;
    top: 62%;
    left: 50%;
    width: min(89vw, 29rem);
    height: clamp(22rem, 60svh, 34rem);
    max-width: none;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    opacity: 0;
    perspective: 1100px;
    transform: translate3d(-50%, calc(-50% + 82svh), 0) scale(0.92);
    transform-origin: center 72%;
    will-change: transform, opacity;
  }

  .brand-detail-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
  }

  .brand-detail-front,
  .brand-detail-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .brand-detail-front {
    display: flex;
  }

  .brand-detail-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    padding: clamp(1.2rem, 4.8vw, 1.65rem);
  }

  .brand-detail-front span {
    font-size: clamp(4.25rem, 18vw, 6rem);
  }

  .brand-detail-number {
    font-size: clamp(4.25rem, 18vw, 6rem);
  }

  .brand-detail-copy {
    gap: 1rem;
  }

  .brand-detail-copy h3 {
    font-size: clamp(1.75rem, 7vw, 2.7rem);
    line-height: 0.98;
  }

  .brand-detail-copy p {
    font-size: clamp(1rem, 3.9vw, 1.18rem);
    line-height: 1.35;
  }
}

@media (max-width: 620px) {
  .brand-character-title {
    width: min(94vw, 18ch);
    font-size: clamp(2.65rem, 12vw, 4.4rem);
  }

  .brand-detail-card {
    top: 63%;
    width: min(90vw, 26rem);
    height: clamp(21.5rem, 58svh, 30rem);
  }

  .brand-detail-back {
    padding: 1.2rem;
  }

  .brand-detail-copy h3 {
    font-size: clamp(1.65rem, 7.4vw, 2.35rem);
  }

  .brand-detail-copy p {
    font-size: clamp(0.98rem, 4vw, 1.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-character-showcase {
    padding: 12svh 1.25rem;
  }

  .brand-sequence-track {
    height: auto;
  }

  .brand-sequence-sticky {
    position: relative;
    height: auto;
    overflow: visible;
    perspective: none;
  }


  .brand-character-title {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 22ch);
    margin: 0 auto 8svh;
    transform: none !important;
    opacity: 1 !important;
  }

  .brand-detail-cards {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 92rem);
    height: auto;
    margin-inline: auto;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    pointer-events: auto;
  }

  .brand-detail-card {
    position: relative;
    top: auto;
    left: auto;
    flex: 1 1 14rem;
    width: auto;
    height: auto;
    min-height: 22rem;
    opacity: 1 !important;
    transform: none !important;
    perspective: none;
  }

  .brand-detail-inner {
    transform: none !important;
    transform-style: flat;
  }

  .brand-detail-front {
    display: none;
  }

  .brand-detail-back {
    position: relative;
    inset: auto;
    transform: none;
  }
}

/* Gallery marquee — dual infinite rows (Figma). */
.gallery-marquee {
  --gallery-pad: 8.625rem;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  padding-block: var(--gallery-pad);
  padding-inline: 0;
  overflow: hidden;
  background: var(--page-bg);
  display: grid;
  align-content: start;
  gap: calc(var(--gallery-pad) * 0.72);
}

.gallery-marquee-row {
  width: 100%;
  height: auto;
  align-self: start;
  overflow: hidden;
}

.gallery-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.125rem;
  width: max-content;
  will-change: transform;
  animation: gallery-marquee-left 36s linear infinite;
}

.gallery-marquee-row[data-direction="right"] .gallery-marquee-track {
  gap: 1.875rem;
  animation-name: gallery-marquee-right;
}

.gallery-marquee-item {
  flex: 0 0 auto;
  width: 14.375rem;
  height: 18.75rem;
  margin: 0;
  overflow: hidden;
  background: #c1c1c1;
}

.gallery-marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes gallery-marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes gallery-marquee-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1000px) {
  .gallery-marquee {
    --gallery-pad: 5rem;
  }

  .gallery-marquee-track,
  .gallery-marquee-row[data-direction="right"] .gallery-marquee-track {
    gap: 1.25rem;
    animation-duration: 32s;
  }

  .gallery-marquee-item {
    width: 10.5rem;
    height: 13.75rem;
  }
}

@media (max-width: 600px) {
  .gallery-marquee {
    --gallery-pad: 3.5rem;
  }

  .gallery-marquee-item {
    width: 8.75rem;
    height: 11.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-marquee-track {
    animation: none;
    transform: none;
  }
}

/* Contact outro — ASCII hands from the archive, copy stays on black and off the animation. */
.contact-outro {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #0f0f0f;
  color: #fff;
}

.contact-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.15rem;
  padding: clamp(5rem, 12svh, 8rem) 1.5rem calc(clamp(4rem, 10svh, 6rem) + 3.75rem);
  text-align: center;
  pointer-events: none;
}

.contact-title {
  margin: 0 0 1.15rem;
  max-width: min(100%, 22ch);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.030em;
  white-space: nowrap;
}

.contact-line,
.contact-telegram {
  pointer-events: auto;
}

.contact-line {
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.contact-line:hover,
.contact-telegram:hover {
  opacity: 0.7;
}

.contact-news {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.25rem 0 0;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.contact-telegram {
  display: inline-flex;
  color: #fff;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
}

.contact-telegram svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-hands-track {
  display: none;
}

.contact-hands-track,
.contact-hands-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-hands-stage {
  overflow: hidden;
  background: #0f0f0f;
}

.contact-hands {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: calc(clamp(8.5rem, 16svh, 11rem) + 11.75rem);
}

.contact-hand {
  position: relative;
  width: 40%;
  min-width: 200px;
  will-change: transform;
}

.contact-hand img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  pointer-events: none;
}

.contact-hand canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 1000px) {
  .contact-outro {
    height: auto;
  }

  .contact-copy {
    gap: 1rem;
    padding: 3.5rem 1.25rem calc(3rem + 5rem);
  }

  .contact-news {
    flex-wrap: wrap;
  }

  .contact-hands-track,
  .contact-hands-stage {
    position: relative;
    inset: auto;
    height: auto;
  }

  .contact-hands {
    position: relative;
    inset: auto;
    padding-top: 0.75rem;
    padding-bottom: 1.25rem;
  }

  .contact-hand {
    width: 46%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-hand {
    will-change: auto;
  }
}


/* Bottom site navigation — fixed pill, desktop links + mobile drawer. */
.site-nav {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  transform: translateX(-50%);
}

.site-nav-bar {
  display: flex;
  align-items: center;
  gap: 2.875rem;
  padding: 0.75rem 0.75rem 0.75rem 2.25rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.8);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.site-nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 2.25rem;
  white-space: nowrap;
  transition: opacity 160ms ease;
}

.site-nav-link:hover {
  opacity: 0.72;
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #648a02 0%, #c6c804 100%);
  color: #fff;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.0278em;
  line-height: 1.2;
  white-space: nowrap;
  transition: filter 160ms ease, transform 160ms ease;
}

.site-nav-cta:hover {
  filter: brightness(1.06);
}

.site-nav-menu-toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.site-nav-burger,
.site-nav-close {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav-close {
  opacity: 0;
  transform: rotate(-45deg) scale(0.85);
}

.site-nav.is-open .site-nav-burger {
  opacity: 0;
  transform: rotate(45deg) scale(0.85);
}

.site-nav.is-open .site-nav-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.site-nav-panel {
  display: none;
}

.site-nav-panel-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.04em;
  transition: opacity 160ms ease;
}

.site-nav-panel-link:hover {
  opacity: 0.72;
}

@media (max-width: 1000px) {
  .site-nav {
    width: calc(100vw - 2.4rem);
    max-width: 22rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .site-nav-bar {
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 1.35rem;
  }

  .site-nav-links {
    display: none;
  }

  .site-nav-menu-toggle {
    display: inline-flex;
  }

  .site-nav-cta {
    font-size: 1rem;
    letter-spacing: -0.0313em;
  }

  .site-nav-panel {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    padding: 1rem 1.1rem 1.8rem;
    border-radius: 1rem;
    background: rgb(15 15 15 / 0.94);
    box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 0.35);
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .site-nav.is-open .site-nav-panel {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav-panel[hidden] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav-panel,
  .site-nav-burger,
  .site-nav-close,
  .site-nav-link,
  .site-nav-cta {
    transition: none;
  }
}
