/* ═══════════════════════════════════════════════
   weBump — Diagonal Profile Showcase
   ═══════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Theme tokens ──────────────────────────── */
:root {
  --bg: #edf6ff;
  --card-gap: 12px;
  --rotation: -15deg;
  --viewport-bleed: 180px;
  --foreground-safe-top: max(92px, calc(env(safe-area-inset-top) + 38px));
  --foreground-safe-bottom: max(116px, calc(env(safe-area-inset-bottom) + 58px));
  --scene-highlight-a: rgba(255, 125, 156, 0.22);
  --scene-highlight-b: rgba(105, 166, 255, 0.18);
  --scene-highlight-c: rgba(255, 202, 111, 0.16);
  --scene-vignette: rgba(20, 24, 32, 0.08);
  --scene-top-fade: rgba(255, 255, 255, 0.78);
  --scene-edge-fade-start: rgba(255, 255, 255, 0.64);
  --scene-edge-fade-end: rgba(255, 255, 255, 0.5);
  --scene-edge-blend: soft-light;

  /* Badge tokens - Light Mode */
  --badge-bg: rgba(255, 255, 255, 0.65);
  --badge-border: rgba(0, 0, 0, 0.08);
  --badge-border-hover: rgba(0, 0, 0, 0.16);
  --badge-text: #1d1d1f;
  --badge-shadow: rgba(0, 0, 0, 0.04);
  --badge-shadow-hover: rgba(0, 0, 0, 0.08);
  --section-text: #07090d;
  --section-muted: #69717f;
  --section-glass: rgba(255, 255, 255, 0.62);
  --section-glass-strong: rgba(255, 255, 255, 0.78);
  --section-border: rgba(16, 24, 40, 0.1);
  --section-shadow: rgba(20, 34, 55, 0.12);
  --accent-blue: #3f8ff2;
  --accent-pink: #eb5378;
  --accent-green: #62cc72;
  --accent-orange: #faa04b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1118;
    --scene-highlight-a: rgba(255, 96, 140, 0.14);
    --scene-highlight-b: rgba(82, 146, 255, 0.18);
    --scene-highlight-c: rgba(255, 187, 96, 0.1);
    --scene-vignette: rgba(0, 0, 0, 0.34);
    --scene-top-fade: rgba(255, 255, 255, 0.04);
    --scene-edge-fade-start: rgba(0, 0, 0, 0.18);
    --scene-edge-fade-end: rgba(0, 0, 0, 0.32);
    --scene-edge-blend: normal;

    /* Badge tokens - Dark Mode */
    --badge-bg: rgba(255, 255, 255, 0.08);
    --badge-border: rgba(255, 255, 255, 0.12);
    --badge-border-hover: rgba(255, 255, 255, 0.24);
    --badge-text: #f5f5f7;
    --badge-shadow: rgba(0, 0, 0, 0.25);
    --badge-shadow-hover: rgba(0, 0, 0, 0.4);
    --section-text: #f8fbff;
    --section-muted: #aab4c2;
    --section-glass: rgba(10, 16, 24, 0.68);
    --section-glass-strong: rgba(18, 27, 39, 0.82);
    --section-border: rgba(255, 255, 255, 0.12);
    --section-shadow: rgba(0, 0, 0, 0.34);
  }
}

/* ── Page shell ────────────────────────────── */
html {
  min-height: 100%;
  background-color: var(--bg);
}

body {
  position: relative;
  min-height: calc(100vh + (var(--viewport-bleed) * 2));
  min-height: calc(100svh + (var(--viewport-bleed) * 2));
  background-color: var(--bg);
  overflow-x: hidden;
  overflow-y: scroll;
  transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::-webkit-scrollbar {
  display: none;
}

body::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100vh + (var(--viewport-bleed) * 2));
  height: calc(100svh + (var(--viewport-bleed) * 2));
  background: linear-gradient(180deg, rgba(237, 246, 255, 0.58), rgba(237, 246, 255, 0.46));
  pointer-events: none;
}

/* ── First-run onboarding ─────────────────── */
.onboarding-screen {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: calc(100vh + (var(--viewport-bleed) * 2));
  min-height: calc(100svh + (var(--viewport-bleed) * 2));
  height: calc(100vh + (var(--viewport-bleed) * 2));
  height: calc(100svh + (var(--viewport-bleed) * 2));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-padding-top: var(--foreground-safe-top);
  scroll-padding-bottom: var(--foreground-safe-bottom);
  padding:
    calc(var(--viewport-bleed) + max(26px, env(safe-area-inset-top)))
    max(18px, env(safe-area-inset-right))
    calc(var(--viewport-bleed) + max(22px, env(safe-area-inset-bottom)))
    max(18px, env(safe-area-inset-left));
  color: #050608;
  background: transparent;
}

.onboarding-panel {
  display: grid;
  width: min(100%, 760px);
  height: calc(100vh - max(26px, env(safe-area-inset-top)));
  height: calc(100svh - max(26px, env(safe-area-inset-top)));
  margin: 0 auto;
  grid-template-rows: minmax(180px, 1.2fr) auto minmax(60px, 0.4fr);
  align-items: center;
  justify-items: center;
}

.onboarding-animation {
  position: relative;
  width: min(72vw, 32vh, 380px);
  aspect-ratio: 1;
  align-self: end;
  margin-bottom: clamp(16px, 3.5vh, 28px);
  perspective: 1200px;
  transform-style: preserve-3d;
  isolation: isolate;
}

.onboarding-mark,
.onboarding-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
}

.onboarding-mark {
  display: grid;
  width: clamp(116px, 29vw, 190px);
  aspect-ratio: 1;
  place-items: center;
  background: rgba(63, 143, 242, 0.94);
  box-shadow: 0 20px 44px rgba(63, 143, 242, 0.28);
  --tx: 0px;
  --ty: 0px;
  --tz: 12px;
  --rx: 0deg;
  --ry: 0deg;
  transform: translate3d(calc(-50% + var(--tx)), calc(-50% + var(--ty)), var(--tz)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
}

.onboarding-mark span {
  color: rgba(0, 0, 0, 0.82);
  font-size: clamp(2.8rem, 12vw, 5.1rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  transform: translateZ(10px);
  display: block;
}

.onboarding-orb {
  --size: 58px;
  --x: 0px;
  --y: 0px;
  --tx: 0px;
  --ty: 0px;
  --tz: 0px;
  --scale: 1;
  width: var(--size);
  aspect-ratio: 1;
  background: var(--orb-color);
  box-shadow: 0 14px 28px var(--orb-shadow);
  opacity: 0;
  transform: translate3d(calc(-50% + var(--x) + var(--tx, 0px)), calc(-50% + var(--y) + var(--ty, 0px)), var(--tz, 0px)) scale(var(--scale, 1));
  animation: orb-pop 0.72s cubic-bezier(0.18, 0.9, 0.28, 1.14) forwards;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-orb::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
}

.onboarding-orb--pink {
  --size: clamp(58px, 15vw, 100px);
  --x: clamp(-94px, -19vw, -72px);
  --y: clamp(-74px, -9vw, -30px);
  --tz: 24px;
  --scale: 1.01;
  --orb-color: rgba(235, 83, 120, 0.78);
  --orb-shadow: rgba(235, 83, 120, 0.24);
  animation-delay: 0.05s;
  z-index: 24;
}

.onboarding-orb--green {
  --size: clamp(44px, 11vw, 72px);
  --x: clamp(70px, 20vw, 126px);
  --y: clamp(-104px, -14vw, -54px);
  --tz: 10px;
  --orb-color: rgba(98, 204, 114, 0.74);
  --orb-shadow: rgba(98, 204, 114, 0.22);
  animation-delay: 0.16s;
  z-index: 10;
}

.onboarding-orb--blue {
  --size: clamp(68px, 18vw, 118px);
  --x: clamp(80px, 20vw, 144px);
  --y: clamp(58px, 15vw, 104px);
  --tz: 16px;
  --scale: 1.005;
  --orb-color: rgba(63, 143, 242, 0.78);
  --orb-shadow: rgba(63, 143, 242, 0.24);
  animation-delay: 0.24s;
  z-index: 16;
}

.onboarding-orb--orange {
  --size: clamp(38px, 10vw, 66px);
  --x: clamp(-104px, -22vw, -82px);
  --y: clamp(64px, 16vw, 118px);
  --tz: 6px;
  --orb-color: rgba(250, 160, 75, 0.76);
  --orb-shadow: rgba(250, 160, 75, 0.22);
  animation-delay: 0.32s;
  z-index: 6;
}

.onboarding-copy {
  width: 100%;
  text-align: center;
}

.onboarding-copy h1 {
  max-width: 720px;
  margin: 0 auto;
  color: #000;
  font-size: clamp(4rem, 12vw, 6.8rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
}

.onboarding-copy p {
  margin-top: clamp(18px, 3.2vw, 26px);
  color: #8b919d;
  font-size: clamp(1.32rem, 4.1vw, 2.15rem);
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: 0;
}

@media (prefers-color-scheme: dark) {
  .onboarding-screen {
    color: #f5f5f7;
  }

  body::before {
    background: linear-gradient(180deg, rgba(11, 17, 24, 0.72), rgba(11, 17, 24, 0.58));
  }

  .onboarding-copy h1 {
    color: #fff;
  }

  .onboarding-copy p {
    color: #aab4c2;
  }
}

/* ── Onboarding Scroll Indicator ───────────── */
.scroll-indicator {
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  box-shadow: 0 4px 18px var(--badge-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  z-index: 10;
  text-decoration: none;
  align-self: center;
  justify-self: center;
  outline: none;
  
  /* Initial fade-in micro-animation with delay so it appears nicely after landing elements */
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: badge-fade-in 0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  
  /* Smooth transition for interactions */
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              border-color 0.25s ease, 
              background-color 0.25s ease,
              color 0.25s ease;
}

.scroll-indicator:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 26px var(--badge-shadow-hover);
  border-color: var(--badge-border-hover);
  color: var(--accent-blue);
}

.scroll-indicator:active {
  transform: translateY(0) scale(0.95);
}

.scroll-indicator:focus-visible {
  outline: 2.5px solid var(--accent-blue);
  outline-offset: 3px;
}

.scroll-indicator-chevron {
  display: block;
  width: 24px;
  height: 24px;
  color: inherit;
  transition: transform 0.25s ease;
  animation: indicator-bounce 2s infinite ease-in-out;
}

@keyframes indicator-bounce {
  0%, 100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(2px);
  }
}

@media (prefers-color-scheme: dark) {
  .scroll-indicator:hover {
    color: var(--accent-pink);
  }
  .scroll-indicator:focus-visible {
    outline-color: var(--accent-pink);
  }
}

@media (max-width: 430px), (max-height: 780px) {
  .scroll-indicator {
    width: 40px;
    height: 40px;
  }
  .scroll-indicator-chevron {
    width: 20px;
    height: 20px;
  }
}

/* ── Coming Soon Badge ────────────────────── */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(22px, 4.8vw, 36px);
  padding: 8px 18px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 99px;
  box-shadow: 0 4px 18px var(--badge-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
  cursor: pointer;
  
  /* Initial fade-in-up micro-animation on load */
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: badge-fade-in 0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
  
  /* Smooth interactions transition */
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              border-color 0.25s ease, 
              background-color 0.25s ease;
}

.coming-soon-badge:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 26px var(--badge-shadow-hover);
  border-color: var(--badge-border-hover);
}

.coming-soon-badge:active {
  transform: translateY(0) scale(0.98);
}

.badge-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 4.8px; /* Classic squircle ratio for 22px scale */
  box-shadow: 0 1.5px 3.5px rgba(0, 0, 0, 0.16);
  display: block;
}

.badge-text {
  color: var(--badge-text);
  font-size: clamp(0.92rem, 2.7vw, 1.12rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  transition: color 0.25s ease;
}

@keyframes badge-fade-in {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Product story sections ───────────────── */
.purpose-section {
  position: relative;
  z-index: 4;
  scroll-margin-top: var(--foreground-safe-top);
  padding:
    clamp(34px, 7vw, 82px)
    max(18px, env(safe-area-inset-right))
    clamp(34px, 7vw, 82px)
    max(18px, env(safe-area-inset-left));
  color: var(--section-text);
}

.purpose-section__inner {
  width: min(100%, 1060px);
  margin: 0 auto;
}

.section-kicker {
  color: var(--accent-blue);
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.purpose-section h2 {
  max-width: 820px;
  margin-top: 12px;
  color: var(--section-text);
  font-size: clamp(2.25rem, 7vw, 5.2rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
}

.step-grid,
.scene-grid {
  display: grid;
  align-items: start;
  gap: clamp(12px, 2.2vw, 18px);
  margin-top: clamp(24px, 5vw, 44px);
}

.step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scene-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card,
.profile-feature-bit,
.scene-card {
  min-width: 0;
  border: none;
  background: color-mix(in srgb, var(--card-accent, var(--accent-blue)) 35%, var(--section-glass-strong));
  box-shadow: 0 18px 54px var(--section-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.step-card:nth-child(1) {
  --card-accent: var(--accent-blue);
}
.step-card:nth-child(2) {
  --card-accent: var(--accent-pink);
}
.step-card:nth-child(3) {
  --card-accent: var(--accent-orange);
}

.scene-card:nth-child(1) {
  --card-accent: var(--accent-blue);
}
.scene-card:nth-child(2) {
  --card-accent: var(--accent-pink);
}
.scene-card:nth-child(3) {
  --card-accent: var(--accent-orange);
}
.scene-card:nth-child(4) {
  --card-accent: var(--accent-green);
}




.step-number {
  display: inline-grid;
  width: 42px;
  aspect-ratio: 1;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-blue);
  box-shadow: 0 12px 24px rgba(63, 143, 242, 0.25);
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
}

.step-card:nth-child(2) .step-number {
  background: var(--accent-pink);
  box-shadow: 0 12px 24px rgba(235, 83, 120, 0.22);
}

.step-card:nth-child(3) .step-number {
  background: var(--accent-orange);
  box-shadow: 0 12px 24px rgba(250, 160, 75, 0.2);
}

.step-card h3,
.scene-card h3 {
  color: var(--section-text);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.step-card p,
.scene-card p {
  margin-top: 10px;
  color: var(--section-muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  font-weight: 760;
  line-height: 1.28;
  letter-spacing: 0;
}



.scene-dot,
.profile-feature-dot-accent {
  display: block;
  width: 26px;
  aspect-ratio: 1;
  margin-bottom: 26px;
  border-radius: 999px;
  background: var(--dot-color);
  box-shadow: 0 10px 22px var(--dot-shadow-color);
}

.scene-dot--campus,
.profile-feature-dot-accent--blue {
  --dot-color: var(--accent-blue);
  --dot-shadow-color: rgba(63, 143, 242, 0.24);
}

.scene-dot--concerts,
.profile-feature-dot-accent--pink {
  --dot-color: var(--accent-pink);
  --dot-shadow-color: rgba(235, 83, 120, 0.24);
}

.scene-dot--transit,
.profile-feature-dot-accent--orange {
  --dot-color: var(--accent-orange);
  --dot-shadow-color: rgba(250, 160, 75, 0.24);
}

.scene-dot--events {
  --dot-color: var(--accent-green);
  --dot-shadow-color: rgba(98, 204, 114, 0.24);
}

.purpose-section--scenes {
  padding-top: clamp(18px, 4vw, 48px);
  padding-bottom: max(clamp(54px, 9vw, 110px), var(--foreground-safe-bottom));
}

/* ── Showcase container — true full-bleed ─── */
.outer-viewport-container {
  display: block;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: calc(100vh + (var(--viewport-bleed) * 2));
  height: calc(100svh + (var(--viewport-bleed) * 2));
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
  pointer-events: none;
}

.outer-viewport-container::before,
.outer-viewport-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.outer-viewport-container::before {
  z-index: 0;
  background:
    radial-gradient(circle at 14% 10%, var(--scene-highlight-b), transparent 34%),
    radial-gradient(circle at 88% 22%, var(--scene-highlight-a), transparent 35%),
    radial-gradient(circle at 52% 92%, var(--scene-highlight-c), transparent 36%),
    linear-gradient(180deg, var(--scene-top-fade), rgba(255, 255, 255, 0) 46%);
  opacity: 0.78;
}

.outer-viewport-container::after {
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 52%, var(--scene-vignette) 100%),
    linear-gradient(180deg, var(--scene-edge-fade-start), transparent 18%, transparent 82%, var(--scene-edge-fade-end));
  mix-blend-mode: var(--scene-edge-blend);
}

#showcase {
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(var(--viewport-bleed) * -1);
  width: calc(100vw + (var(--viewport-bleed) * 2));
  height: calc(100vh + (var(--viewport-bleed) * 2));
  height: calc(100svh + (var(--viewport-bleed) * 2));
  overflow: hidden;
  touch-action: none;
  -webkit-touch-callout: none;
}

/* ── Rotated inner grid ────────────────────── */
.showcase-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--rotation));
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

/* ── Scroll rows ───────────────────────────── */
.scroll-row {
  display: flex;
  gap: var(--card-gap);
  contain: layout paint style;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.scroll-set {
  display: flex;
  flex: 0 0 auto;
  gap: var(--card-gap);
}

/* ── Profile card images ───────────────────── */
.scroll-row img {
  display: block;
  flex-shrink: 0;
  width: var(--card-width, 120px);
  height: var(--card-height, 133.42px);
  aspect-ratio: 1314 / 1461;
  object-fit: contain;
  border-radius: 8px;
  /* Prevent user interaction */
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* ── Profile Section — Redesigned ──────────── */
.profile-section-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0 clamp(40px, 7vw, 88px);
  align-items: start;
}

.profile-text-column {
  grid-column: 1;
  grid-row: 1;
  padding-top: clamp(12px, 3vw, 32px);
  align-self: start;
}

.profile-card-showcase {
  position: relative;
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 4vw, 48px) 0;
}

/* Ambient glow behind the card — always-on, no animation so slide changes don't cause pop */
.profile-card-showcase-glow {
  position: absolute;
  width: 80%;
  height: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(63, 143, 242, 0.18) 0%,
    rgba(235, 83, 120, 0.10) 40%,
    transparent 70%
  );
  filter: blur(48px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

@media (prefers-color-scheme: dark) {
  .profile-card-showcase-glow {
    background: radial-gradient(
      ellipse at center,
      rgba(63, 143, 242, 0.24) 0%,
      rgba(235, 83, 120, 0.14) 40%,
      transparent 70%
    );
  }
}

.profile-preview-card-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  aspect-ratio: 1314 / 1461;
  display: flex;
  justify-content: center;
  align-items: center;
}

.customization-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
}

.customization-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.customization-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.customization-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.profile-features-shell {
  grid-column: 1;
  grid-row: 2;
  margin-top: clamp(22px, 3.4vw, 34px);
  align-self: start;
}

.profile-features {
  display: grid;
  grid-template-columns: 1fr; /* Stack vertically by default on desktop/tablet to prevent squishing */
  align-items: start;
  gap: 16px;
}

.profile-feature-bit {
  --profile-bit-accent: var(--accent-blue);
  --card-accent: var(--profile-bit-accent);
  position: relative;
  padding: clamp(26px, 2.8vw, 36px); /* Generous padding around text on desktop */
}

.profile-feature-bit:nth-child(2) {
  --profile-bit-accent: var(--accent-pink);
}

.profile-feature-bit:nth-child(3) {
  --profile-bit-accent: var(--accent-orange);
}

.profile-feature-bit h3 {
  color: var(--section-text);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem); /* Slightly larger for premium feel */
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.profile-feature-bit p {
  margin-top: 7px;
  color: var(--section-muted);
  font-size: clamp(0.92rem, 1.3vw, 1.02rem); /* Slightly larger for premium feel */
  font-weight: 760;
  line-height: 1.32;
}

.profile-feature-bit p strong {
  color: var(--section-text);
  font-weight: 950;
}

@media (min-width: 1025px) {
  .purpose-section--profile .purpose-section__inner {
    width: min(100%, 1200px); /* Generous container width on larger desktops */
  }

  .profile-section-layout {
    grid-template-columns: 1.4fr 1fr; /* Left column takes 1.4fr, showcase card takes 1fr */
    gap: 0 clamp(60px, 6vw, 88px);
  }

  .profile-features {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Lay out in 3 columns horizontally on wide screens */
    gap: 18px;
  }

  .profile-feature-bit {
    padding: clamp(24px, 2.2vw, 30px); /* Tailored padding for the horizontal grid layout */
  }
}

.profile-features a {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(63, 143, 242, 0.3);
  transition: border-bottom-color 0.25s ease, color 0.25s ease;
  font-weight: 950;
}

.profile-features a:hover {
  color: var(--accent-pink);
  border-bottom-color: rgba(235, 83, 120, 0.6);
}

.profile-feature-dots,
.step-dots,
.scene-dots {
  display: none;
}

.profile-feature-dot,
.step-dot,
.scene-dot-btn {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--section-muted) 34%, transparent);
  cursor: pointer;
  transition: width 0.22s ease, background-color 0.22s ease, opacity 0.22s ease;
}

.profile-feature-dot.is-active,
.step-dot.is-active,
.scene-dot-btn.is-active {
  width: 21px;
}

/* Color matching for active dot states */
.profile-feature-dot[data-profile-feature-index="0"].is-active {
  background: var(--accent-blue);
}
.profile-feature-dot[data-profile-feature-index="1"].is-active {
  background: var(--accent-pink);
}
.profile-feature-dot[data-profile-feature-index="2"].is-active {
  background: var(--accent-orange);
}

.step-dot[data-step-index="0"].is-active {
  background: var(--accent-blue);
}
.step-dot[data-step-index="1"].is-active {
  background: var(--accent-pink);
}
.step-dot[data-step-index="2"].is-active {
  background: var(--accent-orange);
}

.scene-dot-btn[data-scene-index="0"].is-active {
  background: var(--accent-blue);
}
.scene-dot-btn[data-scene-index="1"].is-active {
  background: var(--accent-pink);
}
.scene-dot-btn[data-scene-index="2"].is-active {
  background: var(--accent-orange);
}
.scene-dot-btn[data-scene-index="3"].is-active {
  background: var(--accent-green);
}

/* ── Profile Section — Mobile ─────────────── */
@media (max-width: 700px) {
  .profile-section-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0 clamp(12px, 3vw, 20px);
    align-items: center;
  }

  .profile-text-column {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
    text-align: left;
    align-self: center;
  }

  .profile-card-showcase {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    align-items: center;
    justify-content: center;
  }

  .profile-card-showcase-glow {
    width: 90%;
    height: 80%;
  }

  .profile-preview-card-wrapper {
    max-width: none;
    width: 100%;
  }

  .profile-features-shell,
  .steps-shell,
  .scenes-shell {
    position: relative;
    margin-top: clamp(14px, 3vw, 22px);
    background: var(--section-glass);
    border: 1px solid var(--section-border);
    border-radius: 18px;
    padding: 16px 0 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .profile-features-shell {
    grid-column: 1 / -1;
    grid-row: 2;
  }



  .profile-features,
  .step-grid,
  .scene-grid {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: max(16px, env(safe-area-inset-left));
    scroll-padding-right: max(16px, env(safe-area-inset-right));
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .step-grid,
  .scene-grid {
    margin-top: 0; /* override the desktop margin */
  }

  .profile-features::-webkit-scrollbar,
  .step-grid::-webkit-scrollbar,
  .scene-grid::-webkit-scrollbar {
    display: none;
  }

  .profile-feature-bit,
  .step-card,
  .scene-card {
    flex: 0 0 min(72vw, 284px);
    scroll-snap-align: start;
  }

  .profile-feature-bit {
    padding: 18px;
  }

  .step-card {
    padding: 18px;
  }

  .scene-card {
    padding: 18px;
  }

  .profile-feature-bit h3 {
    font-size: clamp(1.02rem, 4.8vw, 1.22rem);
  }

  .profile-feature-bit p {
    font-size: clamp(0.9rem, 3.8vw, 0.98rem);
    line-height: 1.32;
  }

  .profile-feature-dots,
  .step-dots,
  .scene-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }
}




@media (max-width: 640px) {
  :root {
    --scene-highlight-a: rgba(255, 119, 151, 0.26);
    --scene-highlight-b: rgba(99, 157, 255, 0.22);
    --scene-highlight-c: rgba(255, 199, 105, 0.18);
    --scene-vignette: rgba(22, 28, 40, 0.1);
    --scene-top-fade: rgba(255, 255, 255, 0.82);
  }

  .outer-viewport-container::before {
    background:
      radial-gradient(circle at -8% 16%, var(--scene-highlight-b), transparent 36%),
      radial-gradient(circle at 108% 30%, var(--scene-highlight-a), transparent 38%),
      radial-gradient(circle at 48% 104%, var(--scene-highlight-c), transparent 40%),
      linear-gradient(180deg, var(--scene-top-fade), rgba(255, 255, 255, 0) 42%);
    opacity: 0.86;
  }
}

@media (max-width: 640px) and (prefers-color-scheme: dark) {
  :root {
    --scene-highlight-a: rgba(255, 96, 140, 0.16);
    --scene-highlight-b: rgba(82, 146, 255, 0.2);
    --scene-highlight-c: rgba(255, 187, 96, 0.12);
    --scene-vignette: rgba(0, 0, 0, 0.36);
    --scene-top-fade: rgba(255, 255, 255, 0.04);
  }

  .outer-viewport-container::before {
    background:
      radial-gradient(circle at -8% 16%, var(--scene-highlight-b), transparent 36%),
      radial-gradient(circle at 108% 30%, var(--scene-highlight-a), transparent 38%),
      radial-gradient(circle at 48% 104%, var(--scene-highlight-c), transparent 40%),
      linear-gradient(180deg, var(--scene-top-fade), rgba(255, 255, 255, 0) 42%);
  }
}

@keyframes orb-pop {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.05);
  }
  68% {
    opacity: 1;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translate3d(calc(-50% + var(--x) + var(--tx, 0px)), calc(-50% + var(--y) + var(--ty, 0px)), var(--tz, 0px)) scale(var(--scale, 1));
  }
}

/* ── Accessibility: respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .onboarding-orb {
    animation: none;
    opacity: 1;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1);
  }

  .outer-viewport-container {
    transition: none;
  }

  .customization-slide {
    transition: none !important;
  }

  .profile-card-showcase-glow {
    opacity: 0.8;
  }

  .scroll-indicator {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .scroll-indicator-chevron {
    animation: none !important;
  }
}

@media (max-width: 700px) {
  .onboarding-panel {
    min-height: calc(100svh + 120px);
    height: auto;
    grid-template-rows: auto auto auto;
    align-content: start;
    padding-top: clamp(78px, 12svh, 118px);
  }

  .onboarding-animation {
    align-self: start;
    margin-bottom: clamp(22px, 4svh, 38px);
  }

  .onboarding-copy {
    align-self: start;
  }

  .onboarding-copy p {
    max-width: 21rem;
    margin-right: auto;
    margin-left: auto;
  }

  .coming-soon-badge {
    margin-top: clamp(112px, 18svh, 168px);
  }

  .scroll-indicator {
    margin-top: 28px;
  }

  .step-number {
    margin-bottom: 26px;
  }
}

@media (max-width: 430px) {
  .onboarding-screen {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .onboarding-panel {
    min-height: calc(100svh + 132px);
    height: auto;
    padding-top: clamp(70px, 10svh, 100px);
  }

  .onboarding-animation {
    width: min(78vw, 28vh, 312px);
  }

  .onboarding-copy h1 {
    font-size: clamp(3.2rem, 14.8vw, 4.35rem);
  }

  .onboarding-copy p {
    font-size: clamp(1.08rem, 5.9vw, 1.55rem);
  }

  .purpose-section {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .purpose-section h2 {
    font-size: clamp(2.2rem, 11.2vw, 3.1rem);
  }

  .step-card,
  .profile-feature-bit,
  .scene-card {
    padding: 18px;
  }
}

@media (max-height: 780px) {
  .onboarding-panel {
    min-height: calc(100svh + 118px);
    height: auto;
    grid-template-rows: auto auto auto;
    padding-top: clamp(54px, 9svh, 78px);
  }

  .onboarding-animation {
    width: min(45vw, 24vh, 240px);
    margin-bottom: clamp(16px, 3svh, 28px);
  }

  .onboarding-copy h1 {
    font-size: clamp(2.8rem, 9.7vw, 4.2rem);
  }

  .onboarding-copy p {
    margin-top: 10px;
    font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  }

  .coming-soon-badge {
    margin-top: clamp(96px, 16svh, 132px);
  }
}

/* ── Site Footer ────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 4;
  margin-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(24px, 4vw, 48px);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.site-footer__inner {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 700;
  color: var(--section-muted);
  letter-spacing: -0.01em;
  user-select: none;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.site-footer__inner:hover {
  opacity: 1;
}

.footer-link {
  color: var(--section-text);
  text-decoration: none;
  font-weight: 900;
  position: relative;
  padding: 2px 4px;
  border-radius: 4px;
  background: transparent;
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  background-color: var(--accent-blue);
  border-radius: 2px;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.25s ease;
}

.footer-link:hover {
  color: var(--accent-blue);
}

.footer-link:hover::after {
  transform: scaleX(1);
}

@media (prefers-color-scheme: dark) {
  .footer-link::after {
    background-color: var(--accent-pink);
  }
  .footer-link:hover {
    color: var(--accent-pink);
  }
}
