:root {
  /* Layout tokens */
  --hero-base-bg: #020617;
  --hero-base-card: #020617;
  --hero-base-border: rgba(148, 163, 184, 0.6);
  --hero-base-text-main: #e5e7eb;
  --hero-base-radius-lg: 1.1rem;
  --hero-base-gap: .1rem;
  --hero-base-header-height: var(--s0-navbar-height);
  --hero-base-footer-height: 40px;
  --hero-base-shell-pad-x: 1rem;
  --hero-base-shell-pad-y: 1.25rem;
  --hero-base-main-max-width: 1000px;

  /* Hero title controls - tweak these instead of hunting in CSS */
  --hero-tile-title-min: 3.4rem;
  --hero-tile-title-fluid: 4.4vw;
  --hero-tile-title-max: 4.4rem;
  --hero-tile-title-max-width: 32rem;
  --hero-tile-subtitle-size: 0.9rem;
}

.hero-preview {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: var(--hero-base-bg);
  color: var(--hero-base-text-main);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero-preview * {
  box-sizing: border-box;
}

.hero-preview .hero-base-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero-preview .hero-base-header {
  height: var(--hero-base-header-height);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--hero-base-shell-pad-x);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-preview .hero-base-main {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  padding: var(--hero-base-shell-pad-y) var(--hero-base-shell-pad-x);
}

.hero-preview .hero-base-main-inner {
  width: 100%;
  max-width: var(--hero-base-main-max-width);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-preview .hero-base-board-wrapper {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.hero-preview .hero-base-grid {
  flex: 1 1 auto;
  display: grid;
  gap: var(--hero-base-gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr);
  grid-template-areas:
    "T T P L"
    "T T E V"
    "C C R S";
}

.hero-preview .hero-base-cell {
  background: linear-gradient(45deg, black, #0f0f0fd6);
  border-radius: var(--hero-base-radius-lg);
  border: 1px solid var(--hero-base-border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.hero-preview .hero-tile {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* padding: 1rem; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* gap: 0.4rem; */
  overflow: hidden;
  align-items: flex-start;
}

.hero-preview .hero-tile-t {
  justify-content: center;
  align-items: center;
  padding: clamp(.5rem, 4vw, 2.5rem);
}

.hero-preview .hero-tile-c,
.hero-preview .hero-tile-l,
.hero-preview .hero-tile-v,
.hero-preview .hero-tile-y,
.hero-preview .hero-tile-h,
.hero-preview .hero-tile-w,
.hero-preview .hero-tile-s {
  justify-content: center;
  align-items: center;
}

.hero-preview .hero-base-cell-t {
  grid-area: T;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.hero-preview .hero-tile-t-inner {
  width: 100%;
  max-width: var(--hero-tile-title-max-width);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-preview .hero-tile-t-kicker {
  display: none;
}

.hero-preview .hero-tile-t-title {
  margin: 0;
  font-size: clamp(var(--hero-tile-title-min), var(--hero-tile-title-fluid), var(--hero-tile-title-max));
  font-weight: 800;
  line-height: 1.04;
  text-align: center;
  letter-spacing: -0.03em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 0.1);
  transition: text-shadow 0.3s ease;
}

.hero-preview .hero-tile-t-subtitle {
  margin: 0;
  font-size: var(--hero-tile-subtitle-size);
  opacity: 0.8;
}

.hero-preview .hero-base-cell-c {
  grid-area: C;
  background: #ffffff;
}

.hero-preview .hero-base-cell-l {
  grid-area: L;
  overflow: hidden;
}

/* Decorative Tile-L with static geometric pattern */
.hero-preview .hero-tile-l-pattern {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-preview .hero-tile-l-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
}

.hero-preview .hero-tile-l-circle-1 {
  width: clamp(40px, 12vw, 70px);
  height: clamp(40px, 12vw, 70px);
  border-color: rgba(139, 92, 246, 0.6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-preview .hero-tile-l-circle-2 {
  width: clamp(60px, 18vw, 100px);
  height: clamp(60px, 18vw, 100px);
  border-color: rgba(236, 72, 153, 0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-preview .hero-tile-l-circle-3 {
  width: clamp(80px, 24vw, 130px);
  height: clamp(80px, 24vw, 130px);
  border-color: rgba(34, 211, 238, 0.4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-preview .hero-tile-l-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
}

.hero-preview .hero-tile-l-line-1 {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
}

.hero-preview .hero-tile-l-line-2 {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
}

.hero-preview .hero-base-cell-v {
  grid-area: V;
}

.hero-preview .hero-base-cell-y {
  grid-area: P;
}

.hero-preview .hero-base-cell-h {
  grid-area: E;
}

.hero-preview .hero-base-cell-w {
  grid-area: R;
}

.hero-preview .hero-base-cell-s {
  grid-area: S;
}

/* Make the social anchors render as a centered 2x3 grid inside the S tile.
   Only updates `.hero-tile-s-social-z` and `.hero-tile-s-social-link` as requested. */
.hero-preview .hero-tile-s-social-z {
  /* shrink to content and center inside the S tile */
  width: max-content;
  height: max-content;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-template-rows: repeat(2, auto);
  gap: var(--hts-gap, 5px);
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
  padding: 0.25rem;
  box-sizing: border-box;
}

.hero-preview .hero-tile-s-social-z .hero-tile-s-social-link {
  --hts-icon-size: clamp(28px, 7.5vw, 44px);
  width: var(--hts-icon-size);
  height: var(--hts-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.hero-preview .hero-base-letter {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
}

/* Slider-style WHAT/HOW/WOW tiles with outlined words and colored subtext */
.hero-preview .hero-tile-y,
.hero-preview .hero-tile-h,
.hero-preview .hero-tile-w {
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.4s ease;
  background-color: transparent;
}

.hero-preview .hero-base-word {
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  -webkit-text-stroke-width: 2px;
  text-stroke-width: 2px;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

.hero-preview .hero-base-word-what {
  -webkit-text-stroke-color: var(--step-1);
  text-stroke-color: var(--step-1);
}

.hero-preview .hero-base-word-how {
  -webkit-text-stroke-color: var(--step-2);
  text-stroke-color: var(--step-2);
}

.hero-preview .hero-base-word-wow {
  -webkit-text-stroke-color: var(--step-3);
  text-stroke-color: var(--step-3);
}

.hero-preview .hero-tile-desc {
  font-size: clamp(.8rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-align: center;
}

.hero-preview .hero-tile-y .hero-tile-desc {
  color: var(--step-1);
}

.hero-preview .hero-tile-h .hero-tile-desc {
  color: var(--step-2);
}

.hero-preview .hero-tile-w .hero-tile-desc {
  color: var(--step-3);
}

.hero-preview .hero-base-footer {
  height: var(--hero-base-footer-height);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--hero-base-shell-pad-x);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.75rem;
  opacity: 0.7;
}

/* aspect-ratio breakpoints for the hero board */
@media (max-aspect-ratio: 4 / 3) {
  .hero-preview .hero-base-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, 1fr);
    grid-template-areas:
      "T T L"
      "T T S"
      "C C V"
      "P E R";
  }
}

@media (max-aspect-ratio: 3 / 4) {
  .hero-preview .hero-base-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, 1fr);
    grid-template-areas:
      "T T"
      "T T"
      "C C"
      "L P"
      "V E"
      "S R";
  }
}

/* =====================================================
   HERO2 COMPONENTS - Modular, content-agnostic tiles
   Mobile-first (320px base), min-width queries only
   ===================================================== */

/* Hero2 Tile Content Wrapper - C Tile (CTA + Opa) */
.hero2-tile-content--co {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  overflow: hidden;
  align-content: center;
}

/* CTA Button Container */
.hero2-cta-btn-container {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

/* CTA Button - Mobile First (320px) */
.hero2-cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  width: 100%;
  height: 100%;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.75rem, 3.5vw, 0.95rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow:
    0 4px 12px rgba(99, 102, 241, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  overflow: hidden;
  will-change: transform;
}

.hero2-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 20px rgba(99, 102, 241, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.hero2-cta-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 2px 6px rgba(99, 102, 241, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Opa Image Container */
.hero2-opa {
  flex: 0 1 50%;
  width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.hero2-opa img {
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center right;
}

/* Video overlay */
.hero-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-video-overlay.active {
  opacity: 1;
}

.hero-video-overlay-content {
  position: relative;
  width: min(80vw, 80vh * 9 / 16);
  /* Constrained by min of 80vw or 80vh, maintaining 9:16 ratio */
  height: min(80vh, 80vw * 16 / 9);
  max-width: min(80vw, 80vh * 9 / 16);
  max-height: min(80vh, 80vw * 16 / 9);
}

.hero-video-overlay-content iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.hero-video-overlay-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.hero-video-overlay-close:hover {
  transform: scale(1.2);
}

/* YouTube-style Play Button for Tile V */
.hero-tile-v {
  position: relative;
}

.hero-tile-v-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-tile-v-play-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 48px;
  height: 34px;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 10;
}

.hero-tile-v-play-btn:hover {
  transform: scale(1.1);
}

.hero-tile-v-play-btn svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}


/* Tablet landscape and up - enhanced proportions */
@media (min-width: 480px) {
  .hero2-tile-content--co {
    gap: 0.75rem;
    padding: 1rem;
  }

  .hero2-cta-btn-container {
    flex: 1 1 65%;
    height: 95%;
  }

  .hero2-opa {
    flex: 0 1 45%;
  }

  .hero2-cta-btn {
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    border-radius: 14px;
  }
}

/* Desktop - enhanced spacing */
@media (min-width: 768px) {
  .hero2-tile-content--co {
    gap: 1rem;
    padding: 1.25rem;
  }

  .hero2-cta-btn {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    border-radius: 16px;
    letter-spacing: 0.05em;
  }


  :root {
    --hero-tile-title-min: 5rem;
    --hero-tile-title-fluid: 5.2vw;
    --hero-tile-title-max: 5.6rem;
    --hero-tile-subtitle-size: 1.15rem;
    --hero-tile-title-max-width: 34rem;
  }
}

/* Large tablets and small desktops */
@media (min-width: 1024px) {
  :root {
    --hero-tile-title-fluid: 5vw;
    --hero-tile-title-max: 6.2rem;
    --hero-tile-title-max-width: 38rem;
  }

  .hero2-tile-content--co {
    padding: 1.5rem;
  }

  .hero2-cta-btn {
    font-size: clamp(1.1rem, 1.2vw, 1.4rem);
  }
}

/* Standard desktops */
@media (min-width: 1280px) {
  :root {
    --hero-tile-title-fluid: 4.8vw;
    --hero-tile-title-max: 6.8rem;
    --hero-tile-title-max-width: 44rem;
  }
}

/* Large desktops */
@media (min-width: 1440px) {
  :root {
    --hero-tile-title-max: 7.2rem;
    --hero-tile-title-max-width: 48rem;
  }
}