/* showroom.css — immersive 4-scene vehicle showroom.
 *
 * Per docs/superpowers/specs/2026-05-29-showroom-gooey-gallery-design.md.
 * Standalone surface (/showroom/). Self-contained: does NOT import the Style A
 * or Style B token chains — the showroom is its own cinematic world.
 *
 * Aesthetic direction — "Liquid Chrome / Obsidian":
 *   Deep obsidian field, a single molten-amber accent, editorial Fraunces
 *   display serif paired with a clean grotesque (Hanken). The goo fuse, the
 *   bloom morph, and the inverted blur band all read as liquid metal. Pricing
 *   is honest and set in tabular figures — no luxury theatre.
 *
 * Signature effects preserved exactly:
 *   Scene 1  goo fuse via #fancy-goo SVG filter
 *   Scene 2  bloom morph (scroll-progress driven, native timeline + JS fallback)
 *   Scene 3  inverted fading footer (blur band at TOP, mask flipped)
 *   Scene 4  infinite fleet strip (wrap-left / wrap-right loop)
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500;1,9..144,600&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

/* ---- @property for smoothly-interpolable scroll progress ---------------- */
@property --scroll-progress {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

/* ========================================================================= */
/* Tokens — the showroom's own palette                                       */
/* ========================================================================= */

/* Tokens live on :root, NOT on .sh.
 *
 * The .sh class is on <main>, a CHILD of <body>. CSS custom properties inherit
 * DOWNWARD only — a token defined on .sh is therefore unavailable to <body>, so
 * `body { color: var(--sh-text) }` resolved to the invalid/initial value and
 * headings rendered near-black on the obsidian field (the black-on-black bug).
 * Defining the tokens at :root makes --sh-text resolvable on <body> and every
 * descendant, so all text — headings, car names, lede — inherits the light
 * obsidian-readable color. */
:root {
  /* Obsidian field */
  --sh-bg:            #0a0a0d;
  --sh-bg-2:          #101015;
  --sh-panel:         #16161d;
  --sh-panel-2:       #1d1d26;
  --sh-line:          rgba(255, 255, 255, 0.09);

  /* Molten amber accent + chrome */
  --sh-amber:         #f6a623;
  --sh-amber-deep:    #d4781a;
  --sh-amber-glow:    rgba(246, 166, 35, 0.32);
  --sh-chrome:        #c9cdd6;

  /* Type */
  --sh-text:          #f2f0ec;   /* ~17:1 on obsidian */
  --sh-text-muted:    #a7a6b0;   /* ~7:1 — AA on obsidian */
  --sh-text-faint:    #6c6b78;   /* decorative / large only */

  --sh-display:       'Fraunces', Georgia, 'Times New Roman', serif;
  --sh-body:          'Hanken Grotesk', 'Helvetica Neue', system-ui, sans-serif;

  --sh-radius:        18px;
  --sh-shadow:        0 30px 80px -20px rgba(0, 0, 0, 0.8);
  --sh-ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================================= */
/* Reset / base                                                              */
/* ========================================================================= */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sh-bg);
  color: var(--sh-text);
  font-family: var(--sh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.sh {
  position: relative;
  /* Re-assert the text color on the showroom scope itself (belt + braces): even
     if a global stylesheet sets `body { color: … }` after this file, every
     showroom descendant inherits the obsidian-readable token from .sh. */
  color: var(--sh-text);
  /* Layered atmosphere: an amber aurora bleeding up from the lower-right,
     a cool counter-glow top-left, and a fine grain — depth, not a flat fill. */
  background:
    radial-gradient(120% 90% at 88% 108%, rgba(246, 166, 35, 0.16), transparent 55%),
    radial-gradient(90% 70% at 6% -10%, rgba(120, 140, 200, 0.10), transparent 50%),
    var(--sh-bg);
}

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

.sh-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--sh-amber);
  color: #1a1206;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 0;
}
.sh-skip:focus { left: 0; }

:focus-visible {
  outline: 2.5px solid var(--sh-amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Wordmark (fixed) --------------------------------------------------- */
.sh-wordmark {
  position: fixed;
  top: clamp(1rem, 2.5vw, 1.8rem);
  left: clamp(1rem, 3vw, 2.4rem);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sh-text);
  text-decoration: none;
  font-family: var(--sh-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  mix-blend-mode: difference;   /* stays legible over both dark field + bright photos */
}
.sh-wordmark__icon { width: 22px; height: 22px; color: var(--sh-amber); }
.sh-wordmark__tld  { color: var(--sh-text-muted); }

/* ========================================================================= */
/* Shared scene scaffolding                                                  */
/* ========================================================================= */

.sh-scene {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 12vh, 9rem) clamp(1.2rem, 5vw, 4rem);
}

.sh-scene__head { max-width: 60rem; margin: 0 auto clamp(2.4rem, 6vh, 4rem); }

.sh-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sh-amber);
  font-weight: 700;
  margin: 0 0 0.9rem;
}

.sh-scene__title {
  font-family: var(--sh-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
  color: var(--sh-text);
}

.sh-scene__lede {
  color: var(--sh-text-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 38rem;
  margin: 0;
}

/* ---- Buttons + links ---------------------------------------------------- */
.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--sh-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--sh-ease), background 0.25s, box-shadow 0.25s, color 0.25s;
}
.sh-btn--solid {
  background: linear-gradient(180deg, var(--sh-amber), var(--sh-amber-deep));
  color: #1a1206;
  box-shadow: 0 8px 24px -8px var(--sh-amber-glow);
}
.sh-btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px var(--sh-amber-glow); }
.sh-btn--ghost {
  background: transparent;
  color: var(--sh-text);
  border-color: var(--sh-line);
}
.sh-btn--ghost:hover { border-color: var(--sh-amber); color: var(--sh-amber); }

.sh-link {
  display: inline-block;
  color: var(--sh-amber);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s var(--sh-ease);
}
.sh-link:hover { border-color: var(--sh-amber); }

/* ========================================================================= */
/* SCENE 1 — Gooey island CTA                                                */
/* ========================================================================= */

.sh-scene--cta {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(5rem, 14vh, 10rem);
}

.sh-cta-stage { max-width: 44rem; }

.sh-cta-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sh-text-faint);
  margin: 0 0 1.4rem;
  animation: sh-fade-up 0.9s var(--sh-ease) both;
}

.sh-cta-title {
  font-family: var(--sh-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 1.3rem;
  color: var(--sh-text);
  animation: sh-fade-up 0.9s 0.08s var(--sh-ease) both;
}
.sh-cta-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--sh-amber);
}

.sh-cta-sub {
  color: var(--sh-text-muted);
  font-size: clamp(1.02rem, 1.9vw, 1.28rem);
  line-height: 1.55;
  max-width: 34rem;
  margin: 0 auto 3rem;
  animation: sh-fade-up 0.9s 0.16s var(--sh-ease) both;
}

/* ---- The goo island: pill + droplet fused by #fancy-goo ----------------- */
.sh-goo {
  position: relative;
  display: inline-grid;
  justify-items: center;
  /* The goo filter is applied to this small region only (R2: perf). */
  filter: url(#fancy-goo);
  animation: sh-fade-up 0.9s 0.24s var(--sh-ease) both;
}

.sh-goo__pill {
  position: relative;
  z-index: 2;
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 1.05rem 2.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sh-amber), var(--sh-amber-deep));
  color: #1a1206;
  font-family: var(--sh-body);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--sh-ease);
}

.sh-goo__drop {
  /* The droplet that the goo fuses to the pill, then "drips" under hover. */
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-top: -14px;        /* overlap so the goo bridges pill ↔ drop */
  background: var(--sh-amber-deep);
  transform: translateY(-6px) scale(0.7);
  transition: transform 0.55s var(--sh-ease);
}

.sh-goo:hover .sh-goo__pill,
.sh-goo:focus-within .sh-goo__pill { transform: translateY(-4px); }
.sh-goo:hover .sh-goo__drop,
.sh-goo:focus-within .sh-goo__drop { transform: translateY(8px) scale(1); }

.sh-cta-scrollcue {
  margin: 3.4rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sh-text-faint);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.sh-cta-scrollcue__line {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--sh-amber), transparent);
  animation: sh-cue 1.8s ease-in-out infinite;
}

/* ========================================================================= */
/* SCENE 2 — Bloom slider                                                    */
/* ========================================================================= */
/*
 * The .sh-bloom panel "blooms" from a small circle into a full panel driven by
 * --scroll-progress (0 = droplet, 1 = open panel). Native scroll-timeline drives
 * the keyframe when supported; the JS fallback writes --scroll-progress and the
 * size interpolates off it directly. Reduced-motion pins it open.
 */

.sh-scene--slider { max-width: 70rem; margin: 0 auto; }

.sh-bloom {
  position: relative;
  margin: 0 auto;
  /* Default (no-JS, no-timeline, reduced-motion): fully bloomed. */
  width: min(100%, 52rem);
  border-radius: var(--sh-radius);
  background: var(--sh-panel);
  border: 1px solid var(--sh-line);
  box-shadow: var(--sh-shadow);
  overflow: hidden;
}

/* JS-timeline + native-timeline share the morph: interpolate size + radius off
   --scroll-progress. clamp() keeps it bounded between droplet and full panel. */
.sh-js-timeline .sh-bloom,
.sh-native-timeline .sh-bloom {
  --p: var(--scroll-progress, 0);
  width: calc(7rem + (min(100%, 52rem) - 7rem) * var(--p));
  border-radius: calc(50% - (50% - var(--sh-radius)) * var(--p));
  /* Fade the slide contents in as the panel opens. */
}
.sh-js-timeline .sh-slider,
.sh-native-timeline .sh-slider {
  opacity: clamp(0, calc((var(--scroll-progress, 0) - 0.35) * 2.2), 1);
  transition: opacity 0.2s linear;
}

/* Native scroll-timeline: hand the same custom-prop ramp to the browser so the
   morph tracks the scroll position over the slider scene. */
@supports (animation-timeline: scroll(root)) {
  .sh-native-timeline .sh-bloom {
    animation: sh-bloom-progress linear both;
    animation-timeline: scroll(root);
    animation-range: 0 80vh;
  }
}
@keyframes sh-bloom-progress {
  from { --scroll-progress: 0; }
  to   { --scroll-progress: 1; }
}

/* ---- The slider itself -------------------------------------------------- */
.sh-slider { position: relative; }

.sh-slider__track {
  position: relative;
  display: grid;
}
.sh-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 24rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition: opacity 0.5s var(--sh-ease), transform 0.5s var(--sh-ease), visibility 0s 0.5s;
}
.sh-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s var(--sh-ease), transform 0.5s var(--sh-ease), visibility 0s;
}

.sh-slide__media {
  position: relative;
  background: var(--sh-bg-2);
  overflow: hidden;
}
.sh-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Subtle chrome sheen sweeping the photo. */
  filter: saturate(1.05) contrast(1.02);
}
.sh-slide__img--empty { min-height: 18rem; background: linear-gradient(135deg, var(--sh-panel-2), var(--sh-bg-2)); }
.sh-slide__media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Left scrim so any overflow text stays legible (WCAG over image). */
  background: linear-gradient(90deg, transparent 60%, rgba(10, 10, 13, 0.55));
  pointer-events: none;
}

.sh-slide__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  background: var(--sh-panel);
}
.sh-slide__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sh-text-faint);
  margin: 0;
}
.sh-slide__name {
  font-family: var(--sh-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--sh-text);
}
.sh-slide__price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.3rem 0 1.2rem;
  flex-wrap: wrap;
}
.sh-slide__price-num {
  font-family: var(--sh-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--sh-amber);
  font-variant-numeric: tabular-nums;
}
.sh-slide__price-note {
  font-size: 0.8rem;
  color: var(--sh-text-faint);
  letter-spacing: 0.02em;
}
.sh-slide__actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.sh-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.1rem;
  background: var(--sh-panel-2);
  border-top: 1px solid var(--sh-line);
}
.sh-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--sh-line);
  background: transparent;
  color: var(--sh-text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--sh-ease);
}
.sh-arrow svg { width: 20px; height: 20px; }
.sh-arrow:hover { border-color: var(--sh-amber); color: var(--sh-amber); transform: scale(1.08); }
.sh-slider__dots { display: flex; gap: 0.6rem; }
.sh-dot {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.sh-dot span {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--sh-text-faint);
  transition: background 0.25s, transform 0.25s var(--sh-ease);
}
.sh-dot.is-active span { background: var(--sh-amber); transform: scale(1.3); }

.sh-slider__empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--sh-text-muted);
}

/* ========================================================================= */
/* SCENE 3 — Inverted fading footer (blur band at TOP, fades down)           */
/* ========================================================================= */

.sh-scene--footer {
  position: relative;
  z-index: 3;
  padding: clamp(5rem, 14vh, 9rem) clamp(1.2rem, 5vw, 4rem) clamp(3rem, 8vh, 5rem);
  color: var(--sh-text);
}

/* Opaque top → transparent bottom (flipped from the original footer). */
.sh-scene--footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    rgb(0, 0, 0),
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.8) 60%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.3) 80%,
    rgba(0, 0, 0, 0) 95%
  );
}

/* Backdrop blur band concentrated at the TOP, masked to fade downward. */
.sh-scene--footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  mask-image: linear-gradient(
    rgb(0, 0, 0),
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0.8) 70%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 0) 95%
  );
  -webkit-mask-image: linear-gradient(
    rgb(0, 0, 0),
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0.8) 70%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 0) 95%
  );
}

.sh-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
}
.sh-footer__col p { color: var(--sh-text-muted); line-height: 1.55; margin: 0 0 0.7rem; }
.sh-footer__h {
  font-family: var(--sh-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
  color: var(--sh-text);
}

/* ========================================================================= */
/* SCENE 4 — Fleet looping gallery                                           */
/* ========================================================================= */

.sh-scene--fleet { max-width: 78rem; margin: 0 auto; }
/* grid-template-columns: minmax(0, 1fr) prevents the aspect-ratio'd .sh-feature
   from blowing out to max-content width (default 1fr = minmax(auto,1fr) lets an
   intrinsically-sized child overflow the container). min-width:0 on children
   reinforces shrink-to-fit. */
.sh-fleet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.sh-fleet > * { min-width: 0; }

/* ---- Featured hero (3:2) ------------------------------------------------ */
.sh-feature {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: var(--sh-radius);
  overflow: hidden;
  background: var(--sh-bg-2);
  border: 1px solid var(--sh-line);
  box-shadow: var(--sh-shadow);
}
.sh-feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: sh-feature-in 0.6s var(--sh-ease);
}
.sh-feature__img--empty { background: linear-gradient(135deg, var(--sh-panel-2), var(--sh-bg-2)); }
.sh-feature__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  /* Bottom scrim for AA legibility over any photo. */
  background: linear-gradient(transparent, rgba(7, 7, 10, 0.86) 85%);
}
.sh-feature__name {
  font-family: var(--sh-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sh-text);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.sh-feature__price {
  font-family: var(--sh-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--sh-amber);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

/* ---- Infinite strip + edge controls ------------------------------------ */
.sh-fleet__rail {
  position: relative;
  display: flex;
  align-items: center;
}
.sh-strip {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-behavior: auto;
  padding: 0.4rem 0.2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sh-strip::-webkit-scrollbar { display: none; }

.sh-thumb {
  flex: 0 0 auto;
  width: clamp(8rem, 16vw, 11rem);
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 1px solid var(--sh-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--sh-bg-2);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.3s, border-color 0.3s, transform 0.3s var(--sh-ease);
}
.sh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-thumb__empty { display: block; width: 100%; height: 100%; background: var(--sh-panel-2); }
.sh-thumb:hover { opacity: 1; transform: translateY(-3px); border-color: rgba(246, 166, 35, 0.5); }
.sh-thumb.is-selected {
  opacity: 1;
  border-color: var(--sh-amber);
  box-shadow: 0 0 0 1px var(--sh-amber), 0 10px 26px -10px var(--sh-amber-glow);
}

.sh-rail-edge {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 4;
  width: clamp(2.6rem, 5vw, 3.6rem);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: var(--sh-text);
  transition: color 0.2s;
}
.sh-rail-edge svg { width: 26px; height: 26px; }
.sh-rail-edge--left  { left: 0;  background: linear-gradient(90deg, var(--sh-bg) 30%, transparent); }
.sh-rail-edge--right { right: 0; background: linear-gradient(270deg, var(--sh-bg) 30%, transparent); }
.sh-rail-edge:hover { color: var(--sh-amber); }

.sh-fleet__foot { text-align: center; margin: clamp(1.6rem, 4vh, 2.6rem) 0 0; }
.sh-fleet__empty { padding: 3rem 2rem; text-align: center; color: var(--sh-text-muted); }

/* ========================================================================= */
/* Keyframes                                                                 */
/* ========================================================================= */

@keyframes sh-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sh-feature-in {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: none; }
}
@keyframes sh-cue {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ========================================================================= */
/* Responsive                                                                */
/* ========================================================================= */

@media (max-width: 760px) {
  .sh-slide { grid-template-columns: 1fr; }
  .sh-slide__media { min-height: 14rem; }
  .sh-slide__media::after { background: linear-gradient(0deg, transparent 70%, rgba(10, 10, 13, 0.4)); }
  .sh-footer__inner { grid-template-columns: 1fr; }
  .sh-wordmark { font-size: 1rem; }
}

/* ========================================================================= */
/* Reduced motion — gallery stays fully FUNCTIONAL with motion off           */
/* ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  /* Goo morph disabled — drop the SVG filter, show pill + static drop. */
  .sh-goo { filter: none; }
  .sh-goo__drop { display: none; }

  /* Bloom pinned open (panel static, slides visible). */
  .sh-bloom { width: min(100%, 52rem) !important; border-radius: var(--sh-radius) !important; }
  .sh-slider { opacity: 1 !important; }
  .sh-slide { transition: none; }

  /* Scroll cue is decorative — hide its motion. */
  .sh-cta-scrollcue__line { animation: none; }
}

/* Explicit class set by JS when reduced-motion is detected (belt + braces). */
.sh-reduced-motion .sh-goo { filter: none; }
.sh-reduced-motion .sh-goo__drop { display: none; }
.sh-reduced-motion .sh-bloom { width: min(100%, 52rem); border-radius: var(--sh-radius); }
.sh-reduced-motion .sh-slider { opacity: 1; }
