*, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      width: 100%;
      background: #111;
      scroll-snap-type: y mandatory;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body {
      width: 100%;
      min-height: 100%;
      overflow-x: hidden;
      background: #111;
    }


        @font-face {
        font-family: "Wintyr VF";
        src: url('WintyrVF.woff2') format('woff2');
        }

        @font-face {
        font-family: "Anybody";
        src: url('Anybody[slnt,wdth,wght].woff2') format('woff2');
        }

    #home {
      height: 100vh;
      scroll-snap-align: start;
      scroll-snap-stop: always;
      position: relative;
    }


    /* ─── Photo grid background ─── */
    .bg-grid {
      background: #F3EEE9;
      position: fixed;
      top: -200px;
      left: 0;
      right: 0;
      bottom: -200px;
      display: flex;
      gap: 15px;
      z-index: 0;
      transition: all 200ms ease-in-out;
    }

    /* Hidden during preload; JS drives the reveal transition */
    body.pre-loading .bg-grid { opacity: 0; }

    .purchase .bg-grid {
      opacity: .5;
      background: #555;
    }

    .col {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 15px;
      will-change: transform;
    }

    .col img {
      width: 100%;
      display: block;
      cursor: zoom-in;
      flex-shrink: 0;
      pointer-events: auto;
    }

    /* ─── Center body panel ─── */
    .body-panel {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 10;
      width: min(380px, calc(100vw - 40px));
      background: rgba(255, 255, 255, 0.97);
      backdrop-filter: blur(32px);
      -webkit-backdrop-filter: blur(32px);
      border-radius: 20px;
      padding: 28px 28px 8px;
      box-shadow:
        0 2px 4px rgba(0,0,0,0.06),
        0 8px 24px rgba(0,0,0,0.18),
        0 24px 64px rgba(0,0,0,0.28),
        0 0 0 0.5px rgba(255,255,255,0.15);
      pointer-events: auto;
      /* Entrance transition — fires when pre-loading class is removed from body */
      transition: opacity 0.65s ease 0.3s, transform 0.65s cubic-bezier(0.33, 1, 0.68, 1) 0.3s;
    }

    /* Hidden state during preload */
    body.pre-loading .body-panel {
      opacity: 0;
      transform: translate(-50%, calc(-50% + 22px));
    }

    .logo-wrap {
      display: flex;
      justify-content: center;
      margin-bottom: 24px;
    }

    .logo-svg {
      height: 28px;
      width: auto;
      display: block;
    }

    /* ─── Accordion ─── */
    .accordion {
      border-top: 1px solid rgba(0,0,0,0.07);
    }

    .acc-item {
      border-bottom: 1px solid rgba(0,0,0,0.07);
    }

    .acc-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 13px 0;
      cursor: pointer;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
      font-size: 14px;
      font-weight: 500;
      color: #111;
      user-select: none;
      -webkit-user-select: none;
      gap: 10px;
    }

    .acc-chevron {
      width: 15px;
      height: 15px;
      flex-shrink: 0;
      opacity: 0.35;
      transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .acc-item.open .acc-chevron {
      transform: rotate(180deg);
      opacity: 0.6;
    }

    .acc-body {
      display: grid;
      grid-template-rows: 0fr;
      overflow: hidden;
      transition: grid-template-rows 0.28s ease;
    }

    .acc-item.open .acc-body {
      grid-template-rows: 1fr;
    }

    .acc-body-inner {
      overflow: hidden;
      min-height: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
      font-size: 13px;
      line-height: 1.65;
      color: rgba(0,0,0,0.8);
    }

    .acc-body-inner::after {
      content: '';
      display: block;
      padding-bottom: 16px;
    }

    .acc-body-inner a {
      color: rgba(0,0,0,0.65);
      text-decoration: underline;
      text-underline-offset: 2px;
      text-decoration-color: rgba(0,0,0,0.25);
    }

    .acc-body-inner a:hover {
      color: #000;
      text-decoration-color: rgba(0,0,0,0.5);
    }

    .store-link {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-top: 10px;
      padding: 9px 14px;
      background: #111;
      color: #fff !important;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 500;
      text-decoration: none !important;
      letter-spacing: -0.01em;
    }

    .store-link svg {
      width: 14px;
      height: 14px;
      fill: #fff;
      flex-shrink: 0;
    }

    /* ─── Lightbox ─── */
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 100;
      background: rgba(0, 0, 0, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: zoom-out;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
      backdrop-filter: blur(10px);
    }


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

    .lightbox-img {
      max-width: 90vw;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 4px;
      pointer-events: none;
      transform: scale(0.97);
      transition: transform 0.22s ease;
    }

    .lightbox.active .lightbox-img {
      transform: scale(1);
    }

    h3 {color: #111;font-size: 14px;}

    #appstorelink {display: block;
  margin: 0 auto;
  text-align: center;
        transition: all  0.22s cubic-bezier(0.34, 1.56, 0.64, 1);

}

   #appstorelink:hover {
    transform: scale(1.05);
   }

    #appstorelink img {
      width: 50%;
    }

    #details {color: #777; display: flex; padding: 1em 0; gap: 20px}

    #details a { color: #777; }

    #details li {list-style-type: none; font-family: "Wintyr VF"; font-size: 11px; gap:}


/* ─── Carousel Section ─── */
#ui {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
background: linear-gradient(180deg, #000 0%, #1F1F1E 100%), #191818;
z-index: 20;
}

.carousel-track {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10vw;
  will-change: transform;
  /* transition removed — driven by JS RAF for jitter-free sync */
}

.carousel-stop {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2vw;
  position: relative;
  /* transition removed — driven by JS RAF for jitter-free sync */
}

.carousel-stop img, .carousel-stop video {
  max-width: 100%;
}

.carousel-stop.passed {
  pointer-events: none;
  z-index: -1;

}

/* Phone mockups */
.phone-mock {
  background: #000;
  border-radius: 44px;
  border: 0px solid #2a2a2a;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transition: box-shadow .5s linear;
  overflow: hidden;
}

.passed .phone-mock {
  box-shadow: 0 20px 60px rgba(0,0,0,0.0);
}

/*.phone-mock::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: #1c1c1e;
  border-radius: 40px;
}

.phone-mock::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 13px;
  z-index: 1;
}*/

#carouselTrack .carousel-stop:nth-child(4) + .carousel-stop .stop-cta{
opacity: 0;
transition: all .6s linear;
transition-delay: .3s;
}

#carouselTrack .carousel-stop.passed:nth-child(4) + .carousel-stop .stop-cta {
opacity: 1;
}

.phone-lg {
  width: 270px;
  height: 585px;
}

/* Text panel — fixed right side */
.carousel-text-panel {
  position: absolute;
  left: calc(60vw + 100px);
  top: 50%;
  transform: translateY(-50%);
  width: 26%;
  max-width: 360px;
  z-index: 5;
}

.text-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}


.text-slide.active {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
  pointer-events: auto;
  position: relative;
}

/* Slide text */
.slide-heading {
  font-family: "Anybody";
  font-weight: 750;
  font-stretch: 150%;
  font-size: clamp(36px, 4.5vw, 72px);
  color: #FFD445;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.slide-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  min-height: 150px;
}

.slide-body em {
  font-style: italic;
}

/* CTA in last stop */
.stop-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.stop-cta a { display: block; }
.stop-cta img { width: 160px; }
.stop-cta .cta-price {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

#footer {
  min-height: 100vh;
  background: #1F1F1E;
  position: relative;
  z-index: 20;
  display: flex;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  justify-content: center;
  align-items: center;
  font-family: "Wintyr VF";
  overflow: hidden;
}

#asciiWrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#asciiArt {
  font-family: "Wintyr VF", monospace;
  font-size: 7px;
  line-height: 1;
  color: rgba(255,255,255,0.32);
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#asciiArt div {
  display: block;
  white-space: nowrap;
  line-height: 1;
}

#asciiArt span {
  display: inline-block;
  vertical-align: top;
  line-height: 1;
  min-width: 1ch;
}

#footer h1 {
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  color: #eee;
  position: relative;
  z-index: 10;
}

#footer a {
  color: #eee;
}

#footer a:hover {
  font-weight: bold;
}

/* Pagination */
.carousel-nav {
  margin-top: 36px;
  display: flex;
  gap: 8px;
}

.page-dot {
  width: 16px;
  height: 28px;
  border-radius: 5px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.page-dot:hover {
  border-color: rgba(255,255,255,0.5);
}

.page-dot.active {
  background: #FFD445;
  border-color: #FFD445;
}

.stop-cta {
  position: relative;
  left: calc(-20vw + 180px);
}


/* ------------------------------------------- Responsive */
 @media (max-width: 960px) {
          #bgGrid .col:nth-child(n+3):nth-child(-n+6) {
          display: none;
        }

        .carousel-text-panel {
          left: auto;
          right: 5vw;
          top: auto;
          bottom: 5vh;
          transform: none;
          width: 55%;
        }

        .slide-heading {
          font-size: clamp(32px, 10vw, 56px);
        }

        .slide-body {
          font-size: 13px;
        }

        .phone-lg {
          width: 180px;
          height: 390px;
          border-radius: 32px;
        }

        .phone-lg::before {
          border-radius: 28px;
        }

        .phone-lg::after {
          width: 56px;
          height: 18px;
          border-radius: 9px;
          top: 9px;
        }


        .carousel-track {
          top: 30%;
        }

#ui {
  background: linear-gradient(180deg, #000 0%, #1F1F1E 50%), #191818;
}
    .slide-heading {
    font-size: clamp(32px, 10vw, 30px);
    }

        .carousel-text-panel {
          width: auto;
    max-width: 100%;
    left: 10vw;
    right: 10vw;
        }

        .slide-body {
          width: 90%;
          line-height: 1.3;
        }

 .carousel-nav {margin-top: 0; justify-content: center; width: 80vw;}
                .stop-cta { display: none; }

}

/* ─── Preloader ──────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

#preloader.exit {
  transform: translateY(-105%);
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

/* Logo: animates in immediately via CSS, no JS dependency */
.pre-logo-svg {
  height: 13px;
  width: auto;
  opacity: 0;
  transform: translateY(8px);
  animation: preLogoIn 0.55s cubic-bezier(0.33, 1, 0.68, 1) 0.08s forwards;
}

.pre-logo-svg path,
.pre-logo-svg circle { fill: rgba(255, 255, 255, 0.6); }

@keyframes preLogoIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Progress track */
.pre-track {
  width: 64px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  opacity: 0;
  animation: preFadeIn 0.3s ease 0.4s forwards;
}

.pre-fill {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes preFadeIn {
  to { opacity: 1; }
}