@font-face {
  font-family: "Suisse Intl Mono Regular";
  src: url("assets/suisse-intl-mono-regular.woff2") format("woff2"),
       url("assets/suisse-intl-mono-regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

/* Custom Scrollbar - 3px width, transparent background, shorter thumb */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(136, 136, 136, 0.6);
  border-radius: 0;
  border: none;
  background-clip: padding-box;
  border-top: 33vh solid transparent;
  border-bottom: 33vh solid transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(85, 85, 85, 0.8);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 136, 136, 0.6) transparent;
}

html {
  background-color: #fff;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Inter Tight", sans-serif;
  line-height: 1.6;
  background-color: transparent;
  transition: background-color 1.5s ease;
}

body.loaded {
  background-color: transparent;
}

.logo {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 1.5s ease;
  z-index: 10;
  clip-path: polygon(-10% 0, 110% 0, 110% 120%, -10% 120%);
}

.logo > span {
  display: block;
  animation: logoReveal 0.5s cubic-bezier(0.53, 0, 0, 1) 0.5s both;
}

@keyframes logoReveal {
  from {
    transform: translateY(-120%);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo > span {
    animation: none;
  }
}

/* Responsive logo */
@media (max-width: 768px) {
  .logo {
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .logo {
    top: 1rem;
    left: 1rem;
    font-size: 1.1rem;
  }
}

body.loaded .logo {
  color: #fff;
}

body.menu-open .logo {
  color: #000;
  z-index: 102;
}

body.menu-open {
  overflow: hidden;
  height: 100vh;
}

/* Hamburger Menu */
.hamburger {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  position: fixed;
  top: calc(2rem + 4px);
  right: 2rem;
  width: 40px;
  height: 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  z-index: 1000;
}

/* Responsive hamburger */
@media (max-width: 768px) {
  .hamburger {
    top: calc(1.5rem + 4px);
    right: 1.5rem;
    width: 36px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .hamburger {
    top: calc(1rem + 4px);
    right: 1rem;
    width: 36px;
    height: 28px;
    gap: 5px;
    min-width: 36px;
    min-height: 36px;
    padding: 4px;
    margin: -4px;
  }

  .hamburger-line {
    width: 32px;
    height: 2px;
  }
}

/* Diagonal white line swipe effect on hover */
.hamburger::before {
  content: "";
  position: absolute;
  top: -100%;
  right: -100%;
  width: 200%;
  height: 300%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    transparent 48.5%,
    rgba(255, 255, 255, 0.9) 49.25%,
    rgba(255, 255, 255, 0.9) 50.75%,
    transparent 51.5%,
    transparent 100%
  );
  transform: translateX(100%);
  transition: transform 2.5s ease;
  pointer-events: none;
  z-index: 10;
}

.hamburger:hover::before {
  transform: translateX(-100%);
}

body.menu-fully-open .hamburger::before {
  background: linear-gradient(
    45deg,
    transparent 0%,
    transparent 48.5%,
    rgba(0, 0, 0, 0.9) 49.25%,
    rgba(0, 0, 0, 0.9) 50.75%,
    transparent 51.5%,
    transparent 100%
  );
}

.hamburger-line {
  width: 40px;
  height: 2px;
  background-color: #fff;
  transition: background-color 1.5s ease,
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 1;
}

body.loaded .hamburger-line {
  background-color: #fff;
}

body.loaded.in-work-section:not(.menu-open) .hamburger-line {
  background-color: #fff;
}

body.loaded.in-contact-section:not(.menu-open) .hamburger-line {
  background-color: #fff;
}

body.loaded.in-about-section:not(.menu-open) .hamburger-line {
  background-color: #000;
}

body.menu-open .hamburger-line {
  background-color: #fff;
}

/* Top and Bottom lines - initially hidden */
.hamburger-line.top,
.hamburger-line.bottom {
  opacity: 0;
  transform: scaleX(0);
}

/* Middle line - initially visible but not drawn yet */
.hamburger-line.middle {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left;
  position: absolute;
}

/* Animation on page load */
.hamburger.animate .hamburger-line.middle {
  animation: drawMiddle 0.75s ease-out forwards,
    fadeOutMiddle 0.225s ease-out 0.75s forwards;
}

.hamburger.animate .hamburger-line.top {
  animation: showAndMoveTop 1.125s ease-out forwards;
  animation-delay: 0.375s;
}

.hamburger.animate .hamburger-line.bottom {
  animation: showAndMoveBottom 1.125s ease-out forwards;
  animation-delay: 0.375s;
}

/* Middle line: draw from left to right */
@keyframes drawMiddle {
  to {
    transform: scaleX(1);
  }
}

/* Middle line: fade out after drawing */
@keyframes fadeOutMiddle {
  to {
    opacity: 0;
  }
}

/* Top line: appear, move up, then back to closer position */
@keyframes showAndMoveTop {
  0% {
    opacity: 1;
    transform: scaleX(1) translateY(0);
  }
  50% {
    opacity: 1;
    transform: scaleX(1) translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) translateY(-3px);
  }
}

/* Bottom line: appear, move down, then back to closer position */
@keyframes showAndMoveBottom {
  0% {
    opacity: 1;
    transform: scaleX(1) translateY(0);
  }
  50% {
    opacity: 1;
    transform: scaleX(1) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) translateY(3px);
  }
}

/* Click animation: lines move away using transitions */
.hamburger.moving-away .hamburger-line.top {
  transform: scaleX(1) translateY(-12px) !important;
}

.hamburger.moving-away .hamburger-line.bottom {
  transform: scaleX(1) translateY(12px) !important;
}

.hamburger.moving-back .hamburger-line.top,
.hamburger.moving-back .hamburger-line.bottom {
  transform: scaleX(1) translateY(0) !important;
}

/* Converge lines into one when menu is open */
body.menu-open .hamburger-line.top,
body.menu-open .hamburger-line.bottom {
  position: absolute;
  transform: scaleX(1) translateY(0) !important;
  opacity: 1 !important;
}

/* Elastic band expanding animation when closing menu */
.hamburger.closing .hamburger-line.top,
.hamburger.closing .hamburger-line.bottom {
  transition: none !important;
}

.hamburger.closing .hamburger-line.top {
  position: absolute;
  animation: elasticExpandTop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55)
    forwards;
}

.hamburger.closing .hamburger-line.bottom {
  position: absolute;
  animation: elasticExpandBottom 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55)
    forwards;
}

@keyframes elasticExpandTop {
  0% {
    transform: scaleX(1) translateY(0);
  }
  60% {
    transform: scaleX(1) translateY(-14px);
  }
  80% {
    transform: scaleX(1) translateY(-10px);
  }
  100% {
    transform: scaleX(1) translateY(-12px);
  }
}

@keyframes elasticExpandBottom {
  0% {
    transform: scaleX(1) translateY(0);
  }
  60% {
    transform: scaleX(1) translateY(14px);
  }
  80% {
    transform: scaleX(1) translateY(10px);
  }
  100% {
    transform: scaleX(1) translateY(12px);
  }
}

/* Elastic band returning animation */
.hamburger.returning .hamburger-line.top,
.hamburger.returning .hamburger-line.bottom {
  transition: none !important;
}

.hamburger.returning .hamburger-line.top {
  position: relative;
  animation: elasticReturnTop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55)
    forwards;
}

.hamburger.returning .hamburger-line.bottom {
  position: relative;
  animation: elasticReturnBottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55)
    forwards;
}

@keyframes elasticReturnTop {
  0% {
    transform: scaleX(1) translateY(-12px);
  }
  60% {
    transform: scaleX(1) translateY(-1px);
  }
  80% {
    transform: scaleX(1) translateY(-4px);
  }
  100% {
    transform: scaleX(1) translateY(-3px);
  }
}

@keyframes elasticReturnBottom {
  0% {
    transform: scaleX(1) translateY(12px);
  }
  60% {
    transform: scaleX(1) translateY(1px);
  }
  80% {
    transform: scaleX(1) translateY(4px);
  }
  100% {
    transform: scaleX(1) translateY(3px);
  }
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.menu-overlay.active {
  pointer-events: auto;
}

.menu-overlay.active {
  transform: translateY(0);
}

.menu-items {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

/* Responsive menu items container */
@media (max-width: 768px) {
  .menu-items {
    left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .menu-items {
    left: 1rem;
  }
}

.menu-item {
  font-family: "Suisse Intl Mono Regular", monospace;
  font-size: 4.5vw;
  font-weight: normal;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-20px);
  transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
  position: relative;
}

.menu-item::before {
  content: ">";
  position: absolute;
  left: -0.8em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1em;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  -webkit-transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
  -ms-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
}

.menu-item::after {
  content: "•";
  display: inline-block;
  font-size: 0.4em;
  vertical-align: middle;
  margin-left: 0.5em;
  transition: opacity 0.3s ease;
}

.menu-item:hover {
  color: #00ab84;
}

.menu-overlay.active .menu-item {
  opacity: 1;
  transform: translateX(0);
}

.menu-overlay.active .menu-item:hover {
  transform: translateX(20px);
  color: #00ab84;
}

.menu-overlay.active .menu-item:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  -webkit-transform: translateY(-50%) translateX(0);
  -moz-transform: translateY(-50%) translateX(0);
  -ms-transform: translateY(-50%) translateX(0);
  -o-transform: translateY(-50%) translateX(0);
}

.menu-overlay.active .menu-item:hover::after {
  opacity: 0;
}

.menu-overlay.active .menu-item:nth-child(1) {
  transition-delay: 0.1s;
}

.menu-overlay.active .menu-item:nth-child(2) {
  transition-delay: 0.2s;
}

.menu-overlay.active .menu-item:nth-child(3) {
  transition-delay: 0.3s;
}

.menu-overlay.active .menu-item:nth-child(4) {
  transition-delay: 0.4s;
}

.menu-overlay.active .menu-item:nth-child(5) {
  transition-delay: 0.5s;
}

/* Two-dot animation for Archives and Contact. */
.menu-item[href="#work"]::after,
.menu-item[href="#contact"]::after {
  content: "• •";
  transition: transform 0.3s ease, opacity 0.3s ease, writing-mode 0.3s ease,
    letter-spacing 0.3s ease;
  transform-origin: center;
  display: inline-block;
  letter-spacing: 0.1em;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

/* Keep these links stationary while the dots animate. */
.menu-overlay.active .menu-item[href="#work"]:hover,
.menu-overlay.active .menu-item[href="#contact"]:hover {
  transform: translateX(0);
}

.menu-overlay.active .menu-item[href="#work"]:hover::before,
.menu-overlay.active .menu-item[href="#contact"]:hover::before {
  opacity: 0;
}

.menu-overlay.active .menu-item[href="#work"]:hover::after,
.menu-overlay.active .menu-item[href="#contact"]:hover::after {
  opacity: 1;
  writing-mode: vertical-lr;
  transform: rotate(-45deg);
  letter-spacing: 0.08em;
}

/* Hamburger z-index when menu is open */
body.menu-open .hamburger {
  z-index: 1001;
}

/* Responsive menu items */
@media (max-width: 768px) {
  .menu-item {
    font-size: 10vw;
  }
}

@media (max-width: 480px) {
  .menu-item {
    font-size: 9vw;
    line-height: 1.3;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
}

/* London Clock */
.london-clock {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  font-family: "Suisse Intl Mono Regular", monospace;
  font-size: 0.8vw;
  font-weight: normal;
  color: #000;
  z-index: 10;
  transition: color 1.125s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 2.25s;
}

body.loaded .london-clock {
  color: #fff;
}

@media (max-width: 768px) {
  .london-clock {
    font-size: 2.5vw;
  }
}

/* Hero Text */
.hero-container {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.9;
  z-index: 10;
}

/* Responsive hero container */
@media (max-width: 768px) {
  .hero-container {
    left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-container {
    left: 1rem;
    padding-right: 1rem;
  }
}

.hero-text {
  font-family: "Suisse Intl Mono Regular", monospace;
  font-size: 4.5vw;
  font-weight: normal;
  color: #000;
  text-align: left;
  overflow: hidden;
  padding-block: 0.12em;
  transition: color 1.125s ease;
  margin: -0.12em 0 0;
}

.hero-text > span {
  display: block;
  transform: translateY(175%) rotate(5deg);
  transform-origin: left bottom;
  animation: heroReveal 0.9s cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-delay: inherit;
}

@keyframes heroReveal {
  to {
    transform: translateY(0) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text > span {
    animation: none;
    transform: none;
  }
}

body.loaded .hero-text {
  color: #fff;
}

.hero-text:nth-child(1) {
  animation-delay: 1.65s;
}

.hero-text:nth-child(2) {
  animation-delay: 1.8s;
}

.hero-text:nth-child(3) {
  animation-delay: 1.95s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive text size */

@media (max-width: 768px) {
  .hero-text {
    font-size: 7.5vw;
    line-height: 0.95;
  }
}

@media (max-width: 480px) {
  .hero-text {
    font-size: 10vw !important;
    line-height: 1 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Tagline */
.tagline {
  font-family: "Suisse Intl Mono Regular", monospace;
  font-size: 0.96vw;
  line-height: 1.5;
  font-weight: normal;
  color: #000;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  transition: color 1.125s ease;
  margin-top: 5em;
  letter-spacing: 0.05em;
}

body.loaded .tagline {
  color: #fff;
}

.tagline {
  animation-delay: 2.1s;
}

/* Responsive tagline */
@media (max-width: 768px) {
  .tagline {
    font-size: 1.6vw;
    margin-top: 5em;
  }
}

@media (max-width: 480px) {
  .tagline {
    font-size: 3.2vw;
    margin-top: 5em;
    letter-spacing: 0.03em;
    max-width: 60%;
    line-height: 1.5;
  }
}

/* Responsive London Clock */
@media (max-width: 768px) {
  .london-clock {
    font-size: 1.5vw;
    bottom: 1.5rem;
    left: 1.5rem;
  }
}

@media (max-width: 576px) {
  .london-clock {
    font-size: 2.5vw;
  }
}

@media (max-width: 480px) {
  .london-clock {
    font-size: 3.2vw;
    bottom: 1rem;
    left: 1rem;
  }
}

/* Work Section */
.work-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2rem;
  padding-right: 2rem;
  background-color: #000;
  will-change: transform;
  overflow: hidden;
}

/* Rainbow circle effect */
.rainbow-circle {
  width: 20px;
  height: 20px;
  border-radius: 40%;
  opacity: 0;
  margin: -19px auto;
  transition: transform 1s cubic-bezier(0.14, 0.15, 0.13, 0.99);
  position: absolute;
  pointer-events: none;
}

/* Responsive work section */
@media (max-width: 768px) {
  .work-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    height: auto;
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .work-section {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    height: auto;
    min-height: auto;
    transform: none !important;
  }
}

.work-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
  position: relative;
  z-index: 10;
}

.work-heading {
  font-family: "Inter Tight", sans-serif;
  font-size: 7.56vw;
  font-weight: 600;
  color: #fff;
  text-align: left;
  margin-bottom: 2rem;
  opacity: 1;
  transform: none;
}

.work-heading-mask {
  display: inline-block;
  perspective: 2000px;
  clip-path: polygon(-10% 0, 110% 0, 110% 120%, -10% 120%);
}

.work-heading-char {
  display: inline-block;
  transform-origin: 50% 100%;
  transform: translateY(90%) rotateX(90deg);
}

.work-heading.is-revealed .work-heading-char {
  animation: archivesReveal 1.4s cubic-bezier(0.63, 0, 0, 1) both;
  animation-delay: calc(var(--char-index) * 25ms);
}

@keyframes archivesReveal {
  to {
    transform: translateY(0) rotateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-heading .work-heading-char {
    animation: none;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .work-heading {
    font-size: 8.64vw;
  }
}

.work-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
  perspective: 1000px;
}

.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
  overflow: visible;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translate3d(0, 60px, 0);
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.work-card:hover {
  box-shadow: none;
}

.work-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #1a1a1a;
  position: relative;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.work-card-content {
  padding: 0.5rem 0 0 0;
}

.work-card-client {
  font-family: "Inter Tight", sans-serif;
  font-size: 0.972rem;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0rem;
  letter-spacing: -0.02em;
}

.work-card-description {
  font-family: "Inter Tight", sans-serif;
  font-size: 0.855rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.work-item {
  font-family: "Inter Tight", sans-serif;
  font-size: 4.1vw;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: left;
  opacity: 0;
  transform: translate3d(3.3333rem, 0, 0);
  will-change: transform, opacity;
  line-height: normal;
}

/* Responsive work */
@media (max-width: 768px) {
  .work-heading {
    font-size: 18.9vw;
    margin-bottom: 1.5rem;
    white-space: nowrap;
  }
  .work-item {
    font-size: 11vw;
    transform: translate3d(2rem, 0, 0);
  }

  .work-cards {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .work-card {
    opacity: 1;
    transform: translate3d(0, 0, 0) !important;
  }

  .work-card-image {
    height: 220px;
  }

  .work-card-content {
    padding: 0.5rem 0 0 0;
  }

  .work-card-client {
    font-size: 0.891rem;
  }

  .work-card-description {
    font-size: 0.81rem;
  }
}

@media (max-width: 480px) {
  .work-heading {
    font-size: 18vw;
    margin-bottom: 1.2rem;
  }
  .work-item {
    font-size: 10vw;
    line-height: 1.1;
    transform: translate3d(1.5rem, 0, 0);
  }

  .work-cards {
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  .work-card-image {
    height: 200px;
  }

  .work-card-content {
    padding: 0.5rem 0 0 0;
  }

  .work-card-client {
    font-size: 0.81rem;
    margin-bottom: 0;
  }

  .work-card-description {
    font-size: 0.765rem;
  }
}

/* Services Section */
.services-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2rem;
  padding-right: 2rem;
  background-color: #000;
  will-change: transform;
}

/* Responsive services section */
@media (max-width: 768px) {
  .services-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    height: 100vh;
    min-height: 100vh;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 480px) {
  .services-section {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    height: 100vh;
    min-height: 100vh;
  }
}

.services-container {
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 10;
}

.services-heading {
  font-family: "Suisse Intl Mono Regular", monospace;
  font-size: 5.6vw;
  line-height: 0.9;
  font-weight: 600;
  color: #fff;
  text-align: left;
  margin-bottom: 3rem;
  opacity: 1;
  transform: none;
  will-change: transform, opacity;
}

.services-line-mask {
  display: block;
  clip-path: polygon(-10% 0, 110% 0, 110% 120%, -10% 120%);
}

.services-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .services-heading {
    font-size: 6.4vw;
  }
}

.services-list {
  width: 100%;
  list-style: none;
}

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 0.5rem 0;
  font-family: "Suisse Intl Mono Regular", monospace;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: break-word;
  transition: opacity 0.25s cubic-bezier(0.53, 0, 0, 1);
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: #ffffff51;
  transform-origin: left;
}

.service-item > span {
  position: relative;
  display: block;
}

.services-container.is-reveal-ready .service-item:not(.is-inview) > span {
  opacity: 0;
}

.is-scrambling .service-label-original {
  color: transparent;
}

.service-scramble {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.services-container.is-reveal-ready .service-item::before {
  scale: 0 1;
}

.services-container.is-reveal-ready .service-item.is-inview::before {
  transition: scale 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  scale: 1;
}

@media (hover: hover) {
  .services-list:has(.service-item:hover) .service-item:not(:hover) {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-container.is-reveal-ready .service-item:not(.is-inview) > span {
    opacity: 1;
  }

  .services-container.is-reveal-ready .service-item::before {
    scale: 1;
    transition: none;
  }
}

/* Responsive services */
@media (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .services-heading {
    font-size: 12.8vw;
    margin-bottom: 3rem;
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .service-item {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .services-heading {
    font-size: 12.8vw;
    margin-bottom: 3rem;
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  .service-item {
    font-size: 0.7rem;
    gap: 0.5rem;
    padding-block: 0.6rem;
  }
}

/* About Section */
.about-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #000;
  will-change: transform;
}

/* Responsive about section */
@media (max-width: 768px) {
  .about-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    height: auto;
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    height: auto;
    min-height: auto;
  }
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
  position: relative;
  z-index: 10;
}

.about-heading {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.4vw;
  font-weight: 600;
  color: #f46c04;
  text-align: left;
  margin-bottom: 4rem;
}

/* About Content Grid */
.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  margin-bottom: 5rem;
  align-items: start;
}

/* About Story Section */
.about-intro {
  margin: 0;
  font-family: "Inter Tight", sans-serif;
  font-size: 1.5rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.85);
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.about-content-grid > .team-faces {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
  margin-top: 4rem;
}

.portrait-pixel-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  image-rendering: pixelated;
  pointer-events: none;
}

.team-faces {
  display: flex;
  gap: 2rem;
}

.team-face-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-member-name,
.team-member-role {
  text-align: left;
}

.about-story-heading {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.8vw;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.about-story-text {
  width: 100%;
  align-self: flex-end;
  font-family: "Inter Tight", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.85);
  line-height: 1.4;
  margin: 0;
  margin-bottom: 2rem;
}

/* About Values Section */
.about-values {
  display: flex;
  flex-direction: column;
}

.about-values-heading {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.8vw;
  font-weight: 600;
  color: #000;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.about-value-item {
}

@media (min-width: 769px) {
  .about-value-item {
    opacity: 0;
    transform: translateY(40px);
  }
}

.about-value-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 0;
  cursor: pointer;
  user-select: none;
}

.about-value-number {
  font-family: "Suisse Intl Mono Regular", monospace;
  font-size: 1vw;
  font-weight: normal;
  color: rgba(0, 0, 0, 0.4);
  min-width: 2.5rem;
  flex-shrink: 0;
}

.about-value-title {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.3vw;
  font-weight: 600;
  color: #000;
  margin: 0;
  letter-spacing: -0.01em;
  flex: 1;
  text-transform: lowercase;
}

.about-value-plus {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.about-value-plus::before,
.about-value-plus::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1px;
  background: #000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-value-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.about-value-item.open .about-value-plus {
  transform: rotate(45deg);
}

.about-value-body {
  overflow: hidden;
  height: 0;
  padding-left: 0;
}

.about-value-description {
  font-family: "Inter Tight", sans-serif;
  font-size: 12pt;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.6;
  margin: 0;
  padding-bottom: 1.1rem;
}

/* Approach Section */
.approach-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2rem;
  padding-right: 2rem;
  background-color: #ff6b00;
  will-change: transform;
}

/* Responsive approach section */
@media (max-width: 768px) {
  .approach-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    height: auto;
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 480px) {
  .approach-section {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    height: auto;
    min-height: auto;
  }
}

.approach-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  position: relative;
  z-index: 10;
}

.approach-heading {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.4vw;
  font-weight: 600;
  color: #fff;
  text-align: left;
  margin-bottom: 2rem;
}

/* Marquee Container */
.marquee-container {
  width: 100%;
  margin-top: 3rem;
}

/* Marquee Styles from keep-scrollin */
.marquee {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: clamp(2.7rem, 2.184rem + 2.574vw, 5.4rem);
  font-weight: 600;
  height: calc(102px + 0.6rem);
  overflow: hidden;
  position: relative;
  width: 100%;
  /* Ensure content is visible during transforms */
  contain: layout style paint;
}

.marquee .track {
  height: 100%;
  overflow: hidden;
  padding: 1.2rem 0;
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  min-width: 300vw;
  /* Firefox-specific rendering fixes */
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Firefox-specific fix for empty marquee lines */
@-moz-document url-prefix() {
  .marquee .track {
    min-width: 400vw;
  }
}

.marquee .-focus {
  color: #1a1a1a;
  font-weight: 600;
}

/* Approach text masked lines animation (matching masked-lines-with-splittext) */
.approach-line-wrapper {
  overflow: hidden;
  display: block;
  line-height: inherit;
}

.approach-line-text {
  display: block;
  will-change: transform;
}

@media (max-width: 1024px) {
  .approach-line-text {
    font-size: 1.6vw;
  }
}

@media (max-width: 768px) {
  .approach-line-text {
    font-size: 3.5vw;
  }
}

@media (max-width: 480px) {
  .approach-line-text {
    font-size: 5vw;
  }
}

.about-item {
  font-family: "Inter Tight", sans-serif;
  text-align: left;
  margin-bottom: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.about-item-title {
  font-size: 4.1vw;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: normal;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.about-item-description {
  font-size: 1.2vw;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 60%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive about */
@media (max-width: 768px) {
  .about-heading {
    font-size: 3.5vw;
    margin-bottom: 2.5rem;
  }

  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }

  .about-story-heading,
  .about-values-heading {
    font-size: 1.6rem;
  }

  .about-story-text {
    width: 100%;
    font-size: 1.5rem;
  }

  .about-value-number {
    font-size: 0.95rem;
    min-width: 3rem;
  }

  .about-value-title {
    font-size: 1.2rem;
  }

  .about-value-description {
    font-size: 1rem;
  }

  .approach-heading {
    font-size: 4.5vw;
    margin-bottom: 1.5rem;
  }

  .about-item {
    margin-bottom: 0.5rem;
  }
  .about-item-title {
    font-size: 11vw;
    margin-bottom: 0.4rem;
    line-height: 1.1;
  }
  .about-item-description {
    font-size: 4vw;
    max-width: 100%;
    line-height: 1.5;
  }

  .marquee-container {
    margin-top: 2rem;
  }

  .marquee {
    height: calc(80px + 0.6rem);
  }

  .marquee .track {
    padding: 1rem 0;
  }
}

@media (max-width: 480px) {
  .about-container {
    padding: 0;
  }

  .about-heading {
    font-size: 5vw;
    margin-bottom: 2rem;
  }

  .about-content-grid {
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .about-story {
    gap: 1rem;
  }

  .about-story-heading,
  .about-values-heading {
    font-size: 5vw;
  }

  .about-story-text {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 3rem;
  }

  .about-value-number {
    font-size: 3.5vw;
    min-width: 2.5rem;
  }

  .about-value-title {
    font-size: 4.5vw;
  }

  .about-value-description {
    font-size: 3.8vw;
    line-height: 1.5;
  }

  .approach-heading {
    font-size: 5vw;
    margin-bottom: 1.2rem;
  }

  .about-item {
    margin-bottom: 0.4rem;
  }
  .about-item-title {
    font-size: 7.2vw;
    margin-bottom: 0.3rem;
    line-height: 1.1;
  }
  .about-item-description {
    font-size: 4.2vw;
    max-width: 100%;
    line-height: 1.5;
  }

  .marquee-container {
    margin-top: 1.5rem;
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .marquee {
    height: calc(60px + 0.6rem);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .marquee .track {
    padding: 0.8rem 0;
  }
}

/* Contact Section */
.contact-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #000;
  overflow: hidden;
}

/* Text selection effect for contact section */
.contact-section ::selection {
  background-color: #fff;
  color: #000;
}

.contact-section ::-moz-selection {
  background-color: #fff;
  color: #000;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
  position: relative;
  z-index: 10;
}

.contact-heading-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: inline-block;
}

.contact-heading {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.4vw;
  font-weight: 600;
  color: #fff;
  text-align: left;
  margin-bottom: 5rem;
}

/* Shuffle button styling for contact heading */
.contact-heading.shuffle-button {
  display: inline-flex;
  padding: 0 0 0.4em;
  overflow: hidden;
  position: relative;
  align-items: center;
  line-height: 1.3;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Keep first letter capitalized */
.contact-heading .char-uppercase {
  text-transform: uppercase;
}

/* Text container */
.contact-heading .text-container {
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Each line of text */
.contact-heading .text-line {
  line-height: 1.5;
  display: flex;
}

/* Position the duplicate lines absolutely */
.contact-heading .text-line:nth-child(2) {
  bottom: 100%;
  position: absolute;
}

.contact-heading .text-line:nth-child(3) {
  bottom: 200%;
  position: absolute;
}

/* Individual character styling */
.contact-heading .char {
  display: inline-block;
  white-space: pre;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hover animation - move all text down by 100% */
.contact-heading.shuffle-button:hover .text-line:nth-child(1) .char {
  transform: translate3d(0, 100%, 0);
}

.contact-heading.shuffle-button:hover .text-line:nth-child(2) .char {
  transform: translate3d(0, 100%, 0);
}

.contact-heading.shuffle-button:hover .text-line:nth-child(3) .char {
  transform: translate3d(0, 100%, 0);
}

/* Keep "e", "s", "a" static (positions 2, 5, 8) */
.contact-heading.shuffle-button:hover .text-line .char:nth-child(2),
.contact-heading.shuffle-button:hover .text-line .char:nth-child(5),
.contact-heading.shuffle-button:hover .text-line .char:nth-child(8) {
  transform: translate3d(0, 0, 0);
}

/* Different speeds and delays for each character */
.contact-heading .char:nth-child(1) {
  transition-delay: 0.02s;
  transition-duration: 0.9s;
}
.contact-heading .char:nth-child(2) {
  transition-delay: 0.04s;
  transition-duration: 0.5s;
}
.contact-heading .char:nth-child(3) {
  transition-delay: 0.06s;
  transition-duration: 0.4s;
}
.contact-heading .char:nth-child(4) {
  transition-delay: 0.08s;
  transition-duration: 1.1s;
}
.contact-heading .char:nth-child(5) {
  transition-delay: 0.1s;
  transition-duration: 0.6s;
}
.contact-heading .char:nth-child(6) {
  transition-delay: 0.12s;
  transition-duration: 0.3s;
}
.contact-heading .char:nth-child(7) {
  transition-delay: 0.14s;
  transition-duration: 0.7s;
}
.contact-heading .char:nth-child(8) {
  transition-delay: 0.16s;
  transition-duration: 0.5s;
}
.contact-heading .char:nth-child(9) {
  transition-delay: 0.18s;
  transition-duration: 0.8s;
}
.contact-heading .char:nth-child(10) {
  transition-delay: 0.2s;
  transition-duration: 0.5s;
}

.contact-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .contact-content {
    gap: 30rem;
  }
}

.contact-description {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.2vw;
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  opacity: 0.9;
}

.contact-description p {
  margin: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-email {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.3vw;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: normal;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.contact-email::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: width 0.4s ease;
}

.contact-email:hover {
  color: #00ab84;
}

.contact-email:hover::after {
  width: 100%;
}

.contact-address {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.1vw;
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

/* Responsive contact section */
@media (max-width: 1024px) {
  .contact-heading {
    font-size: 1.6vw;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .contact-heading {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .contact-heading.shuffle-button {
    font-size: 1.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-container {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .contact-description {
    font-size: 1.05rem;
  }

  .contact-email {
    font-size: 1.2rem;
  }

  .contact-address {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .contact-heading {
    font-size: 5vw;
    margin-bottom: 1.5rem;
  }

  .contact-heading.shuffle-button {
    font-size: 5vw;
  }

  .contact-content {
    gap: 1.5rem;
  }

  .contact-description {
    font-size: 4.5vw;
  }

  .contact-email {
    font-size: 4.2vw;
    line-height: 1.2;
  }

  .contact-address {
    font-size: 4vw;
  }
}

body.carousel-open .hamburger {
  opacity: 0;
  pointer-events: none;
}

/* ── Project carousel overlays ───────────────────────────────────── */
.xuzhi-carousel,
.wontonmeen-carousel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.xuzhi-carousel.open,
.wontonmeen-carousel.open {
  opacity: 1;
  pointer-events: all;
}

.xuzhi-carousel-content,
.wontonmeen-carousel-content {
  position: relative;
  width: 80%;
  display: flex;
  flex-direction: column;
}

.xuzhi-carousel-slides,
.wontonmeen-carousel-slides {
  display: grid;
  width: 100%;
  max-height: 78vh;
  overflow: hidden;
}

.xuzhi-carousel-slide,
.wontonmeen-carousel-slide {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
  user-select: none;
}

.xuzhi-carousel-slide.active,
.wontonmeen-carousel-slide.active {
  opacity: 1;
}

.xuzhi-carousel-info,
.wontonmeen-carousel-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 0.625rem;
  gap: 2rem;
}

.xuzhi-carousel-description,
.wontonmeen-carousel-description {
  font-family: "Suisse Intl Mono Regular", monospace;
  font-size: 0.7rem;
  color: #aaaaaa;
  opacity: 1;
  line-height: 1.7;
  max-width: 55%;
}

.wontonmeen-carousel-description {
  line-height: 1.7;
}

.xuzhi-carousel-close,
.wontonmeen-carousel-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 301;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.6;
  transition: opacity 0.6s ease;
  transform: rotate(-135deg);
}

.xuzhi-carousel-close::before,
.xuzhi-carousel-close::after,
.wontonmeen-carousel-close::before,
.wontonmeen-carousel-close::after {
  content: "";
  position: absolute;
  width: 1.155rem;
  height: 1px;
  background-color: #fff;
  top: 50%;
  left: 50%;
}

.xuzhi-carousel-close::before,
.wontonmeen-carousel-close::before {
  transform: translate(-50%, -50%);
}

.xuzhi-carousel-close::after,
.wontonmeen-carousel-close::after {
  transform: translate(-50%, -50%) rotate(-90deg);
}

.xuzhi-carousel-close:hover,
.wontonmeen-carousel-close:hover {
  opacity: 1;
}

.xuzhi-carousel-prev,
.xuzhi-carousel-next,
.wontonmeen-carousel-prev,
.wontonmeen-carousel-next {
  position: absolute;
  top: calc(78vh / 2);
  transform: translateY(-50%);
  z-index: 301;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2rem 2.5rem;
  opacity: 0.5;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
}

.xuzhi-carousel-prev:hover,
.xuzhi-carousel-next:hover,
.wontonmeen-carousel-prev:hover,
.wontonmeen-carousel-next:hover {
  opacity: 1;
}

.xuzhi-carousel-prev,
.wontonmeen-carousel-prev {
  left: -5rem;
}

.xuzhi-carousel-next,
.wontonmeen-carousel-next {
  right: -5rem;
}

.xuzhi-carousel-counter,
.wontonmeen-carousel-counter {
  color: #fff;
  font-family: "Suisse Intl Mono Regular", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0.5;
  pointer-events: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.wontonmeen-carousel-content {
  width: 64%;
}

@media (max-width: 768px) {
  .wontonmeen-carousel-content {
    width: 80%;
  }
}

.wontonmeen-carousel-slides {
  height: 70vh;
}

.wontonmeen-carousel-slide {
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.wontonmeen-carousel-slide:nth-child(1),
.wontonmeen-carousel-slide:nth-child(2) {
  height: auto;
  object-fit: unset;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .wontonmeen-carousel-slide:nth-child(1),
  .wontonmeen-carousel-slide:nth-child(2) {
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
  }
}

@media (min-width: 769px) {
  .wontonmeen-carousel-slide:nth-child(1).active,
  .wontonmeen-carousel-slide:nth-child(2).active {
    animation: wtm-pan-down 5s ease-in-out forwards;
  }
}

@keyframes wtm-pan-down {
  0%   { transform: translateY(0); }
  100% { transform: translateY(calc(-100% + 70vh)); }
}

/* ---- Sound Cursor Label ---- */
.sound-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10002;
  will-change: transform;
}

.sound-cursor__text {
  position: relative;
  top: 18px;
  left: 18px;
  color: #ffffff;
  font-family: "Inter Tight", sans-serif;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.1;
  opacity: 0;
  will-change: opacity, transform;
  transition: color 0.5s ease;
}

body.in-about-section .sound-cursor__text {
  color: #000000;
}

/* ---- Sound Toggle ---- */
.sound-wrapper {
  position: fixed;
  bottom: 2rem;
  right: calc(2rem - 6px);
  padding: 0;
  z-index: 1001;
}

@media (max-width: 768px) {
  .sound-wrapper {
    bottom: 1.5rem;
    right: calc(1.5rem - 6px);
  }
}

@media (max-width: 480px) {
  .sound-wrapper {
    bottom: 1rem;
    right: calc(1rem - 6px);
  }
}

.sound-btn {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  user-select: none;
  --sound-color: #ffffff;
}

body.in-about-section .sound-btn {
  --sound-color: #000000;
}

.sound-text-area {
  margin-right: 30px;
  opacity: 0;
  will-change: opacity;
  position: relative;
}

.sound-lbl {
  color: var(--sound-color);
  font-family: "Suisse Intl Mono Regular", monospace;
  font-size: 0.8vw;
  font-weight: normal;
  line-height: 1.1;
  white-space: nowrap;
  display: block;
  will-change: transform, opacity;
  transition: color 0.5s ease;
}

@media (max-width: 768px) {
  .sound-lbl { font-size: 1.5vw; }
}

@media (max-width: 576px) {
  .sound-lbl { font-size: 2.5vw; }
}

@media (max-width: 480px) {
  .sound-lbl { font-size: 3.2vw; }
}

.sound-lbl--on {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.sound-icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  will-change: transform;
}

.sound-dot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-dot__core {
  background: var(--sound-color);
  border-radius: 50%;
  height: 4px;
  width: 4px;
  will-change: transform;
  transition: background 0.5s ease;
}

/* Index Studio-inspired About entrance: expand from the right edge. */
.about-section.about-swipe-ready {
  background-color: #000;
  isolation: isolate;
}

.about-swipe-ready::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f3f3f3;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.about-swipe-ready .about-container {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1) 0.3s;
}

.about-swipe-visible::before {
  transform: scaleX(1);
}

.about-swipe-visible .about-container {
  clip-path: inset(0);
}

.about-swipe-ready .team-faces {
  visibility: hidden;
}

.about-swipe-visible .team-faces {
  visibility: visible;
  transition: visibility 0s linear 1.3s;
}

@media (prefers-reduced-motion: reduce) {
  .about-section {
    background-color: #f3f3f3;
  }

  .about-swipe-ready::before {
    transform: none;
    transition: none;
  }
  .about-swipe-ready .about-container {
    clip-path: none;
    transition: none;
  }
  .about-swipe-ready .team-faces {
    visibility: visible;
    transition: none;
  }
}

.about-text-mask {
  display: block;
  overflow: hidden;
}

.about-text-line {
  display: block;
  transform: translateY(125%);
}

.about-text-visible .about-text-line {
  animation: aboutTextReveal 1.5s cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-delay: calc(var(--column-delay, 0.8s) + var(--line-index) * 0.1s);
}

.about-intro { --column-delay: 0s; }
.about-story-text { --column-delay: 0s; }

@keyframes aboutTextReveal {
  to { transform: translateY(0); }
}

.about-text-resizing .about-text-line {
  animation: none;
  transform: none;
}

.site-footer {
  padding: 1rem 2rem 2rem;
  background: #f3f3f3;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-link {
  color: #111;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.875rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.footer-link > span {
  display: inline-block;
  transition: color 0.2s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--leave-order) * 0.05s);
}

.footer-link:is(:hover, :focus-visible) > span {
  color: #f46c04;
  transition-delay: calc(var(--hover-order) * 0.05s);
}

.footer-link:focus-visible {
  outline: 1px solid #0A0A83;
  outline-offset: 6px;
}

@media (max-width: 768px) {
  .site-footer { padding-inline: 1.5rem; }
}

@media (max-width: 480px) {
  .site-footer { padding: 1rem 1rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .about-text-line { animation: none; transform: none; }
  .footer-link > span { transition: none; }
}
