/* ─── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --off-white: #ffffff;
  --black: #111110;
  --mid: #6b6b68;
  --border: #e2e1de;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  width: 100%;
  background: var(--off-white);
}

body {
  width: 100%;
  overflow-x: hidden;
  background: var(--off-white);
  color: var(--black);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ─── Navigation ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  z-index: 100;
  background: var(--off-white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled { border-color: var(--border); }

.nav-logo-img {
  height: 20px;
  width: auto;
  display: block;
}

/* ─── Scroll Track ─────────────────────────────────────────────────── */
.scroll-track {
  display: block;
  width: 100%;
  padding-top: var(--nav-h);
}

/* ─── Panels (shared) ──────────────────────────────────────────────── */
.panel {
  width: 100%;
  display: flex;
  align-items: center;
}

/* ─── Panel 1: Hero ────────────────────────────────────────────────── */
.panel--hero {
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px 48px calc(56px + 8%);
  text-align: left;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(16px, 3.8vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-bottom: 16px;
  color: var(--black);
}

.hero-arrow {
  display: block;
  margin-top: 32px;
  opacity: 0.45;
}

.hero-sub {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mid);
  max-width: 300px;
  margin: 0;
}

.hero-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px 40px 0;
}

.hero-image-wrap-inner {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ─── Panel 2: Products side by side ───────────────────────────────── */
.panel--products {
  justify-content: center;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--border);
}

.product-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding: 40px 48px;
}

.product-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  flex-shrink: 0;
}

.product-image-wrap {
  width: min(300px, 38vw);
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #f0eeeb;
}

/* Pila and Impulse images have transparent backgrounds */
.product-card:first-child .product-image-wrap,
.product-card:last-child .product-image-wrap {
  background: transparent;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 24px;
}

.product-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 280px;
}

.product-wordmark {
  font-size: clamp(22px, 2.8vw, 38px);
  letter-spacing: -0.01em;
  line-height: 1;
}

.pila-logo,
.impulse-logo {
  height: 32px;
  width: auto;
  display: block;
}

.product-desc {
  font-size: 12px;
  line-height: 1.65;
  color: var(--mid);
  max-width: 260px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 20px;
  border: 1px solid var(--black);
  border-radius: 100px;
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--black);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--black);
  color: var(--off-white);
}

/* ─── Panel: Electrifying Action (collage) ────────────────────────── */
.panel--collage {
  border-top: 1px solid var(--border);
  padding: 72px 48px;
  display: block;
}

.collage-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.collage-header {
  text-align: center;
  margin-bottom: 40px;
}

.collage-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  align-items: start;
}

.collage-item {
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
}

.collage-item--large {
  grid-column: 1;
  grid-row: 1 / 3;
}

.collage-item--tall {
  grid-column: 2;
  grid-row: 1;
}

.collage-item--wide {
  grid-column: 3;
  grid-row: 1;
}

.collage-item--square {
  grid-column: 2 / 4;
  grid-row: 2;
}

.collage-img {
  width: 100%;
  height: auto;
  display: block;
}

.collage-item--large  .collage-img { aspect-ratio: unset; }
.collage-item--tall   .collage-img { aspect-ratio: unset; }
.collage-item--wide   .collage-img { aspect-ratio: unset; }
.collage-item--square .collage-img { aspect-ratio: unset; }

@media (max-width: 768px) {
  .panel--collage {
    padding: 56px 24px;
  }

  .collage-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }

  .collage-item--large,
  .collage-item--tall,
  .collage-item--wide,
  .collage-item--square {
    grid-column: 1;
    grid-row: auto;
  }

  .collage-item--large  .collage-img { aspect-ratio: unset; }
  .collage-item--square .collage-img { aspect-ratio: unset; }
}

/* ─── Panel 3: How to Claim ────────────────────────────────────────── */
.panel--steps {
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 80px 48px;
}

.steps-inner {
  width: 100%;
  max-width: 900px;
}

.steps-header {
  text-align: center;
  margin-bottom: 52px;
}

.steps-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 14px;
}

.steps-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--black);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--black);
  line-height: 1;
  letter-spacing: -0.03em;
  opacity: 0.18;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--mid);
}

/* ─── Panel 4: Matched for Perfection ─────────────────────────────── */
.panel--matched {
  gap: 0;
  border-top: 1px solid var(--border);
  align-items: center;
  padding: 72px 48px;
}

.matched-image-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}

.matched-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.matched-text {
  width: min(380px, 38vw);
  padding: 0 52px;
  flex-shrink: 0;
}

.matched-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.matched-sub {
  font-size: 12px;
  line-height: 1.65;
  color: var(--mid);
}

/* ─── Progress bar ─────────────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  z-index: 100;
}

.progress-fill {
  height: 100%;
  background: var(--black);
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── Scroll hint ──────────────────────────────────────────────────── */
.scroll-hint {
  position: fixed;
  bottom: 24px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  opacity: 1;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.scroll-hint.hidden { opacity: 0; }

/* Image fallbacks */
.hero-image-wrap    { background: transparent; }
.product-image-wrap { background: linear-gradient(145deg, #dedad4, #ccc8c0); }
.matched-image-wrap { background: linear-gradient(145deg, #c8c3ba, #b5b0a6); }

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

  /* Hero — stack vertically on mobile */
  .panel--hero {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
  }

  .hero-text {
    padding: 36px 24px 24px;
    text-align: center;
  }

  .hero-sub {
    margin: 0 auto;
  }

  .hero-image-wrap {
    flex: none;
    padding: 0 24px 24px;
  }

  .hero-image-wrap-inner {
    aspect-ratio: 16/9;
    height: auto;
  }

  .hero-heading {
    font-size: clamp(24px, 7.5vw, 48px);
    white-space: normal;
  }

  .hero-sub {
    font-size: 14px;
    max-width: 100%;
  }

  .hero-arrow {
    display: none;
  }

  /* Products — stack vertically */
  .panel--products {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }

  .product-card {
    padding: 48px 24px;
    gap: 20px;
  }

  .product-divider {
    width: auto;
    height: 1px;
    align-self: auto;
  }

  .product-image-wrap {
    width: min(260px, 70vw);
  }

  .product-body {
    max-width: 100%;
  }

  .product-desc {
    max-width: 340px;
  }

  /* Matched — stack vertically */
  .panel--matched {
    flex-direction: column;
    padding: 48px 24px;
  }

  .matched-image-wrap {
    width: 100%;
  }

  .matched-text {
    width: 100%;
    padding: 48px 24px;
  }

  .matched-heading {
    font-size: clamp(28px, 8vw, 48px);
    margin-bottom: 12px;
  }

  /* Steps — single column */
  .panel--steps {
    padding: 64px 24px;
    min-height: auto;
  }

  .steps-header {
    margin-bottom: 36px;
  }

  .steps-heading {
    font-size: clamp(28px, 8vw, 48px);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-card {
    padding: 24px 20px;
  }

  /* Scroll hint */
  .scroll-hint {
    bottom: 16px;
    right: 20px;
  }

  .progress-bar {
    display: none;
  }
}

