/**
 * Home landing — editorial mesh hero + original brand cards (full-bleed)
 */

body.page-home {
  --font-sans: 'Inter', system-ui, sans-serif;
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --home-mi-text: #141210;
  --home-mi-muted: #5c5854;
  --home-mi-accent: #a85d42;
  --home-mi-surface: #f5f2ec;
  --home-mi-border: #d9d4cb;
  --home-tp-text: #435f87;
  --home-tp-muted: #6f88ab;
  --home-tp-accent: #5f8fda;
  --home-tp-surface: #f4f8fd;
  --home-tp-border: #d5e3f5;
  --hero-p: 0;
}

body.page-choose {
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --home-mi-text: #141210;
  --home-mi-muted: #5c5854;
  --home-mi-accent: #a85d42;
  --home-mi-surface: #f5f2ec;
  --home-mi-border: #d9d4cb;
  --home-tp-text: #435f87;
  --home-tp-muted: #6f88ab;
  --home-tp-accent: #5f8fda;
  --home-tp-surface: #f4f8fd;
  --home-tp-border: #d5e3f5;
}

/* Awwwards-style scrubbed hero exit */
body.page-home.has-awwward-scroll .story-hero--editorial {
  --hero-p: 0;
}

body.page-home.has-awwward-scroll .story-hero-content--editorial {
  transform:
    translate3d(0, calc(var(--hero-p) * 14vh), 0)
    scale(calc(1 - var(--hero-p) * 0.08));
  opacity: calc(1 - var(--hero-p) * 1.25);
  filter: blur(calc(var(--hero-p) * 10px));
  transform-origin: left center;
  will-change: transform, opacity, filter;
  pointer-events: auto;
}

body.page-home.has-awwward-scroll .story-hero--editorial.is-leaving .story-hero-content--editorial {
  pointer-events: none;
}

@media (max-width: 768px) {
  body.page-home.has-awwward-scroll .story-hero-content--editorial {
    transform-origin: center top;
  }
}

body.page-home.has-awwward-scroll .story-hero--editorial.is-leaving .hero-animate-title {
  letter-spacing: calc(-0.02em + var(--hero-p) * 0.04em);
}

body.page-home.has-awwward-scroll .home-brands {
  --brands-p: 0;
}

body.page-home.has-awwward-scroll .home-testimonials {
  --testimonial-p: 0;
}

/* —— Home hero: bright editorial mesh (matches site creams + slate accents) —— */
.story-hero--editorial {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  background: #e8ecf1;
  color: var(--color-text);
  padding: calc(72px + var(--space-md)) var(--space-md) var(--space-xl);
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
}

.story-hero--editorial.creative-grain--light::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 2;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.story-hero-editorial-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 85% at 8% 88%, rgba(255, 255, 255, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse 75% 70% at 96% 4%, rgba(255, 255, 255, 0.75) 0%, transparent 48%),
    radial-gradient(ellipse 55% 50% at 52% 48%, rgba(148, 163, 184, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 72% 78%, rgba(71, 85, 105, 0.1) 0%, transparent 50%),
    linear-gradient(
      132deg,
      #f8fafc 0%,
      var(--color-surface) 32%,
      #e8ecf1 52%,
      #eef2f6 78%,
      #f4f5f7 100%
    );
  animation: hero-ed-mesh-drift 22s ease-in-out infinite alternate, hero-ed-mesh-shift 28s ease-in-out infinite;
}

@keyframes hero-ed-mesh-drift {
  0% { filter: brightness(1) saturate(1); }
  100% { filter: brightness(1.06) saturate(1.04); }
}

@keyframes hero-ed-mesh-shift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(1%, -1%, 0) scale(1.015); }
  66% { transform: translate3d(-1.2%, 0.8%, 0) scale(1); }
}

.story-hero-stripes {
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(
    -36deg,
    transparent 0,
    transparent 64px,
    rgba(30, 41, 59, 0.045) 64px,
    rgba(30, 41, 59, 0.045) 66px
  );
  animation: hero-ed-stripe-slide 38s linear infinite;
  will-change: transform;
  opacity: 0.95;
}

@keyframes hero-ed-stripe-slide {
  0% { transform: translate(0, 0); }
  100% { transform: translate(52px, 52px); }
}

.story-hero-arch {
  position: absolute;
  border: 1px solid rgba(71, 85, 105, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.story-hero-arch--1 {
  width: min(72vw, 620px);
  height: min(72vw, 620px);
  top: -18%;
  right: -12%;
  border-color: rgba(148, 163, 184, 0.35);
  transform-origin: 40% 60%;
  animation: hero-ed-arch-ccw 160s linear infinite;
}

.story-hero-arch--2 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  bottom: 8%;
  left: 55%;
  border-color: rgba(71, 85, 105, 0.11);
  transform-origin: 50% 50%;
  animation: hero-ed-arch-cw 200s linear infinite;
}

@keyframes hero-ed-arch-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes hero-ed-arch-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.story-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(42px);
}

.story-hero-orb--warm {
  width: min(300px, 48vw);
  height: min(300px, 48vw);
  bottom: 20%;
  left: 8%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(241, 245, 249, 0.55) 42%,
    transparent 72%
  );
  animation: hero-ed-orb-pulse 7s ease-in-out infinite;
}

.story-hero-orb--cool {
  width: min(260px, 40vw);
  height: min(260px, 40vw);
  top: 18%;
  right: 8%;
  background: radial-gradient(
    circle,
    rgba(226, 232, 240, 0.9) 0%,
    rgba(148, 163, 184, 0.22) 45%,
    transparent 68%
  );
  animation: hero-ed-orb-pulse-alt 9s ease-in-out infinite alternate;
}

@keyframes hero-ed-orb-pulse {
  0%, 100% { opacity: 0.82; transform: scale(1) translate3d(0, 0, 0); }
  50% { opacity: 1; transform: scale(1.06) translate3d(4px, -6px, 0); }
}

@keyframes hero-ed-orb-pulse-alt {
  0%, 100% { opacity: 0.72; transform: scale(1) translate3d(0, 0, 0); }
  50% { opacity: 0.95; transform: scale(1.1) translate3d(-6px, 4px, 0); }
}

.story-hero-content--editorial {
  max-width: 720px;
  width: 100%;
  margin: 0;
  z-index: 3;
}

.story-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.story-title {
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 12vw, 7rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* Hero title: stable for LCP/CLS; shine only */
.hero-animate-title {
  opacity: 1;
  transform: none;
  background: linear-gradient(
    105deg,
    var(--color-text) 0%,
    var(--color-text) 35%,
    rgba(255, 255, 255, 0.9) 48%,
    #fff 50%,
    rgba(255, 255, 255, 0.9) 52%,
    var(--color-text) 65%,
    var(--color-text) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-title-shine 4s ease-in-out 1.2s infinite;
}

@keyframes hero-title-shine {
  0%, 100% { background-position: 120% 50%; }
  50% { background-position: -20% 50%; }
}

/* Light-on-dark title shine (same motion as default hero title) */
.hero-animate-title--dark {
  background: linear-gradient(
    105deg,
    rgba(241, 245, 249, 0.98) 0%,
    rgba(241, 245, 249, 0.98) 32%,
    rgba(255, 255, 255, 1) 48%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.98) 52%,
    rgba(241, 245, 249, 0.98) 68%,
    rgba(241, 245, 249, 0.98) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-title-shine 4s ease-in-out 1.2s infinite;
}

.hero-animate-slogan {
  margin-bottom: var(--space-lg);
}

@keyframes hero-word-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 0.42em, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-cta-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-slogan-word {
  display: inline-block;
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  body.page-home .hero-slogan-word {
    opacity: 0;
    transform: translate3d(0, 0.42em, 0);
    animation: hero-word-rise 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.12s + var(--word-i, 0) * 0.035s);
  }

  body.page-home .btn-hero-cta {
    opacity: 0;
    animation: hero-cta-fade-up 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.05s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .hero-slogan-word,
  body.page-home .btn-hero-cta {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  body.page-home .hero-animate-title {
    animation: none !important;
  }

  body.page-home .hero-animate-title--dark {
    animation: none !important;
    background: none !important;
    color: rgba(248, 250, 252, 1) !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
  }

  .story-hero-mesh,
  .story-hero-stripes,
  .story-hero-arch--1,
  .story-hero-arch--2,
  .story-hero-orb {
    animation: none !important;
  }
}

.story-intro {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.7;
  color: var(--color-text-light);
  font-weight: 300;
  margin-bottom: var(--space-lg);
}

/* Desktop: smaller hero text + smaller cards and card text, logo visible */
@media (min-width: 769px) {
  body.page-home .story-hero .story-title {
    font-size: 3.25rem !important;
  }
  body.page-home .story-hero .story-intro {
    font-size: 1.125rem !important;
  }
  body.page-home .categories-section {
    padding-top: calc(var(--space-xl) + var(--space-lg));
    padding-bottom: var(--space-xl);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .categories-container {
    max-width: 960px;
    gap: var(--space-sm);
  }
  body.page-home .categories-container {
    max-width: 1120px;
    gap: var(--space-lg);
    grid-template-columns: 1fr 1fr;
  }
  .category-card {
    min-height: 260px;
    padding: var(--space-lg);
  }
  .category-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
  }
  .category-description {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  .category-tagline {
    font-size: 1.0625rem;
  }
  .btn-story {
    font-size: 0.875rem;
  }
}

/* Hero CTA - special modern pro button with shining border */
.btn-hero-cta {
  display: inline-block;
  margin-top: calc(var(--space-xs) * -0.5);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  background: transparent;
  border: 2px solid var(--color-text);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn-hero-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: rotate(45deg);
  animation: shine-border 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine-border {
  0% {
    transform: translateX(-150%) translateY(-150%) rotate(45deg);
  }
  100% {
    transform: translateX(150%) translateY(150%) rotate(45deg);
  }
}

.btn-hero-cta:hover {
  color: var(--color-surface);
  background: var(--color-text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.btn-hero-cta:hover::before {
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.8) 50%, transparent 70%);
}

/* Editorial hero — CTA reads on dark */
.btn-hero-cta--on-dark {
  color: rgba(248, 250, 252, 0.95);
  border-color: rgba(248, 250, 252, 0.55);
}

.btn-hero-cta--on-dark:hover {
  color: var(--color-text);
  background: rgba(248, 250, 252, 1);
  border-color: rgba(248, 250, 252, 1);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.35);
}

/* Desktop: smaller hero text */
@media (min-width: 769px) {
  body.page-home .story-hero .story-title {
    font-size: 3.25rem !important;
  }
  body.page-home .story-hero .story-intro {
    font-size: 1.125rem !important;
  }
}


/* Scroll leave fade into brands */
body.page-home .story-hero--editorial::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(255, 255, 255, 0.28) 78%,
    #ffffff 100%
  );
  opacity: 0;
  transition: opacity 0.2s linear;
}

body.page-home .story-hero--editorial.is-leaving::before {
  opacity: 1;
}

body.page-home .story-hero--editorial.is-leaving .hero-scroll-cue {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  animation: none;
}

body.page-home .story-hero--editorial.is-leaving .btn-hero-cta {
  pointer-events: none;
}

body.page-home .hero-scroll-cue {
  color: var(--color-text-light);
}

.story-hero-editorial-bg {
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.08);
  transform-origin: center center;
}



/* —— Brand cards: original look, balanced size —— */
:is(body.page-home, body.page-choose) .home-brands {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 6vw, 4.75rem) clamp(1.25rem, 4vw, 2.5rem);
  margin: 0;
  background: #ffffff;
  min-height: 0;
  display: block;
  overflow: visible;
}

:is(body.page-home, body.page-choose) .home-brands-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 0;
  align-items: stretch;
}

:is(body.page-home, body.page-choose) .home-brand-path {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 360px;
  padding: 2.25rem 1.75rem;
  box-sizing: border-box;
  transition: box-shadow 0.35s var(--home-ease), transform 0.35s var(--home-ease);
}

:is(body.page-home, body.page-choose) .home-brand-path-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0;
}

:is(body.page-home, body.page-choose) .home-brand-path-logo {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  min-height: 28px;
}

:is(body.page-home, body.page-choose) .home-brand-logo-img,
:is(body.page-home, body.page-choose) .home-brand-path-logo svg,
:is(body.page-home, body.page-choose) .home-brand-path-logo .brand-logo-svg {
  display: block;
  width: auto;
  height: 28px;
  max-width: 120px;
  object-fit: contain;
  color: currentColor;
}

:is(body.page-home, body.page-choose) .home-brand-path-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

:is(body.page-home, body.page-choose) .home-brand-path-desc {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 26rem;
}

:is(body.page-home, body.page-choose) .home-brand-path-tagline {
  margin: 0 0 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  letter-spacing: -0.02em;
}

:is(body.page-home, body.page-choose) .home-brand-path-cta {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid currentColor;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s var(--home-ease);
}

:is(body.page-home, body.page-choose) .home-brand-path-cta:hover {
  transform: translateY(-2px);
}

/* MI — original card look */
:is(body.page-home, body.page-choose) .home-brand-path--mi {
  color: var(--home-mi-text);
  background-color: var(--home-mi-surface);
  background-image:
    linear-gradient(#e8e4dc 1px, transparent 1px),
    linear-gradient(90deg, #e8e4dc 1px, transparent 1px);
  background-size: 56px 56px;
  border: 1px solid var(--home-mi-border);
  border-top: 4px solid var(--home-mi-accent);
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(20, 18, 16, 0.06);
}

:is(body.page-home, body.page-choose) .home-brand-path--mi .home-brand-path-desc {
  color: var(--home-mi-muted);
}

:is(body.page-home, body.page-choose) .home-brand-path--mi .home-brand-path-cta {
  color: var(--home-mi-text);
  border-color: var(--home-mi-border);
  border-radius: 2px;
}

:is(body.page-home, body.page-choose) .home-brand-path--mi .home-brand-path-cta:hover {
  background: var(--home-mi-text);
  border-color: var(--home-mi-text);
  color: var(--home-mi-surface);
}

:is(body.page-home, body.page-choose) .home-brand-path--mi:hover {
  box-shadow: 0 10px 28px rgba(20, 18, 16, 0.1);
}

/* Tiny Place — original card look */
:is(body.page-home, body.page-choose) .home-brand-path--tp {
  color: var(--home-tp-text);
  background: var(--home-tp-surface);
  border: 1px solid var(--home-tp-border);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(67, 95, 135, 0.08);
}

:is(body.page-home, body.page-choose) .home-brand-path--tp::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 800'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M90 640c120-120 260-30 340-100 60-50 140-120 220-60' stroke='%2396b8ed' stroke-width='7' opacity='.5'/%3E%3Cpath d='M1230 640c100-110 220-20 290-90 40-40 110-95 170-50' stroke='%235f8fda' stroke-width='7' opacity='.5'/%3E%3Cpath d='M270 170l120 40-120 40 28-40z' stroke='%236b9be0' stroke-width='7'/%3E%3Cpath d='M1210 190l125 42-125 42 30-42z' stroke='%2389aee8' stroke-width='7'/%3E%3Ccircle cx='730' cy='170' r='28' stroke='%23d06ca1' stroke-width='6'/%3E%3Ccircle cx='790' cy='170' r='28' stroke='%23d06ca1' stroke-width='6'/%3E%3Ccircle cx='760' cy='120' r='28' stroke='%23d06ca1' stroke-width='6'/%3E%3Ccircle cx='760' cy='220' r='28' stroke='%23d06ca1' stroke-width='6'/%3E%3Ccircle cx='760' cy='170' r='16' stroke='%23f0b95e' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.22;
  pointer-events: none;
}

:is(body.page-home, body.page-choose) .home-brand-path--tp .home-brand-path-desc {
  color: var(--home-tp-muted);
}

:is(body.page-home, body.page-choose) .home-brand-path--tp .home-brand-path-cta {
  color: var(--home-tp-text);
  border-color: #c7d8f1;
  border-radius: 999px;
}

:is(body.page-home, body.page-choose) .home-brand-path--tp .home-brand-path-cta:hover {
  background: var(--home-tp-accent);
  border-color: var(--home-tp-accent);
  color: #ffffff;
}

:is(body.page-home, body.page-choose) .home-brand-path--tp:hover {
  box-shadow: 0 12px 32px rgba(67, 95, 135, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  body.js-scroll-fx.page-home .home-brand-path--mi,
  body.js-scroll-fx.page-home .home-brand-path--tp,
  body.js-scroll-fx.page-choose .home-brand-path--mi,
  body.js-scroll-fx.page-choose .home-brand-path--tp {
    opacity: 0;
    transform: translate3d(var(--card-enter-x, 0px), var(--card-enter-y, 56px), 0) scale(0.96);
    filter: blur(8px);
    clip-path: inset(8% 6% 8% 6%);
    transition:
      opacity 1.05s var(--home-ease),
      transform 1.15s var(--home-ease),
      filter 0.9s var(--home-ease),
      clip-path 1.15s var(--home-ease),
      box-shadow 0.35s ease;
  }

  body.js-scroll-fx.page-home .home-brand-path--mi,
  body.js-scroll-fx.page-choose .home-brand-path--mi {
    transition-delay: 0.02s;
  }

  body.js-scroll-fx.page-home .home-brand-path--tp,
  body.js-scroll-fx.page-choose .home-brand-path--tp {
    transition-delay: 0.14s;
  }

  body.js-scroll-fx.page-home .home-brand-path.visible,
  body.js-scroll-fx.page-home .home-brand-path.is-inview,
  body.js-scroll-fx.page-choose .home-brand-path.visible,
  body.js-scroll-fx.page-choose .home-brand-path.is-inview {
    opacity: 1;
    transform: translate3d(0, var(--card-parallax-y, 0px), 0) scale(1);
    filter: blur(0);
    clip-path: inset(0 0 0 0);
  }

  body.js-scroll-fx.page-home .home-brand-path.visible .home-brand-path-inner > *,
  body.js-scroll-fx.page-home .home-brand-path.is-inview .home-brand-path-inner > *,
  body.js-scroll-fx.page-choose .home-brand-path.visible .home-brand-path-inner > *,
  body.js-scroll-fx.page-choose .home-brand-path.is-inview .home-brand-path-inner > * {
    animation: home-brand-inner-rise 0.85s var(--home-ease) both;
    animation-delay: calc(0.18s + var(--inner-i, 0) * 0.07s);
  }
}

@keyframes home-brand-inner-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.js-scroll-fx.page-home .home-brand-path,
  body.js-scroll-fx.page-home .home-brand-path .home-brand-path-inner > *,
  body.js-scroll-fx.page-choose .home-brand-path,
  body.js-scroll-fx.page-choose .home-brand-path .home-brand-path-inner > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 768px) {
  body.page-home .story-hero--editorial {
    justify-content: flex-start;
    padding: calc(88px + env(safe-area-inset-top, 0px)) 1.25rem 5rem;
    min-height: 100vh;
    min-height: 100svh;
  }

  body.page-home .story-hero-content--editorial {
    margin-top: 12vh;
  }

  :is(body.page-home, body.page-choose) .home-brands-split {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    max-width: 520px;
  }

  :is(body.page-home, body.page-choose) .home-brand-path {
    min-height: 320px;
    height: auto;
  }
}

/* —— Home testimonials: refined editorial —— */
body.page-home .home-testimonials {
  position: relative;
  padding: clamp(2.75rem, 5vw, 4rem) clamp(1.15rem, 4vw, 2.5rem) clamp(2.5rem, 4.5vw, 3.5rem);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 255, 255, 0.95) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 8% 80%, rgba(255, 255, 255, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #e8ecf1 55%, #eef2f6 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

body.page-home .home-testimonials::before {
  content: '';
  position: absolute;
  inset: -15% 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -36deg,
    transparent 0,
    transparent 64px,
    rgba(30, 41, 59, 0.028) 64px,
    rgba(30, 41, 59, 0.028) 66px
  );
  opacity: 0.7;
}

body.page-home .home-testimonials-frame {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

body.page-home .home-testimonials-header {
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

body.page-home .home-testimonials-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748b;
}

body.page-home .home-testimonials-heading {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.15;
  color: #0f172a;
}

body.page-home .home-testimonials-slogan {
  margin: 0 auto;
  max-width: 24rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
  color: #64748b;
}

body.page-home .home-testimonials-stage {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

body.page-home .home-testimonials-slideshow {
  max-width: none;
  width: 100%;
  padding-bottom: 0;
  overflow: hidden;
}

body.page-home .home-testimonials-slideshow .testimonials-slideshow-track {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-home .home-testimonial-quote {
  margin: 0;
  padding: clamp(1.15rem, 2.2vw, 1.65rem) clamp(0.85rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.35rem);
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body.page-home .testimonial-slide-clickable:hover .home-testimonial-quote,
body.page-home .testimonial-slide-clickable:focus-visible .home-testimonial-quote {
  transform: none;
  box-shadow: none;
}

body.page-home .home-testimonial-mark {
  display: block;
  margin: 0 auto 0.05rem;
  width: fit-content;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 0.75;
  color: rgba(148, 163, 184, 0.85);
  font-weight: 400;
}

body.page-home .home-testimonial-text {
  margin: 0 auto 1.15rem;
  max-width: 32rem;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: #1e293b;
}

body.page-home .home-testimonial-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding-top: 0;
  border-top: none;
}

body.page-home .home-testimonial-rule {
  display: block;
  width: 2rem;
  height: 1px;
  margin: 0 0 0.7rem;
  background: rgba(148, 163, 184, 0.55);
}

body.page-home .home-testimonial-name {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
}

body.page-home .home-testimonial-role {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: #64748b;
}

body.page-home .home-testimonials-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.1rem;
}

body.page-home .home-testimonials-count {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #64748b;
}

body.page-home .home-testimonials-count-current {
  color: #0f172a;
}

body.page-home .home-testimonials-count-sep {
  margin: 0 0.2rem;
  opacity: 0.5;
}

body.page-home .home-testimonials-dots {
  margin-top: 0;
  gap: 0.45rem;
}

body.page-home .home-testimonials-dots .testimonials-dot {
  width: 1.25rem;
  height: 2px;
  border-radius: 1px;
  background: #cbd5e1;
  transform: none;
  transition: width 0.3s var(--home-ease), background 0.25s ease;
}

body.page-home .home-testimonials-dots .testimonials-dot:hover {
  background: #94a3b8;
}

body.page-home .home-testimonials-dots .testimonials-dot.active {
  background: #1e293b;
  transform: none;
  width: 2rem;
}

@media (max-width: 768px) {
  body.page-home .home-testimonials {
    padding: 3rem 1.1rem 3.25rem;
  }

  body.page-home .home-testimonials-header {
    margin-bottom: 1.75rem;
  }

  body.page-home .home-testimonial-quote {
    padding: 1.25rem 0.35rem 1.35rem;
  }

  body.page-home .home-testimonials-footer {
    margin-top: 1.1rem;
  }
}
