/* SafetyPass — flux.css
   Scoped styles for the new hero and the three product panels. Everything is
   prefixed fx- so the rest of the site is untouched. */

:root {
  --fx-display: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --fx-ink: #ffffff;
  --fx-dim: rgba(255, 255, 255, .72);
  --fx-green: #3fae1a;
  --fx-orange: #e07a12;
  --fx-red: #d62828;
}

/* ───────── shared ───────── */
.fx-pill {
  position: absolute; z-index: 6; left: 50%; translate: -50% 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(18px, 3vw, 34px));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; font-family: var(--fx-display); font-weight: 600; font-size: clamp(12px, 1.05vw, 14px);
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background .3s, border-color .3s;
}
.fx-pill:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }

.fx-kicker {
  margin: 0; font-family: var(--fx-display); font-weight: 600; font-size: clamp(10px, .86vw, 12px);
  letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .62);
}
.fx-tags {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 9px 15px;
  font-family: var(--fx-display); font-weight: 600; font-size: clamp(11px, .95vw, 13px);
  letter-spacing: .16em; text-transform: uppercase; color: var(--fx-dim);
}
.fx-tags i { width: 4px; height: 4px; background: currentColor; opacity: .55; flex: none; }

/* per-character / per-word reveals */
.fx-ch { display: inline-block; will-change: transform, opacity; }
.fx-anim .fx-ch { opacity: 0; transform: translateY(.6em) scaleY(1.1); }
.fx-anim.fx-in .fx-ch { opacity: 1; transform: none; transition: opacity .42s ease, transform .78s cubic-bezier(.17, .85, .28, 1); transition-delay: calc(var(--i) * 24ms); }
.fx-wd { display: inline-block; overflow: hidden; vertical-align: bottom; }
.fx-wd > span { display: inline-block; will-change: transform, opacity; }
.fx-anim .fx-wd > span { opacity: 0; transform: translateY(105%); }
.fx-anim.fx-in .fx-wd > span { opacity: 1; transform: none; transition: opacity .4s ease, transform .7s cubic-bezier(.17, .85, .28, 1); transition-delay: calc(var(--i) * 32ms); }

/* ───────── hero ───────── */
#top.fx-hero { position: relative; height: 170svh; background: #000; }
.fx-hero__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-items: end; isolation: isolate; }
.fx-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.fx-hero__media video, .fx-hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.62) contrast(1.05) brightness(.58); transform: scale(1.04);
}
.fx-hero__grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .12) 32%, rgba(0, 0, 0, .55) 72%, rgba(0, 0, 0, .9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, 0) 58%);
}
.fx-hero__content {
  position: relative; z-index: 4; width: 100%; will-change: transform, opacity;
  padding: 0 clamp(18px, 4vw, 56px) calc(env(safe-area-inset-bottom, 0px) + clamp(96px, 13vh, 150px));
  display: grid; gap: clamp(14px, 1.8vw, 22px); justify-items: start;
}
.fx-title {
  margin: 0; font-family: var(--fx-display); font-weight: 700; color: var(--fx-ink);
  font-size: clamp(40px, 7.2vw, 108px); line-height: .92; letter-spacing: -.05em; text-transform: uppercase;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .45);
}
.fx-title .fx-soft { color: rgba(255, 255, 255, .5); }
.fx-scroll {
  position: absolute; z-index: 5; right: clamp(18px, 4vw, 56px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(22px, 3.4vw, 40px));
  width: 26px; height: 42px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .42);
}
.fx-scroll i { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: fx-drop 1.9s cubic-bezier(.6, .1, .3, 1) infinite; }
@keyframes fx-drop { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 75% { transform: translateY(17px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 720px) { .fx-scroll { display: none; } }

/* ───────── product panels ───────── */
.fx-panel { position: relative; background: #000; height: 700svh; }
.fx-panel__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.fx-panel__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  filter: saturate(.95) contrast(1.05) brightness(.86); transform: scale(1.04); opacity: 0; will-change: opacity, transform;
}
.fx-panel__bg:first-of-type { opacity: 1; }
.fx-panel__grade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 44%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, .3) 62%, rgba(0, 0, 0, .86) 100%);
}
.fx-panel__stage { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.fx-card {
  position: absolute; width: auto; height: min(56vh, 480px); border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  will-change: transform;
}
.fx-glow {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: -1;
  width: min(58vh, 500px); aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: .9;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fx-c, #3fae1a) 40%, transparent), transparent 72%);
  filter: blur(14px); will-change: transform, opacity;
}

.fx-panel__cap {
  position: absolute; z-index: 4; left: clamp(18px, 4vw, 56px); right: clamp(18px, 4vw, 56px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(96px, 13vh, 142px));
  display: grid; gap: 14px; justify-items: start; opacity: 0; filter: blur(10px); pointer-events: none;
  transition: opacity .32s ease, filter .32s ease;
}
.fx-panel__cap.is-on, .fx-panel__desc.is-on { opacity: 1; filter: none; pointer-events: auto; }
.fx-panel__cap a { text-decoration: none; }
.fx-panel__cap h2 {
  margin: 0; font-family: var(--fx-display); font-weight: 700; color: #fff;
  font-size: clamp(38px, 6.2vw, 92px); line-height: .92; letter-spacing: -.05em; text-transform: uppercase;
}
.fx-panel__cap a:hover h2 { color: color-mix(in srgb, var(--fx-c, #fff) 65%, #fff); }
.fx-panel__cap .fx-tags { color: rgba(255, 255, 255, .8); }

.fx-panel__desc {
  position: absolute; z-index: 4; right: clamp(18px, 4vw, 56px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(96px, 13vh, 142px));
  width: min(360px, 34vw); opacity: 0; filter: blur(10px); pointer-events: none;
  transition: opacity .32s ease, filter .32s ease;
}
.fx-panel__desc h3 { margin: 0 0 8px; font-family: var(--fx-display); font-weight: 600; font-size: clamp(14px, 1.2vw, 17px); color: #fff; }
.fx-panel__desc p { margin: 0; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.5; color: rgba(255, 255, 255, .76); }
.fx-panel__desc .fx-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--fx-display); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 4px;
  transition: border-color .25s, gap .25s;
}
.fx-panel__desc .fx-more:hover { border-color: #fff; gap: 12px; }
.fx-panel__num {
  position: absolute; z-index: 4; left: clamp(18px, 4vw, 56px);
  top: calc(env(safe-area-inset-top, 0px) + clamp(78px, 11vh, 104px));
  font-family: var(--fx-display); font-weight: 600; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.fx-panel__num b { color: #fff; font-weight: 700; }

@media (max-width: 900px) {
  .fx-panel__cap h2 { font-size: clamp(30px, 9.4vw, 54px); }
  .fx-card { height: min(32vh, 280px); }
  .fx-panel__stage { place-items: start center; padding-top: clamp(104px, 17vh, 160px); }
  .fx-glow { top: clamp(104px, 17vh, 160px); translate: -50% 0; width: min(36vh, 320px); }
  .fx-panel__cap { bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(190px, 27vh, 250px)); }
  .fx-panel__desc { left: clamp(18px, 4vw, 56px); right: clamp(18px, 4vw, 56px); width: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(84px, 11vh, 120px)); }
  .fx-panel__desc p { max-width: 36em; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-card { transform: none !important; filter: none !important; }
  .fx-hero__content { opacity: 1 !important; transform: none !important; }
  .fx-anim .fx-ch, .fx-anim .fx-wd > span { opacity: 1 !important; transform: none !important; }
  .fx-scroll i { animation: none; }
}

/* ───────── final card grid ───────── */
.fx-final { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; background: #000; isolation: isolate; }
.fx-final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: saturate(.55) contrast(1.05) brightness(.42); }
.fx-final__grade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 46%, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .15) 30%, rgba(0, 0, 0, .55) 100%);
}
.fx-final__inner { position: relative; z-index: 2; width: 100%; padding: clamp(96px, 14vh, 150px) clamp(18px, 4vw, 56px) clamp(40px, 7vh, 80px); }
.fx-final__title {
  margin: 0 auto clamp(26px, 4vw, 48px); max-width: 16em; text-align: center;
  font-family: var(--fx-display); font-weight: 700; color: rgba(255, 255, 255, .92);
  font-size: clamp(28px, 4.4vw, 62px); line-height: .96; letter-spacing: -.045em; text-transform: uppercase;
  text-shadow: 0 2px 36px rgba(0, 0, 0, .5);
}
.fx-final__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); max-width: 1180px; margin-inline: auto; }
.fx-prod {
  display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 10px;
  padding: 18px 18px 16px; border-radius: 4px;
  background: rgba(220, 232, 240, .14); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.17, .85, .28, 1), transform .9s cubic-bezier(.17, .85, .28, 1), border-color .3s, background .3s;
}
.fx-prod.fx-in { opacity: 1; transform: none; }
.fx-prod:hover { background: rgba(220, 232, 240, .2); border-color: rgba(255, 255, 255, .34); }
.fx-prod__name {
  text-align: center; font-family: var(--fx-display); font-weight: 700; color: #fff;
  font-size: clamp(15px, 1.35vw, 19px); letter-spacing: -.01em; text-transform: uppercase;
}
.fx-prod__shot { display: grid; place-items: center; padding: 6px 0 2px; min-height: 0; }
.fx-prod__shot img { height: clamp(120px, 15vh, 168px); width: auto; border-radius: 7px; box-shadow: 0 16px 34px rgba(0, 0, 0, .5); }
.fx-prod h3 { margin: 0; font-family: var(--fx-display); font-weight: 600; font-size: clamp(14px, 1.15vw, 16px); line-height: 1.25; color: #fff; }
.fx-prod p { margin: 0; font-size: clamp(12px, .95vw, 13px); line-height: 1.45; color: rgba(255, 255, 255, .7); }
.fx-prod__buy { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 4px; }
.fx-prod__px { font-family: var(--fx-display); font-weight: 600; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); line-height: 1.5; }
.fx-prod__px b { display: block; font-weight: 700; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: -.01em; color: #fff; }
.fx-prod__btn {
  padding: 11px 18px; border-radius: 3px; background: #fff; color: #0c0f14; text-decoration: none; white-space: nowrap;
  font-family: var(--fx-display); font-weight: 700; font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  transition: background .22s, color .22s;
}
.fx-prod__btn:hover { background: var(--fx-c, #3fae1a); color: #fff; }
@media (max-width: 640px) {
  .fx-final__grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; gap: 12px; }
  .fx-prod { grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 16px; align-items: start; }
  .fx-prod__name { grid-column: 2; text-align: left; }
  .fx-prod__shot { grid-row: 1 / 4; grid-column: 1; padding: 0; }
  .fx-prod__shot img { height: 132px; }
  .fx-prod h3, .fx-prod p { grid-column: 2; }
  .fx-prod__buy { grid-column: 1 / -1; }
  .fx-final__inner { padding-top: clamp(86px, 12vh, 120px); }
}
@media (prefers-reduced-motion: reduce) { .fx-prod { opacity: 1 !important; transform: none !important; } }

/* the original page script parallaxes the hero's first child: the pin must stay put */
#top.fx-hero > .fx-hero__pin { transform: none !important; translate: none !important; opacity: 1 !important; }
@media (max-width: 900px) {
  .fx-panel__stage { padding-top: 0; }
  .fx-card { top: clamp(118px, 18vh, 170px); }
  .fx-glow { top: clamp(118px, 18vh, 170px); }
}
@media (max-width: 520px) { .fx-title { font-size: 8.4vw; } }

.fx-panel__bg:nth-of-type(3) { filter: saturate(1.05) contrast(1.02) brightness(1.45); }
.fx-panel__desc, .fx-panel__cap { text-shadow: 0 1px 18px rgba(0, 0, 0, .75); }

/* ── 3D card: a slab with a front, a back and an edge, so it can spin ── */
.fx-panel__stage { perspective: 1500px; }
.fx-card { box-shadow: none; border-radius: 14px; transform-style: preserve-3d; }
.fx-card > img { display: block; height: 100%; width: auto; border-radius: 14px; transform: translateZ(5px); backface-visibility: hidden; }
.fx-card i { position: absolute; inset: 0; border-radius: 14px; background: #1a1f27; }
.fx-card i.fx-card__back { background: linear-gradient(150deg, #2a313c 0%, #12161c 60%, #0b0e12 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.fx-card i.fx-card__shadow { background: none; box-shadow: 0 40px 90px rgba(0, 0, 0, .7); }
.fx-panel__num, .fx-panel__sticky > .fx-pill { transition: opacity .3s; }
.fx-panel.is-final .fx-panel__num, .fx-panel.is-final .fx-panel__sticky > .fx-pill { opacity: 0; pointer-events: none; }

/* the last screen lives inside the pinned scene and takes it over */
.fx-panel .fx-final { position: absolute; inset: 0; z-index: 8; min-height: 0; opacity: 0; pointer-events: none; will-change: opacity; }
.fx-panel.is-final .fx-final { pointer-events: auto; }
.fx-final__inner { max-height: 100svh; }
@media (max-width: 640px) {
  .fx-final__inner { padding-top: clamp(96px, 13vh, 120px); padding-bottom: 16px; }
  .fx-final__title { margin-bottom: 16px; font-size: clamp(18px, 5.4vw, 30px); }
  .fx-final__grid { gap: 8px; }
  .fx-prod { padding: 12px; gap: 6px; }
  .fx-prod__shot img { height: clamp(84px, 13vh, 120px); }
  .fx-prod__btn { padding: 9px 14px; }
}
@media (prefers-reduced-motion: reduce) { .fx-card { transform: none !important; } }

/* card back + brighter, bluer last screen */
.fx-card i.fx-card__back { background: #0c2748 url("../assets/card-back.webp") center / 100% 100% no-repeat; box-shadow: none; }
.fx-final__bg { filter: saturate(.7) contrast(1.04) brightness(.82); }
.fx-final__grade {
  background:
    linear-gradient(180deg, rgba(8, 30, 54, .5) 0%, rgba(14, 48, 82, .28) 34%, rgba(10, 36, 64, .5) 100%),
    linear-gradient(0deg, rgba(24, 78, 128, .38), rgba(24, 78, 128, .38));
}
.fx-prod { background: rgba(150, 190, 220, .2); border-color: rgba(200, 225, 245, .26); }
.fx-prod:hover { background: rgba(150, 190, 220, .28); }

/* ───────── responsive pass ─────────
   --fx-head is the live height of the site header (set by flux.js). On phones the
   scene is a fixed stack: label, card, name, tags, three lines of copy, link, pill. */
:root { --fx-head: 72px; }
@media (max-width: 900px) {
  .fx-panel__sticky { --fx-desc-h: 104px; --fx-pill-h: calc(env(safe-area-inset-bottom, 0px) + 78px); }
  .fx-panel__num { top: calc(var(--fx-head) + 10px); font-size: 11px; }
  .fx-card { top: calc(var(--fx-head) + 36px); height: clamp(110px, calc(100svh - var(--fx-head) - 372px), 320px); }
  .fx-glow { top: calc(var(--fx-head) + 36px); width: clamp(140px, calc(100svh - var(--fx-head) - 340px), 340px); }
  .fx-panel__desc { bottom: var(--fx-pill-h); height: var(--fx-desc-h); overflow: hidden; }
  .fx-panel__desc h3 { display: none; }
  .fx-panel__desc p { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .fx-panel__desc .fx-more { margin-top: 10px; }
  .fx-panel__cap { bottom: calc(var(--fx-pill-h) + var(--fx-desc-h) + 12px); gap: 8px; }
  .fx-panel__cap h2 { font-size: clamp(28px, 9vw, 54px); }
  .fx-panel__cap .fx-tags { flex-wrap: nowrap; gap: 8px; font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
  .fx-panel__sticky > .fx-pill, .fx-hero__pin > .fx-pill { padding: 13px 24px; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); }
  .fx-hero__content { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); }
  .fx-hero .fx-tags { font-size: 10px; letter-spacing: .1em; gap: 6px 10px; }
}
@media (max-width: 640px) {
  .fx-final__inner { padding-top: calc(var(--fx-head) + 14px); }
}
@media (max-width: 640px) and (max-height: 740px) {
  .fx-prod p { display: none; }
  .fx-prod__shot img { height: 72px; }
  .fx-prod { padding: 10px 12px; }
  .fx-final__title { margin-bottom: 10px; }
}
@media (max-width: 640px) and (max-height: 600px) {
  .fx-prod__shot img { height: 58px; }
  .fx-prod__btn { padding: 8px 12px; }
  .fx-prod__px b { font-size: 15px; }
  .fx-final__grid { gap: 6px; }
}
/* phones on their side */
@media (max-height: 520px) and (orientation: landscape) {
  .fx-title { font-size: clamp(28px, 11svh, 48px); }
  .fx-hero__content { padding-bottom: 70px; gap: 8px; }
  .fx-panel__stage { place-items: center end; padding: 0; }
  .fx-card { top: calc(var(--fx-head) + 14px); right: 9vw; left: auto; height: calc(100svh - var(--fx-head) - 30px); }
  .fx-glow { display: none; }
  .fx-panel__num { top: calc(var(--fx-head) + 8px); }
  .fx-panel__cap { bottom: 104px; right: 40vw; }
  .fx-panel__cap h2 { font-size: clamp(28px, 13svh, 52px); }
  .fx-panel__desc { left: clamp(18px, 4vw, 56px); right: 40vw; width: auto; bottom: 70px; height: auto; }
  .fx-panel__desc h3, .fx-panel__desc p { display: none; }
  .fx-panel__desc .fx-more { margin-top: 0; }
  .fx-panel__sticky > .fx-pill, .fx-hero__pin > .fx-pill { left: clamp(18px, 4vw, 56px); translate: none; bottom: 14px; padding: 11px 20px; }
  .fx-final__inner { padding: calc(var(--fx-head) + 10px) 18px 10px; }
  .fx-final__title { font-size: 20px; margin-bottom: 10px; }
  .fx-final__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 8px; }
  .fx-prod { grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 10px; padding: 10px; gap: 4px; }
  .fx-prod__name { grid-column: 2; text-align: left; }
  .fx-prod__shot { grid-row: 1 / 3; grid-column: 1; padding: 0; }
  .fx-prod__shot img { height: 62px; }
  .fx-prod h3 { grid-column: 2; }
  .fx-prod p { display: none; }
  .fx-prod__buy { grid-column: 1 / -1; }
  .fx-prod__btn { padding: 8px 12px; }
}

/* larger cards on the last screen (desktop / tablet) */
@media (min-width: 641px) and (min-height: 521px) {
  .fx-final__inner { padding-top: calc(var(--fx-head) + clamp(18px, 4vh, 48px)); padding-bottom: clamp(18px, 4vh, 48px); }
  .fx-final__title { font-size: clamp(30px, 4.6vw, 68px); margin-bottom: clamp(18px, 3.4vh, 40px); }
  .fx-final__grid { max-width: min(1560px, 100%); gap: clamp(12px, 1.6vw, 28px); }
  .fx-prod { padding: clamp(18px, 2vw, 32px); gap: clamp(10px, 1.4vh, 16px); border-radius: 6px; }
  .fx-prod__name { font-size: clamp(16px, 1.5vw, 22px); }
  .fx-prod__shot img { height: clamp(150px, 34vh, 380px); border-radius: 10px; }
  .fx-prod h3 { font-size: clamp(16px, 1.5vw, 23px); }
  .fx-prod p { font-size: clamp(13px, 1.1vw, 17px); }
  .fx-prod__px { font-size: 11px; }
  .fx-prod__px b { font-size: clamp(20px, 1.9vw, 28px); }
  .fx-prod__btn { padding: clamp(12px, 1.5vh, 16px) clamp(18px, 1.8vw, 28px); font-size: clamp(11px, .9vw, 13px); }
}
/* phones: a shorter scene, so every swipe moves the story on */
@media (max-width: 900px) {
  .fx-panel { height: 520svh; touch-action: pan-y; }
  #top.fx-hero { height: 140svh; }
}

/* hero → scene: no hard seam. The hero sinks to black and the first room rises out of it. */
.fx-hero__pin::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .7) 60%, #000 100%); }
.fx-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 90svh; z-index: 9; pointer-events: none; background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .86) 18%, rgba(0, 0, 0, .5) 48%, rgba(0, 0, 0, .16) 76%, rgba(0, 0, 0, 0) 100%); }

.fx-word { display: inline-block; white-space: nowrap; }
.fx-final__title { max-width: 22em; }
@media (min-width: 641px) and (min-height: 521px) { .fx-prod p { min-height: 2.9em; } }


/* SafetyPass module description visibility fix — 2026-11-14 */
/* Keep the Workforce preview readable if the client-side renderer is unavailable.
   The normal scroll scene still controls which of the three modules is active. */
.sp-static .fx-panel__stage + .fx-panel__cap,
.sp-static .fx-panel__stage + .fx-panel__cap + .fx-panel__desc {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

/* The three module-summary cards must never lose their text just because the
   mobile viewport is short. Previously .fx-prod p was set to display:none,
   which also hid the Workforce / Construction / Energy labels. */
@media (max-width: 640px) {
  .fx-prod > p { display: block; }
  .fx-prod > p:not(.fx-prod__name) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.3;
  }
  .fx-prod { grid-template-rows: auto auto auto auto; }
  .fx-panel .fx-final { overflow-y: auto; overscroll-behavior-y: contain; }
}

/* The animated programme summaries also need adequate room for their copy
   and their programme link on small portrait screens. */
@media (max-width: 900px) and (orientation: portrait) {
  .fx-panel__sticky { --fx-desc-h: clamp(100px, 18svh, 145px); }
  .fx-panel__desc { overflow: visible; }
  .fx-panel__desc p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    font-size: clamp(12px, 1.65svh, 14px);
    line-height: 1.35;
  }
  .fx-panel__desc .fx-more { margin-top: 7px; }
}

/* Landscape mobile previously suppressed both the summary text and the
   module-card descriptions. Preserve the text in a compact layout instead. */
@media (max-height: 520px) and (orientation: landscape) {
  .fx-panel__cap { bottom: 126px; }
  .fx-panel__desc { bottom: 65px; height: auto; overflow: visible; }
  .fx-panel__desc p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.3;
  }
  .fx-panel__desc .fx-more { margin-top: 5px; }
  .fx-prod > p { display: block; }
  .fx-prod > p:not(.fx-prod__name) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
  }
  .fx-panel .fx-final { overflow-y: auto; overscroll-behavior-y: contain; }
}

/* === SafetyPass module visibility: live-rendered fix v2 (2026-11-14) ===
   Earlier fix was scoped to .sp-static, which is removed after client rendering.
   Only the currently active level is visible; its text no longer depends on
   word-by-word opacity animations. */
.fx-panel__cap.is-on,
.fx-panel__desc.is-on {
  opacity: 1 !important;
  filter: none !important;
  visibility: visible !important;
  pointer-events: auto;
}
.fx-panel__desc p,
.fx-panel__desc h3 {
  visibility: visible !important;
}
.fx-panel__desc .fx-wd > span,
.fx-panel__desc .fx-ch {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
/* Every course-card description is available even if the staggered card
   animation does not finish, including on compact phone screens. */
.fx-final .fx-prod {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
.fx-final .fx-prod > h3,
.fx-final .fx-prod > p {
  opacity: 1 !important;
  visibility: visible !important;
}
@media (max-width: 900px) {
  .fx-panel__desc.is-on { overflow: visible !important; }
  .fx-panel__desc.is-on p {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    white-space: normal !important;
    text-wrap: pretty;
  }
}
@media (max-width: 640px), (max-height: 740px) {
  .fx-final .fx-prod > p,
  .fx-final .fx-prod > p:not(.fx-prod__name) {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    white-space: normal !important;
    font-size: clamp(11px, 2.8vw, 13px);
    line-height: 1.35;
  }
  .fx-final__inner { overflow-y: auto; max-height: 100svh; }
}
