/* ══════════════════════════════════════════════════
   MONOLITH RESIDENCES — HOME
   Styles for index.html (landing page)
   ══════════════════════════════════════════════════ */

/* ══════════════════════════════════════
   HERO  (sticky-scroll four-curtain reveal)
   ══════════════════════════════════════ */
.hero-wrapper {
  height: 300vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Background media — zooms from 70% to fill viewport on scroll */
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  transform: scale(0.7);
  will-change: transform;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(4,6,10,0.15) 0%,
    rgba(4,6,10,0.3)  60%,
    rgba(4,6,10,0.55) 100%
  );
}

/* Heading styles — inside masks */
.hero-heading {
  position: absolute;
  font-family: var(--ff-head);
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
}

.hero-heading-left {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.hero-heading-right {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* "Now in UBUD" centered on background (inside hero-media) */
.hero-img-label {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.hero-now-in {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}

.hero-ubud {
  font-family: var(--ff-head);
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.88;
  color: #fff;
  display: block;
}

/* Four curtain masks — slide outward on scroll */
.hero-mask-t,
.hero-mask-b,
.hero-mask-l,
.hero-mask-r {
  position: absolute;
  background: var(--bg);
  z-index: 8;
  pointer-events: none;
}

.hero-mask-t {
  top: 0; left: 0; right: 0;
  height: 30vh;
}

.hero-mask-b {
  bottom: 0; left: 0; right: 0;
  height: 30vh;
}

.hero-mask-l {
  top: 0; left: 0; bottom: 0;
  width: 48vw;
}

.hero-mask-r {
  top: 0; right: 0; bottom: 0;
  width: 48vw;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.8s forwards;
}

.scroll-cue-text {
  font-family: var(--ff-body);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.scroll-cue-line {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}

.scroll-cue-runner {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  transform: translateY(-100%);
  animation: scrollRun 2s ease-in-out 2.2s infinite;
}

@keyframes fadeUp  { to { opacity: 1; } }
@keyframes scrollRun {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-brand-label {
  position: absolute;
  top: calc(var(--nav-h) + 28px);
  left: 60px;
  font-family: var(--ff-head);
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

.hero-media {
  position: relative;
  width: 72%;
  max-width: 1000px;
  aspect-ratio: 3/2;
  overflow: hidden;
  transform: scale(0.82);
  transition: transform 0.05s linear;
  will-change: transform;
  z-index: 5;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(4,6,10,0.15) 0%,
    rgba(4,6,10,0.3)  60%,
    rgba(4,6,10,0.55) 100%
  );
}

.hero-img-label {
  position: absolute;
  bottom: 28px;
  left: 32px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-now-in {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}

.hero-ubud {
  font-family: var(--ff-head);
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.88;
  color: #fff;
  display: block;
}

.hero-residences {
  position: absolute;
  bottom: calc(28px + var(--nav-h));
  right: 60px;
  font-family: var(--ff-head);
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.8s forwards;
}

.scroll-cue-text {
  font-family: var(--ff-body);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.scroll-cue-line {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}

.scroll-cue-runner {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  transform: translateY(-100%);
  animation: scrollRun 2s ease-in-out 2.2s infinite;
}

@keyframes fadeUp  { to { opacity: 1; } }
@keyframes scrollRun {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ══════════════════════════════════════
   WELLSTREAM INTRO  (video bg, 100vh)
   ══════════════════════════════════════ */
.section-ws-intro {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 80px 60px;
}

.ws-intro-body {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.ws-intro-deco-line {
  background-image: url('https://cdn.prod.website-files.com/69b7b31e10b7d22df7704a7e/69b7b32010b7d22df7704c1e_visible(24x24)%402x.svg');
  background-position: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  width: clamp(60px, 10vw, 120px);
  height: clamp(60px, 10vw, 120px);
  margin-bottom: 24px;
}

.ws-intro-heading {
  font-family: var(--ff-head);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 36px;
}

/* ══════════════════════════════════════
   ABOUT STATEMENT
   ══════════════════════════════════════ */
.section-about {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 280px 0;
}
#build-intro {
  padding: 120px 0;
}

.stacked-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.stacked-content .subtitle { margin-bottom: 28px; }

/* ══════════════════════════════════════
   WELLSTREAM FEATURE  (half-page)
   ══════════════════════════════════════ */
.section-ws-feature {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.ws-feature-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/index/wellstream-feature/pool-view.jpg');
  background-position: 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

.ws-feature-body {
  position: relative;
  z-index: 2;
  max-width: 680px;
  text-align: center;
}

.ws-feature-body .heading-large { max-width: 600px; margin-inline: auto; }

.ws-tagline { max-width: 460px; margin-inline: auto; }

/* ══════════════════════════════════════
   CLIENT LOGOS  (dual marquee)
   ══════════════════════════════════════ */
.section-logos {
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 90px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

.logos-row {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 45px;
  border-bottom: 1px solid var(--border);
}
.logos-row:last-child { border-bottom: none; }

.logos-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  padding: 0 36px;
}

.logos-left  { animation: logoScrollLeft  22s linear infinite; }
.logos-right { animation: logoScrollRight 22s linear infinite; }

@keyframes logoScrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes logoScrollRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.logo-img {
  height: 24px;
  width: auto;
  opacity: 0.65;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}
.logo-img:hover { opacity: 0.9; }

/* ══════════════════════════════════════
   ABOUT DESIGNER  (mirror template)
   ══════════════════════════════════════ */
.section-about-designer {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 160px 0;
}
.section-about-designer .stacked-content .outline-btn {
  align-self: flex-start;
  margin-top: 40px;
}



/* ══════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════ */
.section-testimonials {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 60px 140px;
}

.testimonial-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/index/testimonials/testimonial-bg.jpeg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.testimonial-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 750px;
}

.t-slide { display: none; }
.t-slide.active {
  display: block;
  animation: tFade 0.5s ease;
}

@keyframes tFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.t-quote {
  font-family: var(--ff-head);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.t-credit { display: flex; align-items: center; gap: 18px; }

.t-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
}
.av-one   { background: #3c4a52; }
.av-two   { background: #4a5560; }
.av-three { background: #55606a; }

.t-credit-info h4 {
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 3px;
}

.t-arrows { display: flex; gap: 12px; margin-top: 52px; }

.t-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.t-arrow:hover {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.07);
}
.t-arrow img { width: 22px; height: 22px; }

/* ══════════════════════════════════════
   PORTFOLIO  (Selected works)
   ══════════════════════════════════════ */
.section-projects {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 120px 0;
}
.section-projects .subtitle { margin-bottom: 60px; }

.projects-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 90px;
  margin-bottom: 72px;
}

.project-card { display: block; cursor: pointer; }

.project-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 24px;
}

.p-frame {
  position: absolute;
  inset: 0;
  transition: inset 0.4s cubic-bezier(0.16,1,0.3,1);
}
.p-frame.f1 { border: 1px solid rgba(255,255,255,0.18); z-index: 3; }
.p-frame.f2 { border: 1px solid rgba(255,255,255,0.1);  z-index: 3; inset: 10px; }
.p-frame.f3 { border: 1px solid rgba(255,255,255,0.06); z-index: 3; inset: 20px; }

.project-card:hover .p-frame.f1 { inset: -5px; }
.project-card:hover .p-frame.f2 { inset: 5px; }
.project-card:hover .p-frame.f3 { inset: 15px; }

.project-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.project-card:hover .project-bg { transform: scale(1.04); }

.project-caption { color: #fff; }

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.p-line {
  width: 18px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

.project-caption h3 {
  font-family: var(--ff-head);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}

/* ══════════════════════════════════════
   PROPERTIES VIDEO  (full-screen)
   ══════════════════════════════════════ */
.section-properties {
  height: 100vh;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border);
}

.properties-wrap {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.properties-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.ws-logo-circle {
  background-image: url('../assets/images/shared/wellstream-logo-circle.png');
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  width: 15vw;
  height: 20vw;
  max-width: 200px;
  max-height: 260px;
}

.ws-logotype {
  width: 64px;
  height: 2px;
  background: rgba(255,255,255,0.5);
}

/* ══════════════════════════════════════
   VIAJES MÁGICOS
   ══════════════════════════════════════ */
.section-viajes {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 80px 60px;
}

.viajes-body {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.viajes-slides { margin-bottom: 40px; }

.viajes-slide { display: none; }
.viajes-slide.active {
  display: block;
  animation: tFade 0.5s ease;
}

.viajes-heading {
  font-family: var(--ff-head);
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.subtitle-landing {
  color: #f7f0de;
  font-size: clamp(14px, 1.6vw, 22px);
  line-height: 1.5;
}

.viajes-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ══════════════════════════════════════
   BUILD STANDARDS  (sticky scroll — 4 slides)
   ══════════════════════════════════════ */
.section-build-standards {
  height: 500vh;
  position: relative;
}

.build-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}

.build-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  height: 100%;
  align-items: center;
  gap: 1px;
  background: var(--border);
}

.build-cell {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

.build-left  { padding: 60px 48px 60px 72px; }
.build-right { padding: 60px 72px 60px 48px; }

.build-left .subtitle,
.build-right .subtitle {
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.build-left .body-display,
.build-right .body-display {
  font-size: clamp(13px, 1vw, 15px);
  max-width: 380px;
  line-height: 1.7;
  color: var(--text-muted);
}

.build-img {
  overflow: hidden;
  background: var(--bg);
  position: relative;
  padding: 15vh 0;
}

.build-img .grow-img {
  height: 100%;
}

.build-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.build-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* ══════════════════════════════════════
   RESPONSIVE — home page
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-heading        { font-size: 2.4rem; }
  .hero-heading-left   { right: 36px; left: auto; }
  .hero-heading-right  { left: 36px; right: auto; }
  .hero-media          { width: 86%; }
  .hero-logo-mark      { width: 28vw; height: 10vw; }
  .hero-mask-l         { width: 45vw; }
  .hero-mask-r         { width: 45vw; }

  .service-row         { grid-template-columns: 1fr; min-height: auto; padding: 60px 0; }
  .service-row-flip    { direction: ltr; }
  .service-images      { aspect-ratio: 16/9; min-height: auto; }
  .service-info        { border-left: none !important; border-right: none !important; border-top: 1px solid var(--border); }
  .service-row:nth-child(2) .service-images { order: -1; }
}
@media (max-width: 768px) {
  .hero-heading            { font-size: 1.6rem; }
  .hero-heading-left       { right: 24px; }
  .hero-heading-right      { left: 24px; }
  .hero-media              { width: 92%; }
  .hero-ubud               { font-size: clamp(48px, 13vw, 100px); }
  .hero-logo-mark          { width: 35vw; height: 12vw; }
  .section-ws-intro        { padding: 60px 24px; }
  .ws-intro-heading        { font-size: 28px; }
  .ws-intro-deco-line      { width: 50px; height: 50px; }
  .section-about           { padding: 100px 0; }
  .section-about-designer  { padding: 100px 0; }
  .section-ws-feature      { padding: 80px 0; }
  .ws-feature-body         { padding: 0; }
  .circle-btn              { margin-right: 0; }
  .logo-img                { height: 18px; }
  .section-testimonials    { padding: 80px 24px 120px; }
  .section-projects        { padding: 80px 0; }
  .section-viajes          { padding: 60px 24px; }
  .viajes-heading          { font-size: 52px; }
  .subtitle-landing        { font-size: 15px; line-height: 1.5; }
  .section-contact         { padding: 120px 0; }

  .section-build-standards {
    height: auto;
    background: var(--bg);
  }

  .build-sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  .build-slide {
    position: static;
    opacity: 1;
    pointer-events: auto;
    border-bottom: 1px solid var(--border);
  }

  .build-grid {
    grid-template-columns: 1fr 1fr;
    height: auto;
    align-items: stretch;
    background: var(--bg);
    gap: 1px;
  }

  .build-cell {
    min-height: 0;
    height: auto;
  }

  .build-img {
    order: 1;
    aspect-ratio: 1 / 1.15;
    padding: 0;
  }

  .build-img + .build-img {
    order: 2;
  }

  .build-img .grow-img {
    height: 100%;
  }

  .build-img .grow-bg {
    inset: -10%;
    will-change: transform;
  }

  .build-left,
  .build-right {
    grid-column: 1 / -1;
    padding: 28px 24px 0;
  }

  .build-left {
    order: 3;
  }

  .build-right {
    order: 4;
    padding-top: 22px;
    padding-bottom: 36px;
  }

  .build-left .subtitle,
  .build-right .subtitle {
    font-size: 10px;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
  }

  .build-left .body-display,
  .build-right .body-display {
    max-width: none;
    font-size: 14px;
    line-height: 1.65;
  }

  .build-copy-reveal .subtitle,
  .build-copy-reveal .body-display {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.16,1,0.3,1);
  }

  .build-copy-reveal .body-display {
    transition-delay: 90ms;
  }

  .build-copy-reveal.build-copy-visible .subtitle,
  .build-copy-reveal.build-copy-visible .body-display {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .hero-heading       { font-size: 1.2rem; }
  .hero-heading-left  { right: 14px; left: auto; }
  .hero-heading-right { left: 14px; right: auto; }
  .hero-ubud          { font-size: 52px; }
  .hero-logo-mark     { display: none; }
  .projects-list      { gap: 64px; }
  .build-grid         { grid-template-columns: 1fr 1fr; }
  .build-left,
  .build-right        { padding-left: 20px; padding-right: 20px; }
}
