/* Homepage refresh v3 - stronger radii, pixel hero, red library accent, Dela display */

#viewGallery {
  font-synthesis: none;
}

body:has(#viewGallery) {
  background: #09090b;
}
body:has(#viewGallery) .bg-mesh,
body:has(#viewGallery) .bg-grid {
  display: none;
}
body:has(#viewGallery) .site-footer {
  background: #09090b;
  border-top-color: #ffffff14;
}

#viewGallery {
  --home-r: 20px;
  --home-r-lg: 20px;
  --home-r-xl: 20px;
  background: #09090b;
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Kill staggered reveal hardcuts on homepage - same end look, no laggy pop-in */
#viewGallery .reveal:not(.hr),
#viewGallery .reveal.is-in:not(.hr) {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

#viewGallery .hero {
  isolation: isolate;
  overflow: clip;
  padding: 120px 0 72px;
  border-bottom: 0;
  background: #09090b;
  position: relative;
  min-height: min(92svh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#viewGallery .hero-pixels {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#viewGallery .hero-pixels canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
}
#viewGallery .hero-pixels-fade {
  position: absolute;
  inset: 0;
  /* Soft veil - keep stage side open so brand-blue pixels read clearly */
  background:
    linear-gradient(90deg, #09090b 0%, #09090bf2 28%, #09090baa 48%, #09090b40 70%, #09090b00 100%),
    linear-gradient(0deg, #09090bcc, transparent 42%);
  pointer-events: none;
}

#viewGallery .hero > .wrap {
  width: min(100% - 32px, var(--wrap, 1320px));
  max-width: none;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Desktop scroll zoom 133%→100%. Mobile: no zoom (overflow). */
#viewGallery .hero-zoom {
  transform: scale(1);
  transform-origin: center center;
  will-change: auto;
  backface-visibility: hidden;
  animation: none !important;
}

@media (min-width: 981px) {
  #viewGallery .hero-zoom,
  html.fm-js-scroll-zoom #viewGallery .hero-zoom {
    transform: scale(1.33);
    transform-origin: center 42%;
    will-change: transform;
  }
}
#viewGallery .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: center;
  min-height: min(58svh, 560px);
  overflow: visible;
}
#viewGallery .hero-copy { max-width: 640px; padding: 12px 0 8px; overflow: visible; }
#viewGallery .hero-copy > * { animation: none; opacity: 1; }
#viewGallery .hero-copy .kicker {
  margin: 0 0 18px;
  color: #3264f0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
#viewGallery .hero-copy .kicker::before { display: none; }
#viewGallery .hero h1 {
  max-width: 16ch;
  font-family: "Dela Gothic One", var(--display, fantasy);
  font-size: clamp(40px, 5.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  font-weight: 400;
  text-wrap: balance;
}
#viewGallery .hero-lead {
  max-width: 48ch;
  margin-top: 18px;
  color: #dedee3;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 450;
}
#viewGallery .hero-actions { margin-top: 20px; gap: 10px; }
#viewGallery .hero-actions .btn {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 20px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}
#viewGallery .hero-points {
  margin-top: 18px;
  gap: 10px 18px;
  color: #c5c7cf;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  overflow: visible;
  flex-wrap: wrap;
}
#viewGallery .hero-points > span {
  overflow: visible;
  white-space: nowrap;
}
#viewGallery .hero-points svg { width: 15px; height: 15px; color: #93d6a6; flex: 0 0 auto; }

#viewGallery .hero-stage {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
  margin-right: -20px;
  overflow: visible;
}
#viewGallery .hero-video-card {
  width: 75%;
  max-width: none;
  aspect-ratio: 16 / 10;
  border-radius: var(--home-r-xl);
  overflow: hidden;
  border: 1px solid #ffffff2a;
  background: #0b0b0e;
  box-shadow:
    0 24px 60px #00000088,
    inset 0 1px 0 #ffffff22;
}
#viewGallery .hero-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#viewGallery .trust {
  --trust-p: 0;
  margin: 0;
  padding: 80px 0 72px;
  border: 0;
  border-top: 1px solid rgba(239, 68, 68, calc(0.35 + 0.5 * var(--trust-p)));
  border-bottom: 1px solid rgba(239, 68, 68, calc(0.35 + 0.5 * var(--trust-p)));
  background: transparent;
  overflow: visible;
  position: relative;
  isolation: isolate;
  box-shadow: none;
}
#viewGallery .trust-glow {
  display: none;
}
#viewGallery .trust-unity {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  overflow: visible;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: calc(0.18 + 0.82 * var(--trust-p));
  transform: translate3d(0, calc((1 - var(--trust-p)) * 64px), 0) scale(calc(0.78 + 0.22 * var(--trust-p)));
  will-change: transform, opacity;
}
#viewGallery .trust-unity-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: visible;
  min-width: 0;
  width: 100%;
}
#viewGallery .trust-unity-kicker {
  margin: 0;
  color: #ef4444;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: calc(0.02em + 0.06em * var(--trust-p));
  text-transform: none;
  font-weight: 700;
  overflow: visible;
  opacity: calc(0.2 + 0.8 * var(--trust-p));
  transform: translate3d(0, calc((1 - var(--trust-p)) * 16px), 0);
}
#viewGallery .trust-unity-title {
  margin: 0;
  font-family: "Dela Gothic One", var(--display, fantasy);
  font-size: clamp(42px, 6.2vw, 72px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: calc(-0.04em + 0.03em * var(--trust-p));
  color: #fff;
  overflow: visible;
  padding: 0;
  text-align: center;
  text-wrap: balance;
  transform-origin: center center;
  opacity: calc(0.2 + 0.8 * var(--trust-p));
  transform: scale(calc(0.72 + 0.36 * var(--trust-p)));
  filter: none;
  will-change: transform, opacity;
}
#viewGallery .trust-unity-note {
  max-width: 46rem;
  margin: 0;
  padding: 0 12px;
  color: #c4c5cb;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 450;
  text-align: center;
  opacity: calc(0.15 + 0.85 * var(--trust-p));
  transform: translate3d(0, calc((1 - var(--trust-p)) * 20px), 0);
}

#viewGallery .section { padding: 72px 0 0; }
#viewGallery #library { padding-bottom: 96px; }
#viewGallery .section-head { align-items: flex-end; margin-bottom: 24px; }
#viewGallery .section-head .kicker {
  margin-bottom: 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #3264f0;
}
#viewGallery .section-head .kicker::before { display: none; }
#viewGallery .section-head h2 {
  font-family: "Dela Gothic One", var(--display, fantasy);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 400;
}
#viewGallery .section-head .sub {
  margin-top: 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
#viewGallery .count-pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 20px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  background: #ffffff0a;
}
#viewGallery .catalog-toolbar { gap: 12px; margin-bottom: 18px; }
#viewGallery .search { max-width: 420px; }
#viewGallery .search input {
  min-height: 46px;
  border: 1px solid #ffffff27;
  border-radius: 20px;
  background: #151518;
  box-shadow: none;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
}
#viewGallery .search input:focus { border-color: #3264f0; box-shadow: 0 0 0 3px #3264f02a; }
#viewGallery .chips {
  gap: 6px;
  padding: 5px;
  border: 1px solid #ffffff20;
  border-radius: 20px;
  background: #151518;
}
#viewGallery .chip,
#viewGallery .chip:nth-child(n),
#viewGallery .chip:hover,
#viewGallery .chip.active {
  --kind: #3264f0;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 20px;
  background: transparent !important;
  box-shadow: none !important;
  color: #bdbdc4;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  border: 0;
}
#viewGallery .chip::before { display: none !important; }
#viewGallery .chip:hover { color: #fff; background: #ffffff0b !important; }
#viewGallery .chip.active {
  color: #fff !important;
  background: #3264f0 !important;
}

#viewGallery .card-grid { gap: 22px 16px; }
#viewGallery .anim-card {
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  transition: transform .18s;
}
#viewGallery .anim-card:hover,
#viewGallery .anim-card:focus-visible {
  transform: translateY(-3px);
  border: 0 !important;
  background: transparent;
  box-shadow: none;
  outline: none;
}
#viewGallery .anim-card:hover .thumb,
#viewGallery .anim-card:focus-visible .thumb {
  border-color: #3264f0;
  box-shadow: 0 18px 40px #00000055;
}
#viewGallery .thumb {
  background: #0b0b0e;
  border-radius: var(--home-r-lg);
  border: 1px solid #ffffff1e;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
/* Title under preview - no bar, only text */
#viewGallery .thumb-badge,
#viewGallery .card-body p,
#viewGallery .card-meta { display: none !important; }
#viewGallery .card-body {
  padding: 10px 2px 0;
  background: transparent;
  border: 0;
}
#viewGallery .card-body h3 {
  margin: 0;
  font-family: "Dela Gothic One", var(--display, fantasy);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #e8e8ec;
}

/* How it works - zigzag square pairs + hand-drawn links */
#viewGallery .how-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(110px, 15vh, 168px);
  max-width: 980px;
  margin: 8px auto 0;
  padding-bottom: 28px;
  overflow: visible;
}
#viewGallery .how-step {
  --how-p: 0;
  width: min(100%, 820px);
  opacity: calc(0.28 + 0.72 * var(--how-p));
  /* Scale from bottom - no downward translate (that clipped the last card). */
  transform: scale(calc(0.96 + 0.04 * var(--how-p)));
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  position: relative;
  z-index: 1;
  backface-visibility: hidden;
}
#viewGallery .how-step.is-right { align-self: flex-end; }
#viewGallery .how-step.is-left { align-self: flex-start; }

#viewGallery .how-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  border: 5px solid #ffffff38;
  background: #0c0c10;
  box-shadow:
    0 24px 60px #00000066,
    inset 0 1px 0 #ffffff10;
}

#viewGallery .how-glass {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0e;
  border-right: 1px solid #ffffff22;
}
#viewGallery .how-step.is-left .how-glass {
  border-right: 0;
  border-left: 1px solid #ffffff22;
}
#viewGallery .how-glass::after { display: none; }
#viewGallery .how-glass img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
}

#viewGallery .how-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(18px, 3.2vw, 32px);
  background:
    linear-gradient(165deg, #ffffff12, #ffffff05 40%, #ffffff02),
    #121218ee;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#viewGallery .how-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffffaa, #7ea0ff 42%, #3264f0 78%, #1a2758);
  box-shadow: inset 0 -2px 4px #00000055, inset 0 2px 3px #ffffff55, 0 6px 14px #00000044;
  color: #fff;
  font-family: "Dela Gothic One", var(--display, fantasy);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}
#viewGallery .how-step[data-how="2"] .how-num {
  background: radial-gradient(circle at 32% 28%, #ffffffaa, #e0a4f0 42%, #9b3db8 78%, #4a1a58);
}
#viewGallery .how-step[data-how="3"] .how-num {
  background: radial-gradient(circle at 32% 28%, #ffffffaa, #f0c48a 42%, #c47a2a 78%, #5a3410);
}
#viewGallery .how-card h3 {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  color: #f2f2f5;
}
#viewGallery .how-card p {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(12px, 1.35vw, 14px);
  line-height: 1.6;
  color: #b0b1b8;
}

#viewGallery .how-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(72%, 460px);
  height: 120px; /* JS stretches to visual gap between steps */
  margin: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
#viewGallery .how-link-path {
  stroke: #ef4444;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#howSketch) drop-shadow(0 0 6px #ef444466);
  opacity: 0.95;
}
#viewGallery .how-link-ghost {
  stroke: #ef4444;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.32;
  filter: url(#howSketch);
}

/* Hide legacy 3-col timeline if anything still references it */
#viewGallery .timeline { display: none; }

@media (max-width: 700px) {
  #viewGallery .how-flow { max-width: 420px; }
  #viewGallery .how-step,
  #viewGallery .how-step.is-right,
  #viewGallery .how-step.is-left {
    align-self: stretch;
    width: 100%;
  }
  #viewGallery .how-pair {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  #viewGallery .how-step.is-left .how-pair {
    grid-template-areas: "glass" "card";
  }
  #viewGallery .how-step.is-left .how-glass { grid-area: glass; border-left: 0; border-bottom: 1px solid #ffffff22; }
  #viewGallery .how-step.is-left .how-card { grid-area: card; }
  #viewGallery .how-step.is-right .how-glass { border-right: 0; border-bottom: 1px solid #ffffff22; }
  #viewGallery .how-flow { gap: clamp(88px, 12vh, 130px); }
  #viewGallery .how-link { width: 78%; }
}

#viewGallery .feature-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}
#viewGallery .feature-card { min-width: 0; }
#viewGallery .feature-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  border-radius: var(--home-r-lg);
}
#viewGallery .feature-card-copy { margin-top: 24px; }
#viewGallery .feature-card h3 {
  font-family: "Dela Gothic One", var(--display, fantasy);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin-bottom: 10px;
}
#viewGallery .feature-card p {
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
#viewGallery .cta {
  padding: 40px 28px;
  border: 1px solid #ffffff22;
  border-radius: var(--home-r-xl);
  background: #141417;
}
#viewGallery .cta h2 {
  font-family: "Dela Gothic One", var(--display, fantasy);
  font-size: 30px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
#viewGallery .cta p {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
}

@media (max-width: 980px) {
  #viewGallery .hero { min-height: auto; padding: 104px 0 48px; }
  #viewGallery .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; }
  #viewGallery .hero-stage { justify-content: flex-start; padding-top: 0; margin-right: 0; }
  #viewGallery .hero-video-card { width: 100%; max-width: none; }
  #viewGallery .hero-pixels-fade {
    background:
      linear-gradient(180deg, #09090bf2 0%, #09090bc8 40%, #09090b55 72%, #09090b1a 100%),
      linear-gradient(90deg, #09090be6, #09090b77 60%, #09090b22);
  }
  #viewGallery .how-link { width: 64%; }
}

@media (max-width: 700px) {
  #viewGallery .hero { padding-top: 104px; }
  #viewGallery .hero-copy { padding: 24px 0 12px; }
  #viewGallery .hero h1 { max-width: 15ch; }
  #viewGallery .hero-lead { max-width: 40ch; font-size: 15px; }
  #viewGallery .trust-unity { gap: 12px; }
  #viewGallery .section { padding-top: 56px; }
  #viewGallery #library { padding-bottom: 72px; }
  #viewGallery .search { max-width: none; }
  #viewGallery .catalog-toolbar { align-items: stretch; flex-direction: column; }
  #viewGallery .chips { align-self: flex-start; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  #viewGallery .chip { white-space: nowrap; }
  #viewGallery .feature-pair { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  #viewGallery .feature-card-copy { margin-top: 18px; }
  #viewGallery .cta { grid-template-columns: minmax(0, 1fr); padding: 28px 18px; }
}

@media (max-width: 480px) {
  #viewGallery .hero { padding-top: 98px; }
  #viewGallery .hero-copy { padding: 10px 0 8px; }
  #viewGallery .hero-actions { margin-top: 18px; }
  #viewGallery .hero-actions .btn { min-height: 42px; padding: 10px 14px; font-size: 12px; }
  #viewGallery .hero-points { display: none; }
  #viewGallery .trust { padding: 56px 0 48px; }
  #viewGallery .card-grid { grid-template-columns: minmax(0, 1fr); }
  #viewGallery .card-body p { min-height: 0; }
  #viewGallery .hero-video-card { border-radius: 20px; }
}

@media (max-width: 360px) {
  .site-header .header-right .btn-sm { display: none; }
  #viewGallery .hero { padding-top: 88px; }
  #viewGallery .hero-copy { padding: 0 0 6px; }
  #viewGallery .hero-lead { margin-top: 10px; font-size: 13px; line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
  #viewGallery .anim-card { transition: none; }
}

/* Centered library hero: editorial scale, warm and pink accents. */
#viewGallery .hero {
  min-height: min(100svh, 1080px);
  padding: clamp(132px, 13vh, 184px) 0 76px;
  background:
    radial-gradient(ellipse at 12% 28%, #ed5da519, transparent 42%),
    radial-gradient(ellipse at 90% 58%, #ffb74a15, transparent 40%),
    radial-gradient(ellipse at 50% 105%, #3264f018, transparent 55%), #09090b;
}
#viewGallery .hero::before, #viewGallery .hero::after {
  content: "✦";
  position: absolute;
  color: #ffa8d4;
  font-size: clamp(28px, 4vw, 62px);
  left: 9%; top: 32%;
  transform: rotate(-12deg);
  text-shadow: 0 0 60px #ed5da550;
  pointer-events: none;
}
#viewGallery .hero::after { left: auto; right: 9%; top: 60%; color: #ffc163; font-size: clamp(24px, 3vw, 44px); transform: rotate(16deg); }
#viewGallery .hero-pixels { opacity: .19; }
#viewGallery .hero-pixels-fade {
  background: radial-gradient(ellipse at center, #09090bf2 0%, #09090bc9 42%, #09090b50 80%), linear-gradient(0deg, #09090b, transparent 30%);
}
#viewGallery .hero > .wrap { width: min(100% - 40px, 1320px); position: relative; z-index: 1; }
#viewGallery .hero-inner { display: block; min-height: 0; }
#viewGallery .hero-copy { max-width: 1180px; margin: 0 auto; padding: 0; text-align: center; }
#viewGallery .hero-copy .kicker {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 0 30px; padding: 9px 16px;
  border: 1px solid #ed86b42b; border-radius: 999px;
  color: #e8b9d0; background: #f291bf08;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.hero-status-dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #ffba5c; box-shadow: 0 0 12px #ffba5c80; }
#viewGallery .hero h1 {
  max-width: none; margin: 0; font-size: clamp(36px, 5.5vw, 82px);
  line-height: 1.18; letter-spacing: -.035em; text-wrap: initial;
}
#viewGallery .hero h1 > span { display: block; }
#viewGallery .hero-title-accent {
  background: linear-gradient(100deg, #ffc47b 12%, #ffafca 48%, #ea8acb 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#viewGallery .hero-actions { justify-content: center; margin: 36px 0 0; }
#viewGallery .hero-lead {
  max-width: 850px; margin: 36px auto 0; color: #c2bec8;
  font-size: clamp(17px, 1.55vw, 22px); font-weight: 400; line-height: 1.75;
}
#viewGallery .hero-offer { margin: 34px auto 0; }
#viewGallery .hero-offer > p { margin: 0; font-size: clamp(16px, 1.5vw, 20px); color: #e1dce5; }
.hero-price-link { display: inline-flex; align-items: center; gap: 22px; margin-top: 11px; padding: 0 10px 18px; text-decoration: none; border-radius: 12px; }
.hero-old-price { position: relative; font-size: 36px; color: #8e8797; font-weight: 500; }
.hero-old-price svg { position: absolute; inset: 8% -12%; width: 124%; height: 84%; fill: none; stroke: #ff93bc; stroke-width: 4; stroke-linecap: round; }
.hero-new-price { position: relative; color: #ffc66f; font-size: clamp(44px, 4.2vw, 62px); font-weight: 800; line-height: 1.2; letter-spacing: -.05em; transition: color .2s; }
.hero-new-price > span { font-size: .68em; }
.hero-new-price svg { position: absolute; width: 108%; height: 17px; bottom: -12px; left: -4%; fill: none; stroke: #f38ec2; stroke-width: 3; stroke-linecap: round; }
.hero-price-arrow { color: #f6a8d2; font-size: 26px; transition: transform .2s; }
.hero-price-link:hover .hero-new-price { color: #ffe3b7; }
.hero-price-link:hover .hero-price-arrow { transform: translate(3px, -3px); }
.hero-price-link:focus-visible { outline: 3px solid #ffc66f; outline-offset: 7px; }
#viewGallery .hero-points { display: flex; justify-content: center; gap: 24px; margin: 25px 0 0; font-size: 12px; color: #97909f; }
.hero-point-dot { width: 5px; height: 5px; border-radius: 50%; background: #f59fc8; }
#viewGallery .hero-points > span:nth-child(2) .hero-point-dot { background: #ffc66f; }
#viewGallery .hero-points > span:nth-child(3) .hero-point-dot { background: #83a0fb; }
@media (max-width: 680px) {
  #viewGallery .hero { padding: 118px 0 58px; min-height: auto; }
  #viewGallery .hero > .wrap { width: min(100% - 32px, 1320px); }
  #viewGallery .hero-copy .kicker { font-size: 9px; letter-spacing: .03em; padding: 8px 10px; margin-bottom: 25px; }
  #viewGallery .hero h1 { font-size: clamp(27px, 6.2vw, 42px); letter-spacing: -.03em; line-height: 1.25; }
  #viewGallery .hero-actions { margin-top: 28px; }
  #viewGallery .hero-lead { margin-top: 28px; font-size: 17px; line-height: 1.7; }
  #viewGallery .hero-offer { margin-top: 28px; }
  #viewGallery .hero-offer > p { max-width: 280px; margin: 0 auto; line-height: 1.6; }
  #viewGallery .hero-points { gap: 12px 18px; font-size: 10px; margin-top: 20px; }
  #viewGallery .hero::before { left: 3%; top: 15%; font-size: 20px; }
  #viewGallery .hero::after { right: 3%; top: 51%; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
.hero-price-arrow { transition: none; }
}
.hero-old-price .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Brand blue with electric pink and scattered FlyMotion marks. */
#viewGallery .hero {
  background: radial-gradient(ellipse at 15% 35%, #3264f02b, transparent 48%), radial-gradient(ellipse at 90% 68%, #ff00a818, transparent 38%), radial-gradient(ellipse at 60% 105%, #3264f024, transparent 55%), #09090b;
}
#viewGallery .hero::before, #viewGallery .hero::after { content: none; }
#viewGallery .hero-title-accent { background-image: linear-gradient(105deg, #779aff 0%, #3264f0 64%, #ff00a8 100%); }
.hero-old-price svg, .hero-new-price svg { stroke: #ff00a8; }
.hero-new-price { color: #7298ff; }
.hero-price-arrow { color: #ff00a8; }
.hero-price-link:hover .hero-new-price { color: #a9bfff; }
.hero-price-link:focus-visible { outline-color: #ff00a8; }
.hero-scattered-logos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero-scattered-logos span {
  position: absolute; width: var(--size, 70px); aspect-ratio: 1;
  background: var(--color, #3264f0); opacity: var(--opacity, .4);
  -webkit-mask: url('/assets/flymotion-mark-white.png') center / contain no-repeat;
  mask: url('/assets/flymotion-mark-white.png') center / contain no-repeat;
  transform: rotate(var(--rotate, -15deg));
}
.hero-scattered-logos span:nth-child(1) { left: 5%; top: 20%; --size: 95px; --rotate: -23deg; --opacity: .42; }
.hero-scattered-logos span:nth-child(2) { right: 6%; top: 17%; --size: 60px; --rotate: 24deg; --color: #ff00a8; --opacity: .46; }
.hero-scattered-logos span:nth-child(3) { left: 13%; top: 52%; --size: 42px; --rotate: 16deg; --color: #ff00a8; --opacity: .42; }
.hero-scattered-logos span:nth-child(4) { right: 3%; top: 45%; --size: 115px; --rotate: -20deg; --opacity: .30; }
.hero-scattered-logos span:nth-child(5) { left: 3%; bottom: 15%; --size: 64px; --rotate: 30deg; --color: #ffb132; --opacity: .38; }
.hero-scattered-logos span:nth-child(6) { right: 14%; bottom: 16%; --size: 47px; --rotate: -35deg; --color: #6e92ff; --opacity: .5; }
.hero-scattered-logos span:nth-child(7) { left: 27%; top: 11%; --size: 32px; --rotate: 36deg; --opacity: .26; }
.hero-scattered-logos span:nth-child(8) { right: 28%; bottom: 5%; --size: 35px; --rotate: 12deg; --color: #ff00a8; --opacity: .28; }
@media (max-width: 680px) {
  .hero-scattered-logos span:nth-child(1) { left: -15px; top: 14%; --size: 48px; --opacity: .22; }
  .hero-scattered-logos span:nth-child(2) { right: 0; top: 30%; --size: 32px; --opacity: .23; }
  .hero-scattered-logos span:nth-child(3), .hero-scattered-logos span:nth-child(7) { display: none; }
  .hero-scattered-logos span:nth-child(4) { right: -30px; top: 53%; --size: 65px; --opacity: .14; }
  .hero-scattered-logos span:nth-child(5) { left: -12px; bottom: 20%; --size: 34px; --opacity: .18; }
  .hero-scattered-logos span:nth-child(6) { right: 7%; bottom: 7%; --size: 30px; --opacity: .25; }
}

/* Solid headline colors; blue-only background lighting. */
#viewGallery .hero {
  background: radial-gradient(ellipse at 15% 35%, #3264f02b, transparent 48%), radial-gradient(ellipse at 90% 68%, #2457ef20, transparent 38%), radial-gradient(ellipse at 60% 105%, #3264f024, transparent 55%), #09090b;
}
#viewGallery .hero-title-accent {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #5680ff;
  color: #5680ff;
}
.hero-scattered-logos span:nth-child(9) { left: 19%; top: 16%; --size: 38px; --rotate: -38deg; --color: #00d5ff; --opacity: .4; }
.hero-scattered-logos span:nth-child(10) { right: 19%; top: 12%; --size: 47px; --rotate: 18deg; --color: #a477ff; --opacity: .44; }
.hero-scattered-logos span:nth-child(11) { left: 2%; top: 46%; --size: 32px; --rotate: 8deg; --color: #a5eb52; --opacity: .4; }
.hero-scattered-logos span:nth-child(12) { right: 16%; top: 39%; --size: 35px; --rotate: -27deg; --color: #ff6647; --opacity: .42; }
.hero-scattered-logos span:nth-child(13) { left: 8%; top: 64%; --size: 44px; --rotate: -14deg; --color: #aa80ff; --opacity: .45; }
.hero-scattered-logos span:nth-child(14) { right: 5%; bottom: 11%; --size: 50px; --rotate: 33deg; --color: #00e7a3; --opacity: .4; }
.hero-scattered-logos span:nth-child(15) { left: 23%; bottom: 8%; --size: 29px; --rotate: 27deg; --color: #ffe15b; --opacity: .42; }
.hero-scattered-logos span:nth-child(16) { right: 3%; top: 29%; --size: 31px; --rotate: -40deg; --color: #ff9e32; --opacity: .45; }
.hero-scattered-logos span:nth-child(17) { left: 37%; bottom: 4%; --size: 43px; --rotate: -19deg; --color: #00d5ff; --opacity: .32; }
.hero-scattered-logos span:nth-child(18) { right: 40%; top: 14%; --size: 28px; --rotate: 24deg; --color: #00e7a3; --opacity: .32; }
@media (max-width: 680px) {
  .hero-scattered-logos span:nth-child(n+9) { --size: 24px; --opacity: .2; }
  .hero-scattered-logos span:nth-child(9) { left: 2%; top: 38%; }
  .hero-scattered-logos span:nth-child(10) { right: 3%; top: 15%; }
  .hero-scattered-logos span:nth-child(11) { left: -8px; top: 54%; }
  .hero-scattered-logos span:nth-child(12) { right: -7px; top: 70%; }
  .hero-scattered-logos span:nth-child(13) { left: 4%; top: 83%; }
  .hero-scattered-logos span:nth-child(14) { right: 30%; bottom: 3%; }
  .hero-scattered-logos span:nth-child(15) { left: 20%; bottom: 4%; }
  .hero-scattered-logos span:nth-child(16) { right: 0; top: 43%; }
  .hero-scattered-logos span:nth-child(17), .hero-scattered-logos span:nth-child(18) { display: none; }
}

/* Offer hierarchy and full-bleed brand marks. */
#viewGallery .hero { min-height: min(96svh, 980px); }
#viewGallery .hero-title-accent { color: #3264f0; -webkit-text-fill-color: #3264f0; }
#viewGallery .hero-offer { margin-top: 42px; }
#viewGallery .hero-offer > p {
  max-width: 860px; margin: 0 auto;
  color: #fff; font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 750; line-height: 1.35; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-price-link { margin-top: 17px; }
.hero-new-price, .hero-price-link:hover .hero-new-price { color: #3264f0; }
.hero-new-price { font-size: clamp(54px, 4.8vw, 70px); }
.hero-scattered-logos { width: 100%; height: 100%; }
.hero-scattered-logos span:nth-child(1) { left: -1%; top: 18%; }
.hero-scattered-logos span:nth-child(2) { right: 3%; top: 13%; }
.hero-scattered-logos span:nth-child(3) { left: 17%; top: 48%; }
.hero-scattered-logos span:nth-child(4) { right: -2%; top: 50%; }
.hero-scattered-logos span:nth-child(5) { left: 4%; bottom: 5%; }
.hero-scattered-logos span:nth-child(6) { right: 19%; bottom: 12%; }
.hero-scattered-logos span:nth-child(7) { left: 33%; top: 13%; }
.hero-scattered-logos span:nth-child(8) { right: 36%; bottom: 3%; }
.hero-scattered-logos span:nth-child(9) { left: 15%; top: 12%; }
.hero-scattered-logos span:nth-child(10) { right: 20%; top: 21%; }
.hero-scattered-logos span:nth-child(11) { left: 3%; top: 41%; }
.hero-scattered-logos span:nth-child(12) { right: 10%; top: 36%; }
.hero-scattered-logos span:nth-child(13) { left: 8%; top: 67%; }
.hero-scattered-logos span:nth-child(14) { right: 3%; bottom: 6%; }
.hero-scattered-logos span:nth-child(15) { left: 24%; bottom: 3%; }
.hero-scattered-logos span:nth-child(16) { right: 1%; top: 28%; }
.hero-scattered-logos span:nth-child(17) { left: 37%; bottom: 7%; }
.hero-scattered-logos span:nth-child(18) { right: 42%; top: 10%; }
@media (max-width: 680px) {
  #viewGallery .hero { min-height: auto; }
  #viewGallery .hero-offer { margin-top: 34px; }
  #viewGallery .hero-offer > p { max-width: 340px; font-size: 23px; line-height: 1.35; }
  .hero-scattered-logos span { opacity: .14; }
  .hero-scattered-logos span:nth-child(3), .hero-scattered-logos span:nth-child(6), .hero-scattered-logos span:nth-child(10), .hero-scattered-logos span:nth-child(12) { display: none; }
}

/* Restore the blue glass button and restrict marks to brand blue / white. */
#viewGallery .hero-scattered-logos span { background: #3264f0; }
#viewGallery .hero-scattered-logos span:nth-child(3n),
#viewGallery .hero-scattered-logos span:nth-child(5) { background: #fff; }

/* A clear explanation of what the subscription includes. */
#viewGallery .trust { padding: 68px 0; border-top: 1px solid #ffffff14; border-bottom: 1px solid #ffffff14; background: #0b0c10; }
#viewGallery .trust-unity {
  width: min(100% - 64px, 1160px); max-width: 1160px;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 80px;
  opacity: 1; transform: none; will-change: auto; text-align: left;
}
#viewGallery .trust-unity-copy { align-items: flex-start; gap: 16px; }
#viewGallery .trust-unity-kicker { color: #648cff; font-size: 14px; font-weight: 650; letter-spacing: .02em; opacity: 1; transform: none; }
#viewGallery .trust-unity-title {
  max-width: 530px; font-family: Inter, system-ui, sans-serif;
  font-size: clamp(30px, 3.2vw, 44px); font-weight: 750; line-height: 1.15;
  letter-spacing: -.04em; text-align: left; text-wrap: balance;
  opacity: 1; transform: none; will-change: auto;
}
#viewGallery .trust-unity-note {
  max-width: 470px; padding: 0; margin: 0;
  font-size: 18px; line-height: 1.75; text-align: left; color: #b6bac5;
  opacity: 1; transform: none;
}
@media (max-width: 760px) {
  #viewGallery .trust { padding: 44px 0; }
  #viewGallery .trust-unity { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 22px; }
  #viewGallery .trust-unity-title { max-width: 420px; font-size: 32px; }
  #viewGallery .trust-unity-note { max-width: 540px; font-size: 16px; }
}

/* Quiet blueprint grid: a clear center with depth at the edges. */
#viewGallery .hero {
  background: radial-gradient(ellipse at 50% 95%, #3264f018, transparent 65%), #09090b;
}
#viewGallery .hero-pixels { display: none; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(#658aff13 1px, transparent 1px),
    linear-gradient(90deg, #658aff13 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse at 50% 43%, transparent 12%, #0005 48%, #000 85%), linear-gradient(transparent, #000 18%, #000 80%, transparent);
  mask-image: radial-gradient(ellipse at 50% 43%, transparent 12%, #0005 48%, #000 85%);
}
.hero-grid::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, #09090b, transparent 22%, transparent 82%, #09090b), radial-gradient(ellipse at 50% 45%, #09090be6, transparent 65%);
}
@media (max-width: 680px) {
  .hero-grid { background-size: 48px 48px; }
}

/* Visible grid: clear cells at the edges, softer beneath the copy. */
#viewGallery .hero-grid {
  background-image:
    linear-gradient(#5078d940 1px, transparent 1px),
    linear-gradient(90deg, #5078d940 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 43%, #0004 0%, #000a 43%, #000 82%);
  mask-image: radial-gradient(ellipse at 50% 43%, #0004 0%, #000a 43%, #000 82%);
}
#viewGallery .hero-grid::after {
  background: linear-gradient(0deg, #09090b 0%, transparent 15%, transparent 88%, #09090b 100%);
}
@media (max-width: 680px) {
  #viewGallery .hero-grid { background-size: 40px 40px; }
}

/* Match the export button's restrained scale and brightness interaction. */
@media (prefers-reduced-motion: reduce) {
}

/* Editor export controls stay still and brighten smoothly on hover. */

/* Same speed ramp, scale and moving light as the export plan CTA. */
@media (prefers-reduced-motion: reduce) {
}

/* Subscription band restored to its quiet two-column version. */
#viewGallery .trust {
  background: linear-gradient(180deg, #17181c 0%, #0d0e12 48%, #050506 100%);
  overflow: hidden;
}
#viewGallery .trust-unity-title {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.04em;
  text-shadow: none;
}
#viewGallery .trust-unity-kicker { color: #648cff; }
#viewGallery .trust-unity-note { color: #b6bac5; text-shadow: none; }
@media (max-width: 760px) {
  #viewGallery .trust-unity-title { font-size: 32px; }
}

#viewGallery .trust {
  border-top: 0;
  border-bottom: 0;
}
#viewGallery .trust-unity-title {
  font-family: 'Dela Gothic One', var(--display, fantasy);
  font-weight: 400;
  font-size: clamp(27px, 2.8vw, 39px);
  letter-spacing: -.025em;
  line-height: 1.23;
}
@media (max-width: 760px) {
  #viewGallery .trust-unity-title { font-size: clamp(25px, 7vw, 32px); }
}

/* ── Hand-drawn marks (underline variants used in headings) ───────────── */
.fm-mark { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.fm-mark::after {
  content: "";
  position: absolute;
  pointer-events: none;
  left: -3%;
  width: 106%;
  top: 96%;
  height: .3em;
  background: var(--mark, #ff354f);
  -webkit-mask: var(--mark-shape) center / 100% 100% no-repeat;
  mask: var(--mark-shape) center / 100% 100% no-repeat;
  clip-path: inset(0 0 0 0);
  transition: clip-path .9s cubic-bezier(.65, .05, .25, 1);
}
.fm-mark--double { --mark: #ff354f; --mark-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none'%3E%3Cpath d='M8 5 Q98 1 292 6 M24 13 Q148 8 274 12' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
h2 .fm-mark--double::after { height: .36em; }
.fm-mark--wave { --mark: #648cff; --mark-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M3 9 Q 10 3 17 9 T 31 9 T 45 9 T 59 9 T 73 9 T 87 9 T 101 9 T 115 9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fm-mark--wave::after { height: .24em; top: 98%; }
.fm-mark--swoosh { --mark: #26d9ff; --mark-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M5 14 C 52 6 120 3 195 8 M150 14 C 168 12 182 12 194 13' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fm-mark--swoosh::after { height: .26em; top: 92%; left: -4%; width: 110%; }
.fm-mark--circle { --mark: #ff2fb3; --mark-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 70' preserveAspectRatio='none'%3E%3Cpath d='M118 8 C 66 3 12 12 8 33 C 4 54 54 66 108 63 C 160 60 196 48 192 29 C 188 11 140 3 86 7 C 66 9 52 13 44 17' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fm-mark--circle { margin: 0 .14em; }
.fm-mark--circle::after { left: -14%; width: 128%; top: -14%; height: 128%; }
.fm-mark--marker { --mark: rgba(86, 128, 255, .62); --mark-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 30' preserveAspectRatio='none'%3E%3Cpath d='M4 7 C 60 3 140 4 197 5 L 195 25 C 140 27 62 26 3 24 Z' fill='%23000'/%3E%3C/svg%3E"); }
.fm-mark--marker::after { z-index: -1; top: 34%; height: .5em; left: -2%; width: 104%; }
/* Drawn left-to-right when the heading scrolls into view. */
html.fm-marks-anim .fm-mark:not(.is-drawn)::after { clip-path: inset(0 100% 0 0); }
.fm-mark--circle.is-drawn::after { transition-duration: 1.1s; }
@media (prefers-reduced-motion: reduce) { .fm-mark::after { transition: none; } }

/* Hero: outlined "animation" word, hand-drawn doodles and an arrow into the CTA. */
#viewGallery .hero h1 { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; }
#viewGallery .hero h1 .hero-outline { color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0.03em #fff; }
#viewGallery .hero h1 .fm-mark--double::after { top: 88%; height: .26em; }
.hero-doodle { position: absolute; pointer-events: none; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: hero-ink 1s ease forwards; }
.hero-doodle--star { width: .42em; height: .42em; right: -.5em; top: -.12em; stroke: #5680ff; animation-delay: 1.15s; }
#viewGallery .hero-lead .fm-mark--swoosh { --mark: #ff00a8; }
#viewGallery .hero-actions { position: relative; }
.hero-arrow { position: absolute; z-index: 1; right: calc(50% + 172px); top: -54px; width: 168px; height: 112px; pointer-events: none; fill: none; stroke: #ff00a8; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-arrow path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: hero-ink .9s 1.6s ease forwards; }
.hero-arrow .hero-arrow-head { animation-delay: 2.3s; animation-duration: .35s; }
@keyframes hero-ink { to { stroke-dashoffset: 0; } }
@media (max-width: 860px) {
  .hero-arrow { width: 92px; height: 62px; right: calc(50% + 140px); top: -26px; }
}
@media (max-width: 560px) {
  .hero-arrow { display: none; }
  .hero-doodle--star { right: -.2em; top: -.3em; }
}
@media (prefers-reduced-motion: reduce) { .hero-doodle, .hero-arrow path { animation: none; stroke-dashoffset: 0; } }

/* Hero grid drifts left forever. The lines live on a layer one cell wider than the hero
   and slide by exactly one cell, so the loop has no visible seam; the vignette mask stays put. */
#viewGallery .hero-grid { --cell: 56px; background-image: none; overflow: hidden; }
#viewGallery .hero-grid::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: calc(var(--cell) * -1);
  background-image:
    linear-gradient(#5078d940 1px, transparent 1px),
    linear-gradient(90deg, #5078d940 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  animation: hero-grid-pan 3.6s linear infinite;
  will-change: transform;
}
@keyframes hero-grid-pan { to { transform: translateX(calc(var(--cell) * -1)); } }
@media (max-width: 680px) { #viewGallery .hero-grid { --cell: 40px; } }
@media (prefers-reduced-motion: reduce) { #viewGallery .hero-grid::before { animation: none; } }

/* Grid lines shift colour left to right (navy -> brand blue -> light blue). The colour layer is
   cut to the line pattern with a mask, so the lines keep their original brightness. */
#viewGallery .hero-grid::before {
  background: linear-gradient(90deg, #1b2f8f, #3264f0 55%, #5b8cff);
  -webkit-mask:
    linear-gradient(#000 1px, transparent 1px) 0 0 / var(--cell) var(--cell),
    linear-gradient(90deg, #000 1px, transparent 1px) 0 0 / var(--cell) var(--cell);
  mask:
    linear-gradient(#000 1px, transparent 1px) 0 0 / var(--cell) var(--cell),
    linear-gradient(90deg, #000 1px, transparent 1px) 0 0 / var(--cell) var(--cell);
  opacity: .38;
}

/* Grid shows only inside thick diagonal bands across the hero; black between them.
   The bands stay put while the grid keeps drifting left inside them. */
#viewGallery .hero-grid {
  --band: repeating-linear-gradient(158deg, transparent 0 140px, #000 160px 320px, transparent 340px 470px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 43%, #0006 0%, #000b 43%, #000 82%), var(--band);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse at 50% 43%, #0006 0%, #000b 43%, #000 82%), var(--band);
  mask-composite: intersect;
}
@media (max-width: 680px) {
  #viewGallery .hero-grid { --band: repeating-linear-gradient(158deg, transparent 0 90px, #000 104px 206px, transparent 220px 300px); }
}
#viewGallery .hero-grid::before { opacity: .62; }

/* Second hero button: captions. A yellow hand-drawn arrow (mirror of the pink one on
   the left) points at it from a short handwritten note on the right. */
#viewGallery .hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; }
#viewGallery .hero-actions .hero-captions-button {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 76px; padding: 22px 34px; border-radius: 22px;
  font: 800 20px/1 Inter, "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: .01em;
  color: #fff; text-decoration: none; white-space: nowrap;
  transform: scale(.98); transition: transform .28s ease-out, background .2s ease, box-shadow .2s ease;
}
#viewGallery .hero-actions .hero-captions-button:hover:not(:disabled) { transform: scale(1); }
.hero-captions-button:active { transform: scale(.97); }
.hero-captions-button:focus-visible { outline: 3px solid #ffd84d; outline-offset: 7px; }
.hero-cc { display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 6px; border: 2.5px solid currentColor; border-radius: 8px; font: 800 13px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; }
/* With two buttons the pink arrow moves out to the row's left edge. */
#viewGallery .hero-actions .hero-arrow:not(.hero-arrow--captions) { right: calc(50% + 368px); }
.hero-arrow--captions { right: auto; left: calc(50% + 372px); top: -58px; stroke: #ffd84d; transform: scaleX(-1); }
.hero-arrow--captions path { animation-delay: 2s; }
.hero-arrow--captions .hero-arrow-head { animation-delay: 2.7s; }
.hero-captions-note {
  position: absolute; left: calc(50% + 500px); top: -104px; width: 260px; margin: 0;
  font: 700 25px/1.12 Caveat, "Comic Sans MS", cursive; color: #ffd84d; text-align: left;
  transform: rotate(-4deg); text-shadow: 0 2px 18px #0009;
  opacity: 0; animation: hero-note-in .5s 2.5s ease forwards;
}
@keyframes hero-note-in { from { opacity: 0; transform: rotate(-4deg) translateY(6px); } to { opacity: 1; transform: rotate(-4deg); } }
/* Not enough room at the sides: drop both arrows, the note goes under the buttons. */
@media (max-width: 1360px) {
  #viewGallery .hero-actions .hero-arrow { display: none; }
  .hero-captions-note { position: static; flex: 0 0 100%; width: auto; margin-top: 4px; text-align: center; transform: none; font-size: 22px; animation: none; opacity: 1; }
}
@media (max-width: 680px) {
  #viewGallery .hero-actions .hero-captions-button { min-height: 64px; padding: 18px 22px; font-size: 17px; border-radius: 18px; gap: 12px; }
  .hero-cc { min-width: 34px; height: 25px; font-size: 12px; }
  .hero-captions-note { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .hero-captions-note { animation: none; opacity: 1; } }

/* Hero headline: variable Archivo so letters can thin out under the cursor (js: initHeroType). */
#viewGallery .hero h1 {
  font-family: "Archivo", "Dela Gothic One", sans-serif;
  font-weight: 900; font-stretch: 112%; letter-spacing: -.025em; line-height: 1.08;
}
#viewGallery .hero h1 .hw-word { white-space: nowrap; }
#viewGallery .hero h1 .hw-ch { font-stretch: inherit; }
#viewGallery .hero-copy.hw-pre h1 > span,
#viewGallery .hero-copy.hw-pre > .hero-actions,
#viewGallery .hero-copy.hw-pre > .hero-lead,
#viewGallery .hero-copy.hw-pre > .hero-offer { opacity: 0; }
/* Each letter sits in a slot locked (by JS) to its resting width; heavier or
   lighter glyphs grow/shrink evenly from the slot's middle, so nothing reflows. */
#viewGallery .hero-copy .hw-word { white-space: nowrap; }
#viewGallery .hero-copy .hw-ch { display: inline-flex; justify-content: center; font-weight: inherit; }

/* Home scroll reveal (js: initHomeReveal). Compositor-only: opacity + transform. */
html.hr-on #viewGallery .hr {
  opacity: 0;
  transform: translate3d(0, var(--hr-y, 32px), 0) scale(var(--hr-s, .97));
  transition: none;
}
html.hr-on #viewGallery .hr.hr-run { will-change: transform, opacity; }
html.hr-on #viewGallery .hr.hr-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .7s cubic-bezier(.2, .7, .2, 1) var(--hr-d, 0s),
    transform 1s var(--hr-ease, cubic-bezier(.16, 1, .3, 1)) var(--hr-d, 0s);
}
/* Weak CPU / data saver: half the frames to composite, no scale. */
html.hr-on.hr-lite #viewGallery .hr.hr-in {
  transition: opacity .45s ease-out var(--hr-d, 0s), transform .6s cubic-bezier(.16, 1, .3, 1) var(--hr-d, 0s);
}
@media (max-width: 680px) {
  html.hr-on #viewGallery .hr { transform: translate3d(0, calc(var(--hr-y, 32px) * .6), 0) scale(var(--hr-s, .97)); }
}

/* Hero (headline down to the price): plain solid white, dark readable copy. */
#viewGallery .hero.hero--white { background: #fff; color: #0b0b12; }
#viewGallery .hero--white .hero-scattered-logos { display: none; }
#viewGallery .hero--white h1 { color: #0b0b12; }
#viewGallery .hero--white h1 .hero-outline { -webkit-text-stroke-color: #0b0b12; }
#viewGallery .hero--white .hero-lead { color: #4a4a56; }
#viewGallery .hero--white .hero-offer > p { color: #17171f; }
#viewGallery .hero--white .hero-old-price { color: #8a8794; }
#viewGallery .hero--white .hero-new-price { color: #3264f0; }
#viewGallery .hero--white .hero-price-link:hover .hero-new-price { color: #1f4bd8; }
#viewGallery .hero--white .hero-captions-note { color: #c97a00; text-shadow: none; }
#viewGallery .hero--white .hero-arrow--captions { stroke: #e39a12; }
#viewGallery .hero--white .hero-captions-button {
  background: #0b0b12; color: #fff; border-color: transparent;
  box-shadow: 0 12px 28px -14px #0b0b1299 !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
#viewGallery .hero--white .hero-captions-button:focus-visible { outline-color: #3264f0; }
/* Bigger price in the white hero. */
#viewGallery .hero--white .hero-new-price { font-size: clamp(68px, 7vw, 112px); line-height: 1.1; }
#viewGallery .hero--white .hero-old-price { font-size: clamp(40px, 3.4vw, 54px); }
#viewGallery .hero--white .hero-price-arrow { font-size: clamp(30px, 2.6vw, 40px); }
#viewGallery .hero--white .hero-new-price svg { height: 22px; bottom: -14px; stroke-width: 3.5; }
#viewGallery .hero--white .hero-price-link { gap: 28px; }

/* Topbar: the base .site-header (styles.css) is already the flat full-width bar. */
/* The white hero fills the whole first screen - no strip of the next section. */
#viewGallery .hero.hero--white { min-height: 100vh; min-height: 100svh; }


/* Bigger hero, but always within one screen: every size is capped by the
   viewport height as well as its width, so the white block never scrolls. */
@media (min-width: 981px) {
  #viewGallery .hero.hero--white { padding: 88px 0 32px; }
  #viewGallery .hero--white h1 { font-size: clamp(52px, min(9.4vw, 12.4vh), 128px); line-height: 1.04; }
  #viewGallery .hero--white .hero-actions { margin-top: min(44px, 4.4vh); gap: 18px; }
  #viewGallery .hero--white .hero-actions > a.ed-btn-export,
  #viewGallery .hero--white .hero-actions .hero-captions-button {
    min-height: clamp(62px, 8.6vh, 92px); padding: 0 clamp(30px, 4vh, 44px); border-radius: clamp(20px, 2.6vh, 26px);
    gap: 16px; font-size: clamp(18px, 2.3vh, 24px);
  }
  #viewGallery .hero--white .hero-actions > a.ed-btn-export svg { width: 1.1em; height: 1.1em; }
  #viewGallery .hero--white .hero-cc { min-width: 1.9em; height: 1.4em; font-size: .62em; border-radius: 9px; }
  #viewGallery .hero--white .hero-offer { margin-top: min(48px, 4.6vh); }
  #viewGallery .hero--white .hero-offer > p { max-width: 1100px; font-size: clamp(22px, min(2.4vw, 3.5vh), 40px); }
  #viewGallery .hero--white .hero-price-link { margin-top: min(16px, 1.4vh); gap: 32px; padding-bottom: 14px; }
  #viewGallery .hero--white .hero-new-price { font-size: clamp(64px, min(8.2vw, 11vh), 150px); }
  #viewGallery .hero--white .hero-old-price { font-size: clamp(38px, min(4.2vw, 5.8vh), 76px); }
  #viewGallery .hero--white .hero-price-arrow { font-size: clamp(30px, min(3vw, 4.4vh), 54px); }
  #viewGallery .hero--white .hero-new-price svg { height: 24px; bottom: -14px; stroke-width: 4; }
  /* Wider buttons: arrows and the note move further out. */
  #viewGallery .hero--white .hero-actions .hero-arrow:not(.hero-arrow--captions) { right: calc(50% + 370px); }
  #viewGallery .hero--white .hero-arrow--captions { left: calc(50% + 370px); }
  #viewGallery .hero--white .hero-captions-note { left: calc(50% + 500px); width: 210px; font-size: clamp(22px, 2.8vh, 28px); }
}
/* Not enough side room for the bigger row: note goes under the buttons. */
@media (min-width: 981px) and (max-width: 1479px) {
  #viewGallery .hero--white .hero-actions .hero-arrow { display: none; }
  #viewGallery .hero--white .hero-captions-note {
    position: static; flex: 0 0 100%; width: auto; margin-top: 6px; text-align: center;
    transform: none; font-size: clamp(20px, 2.6vh, 26px); animation: none; opacity: 1;
  }
}
@media (max-width: 680px) {
  #viewGallery .hero.hero--white { padding: 84px 0 24px; }
  #viewGallery .hero--white h1 { font-size: clamp(28px, min(8.8vw, 5.6vh), 54px); }
  #viewGallery .hero--white .hero-actions { margin-top: min(28px, 3.2vh); gap: min(14px, 1.6vh); }
  #viewGallery .hero--white .hero-actions .hero-captions-button,
  #viewGallery .hero--white .hero-actions > a.ed-btn-export { min-height: clamp(50px, 7.4vh, 64px); padding-top: 0; padding-bottom: 0; }
  #viewGallery .hero--white .hero-captions-note { font-size: clamp(18px, 2.6vh, 21px); margin-top: 0; }
  #viewGallery .hero--white .hero-offer { margin-top: min(28px, 3vh); }
  #viewGallery .hero--white .hero-offer > p { font-size: clamp(19px, 3vh, 25px); }
  #viewGallery .hero--white .hero-new-price { font-size: clamp(52px, 8.4vh, 68px); }
  #viewGallery .hero--white .hero-old-price { font-size: clamp(30px, 4.6vh, 40px); }
}

/* Polish headline in three lines: "Gotowe szablony" / "animacji" / "do filmów."
   (other languages keep their own two-line markup). */
html[lang="pl"] #viewGallery .hero--white h1 .hero-title-accent > .hero-outline { display: block; }
html[lang="pl"] #viewGallery .hero--white h1 .hero-title-accent > .fm-mark { display: block; width: fit-content; margin-inline: auto; }
@media (min-width: 981px) {
  #viewGallery .hero--white h1 { max-width: none; }
  #viewGallery .hero--white h1 > span:first-child { white-space: nowrap; }
}

/* White hero: soft fade to a light grey at the bottom. */


/* Hero went dark (2026-10-24): near-black with a soft lift to graphite at the
   bottom. Overrides the earlier white-hero colours above. */
#viewGallery .hero.hero--white { background: linear-gradient(180deg, #050506 0%, #050506 40%, #101014 100%); color: #fff; }
#viewGallery .hero--white h1 { color: #fff; }
#viewGallery .hero--white h1 .hero-outline { -webkit-text-stroke-color: #fff; }
#viewGallery .hero--white h1 .hero-title-accent { color: #5680ff; -webkit-text-fill-color: #5680ff; }
#viewGallery .hero--white h1 .hero-title-accent .hero-outline { -webkit-text-fill-color: transparent; }
#viewGallery .hero--white .hero-offer > p { color: #f2f2f5; }
#viewGallery .hero--white .hero-old-price { color: #8d8a96; }
#viewGallery .hero--white .hero-new-price { color: #6f93ff; }
#viewGallery .hero--white .hero-price-link:hover .hero-new-price { color: #a9bfff; }
#viewGallery .hero--white .hero-captions-note { color: #ffd84d; }
#viewGallery .hero--white .hero-arrow--captions { stroke: #ffd84d; }
#viewGallery .hero--white .hero-captions-button { background: #fff; color: #0b0b12; box-shadow: 0 12px 28px -14px #0009 !important; }
