/* Site design · Splash + hero photo. Loads after theme-splash.css.
   Hero layers (built by main.js), bottom to top: .hero-photo (living room, slow zoom) → .hero-wash (white
   gradient, strongest behind the text) → .hero-shine (glints + light sweeps pinned to the photo's surfaces) → content.
   Photo: Unsplash, credits in assets/hero/CREDITS.md. Soap bubbles moved from the hero to side strips lower down. */

.hero { background: #eef7ff; }
.hero > .wrap, .hero-inner > .wrap { position: relative; z-index: 3; }
.crumbs { z-index: 4; }
.hero::after { z-index: 3; } /* Splash's bottom wave stays on top of the photo layers */

/* photo + shine share geometry (set inline by main.js) and the same zoom, so the shine stays on its surfaces */
.hero-photo, .hero-shine { position: absolute; pointer-events: none; transform-origin: 50% 60%; animation: kenburns 32s ease-in-out infinite alternate; }
.hero-photo { z-index: 0; background: url('hero/living-room-2000.jpg') center / 100% 100% no-repeat; }
.hero-shine { z-index: 2; }
.hero .bubbles { z-index: 2; } /* soap bubbles: above the photo and wash, under the content */
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.08) translate(-1%, -.4%); } }

/* the wash: near-solid behind the text (inline-start), clearing toward the quote card */
.hero-wash { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to var(--wash-dir, left), rgba(244,250,255,.88) 0%, rgba(244,250,255,.72) 30%, rgba(244,250,255,.26) 56%, rgba(244,250,255,.06) 100%); }
[dir="ltr"] .hero-wash { --wash-dir: right; }
.hero h1 { text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 0 30px rgba(255,255,255,.9); }
.hero .lead { color: #1d3354; font-weight: 500; }

/* H1 + lead sit in a frosted white bubble so they stay readable over the photo (build.mjs wraps them in .hero-bubble) */
.hero-bubble { width: fit-content; max-width: 100%; margin-bottom: 22px; padding: 22px 28px 20px; border-radius: 24px;
  background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: 0 18px 40px -22px rgba(20,42,82,.35); }
.hero-bubble h1 { text-shadow: none; }
.hero-bubble .lead { margin-bottom: 0; }
.center > .hero-bubble { margin-inline: auto; }
@media (max-width: 640px) { .hero-bubble { padding: 16px 18px 14px; border-radius: 18px; } }

/* glint: a white four-point star with a cool blue halo (reads on a white room), flares and fades */
.glint { position: absolute; width: calc(64px * var(--s, 1)); height: calc(64px * var(--s, 1)); translate: -50% -50%; opacity: 0; animation: glint 7.5s ease-in-out infinite;
  filter: drop-shadow(0 0 2px rgba(40,150,255,.9)) drop-shadow(0 0 7px rgba(56,170,255,.45)); }
.glint::before, .glint::after { content: ''; position: absolute; inset: 0; }
/* long tapered arms: horizontal + vertical, fading from the centre */
.glint::before { background:
  radial-gradient(circle, #fff 0 2px, rgba(255,255,255,.7) 3.5px, rgba(255,255,255,0) 8px),
  linear-gradient(90deg, transparent 0%, rgba(255,255,255,.95) 50%, transparent 100%) center / 100% 2.5px no-repeat,
  linear-gradient(0deg, transparent 0%, rgba(255,255,255,.95) 50%, transparent 100%) center / 2.5px 100% no-repeat; }
.glint::after { background:
  linear-gradient(90deg, transparent 0%, rgba(255,255,255,.7) 50%, transparent 100%) center / 55% 1.5px no-repeat,
  linear-gradient(0deg, transparent 0%, rgba(255,255,255,.7) 50%, transparent 100%) center / 1.5px 55% no-repeat;
  transform: rotate(45deg); }
@keyframes glint {
  0%, 74%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  80% { opacity: 1; transform: scale(1) rotate(25deg); }
  88% { opacity: .55; transform: scale(.7) rotate(45deg); }
}

/* sweep: a soft diagonal streak of light gliding across a glossy surface */
.sweep { position: absolute; overflow: hidden; }
.sweep::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0) 22%, rgba(235,246,255,.75) 46%, rgba(255,255,255,.95) 50%, rgba(235,246,255,.75) 54%, rgba(255,255,255,0) 78%, transparent 100%);
  transform: skewX(-18deg); animation: sweep 9s ease-in-out var(--d, 0s) infinite; }
@keyframes sweep { 0%, 62% { left: -60%; } 78%, 100% { left: 120%; } }

/* soap bubbles: a narrow strip along the inline-end edge of a few lower sections */
.has-side-bubbles { position: relative; overflow: hidden; }
.has-side-bubbles > .wrap { position: relative; z-index: 1; }
.side-bubbles { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 130px; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent); }
.side-bubbles i { position: absolute; bottom: -60px; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,.25) 18%, rgba(125,211,252,.18) 55%, rgba(34,211,238,.3) 100%);
  box-shadow: inset 0 0 10px rgba(255,255,255,.7), 0 4px 14px rgba(29,140,248,.18); border: 1px solid rgba(255,255,255,.8);
  animation: side-float linear infinite; }
@keyframes side-float { 0% { transform: translate(0, 0) scale(.8); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(-14px, -55vh) scale(1); } 90% { opacity: .7; } 100% { transform: translate(10px, -110vh) scale(1.1); opacity: 0; } }
.section.dark .side-bubbles i { opacity: .6; }

/* keep the review ribbon above the fold on desktop: tighter hero, smaller H1, shorter wave */
@media (min-width: 981px) {
  .hero { padding: 30px 0 66px; }
  .hero::after { height: 54px; }
  .hero h1 { font-size: clamp(32px, 3.1vw, 46px); line-height: 1.15; }
  .hero h1::after { margin-top: 10px; height: 6px; }
  .hero-bubble { padding: 18px 26px 16px; margin-bottom: 16px; }
  .hero .stats { margin-bottom: 16px; }
}
@media (min-width: 981px) and (max-height: 860px) {
  .hero { padding: 18px 0 50px; }
  .hero::after { height: 40px; }
  .hero h1 { font-size: clamp(30px, 2.7vw, 40px); }
  .hero .lead { font-size: 16px; }
  .hero .stats li { padding: 10px 10px; }
}

@media (max-width: 980px) {
  .hero-photo { background-image: url('hero/living-room-1000.jpg'); }
  .hero-wash { background: rgba(244,250,255,.8); }
  .side-bubbles { width: 70px; opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-shine { animation: none; }
  .glint, .sweep::after { animation: none; opacity: 0; }
  .side-bubbles { display: none; }
}

/* desktop: the review ribbon rides the bottom of the screen until it reaches its own place under the hero,
   so it is always above the fold, even on short laptop screens */
@media (min-width: 981px) {
  .ribbon { position: sticky; bottom: 0; z-index: 20; max-width: none; padding-inline: max(20px, calc((100% - var(--wrap)) / 2 + 20px));
    background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 -10px 28px -18px rgba(20,42,82,.35); }
}

/* about page: the mission quote uses the same frosted bubble as the hero headline (no old side bar) */
.mission { position: relative; margin: 0 0 22px; padding: 24px 28px 22px; padding-inline-start: 74px; border: 1px solid rgba(255,255,255,.95); border-radius: 24px;
  background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: 0 18px 40px -22px rgba(20,42,82,.35); }
.mission::before { content: '”'; position: absolute; inset-inline-start: 20px; top: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; padding-top: 14px; font: 800 44px/1 Georgia, serif; color: #fff; background: linear-gradient(135deg, #1d8cf8, #22d3ee); box-shadow: 0 8px 18px -8px rgba(29,140,248,.7); }
[dir="ltr"] .mission::before { content: '“'; }
.mission p { color: var(--navy); font-size: 18px; font-weight: 500; line-height: 1.65; }
.mission p:first-child { font-weight: 700; }
@media (max-width: 640px) { .mission { padding: 18px 18px 16px; padding-inline-start: 18px; padding-top: 62px; border-radius: 18px; } .mission::before { top: 14px; inset-inline-start: 18px; } }
