/* ===== Dataframe: Hero (fixed colors, smoothing, white text) ===== */
:root {
  --df-hero-bg: #221e51; /* exact background */
  --df-hero-fg: #ffffff; /* text white */
  /* Animation timing (slow + premium feel; adjust to taste) */
  --df-slide-distance: 24px;
  --df-duration: 1600ms;
  --df-easing: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Ensure smoothing and white text within the hero */
.df-hero {
  background: var(--df-hero-bg);
  color: var(--df-hero-fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family:
    "League Spartan","Poppins","Inter",
    system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans",
    sans-serif;

  /* Option A: explicit bottom stop */
  /* was: padding: clamp(48px, 8vw, 96px) clamp(20px, 8vw, 96px); */
  padding-inline: clamp(20px, 8vw, 96px);
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: 50px; /* <- stop 50px below the hero content */
}

/* Margin-collapse guard (in case the next module has top margins) */
.df-hero { overflow: auto; }

.df-hero__inner {
  max-width: 1400px;
  margin-inline: auto;
}

.df-hero--with-media {
  display: grid;
  align-items: center;
  gap: clamp(20px, 5vw, 72px);
  grid-template-columns: 1.1fr 1fr; /* text | circle */
}

@media (max-width: 900px) {
  .df-hero--with-media { grid-template-columns: 1fr; }
}

/* Eyebrow (white, doubled) */
.df-eyebrow {
  color: rgba(255,255,255,0.9);
  font-size: clamp(28px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 18px 0;
}

/* Headline (white, doubled) */
.df-slide-in {
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(56px, 8.4vw, 90px);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
  overflow: hidden; /* clip the sliding lines */
}

.df-line {
  display: block;
  opacity: 0;
  transform: translateY(var(--df-slide-distance));
  transition:
    opacity var(--df-duration) var(--df-easing),
    transform var(--df-duration) var(--df-easing);
  will-change: transform, opacity;
}

.df-slide-in.is-inview .df-line {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger second line */
.df-delay { transition-delay: 300ms; }

/* Supporting text (white, plain) */
.df-supporting {
  color: #ffffff;
  margin-top: clamp(16px, 2.2vw, 24px);
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.35;
  max-width: min(1000px, 90%);
}

/* Keep the text stack tight: no trailing margin that would add extra blue */
.df-hero__text > *:last-child { margin-bottom: 0; }

/* Circular video */
.df-circle-media {
  width: min(560px, 44vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  background: #000;

  opacity: 0;
  transform: translateY(var(--df-slide-distance));
  transition: opacity var(--df-duration) var(--df-easing),
             transform var(--df-duration) var(--df-easing);
  will-change: transform, opacity;

  justify-self: center;
}
.df-circle-media.is-inview { opacity: 1; transform: translateY(0); }

.df-circle-media__el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mute/unmute button (white theme) */
.df-circle-media__btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.9);
  color: #111;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  backdrop-filter: blur(6px);
}
.df-circle-media__btn:hover { background: rgba(255,255,255,1); }

@media (max-width: 1100px) {
  .df-circle-media { width: min(520px, 46vw); }
}

@media (max-width: 900px) {
  .df-hero {
    /* was: padding: clamp(40px, 6vw, 64px) clamp(18px, 6vw, 64px); */
    padding-inline: clamp(18px, 6vw, 64px);
    padding-top: clamp(40px, 6vw, 64px);
    padding-bottom: 50px; /* keep same stop on mobile */
  }
  .df-circle-media {
    width: min(520px, 70vw);
    margin-top: 16px;
  }
  .df-supporting { max-width: 42ch; }
}

@media (max-width: 520px) {
  .df-circle-media { width: min(420px, 86vw); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .df-line,
  .df-circle-media {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
/* --- Mobile centering: swap grid -> flex and hard-center everything --- */
@media (max-width: 900px) {
  /* Convert the inner layout to a column flexbox so centering is predictable */
  .df-hero--with-media {
    display: flex;              /* override grid */
    flex-direction: column;
    align-items: center;        /* horizontal centering */
    justify-content: flex-start;
    gap: clamp(20px, 6vw, 28px);/* keep your spacing tidy */
  }

  /* Center the text block content as well */
  .df-hero__text {
    width: 100%;
    max-width: 42ch;            /* you already use this constraint on mobile */
    text-align: center;         /* center lines */
    margin-left: auto;          /* defend against asymmetric padding/wrappers */
    margin-right: auto;
  }

  /* Make absolutely sure the circle itself is centered */
  .df-circle-media {
    margin-left: auto;
    margin-right: auto;
    /* retain your size rule; copied here for clarity */
    width: min(520px, 70vw);
  }

  /* If any parent wrapper adds odd text alignment, neutralize for the circle */
  .df-circle-media,
  .df-circle-media * {
    text-align: initial;
  }
}
/* ===== Glass bubble effect for the circular video ===== */

/* Base circle: keep as-is, then add glass styling */
.df-circle-media {
  position: relative;                 /* anchor pseudo-elements */
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0,0,0,0.35);       /* dark base behind the video for depth */
  border: 1px solid rgba(255,255,255,0.18); /* subtle rim in shadowed areas */

  /* Glassy depth via layered shadows (outer & inner) */
  box-shadow:
    /* outer glow (cool light) */
    0 18px 40px rgba(0,0,0,0.28),
    0 8px 24px rgba(0,0,0,0.22),
    /* bright rim highlight around the top-left edge */
    inset 0 1px 0 rgba(255,255,255,0.45),
    /* soft inner vignette for curvature */
    inset 0 -18px 36px rgba(0,0,0,0.25),
    inset 0 24px 36px rgba(255,255,255,0.08);
}

/* Keep the video filling the bubble */
.df-circle-media__el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0); /* ensure crisp compositing */
}

/* Primary glass highlight (top-left crescent) */
.df-circle-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* angled light sweep for a convex feel */
  background:
    radial-gradient(120% 120% at 20% 15%,
      rgba(255,255,255,0.38) 0%,
      rgba(255,255,255,0.20) 20%,
      rgba(255,255,255,0.08) 38%,
      rgba(255,255,255,0.02) 55%,
      rgba(255,255,255,0.00) 62%),
    /* faint top sheen */
    linear-gradient(180deg,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.06) 28%,
      rgba(255,255,255,0.00) 55%);
  mix-blend-mode: screen; /* lets highlights glow without washing out */
  pointer-events: none;
}

/* Secondary highlight (bottom-right refracted edge) */
.df-circle-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(90% 90% at 82% 76%,
      rgba(255,255,255,0.20) 0%,
      rgba(255,255,255,0.08) 12%,
      rgba(32,38,92,0.20) 30%,
      rgba(0,0,0,0.00) 58%);
  mix-blend-mode: overlay; /* gives a refracted, chromatic feel */
  pointer-events: none;
}

/* Optional: animated light glint for “living glass” (very subtle) */
@keyframes df-glass-glint {
  0%   { transform: translate(-40%, -40%) rotate(0deg);   opacity: 0.0; }
  10%  { opacity: 0.18; }
  50%  { transform: translate(10%, 5%) rotate(25deg);     opacity: 0.10; }
  100% { transform: translate(60%, 40%) rotate(55deg);    opacity: 0.0; }
}

/* Use a child element as the glint carrier to avoid affecting the video */
.df-circle-media .df-glint {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 30% 25%,
      rgba(255,255,255,0.35) 0%,
      rgba(255,255,255,0.18) 18%,
      rgba(255,255,255,0.00) 42%);
  mix-blend-mode: screen;
  animation: df-glass-glint 6s ease-in-out infinite;
  filter: blur(1px); /* soften the glint a touch */
}

/* Respect reduced motion settings */
@media (prefers-reduced-motion: reduce) {
  .df-circle-media .df-glint { animation: none !important; opacity: 0.12; }
}

/* Mobile sizing remains yours; keep centering patch if you added it */
@media (max-width: 900px) {
  .df-circle-media { width: min(520px, 70vw); }
}
``
