/* ── Shared tokens (mirrors style.css) ── */
:root {
  --bg: #FAF6EE;
  --surface: #F3ECDD;
  --surface2: #E8DCC4;
  --border: rgba(60, 40, 20, 0.08);
  --border2: rgba(60, 40, 20, 0.14);
  --text: #2A2520;
  --muted: #6E6E73;
  --accent: #B8956A;
  --accent2: #997748;
  --pink: #f2b8c6;
  --teal: #7ecec4;
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ── Utility ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent2);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  color: var(--text);
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin-top: 14px;
}

/* ── Scroll animations ──
   Premium reveal: blur + fade + subtle lift. Animates opacity, transform,
   and filter together with a single smooth easing. Each target only plays
   once (IntersectionObserver unobserves on first hit), and rootMargin: 50px
   means the blur resolves just as the element enters the viewport — so the
   user never sees a frozen blurred frame. */
[data-animate] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  filter: blur(8px);
  transition:
    opacity .7s cubic-bezier(0.16, 1, 0.3, 1),
    transform .7s cubic-bezier(0.16, 1, 0.3, 1),
    filter .7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

[data-animate].visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* Drop will-change once the animation has played to free GPU layers. */
[data-animate].visible {
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

[data-animate][data-delay="1"] {
  transition-delay: .1s;
}

[data-animate][data-delay="2"] {
  transition-delay: .2s;
}

[data-animate][data-delay="3"] {
  transition-delay: .3s;
}

[data-animate][data-delay="4"] {
  transition-delay: .4s;
}

[data-animate][data-delay="5"] {
  transition-delay: .5s;
}

[data-animate][data-delay="6"] {
  transition-delay: .6s;
}

[data-animate][data-delay="7"] {
  transition-delay: .7s;
}

[data-animate][data-delay="8"] {
  transition-delay: .8s;
}

[data-animate][data-delay="9"] {
  transition-delay: .9s;
}

[data-animate][data-delay="10"] {
  transition-delay: 1.0s;
}

/* ── Ad Slots ── */
.ad-slot {
  background: var(--surface2);
  border: 1px dashed var(--border2);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.ad-slot--top {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.ad-slot--mid {
  min-height: 100px;
  margin: 0 auto;
  max-width: var(--max-w);
  width: 100%;
  border-radius: var(--radius);
}

.ad-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .45;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(14, 14, 15, .82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo span {
  color: rgba(255, 255, 255, .7);
  font-style: italic;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: color .2s, background .2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.nav-cta {
  background: var(--accent);
  color: #1a1612 !important;
  font-weight: 500 !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  transition: background .2s !important;
}

.nav-cta:hover {
  background: var(--accent2) !important;
  color: #1a1612 !important;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--muted);
}

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 32px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* ── Background marquee (infinite scrolling photo strips) ──
   Sits behind hero-content + hero-visual. Low opacity so foreground text
   stays readable — the marquee is just texture, not the main subject. */
.hero-marquee {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.hero-marquee-track {
  display: flex;
  gap: 28px;
  align-items: center;             /* let each card keep its natural height */
  animation: hero-marquee-scroll 60s linear infinite;
  will-change: transform;
  padding: 0 20px;
}
@keyframes hero-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero-marquee:hover .hero-marquee-track { animation-play-state: paused; }

.mq-strip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 7px 14px;
  background: #fafaf6;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
  width: 90px;
}
.mq-strip:nth-child(odd)  { transform: rotate(-4deg); }
.mq-strip:nth-child(even) { transform: rotate(5deg); }
.mq-strip:nth-child(3n)   { transform: rotate(-2deg) translateY(-12px); }
.mq-strip:nth-child(5n)   { transform: rotate(7deg) translateY(8px); }
.mq-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center 28%;   /* anchor crop to the face area, not the middle */
  border-radius: 2px;
  /* Shimmer skeleton while the photo loads — way less awful than a blank
     box on slow networks. Replaced once the <img> fires `load`. */
  background:
    linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.5) 100%) #e6dfd0;
  background-size: 200% 100%;
  animation: mq-shimmer 1.6s ease-in-out infinite;
}
.mq-strip img.sb-loaded,
.mq-strip img[src][complete] {
  animation: none;
  background: none;
}
@keyframes mq-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.mq-strip--polaroid {
  background: #fff;
  width: 110px;
  padding: 10px 10px 28px;
  position: relative;
}
.mq-strip--polaroid img { aspect-ratio: 1/1; object-position: center 22%; }
.mq-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 14px;
  color: rgba(0,0,0,0.7);
}
.mq-strip--photocard {
  background: #fff;
  width: 80px;
  padding: 6px 6px 16px;
}
.mq-strip--photocard img { aspect-ratio: 3/4; object-position: center 18%; }
.mq-strip--y2k {
  background: #1a1a22;
  border: 2px solid;
  border-image: linear-gradient(135deg, #dde2ee 0%, #9aa0b4 50%, #f0f3fa 100%) 1;
  width: 85px;
}

/* ── Floating sparkles canvas — pure decoration ── */
.hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-sparkle {
  position: absolute;
  font-size: 18px;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 220, 180, 0.6));
}

/* Lift hero content + visual above the marquee/sparkles.
   Soft cream gradient backdrop on hero-content keeps the headline + sub
   readable even when polaroid cards from the marquee drift behind them. */
.hero-content {
  position: relative;
  z-index: 3;
  isolation: isolate;
}
.hero-content::before {
  content: '';
  position: absolute;
  inset: -20px -40px -20px -20px;
  z-index: -1;
  background: radial-gradient(ellipse 70% 80% at 30% 50%, rgba(250, 246, 238, 0.92) 0%, rgba(250, 246, 238, 0.7) 55%, rgba(250, 246, 238, 0) 100%);
  pointer-events: none;
}
.hero-visual  { position: relative; z-index: 2; }

/* Magnetic CTA hover state (GSAP drives the actual translate) */
.cta-primary { will-change: transform; }

/* On phones the hero compresses to a single column — drop the marquee
   opacity further so it doesn't fight with the headline + hero-visual. */
@media (max-width: 900px) {
  .hero-marquee { opacity: 0.18; }
  .mq-strip { width: 70px; padding: 5px 5px 10px; }
  .mq-strip--polaroid { width: 86px; padding: 7px 7px 22px; }
  .mq-strip--photocard { width: 62px; }
  .mq-strip--y2k { width: 66px; }
  .mq-caption { font-size: 11px; }
}

/* Touch devices don't have a hovering cursor — the parallax + magnetic
   listeners are no-ops there, but make sure transform from any leftover
   GSAP state doesn't stick. */
@media (hover: none) {
  .hero .cta-primary { transform: none !important; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fcf97;
  flex-shrink: 0;
  animation: blink 2s ease infinite;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── sc-row / sc-card ── */
.sc-row {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 24px 48px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  will-change: scroll-position;
}

.sc-row::-webkit-scrollbar {
  display: none;
}

.sc-card {
  flex-shrink: 0;
  width: 180px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sc-card:hover {
  transform: translateY(-4px);
}

.sc-card:hover .sc-frame {
  box-shadow: 0 4px 8px rgba(60, 40, 20, .06), 0 24px 48px -12px rgba(60, 40, 20, .25);
}

.sc-frame {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(60, 40, 20, .08), 0 16px 32px -10px rgba(60, 40, 20, .22);
  padding: 12px 12px 26px;
  transition: box-shadow .2s ease;
}

/* Per-mode bottom padding to mirror canvas footer proportions:
   strip modes have a 220px polaroid-style footer, polaroid/photocard have ~90px,
   grid layouts have minimal footer. */
.sc-frame:has(.sc-4cut),
.sc-frame:has(.sc-3cut),
.sc-frame:has(.sc-2cut) { padding-bottom: 38px; }

.sc-frame:has(.sc-9cut),
.sc-frame:has(.sc-diptych) { padding-bottom: 16px; }

.sc-frame:has(.sc-polaroid),
.sc-frame:has(.sc-double-polaroid),
.sc-frame:has(.sc-photocard) { padding-bottom: 22px; }

.sc-frame:has(.sc-6cut),
.sc-frame:has(.sc-3horiz),
.sc-frame:has(.sc-squaregrid),
.sc-frame:has(.sc-4plus1),
.sc-frame:has(.sc-grid4),
.sc-frame:has(.sc-single),
.sc-frame:has(.sc-1large3small) { padding-bottom: 16px; }


.sc-grid {
  display: grid;
  gap: 4px;
}

.sc-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* Aspect ratios match the actual photo-zone aspect of buildStrip output
   (W=1280, H=960; strip modes use cinematic crop pH=H*0.78=749). */
.sc-4cut          { grid-template-rows: repeat(4, 1fr); aspect-ratio: 0.42; }
.sc-3cut          { grid-template-rows: repeat(3, 1fr); aspect-ratio: 0.56; }
.sc-2cut          { grid-template-rows: repeat(2, 1fr); aspect-ratio: 0.84; }
.sc-6cut          { grid-template: repeat(3, 1fr) / repeat(2, 1fr); aspect-ratio: 0.89; }
.sc-3horiz        { grid-template-columns: repeat(3, 1fr); aspect-ratio: 2.27; }
.sc-squaregrid    { grid-template: 1fr 1fr / 1fr 1fr; aspect-ratio: 1.33; }
.sc-1large3small  { grid-template: 3fr 1fr / 1fr 1fr 1fr; aspect-ratio: 1.0; }
.sc-grid4         { grid-template: 1fr 1fr / 1fr 1fr; aspect-ratio: 1.33; }
.sc-4plus1        { grid-template: 1fr 1fr 1.4fr / 1fr 1fr; aspect-ratio: 0.85; gap: 4px; }
.sc-4plus1 img:nth-child(5) { grid-column: 1 / -1; }

/* Real preview cards — single rendered image instead of a stitched grid.
   The rendered file already contains the strip background and footer text,
   so we just need a borderless container that hugs the image. */
.sc-frame--real { padding: 0; overflow: hidden; background: #FAF6EE; }
.sc-preview { width: 100%; display: block; background: #ECE3D0; }
.sc-double-polaroid { grid-template-rows: 1fr 1fr; aspect-ratio: 0.65; }
.sc-single        { grid-template-columns: 1fr; aspect-ratio: 1.33; }
.sc-polaroid      { grid-template-columns: 1fr; aspect-ratio: 1.33; }
.sc-photocard     { grid-template-columns: 1fr; aspect-ratio: 1.33; }
.sc-gif           { grid-template-columns: 1fr; aspect-ratio: 1.33; position: relative; }
.sc-9cut          { grid-template: repeat(3, 1fr) / repeat(3, 1fr); aspect-ratio: 1; }
.sc-diptych       { grid-template-columns: 1fr 1fr; aspect-ratio: 1.78; }

/* Puri 4-Cut: slim Korean Photoism strip — flex column with explicit
   per-photo pixel sizes so the white frame hugs the strip and photos
   don't overflow. Mirrors the app.html treatment. */
.sc-frame:has(.sc-vertical4) {
  width: 110px;
  padding: 10px 10px 18px;
}
.sc-grid.sc-vertical4 {
  display: flex !important;
  flex-direction: column !important;
  width: 90px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  gap: 4px !important;
  grid-template-rows: none !important;
  max-width: none;
  max-height: none;
}
.sc-grid.sc-vertical4 img {
  width: 90px !important;
  height: 68px !important;
  flex: 0 0 68px !important;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

.sc-1large3small img:first-child { grid-column: 1 / -1; }

.sc-tilt3 {
  background: #5C0000;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  aspect-ratio: 0.42;
}

.sc-tilt3 img {
  flex: 1;
  width: 100%;
  object-fit: cover;
  border: 2px solid #000;
  display: block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}

.sc-tilt3 img:nth-child(1) {
  transform: rotate(-2deg);
}

.sc-tilt3 img:nth-child(2) {
  transform: rotate(2deg);
}

.sc-tilt3 img:nth-child(3) {
  transform: rotate(-2deg);
}

.sc-frame.is-tilt3 {
  background: transparent;
  padding: 0;
}

.sc-badge {
  position: absolute;
  top: -6px;
  right: 6px;
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #FAF6EE;
  background: #2A2520;
  border: 1px solid #E8DCC4;
  box-shadow: 0 4px 10px -2px rgba(42, 37, 32, .25);
  z-index: 2;
}

.sc-badge.try {
  background: #C9A07A;
  color: #2A2520;
  border: 1px solid #8B6F47;
  box-shadow: 0 4px 10px -2px rgba(201, 160, 122, .3);
}

.sc-gif-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .7);
  color: #fff;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}

.sc-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent2);
  text-align: center;
}

.sc-meta {
  font-size: 12px;
  color: #9A8E7E;
  text-align: center;
  line-height: 1.4;
}

/* Carousel arrows */
.sc-wrap {
  position: relative;
}

.sc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(60, 40, 20, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(60, 40, 20, .12);
  z-index: 3;
  transition: background .15s ease;
}

.sc-arrow:hover {
  background: #F3ECDD;
}

.sc-arrow.prev {
  left: 0;
}

.sc-arrow.next {
  right: 0;
}

.sc-arrow svg {
  color: #2A2520;
}

@media (max-width: 600px) {
  .sc-row {
    padding: 20px 24px;
    gap: 20px;
  }

  .sc-card {
    width: 150px;
  }

  .sc-arrow {
    display: none;
  }
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #1a1612;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.cta-primary:hover {
  background: var(--accent2);
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(184, 149, 106, 0.3);
}

.cta-primary:active {
  transform: scale(.98);
}

.cta-primary svg {
  flex-shrink: 0;
}

/* Equal-weight secondary primary (Upload Photos) — same size, inverted color */
.cta-primary--alt {
  background: var(--text);
  color: var(--bg);
}
.cta-primary--alt:hover {
  background: #1a1612;
  box-shadow: 0 4px 16px rgba(42, 37, 32, 0.3);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  padding: 14px 4px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  border: 2px solid var(--border2);
  border-radius: 15px;
}

.cta-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Quiet text-only variant for "See how it works" — no border box,
   so the two big primary CTAs read as the focal pair. */
.cta-secondary--small {
  border: none;
  padding: 14px 6px;
  font-size: 13px;
}
.cta-secondary--small:hover {
  border: none;
  color: var(--text);
}

/* ── Hero eyebrow ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 18px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border2);
  border-radius: 9999px;
  width: fit-content;
}

/* ── Trust line ── */
.hero-trust-line {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 520px;
}

/* ── Strip visual mockup ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.strips-scene {
  position: relative;
  width: 380px;
  height: 460px;
}

.strip-card {
  position: absolute;
  background: #f8f6f2;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35), 0 4px 12px rgba(0, 0, 0, .2);
  /* Promote to GPU layer so transforms/floats don't repaint shadows. */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes float-a {
  0%, 100% { transform: var(--rest); }
  50%      { transform: var(--rest-up); }
}
@keyframes float-b {
  0%, 100% { transform: var(--rest); }
  50%      { transform: var(--rest-up); }
}
@keyframes float-c {
  0%, 100% { transform: var(--rest); }
  50%      { transform: var(--rest-up); }
}

/* ── Staggered entrance animation ── */
@keyframes strip-enter-a {
  0%   { opacity: 0; transform: rotate(-4deg) translate(-30px, 30px); }
  100% { opacity: .65; transform: rotate(12deg) translate(0, 0); }
}
@keyframes strip-enter-b {
  0%   { opacity: 0; transform: rotate(4deg)  translate(40px, 30px); }
  100% { opacity: 1; transform: rotate(-8deg) translate(0, 0); }
}
@keyframes strip-enter-c {
  0%   { opacity: 0; transform: rotate(-12deg) translate(0, 60px); }
  100% { opacity: 1; transform: rotate(3deg)   translate(0, 0); }
}

/* ── Card 1: 6-Cut Grid (back, dimmed) ───────────────────────── */
.strip-card--6cut {
  width: 160px;
  right: 0;
  top: 0;
  padding: 8px 8px 16px;
  --rest: rotate(12deg) translateY(0);
  --rest-up: rotate(12deg) translateY(-7px);
  transform: var(--rest);
  opacity: .65;
  z-index: 1;
  animation:
    strip-enter-a .9s cubic-bezier(0.16, 1, 0.3, 1) .15s both,
    float-a 8s ease-in-out 1s infinite;
}
.strip-card--6cut .grid-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.strip-card--6cut .strip-photo {
  aspect-ratio: 4/3;
  border-radius: 4px;
}

/* ── Card 2: Polaroid (mid, instant-print) ───────────────────── */
.strip-card--polaroid {
  width: 170px;
  left: 0;
  top: 30px;
  padding: 12px 12px 56px;
  background: #ffffff;
  --rest: rotate(-8deg) translateY(0);
  --rest-up: rotate(-8deg) translateY(-6px);
  transform: var(--rest);
  z-index: 2;
  animation:
    strip-enter-b .9s cubic-bezier(0.16, 1, 0.3, 1) .35s both,
    float-b 9s ease-in-out 1.2s infinite;
}
.strip-card--polaroid .strip-photo {
  aspect-ratio: 1/1;
  border-radius: 3px;
}
.strip-card--polaroid .polaroid-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 12px;
  text-align: center;
}
.strip-card--polaroid .strip-brand {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 16px;
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
}
.strip-card--polaroid .strip-date {
  font-size: 9px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* ── Card 3: 4-Cut Strip with Y2K Chrome (front, hero card) ── */
.strip-card--y2k {
  width: 140px;
  left: 130px;
  top: 50px;
  padding: 10px;
  background: #1a1a22;
  border: 3px solid;
  border-image: linear-gradient(135deg, #dde2ee 0%, #9aa0b4 25%, #f0f3fa 50%, #8a90a8 75%, #cfd5e2 100%) 1;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 14px 40px rgba(0, 0, 0, .4),
    0 6px 14px rgba(0, 0, 0, .25);
  --rest: rotate(3deg) translateY(0);
  --rest-up: rotate(3deg) translateY(-8px);
  transform: var(--rest);
  z-index: 3;
  animation:
    strip-enter-c 1s cubic-bezier(0.16, 1, 0.3, 1) .55s both,
    float-c 7s ease-in-out 1.5s infinite;
}
.strip-card--y2k .strip-photo {
  aspect-ratio: 4/3;
  border-radius: 2px;
}
.strip-card--y2k .strip-brand--y2k {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 13px;
  color: #dde2ee;
  text-align: center;
  letter-spacing: 0.12em;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.y2k-spark {
  position: absolute;
  font-size: 18px;
  color: #f0f3fa;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  animation: sparkle 2.4s ease-in-out infinite;
  pointer-events: none;
}
.y2k-spark--tl { top: -8px; left: -10px; }
.y2k-spark--br { bottom: 14px; right: -10px; animation-delay: 1.2s; }
@keyframes sparkle {
  0%, 100% { opacity: .4; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1.15); }
}

/* Cycles the polaroid photo through 4 different BopBooth filters
   so visitors see the filter system without reading about it. */
@keyframes filter-cycle {
  0%, 22%   { filter: sepia(35%) saturate(1.4) brightness(1.05); }      /* Vintage */
  25%, 47%  { filter: grayscale(100%) contrast(1.1); }                  /* B&W */
  50%, 72%  { filter: brightness(1.18) saturate(1.15); }                /* Glow */
  75%, 97%  { filter: saturate(1.6) contrast(1.2); }                    /* Punch */
  100%      { filter: sepia(35%) saturate(1.4) brightness(1.05); }
}
.filter-cycle {
  animation: filter-cycle 12s ease-in-out 1.5s infinite;
}

.strip-photo {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(90deg, #d8d2c4 0%, #ece6d6 50%, #d8d2c4 100%);
  background-size: 200% 100%;
  /* Run shimmer for ~3s max; never animate forever — saves battery and
     prevents the gradient repaint loop from pegging the CPU on slow phones. */
  animation: sb-shimmer 1.5s ease-in-out 2;
}

.strip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  transition: opacity .35s ease;
}

.strip-photo img.sb-loaded {
  opacity: 1;
}

/* Stop shimmering once the image has loaded */
.strip-photo:has(img.sb-loaded) {
  background: #ddd;
  animation: none;
}

/* ── Skeleton shimmer for layout carousel previews ────────────── */
.sc-frame--real {
  background: linear-gradient(90deg, #ECE3D0 0%, #F7EFDB 50%, #ECE3D0 100%) !important;
  background-size: 200% 100% !important;
  animation: sb-shimmer 1.5s ease-in-out 2;
}

.sc-frame--real:has(img.sb-loaded) {
  background: #FAF6EE !important;
  animation: none;
}

.sc-preview {
  opacity: 0;
  transition: opacity .35s ease;
}

.sc-preview.sb-loaded {
  opacity: 1;
}

@keyframes sb-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.strip-brand {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.9);
  letter-spacing: .08em;
  text-transform: lowercase;
  margin-top: 4px;
}

.strip-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 160, .18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ── Layout Formats section ── */
.formats-section {
  padding: 72px 32px 80px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.formats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.formats-header {
  text-align: center;
  margin-bottom: 48px;
}

.formats-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Horizontally scrollable row of format cards */
.formats-scroll-wrap {
  position: relative;
  /* fade edges to hint scroll */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
}

.formats-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 24px 16px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  justify-content: center;
  flex-wrap: wrap;
}

.formats-row::-webkit-scrollbar {
  display: none;
}

/* Individual format card */
.format-card {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 16px;
  width: 130px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all .25s ease;
}

.format-card:hover {
  border-color: var(--accent2);
  background: rgba(232, 196, 160, .06);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

.format-card--wide {
  width: 156px;
}

/* Photo preview in format card */
.fc-preview {
  display: flex;
  gap: 3px;
  width: 100%;
}

.fc-preview img {
  object-fit: cover;
  object-position: center top;
  border-radius: 3px;
  flex-shrink: 0;
}

.fc--4cut {
  flex-direction: column;
}

.fc--4cut img {
  width: 100%;
  height: 26px;
}

.fc--2cut {
  flex-direction: column;
}

.fc--2cut img {
  width: 100%;
  height: 50px;
}

.fc--6cut {
  flex-wrap: wrap;
}

.fc--6cut img {
  width: calc(50% - 1.5px);
  height: 32px;
}

.fc--3horiz {
  flex-direction: row;
}

.fc--3horiz img {
  flex: 1;
  height: 100px;
}

.fc--squaregrid {
  flex-wrap: wrap;
}

.fc--squaregrid img {
  width: calc(50% - 1.5px);
  height: 54px;
}

.fc--polaroid {
  flex-direction: column;
  background: #fff;
  padding: 4px 4px 20px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.fc--polaroid img {
  width: 100%;
  height: 88px;
  border-radius: 1px;
}

.fc--photocard {
  flex-direction: column;
  background: #fff;
  padding: 7px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.fc--photocard img {
  width: 100%;
  height: 80px;
  border-radius: 2px;
}

.fc--gif {
  position: relative;
  width: 100%;
}

.fc--gif img {
  width: 100%;
  height: 98px;
  border-radius: 4px;
  display: block;
}

.fc--gif::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/22px no-repeat;
}

.fc-label {
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

.fc-count {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .04em;
  text-align: center;
}

@media (max-width: 960px) {
  .formats-section {
    padding: 56px 0 64px;
  }

  .formats-header {
    padding: 0 20px;
    margin-bottom: 32px;
  }

  .formats-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 4px 20px 16px;
  }

  .format-card {
    width: 110px;
  }

  .format-card--wide {
    width: 132px;
  }

  .fc--4cut img {
    height: 22px;
  }

  .fc--2cut img {
    height: 42px;
  }

  .fc--squaregrid img {
    height: 44px;
  }

  .fc--polaroid {
    padding-bottom: 16px;
  }

  .fc--polaroid img {
    height: 74px;
  }

  .fc--photocard img {
    height: 68px;
  }

  .fc--gif img {
    height: 82px;
  }

  .fc--3horiz img {
    height: 84px;
  }
}

@media (max-width: 480px) {
  .format-card {
    width: 96px;
    padding: 10px 8px 12px;
    gap: 7px;
  }

  .format-card--wide {
    width: 114px;
  }

  .fc-label {
    font-size: 11px;
  }

  .fc-count {
    font-size: 9px;
  }
}

/* ── Features ── */
.features {
  padding: 100px 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .25s, transform .25s;
}

.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(232, 196, 160, .1);
  border: 1px solid rgba(232, 196, 160, .2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-icon img {
  opacity: 0.85;
  filter: brightness(1.2);
}

.feature-card:hover .feature-icon img {
  opacity: 1;
  transform: scale(1.08);
}

.feature-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── Visual showcase (replaces feature cards) ── */
.vs-block {
  max-width: 980px;
  margin: 0 auto 48px;
}
.vs-block-head {
  text-align: center;
  margin-bottom: 24px;
}
.vs-block-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
.vs-block-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Filter circles row */
.vs-filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.vs-filter-row::-webkit-scrollbar { display: none; }
.vs-filter {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  scroll-snap-align: start;
}
.vs-filter-img {
  width: 72px; height: 72px;
  border-radius: 50%;
  background-image: url('../assets/sample.webp');
  background-size: cover;
  background-position: center;
  border: 2.5px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.vs-filter:hover .vs-filter-img {
  transform: scale(1.06);
  border-color: var(--accent);
}
.vs-filter span {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Apply each filter to its preview thumb */
.vs-filter-img[data-filter="none"]     { filter: none; }
.vs-filter-img[data-filter="bw"]       { filter: grayscale(100%) contrast(1.1); }
.vs-filter-img[data-filter="vintage"]  { filter: sepia(60%) contrast(1.1) brightness(1.05) saturate(0.8); }
.vs-filter-img[data-filter="chrome"]   { filter: saturate(0.6) contrast(1.25) brightness(1.05) hue-rotate(190deg); }
.vs-filter-img[data-filter="kawaii"]   { filter: saturate(1.1) brightness(1.12) contrast(0.95) hue-rotate(-12deg); }
.vs-filter-img[data-filter="noir"]     { filter: grayscale(100%) contrast(1.5) brightness(0.85); }
.vs-filter-img[data-filter="sunset"]   { filter: sepia(40%) saturate(1.6) hue-rotate(-20deg) brightness(1.05); }
.vs-filter-img[data-filter="vhs"]      { filter: saturate(1.4) contrast(1.15) brightness(1.05) hue-rotate(-6deg); }
.vs-filter-img[data-filter="dreamy"]   { filter: saturate(1.2) brightness(1.12) contrast(0.95); }
.vs-filter-img[data-filter="cinematic"]{ filter: saturate(1.15) contrast(1.18) brightness(0.97) hue-rotate(-8deg); }

.vs-filter-more {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--surface, #18181b);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  border: 2px dashed rgba(232,196,160,0.5);
  text-transform: uppercase;
  line-height: 1.1;
}
.vs-filter-more span {
  font-size: 9px;
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.7;
}

/* Frame chips */
.vs-frame-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 4px;
}
.vs-frame {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.08);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vs-frame:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
.vs-frame-emoji { font-size: 18px; line-height: 1; }
.vs-frame[data-frame="y2k"]        { background: linear-gradient(135deg,#e8e8f0,#fff,#f0e0f0); }
.vs-frame[data-frame="coquette"]   { background: linear-gradient(135deg,#fde2ec,#fff7fa); }
.vs-frame[data-frame="retro"]      { background: #2a2520; color: #f4a460; border-color: #f4a460; }
.vs-frame[data-frame="heart"]      { background: linear-gradient(135deg,#ffe5ec,#fff5f7); }
.vs-frame[data-frame="valentine"]  { background: linear-gradient(135deg,#ffd5db,#fff); color: #c8313a; }
.vs-frame[data-frame="birthday"]   { background: linear-gradient(135deg,#fff4d2,#fff); }
.vs-frame[data-frame="graduation"] { background: linear-gradient(135deg,#dde7f0,#fff); }
.vs-frame[data-frame="holiday"]    { background: linear-gradient(135deg,#dff0e0,#fff); }
.vs-frame[data-frame="newyear"]    { background: linear-gradient(135deg,#2a2520,#3a3530); color: var(--accent); border-color: rgba(232,196,160,0.4); }
.vs-frame-more { background: var(--surface, #f3ecdd); border-style: dashed; opacity: 0.85; }

/* Quick stats row */
.vs-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 1180px;
  margin: 56px auto 0;
}
.vs-stat {
  text-align: center;
  padding: 24px 14px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.vs-stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.vs-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.vs-stat-label span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 720px) {
  .vs-block-title { font-size: 22px; }
  .vs-filter-img { width: 62px; height: 62px; }
  .vs-filter-more { width: 62px; height: 62px; font-size: 16px; }
  .vs-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 36px; }
  /* 6 cards on mobile → clean 2×3 grid, no need to stretch any single card */
  .vs-stat { padding: 18px 10px; border-radius: 14px; }
  .vs-stat-num { font-size: 28px; }
  .vs-frame { padding: 8px 14px; font-size: 12px; }
}

/* ── Community / Tag us ── */
.community {
  padding: 80px 32px;
}
.community-inner {
  max-width: 920px;
  margin: 0 auto;
}
.community-card {
  text-align: center;
  background: linear-gradient(135deg, #fdf6f0 0%, #fce8ee 100%);
  border-radius: 28px;
  padding: 56px 32px 48px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 6px 30px rgba(192, 96, 112, 0.08);
}
.community-card .section-title {
  margin-bottom: 18px;
}
.community-card .section-title em {
  color: var(--accent2);
  font-style: italic;
}
.community-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #5a4a40;
  max-width: 560px;
  margin: 0 auto 32px;
}
.community-sub strong {
  color: var(--accent2);
  font-weight: 600;
}
.community-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.community-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.08);
  color: #2a2520;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.community-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.community-social.tiktok:hover { background: #000; color: #fff; }
.community-social.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}
.community-social.facebook:hover { background: #1877F2; color: #fff; }
.community-social.twitter:hover { background: #000; color: #fff; }
.community-hint {
  font-size: 13px;
  color: #8a6a5e;
  margin: 0;
}
.community-hint strong {
  color: #c06070;
  font-weight: 700;
}

@media (max-width: 640px) {
  .community { padding: 60px 16px; }
  .community-card { padding: 40px 22px 32px; border-radius: 22px; }
  .community-socials { gap: 8px; }
  .community-social { padding: 10px 16px; font-size: 13px; }
  .community-sub { font-size: 15px; }
}

/* ── How it works ── */
.how {
  padding: 100px 32px;
}

.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.how-header {
  max-width: 520px;
  margin-bottom: 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border2) 50%, var(--accent) 100%);
  opacity: .35;
}

.step {
  padding: 0 24px;
  text-align: center;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--accent);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── Mid CTA Banner ── */
.cta-banner {
  padding: 80px 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-banner-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}

.cta-banner h2 em {
  font-style: italic;
  color: var(--accent);
}

.cta-banner p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── FAQ ── */
.faq {
  padding: 100px 32px;
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-header {
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s;
}

.faq-item.open {
  border-color: var(--border2);
}

.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q svg {
  flex-shrink: 0;
  transition: transform .3s ease;
  color: var(--muted);
}

.faq-item.open .faq-q svg {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  padding: 0 24px;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.footer-logo span {
  color: var(--muted);
  font-style: italic;
  font-size: 16px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.footer-note {
  font-size: 11px;
  color: var(--muted);
  opacity: .85;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}

/* ── Animations ── */
@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .4
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px)
  }

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

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

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

.nav {
  animation: fadeDown .5s ease both;
}

/* ── Mobile ── */

/* Tablet: 960px stack hero, single-col features */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 60px 24px 40px;
    gap: 40px;
    text-align: center;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    padding: 8px 20px 24px;
  }

  .strips-scene {
    height: 440px;
    width: 340px;
    margin: 0 auto;
  }

  .strip-card--6cut    { width: 140px; right: 0; top: 0; }
  .strip-card--polaroid { width: 150px; left: 0; top: 30px; }
  .strip-card--y2k     { width: 130px; left: 110px; top: 50px; }

  .hero-trust-line {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .steps::before {
    display: none;
  }

  .step {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
  }

  .step-num {
    flex-shrink: 0;
    margin: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .container {
    padding: 0 20px;
  }

  .features {
    padding: 60px 20px;
  }

  .how {
    padding: 60px 20px;
  }

  .cta-banner {
    padding: 60px 20px;
  }

  .faq {
    padding: 60px 20px;
  }
}

/* Phone: 640px hide desktop nav, tighten hero */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .hero {
    padding: 40px 20px 28px;
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-sub {
    font-size: 15px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-primary {
    width: 100%;
    justify-content: center;
  }

  .footer {
    padding: 40px 20px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* Small phone: 480px tightest layout */
@media (max-width: 480px) {
  .hero {
    padding: 32px 16px 24px;
  }

  .hero-badge {
    font-size: 11px;
  }

  /* Strip visual: smaller, tighter offsets on phone */
  .strips-scene {
    height: 380px;
    width: 290px;
  }

  .strip-card--6cut    { width: 120px; right: 0; top: 0; padding: 6px 6px 12px; }
  .strip-card--polaroid { width: 130px; left: 0; top: 24px; padding: 10px 10px 44px; }
  .strip-card--y2k     { width: 110px; left: 90px; top: 44px; padding: 8px; gap: 5px; }

  .strip-brand {
    font-size: 8px;
  }
  .strip-card--polaroid .strip-brand { font-size: 13px; }
  .strip-card--y2k .strip-brand--y2k { font-size: 10px; }
  .strip-card--polaroid .strip-date { font-size: 8px; }

  /* Footer full single-column */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Features 1-col already, just tighten padding */
  .features {
    padding: 48px 16px;
  }

  .feature-card {
    padding: 22px 18px;
  }

  .how {
    padding: 48px 16px;
  }

  .cta-banner {
    padding: 48px 16px;
  }

  .faq {
    padding: 48px 16px;
  }

  .faq-q {
    font-size: 14px;
    padding: 16px 18px;
  }

  .faq-item.open .faq-a {
    padding: 0 18px 16px;
  }

  /* Nav */
  .nav-inner {
    padding: 0 16px;
    height: 56px;
  }

  .nav-logo {
    font-size: 18px;
  }

  /* CTA buttons full-width */
  .cta-pair {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-primary {
    text-align: center;
    justify-content: center;
    padding: 15px 20px;
  }

  /* Inner pages */
  .page-hero {
    padding: 36px 16px 32px;
  }

  .page-body {
    padding: 32px 16px 56px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   INNER PAGES  (privacy, about, contact, terms)
   ═══════════════════════════════════════════════════════ */

/* Page hero banner */
.page-hero {
  padding: 72px 32px 64px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.page-hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-hero-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Prose body */
.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.prose-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.prose-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.prose-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--text);
}

.prose-section h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 20px 0 8px;
  letter-spacing: .02em;
}

.prose-section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 12px;
}

.prose-section p:last-child {
  margin-bottom: 0;
}

.prose-section ul,
.prose-section ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.prose-section li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.prose-section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 196, 160, .3);
  transition: border-color .2s;
}

.prose-section a:hover {
  border-color: var(--accent);
}

.prose-highlight {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 16px 0;
}

.prose-highlight p {
  margin: 0;
  font-size: 13px;
}

/* About page cards */
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.about-feature-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.about-feature-card .icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.about-feature-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.about-feature-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.contact-info-item .ci-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(232, 196, 160, .1);
  border: 1px solid rgba(232, 196, 160, .2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.contact-info-item .ci-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-info-item .ci-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.contact-info-item .ci-val {
  font-size: 14px;
  color: var(--text);
}

.contact-info-item a {
  color: var(--accent);
  text-decoration: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.form-input,
.form-textarea {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color .2s;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  opacity: .5;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #1a1612;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background .22s, transform .2s;
  width: 100%;
  justify-content: center;
}

.form-submit:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  opacity: .6;
  text-align: center;
  margin-top: 10px;
}

/* Quick links on contact */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
  transition: border-color .2s, color .2s;
}

.quick-link:hover {
  border-color: var(--border2);
  color: var(--text);
}

.quick-link svg {
  flex-shrink: 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .page-hero {
    padding: 48px 20px 40px;
  }

  .page-body {
    padding: 40px 20px 60px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Accessibility: Reduced Motion ── */
[data-animate] {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .strip-card, .y2k-spark, .filter-cycle {
    animation: none !important;
  }
  .sc-card, .cta-primary {
    transition-duration: 0.01s !important;
    transform: none !important;
  }
}
