html,
body {
  width: 100%;
}

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(0);
  -webkit-transform: translateY(0);
}

#global-hero {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  pointer-events: none;

  transform: none !important;
  transition: none !important;
  animation: none !important;

  will-change: auto;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  contain: layout style paint;
}

/* #global-hero, */

 #global-hero  {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;
} 

html {
  scroll-behavior: auto !important;
}

body {
  overflow-x: hidden;
}

/* homr */
.slide {
  transition: transform 0.75s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.serif {
  font-family: "Merriweather", serif;
}

.hero-panel {
  position: relative;
}

/* CARDS */
/* Initial state for all cards */
.card {
  transform: scale(1.4);
  opacity: 0;
  transition:
    transform 1.9s ease-out,
    opacity 1.9s ease-in-out;
}

.card.visible {
  transform: scale(1);
  opacity: 1;
}

#tc-left,
#tc-center,
#tc-right {
  transition: opacity 0.4s ease !important;
}

.hero-bg,
.hero-content,
.hero-overlay,
.hero-scroll {
  will-change: transform, opacity;
}
.reveal-card {
  opacity: 1;
  transform: none;
}
/* Smooth fade animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(10px);
}

.fade-up-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 5s ease;
}

/* Scroll indicator */
@keyframes scrollMerge {
  /* START */
  0% {
    transform: translateY(0px) scale(1);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  /* COMPLETE ANIMATION WITHIN 1s */
  33% {
    transform: translateY(-22px) scale(1);
    opacity: 1;
  }

  40% {
    transform: translateY(-26px) scale(0.2);
    opacity: 0;
  }

  /* ðŸ”¥ HOLD / WAIT STATE */
  100% {
    transform: translateY(-26px) scale(0.2);
    opacity: 0;
  }
}

.animate-scrollMerge {
  animation: scrollMerge 3s ease-in-out infinite;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scrollMove {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  #transition-cards .tc-card {
    width: 100%;
    border: 1px solid rgba(194, 163, 107, 0.35);
    border-radius: 16px;
    overflow: hidden;
    transition:
      border-color 0.4s ease,
      box-shadow 0.4s ease;
    background: #1e1e1e;
    margin: 4px 0;
  }

  #transition-cards .tc-card.active {
    border-color: #c2a36b;
    box-shadow: 0 0 0 1px rgba(194, 163, 107, 0.25);
  }

  #transition-cards .tc-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #transition-cards .tc-card.active .tc-title-row {
    padding: 20px 20px 8px;
  }

  #transition-cards .tc-chevron {
    color: #c2a36b;
    font-size: 14px;
    opacity: 0.5;
    transition:
      transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.4s ease;
  }

  #transition-cards .tc-card.active .tc-chevron {
    transform: rotate(180deg);
    opacity: 1;
  }

  #transition-cards .tc-expanded-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition:
      max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.4s ease 0.1s,
      padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #transition-cards .tc-card.active .tc-expanded-content {
    max-height: 300px;
    opacity: 1;
    padding: 0 24px 24px;
  }

  /* Hide the decorators on mobile */
  #transition-cards > img {
    display: none;
  }

  /* Icon shrink on mobile */
  #transition-cards .tc-expanded-content img {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }
}

/* JOURNEY - Cards-  */

#journeySection {
  position: relative;
  z-index: 20;
}

.journey-card-shell {
  background: #f5f1ea;

  border-top-left-radius: 42px;
  border-top-right-radius: 42px;

  box-shadow:
    0 -10px 40px rgba(0, 0, 0, 0.08),
    0 -2px 10px rgba(0, 0, 0, 0.04);

  overflow: visible;
}

.journey-card {
  background: #fffaf0;
  border: 2px solid rgba(194, 163, 107, 0.35);
  border-radius: 28px;
  padding: 38px 42px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  width: 100%;
}

/* hover */
.journey-card:hover {
  transform: translateY(-6px);
  border-color: #c2a36b;
  box-shadow: 0 20px 50px rgba(194, 164, 107, 0.18);
}
.journey-top {
  width: 100%;
  padding-bottom: 0;
}

.journey-title {
  font-size: 32px;
  padding-bottom: 20px;
  line-height: 1.2;
  color: #2b2b2b;
  text-align: center;
  max-width: 100%;
}

/* MIDDLE: image | divider | content */
.journey-middle {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 220px;
}

/* LEFT image */
.journey-image-wrap {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 32px;
}

.journey-image {
  width: 100%;
  max-width: 150px;
  opacity: 0.9;
  object-fit: contain;
}

/* VERTICAL DIVIDER */
.journey-divider {
  width: 1.5px;
  background: rgba(194, 163, 107, 0.35);
  align-self: stretch;
  flex-shrink: 0;
}

/* RIGHT content */
.journey-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 36px;
}
@media (max-width: 768px) {
  .journey-content {
    padding-left: 10px;
  }
}

.journey-desc {
  font-size: 18px;
  line-height: 1.9;
  color: #89743a;
  text-align: left;
}

/* FOOTER inside right column */
.journey-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.journey-link {
  font-size: 15px;
  color: #c2a36b;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: gap 0.3s ease;
  display: flex;
  gap: 6px;
}

.journey-link:hover span {
  transform: translateX(4px);
  transition: transform 0.3s ease;
}

/* STACK — cards peek from top-right */
.cards-stack {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.stack-item {
  position: sticky;
  top: calc(95px + var(--i) * 14px);
  z-index: calc(20 + var(--i));
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* peek from top-right */
.stack-item:nth-child(1) .journey-card {
  transform: translateX(0px) translateY(0px) scale(1);
}

.stack-item:nth-child(2) .journey-card {
  transform: translateX(8px) translateY(8px) scale(0.992);
}

.stack-item:nth-child(3) .journey-card {
  transform: translateX(16px) translateY(16px) scale(0.984);
}

/* .meow {
  margin-top: 0;
  height: auto;
} */

/* MOBILE */
@media (max-width: 768px) {
  .journey-card {
    padding: 28px 24px;
    gap: 24px;
  }

  .journey-middle {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .journey-title {
    font-size: 24px;
    max-width: 100%;
  }

  .journey-image-wrap {
    width: 100%;
    /* justify-content: flex-start; */
  }

  .journey-image {
    max-width: 110px;
  }

  .journey-desc {
    font-size: 14px;
    max-width: 100%;
  }
}

/* LIVING ROOM */

.slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  z-index: 1;

  transform: translateX(100%);

  backface-visibility: hidden;

  background: #000;
}
.slide-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  will-change: transform;

  transform: scale(1.12);

  backface-visibility: hidden;
}
.slide.active {
  transform: translateX(0%);
  z-index: 3;
}
.thumb-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px; /* â†“ from 12px */
  border-radius: 10px; /* â†“ from 40px */
  display: flex;
  flex-direction: column;
  gap: 8px; /* â†“ from 12px */
  cursor: pointer !important;
}

.thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  cursor: pointer !important;
  /* opacity: 0.6; */
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumb.active {
  /* opacity: 0.5; */
  border-color: #c2a36b;
  transform: scale(1.08);
}

.thumb:hover {
  opacity: 1;
}
#slider {
  cursor: none;
}
#slider .thumb,
.thumb-container,
.thumb-container * {
  cursor: pointer !important;
}
#dragCursor {
  position: fixed;

  top: 0;
  left: 0;

  width: 120px;
  height: 160px;

  z-index: 999999999999;

  pointer-events: none;

  opacity: 0;

  transform: translate(-50%, -50%);

  transition:
    opacity 0.25s ease,
    transform 0.2s ease;
}

#dragCursor img {
  width: 150%;
  height: 150%;
  object-fit: contain;

  display: block;
}

#dragCursor.active {
  opacity: 1;
}

#dragCursor.dragging {
  transform: translate(-50%, -50%) scale(1.08);
}
.bottom-overlay {
  position: absolute;
  inset: 0;

  z-index: 10;
  pointer-events: none;

  background:
    /* BOTTOM LEFT */
    radial-gradient(
      circle at bottom left,
      rgba(0, 0, 0, 0.63) 18%,
      rgba(0, 0, 0, 0.38) 29%,
      rgba(0, 0, 0, 0) 48%
    ),
    /* BOTTOM RIGHT */
    radial-gradient(
        circle at bottom right,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.32) 22%,
        rgba(0, 0, 0, 0) 48%
      );
}
/* CREATION */ /* WHAT WE CREATE */
.wc-title,
.wc-heading,
.wc-divider {
  will-change: transform, opacity, filter;
}

.wc-step {
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  cursor: default;
  opacity: 0;
  transform: translateY(60px);
}

.wc-step img,
.wc-step p {
  will-change: transform, opacity, filter;
}

/* Gallery grid */

.signature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, 120px);
  gap: 18px;
}

/* GALLERY ITEMS  */

.signature-grid .item {
  position: relative;
  overflow: hidden;
  cursor: pointer;

  opacity: 0;

  will-change: transform, opacity, filter;

  transform-origin: center center;

  transition:
    transform 2.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 2.4s cubic-bezier(0.22, 1, 0.36, 1);

  filter: blur(4px);
}

/* IMAGE */

.signature-grid .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 2.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* idd b 2 t */

.signature-grid .item:nth-child(even) {
  transform: translate3d(0, 140px, 0) scale(0.94);
}

/* even t 2 b */

.signature-grid .item:nth-child(odd) {
  transform: translate3d(0, -140px, 0) scale(0.94);
}
/* OVERLAY  */

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(14px, 2vw, 30px);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.42) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* CONTENT  */

.gallery-content {
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: left;
  width: 100%;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
/* TITLE */

.gallery-title {
  color: #fff;

  font-size: clamp(16px, 1.8vw, 28px);

  line-height: 1.1;

  font-family: serif;

  margin-bottom: 12px;

  opacity: 0;

  transform: translateY(20px);

  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* DIVIDER */

.gallery-divider {
  width: 0;

  height: 1px;

  background: #c2a36b;

  margin-bottom: 12px;

  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* SUBTITLE */

.gallery-subtitle {
  color: rgba(255, 255, 255, 0.82);

  font-size: clamp(11px, 0.9vw, 14px);

  line-height: 1.4;

  letter-spacing: 0.5px;

  opacity: 0;

  transform: translateY(20px);

  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* HOVER  */

.signature-grid .item:hover img {
  transform: scale(1.08);
}

.signature-grid .item:hover .gallery-overlay {
  opacity: 1;
}

.signature-grid .item:hover .gallery-content {
  transform: translateY(0);
}

.signature-grid .item:hover .gallery-title {
  opacity: 1;
  transform: translateY(0);
}

.signature-grid .item:hover .gallery-divider {
  width: 90px;
}

.signature-grid .item:hover .gallery-subtitle {
  opacity: 1;
  transform: translateY(0);
}
/* ACTIVE STATE */

.signature-grid .item.gallery-reveal {
  opacity: 1;

  transform: translate3d(0, 0, 0) scale(1);

  filter: blur(0px);
}

/* Subtle image settle */

.signature-grid .item.gallery-reveal img {
  transform: scale(1);
}

/* HOVER EFFECT  */

.signature-grid .item:hover img {
  transform: scale(1.05);
}

/* GRID LAYOUT  */

/* LEFT TALL */
.i1 {
  grid-column: 1;
  grid-row: 1 / span 3;
}

/* TOP ROW */
.i2 {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.i3 {
  grid-column: 3;
  grid-row: 1 / span 2;
}

/* MID SMALL */
.i4 {
  grid-column: 2;
  grid-row: 3;
}

/* RIGHT BLOCK */
.i5 {
  grid-column: 3;
  grid-row: 3 / span 2;
}

/* LEFT BOTTOM BIG */
.i6 {
  grid-column: 1;
  grid-row: 4 / span 3;
}

/* CENTER SMALL */
.i7 {
  grid-column: 2;
  grid-row: 4;
}

/* RIGHT BOTTOM LARGE */
.i8 {
  grid-column: 2 / span 2;
  grid-row: 5 / span 2;
}

/* PROCESS */

.process-text {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

/* CTA Section */

.cta-parallax-img {
  will-change: transform;
}

/* FOOTER */
.footer-wave-wrap {
  background: transparent;
  margin-bottom: 0px;
  overflow: visible;
}

.footer-wave {
  transform-origin: 50% 100%;
  will-change: transform;
}
