/* ============================================================
   BURRSMITH SCROLLYTELLING STYLES (FRONT PAGE)
   ============================================================ */

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #010101;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

#preloader .pre-label {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1rem;
  opacity: 0.8;
}

#loader-progress {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  min-width: 120px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pre-track {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 99px;
}

#loader-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #c6a052;
  transition: width 0.15s ease;
}

.pre-status {
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

#skip-intro {
  margin-top: 2.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.4rem 0.2rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.2s var(--ease);
}

#skip-intro.show {
  opacity: 1;
  transform: translateY(0);
}

#skip-intro:hover {
  color: #fff;
}

/* Scrollytelling Stage (always dark stage) */
#scrolly-container {
  position: relative;
  height: 420vh;
  background: #010101;
}

#sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

#stage-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, #120f0d 0%, #010101 80%);
}

#grinder-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
}

#stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 38%, rgba(0, 0, 0, 0.9) 100%);
}

.panel {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.5rem, 8vw, 8rem);
  opacity: 0;
  will-change: opacity, transform;
}

.panel-inner {
  max-width: 620px;
}

.panel[data-align="center"] {
  align-items: center;
  text-align: center;
}

.panel[data-align="left"] {
  align-items: flex-start;
  text-align: left;
}

.panel[data-align="right"] {
  align-items: flex-end;
  text-align: right;
}

.panel h1,
.panel h2 {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.panel h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
}

.panel h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #8b8f94 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.panel .eyebrow {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.panel p {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  max-width: 40ch;
}

.panel[data-align="right"] p {
  margin-left: auto;
}

/* Story panels (2-4) */
.story-panel .panel-inner {
  max-width: 440px;
}

.story-panel h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.9rem;
  background: none;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.96);
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 45px rgba(198, 160, 82, 0.4), 0 2px 22px rgba(0, 0, 0, 0.85);
}

.story-panel .eyebrow {
  text-shadow: 0 0 22px rgba(198, 160, 82, 0.6);
  color: var(--accent);
}

.story-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.85rem, 0.95vw, 1rem);
  line-height: 1.65;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

.story-panel .story-sign {
  margin-top: 1.25rem;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* Hero panel */
.hero-panel .panel-inner {
  max-width: 620px;
}

.hero-panel .eyebrow {
  display: block;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.hero-panel .eyebrow-accent {
  color: var(--accent);
}

.hero-panel h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-block: 0.4rem 0.75rem;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #8b8f94 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.hero-panel .hero-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  max-width: 34ch;
  margin-bottom: 1.25rem;
}

.hero-panel .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  pointer-events: auto;
}

.trust-bar {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.2rem;
}

.trust-bar li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.trust-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
}

.trust-text small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-hint {
  position: absolute;
  bottom: clamp(1.75rem, 4vh, 2.75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  animation: floatHint 2.2s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.scroll-hint.hide {
  animation: none;
  opacity: 0 !important;
  pointer-events: none;
}

@keyframes floatHint {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: 0.65;
  }
  50% {
    transform: translate(-50%, 6px);
    opacity: 1;
  }
}

/* ============================================================
   MOBILE (<= 600px): scale down overlay text proportionally.
   The desktop clamp() MIN floors were too high for phones, so
   text never shrank. Lower the floors + tighten spacing here.
   ============================================================ */
@media (max-width: 600px) {
  /* scrollytelling overlay: sit the story text just below the grinder
     (which is anchored to the top third), not pinned to the bottom. */
  .panel {
    padding: 0 1.5rem;
    justify-content: flex-start;
    padding-top: 57vh;
  }

  .panel[data-align="center"] {
    justify-content: center;
    padding-top: 0;
  }

  /* hero panel */
  .hero-panel h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
    margin-block: 0.3rem 0.6rem;
  }

  .hero-panel .hero-sub {
    font-size: 0.85rem;
    max-width: 30ch;
    margin-bottom: 1rem;
  }

  .hero-panel .eyebrow,
  .panel .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.45rem;
  }

  .btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.85rem;
  }

  .trust-bar {
    gap: 0.75rem 1.5rem;
    margin-top: 1.25rem;
  }

  .trust-text {
    font-size: 0.75rem;
  }

  .trust-text small {
    font-size: 0.66rem;
  }

  /* story panels */
  .story-panel .panel-inner {
    max-width: 100%;
  }

  .story-panel h2 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 0.7rem;
  }

  .story-panel p {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  .story-panel .story-sign {
    font-size: 0.75rem;
    margin-top: 0.9rem;
  }

  /* generic panel headings/body fallback */
  .panel h1,
  .panel h2 {
    font-size: 1.5rem;
  }

  .panel p {
    font-size: 0.85rem;
  }

  .panel .lead {
    font-size: 1rem;
  }

  /* product section */
  .product-lead {
    font-size: 0.9rem;
  }
}

/* Static fallback for reduced motion or skip */
.static-stage #scrolly-container {
  height: auto;
  background: #010101;
}

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

.static-stage #grinder-canvas,
.static-stage #stage-glow,
.static-stage #stage-vignette,
.static-stage .scroll-hint {
  display: none;
}

.static-stage .panel {
  position: static;
  inset: auto;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
  padding: clamp(3.5rem, 9vh, 6rem) clamp(1.5rem, 8vw, 8rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.static-stage .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== OVERVIEW BOTTOM CTA ==================== */
.overview-bottom-cta {
  position: relative;
  z-index: 5;
  background-color: #010101;
  background-image: radial-gradient(circle at 50% 0%, rgba(198, 160, 82, 0.12) 0%, transparent 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(4.5rem, 8vw, 7rem) 1.5rem;
  text-align: center;
}

.overview-bottom-inner {
  max-width: 680px;
  margin: 0 auto;
}

.overview-bottom-cta .eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.overview-bottom-cta h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.overview-bottom-cta .overview-bottom-sub {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 50ch;
  margin: 0 auto 2rem;
}

.overview-bottom-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.overview-bottom-actions .btn {
  padding: 0.95rem 2.4rem;
  font-size: 1rem;
}

