/* Photo hero with motion — markup comes from sw-hero.js (static in index.html).
   Performance rules: animate transform/opacity only; no backdrop-filter, no blend
   modes, no filters on moving layers, will-change only on the active slide. */

/* -- page plumbing: Framer's old hero copy is hidden, the news block + video stay --- */
section[data-framer-name="Hero Section"] [data-framer-name="Header"] > :not(:has([data-framer-name^="Supported by"])),
[data-sw-hero-hidden] { display: none !important; }
section[data-framer-name="Hero Section"] > [data-framer-name="Container"] > [data-framer-name="Header"] { padding-top: 32px !important; }
section[data-framer-name="Hero Section"] [data-framer-name="Sun"] { display: none; }

/* -- stage ---------------------------------------------------------------- */
.swh {
  --swh-ink: #211e1c;
  --swh-cream: #f2eee6;
  --swh-yellow: #f8ce72;
  --swh-yellow-btn: #f6bd41;
  --swh-line: rgba(242, 238, 230, 0.2);
  --swh-slide: 7.2s; /* keep in sync with SLIDE_MS in sw-hero.js */
  box-sizing: border-box;
  width: 100%;
  padding: 92px 16px 0; /* clears the fixed nav */
  font-family: Geist, "Geist Placeholder", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.swh *, .swh *::before, .swh *::after { box-sizing: border-box; }

.swh__stage {
  position: relative;
  isolation: isolate;
  contain: layout paint;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto auto;
  max-width: 1440px;
  min-height: clamp(560px, calc(100svh - 104px), 780px);
  margin: 0 auto;
  border-radius: 32px;
  background: var(--swh-ink);
  color: var(--swh-cream);
}
.swh__stage > * { position: relative; z-index: 3; }

/* -- photos --------------------------------------------------------------- */
.swh__photos {
  position: absolute !important; inset: 0; z-index: 0 !important; overflow: hidden;
  background: var(--swh-ink);
  transform: scale(1.05);
  transform-origin: 50% 50%;
}
.swh__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.swh__slide.is-on  { opacity: 1; z-index: 2; }
.swh__slide.is-out { opacity: 0; z-index: 1; }
.swh__zoom { position: absolute; inset: 0; transform: scale(1.03); }
.swh__zoom img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 60% 50%);
  user-select: none; -webkit-user-drag: none;
}
/* slow cinematic push-in / pull-out, restarts every time a slide comes in */
.swh__slide.is-on .swh__zoom, .swh__slide.is-out .swh__zoom { animation: swh-kb-in 10s ease-out both; will-change: transform; }
.swh__slide:nth-child(even).is-on .swh__zoom, .swh__slide:nth-child(even).is-out .swh__zoom { animation-name: swh-kb-out; }
@keyframes swh-kb-in  { from { transform: scale(1.03) translate3d(0, 0, 0); } to { transform: scale(1.11) translate3d(-1.1%, -0.6%, 0); } }
@keyframes swh-kb-out { from { transform: scale(1.11) translate3d(1%, 0.4%, 0); } to { transform: scale(1.03) translate3d(0, 0, 0); } }

/* SUNRISE (compositor only): a night veil fades while a glowing ring grows out of the sun */
.swh__dawn { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.swh__veil { position: absolute; inset: 0; background: rgba(8, 12, 30, 0.8); opacity: 0; }
.swh__front {
  position: absolute; left: var(--sx, 50%); top: var(--sy, 40%);
  width: 800px; height: 800px; margin: -400px 0 0 -400px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 206, 122, 0) 0%, rgba(255, 206, 122, 0) 56%, rgba(255, 206, 122, 0.55) 72%, rgba(255, 206, 122, 0) 90%);
  opacity: 0;
  transform: scale(0.02);
}
.swh__slide.is-on .swh__veil  { animation: swh-veil 2.6s cubic-bezier(0.4, 0.1, 0.2, 1) both; }
.swh__slide.is-on .swh__front { animation: swh-front 2.6s cubic-bezier(0.3, 0.1, 0.2, 1) both; will-change: transform, opacity; }
@keyframes swh-veil  { 0%, 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes swh-front { 0% { transform: scale(0.02); opacity: 1; } 85% { opacity: 1; } 100% { transform: scale(7); opacity: 0; } }

/* legibility: dark on the text side and at the bottom */
.swh__shade {
  position: absolute !important; inset: 0; z-index: 1 !important; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.86) 0%, rgba(20, 18, 16, 0.6) 34%, rgba(20, 18, 16, 0.12) 68%, rgba(20, 18, 16, 0) 100%),
    linear-gradient(0deg, rgba(20, 18, 16, 0.85) 0%, rgba(20, 18, 16, 0) 38%),
    linear-gradient(180deg, rgba(20, 18, 16, 0.3) 0%, rgba(20, 18, 16, 0) 22%);
}

/* -- HUD pinned to the lead photo ----------------------------------------- */
.swh__hud { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.swh__tag, .swh__pin, .swh__dots { opacity: 0; }
.swh__leaders path, .swh__draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.swh__tag rect { fill: rgba(20, 18, 16, 0.7); stroke: rgba(255, 255, 255, 0.34); stroke-width: 1.5; }
.swh__tag circle { fill: #f8ce72; }
.swh__tag text { font: 600 26px Geist, Inter, system-ui, sans-serif; fill: #f2eee6; }
.swh__pin circle.r1, .swh__pin circle.r2 { fill: none; stroke: #f8ce72; stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.swh__slide.is-on .swh__tag, .swh__slide.is-out .swh__tag { transform-box: fill-box; transform-origin: left center; animation: swh-pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) var(--d) both; }
.swh__slide.is-on .swh__pin, .swh__slide.is-out .swh__pin { animation: swh-fade 0.5s ease var(--d) both; }
.swh__slide.is-on .swh__pin .r1, .swh__slide.is-out .swh__pin .r1 { animation: swh-ring 2.4s ease-out calc(var(--d) + 0.4s) 4; }
.swh__slide.is-on .swh__pin .r2, .swh__slide.is-out .swh__pin .r2 { animation: swh-ring 2.4s ease-out calc(var(--d) + 1.6s) 4; }
.swh__slide.is-on .swh__leaders path, .swh__slide.is-out .swh__leaders path,
.swh__slide.is-on .swh__draw, .swh__slide.is-out .swh__draw { animation: swh-draw 0.9s ease-out var(--d) both; }
.swh__slide.is-on .swh__dots, .swh__slide.is-out .swh__dots { animation: swh-fade 0.6s ease 3.2s both; }
@keyframes swh-pop  { from { opacity: 0; transform: translateX(-14px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes swh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes swh-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes swh-ring { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(3.4); opacity: 0; } }

/* -- light + particles over the photo (all compositor-only) ---------------- */
.swh__fx { position: absolute !important; inset: 0; z-index: 2 !important; pointer-events: none; overflow: hidden; }
.swh__flare {
  position: absolute; top: -34%; right: -12%;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 218, 140, 0.42), rgba(255, 190, 90, 0.13) 55%, transparent 75%);
}
.swh__streak {
  position: absolute; left: -10%; top: var(--sy, 40%); width: 120%; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 232, 180, 0) 18%, rgba(255, 236, 190, 0.85) 50%, rgba(255, 232, 180, 0) 82%, transparent);
  opacity: 0;
}
.swh__slide.is-on .swh__streak { animation: swh-streak 2.4s ease-out both; }
@keyframes swh-streak { 0% { opacity: 0; transform: scaleX(0.15); } 30% { opacity: 0.9; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1.12); } }
.swh__spot {
  position: absolute; left: 0; top: 0; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(255, 226, 160, 0.26), rgba(255, 200, 110, 0.08) 55%, transparent 100%);
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
/* -- copy ----------------------------------------------------------------- */
.swh__copy {
  align-self: center;
  max-width: 760px;
  padding: 44px 56px 20px;
}
.swh__in { opacity: 0; animation: swh-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) forwards; }
@keyframes swh-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }

.swh__pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  padding: 8px 16px 8px 14px;
  border: 1px solid var(--swh-line);
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.6);
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  color: rgba(242, 238, 230, 0.92);
}
.swh__pill i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--swh-yellow); }
.swh__pill i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--swh-yellow); animation: swh-ping 2.2s ease-out infinite; }
.swh__pill [data-count] { font-weight: 700; color: var(--swh-yellow); font-variant-numeric: tabular-nums; }
@keyframes swh-ping { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(3); opacity: 0; } }

/* headline: each word is slammed up out of a mask, then catches one light sheen */
.swh__title {
  margin: 0;
  font-family: Anton, "Anton Placeholder", sans-serif;
  font-weight: 400;
  font-size: clamp(46px, 6.3vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}
.swh__w { display: inline-block; vertical-align: top; overflow: hidden; padding: 0.3em 0.06em 0.04em; margin: -0.3em -0.06em -0.04em; }
.swh__w > span {
  display: inline-block;
  padding: 0.3em 0.06em 0.04em; /* the sheen is background-clip: text, so the box must cover the umlaut dots */
  margin: -0.3em -0.06em -0.04em;
  transform: translate3d(0, 112%, 0) rotate(5deg);
  transform-origin: 0 100%;
  white-space: nowrap;
  background: linear-gradient(100deg, #fff 42%, #ffe3a0 50%, #fff 58%) 100% 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation:
    swh-slam 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) calc(0.2s + var(--i) * 0.11s) forwards,
    swh-shine 1.5s ease-out calc(1.4s + var(--i) * 0.16s) 1 both;
}
@keyframes swh-slam  { to { transform: none; } }
@keyframes swh-shine { 0% { background-position: 100% 0; } 100% { background-position: -40% 0; } }

.swh__rot {
  position: relative;
  height: 1.25em;
  margin: 14px 0 14px;
  overflow: hidden;
  font-family: Anton, "Anton Placeholder", sans-serif;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--swh-yellow);
}
.swh__rot-i {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 75%, 0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}
.swh__rot-i.is-on  { opacity: 1; transform: none; }
.swh__rot-i.is-out { opacity: 0; transform: translate3d(0, -75%, 0); }

.swh__lead {
  margin: 0 0 24px;
  max-width: 520px;
  font-size: 18px; line-height: 1.5;
  color: rgba(242, 238, 230, 0.9);
}

.swh__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.swh__btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 26px;
  border-radius: 16px;
  background: var(--swh-yellow-btn);
  color: var(--swh-ink);
  font-size: 17px; font-weight: 600; text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.swh__btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(246, 189, 65, 0.8); animation: swh-btn 3.2s ease-out infinite; pointer-events: none; }
.swh__btn svg {
  width: 38px; height: 38px; padding: 9px;
  border-radius: 11px;
  background: var(--swh-ink); color: #fff;
  transition: transform 0.25s ease;
}
.swh__btn:hover { background: var(--swh-yellow); transform: translateY(-2px); }
.swh__btn:hover svg { transform: translateX(3px); }
@keyframes swh-btn { 0% { transform: scale(1); opacity: 0.9; } 60%, 100% { transform: scale(1.18, 1.45); opacity: 0; } }

.swh__rate { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; line-height: 1.35; color: rgba(242, 238, 230, 0.9); }
.swh__rate b { color: #fff; font-weight: 700; }
.swh__stars { display: inline-flex; gap: 2px; color: var(--swh-yellow); }

/* -- slide progress (top right) ------------------------------------------- */
.swh__bars { position: absolute !important; z-index: 4 !important; top: 20px; right: 26px; display: flex; gap: 6px; }
.swh__bar { all: unset; box-sizing: border-box; display: flex; align-items: center; width: 46px; height: 22px; cursor: pointer; }
.swh__bar:focus-visible { outline: 2px solid var(--swh-yellow); outline-offset: 2px; border-radius: 4px; }
.swh__bar i { position: relative; display: block; width: 100%; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.32); }
.swh__bar i::after { content: ""; position: absolute; inset: 0; background: var(--swh-yellow); transform: scaleX(0); transform-origin: left; }
.swh__bar.is-on i::after { animation: swh-fill var(--swh-slide) linear forwards; }
@keyframes swh-fill { to { transform: scaleX(1); } }

/* -- outlined ticker ------------------------------------------------------ */
.swh__ticker { overflow: hidden; padding: 4px 0 14px; pointer-events: none; }
.swh__ticker-in { display: flex; align-items: center; gap: 34px; width: max-content; animation: swh-tick 44s linear infinite; will-change: transform; }
.swh__ticker span {
  flex: none;
  font-family: Anton, "Anton Placeholder", sans-serif;
  font-size: clamp(30px, 3.7vw, 54px);
  line-height: 1.05;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.5);
}
.swh__ticker em { flex: none; width: 13px; height: 13px; background: var(--swh-yellow); transform: rotate(45deg); }
@keyframes swh-tick { to { transform: translate3d(-25%, 0, 0); } }

/* -- trust bar ------------------------------------------------------------ */
.swh__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: 0 56px;
  list-style: none;
  border-top: 1px solid var(--swh-line);
  background: rgba(20, 18, 16, 0.72);
}
.swh__stat { display: flex; flex-direction: column; gap: 3px; padding: 16px 24px 18px 0; margin: 0; }
.swh__stat + .swh__stat { padding-left: 28px; border-left: 1px solid var(--swh-line); }
.swh__stat b {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: Anton, "Anton Placeholder", sans-serif;
  font-weight: 400; font-size: 34px; line-height: 1.1;
  text-transform: uppercase; color: #fff;
  font-variant-numeric: tabular-nums;
}
.swh__stat-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--swh-yellow); color: var(--swh-ink); }
.swh__stat-ico svg { width: 18px; height: 18px; }
.swh__stat > span { font-size: 14px; color: rgba(242, 238, 230, 0.74); }

/* -- breakpoints ---------------------------------------------------------- */
@media (max-width: 1199px) {
  .swh__copy { padding: 40px 36px 18px; }
  .swh__stats { padding: 0 36px; }
  .swh__bars { right: 22px; }
}
@media (max-width: 959px) {
  .swh__hud { display: none; }
  .swh__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swh__stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .swh__stat:nth-child(n+3) { border-top: 1px solid var(--swh-line); }
  .swh__shade {
    background:
      linear-gradient(180deg, rgba(20, 18, 16, 0.78) 0%, rgba(20, 18, 16, 0.52) 55%, rgba(20, 18, 16, 0.3) 100%),
      linear-gradient(0deg, rgba(20, 18, 16, 0.82) 0%, rgba(20, 18, 16, 0) 36%);
  }
}
@media (max-width: 809px) {
  .swh { padding-top: 84px; }
  .swh__stage { border-radius: 24px; min-height: 0; }
  .swh__zoom img { object-position: var(--pos-m, 65% 50%); }
  .swh__copy { padding: 52px 20px 18px; }
  .swh__bars { top: 14px; right: 14px; }
  .swh__bar { width: 34px; }
  .swh__stats { padding: 0 20px; }
  .swh__pill { margin-bottom: 16px; font-size: 12.5px; padding: 7px 14px 7px 12px; }
  .swh__title { font-size: clamp(36px, 10.9vw, 62px); }
  .swh__rot { font-size: min(24px, 4.9vw); margin: 12px 0 12px; }
  .swh__lead { font-size: 16px; margin-bottom: 22px; }
  .swh__btn { width: 100%; justify-content: space-between; }
  .swh__ticker span { font-size: 30px; }
  .swh__ticker-in { gap: 24px; }
  .swh__stat { padding: 14px 12px 16px 0; }
  .swh__stat + .swh__stat { padding-left: 16px; }
  .swh__stat:nth-child(3) { padding-left: 0; }
  .swh__stat b { font-size: 28px; }
  .swh__stat--txt b { font-size: 22px; gap: 8px; }
  .swh__stat-ico { width: 26px; height: 26px; }
  .swh__stat-ico svg { width: 16px; height: 16px; }
  .swh__stat > span { font-size: 13px; }
  .swh__flare { top: -20%; right: -30%; width: 110%; }
}

/* -- reduced motion: one still photo, complete content -------------------- */
@media (prefers-reduced-motion: reduce) {
  .swh *, .swh *::before, .swh *::after { animation: none !important; transition: none !important; }
  .swh__in { opacity: 1; }
  .swh__w > span { transform: none; }
  .swh__dawn, .swh__spot { display: none; }
  .swh__zoom { transform: none; }
  .swh__tag, .swh__pin, .swh__dots { opacity: 1; }
  .swh__leaders path, .swh__draw { stroke-dashoffset: 0; }
  .swh__bar.is-on i::after { transform: scaleX(1); }
}
.swh.is-paused *, .swh.is-paused *::before, .swh.is-paused *::after { animation-play-state: paused !important; }
