:root {
  --dot-size: 10px;
  --dot-active-scale: 1.7;
  --dot-gap: 14px;
  --dot-opacity: 0.4;
  --dot-active-opacity: 1;
  --btn-size: 44px;
  --edge-padding: 16px;
  --overlay-bg: rgba(0,0,0,0.4);
  --content-max-w: 760px;
  --transition-ms: 550ms;
  --easing: cubic-bezier(.22,.61,.36,1);
}

/* ===== Fonts ===== */
@font-face {
  font-family: 'Obviously Bold';
  src: url('../fonts/Obviously-CondensedBold.otf') format('opentype');
  font-display: swap;
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Obviously Semibold';
  src: url('../fonts/Obviously-Semibold.otf') format('opentype');
  font-display: swap;
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Obviously Regular';
  src: url('../fonts/Obviously-Regular.otf') format('opentype');
  font-display: swap;
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Obviously condensed bold';
  src: url('../fonts/Obviously-CondensedBold.otf') format('opentype');
  font-display: swap;
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Obviously condensed semibold';
  src: url('../fonts/Obviously-CondensedSemibold.otf') format('opentype');
  font-display: swap;
  font-weight: bold;
  font-style: normal;
}

/* ===== Variables ===== */
:root {
  --primary: #1108BB;
  --secondary: #FFF9EE;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background:#000; color:#fff;
}

.carousel {
  position: relative;
  height: 100dvh;              /* full viewport height (standalone) */
  width: 100%;
  overflow: hidden;
  background: var(--primary);
  isolation: isolate;
  touch-action: pan-x;

  /* NEW: prevent the page behind from nudging during wheel/trackpad use */
  overscroll-behavior: contain;
}

/* Slides track */
.slides {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.slide {
  position: relative;
  flex: 0 0 100%;              /* each slide is full height */
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.bg-media {                     /* container ensures media covers fully */
  position: absolute;
  inset: 0;
}

.bg-media img,
.bg-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1) contrast(1);
  transform: translateZ(0);
}

/* content overlay */
.content {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  justify-content: end;
  background: linear-gradient(0deg,
              rgba(0,0,0,0.1) 0%,
              rgba(0,0,0,0.1) 100%);
}

.content-inner {
  max-width: var(--content-max-w);
  background: color-mix(in srgb, black 00%, transparent);
  /*backdrop-filter: blur(50px);*/
  padding: clamp(14px, 2vw, 24px) clamp(16px, 3vw, 32px);
  padding-bottom: 35px;
  padding-left: 35px;
  text-align: right;

  /* ==== MOBILE SAFETY (added) ==== */
  /* Add safe-area so CTA isn’t hidden behind iOS home bar */
  padding-bottom: calc(35px + env(safe-area-inset-bottom));

  /* Allow the text box to scroll if content is taller than the viewport */
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  /* ==== /MOBILE SAFETY ==== */
}

.title {
  font-family: 'Obviously condensed semibold', sans-serif;
  font-size: clamp(24px, 25vw, 55px);
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--secondary);
}

.body {
  font-family: 'Obviously Regular', sans-serif;
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.5;
  opacity: .95;
  margin: 0 0 18px;
  color: var(--secondary);
}

.cta {
  font-family: 'Obviously Semibold', sans-serif;
  font-size: 2vw;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 25px;
  border-radius: 10px;
  border: 2px solid rgba(255,249,238,1);
  background: color-mix(in srgb, var(--secondary) 0%, transparent);
  color: var(--secondary);
  text-decoration: none;
  transition: transform .12s ease, background .2s ease, border-color .2s;
}
.cta:hover {
  border: 2px solid rgba(17,8,187,1);
  background: color-mix(in srgb, var(--secondary) 100%, transparent);
  color: var(--primary);
}

/* Vertical dots (left) */
.dots {
  position: absolute;
  left: var(--edge-padding);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--dot-gap);
  z-index: 5;
  pointer-events: auto;
}
.dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: var(--secondary);
  opacity: var(--dot-opacity);
  transform: scale(1);
  transition: transform 180ms ease, opacity 180ms ease;
}
.dot.active {
  opacity: var(--dot-active-opacity);
  transform: scale(var(--dot-active-scale));
}
.dot button { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; }

.controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}
.ctrl {
  width: var(--btn-size);
  height: var(--btn-size);
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255,249,238,1);
  background: color-mix(in srgb, var(--secondary) 0%, transparent);
  cursor: pointer;
  transition: transform .1s ease, background .2s ease;
}
.ctrl:hover {
  background: color-mix(in srgb, var(--secondary) 100%, transparent);
  border: 2px solid rgba(17,8,187,1);
}
.ctrl svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--secondary);
  stroke-width: 2;
}

.ctrl:hover svg {
  stroke: var(--primary);
  stroke-width: 3;
}

/* small screens: slightly smaller paddings */
@media (max-width: 640px) {
  :root { --edge-padding: 10px; --btn-size: 40px; }
  .dots { gap: 10px; }
}

/* Optional helper: if embedding directly inside a panel, you can add .fill-parent to make it use the parent's height instead of viewport */
.carousel.fill-parent { height: 100%; }