/* ===================================================================
   Confideras — Supplementary Styles (works WITH Tailwind, not against)
   =================================================================== */

/* --- Glass Nav ---------------------------------------------------- */
.glass-nav {
  background: rgba(242, 239, 233, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.dark .glass-nav {
  background: rgba(17, 17, 17, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.glass-nav.is-scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.dark .glass-nav.is-scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* --- Scroll Reveal — drift-in from the void ----------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.9s cubic-bezier(.19, 1, .22, 1),
    transform 0.9s cubic-bezier(.19, 1, .22, 1),
    filter 0.9s cubic-bezier(.19, 1, .22, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Stagger children — each drifts in slightly later */
[data-reveal]:nth-child(2) { transition-delay: 0.06s; }
[data-reveal]:nth-child(3) { transition-delay: 0.12s; }
[data-reveal]:nth-child(4) { transition-delay: 0.18s; }
[data-reveal]:nth-child(5) { transition-delay: 0.24s; }
[data-reveal]:nth-child(6) { transition-delay: 0.30s; }
[data-reveal]:nth-child(7) { transition-delay: 0.36s; }
[data-reveal]:nth-child(8) { transition-delay: 0.42s; }

/* --- Hero entrance for .hero__content children -------------------- */
.hero__content > * {
  opacity: 0;
  transform: translateY(20px);
}

.hero__content.is-visible > * {
  animation: heroReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero__content.is-visible > *:nth-child(1) { animation-delay: 0.1s; }
.hero__content.is-visible > *:nth-child(2) { animation-delay: 0.25s; }
.hero__content.is-visible > *:nth-child(3) { animation-delay: 0.4s; }
.hero__content.is-visible > *:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Section inner parallax smoothing ------------------------------ */
/* Exclude the hero (#home) — its absolute-positioned video wrapper breaks with parallax */
main > section:not(#home) > div {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* --- Infinite Carousel -------------------------------------------- */
.carousel-viewport {
  overflow-x: clip;
  overflow-y: visible;
  -webkit-user-select: none;
  user-select: none;
}

.carousel-track {
  will-change: transform;
  padding: 20px 0;
}

.carousel-track.is-dragging {
  cursor: grabbing !important;
}

.carousel-card {
  transition: box-shadow 240ms ease, border-color 240ms ease, transform 200ms ease;
  cursor: pointer;
}

.carousel-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(23,176,207,0.12);
  border-color: rgba(23,176,207,0.2);
  transform: translateY(-4px);
}

.dark .carousel-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(23,176,207,0.15);
  border-color: rgba(23,176,207,0.25);
}

/* Expanded card state */
.carousel-card.is-expanded {
  transform: scale(1.08) translateY(-8px) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 0 0 1px rgba(23,176,207,0.2);
  border-color: rgba(23,176,207,0.3);
  z-index: 20;
  position: relative;
}

.dark .carousel-card.is-expanded {
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(23,176,207,0.25);
  border-color: rgba(23,176,207,0.35);
}

/* --- Capability Cards — Float + Tilt + Lift ----------------------- */

/* Idle float animation — subtle breathing effect */
@keyframes capFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.cap-card {
  /* Base shadow — resting state */
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 12px rgba(0,0,0,0.03);
  /* Eased transitions — slow in, slow out */
  transition:
    box-shadow 600ms cubic-bezier(.19, 1, .22, 1),
    border-color 600ms cubic-bezier(.19, 1, .22, 1);
  /* Preserve 3D for tilt perspective */
  transform-style: preserve-3d;
  will-change: transform;
}

/* Hover: lift + deeper shadow + accent border glow */
.cap-card:hover {
  animation-play-state: paused;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.08),
    0 20px 48px rgba(0,0,0,0.06),
    0 0 0 1px rgba(23, 176, 207, 0.12);
  border-color: rgba(23, 176, 207, 0.2);
}

.dark .cap-card {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.2),
    0 4px 12px rgba(0,0,0,0.15);
}

.dark .cap-card:hover {
  box-shadow:
    0 8px 24px rgba(0,0,0,0.3),
    0 20px 48px rgba(0,0,0,0.2),
    0 0 0 1px rgba(23, 176, 207, 0.15);
  border-color: rgba(23, 176, 207, 0.25);
}

/* Shine/glare layer — radial gradient follows cursor via JS */
.cap-card__shine {
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(23, 176, 207, 0.06),
    transparent 40%
  );
  transition: opacity 600ms cubic-bezier(.19, 1, .22, 1);
  border-radius: inherit;
}

.cap-card:hover .cap-card__shine {
  opacity: 1;
}

/* Icon lift on hover */
.cap-card__icon {
  transition: transform 600ms cubic-bezier(.19, 1, .22, 1);
}

.cap-card:hover .cap-card__icon {
  transform: translateY(-2px) scale(1.05);
}

/* Title color shift on hover */
.cap-card__title {
  transition: color 500ms ease;
}

.cap-card:hover .cap-card__title {
  color: #17b0cf;
}

/* Tag reveal — slides up on hover */
.cap-card__tag {
  transition: transform 600ms cubic-bezier(.19, 1, .22, 1),
              opacity 600ms cubic-bezier(.19, 1, .22, 1);
  opacity: 0.4;
  transform: translateY(4px);
}

.cap-card:hover .cap-card__tag {
  opacity: 0.7;
  transform: translateY(0);
}

/* --- Form fields -------------------------------------------------- */
.form-field {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.form-field.is-valid {
  border-color: #22c55e;
}

.form-error.is-visible {
  display: block !important;
}

.form-success.is-visible {
  display: block !important;
}

/* --- Grain texture overlay ---------------------------------------- */
.grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* --- Scroll progress bar ------------------------------------------ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: #17b0cf;
  z-index: 9999;
  width: 0;
  pointer-events: none;
}

/* --- Radial Orbital Timeline -------------------------------------- */
.orbital {
  position: relative;
  width: 800px;
  height: 800px;
}

/* Center nucleus */
.orbital__nucleus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  z-index: 10;
}

.orbital__nucleus-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #17b0cf, #0d8fa8, #17b0cf);
  box-shadow: 0 0 30px rgba(23, 176, 207, 0.4), 0 0 60px rgba(23, 176, 207, 0.15);
}

.orbital__nucleus-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(23, 176, 207, 0.25);
  animation: orbitalPulse 2s ease-out infinite;
}

@keyframes orbitalPulse {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Orbit ring */
.orbital__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .orbital__ring {
  border-color: rgba(255, 255, 255, 0.06);
}

/* Connection lines SVG */
.orbital__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.orbital__lines line {
  stroke: rgba(23, 176, 207, 0.2);
  stroke-width: 1;
  transition: opacity 500ms ease;
}

/* Nodes */
.orbital__node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
  cursor: pointer;
  z-index: 15;
  transition: opacity 300ms ease;
}

.orbital__node-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 176, 207, 0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.orbital__node:hover .orbital__node-glow,
.orbital__node.is-active .orbital__node-glow {
  opacity: 1;
}

.orbital__node.is-related .orbital__node-glow {
  opacity: 0.6;
  animation: orbitalPulse 1.5s ease-out infinite;
}

.orbital__node-icon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
  transition: all 300ms cubic-bezier(.165, .84, .44, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dark .orbital__node-icon {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8e8e8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.orbital__node:hover .orbital__node-icon {
  border-color: #17b0cf;
  box-shadow: 0 0 24px rgba(23, 176, 207, 0.25);
  transform: scale(1.12);
}

.orbital__node.is-active .orbital__node-icon {
  background: #17b0cf;
  border-color: #17b0cf;
  color: white;
  box-shadow: 0 0 40px rgba(23, 176, 207, 0.45);
  transform: scale(1.2);
}

.orbital__node-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity 300ms ease;
  pointer-events: none;
  line-height: 1.3;
}

.orbital__node:hover .orbital__node-label,
.orbital__node.is-active .orbital__node-label {
  opacity: 1;
}

/* Detail card */
.orbital__detail {
  position: absolute;
  width: 340px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  z-index: 100;
  opacity: 0;
  transform: scale(0.92) translateY(-12px);
  transform-origin: top center;
  filter: blur(6px);
  transition: opacity 400ms cubic-bezier(.19, 1, .22, 1),
              transform 500ms cubic-bezier(.19, 1, .22, 1),
              filter 400ms cubic-bezier(.19, 1, .22, 1);
  pointer-events: none;
}

.dark .orbital__detail {
  background: rgba(22, 22, 22, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.orbital__detail.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

/* --- Text Roll — 3D letter rotation (pure CSS/JS port) ----------- */
.text-roll {
  display: inline;
}

.text-roll__letter {
  position: relative;
  display: inline-block;
  perspective: 10000px;
  transform-style: preserve-3d;
}

/* The "exit" face — starts at rotateX(90) (hidden), rolls into view */
.text-roll__letter-enter {
  position: absolute;
  display: inline-block;
  backface-visibility: hidden;
  transform-origin: 50% 25%;
  transform: rotateX(0deg);
}

.text-roll__letter-exit {
  position: absolute;
  display: inline-block;
  backface-visibility: hidden;
  transform-origin: 50% 100%;
  transform: rotateX(90deg);
}

/* Invisible spacer to hold width */
.text-roll__letter-spacer {
  visibility: hidden;
}

/* When .is-rolling is added by JS */
.text-roll.is-rolling .text-roll__letter-enter {
  animation: textRollEnter 0.5s ease-in forwards;
  animation-delay: var(--enter-delay, 0s);
}

.text-roll.is-rolling .text-roll__letter-exit {
  animation: textRollExit 0.5s ease-in forwards;
  animation-delay: var(--exit-delay, 0s);
}

@keyframes textRollEnter {
  to { transform: rotateX(90deg); }
}

@keyframes textRollExit {
  to { transform: rotateX(0deg); }
}

/* --- Reduced Motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-reveal-left],
  [data-reveal-right],
  [data-blur-in] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  main > section > div {
    transform: none !important;
  }

  .hero__content > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .cap-card {
    animation: none !important;
    transform: none !important;
  }

  .about-carousel__track {
    transition: none !important;
  }

  #main-content {
    position: relative !important;
    top: auto !important;
  }

  .reinsurance-step {
    transform: none !important;
  }

  .btn-chevron__label {
    transition: none !important;
  }

  .btn-chevron__icon {
    transition: none !important;
  }

  .orbital__nucleus-pulse {
    animation: none !important;
  }

  .orbital__node.is-related .orbital__node-glow {
    animation: none !important;
  }

  .text-roll__letter-enter,
  .text-roll__letter-exit {
    animation: none !important;
    transform: none !important;
  }

  .text-roll__letter-enter {
    display: none !important;
  }

  .text-roll__letter-exit {
    position: static !important;
    transform: rotateX(0) !important;
  }
}

/* --- FAQ Accordion (shadcn-inspired) ------------------------------- */
.faq-toggle {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  border: none;
}

.faq-item:hover {
  background: rgba(0, 0, 0, 0.025);
}

.dark .faq-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* Open state — gradient background like shadcn from-background via-muted/50 */
.faq-item.is-open {
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(0,0,0,0.015), rgba(255,255,255,0.6));
}

.dark .faq-item.is-open {
  background: linear-gradient(135deg, rgba(22,22,22,0.8), rgba(255,255,255,0.02), rgba(22,22,22,0.8));
}

/* Question text — brighter when open */
.faq-item.is-open .faq-question {
  color: #111;
}

.dark .faq-item.is-open .faq-question {
  color: #f5f5f5;
}

/* Chevron rotation + accent color when open */
.faq-chevron {
  transition: transform 200ms ease, color 200ms ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg) scale(1.1);
  color: #17b0cf;
}

/* Content expand/collapse */
.faq-content {
  overflow: hidden;
  transition: max-height 200ms ease-out;
}

.faq-item:not(.is-open) .faq-content {
  transition-timing-function: ease-in;
}

/* --- Dark Card Reveal (sticky pin + scroll-over) ------------------ */
#main-content {
  position: sticky;
  z-index: 1;
  /* top value computed by JS: -(mainHeight - viewportHeight) */
}

.dark-reveal__card {
  position: relative;
  z-index: 2;
}

/* --- About Carousel (Embla-style) --------------------------------- */
.about-carousel__viewport {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.about-carousel__track {
  display: flex;
  transition: transform 500ms cubic-bezier(.19, 1, .22, 1);
  will-change: transform;
}

.about-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 24px;
}

/* Arrows — outside the viewport, visible on hover */
.about-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 300ms ease, background 200ms ease, box-shadow 200ms ease;
}

.dark .about-carousel__nav {
  background: rgba(22, 22, 22, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.about-carousel__nav--prev { left: -18px; }
.about-carousel__nav--next { right: -18px; }

#about-carousel:hover .about-carousel__nav {
  opacity: 1;
}

.about-carousel__nav:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dark .about-carousel__nav:hover {
  background: #1e1e1e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.about-carousel__nav:disabled {
  opacity: 0.3 !important;
  cursor: default;
}

/* Dot indicators */
.about-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 300ms ease;
}

.dark .about-dot {
  background: rgba(255, 255, 255, 0.15);
}

.about-dot.is-active {
  background: #17b0cf;
  transform: scale(1.5);
}

/* --- Chevron Button ----------------------------------------------- */
.btn-chevron {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  padding: 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  height: 44px;
  color: white;
  background: #000;
  transition: box-shadow 300ms ease;
}

.dark .btn-chevron {
  background: #fff;
  color: #000;
}

.btn-chevron--accent {
  background: #17b0cf;
  color: #fff;
}

.dark .btn-chevron--accent {
  background: #17b0cf;
  color: #fff;
}

.btn-chevron__label {
  padding: 0 2.25rem 0 1.25rem;
  transition: opacity 500ms ease;
  white-space: nowrap;
}

.btn-chevron:hover .btn-chevron__label {
  opacity: 0;
}

.btn-chevron__icon {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 24px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  transition: width 500ms cubic-bezier(.19, 1, .22, 1);
}

.dark .btn-chevron__icon {
  background: rgba(0, 0, 0, 0.1);
}

.btn-chevron--accent .btn-chevron__icon {
  background: rgba(255, 255, 255, 0.2);
}

.dark .btn-chevron--accent .btn-chevron__icon {
  background: rgba(255, 255, 255, 0.2);
}

.btn-chevron:hover .btn-chevron__icon {
  width: calc(100% - 8px);
}

.btn-chevron:active .btn-chevron__icon {
  transform: scale(0.95);
}

/* Outline variant */
.btn-chevron--outline {
  background: transparent;
  color: #000;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.dark .btn-chevron.btn-chevron--outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.btn-chevron--outline .btn-chevron__icon {
  background: rgba(0, 0, 0, 0.06);
}

.dark .btn-chevron--outline .btn-chevron__icon {
  background: rgba(255, 255, 255, 0.08);
}

.btn-chevron--outline:hover {
  background: #000;
  color: #fff;
}

.dark .btn-chevron--outline:hover {
  background: #fff;
  color: #000;
}

.btn-chevron--outline:hover .btn-chevron__icon {
  background: rgba(255, 255, 255, 0.15);
}

.dark .btn-chevron--outline:hover .btn-chevron__icon {
  background: rgba(0, 0, 0, 0.1);
}

/* Small variant */
.btn-chevron--sm {
  height: 36px;
  font-size: 13px;
}

.btn-chevron--sm .btn-chevron__label {
  padding: 0 2rem 0 1rem;
}

/* --- Reinsurance Flow Steps --------------------------------------- */
.reinsurance-step {
  position: relative;
  transition: transform 400ms cubic-bezier(.19, 1, .22, 1), box-shadow 400ms ease;
}

.reinsurance-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08), 0 0 0 1px rgba(23,176,207,0.15);
}

.dark .reinsurance-step:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(23,176,207,0.2);
}

/* Connector line between steps */
.reinsurance-connector {
  position: relative;
}

.reinsurance-connector::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -16px;
  width: 1px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(23,176,207,0.1), rgba(23,176,207,0.4));
}

.reinsurance-connector:first-child::after {
  display: none;
}

/* --- Blur In — section headers ------------------------------------ */
[data-blur-in] {
  filter: blur(10px);
  opacity: 0;
  transition:
    filter 1s cubic-bezier(.19, 1, .22, 1),
    opacity 1s cubic-bezier(.19, 1, .22, 1);
}

[data-blur-in].is-visible {
  filter: blur(0px);
  opacity: 1;
}

/* --- Directional Reveals ------------------------------------------ */
[data-reveal-left] {
  opacity: 0;
  transform: translateX(-60px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.9s cubic-bezier(.19, 1, .22, 1),
    transform 0.9s cubic-bezier(.19, 1, .22, 1),
    filter 0.9s cubic-bezier(.19, 1, .22, 1);
}

[data-reveal-right] {
  opacity: 0;
  transform: translateX(60px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.9s cubic-bezier(.19, 1, .22, 1),
    transform 0.9s cubic-bezier(.19, 1, .22, 1),
    filter 0.9s cubic-bezier(.19, 1, .22, 1);
}

[data-reveal-left].is-visible,
[data-reveal-right].is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

/* --- Section Dot Navigator ---------------------------------------- */
.section-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 300ms cubic-bezier(.165, .84, .44, 1);
  position: relative;
}

.dark .section-nav__dot {
  background: rgba(255, 255, 255, 0.15);
}

.section-nav__dot.is-active {
  background: #17b0cf;
  box-shadow: 0 0 8px rgba(23, 176, 207, 0.4);
  transform: scale(1.4);
}

.section-nav__dot::before {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  color: inherit;
}

.section-nav__dot:hover::before {
  opacity: 1;
}

/* Hide dot nav on mobile */
@media (max-width: 767px) {
  .section-nav { display: none; }
}

/* --- Hero Scroll Fade --------------------------------------------- */
.hero-scroll-fade {
  transition: none;
  will-change: opacity, transform;
}

/* --- Selection color for dark mode -------------------------------- */
.dark ::selection {
  background: #17b0cf;
  color: white;
}
