/* ========== RESET & BASE ========== */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --bg-light: #f7f7f7;
      --bg-dark: #0a0a0a;
      --text-dark: #050505;
      --text-light: #f7f7f7;
      --text-muted: rgba(255,255,255,0.18);
      --text-highlight: rgba(255,255,255,0.95);
      --accent: #6b8aff;
      --accent-glow: rgba(107,138,255,0.15);
    }

    html {
      scroll-behavior: auto;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      background: var(--bg-dark);
    }

    body {
      font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
      background: var(--bg-dark);
      color: var(--text-dark);
      overflow-x: hidden;
      line-height: 1.5;
    }

    /* ========== NAVIGATION ========== */
    .nav {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 100;
      padding: 1.5rem 2.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      mix-blend-mode: difference;
    }

    .nav__logo {
      font-size: 1.6rem;
      font-weight: 800;
      letter-spacing: -0.06em;
      color: #fff;
      text-decoration: none;
    }

    .nav__icon {
      width: 28px;
      height: 28px;
      cursor: pointer;
    }

    .nav__icon svg { fill: #fff; }

    /* ========== SIDE SHOP BUTTON ========== */
    .side-shop-btn {
      position: fixed;
      top: 50%;
      right: 0;
      transform: translateY(-50%) translateX(100%); /* hidden initially */
      opacity: 0; /* hidden initially */
      pointer-events: none;
      writing-mode: vertical-rl;
      text-orientation: mixed;
      background: #fff;
      color: #000;
      padding: 1.2rem 0.4rem 1.2rem 0.6rem; /* a little smaller */
      border-radius: 10px 0 0 10px;
      font-size: 0.75rem; /* smaller text */
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      text-decoration: none;
      z-index: 100;
      transition: transform 0.3s ease, background 0.3s ease;
      cursor: pointer;
    }
    
    .side-shop-btn.is-visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(-50%) translateX(0);
    }

    .side-shop-btn:hover {
      background: #eee;
    }

    /* ============================================================
       SECTION 1 — HERO (WHITE)
       ============================================================ */
    .hero {
      position: relative;
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background: var(--bg-light);
      overflow: hidden;
      z-index: 2;
    }

    .hero__holder {
      position: relative;
      flex: 1;
      display: flex;
      align-items: center;
      padding: 0 8vw;
    }

    .hero__title {
      position: relative;
      z-index: 10;
    }

    .hero__title h1 {
      font-size: clamp(5rem, 16vw, 13rem);
      font-weight: 500;
      line-height: 0.85;
      letter-spacing: -0.06em;
      color: var(--text-dark);
      margin-left: -0.5vw;
    }

    .hero__title h1 span {
      display: block;
      overflow: hidden;
    }

    .hero__title h1 .word-inner {
      display: block;
      transform: translateY(100%);
    }

    .hero__text {
      position: relative;
      z-index: 10;
      max-width: 380px;
      margin-top: 2rem;
      padding-left: 0.25rem;
    }

    .hero__text p {
      font-size: 0.82rem;
      font-weight: 500;
      line-height: 1.4;
      color: var(--text-dark);
      opacity: 0;
      transform: translateY(20px);
    }

    .hero__img {
      position: absolute;
      right: 8vw;
      top: 85%;
      transform: translateY(-48%) scale(1.8);
      transform-origin: center right;
      width: 52vw;
      height: 92vh;
      z-index: 5;
      pointer-events: none;
    }

    .hero__img img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center right;
      opacity: 0;
      scale: 1;
      transform-origin: center right;
    }

    .hero__cta {
      position: absolute;
      bottom: 12%;
      left: 50%;
      transform: translateX(-50%);
      z-index: 20;
    }

    .hero__cta a,
    .btn-pill {
      display: inline-block;
      background: var(--text-dark);
      color: var(--text-light);
      font-size: 0.65rem;
      font-weight: 700;
      padding: 0.85rem 2rem;
      border-radius: 50px;
      text-decoration: none;
      text-transform: lowercase;
      letter-spacing: 0.08em;
      transition: background 0.3s;
      border: none;
      cursor: pointer;
      opacity: 0;
      transform: translateY(15px);
    }

    .hero__cta a:hover,
    .btn-pill:hover {
      background: #222;
    }

    /* ========== GLOBAL FOOTER (Scroll + Brands) ========== */
    .global-footer {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      padding: 0 2.5rem 1.5rem;
      font-size: 0.6rem;
      font-weight: 600;
      text-transform: lowercase;
      letter-spacing: 0.02em;
      color: #fff;
      mix-blend-mode: difference;
      z-index: 100;
      pointer-events: none;
    }

    .global-footer__left,
    .global-footer__center,
    .global-footer__right {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .global-footer__center {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }

    .global-footer__left .dot {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: currentColor;
      opacity: 0.5;
    }

    .global-footer__right {
      gap: 2rem;
    }

    .scroll-indicator {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    .scroll-indicator__bar {
      width: 80px;
      height: 1px;
      background: rgba(255,255,255,0.4);
      position: relative;
    }

    .scroll-indicator__progress {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 0%;
      background: currentColor;
    }

    /* ============================================================
       SECTION 2 — TEXT REVEAL (BLACK / PINNED)
       ============================================================ */
    .text-reveal {
      position: relative;
      height: 100vh; /* the visible area; gets pinned */
      background: var(--bg-dark);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6rem 2.5rem;
      overflow: hidden;
      z-index: 1;
    }

    .text-reveal__moon {
      position: absolute;
      top: 3rem;
      left: 50%;
      transform: translateX(-50%);
      opacity: 0;
    }

    .text-reveal__content {
      max-width: 800px;
      text-align: center;
      position: relative;
      z-index: 10;
    }

    .text-reveal__content h2 {
      font-size: clamp(1.4rem, 3vw, 2.4rem);
      font-weight: 500;
      line-height: 1.45;
      color: var(--text-muted);
    }

    .text-reveal__content h2 .highlight {
      color: var(--text-highlight);
    }

    .reveal-word {
      display: inline-block;
      opacity: 0.12;
      transition: none; /* GSAP handles it */
    }

    .reveal-word.is-active {
      opacity: 1;
    }

    /* small accent line under the section */
    .text-reveal__line {
      position: absolute;
      bottom: 3rem;
      left: 50%;
      transform: translateX(-50%);
      width: 40px;
      height: 1px;
      background: rgba(255,255,255,0.15);
    }

    /* ── Portal/Window: oval mask that reveals the fullscreen video ── */
    .text-reveal__portal {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 320px;
      height: 580px;
      border-radius: 2000px;
      background-color: #2a2a2a; /* Gris visible todo el tiempo */
      z-index: 1; /* Detrás del texto (que tiene z-index: 2) */
      pointer-events: none;
      overflow: hidden;
    }

    /* Canvas fills the viewport *behind* the oval mask */
    .text-reveal__portal canvas {
      position: absolute;
      top: 50%;
      left: 50%;
      /* Always cover the full viewport, regardless of portal size */
      width: 100vw;
      height: 100vh;
      transform: translate(-50%, -50%);
      object-fit: cover;
      opacity: 0; /* Oculto hasta que el texto termine */
    }

    /* ============================================================
       SECTION 2.5 — ROTATION SHOWCASE (SOFI-STYLE)
       ============================================================ */
    .rotation-showcase {
      position: relative;
      z-index: 2;
      overflow: hidden;
    }

    .rotation-showcase__bg {
      position: absolute;
      inset: 0;
      background: var(--bg-light);
      z-index: 0;
      transition: background-color 0.01s;
    }

    .rotation-showcase__sticky {
      position: sticky;
      top: 0;
      height: 100vh;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* ── Giant background text ── */
    .rotation-showcase__big-text {
      position: absolute;
      top: 50%;
      font-size: clamp(8rem, 25vw, 24rem);
      font-weight: 900;
      line-height: 0.95;
      letter-spacing: -0.04em;
      color: rgba(0, 0, 0, 0.05); /* very faint text */
      margin: 0;
      z-index: 1;
      pointer-events: none;
      white-space: nowrap;
      mix-blend-mode: normal;
    }

    #rot-big-text-1 {
      left: 50%;
      transform: translate(-50%, -50%);
    }

    #rot-big-text-2 {
      left: 100vw;
      transform: translateY(-50%);
    }

    .rot-word {
      display: inline-block;
      opacity: 0;
      transform: translateY(40px);
    }

    /* ── Canvas (rotated 45°) ── */
    .rotation-showcase__sticky canvas {
      position: relative;
      z-index: 2;
      width: 38vw;
      max-width: 1520px;
      height: auto;
      aspect-ratio: 1 / 1;
      transform: rotate(30deg);
    }

    /* ── Top-left descriptive text ── */
    .rotation-showcase__text-tl, .rotation-showcase__text-br {
      position: absolute;
      max-width: 340px;
      z-index: 3;
      opacity: 0;
      transform: translateY(20px);
    }
    
    .rotation-showcase__text-tl {
      top: 20vh;
      left: 15vw;
    }
    
    .rotation-showcase__text-tl h3, .rotation-showcase__text-br h3 {
      font-size: 1.1rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 0.2rem;
      text-transform: lowercase;
      display: flex;
      align-items: center;
    }

    .rot-icon {
      width: 1.5em;
      height: 1.5em;
      margin-right: 8px;
    }

    .rot-divider {
      border: none;
      border-bottom: 1px solid currentColor;
      margin: 8px 0 12px 0;
      opacity: 0.3;
    }

    /* Phase 1 & 3 (White background) */
    .rot-phase-1 h3, .rot-phase-3 h3 { color: #000; }
    .rot-phase-1 p, .rot-phase-3 p { color: var(--text-dark); }
    
    /* Phase 2 (Black background) */
    .rot-phase-2 h3 { color: #fff; }
    .rot-phase-2 p { color: rgba(255,255,255,0.7); }

    .rotation-showcase__text-tl p, .rotation-showcase__text-br p {
      font-size: 0.85rem;
      line-height: 1.55;
      margin: 0;
    }

    .rotation-showcase__text-tl strong {
      text-decoration: underline;
      text-decoration-color: rgba(0,0,0,0.3);
      text-underline-offset: 2px;
    }

    /* ── Connected text at bottom-right ── */
    .rotation-showcase__text-br {
      bottom: 25vh;
      right: 15vw;
    }

    .rotation-showcase__text-tl strong,
    .rotation-showcase__text-br strong {
      text-decoration: underline;
      text-decoration-color: rgba(255, 255, 255, 0.3); /* Because background will be black */
      text-underline-offset: 2px;
    }

    .rotation-showcase__black-circle {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 10px;
      height: 10px;
      background: #000;
      border-radius: 50%;
      transform: translate(-50%, -50%) scale(0);
      z-index: 0;
      pointer-events: none;
    }

    h2.rotation-showcase__big-text.rot-text-white {
      color: rgba(255, 255, 255, 0.05); /* White version for dark bg */
      z-index: 1; /* Above black circle */
    }

    /* ============================================================
       SECTION 2.6 — NATURE SHOWCASE (MARQUEE & PLANTS)
       ============================================================ */
    .nature-showcase {
      position: relative;
      background: var(--bg-light); /* White background */
      min-height: 100vh; /* exactly full screen, GSAP pinSpacing adds the needed space */
      height: 100vh;
      z-index: 2;
      overflow: hidden;
    }
    .nature-showcase__sticky {
      position: sticky;
      top: 0;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .nature-showcase__bg-text-wrapper {
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      width: 100vw;
      display: flex;
      align-items: center;
      z-index: 1;
      white-space: nowrap;
      pointer-events: none;
    }
    .nature-showcase__bg-text {
      font-size: clamp(6rem, 18vw, 15rem);
      font-weight: 900;
      letter-spacing: -0.05em;
      color: rgba(0,0,0,0.03);  
      text-transform: lowercase;
      display: flex;
      gap: 2rem;
      margin: 0;
      padding: 0;
    }
    .nature-showcase__center {
      position: relative;
      z-index: 2;
      width: 50vw;
      max-width: 1500px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .nature-showcase__natural {
      width: 100%;
      height: auto;
      object-fit: contain;
      z-index: 3;
      transform: scale(0.9);
      opacity: 0;
    }
    .nature-showcase__plant {
      position: absolute;
      width: 100vw;
      max-width: 800px;
      height: auto;
      z-index: 4;
      opacity: 0;
      pointer-events: none;
    }
    .nature-showcase__plant--tl {
      top: -30%;
      left: -30%;
      transform-origin: top left;
      transform: scale(0) rotate(-30deg);
    }
    .nature-showcase__plant--br {
      bottom: -20%;
      right: -20%;
      transform-origin: bottom right;
      transform: scale(0) rotate(30deg);
    }

    /* ============================================================
       SECTION 2.75 — THE SCIENCE OF SLEEP REVEAL (BLINK)
       ============================================================ */
    .science-reveal {
      position: absolute;
      top: 50%;
      left: 0;
      width: 100%;
      height: 0vh; /* Starts closed */
      background: var(--bg-dark);
      z-index: 10;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .science-reveal__content {
      position: absolute;
      text-align: center;
      opacity: 0;
      transform: scale(0.9);
    }
    .science-reveal__label {
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.4);
      margin-bottom: 1.2rem;
    }
    .science-reveal__heading {
      font-size: clamp(3rem, 10vw, 8rem);
      font-weight: 900;
      line-height: 0.9;
      letter-spacing: -0.04em;
      color: #fff;
      margin: 0;
    }

    /* ============================================================
       SECTION 3 — PURCHASE GRID (PRODUCTS)
       ============================================================ */

    .purchase-grid {
      background: var(--bg-dark);
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      padding: 0 2.5rem 10rem;
      justify-content: center;
    }

    .purchase-card {
      background: #111;
      border: 1px solid rgba(255, 255, 255, 0.05);
      display: flex;
      flex-direction: column;
      position: relative;
      cursor: pointer;
      transition: all 0.3s ease;
      min-height: 600px;
    }

    .purchase-card:hover {
      background: #151515;
    }

    .purchase-card__top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 2.5rem 2rem 0;
    }

    .purchase-card__title-wrap h3 {
      font-size: 3.5rem;
      font-weight: 500;
      letter-spacing: -0.05em;
      margin-bottom: 0.5rem;
      line-height: 0.9;
      color: #fff;
    }

    .purchase-card__title-wrap p.subtitle {
      font-size: 0.75rem;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.7);
      margin: 0;
    }

    .purchase-card__category {
      font-size: 0.75rem;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.8);
      text-transform: lowercase;
    }

    .purchase-card__img {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 3rem 2rem;
    }

    .purchase-card__img img {
      max-width: 140px; 
      height: auto;
      object-fit: contain;
      transition: transform 0.4s ease;
    }
    
    .purchase-card:hover .purchase-card__img img {
      transform: scale(1.05);
    }

    .purchase-card__bottom {
      display: flex;
      align-items: center;
      padding: 1.5rem 0;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      margin: 0 2.5rem;
      color: #fff;
      font-size: 0.75rem;
    }

    .purchase-card__bottom p {
      margin: 0;
      color: rgba(255,255,255,0.7);
      flex: 1;
    }

    .purchase-card__bottom p:nth-child(2) {
      flex: 1;
      text-align: right;
      padding-right: 1.5rem;
    }

    .purchase-card__bottom strong {
      color: #fff;
      font-weight: 600;
    }

    .purchase-card__arrow {
      font-size: 1.2rem;
      font-weight: 300;
      color: #fff;
    }



    /* ========== RESPONSIVE ========== */
    @media (max-width: 1100px) {
      .rotation-showcase__text-tl {
        left: 8vw;
        max-width: 300px;
      }

      .rotation-showcase__text-br {
        right: 8vw;
        max-width: 300px;
      }

      .rotation-showcase__sticky canvas {
        width: 52vw;
      }
    }

    @media (max-width: 768px) {
      .nav {
        padding: 1rem 1rem;
      }

      .nav__logo {
        font-size: 1.35rem;
      }

      .nav__icon {
        width: 24px;
        height: 24px;
      }

      .global-footer {
        display: none;
      }

      .side-shop-btn {
        display: none;
      }

      .hero,
      .text-reveal,
      .rotation-showcase__sticky,
      .nature-showcase,
      .nature-showcase__sticky {
        min-height: 100dvh;
        height: 100dvh;
      }

      .hero__holder {
        padding: 5.5rem 1rem 5rem;
        align-items: flex-start;
      }

      .hero__title h1 {
        font-size: clamp(3.2rem, 18vw, 5.4rem);
        line-height: 0.9;
        margin-left: 0;
      }

      .hero__text {
        margin-top: 1rem;
        max-width: 100%;
        padding-left: 0;
      }

      .hero__text p {
        font-size: 0.84rem;
        line-height: 1.45;
      }

      .hero__img {
        top: auto;
        bottom: 6rem;
        left: 0;
        right: auto;
        width: 100vw;
        height: 62vh;
        transform: scale(1.1);
        transform-origin: left center;
      }

      .hero__img img {
        object-position: left center;
      }

      .hero__cta {
        left: 1rem;
        right: 1rem;
        bottom: 1.75rem;
        transform: none;
        text-align: center;
      }

      .hero__cta a,
      .btn-pill {
        width: 100%;
        max-width: 420px;
        padding: 0.95rem 1.1rem;
        font-size: 0.72rem;
      }

      .text-reveal {
        padding: 4.8rem 1rem 2.5rem;
      }

      .text-reveal__moon {
        top: 1.2rem;
      }

      .text-reveal__content {
        max-width: 100%;
      }

      .text-reveal__content h2 {
        font-size: clamp(1.05rem, 5.5vw, 1.55rem);
        line-height: 1.35;
      }

      .text-reveal__portal {
        width: 240px;
        height: 430px;
      }

      .text-reveal__line {
        bottom: 1.3rem;
      }

      .rotation-showcase__big-text {
        font-size: clamp(3.2rem, 17vw, 5.8rem);
      }

      .rotation-showcase__sticky canvas {
        width: 88vw;
        max-width: 560px;
        transform: rotate(20deg);
      }

      .rotation-showcase__text-tl,
      .rotation-showcase__text-br {
        max-width: min(85vw, 360px);
        text-align: left;
      }

      .rotation-showcase__text-tl {
        left: 6vw;
        right: auto;
        top: 8vh;
        transform: translateY(20px);
      }

      .rotation-showcase__text-br {
        left: auto;
        right: 4vw;
        bottom: 6vh;
        transform: translateY(20px);
      }

      .rotation-showcase__text-tl h3,
      .rotation-showcase__text-br h3 {
        justify-content: flex-start;
        font-size: 0.98rem;
      }

      .rotation-showcase__text-tl p,
      .rotation-showcase__text-br p {
        font-size: 0.78rem;
        line-height: 1.5;
      }

      .nature-showcase__center {
        width: 92vw;
      }

      .nature-showcase__bg-text {
        font-size: clamp(3.4rem, 18vw, 6.5rem);
      }

      .nature-showcase__plant {
        width: 120vw;
        max-width: none;
      }

      .nature-showcase__plant--tl {
        top: -8%;
        left: -50%;
      }

      .nature-showcase__plant--br {
        bottom: -12%;
        right: -50%;
      }

      .science-reveal__label {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
      }

      .science-reveal__heading {
        font-size: clamp(2.2rem, 13vw, 4.3rem);
      }

      .purchase-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem 5rem;
      }

      .purchase-card {
        min-height: 470px;
      }

      .purchase-card__top {
        padding: 1.4rem 1rem 0;
      }

      .purchase-card__title-wrap h3 {
        font-size: clamp(2.1rem, 10vw, 2.8rem);
      }

      .purchase-card__title-wrap p.subtitle,
      .purchase-card__category {
        font-size: 0.68rem;
      }

      .purchase-card__img {
        padding: 1.8rem 1rem;
      }

      .purchase-card__img img {
        max-width: 120px;
      }

      .purchase-card__bottom {
        margin: 0 1rem;
        padding: 1rem 0;
        font-size: 0.68rem;
        gap: 0.5rem;
      }

      .purchase-card__bottom p:nth-child(2) {
        padding-right: 0;
      }
    }

    @media (max-width: 430px) {
      .hero__holder {
        padding-top: 5rem;
      }

      .hero__img {
        width: 100vw;
        left: 0;
        right: auto;
        bottom: 3.6rem;
        height: 60vh;
        transform: scale(1.1);
        transform-origin: left center;
      }

      .text-reveal__portal {
        width: 205px;
        height: 380px;
      }

      .rotation-showcase__sticky canvas {
        width: 96vw;
        transform: rotate(16deg);
      }

      .rotation-showcase__text-tl,
      .rotation-showcase__text-br {
        max-width: 88vw;
      }

      .rotation-showcase__text-tl {
        top: 6vh;
      }

      .rotation-showcase__text-br {
        bottom: 5vh;
      }

      .purchase-card {
        min-height: 440px;
      }

      .purchase-card__title-wrap h3 {
        font-size: clamp(1.9rem, 11vw, 2.4rem);
      }
    }

    @media (min-width: 398px) and (max-width: 406px) and (min-height: 868px) and (max-height: 880px) {
      .hero__img {
        width: 100vw;
        left: 0;
        right: auto;
        bottom: 2.8rem;
        height: 60vh;
        transform: scale(1.8);
        transform-origin: left center;
      }

      .hero__img img {
        width: 90%;
        height: 100%;
        object-fit: contain;
        object-position: left center;
        opacity: 0;
        scale: 1;
        transform-origin: center left;
      }
    }