/* =================================================
   GLOBAL STACK (NO GAP BETWEEN SECTIONS)
================================================= */

.home-stack{
  display:flex;
  flex-direction:column;
  gap: 0; 
}

/* =================================================
   HERO (VIDEO)
================================================= */

.home-hero{
  position:relative;
  min-height:100dvh;
  display:flex;
  overflow:hidden;
}

.home-hero-media{
  position:absolute;
  inset:0;
  z-index:0;
}

.home-hero-video{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:
    brightness(0.55)
    contrast(1.1)
    saturate(0.85)
    grayscale(0.2);
}

.home-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.75),
      rgba(0,0,0,0.3),
      transparent
    );
  z-index:1;
}

.home-hero-overlay{
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  position:relative;
  z-index:2;
  max-width: var(--container-default);
}

.home-hero h1{
  font-size: clamp(2rem,4vw,8rem);
  line-height:1.2;
}

/* stronger hierarchy */
.home-hero h1{
  font-weight:600;
  letter-spacing:0.08em;
}

/* highlight word */
.home-hero .highlight{
  color: var(--color-accent);
  font-weight:700;
}

/* =================================================
   SECTION 2 & 3 (IMAGE WITH SIDE MARGINS)
================================================= */

.home-hero-secondary,
.home-hero-tertiary{
  position: relative;
  min-height:100dvh;
  display:flex;
  overflow:hidden;
  padding-block: var(--space-xl);

  /* BASE COLOR */
  background: linear-gradient(
    180deg,
    #f3efe9 0%,
    #ebe5de 100%
  );
}

/*  CHANGE: different background for section 3 */
.home-hero-tertiary{
  background: linear-gradient(
    180deg,
    #e9e3dc 0%,
    #ded7cf 100%
  );
}

/* SUBTLE RADIAL LIGHT */
.home-hero-secondary::before,
.home-hero-tertiary::before{
  content:"";
  position:absolute;
  inset:0;

  background:
    radial-gradient(
      800px circle at 20% 30%,
      rgba(255,255,255,0.25),
      transparent 60%
    );

    will-change: transform;
    transition: transform 0.2s linear;
    transform: translateY(var(--parallax-y, 0px));
    
  opacity:0.6;
  pointer-events:none;
}

/*  CHANGE: shift light for section 3 */
.home-hero-tertiary::before{
  background:
    radial-gradient(
      800px circle at 80% 70%,
      rgba(255,255,255,0.18),
      transparent 60%
    );
}


.home-hero-secondary h1,
.home-hero-tertiary h1{
  font-size: clamp(1.8rem,2.5vw,3.2rem);
  letter-spacing: 0.08em;
  font-weight:600;
}

.home-hero-secondary p,
.home-hero-tertiary p{
  font-size: clamp(1rem,1.1vw,1.2rem);
  color: rgba(0,0,0,0.75);
}

/* TEXT CONTAINER (GLASS PANEL) */
.home-hero-secondary .home-hero-overlay{

  background: rgba(255,255,255,0.68);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(0,0,0,0.06);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.6);

}

.home-hero-tertiary .home-hero-overlay{

  background: rgba(255,255,255,0.92); /*  more solid */

  backdrop-filter: none; /* remove glass */
  -webkit-backdrop-filter: none;

  border: 1px solid rgba(0,0,0,0.08);

  box-shadow:
    0 12px 30px rgba(0,0,0,0.08),   /* grounded */
    0 2px 6px rgba(0,0,0,0.06);

}

.home-hero-secondary .page-container {
  margin-right: clamp(2rem, 4vw, 120px);
}

.home-hero-tertiary .page-container {
  margin-left: clamp(2rem, 4vw, 120px);
}

.home-hero-secondary .page-container,
.home-hero-tertiary .page-container {
  width: auto;          
  max-width: var(--container-narrow);     
}

.home-hero-secondary .home-hero-overlay,
.home-hero-tertiary .home-hero-overlay{

  padding: clamp(2.2rem, 4vw, 3.5rem);

  border-radius: 12px;

  position: relative; /* (ensures pseudo elements anchor correctly) */
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(.22,1,.36,1),
    transform 0.9s cubic-bezier(.22,1,.36,1);
}

/* ACTIVE */
.home-hero-overlay.in-view{
  opacity: 1;
  transform: translateY(0);
}

.home-hero-overlay h1{
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.home-hero-overlay p{
  margin-bottom: 1.8rem;
  max-width: 520px;
  line-height: 1.6;
}

.home-hero-overlay .section-cta{
  margin-top: 0.5rem;
}

/* SUBTLE GRID (TECH FEEL) */
.home-hero-secondary::after,
.home-hero-tertiary::after{
  content:"";
  position:absolute;
  inset:0;

  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);

  background-size: 80px 80px;

  will-change: transform;
  transition: transform 0.2s linear;
  transform: translateY(calc(var(--parallax-y, 0px) * 0.5));

  opacity:0.12;
  pointer-events:none;
}

/*  CHANGE: slightly stronger grid for section 3 */
.home-hero-tertiary::after{
  opacity:0.18;
}

/* SECTION 2 — vertical accent line */
.home-hero-secondary .home-hero-overlay::before{
  content:"";
  position:absolute;
  left:-12px;
  top:10%;
  height:80%;
  width:4px;

  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-accent),
    transparent
  );

  opacity:0.6;
}

/*  CHANGE: SECTION 3 — replace with top rule */
.home-hero-tertiary .home-hero-overlay::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-16px;
  height:16px;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08),
    transparent
  );

  border-radius: 0 0 12px 12px;

  opacity:0.5;
}

.home-hero-tertiary .home-hero-overlay::after{
  content:"";
  position:absolute;
  top:-10px;
  left:0;
  width:60px;
  height:2px;

  background: var(--color-accent);

  opacity:0.6;
}

/* =================================================
   REVEAL SECTION — MATCH REFERENCE
================================================= */

.home-reveal-section{
  min-height:100dvh;
  display:flex;
  align-items:center;

  background: linear-gradient(
    180deg,
    #CFC7BE 0%,
    #C4BCB3 100%
  );

  /* smooth transition when scrolling */
  transition: background 0.25s linear;
}

.reveal-text-block{
  position:relative;
  max-width:var(--container-default);
  padding: clamp(1.5rem,5vw,3rem);
}

/* =========================
   CORNER MARKERS
========================= */

/* shared base */
.reveal-text-block::before,
.reveal-text-block::after{
  content:"";
  position:absolute;
  width:45px;
  height:45px;

  opacity:0;
  transform:scale(0.85);

  transition:
    transform 0.45s cubic-bezier(0.22,1,0.36,1),
    opacity 0.35s ease;
}

/* top-left */
.reveal-text-block::before{
  top:0;
  left:0;
  border-top:1px solid rgba(0,0,0,0.25);
  border-left:1px solid rgba(0,0,0,0.25);
}

/* bottom-right */
.reveal-text-block::after{
  bottom:0;
  right:0;
  border-bottom:1px solid rgba(0,0,0,0.25);
  border-right:1px solid rgba(0,0,0,0.25);
}

/* ACTIVE STATE (trigger this on reveal) */
.reveal-text-block.active::before,
.reveal-text-block.active::after{
  opacity:1;
  transform:scale(1);
}

/* =========================
   TYPOGRAPHY
========================= */

.reveal-text-block p{
  font-size: clamp(2rem,1.5vw,10rem);
  text-overflow: clip;
  word-break: normal;
  overflow-wrap: normal;
  line-height:1.25;
  font-weight:500;
  letter-spacing:0.01em;
}

/* =========================
   CTA
========================= */

.reveal-text-block .section-cta{
  margin-top:2rem;
  display:inline-block;
  border:1px solid rgba(255,255,255,0.6);
  padding:0.6rem 1.2rem;

  transition: all 0.25s ease;
}

.reveal-text-block .section-cta:hover{
  border-color:#ffffff;
  opacity:1;
}


/* =================================================
   WORD COLOR SYSTEM 
================================================= */

.reveal-word{
  display:inline-block;
  margin-right:0.25em;

  opacity:1;
  transform:none;

 
  color: #8C837A;

  transition: color 0.15s linear;
}