/* ================================================
   Spivvy V2 — Editorial Redesign
   Colors:
     --sage:      #E4F2C8
     --navy:      #003049
     --slate:     #596869
     --burgundy:  #3D0C11
     --slate-lt:  #8799AE
   Fonts:
     changeling-neo  — headings (Adobe Fonts)
     founders-grotesk — body / labels (Adobe Fonts)
   ================================================ */

:root {
  --sage:      #E4F2C8;
  --navy:      #003049;
  --slate:     #596869;
  --burgundy:  #3D0C11;
  --slate-lt:  #8799AE;
  --black:     #111111;
  --white:     #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, sans-serif;
  background: var(--sage);
  color: var(--black);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── CUTOUT EFFECT ──────────────────────────────
   Works on sage and white backgrounds.
   White areas of photos become transparent.     */
.cutout {
  mix-blend-mode: multiply;
}

/* ── SCATTERED ICONS ──────────────────────────── */
.site-icon {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  width: auto;
  mix-blend-mode: normal;
  opacity: 0.9;
}
.site-icon-dark {
  mix-blend-mode: normal;
  opacity: 0.9;
}

/* ── SECTION BRIDGES (cutouts straddling borders) */
.section-bridge {
  position: relative;
  height: 0;
  z-index: 10;
  pointer-events: none;
}
.section-bridge img {
  position: absolute;
  width: auto;
  mix-blend-mode: normal;
}

/* sections need position:relative for icons */
.how, .occasions, .sustain, .sellers, .download-cta {
  position: relative;
  overflow: hidden;
}

/* ── NAV ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 52px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 48, 73, 0.08);
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}

.nav-scrolled {
  background: rgba(228, 242, 200, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 52px;
  border-bottom: 1px solid rgba(0, 48, 73, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 140px;
  width: auto;
  margin: -42px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav-links a {
  font-family: 'founders-grotesk', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy);
  transition: opacity 0.2s;
}

.nav-links a:not(.nav-download):hover {
  opacity: 0.5;
}

.nav-download {
  border: 1.5px solid var(--navy);
  padding: 8px 24px;
  border-radius: 100px;
}

.nav-download:hover {
  background: var(--navy) !important;
  color: var(--sage) !important;
  opacity: 1 !important;
}

/* Mobile button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--sage);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: 'changeling-neo', serif;
  font-size: 3.5rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.mobile-menu a:hover {
  opacity: 0.5;
}

/* ── SHARED UTILITIES ─────────────────────────── */
.section-label {
  display: block;
  font-family: 'founders-grotesk', sans-serif;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--slate);
  margin-bottom: 20px;
}

.section-headline {
  font-family: 'changeling-neo', serif;
  font-size: clamp(2.75rem, 4.5vw, 4.75rem);
  line-height: 0.95;
  color: var(--navy);
}

/* ── PILL BUTTONS ─────────────────────────────── */
.pill-btn {
  display: inline-block;
  font-family: 'founders-grotesk', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 14px 38px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pill-btn-dark {
  background: var(--navy);
  color: var(--sage);
  border: 1.5px solid var(--navy);
}

.pill-btn-dark:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
}

.pill-btn-outline {
  background: transparent;
  color: var(--sage);
  border: 1.5px solid rgba(228, 242, 200, 0.45);
}

.pill-btn-outline:hover {
  background: var(--sage);
  color: var(--burgundy);
  border-color: var(--sage);
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--sage);
  padding: 150px 52px 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  min-height: calc(100vh - 230px);
}

.hero-label {
  display: block;
  font-family: 'founders-grotesk', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--slate);
  margin-bottom: 32px;
}

.hero-headline {
  font-family: 'changeling-neo', serif;
  font-size: clamp(5rem, 10.5vw, 10rem);
  line-height: 0.87;
  color: var(--navy);
  margin-bottom: 40px;
  font-weight: 700;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 48px;
}

.hero-photo {
  position: absolute;
  bottom: -120px;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-photo img {
  height: 140vh;
  width: auto;
  mix-blend-mode: normal;
}

.hero-annotation {
  position: absolute;
  bottom: 44px;
  left: 52px;
  font-family: 'founders-grotesk', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--slate-lt);
  text-transform: lowercase;
}

/* ── TICKER ───────────────────────────────────── */
.ticker {
  background: var(--navy);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  animation: ticker-scroll 26s linear infinite;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--sage);
}

.ticker-hanger {
  height: 32px;
  width: auto;
  margin: -6px 0;
  mix-blend-mode: screen;
  opacity: 0.7;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── HOW IT WORKS ─────────────────────────────── */
.how {
  background: var(--white);
  padding: 108px 52px;
}

.how-header {
  max-width: 1280px;
  margin: 0 auto 80px;
}

.how-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px 1fr;
  grid-template-rows: auto auto;
  gap: 52px 72px;
  align-items: start;
}

.how-photo-col {
  grid-row: 1 / 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.how-photo-col img {
  width: 100%;
  max-width: 380px;
}

.step-num {
  display: block;
  font-family: 'changeling-neo', serif;
  font-size: 4.5rem;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 14px;
}

.how-step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}

.how-step p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.7;
  max-width: 300px;
}

/* ── OCCASIONS ────────────────────────────────── */
.occasions {
  background: var(--navy);
  padding: 108px 52px;
}

.occasions-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 460px 1fr;
  align-items: center;
  gap: 64px;
}

.occasions-label { color: var(--slate-lt); }

.occasions-headline {
  color: var(--sage);
  margin-bottom: 0;
}

.occ-wrap {
  position: relative;
}

/* Stage clips side peeks; center card covers side cards via z-index */
.occ-stage {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

/* Three absolute cards — left set by JS */
.occ-card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.55s,
              opacity 0.4s;
}

/* Center: full height, full brightness, on top */
.occ-card.is-center {
  top: 0;
  height: 100%;
  filter: brightness(1);
  z-index: 3;
  border-radius: 0;
}

/* Side: slightly shorter + dimmed, behind center */
.occ-card.is-side {
  top: 5%;
  height: 90%;
  filter: brightness(0.35);
  z-index: 1;
}

/* Exiting: invisible, lowest layer */
.occ-card.is-hidden {
  opacity: 0;
  filter: brightness(0);
  z-index: 0;
}

.occ-frame {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  max-width: none;
  z-index: 4;
  pointer-events: none;
  display: block;
  /* width + left set by JS */
}

.occ-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.occ-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 48, 73, 0.75);
  border: 1px solid rgba(228, 242, 200, 0.4);
  color: var(--sage);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.occ-arrow:hover {
  background: rgba(228, 242, 200, 0.15);
}

.occ-prev-btn { left: -20px; }
.occ-next-btn { right: -20px; }

.occ-dots {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}

.occ-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(228, 242, 200, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.occ-dot.active {
  background: var(--sage);
}

/* ── SUSTAINABILITY ───────────────────────────── */
.sustain {
  background: var(--sage);
  padding: 108px 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  max-width: 100%;
}

.sustain-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sustain-photo img {
  width: 100%;
  max-width: 500px;
  mix-blend-mode: normal;
}

.sustain-text p {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.8;
  max-width: 400px;
  margin-top: 28px;
}

/* ── SELLERS ──────────────────────────────────── */
.sellers {
  background: var(--burgundy);
  padding: 108px 52px;
}

.sellers-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}

.sellers-label { color: rgba(228, 242, 200, 0.45); }

.sellers-headline { color: var(--sage); }

.sellers-text p {
  font-size: 1rem;
  color: rgba(228, 242, 200, 0.72);
  line-height: 1.8;
  max-width: 400px;
  margin-top: 24px;
  margin-bottom: 44px;
}

.sellers-photo {
  display: flex;
  justify-content: center;
}

.sellers-photo img {
  width: 100%;
  max-width: 480px;
  border-radius: 4px;
  mix-blend-mode: normal;
}

/* ── DOWNLOAD CTA ─────────────────────────────── */
.download-cta {
  background: var(--navy);
  padding: 128px 52px;
  text-align: center;
}

.download-cta-inner {
  max-width: 580px;
  margin: 0 auto;
}

.download-label { color: var(--slate-lt); }

.download-cutout-left {
  position: absolute;
  bottom: 0;
  left: -20px;
  height: 80%;
  width: auto;
  pointer-events: none;
}

.download-cutout-right {
  position: absolute;
  top: -110px;
  right: -120px;
  height: 90%;
  width: auto;
  pointer-events: none;
}

.download-headline {
  color: var(--sage);
  margin-bottom: 20px;
}

.download-cta p {
  font-size: 1rem;
  color: var(--slate-lt);
  margin-bottom: 52px;
}

.download-badges {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-badges img {
  height: 54px;
  width: auto;
  transition: opacity 0.2s, transform 0.2s;
}

.download-badges a:hover img {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* ── FOOTER ───────────────────────────────────── */
.footer-v2 {
  background: var(--black);
  padding: 56px 52px 36px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 28px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 28px;
  width: auto;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: 'founders-grotesk', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--sage); }

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--sage); }

.footer-bottom p {
  font-family: 'founders-grotesk', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.18);
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 960px) {
  .nav { padding: 24px 32px; }
  .nav-scrolled { padding: 16px 32px; }

  .hero { padding: 130px 32px 72px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
  .hero-annotation { left: 32px; }

  .how { padding: 80px 32px; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .how-photo-col { display: none; }

  .occasions { padding: 80px 32px; }
  .occasions-layout { grid-template-columns: 1fr; gap: 44px; }
  .occ-stage { height: 460px; }

  .sustain { padding: 80px 32px; grid-template-columns: 1fr; }
  .sustain-photo { display: none; }

  .sellers { padding: 80px 32px; }
  .sellers-inner { grid-template-columns: 1fr; }
  .sellers-photo { display: none; }

  .download-cta { padding: 96px 32px; }
  .download-cutout-left { display: none; }
  .download-cutout-right { display: none; }

  .section-bridge { display: none; }

  .site-icon { display: none; }

  .footer-v2 { padding: 48px 32px 28px; }
  .footer-top { flex-direction: column; gap: 32px; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-social { justify-content: center; }
}

@media (max-width: 640px) {
  .nav { padding: 20px 24px; }
  .nav-scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 110px 24px 56px; }
  .hero-headline { font-size: clamp(3.75rem, 18vw, 5.5rem); }
  .hero-annotation { display: none; }

  .how { padding: 64px 24px; }
  .how-header { margin-bottom: 52px; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }

  .occasions { padding: 64px 24px; }
  .occ-stage { height: 340px; }

  .sustain { padding: 64px 24px; }
  .sustain-text p { max-width: 100%; }

  .sellers { padding: 64px 24px; }
  .sellers-text p { max-width: 100%; }

  .download-cta { padding: 80px 24px; }

  .footer-v2 { padding: 40px 24px 24px; }
  .footer-nav { gap: 14px; }
}

