/*! Vesper Hero Slider 1.0.0 */

/* ==========================================================================
   Full-screen template (html.vhs-canvas) — black from the very first paint
   ========================================================================== */
html.vhs-canvas, html.vhs-canvas body { background: #000000 !important; color: #ffffff; }
html.vhs-canvas { --bg: #000000; --text: #ffffff; scroll-behavior: smooth; }
html.vhs-canvas, html.vhs-canvas body { background: #000000; background: var(--bg, #000000); color: #ffffff; color: var(--text, #ffffff); }
html.vhs-canvas body {
  margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden; position: relative;
}
html.vhs-canvas body.vhs-menu-open { overflow: hidden; }

/* ==========================================================================
   Root + tokens
   ========================================================================== */
.vhs {
  --bg: #000000;
  --text: #ffffff;
  --muted: #9a9a9a;
  --stat: #d8d8d8;
  --border: rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.12);

  --logo: 15.5px;
  --logo-mark: 22px;
  --nav: 14px;
  --nav-h: 40px;
  --btn: 13.5px;
  --btn-h: 40px;
  --hero-btn-h: 42px;
  --h1: 48px;
  --lede: 15.5px;
  --badge: 12.5px;
  --stat-size: 13.5px;
  --header-y: 22px;
  --header-x: 40px;
  --stats-x: 72px;
  --stats-y: 36px;
  --hero-gap: 85px;
  --copy-max: 860px;
  --lede-max: 470px;

  /* spacing that changes per breakpoint */
  --nav-gap: 8px;
  --nav-pad: 18px;
  --btn-pad: 16px;
  --hero-btn-pad: 18px;
  --badge-pad: 9px 15px;
  --badge-mb: 22px;
  --lede-mt: 18px;
  --actions-mt: 26px;
  --actions-gap: 10px;
  --icon: 20px;
  --icon-wide-w: 38px;
  --icon-wide-h: 21px;

  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Times, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #000000;
  background: var(--bg, #000000);
  color: #ffffff;
  color: var(--text, #ffffff);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.vhs--bleed { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }

.vhs *, .vhs *::before, .vhs *::after { box-sizing: border-box; margin: 0; padding: 0; }
.vhs a, .vhs a:hover, .vhs a:focus, .vhs a:visited { color: inherit; text-decoration: none; }
.vhs button { font-family: inherit; }
.vhs svg { display: block; flex-shrink: 0; }
.vhs img, .vhs video { max-width: none; }
.vhs :focus-visible { outline: 2px solid rgba(186, 208, 255, 0.85); outline-offset: 2px; }

/* ==========================================================================
   Layer 2 — grain (top, z 100) + media
   ========================================================================== */
.vhs .grain {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
html.vhs-canvas .vhs .grain { position: fixed; }

.vhs .vhs-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #000; }

.vhs .hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.vhs .hero-photo.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease, visibility 0s; }
.vhs .hero-photo.is-leaving { visibility: visible; }

/* scrim — 0 by default (100% media, no overlay); per-slide slider in admin */
.vhs .hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0.25) 55%, #000 100%);
  opacity: var(--scrim, 0);
}

.vhs .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  display: block;
}

/* first paint: media fades up */
.vhs .hero-photo.is-first:not(.is-in) { animation: vhs-in-photo 1.6s var(--ease-out) both; }
.vhs .hero-photo.is-in { animation: none; }

/* slow push-in on every slide; keeps running while the old slide fades out */
.vhs--kenburns .hero-photo.is-active .hero-media,
.vhs--kenburns .hero-photo.is-leaving .hero-media {
  animation: vhs-kenburns calc(var(--dur, 7s) + 3s) cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ==========================================================================
   Page grid
   ========================================================================== */
.vhs .page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
}
.vhs .menu-backdrop { display: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.vhs .header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--header-y) var(--header-x) 10px;
}

.vhs .logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  font-size: var(--logo);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.vhs .logo svg { width: var(--logo-mark); height: var(--logo-mark); }
.vhs .logo-suffix { font-weight: 400; }

.vhs .nav { display: flex; align-items: center; gap: var(--nav-gap); justify-self: center; }
.vhs .nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-h);
  padding: 0 var(--nav-pad);
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(198, 198, 198, 0.55);
  background: linear-gradient(105deg, #050505 0%, #2a2a2a 48%, #4a4a4a 100%);
  color: #f3f3f3;
  font-size: var(--nav);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.vhs .nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.vhs .nav a:hover,
.vhs .nav a:focus-visible {
  color: #f3f3f3;
  border-color: rgba(235, 235, 235, 0.9);
  background: linear-gradient(105deg, #111 0%, #3a3a3a 45%, #6a6a6a 100%);
  box-shadow: 0 0 18px rgba(200, 210, 230, 0.18);
}
.vhs .nav a:hover::before,
.vhs .nav a:focus-visible::before { transform: translateX(120%); }

.vhs .header-cta { justify-self: end; }

.vhs .burger {
  display: none;
  position: relative;
  z-index: 60;
  width: 42px;
  height: 42px;
  place-content: center;
  gap: 5px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.55);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.vhs .burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.vhs .burger:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.05); }
.vhs.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.vhs.menu-open .burger span:nth-child(2) { opacity: 0; }
.vhs.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Buttons — liquid glass
   ========================================================================== */
.vhs .btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 var(--btn-pad);
  border-radius: 6px;
  font-size: var(--btn);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, filter 0.35s ease;
}
.vhs .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.45) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}
.vhs .btn:hover::after,
.vhs .btn:focus-visible::after { transform: translateX(130%); }

.vhs .btn-solid,
.vhs .btn-solid:visited {
  background: linear-gradient(180deg, #ffffff 0%, #e7e7e7 48%, #cfcfcf 100%);
  color: #111;
  border: 1px solid #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.vhs .btn-solid:hover,
.vhs .btn-solid:focus-visible {
  color: #111;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 42%, #d5def2 100%);
  border-color: #f2f6ff;
  box-shadow: inset 0 1px 0 #fff, 0 0 22px rgba(186, 208, 255, 0.35), 0 8px 18px rgba(255, 255, 255, 0.12);
}

.vhs .btn-ghost,
.vhs .btn-ghost:visited {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.45) 50%, rgba(160, 175, 200, 0.08));
  color: #fff;
  border: 1px solid rgba(198, 198, 198, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.vhs .btn-ghost:hover,
.vhs .btn-ghost:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, rgba(210, 225, 255, 0.18), rgba(0, 0, 0, 0.35) 48%, rgba(180, 195, 220, 0.16));
  border-color: rgba(220, 230, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 20px rgba(170, 200, 255, 0.22);
}

/* ==========================================================================
   Hero — bottom-centred
   ========================================================================== */
.vhs .hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 24px var(--hero-gap);
  min-height: 0;
}

/* all slide copies share one grid cell, bottom-aligned */
.vhs .hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  justify-items: center;
  width: 100%;
  max-width: var(--copy-max);
}

.vhs .hero-copy {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: var(--copy-max);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s ease, filter 0.5s ease, visibility 0s linear 0.6s;
}
.vhs .hero-copy.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  pointer-events: auto;
  transition: none;
}

/* Badge */
.vhs .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--badge-mb);
  padding: var(--badge-pad);
  border: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #7d7d7d 0%, #2a2a2a 52%, #0a0a0a 100%);
  color: #f2f2f2;
  font-size: var(--badge);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.vhs .badge-star { width: 18px; height: 20px; color: #fff; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.45)); }

/* Headline */
.vhs .vhs-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--h1);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-transform: none;
  text-align: center;
  color: #fff;
}
.vhs .headline-line { display: block; overflow: hidden; padding: 0.06em 0.15em 0.14em; }
.vhs .headline-line > .appear { display: inline-block; }
.vhs .vhs-title em {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.03em;
  color: #9a9a9a;
}

/* Lede */
.vhs .lede {
  max-width: var(--lede-max);
  margin-top: var(--lede-mt);
  color: #9a9a9a;
  font-size: var(--lede);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

/* Actions */
.vhs .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--actions-gap);
  margin-top: var(--actions-mt);
}
.vhs .hero-actions .btn { height: var(--hero-btn-h); padding: 0 var(--hero-btn-pad); }
.vhs .hero-actions .btn-solid:hover,
.vhs .hero-actions .btn-solid:focus-visible {
  box-shadow: inset 0 1px 0 #fff, 0 0 26px rgba(186, 208, 255, 0.4), 0 8px 18px rgba(255, 255, 255, 0.14);
}
.vhs .hero-actions .btn-ghost,
.vhs .hero-actions .btn-ghost:visited {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.5) 46%, rgba(150, 170, 200, 0.1));
  border: 1px solid rgba(198, 198, 198, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.vhs .hero-actions .btn-ghost:hover,
.vhs .hero-actions .btn-ghost:focus-visible {
  border-color: rgba(220, 230, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 24px rgba(170, 200, 255, 0.28);
}

/* Pager — thin progress lines under the copy */
.vhs .vhs-pager {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--pager-y, calc(var(--hero-gap) * 0.42 - 7px));
  z-index: 2;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.vhs .vhs-pager-inner { display: flex; gap: 6px; pointer-events: auto; }
.vhs .vhs-dot {
  position: relative;
  width: 30px;
  height: 14px;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 2px;
}
.vhs .vhs-dot::before,
.vhs .vhs-dot i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
  border-radius: 2px;
}
.vhs .vhs-dot::before { background: rgba(255, 255, 255, 0.22); transition: background 0.25s ease; }
.vhs .vhs-dot:hover::before { background: rgba(255, 255, 255, 0.4); }
.vhs .vhs-dot i { background: #fff; transform: scaleX(0); transform-origin: left center; }
.vhs .vhs-dot.is-active i { animation: vhs-progress var(--dur, 7s) linear forwards; }
.vhs.is-paused .vhs-dot.is-active i { animation-play-state: paused; }
.vhs--static .vhs-dot.is-active i { animation: none; transform: none; }

/* ==========================================================================
   Stats footer
   ========================================================================== */
.vhs .stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--stats-x) var(--stats-y);
  padding-bottom: max(var(--stats-y), env(safe-area-inset-bottom));
  color: #d8d8d8;
  color: var(--stat);
}
.vhs .stat {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--stat-size);
  letter-spacing: -0.015em;
  line-height: 1.3;
  white-space: nowrap;
}
.vhs .stat-icon { width: var(--icon); height: var(--icon); color: #e8e8e8; }
.vhs .stat-icon-wide { width: var(--icon-wide-w); height: var(--icon-wide-h); }

/* ==========================================================================
   Entrance motion — resting opacity is 1, so nothing is ever blank
   ========================================================================== */
.vhs .appear {
  opacity: 1;
  animation-duration: 1.05s;
  animation-fill-mode: both;
  animation-timing-function: var(--ease-out);
  animation-delay: calc(var(--d, 0.08s) - var(--shift, 0s));
}
.vhs .lede.appear { animation-duration: 1.25s; }
.vhs .appear--scale { animation-name: vhs-in-scale; }
.vhs .appear--soft  { animation-name: vhs-in-soft; }
.vhs .appear--mask  { animation-name: vhs-in-mask; }
.vhs .appear--pop   { animation-name: vhs-in-pop; }
.vhs .appear--btn   { animation-name: vhs-in-btn; }
.vhs .appear--side  { animation-name: vhs-in-side; }
.vhs .appear--stat  { animation-name: vhs-in-stat; }

.vhs .hero-copy.is-active .badge-star { animation: vhs-in-star 0.9s var(--ease-out) calc(0.28s - var(--shift, 0s)) both; }
.vhs .hero-copy.is-active .vhs-title em { animation: vhs-in-em 1.2s var(--ease-out) calc(0.72s - var(--shift, 0s)) both; }

/* inactive slides hold still; activating one restarts its whole sequence */
.vhs .hero-copy:not(.is-active) .appear { animation: none; }

.vhs .appear.is-in { animation: none; opacity: 1; transform: none; clip-path: none; filter: none; }

@keyframes vhs-in-scale { from { opacity: 0; transform: scale(0.84); } to { opacity: 1; transform: none; } }
@keyframes vhs-in-soft  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes vhs-in-mask  { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes vhs-in-pop {
  0%   { opacity: 0; transform: scale(0.9); }
  70%  { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes vhs-in-btn  { from { opacity: 0; transform: translateY(18px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes vhs-in-side { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes vhs-in-stat { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes vhs-in-star {
  0%   { opacity: 0; transform: scale(0.2) rotate(-50deg); }
  65%  { opacity: 1; transform: scale(1.2) rotate(8deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes vhs-in-em    { from { opacity: 0.35; filter: blur(4px); } to { opacity: 1; filter: none; } }
@keyframes vhs-in-photo { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes vhs-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes vhs-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vhs-menu-in  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1600px) {
  .vhs {
    --logo: 17px; --logo-mark: 24px; --nav: 15px; --nav-h: 44px; --btn: 15px; --btn-h: 44px; --hero-btn-h: 48px;
    --h1: 64px; --lede: 18px; --badge: 13.5px; --stat-size: 15px;
    --header-y: 28px; --header-x: 64px; --stats-x: 96px; --stats-y: 44px;
    --copy-max: 980px; --lede-max: 540px;
    --nav-pad: 20px; --badge-mb: 26px; --lede-mt: 22px; --actions-mt: 30px; --actions-gap: 12px;
    --icon: 22px; --icon-wide-w: 45px; --icon-wide-h: 24px;
  }
}
@media (min-width: 1920px) {
  .vhs {
    --logo: 18px; --logo-mark: 26px; --nav: 16px; --nav-h: 48px; --btn: 16px; --btn-h: 48px; --hero-btn-h: 52px;
    --h1: 76px; --lede: 20px; --badge: 14.5px; --stat-size: 16px;
    --header-y: 32px; --header-x: 80px; --stats-x: 120px; --stats-y: 52px;
    --copy-max: 1120px; --lede-max: 620px;
    --nav-gap: 10px; --nav-pad: 22px; --btn-pad: 22px; --hero-btn-pad: 22px; --badge-pad: 10px 15px;
    --icon-wide-w: 48px; --icon-wide-h: 26px;
  }
}
@media (min-width: 2560px) {
  .vhs { --h1: 88px; --lede: 22px; --header-x: 120px; --stats-x: 160px; --copy-max: 1280px; --lede-max: 680px; }
}
@media (min-width: 1280px) and (max-width: 1599px) {
  .vhs { --h1: 54px; --lede: 16px; --header-x: 48px; --stats-x: 80px; --copy-max: 900px; }
}
@media (min-width: 901px) and (max-width: 1279px) {
  .vhs {
    --logo: 15px; --nav: 13px; --nav-h: 36px; --btn: 13px; --btn-h: 38px; --hero-btn-h: 40px;
    --h1: 42px; --lede: 15px; --badge: 12px; --stat-size: 12.5px;
    --header-y: 16px; --header-x: 28px; --stats-x: 36px; --stats-y: 28px; --hero-gap: 64px;
    --copy-max: 760px; --lede-max: 440px;
    --nav-pad: 14px; --badge-mb: 16px; --lede-mt: 14px; --actions-mt: 20px;
  }
}
@media (min-width: 901px) and (max-height: 850px) {
  .vhs { --header-y: 14px; --stats-y: 24px; --hero-gap: 48px; --h1: 40px; --badge-mb: 12px; --lede-mt: 12px; --actions-mt: 16px; }
}
@media (min-width: 901px) and (max-height: 720px) {
  .vhs { --h1: 34px; --lede: 14px; --hero-gap: 32px; --stats-y: 18px; --nav-h: 30px; --btn-h: 34px; --hero-btn-h: 36px; --badge-mb: 8px; }
}

/* Desktop: one frame, no scroll */
@media (min-width: 901px) {
  html.vhs-canvas, html.vhs-canvas body { height: 100%; overflow: hidden; }
  .vhs .page { height: 100vh; height: 100dvh; overflow: hidden; }
}

/* Phone */
@media (max-width: 900px) {
  html.vhs-canvas, html.vhs-canvas body { height: auto; overflow-y: auto; }

  .vhs {
    --logo: 16px; --btn: 15px; --btn-h: 46px; --hero-btn-h: 48px;
    --h1: 36px; --lede: 16.5px; --badge: 13.5px; --stat-size: 15px;
    --header-y: 16px; --header-x: 18px; --stats-x: 20px; --stats-y: 28px; --hero-gap: 36px;
    --copy-max: 100%; --lede-max: 100%;
    --pager-y: 24px;
  }

  .vhs .header {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding-top: max(var(--header-y), env(safe-area-inset-top));
    padding-left: max(var(--header-x), env(safe-area-inset-left));
    padding-right: max(var(--header-x), env(safe-area-inset-right));
  }
  .vhs .logo, .vhs .header-cta, .vhs .burger { position: relative; z-index: 80; }
  .vhs .burger { display: grid; }

  .vhs .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(8, 8, 8, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
  }
  .vhs.menu-open .menu-backdrop {
    opacity: 1;
    visibility: visible;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    transition: opacity 0.28s ease;
  }

  .vhs .nav {
    position: fixed;
    inset: 0;
    z-index: 45;
    justify-self: stretch;
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    padding: 96px 22px 32px;
    padding-top: max(96px, calc(env(safe-area-inset-top) + 88px));
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
  }
  .vhs.menu-open .nav { opacity: 1; visibility: visible; transition: opacity 0.28s ease; }
  .vhs .nav a { width: 100%; height: 56px; font-size: 19px; border-radius: 10px; }
  .vhs.menu-open .nav a { animation: vhs-menu-in 0.5s var(--ease-out) both; animation-delay: calc(0.04s + var(--i, 0) * 0.05s); }

  .vhs .hero { padding: 20px 20px calc(var(--hero-gap) + 28px); align-items: flex-end; }
  .vhs .stats { flex-direction: column; justify-content: center; gap: 16px; text-align: center; }
  .vhs .stat { white-space: normal; }
}

@media (max-width: 560px) {
  .vhs { --h1: 34px; --lede: 16px; --header-x: 16px; }
  .vhs .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .vhs .hero-actions .btn { width: 100%; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html.vhs-canvas { scroll-behavior: auto; }
  .vhs *, .vhs *::before, .vhs *::after { transition: none !important; animation: none !important; }
  .vhs .appear, .vhs .hero-photo, .vhs .hero-photo .hero-media, .vhs .vhs-title em, .vhs .badge-star { transform: none; clip-path: none; filter: none; }
  .vhs .appear, .vhs .hero-photo.is-active, .vhs .vhs-title em, .vhs .badge-star { opacity: 1; }
  .vhs .vhs-dot.is-active i { transform: none; }
}
