:root {
  --bg: #05070A;
  --cyan: #00F0FF;
  --white: #F8FAFC;
}


/* Add this to your CSS file (root {.txt) */
.ad-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video covers the area */
  border: 0; /* Remove default iframe border */
  pointer-events: none;

}


body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* The drag zone — phones can only move inside this box */
.phones-arena {
  position: relative;
  width: 100%;
  min-height: 90vh;
  margin: 0 auto;
  padding: 4rem 2rem;
  max-width: 1200px;
  border: 1px dashed rgba(0, 240, 255, 0.25);
  border-radius: 24px;
  margin-bottom: 4rem;
  overflow: hidden;
}

/* FOREGROUND: text always above phones. pointer-events:none lets you
   click/drag the phones that sit visually behind the text. */
.content-overlay {
  position: relative;
  z-index: 20;
  pointer-events: none;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.text-block h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.text-block p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #A0A8B0;
  margin-bottom: 1rem;
}

/* BACKGROUND: the phones live here, always below the text */
.interaction-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Each phone */
.phone {
  position: absolute;          /* GSAP positions them into a row */
  width: 220px;
  height: 450px;
  cursor: grab;
  touch-action: none;           /* lets mobile drag work */
  will-change: transform;
  z-index: 5;                  /* below text (20), above interaction-layer bg */
}
.phone:active { cursor: grabbing; }

/* Device bezel (CSS only — no image) */
.phone-screen {
  position: absolute;
  inset: 0;
  border: 10px solid #1a1a1a;
  border-radius: 40px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 0 2px #333, 0 20px 50px rgba(0, 240, 255, 0.18);
}
.phone-screen::before {            /* notch */
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 22px;
  background: #000;
  border-radius: 16px;
  z-index: 3;
}

.ad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.menu {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  list-style: none;
  margin: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}
.menu li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .phone { width: 160px; height: 330px; }
  .phone-screen { border-radius: 30px; border-width: 7px; }
}

/* MORPH DIVIDER between sections */
.morph-divider {
  position: relative;
  width: 100%;
  height: 120px;
  line-height: 0;            /* removes inline-svg gap */
  pointer-events: none;      /* never blocks clicks */
  z-index: 1;
  margin-top: -1px;          /* overlap seams so no hairline shows */
}
.morph-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.morph-path {
  /* fill is set inline per divider to match the NEXT section's bg */
  transition: none;          /* GSAP handles the animation */
}

/* Mobile: shrink the divider so it doesn't overwhelm small screens */
@media (max-width: 700px) {
  .morph-divider { height: 70px; }
}


/* ==========================================
   FILM REEL – JESPER STYLE
   ========================================== */
.film-reel-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  overflow: hidden;
  background: var(--bg);
  perspective: 800px; /* Strong perspective for dramatic curve */
  perspective-origin: 50% 50%;
  z-index: 2;
}

.reel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  overflow: visible;
}

.reel-strip {
  display: flex;
  gap: 0; /* No gap – images touch like a film strip */
  padding: 0;
  transform-style: preserve-3d;
  will-change: transform;
  /* The curvature is applied via JS, but we set a base */
}

.reel-frame {
  flex: 0 0 60vw; /* MASSIVE – takes up 60% of viewport width */
  height: 75vh; /* Tall, dramatic */
  margin: 0 -8vw; /* Negative margin creates overlap + curve illusion */
  transform-style: preserve-3d;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.reel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* Prevents drag interference */
}

/* HOVER: Individual frame tilts toward cursor */
.reel-frame:hover {
  transform: rotateY(-12deg) rotateX(6deg) scale(1.05) translateZ(60px);
  box-shadow: 0 40px 100px rgba(0, 240, 255, 0.3);
  z-index: 10;
}

/* Sibling frames fade back on hover */
.reel-strip:hover .reel-frame:not(:hover) {
  transform: scale(0.92) translateZ(-40px) rotateY(4deg);
  opacity: 0.5;
  filter: blur(2px);
}

/* Responsive */
@media (max-width: 768px) {
  .reel-frame {
    flex: 0 0 80vw;
    height: 60vh;
    margin: 0 -12vw;
  }
  .film-reel-section {
    height: 80vh;
    perspective: 500px;
  }
}


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

/* ===== PURE BLACK BACKGROUND ===== */


/* STORE SECTION */
.store-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:2rem;
}

.store-card{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  overflow:hidden;
  transition:.35s ease;
  backdrop-filter:blur(12px);

  /* Equal-height cards */
  display:flex;
  flex-direction:column;
  height:100%;
}

.store-card:hover{
  transform:translateY(-6px);
  border-color:rgba(255,255,255,.15);
}

.store-image{
  height:350px;              /* Consistent image area */
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:1rem;
  background:rgba(255,255,255,.02);
}

.store-image img{
  width:100%;
  height:100%;

  /* Shows the entire product without cropping */
  object-fit:contain;

  display:block;
}

.store-title{
  padding:1.25rem 1.5rem .5rem;
  font-size:1.2rem;
  font-weight:600;
}

.store-desc{
  padding:0 1.5rem;
  opacity:.8;
  line-height:1.7;

  /* Keeps footer aligned across cards */
  flex-grow:1;
}

.store-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1.5rem;
  margin-top:auto;
}

.store-price{
  font-size:1.2rem;
  font-weight:700;
}

.snipcart-checkout{
  cursor:pointer;
}


/* ═══════════════════════════════════════════════════════
   SEASCAPE GSAP PARALLAX / TRAILING TRANSITION
   ═══════════════════════════════════════════════════════ */

.seascape-transition {
  position: relative;
  width: 100%;
  height: 42vh;
  min-height: 320px;
  background: var(--abyss);
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Main effect viewport */
.transition-field {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Fade the transition into the surrounding sections */
.transition-field::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      var(--abyss) 0%,
      transparent 22%,
      transparent 78%,
      var(--abyss) 100%
    );
}

/* Horizontal atmospheric lines */
.transition-field::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;

  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 44px,
      rgba(255,255,255,.025) 45px
    );

  opacity: .55;
}

/* All GSAP parallax layers */
.parallax-layer {
  position: absolute;
  left: -10%;
  top: -25%;
  width: 120%;
  height: 150%;
  pointer-events: none;
  will-change: transform;
}

/* Slowest atmospheric layer */
.transition-glow {
  background:
    radial-gradient(
      ellipse at 25% 50%,
      rgba(240,112,32,.14) 0%,
      rgba(240,112,32,.035) 28%,
      transparent 62%
    ),
    radial-gradient(
      ellipse at 75% 40%,
      rgba(255,255,255,.08) 0%,
      transparent 50%
    );

  filter: blur(35px);
  opacity: .8;
}

/* Middle layer */
.transition-grid {
  opacity: .32;

  background-image:
    linear-gradient(
      rgba(255,255,255,.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.08) 1px,
      transparent 1px
    );

  background-size: 90px 90px;

  transform: perspective(700px) rotateX(58deg) scale(1.35);
  transform-origin: center center;

  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      black 25%,
      black 75%,
      transparent
    );
}

/* Fast foreground layer */
.transition-orbit {
  opacity: .65;

  background:
    radial-gradient(
      circle at 50% 50%,
      transparent 0 23%,
      rgba(255,255,255,.08) 23.2%,
      transparent 23.5%,
      transparent 35%,
      rgba(240,112,32,.15) 35.2%,
      transparent 35.6%,
      transparent 48%,
      rgba(255,255,255,.06) 48.2%,
      transparent 48.6%
    );

  transform: scale(1.15);
}

/* ═══════════════════════════════════════════════════════
   TRAILING CURSOR
   ═══════════════════════════════════════════════════════ */

.cursor-trail {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.cursor-trail span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;

  background: var(--orange);

  box-shadow:
    0 0 10px rgba(240,112,32,.65),
    0 0 24px rgba(240,112,32,.18);

  opacity: 0;

  transform:
    translate3d(-50%, -50%, 0)
    scale(.35);

  will-change: transform, opacity;
}

/* Larger lead particle */
.cursor-trail span:first-child {
  width: 8px;
  height: 8px;
}

/* Transition information */
.transition-content {
  position: absolute;
  z-index: 30;

  left: 6%;
  bottom: 18%;

  display: flex;
  align-items: center;
  gap: 1rem;

  pointer-events: none;
}

.transition-index {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .2em;
  color: var(--orange);
}

.transition-line {
  width: 70px;
  height: 1px;

  background:
    linear-gradient(
      to right,
      var(--orange),
      transparent
    );
}

.transition-caption {
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}

/* Respect reduced-motion accessibility preferences */
@media (prefers-reduced-motion: reduce) {

  .parallax-layer,
  .cursor-trail span {
    transform: none !important;
  }

  .cursor-trail {
    display: none;
  }
}

/* Mobile */
@media (max-width: 900px) {

  .seascape-transition {
    height: 32vh;
    min-height: 240px;
  }

  .transition-grid {
    background-size: 55px 55px;
  }

  .transition-content {
    left: 5%;
    bottom: 15%;
  }

  .transition-caption {
    display: none;
  }


/* Depth layering */
.depth-0 { z-index: -5; }
.depth-1 { z-index: -4; }
.depth-2 { z-index: -3; }
.depth-3 { z-index: 1; }
.depth-4 { z-index: 2; }

/* D0: Background video */
.scene-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(3px);
}

/* D1: Grain drift */
.scene-grain {
  position: absolute;
  inset: 0;
  background: url('images/placeholder-grain.png');
  background-size: cover;
  opacity: 0.15;
  mix-blend-mode: overlay;
  transform: translateY(0);
}

/* D2: Reactive bloom light */
.scene-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.25), transparent 60%);
  opacity: 0;
  pointer-events: none;
  filter: blur(40px);
}

/* D3: Foreground content */
.scene-inner {
  position: relative;
  transform: translateY(100px);
  opacity: 0;
}

/* D4: Cards directional motion */
.directional-reel .frame {
  opacity: 0;
  transform: translateX(-80px) translateY(40px);
}

/* Magnetic hover */
.service-card {
  transition: transform 0.4s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}


body {
  overflow: hidden;
}
.section {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: row;
  height: 100vh;
}

.box {
  cursor: pointer;
  opacity: 0;
}

.text {
  position: fixed;
  bottom: 2rem;
  width: 100%;
display:flex;align-items:center;justify-content:center;
}

.braces {
  display: block;
}


