/* ============================================================
   Solutions — shared solution page stylesheet
   Used by: solutions/retailers.html, solutions/licensors.html,
   solutions/partners.html

   Editorial dossier aesthetic: numeric section indices, orange
   tertiary proof-accent, white cards on warm off-white ground,
   capability list in roman numerals.
   Inherits homepage design language (radii, shadows, type scale)
   without copying its parallax hero shape.
   ============================================================ */


/* ========================================
   Shared eyebrow + stat primitives
   ======================================== */

.r-eyebrow,
.r-section__index,
.r-derisk__tag,
.r-cap__index,
.r-quote__attr {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-light);
}

/* Proof numbers — layered on top of the .display-medium utility class.
   This rule only carries stat-specific deltas: tighter tracking/leading,
   tabular numerics, and the black/orange colour variants. */
.r-stat-number {
  line-height: 0.95;
  letter-spacing: var(--tracking-tighter);
  color: var(--color-base-900);
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.r-stat-number--accent {
  color: var(--color-secondary-300);
}

.r-stat-number__unit {
  font-size: 0.5em;
  font-weight: var(--weight-medium);
  vertical-align: baseline;
  margin-left: 0.05em;
  letter-spacing: var(--tracking-normal);
}


/* ========================================
   Hero — Inset "framed photograph" with bottom-aligned text
   The hero section's padding creates an even border of page-ground
   around a rounded-corner image container. Reads like a magazine
   cover photograph floated inside the page frame.
   ======================================== */

:root {
  --r-hero-inset: var(--sp-6);
  --r-hero-radius: clamp(1.25rem, 0.5rem + 2.5vw, 2.75rem);
}

.r-hero {
  position: relative;
  /* z-index keeps the pinned hero above the next section that
     scrolls beneath it during the scroll-away. */
  z-index: 1;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  /* padding-top matches the header height (74px) to clear the nav; the
     larger padding-bottom bottom-aligns the content and holds it off the
     frame's bottom edge (frame inset + breathing room). */
  padding: 74px var(--r-hero-inset) calc(var(--r-hero-inset) + var(--space-xl));
  color: var(--color-base-white);
}

.r-hero__bg {
  position: absolute;
  /* Start image below the fixed header (106px) — flush with header bottom */
  top: 106px;
  right: var(--r-hero-inset);
  bottom: var(--r-hero-inset);
  left: var(--r-hero-inset);
  border-radius: var(--r-hero-radius);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.r-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Legibility scrim on the bottom edge — transparent at the top, dark at
   the base — grounding the framed photo into the dark page below. Clipped
   to the rounded frame by the parent's overflow: hidden; clips away with
   the frame during the scroll-away (no opacity fade). */
.r-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.15) 30%,
    rgba(0, 0, 0, 0.65) 65%,
    rgba(10, 3, 30, 0.95) 100%
  );
}

.r-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.r-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 900px;
}

/* Eyebrow — on dark, the rule-line colour matches the text. */
.r-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--color-primary);
}

.r-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

.r-hero .r-eyebrow {
  color: var(--color-alpha-white-800);
}

.r-hero .r-eyebrow::before {
  display: none;
}

.r-hero__headline {
  color: var(--color-base-white);
  margin: 0;
  max-width: 20ch;
  text-shadow: 0 2px 20px var(--color-alpha-black-200);
}

/* Per CLAUDE.md: Inter on dark uses Medium or Bold only.
   Hidden on mobile — revealed at tablet+. */
.r-hero__lead {
  display: none;
  color: var(--color-alpha-white-900);
  max-width: 54ch;
  margin: 0;
  font-weight: var(--weight-medium);
}

/* >= --bp-tablet */
@media (min-width: 720px) {
  .r-hero__lead {
    display: block;
  }
}

.r-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--sp-3);
}

.r-hero__skip {
  color: var(--color-base-white);
  text-decoration: none;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--color-alpha-white-400);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.r-hero__skip:hover {
  border-bottom-color: var(--color-base-white);
}


/* ========================================
   Section shell — shared header, spacing
   ======================================== */

.r-section {
  padding-block: var(--space-2xl);
  position: relative;
  /* z-index: 2 ensures the section paints above the GSAP pin-spacer
     wrapper (z-index: 1) that wraps the hero during scroll. Without
     this the hero image bleeds through the transparent section. */
  z-index: 2;
  background: var(--color-bg);
}

.r-section__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 58ch;
  margin-bottom: var(--space-xl);
}

.r-section__index {
  color: var(--color-primary);
}

.r-section__headline {
  color: var(--color-base-900);
  margin: 0;
  font-size: var(--text-3xl);
}

/* >= --bp-tablet */
@media (min-width: 720px) {
  .r-section__headline {
    font-size: var(--text-4xl);
  }
}

.r-section__lead {
  color: var(--color-text-light);
  margin: 0;
}


/* ========================================
   Section 01 — commerce / pillar section
   Reduced bottom padding so the photo strip sits
   close to the content below it.
   ======================================== */

section.r-commerce {
  padding-bottom: var(--space-md);
  background: var(--color-base-white);
}

/* Stat row — 3-column proof numbers (retailers) */
.r-statrow {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--color-base-300);
}

.r-statrow__item {
  border-bottom: 1px solid var(--color-base-300);
  padding: var(--space-lg) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

/* >= --bp-tablet: 3-col with vertical dividers */
@media (min-width: 720px) {
  .r-statrow {
    grid-template-columns: repeat(3, 1fr);
  }

  .r-statrow__item {
    border-bottom: none;
    border-right: 1px solid var(--color-base-300);
    padding: var(--space-xl) var(--space-lg);
  }

  .r-statrow__item:last-child {
    border-right: none;
  }
}

.r-statrow__number {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.r-statrow__label {
  color: var(--color-text);
  max-width: 38ch;
  margin: 0;
}

/* Editorial pull-quote — centered, no card treatment. */
.r-quote {
  margin: 0;
  padding: var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.r-quote__body {
  color: var(--color-base-900);
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
}

.r-quote__attr {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--color-text-light);
}

.r-quote__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-base-200);
}


/* ========================================
   Photo strip — sits between section 01 and the slab.
   The slab parallaxes UP over this strip on scroll.
   ======================================== */

.r-photostrip {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  padding: 0 var(--gutter);
  margin-bottom: calc(-1 * var(--space-lg));
  overflow: hidden;
}

.r-photostrip__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  flex-shrink: 0;
}

.r-photostrip__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.r-photostrip__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Symmetric size scale around the centre photo */
.r-photostrip__photo--1,
.r-photostrip__photo--5 { width: clamp(50px, 6vw + 30px, 120px); }
.r-photostrip__photo--2,
.r-photostrip__photo--4 { width: clamp(66px, 8vw + 42px, 155px); }
.r-photostrip__photo--3 { width: clamp(82px, 10vw + 54px, 185px); }

/* Overlap: each photo tucks slightly under its neighbour */
.r-photostrip__photo--2,
.r-photostrip__photo--3,
.r-photostrip__photo--4,
.r-photostrip__photo--5 {
  margin-left: calc(-1 * var(--sp-3));
}

/* Per-photo rotations live in each page's JS (gsap.set) because the
   photos are GSAP-animated and CSS transforms would conflict. */


/* ========================================
   Light slab — wraps sections 02 + 03 in one rounded white
   container. z-index: 2 lets the slab parallax UP over
   .r-photostrip (z:1) on scroll.
   ======================================== */

.r-slab {
  position: relative;
  z-index: 2;
  background: var(--color-base-white);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: var(--shadow-slab-top);
  isolation: isolate;
}


/* ========================================
   De-risk / pillar cards
   Mobile baseline: stacked cards
   ======================================== */

.r-derisk__pair,
.r-derisk__trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.r-derisk__card {
  background: var(--color-base-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  /* Only box-shadow transitions on hover — transform is owned by
     GSAP on this element per CLAUDE.md motion rules. */
  transition: box-shadow var(--duration-slow) var(--ease-expressive);
}

.r-derisk__card:hover {
  box-shadow: var(--shadow-card-hover);
}

.r-derisk__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.r-derisk__title {
  color: var(--color-base-900);
  margin: 0;
  max-width: 15ch;
  /* Reserve two lines so the divider below aligns between cards
     regardless of whether the title wraps. */
  min-height: 2.2em;
}

/* Plain paragraph body used when the card has no checklist */
.r-derisk__body {
  color: var(--color-text);
  margin: var(--sp-2) 0 0;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--color-base-200);
}

.r-check {
  list-style: none;
  padding: 0;
  margin: var(--sp-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  border-top: 1px solid var(--color-base-200);
  padding-top: var(--sp-5);
}

.r-check li {
  position: relative;
  padding-left: var(--sp-6);
  color: var(--color-text);
  max-width: none;
}

.r-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 2px;
  background: var(--color-secondary-300);
  border-radius: 2px;
}

.r-derisk__tag {
  margin-top: var(--sp-4);
  padding: var(--sp-2) var(--sp-3);
  background: var(--color-neutral-100);
  color: var(--color-base-700);
  border-radius: var(--radius-pill);
  align-self: flex-start;
}


/* ========================================
   Partner logos row
   ======================================== */

.r-partners-logos {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.r-partners-logos__label {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-light);
}

.r-partners-logos__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.r-partners-logos__row img {
  /* height: auto + max-height/max-width scales proportionally — no distortion
     even for extreme-ratio logos like Kodak Moments (9:1) or HP (1:1). */
  height: 48px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.r-partners-logos__row img:hover {
  opacity: 1;
}


/* Wide logos — raise max-width so they render at a visible height. */
.r-partners-logos__row img[alt="Kodak"],
.r-partners-logos__row img[alt="Kodak Moments"] {
  max-width: 200px;
}

/* Square logos with heavy padding — scale up height to compensate. */
.r-partners-logos__row img[alt="Scooby-Doo"] {
  height: 90px;
  max-width: 90px;
}

.r-partners-logos__row img[alt="Anirollz"] {
  filter: grayscale(1);
  height: 90px;
  max-width: 90px;
}

.r-partners-logos__legal {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  text-align: center;
  margin-inline: auto;
}

/* Text fallback for brands without logo files yet */
.r-partners-logos__name {
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-light);
  opacity: 0.6;
  white-space: nowrap;
}


/* ========================================
   Capabilities list (sections 02 / 03)
   Mobile baseline: stacked rows
   ======================================== */

.r-capabilities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.r-cap {
  padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-xl);
  border-left: 4px solid transparent;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: background var(--duration-fast) var(--ease-out);
}

/* Alternating — Evening Blue / light grey */
.r-cap:nth-child(odd)  { border-left-color: #7B8BE0; }
.r-cap:nth-child(even) { border-left-color: #E2E2E8; }

.r-cap__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.r-cap__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  font-weight: var(--weight-semibold);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-base-900);
}

.r-cap:nth-child(odd)  .r-cap__index { background: #7B8BE0; color: #fff; }
.r-cap:nth-child(even) .r-cap__index { background: #E2E2E8; color: var(--color-base-900); }

.r-cap__title {
  color: var(--color-base-900);
  margin: 0;
}

.r-cap__body {
  color: var(--color-text-light);
  margin: 0;
  padding-left: calc(2rem + var(--sp-4));
  max-width: 58ch;
}


/* ========================================
   Breakpoints
   ======================================== */

/* >= --bp-tablet */
@media (min-width: 720px) {

  .r-hero {
    padding-bottom: clamp(4rem, 2rem + 5vw, 7rem);
  }

  .r-derisk__pair {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Three cards: 2 + 1 at tablet */
  .r-derisk__trio {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .r-derisk__card {
    padding: var(--space-xl);
  }

  .r-quote {
    padding: var(--space-2xl) var(--space-2xl);
  }

  /* Capability rows read as two columns: numeral+title | body */
  .r-cap {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: var(--space-lg);
    align-items: start;
    padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-2xl);
  }

  .r-cap__head {
    align-items: center;
  }

  .r-cap__body {
    padding-left: 0;
  }
}


/* >= --bp-desktop */
@media (min-width: 1024px) {

  .r-hero__headline {
    max-width: 22ch;
  }

  .r-hero__lead {
    max-width: 60ch;
  }

  .r-hero {
    padding-bottom: clamp(6rem, 3rem + 8vw, 12rem);
  }

  /* Stats become a 3-col row at desktop */
  .r-statrow {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--color-base-300);
  }

  .r-statrow__item {
    border-bottom: none;
    border-right: 1px solid var(--color-base-300);
  }

  .r-statrow__item:last-child {
    border-right: none;
  }

  .r-derisk__card {
    padding: var(--space-xl);
  }

  /* Three cards: full row at desktop */
  .r-derisk__trio {
    grid-template-columns: repeat(3, 1fr);
  }

  .r-derisk .r-section__header {
    max-width: 72ch;
  }

  .r-cap {
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    padding: var(--space-xl) var(--space-2xl) var(--space-xl) var(--space-2xl);
  }
}
