/* ══════════════════════════════════════════════════════════════
 * Sampingan.io Coming Soon — Section 1 & Section 2 Motion Styles
 * Inspired by Loopsii.com Section 1 (Hero Kinetic Mosaic) &
 * Section 2 (Dark Distraction Showcase), tailored 100% to
 * Sampingan's official brand palette & Coming Soon waitlist.
 * ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
 * SECTION 1: EDITORIAL HERO + INTERACTIVE GEOMETRIC MOSAIC
 * ══════════════════════════════════════════════════════════════ */
.lp-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  background-color: var(--hero-canvas);
  color: var(--foreground);
  overflow: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ── Top Editorial Header Row ─────────────────────────────────── */
.lp-hero-top {
  position: relative;
  z-index: 5;
  padding-top: clamp(2rem, 4.2vw, 3.5rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .lp-hero-top {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.92fr);
    gap: 2.5rem;
  }
}

.lp-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.lp-hero-heading {
  margin: 0;
  font-size: clamp(1.48rem, 6.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.036em;
  color: var(--foreground);
}

.lp-hero-lead {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 0.24em;
}

.lp-hero-line {
  display: inline-block;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .lp-hero-heading {
    font-size: clamp(3.35rem, 5.1vw, 4.65rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .lp-hero-lead {
    display: block;
  }

  .lp-hero-line {
    display: block;
  }
}

.lp-hero-rotator-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  column-gap: 0.24em;
}

.lp-rotator {
  position: relative;
  display: inline-grid;
  vertical-align: baseline;
  min-height: 1.08em;
}

.lp-rotator-word {
  grid-area: 1 / 1;
  display: inline-flex;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  user-select: none;
}

.lp-rotator-word.is-visible-word {
  visibility: visible;
}

.lp-rotator-word[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
  user-select: text;
}

.lp-rotator-char {
  display: inline-block;
  transform-origin: 50% 60%;
  will-change: transform, opacity;
  opacity: 0;
  transform: scale(0.62) rotate(var(--deg, 0deg));
  transition:
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease,
    color 0.45s ease;
}

.lp-rotator-char.is-space {
  width: 0.26em;
}

.lp-rotator-char.is-enter {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.lp-rotator-char.is-accent {
  color: var(--brand-blue);
}

.dark .lp-rotator-char.is-accent,
[data-theme="dark"] .lp-rotator-char.is-accent {
  color: var(--brand-green);
}

.lp-rotator-char.is-leave {
  opacity: 0;
  transform: scale(0.58) rotate(var(--leave-deg, 0deg));
  transition-duration: 0.34s;
}

/* ── Top Right: Editorial Subtitle + Adaptive Waitlist Box ─────── */
.lp-hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.lp-hero-copy {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(0.95rem, 1.35vw, 1.125rem);
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: -0.015em;
  color: color-mix(in srgb, var(--foreground) 88%, transparent);
}

/* Mobile-Only Hero Waitlist Pill CTA (Opens Slide-Up Bottom Sheet) */
.lp-mobile-waitlist-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  border: none;
  background-color: var(--brand-blue);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 26px -8px rgba(37, 99, 235, 0.48);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-mobile-waitlist-trigger:hover {
  background-color: #1d4ed8;
  box-shadow: 0 16px 30px -8px rgba(37, 99, 235, 0.55);
}

.lp-mobile-waitlist-trigger:active {
  transform: scale(0.98);
}

.lp-mobile-waitlist-trigger:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

.lp-mobile-waitlist-trigger svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lp-mobile-waitlist-trigger:hover svg {
  transform: translateX(3px);
}

@media (min-width: 1024px) {
  .lp-mobile-waitlist-trigger {
    display: none;
  }
}

/* Unified Waitlist Card (Desktop Inline Card — Dark Surface + Dithered ASCII BG) */
.lp-waitlist-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 32.5rem;
  padding: 1.2rem 1.25rem;
  border-radius: 1.5rem;
  background-color: var(--brand-midnight);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    0 18px 40px -14px rgba(11, 17, 32, 0.46),
    0 2px 6px rgba(11, 17, 32, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-waitlist-card > :not(.ascii-bg-layer),
.lp-sheet-panel > :not(.ascii-bg-layer) {
  position: relative;
  z-index: 2;
}

/* Shared Dithered ASCII Canvas Background Layer */
.ascii-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 75% at 88% 12%, rgba(0, 241, 114, 0.12), transparent 62%),
    radial-gradient(ellipse 80% 70% at 12% 92%, rgba(37, 99, 235, 0.18), transparent 64%),
    var(--brand-midnight);
}

.ascii-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ascii-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 92% 84% at 48% 54%, rgba(11, 17, 32, 0.56) 0%, rgba(11, 17, 32, 0.24) 72%, rgba(11, 17, 32, 0.12) 100%);
}

.ascii-bg-layer-cta {
  background:
    radial-gradient(ellipse 75% 65% at 50% 0%, rgba(0, 241, 114, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 75% at 15% 88%, rgba(37, 99, 235, 0.22), transparent 62%),
    radial-gradient(ellipse 70% 75% at 88% 85%, rgba(0, 241, 114, 0.12), transparent 62%),
    var(--brand-midnight);
}

.ascii-bg-scrim-cta {
  background:
    radial-gradient(ellipse 78% 72% at 50% 50%, rgba(11, 17, 32, 0.68) 0%, rgba(11, 17, 32, 0.34) 68%, rgba(11, 17, 32, 0.18) 100%);
}

.lp-waitlist-card-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .lp-waitlist-card-desktop {
    display: flex;
  }
}

.dark .lp-waitlist-card,
[data-theme="dark"] .lp-waitlist-card {
  background-color: var(--card);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    0 18px 40px -14px rgba(0, 0, 0, 0.55);
}

.lp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lp-card-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #ffffff;
}

.lp-role-switcher {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.22rem;
  border-radius: 9999px;
  background-color: rgba(11, 17, 32, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.dark .lp-role-switcher,
[data-theme="dark"] .lp-role-switcher {
  background-color: rgba(11, 17, 32, 0.78);
  border-color: rgba(255, 255, 255, 0.14);
}

.lp-role-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.92rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lp-role-btn:hover {
  color: #ffffff;
}

.lp-role-btn[aria-pressed="true"] {
  background-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.lp-role-btn svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.lp-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .lp-input-row {
    flex-direction: row;
    align-items: center;
    padding: 0.28rem;
    border-radius: 9999px;
    background-color: rgba(11, 17, 32, 0.76);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  }

  .dark .lp-input-row,
  [data-theme="dark"] .lp-input-row {
    background-color: rgba(11, 17, 32, 0.82);
    border-color: rgba(255, 255, 255, 0.16);
  }

  .lp-input-row:focus-within {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: rgba(0, 241, 114, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 241, 114, 0.16);
  }

  .lp-input-row.has-error {
    border-color: rgba(248, 113, 113, 0.8);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
  }
}

.lp-input-wrap {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.lp-input-icon {
  position: absolute;
  left: 0.95rem;
  width: 0.95rem;
  height: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.lp-input {
  width: 100%;
  padding: 0.78rem 0.9rem 0.78rem 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(11, 17, 32, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dark .lp-input,
[data-theme="dark"] .lp-input {
  background-color: rgba(11, 17, 32, 0.82);
}

.lp-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.lp-input:focus {
  border-color: rgba(0, 241, 114, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 241, 114, 0.18);
}

.lp-input[aria-invalid="true"] {
  border-color: #f87171;
}

@media (min-width: 640px) {
  .lp-input {
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.62rem 0.75rem 0.62rem 2.5rem;
  }

  .dark .lp-input,
  [data-theme="dark"] .lp-input {
    background: transparent;
  }

  .lp-input:focus {
    border: none;
    box-shadow: none;
  }
}

.lp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.35rem;
  border-radius: 9999px;
  border: none;
  background-color: var(--brand-green);
  color: var(--brand-navy);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 640px) {
  .lp-submit {
    padding: 0.66rem 1.3rem;
  }
}

.lp-submit:hover:not(:disabled) {
  background-color: var(--brand-green-hover);
  transform: scale(1.02);
}

.lp-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.lp-submit svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.2s ease;
}

.lp-submit:hover:not(:disabled) .submit-arrow {
  transform: translateX(2px);
}

.lp-field-error {
  margin: 0;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fca5a5;
}

.lp-field-error:empty {
  display: none;
}

.lp-status-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.78rem 1.05rem;
  border-radius: 1rem;
  background-color: var(--brand-green);
  border: 1px solid var(--brand-green-hover);
  color: var(--brand-navy);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 12px 26px -10px rgba(0, 241, 114, 0.4);
}

.lp-status-box[hidden] {
  display: none;
}

.lp-status-box svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--brand-navy);
  flex-shrink: 0;
}

/* ── Mobile Slide-Up Waitlist Bottom Sheet ────────────────────── */
body.is-sheet-open {
  overflow-y: hidden;
}

.lp-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.lp-sheet[hidden] {
  display: none !important;
}

.lp-sheet-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(11, 17, 32, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lp-sheet.is-open .lp-sheet-backdrop {
  opacity: 1;
}

.lp-sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  min-height: 48vh;
  min-height: 48dvh;
  max-height: 86dvh;
  overflow-y: auto;
  padding: 0.75rem 1.4rem calc(2.75rem + env(safe-area-inset-bottom, 0px));
  border-radius: 1.85rem 1.85rem 0 0;
  background-color: var(--brand-midnight);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    0 -24px 56px -12px rgba(0, 0, 0, 0.58);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  outline: none;
  transform: translate3d(0, 100%, 0);
  will-change: transform;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .lp-sheet-panel,
[data-theme="dark"] .lp-sheet-panel {
  background-color: var(--card);
}

.lp-sheet.is-open .lp-sheet-panel {
  transform: translate3d(0, 0, 0);
}

.lp-sheet-panel.is-dragging {
  transition: none;
}

.lp-sheet-handle-area {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -0.35rem -1.4rem -0.35rem;
  padding: 0.65rem 0 0.5rem;
  touch-action: none;
  cursor: grab;
}

.lp-sheet-handle {
  width: 2.75rem;
  height: 0.28rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.26);
}

.lp-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.lp-sheet-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lp-sheet-panel .lp-card-title {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.lp-sheet-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.lp-sheet-panel .lp-role-switcher {
  padding: 0.28rem;
}

.lp-sheet-panel .lp-role-btn {
  padding: 0.62rem 1rem;
  font-size: 0.84rem;
}

.lp-sheet-panel .lp-input-row {
  gap: 0.8rem;
}

.lp-sheet-panel .lp-input {
  padding: 0.95rem 1rem 0.95rem 2.7rem;
  font-size: 0.9375rem;
}

.lp-sheet-panel .lp-input-icon {
  left: 1.05rem;
  width: 1.05rem;
  height: 1.05rem;
}

.lp-sheet-panel .lp-submit {
  padding: 0.95rem 1.5rem;
  font-size: 0.9375rem;
}

@media (max-width: 639px) {
  .lp-sheet-panel .lp-role-switcher {
    width: 100%;
  }

  .lp-sheet-panel .lp-role-btn {
    flex: 1 1 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-sheet-backdrop,
  .lp-sheet-panel {
    transition: none;
  }
}

/* ── Full-Width Top Blueprint Divider ─────────────────────────── */
.lp-top-divider {
  width: 100%;
  height: 1px;
  background-color: var(--bp-line);
  transform-origin: 0 50%;
}

/* ── Interactive Blueprint Mosaic Stage ───────────────────────── */
.lp-stage-outer {
  --stage-pt: clamp(2.5rem, 6.2vw, 5.5rem);
  --stage-pb: clamp(4rem, 7.5vw, 6.25rem);
  position: relative;
  width: 100%;
  padding-top: var(--stage-pt);
  padding-bottom: var(--stage-pb);
  overflow: clip;
}

.lp-stage-frame {
  --hero-cols: 11;
  --cell: 88px;
  position: relative;
  width: calc(100% - 2rem);
  max-width: 1056px;
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .lp-stage-frame {
    --hero-cols: 7;
    width: calc(100% - 2.5rem);
  }
}

@media (min-width: 1024px) {
  .lp-stage-frame {
    width: min(82vw, 1060px);
  }
}

/* Vertical Architectural Blueprint Lines (start cleanly AT the top divider) */
.lp-bp-vline {
  position: absolute;
  top: calc(-1 * var(--stage-pt));
  bottom: calc(-1 * var(--stage-pb));
  width: 1px;
  background-color: var(--bp-line);
  pointer-events: none;
  z-index: 4;
}

.lp-bp-vline-left { left: 0; }
.lp-bp-vline-right { right: 0; }

/* Horizontal Architectural Blueprint Lines (span full viewport width) */
.lp-bp-hline {
  position: absolute;
  left: -100vw;
  right: -100vw;
  height: 1px;
  background-color: var(--bp-line);
  pointer-events: none;
  z-index: 4;
}

.lp-bp-hline-top { top: 0; }
.lp-bp-hline-bottom { bottom: 0; }

/* 4 Crisp Corner Pins (Squares at Intersections) */
.lp-bp-pin {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--bp-pin);
  z-index: 6;
  pointer-events: none;
}

.lp-bp-pin-tl { top: -3px; left: -3px; }
.lp-bp-pin-tr { top: -3px; right: -3px; }
.lp-bp-pin-bl { bottom: -3px; left: -3px; }
.lp-bp-pin-br { bottom: -3px; right: -3px; }

/* 4 Technical Corner Labels (Matches Loopsii EDITS / TIME MANAGEMENT / INVOICES / COMMUNICATION) */
.lp-corner-label {
  position: absolute;
  z-index: 6;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--foreground) 78%, transparent);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.lp-label-tl {
  bottom: calc(100% + 6px);
  right: calc(100% + 8px);
}

.lp-label-tr {
  bottom: calc(100% + 6px);
  left: calc(100% + 8px);
}

.lp-label-bl {
  top: calc(100% + 6px);
  right: calc(100% + 8px);
}

.lp-label-br {
  top: calc(100% + 6px);
  left: calc(100% + 8px);
}

@media (max-width: 1180px) {
  .lp-label-tl { right: auto; left: 8px; }
  .lp-label-tr { left: auto; right: 8px; }
  .lp-label-bl { right: auto; left: 8px; }
  .lp-label-br { left: auto; right: 8px; }
}

@media (max-width: 639px) {
  .lp-corner-label {
    font-size: 0.5625rem;
  }
}

/* Faint Blueprint Sub-Grid Underneath Mosaic (Matches Loopsii Screenshot 1 bottom grid) */
.lp-subgrid {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 11rem;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to right, var(--bp-subgrid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bp-subgrid) 1px, transparent 1px);
  background-size: calc(var(--cell) / 2) calc(var(--cell) / 2);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
}

/* ── Kinetic 11×3 Geometric Mosaic Grid ───────────────────────── */
.lp-mosaic-clip {
  position: relative;
  z-index: 3;
  width: 100%;
  height: calc(var(--cell) * 3);
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.lp-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(15, var(--cell));
  grid-template-rows: repeat(3, var(--cell));
  width: calc(15 * var(--cell));
  height: calc(3 * var(--cell));
  flex: 0 0 auto;
}

.lp-cell {
  position: relative;
  width: var(--cell);
  height: var(--cell);
  transform: translate3d(
    calc(100% * (var(--col, 0) - var(--col0, 0))),
    calc(100% * (var(--row, 0) - var(--row0, 0))),
    0
  );
  will-change: transform;
  cursor: pointer;
}

.lp-cell-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(var(--reveal-s, 0)) rotate(calc(var(--rot, 0) * 1deg));
  transition: transform 0.62s cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: transform;
}

.lp-cell-svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(var(--spot-s, 1));
  will-change: transform;
  transition: filter 0.25s ease;
}

.lp-cell:hover .lp-cell-svg {
  filter: brightness(1.06);
}

/* Sampingan Center Anchor Circle */
.lp-cell-center {
  z-index: 5;
  cursor: pointer;
}

.lp-center-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(0, 241, 114, 0.35);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.lp-cell-center:hover .lp-center-circle {
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(0, 241, 114, 0.45);
}

.lp-center-mark {
  width: 44%;
  height: 44%;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-cell-center:hover .lp-center-mark {
  transform: rotate(180deg) scale(1.05);
}

.lp-cell-center.is-pulsing .lp-center-mark {
  transform: rotate(360deg) scale(1.12);
}

.lp-cell-center.is-traveling .lp-center-circle {
  opacity: 0;
  transition: none;
}

/* Floating Scroll-Travel Sampingan Emblem (descends & gets swallowed by Section 2) */
.lp-travel-orb {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 8;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  will-change: transform, opacity;
}

.lp-travel-orb .lp-center-circle {
  box-shadow:
    0 16px 36px -6px rgba(0, 241, 114, 0.34),
    0 10px 22px -8px rgba(15, 23, 42, 0.28);
  transition: none;
}

.lp-travel-orb .lp-center-mark {
  transition: none;
  will-change: transform;
}

/* Shape Color Classes (100% Sampingan Palette) */
.shape-blue { fill: var(--shape-blue); }
.shape-green { fill: var(--shape-green); }
.shape-navy { fill: var(--shape-navy); }
.shape-violet { fill: var(--shape-violet); }
.shape-sky { fill: var(--shape-sky); }
.shape-mint { fill: var(--shape-mint); }
.shape-slate { fill: var(--shape-slate); }

/* ══════════════════════════════════════════════════════════════
 * SECTION 2: DARK DISTRACTION / PROBLEM SHOWCASE
 * Inspired by Loopsii.com Screenshot 2 — Scroll-linked Expansion
 * ══════════════════════════════════════════════════════════════ */
.lp-distraction {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 230vh;
  background-color: transparent;
  overflow: clip;
}

@media (max-width: 767px) {
  .lp-distraction {
    height: 175vh;
  }
}

.lp-distraction-sticky {
  --intro: 0;
  --leave: 0;
  position: sticky;
  top: 4rem; /* sits cleanly right below our 64px Sampingan Navbar */
  height: calc(100vh - 4rem);
  min-height: 540px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b1120;
  color: #f8fafc;
  transform: scale(calc(0.92 + 0.08 * var(--intro) - 0.07 * var(--leave)));
  border-radius: calc(28px * (1 - var(--intro) + var(--leave)));
  will-change: transform, border-radius;
}

@media (max-width: 639px) {
  .lp-distraction-sticky {
    transform: none;
    border-radius: 0;
  }
}

/* Atmospheric Blurred Dark Photo Backdrop (Matches Screenshot 2) */
.lp-distraction-bg {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  background-image: url("../img/hero-bg.webp");
  background-position: center 35%;
  background-size: cover;
  filter: blur(34px) saturate(0.45) brightness(0.42) contrast(1.12);
  transform: scale(1.12);
}

.lp-distraction-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(15, 23, 42, 0.35) 0%, rgba(11, 17, 32, 0.82) 72%),
    radial-gradient(ellipse at 18% 18%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(ellipse at 82% 82%, rgba(0, 241, 114, 0.1), transparent 55%);
}

/* Expanding Architectural Frame + Headlines */
.lp-dist-stage {
  position: relative;
  z-index: 5;
  width: min(92vw, 1220px);
  height: min(72vh, 560px);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 767px) {
  .lp-dist-stage {
    width: calc(100% - 1.5rem);
    height: auto;
    min-height: 82%;
    padding: 1.5rem 1rem;
    gap: 1.25rem;
  }
}

/* Expanding Architectural Grid Lines & 4 White Corner Pins */
.lp-dist-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lp-dist-line-t,
.lp-dist-line-b {
  position: absolute;
  left: -50vw;
  right: -50vw;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.22);
  will-change: transform;
}

.lp-dist-line-t { top: 0; }
.lp-dist-line-b { bottom: 0; }

.lp-dist-line-l,
.lp-dist-line-r {
  position: absolute;
  top: -50vh;
  bottom: -50vh;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.22);
  will-change: transform;
}

.lp-dist-line-l { left: 0; }
.lp-dist-line-r { right: 0; }

.lp-dist-pin {
  position: absolute;
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  will-change: transform;
}

.lp-dist-pin-tl { top: -3.5px; left: -3.5px; }
.lp-dist-pin-tr { top: -3.5px; right: -3.5px; }
.lp-dist-pin-bl { bottom: -3.5px; left: -3.5px; }
.lp-dist-pin-br { bottom: -3.5px; right: -3.5px; }

/* Headlines (Top-Left & Bottom-Right) */
.lp-dist-headline {
  margin: 0;
  position: relative;
  z-index: 6;
  font-size: clamp(1.65rem, 3.6vw, 3.15rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f8fafc;
  will-change: transform;
}

.lp-dist-headline-tl {
  align-self: flex-start;
  max-width: 12ch;
  text-align: left;
}

.lp-dist-headline-br {
  align-self: flex-end;
  max-width: 13ch;
  text-align: right;
}

@media (max-width: 767px) {
  .lp-dist-headline {
    font-size: clamp(1.45rem, 6.2vw, 2rem);
  }
}

/* Center Floating Pill Cluster + Giant Expanding Parentheses */
.lp-dist-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: min(86vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .lp-dist-center {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin: 0.5rem auto;
  }
}

.lp-parens-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
  z-index: 9;
}

@media (max-width: 767px) {
  .lp-parens-layer {
    display: none;
  }
}

.lp-paren {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
  user-select: none;
  will-change: transform;
}

.lp-dist-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 520px;
}

@media (min-width: 768px) {
  .lp-dist-tags {
    gap: 0.55rem 0.65rem;
  }
}

.lp-pill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.55rem;
  padding: 0 1.2rem;
  border-radius: 9999px;
  background-color: #f8fafc;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.85);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  will-change: transform, opacity;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-pill-tag:hover {
  border-color: var(--brand-green);
  box-shadow: 0 8px 24px rgba(0, 241, 114, 0.22);
}

@media (max-width: 767px) {
  .lp-pill-tag {
    height: 2rem;
    padding: 0 0.85rem;
    font-size: 0.75rem;
  }
}

/* Reduced Motion Accessibility Fallback */
@media (prefers-reduced-motion: reduce) {
  .lp-rotator-char {
    transition: none;
  }
  .lp-cell-inner {
    --reveal-s: 1;
    transition: none;
  }
  .lp-distraction {
    height: auto;
  }
  .lp-distraction-sticky {
    position: relative;
    top: 0;
    height: auto;
    padding: 4rem 0;
    transform: none;
    border-radius: 0;
  }
}
