﻿/*
 * Prevent horizontal scroll on the about/services-technology pages.
 * overflow: clip on html is stricter than hidden — it prevents
 * any overflowing child from contributing to the document scroll area.
 * Limited to tablet/mobile to avoid affecting desktop layouts.
 */
@media (max-width: 1024px) {
  html {
    overflow-x: clip;
  }
}

/*
 * about.css  v1.0.0
 * About page â€” "How We Think" 3D memory carousel + layout overrides.
 * Depends on: services-technology-css, blog-css, starlight-missions-css
 * (approach, stats, hero, slm-cta classes all inherited from those files)
 */

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   "HOW WE THINK" SECTION â€” two-column layout
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.s2-think-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
  padding: 40px 20px;
}

/* About section glass mode switch (ON/OFF), aligned with services-template behavior. */
.about-section--glass {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--slm-border);
  border-bottom: 1px solid var(--slm-border);
}

.about-section--solid {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-top: 0;
  border-bottom: 0;
}

.about-section--glass .technologies-card,
.about-section--glass .technologies-security-card,
.about-section--glass .slm-stats__card,
.about-section--glass .slm-cta__card,
.about-section--glass .lead-card,
.about-section--glass .s2-community__block {
  border-color: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.about-section--solid .technologies-card,
.about-section--solid .technologies-security-card,
.about-section--solid .slm-cta__card,
.about-section--solid .lead-card,
.about-section--solid .s2-community__block {
  background: var(--services-card-bg) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.about-section--solid .slm-stats__card {
  border-color: rgba(255, 255, 255, 0.08) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.about-section--solid .technologies-card::before,
.about-section--solid .technologies-card-featured::before {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.s2-think-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* LEFT: intro text */
.s2-think-intro {
  padding: 3rem 2rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 2;
}

.s2-think-intro .approach-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slm-primary, #f69320);
  border: 1px solid rgba(246, 147, 32, 0.35);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  background: rgba(246, 147, 32, 0.08);
  width: fit-content;
}

.s2-think-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}

.s2-think-title span {
  color: var(--slm-primary, #f69320);
}

.s2-think-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  max-width: 280px;
}

.s2-think-description strong,
.s2-think-description b {
  color: var(--slm-primary, #f69320);
  font-weight: 600;
}

/* RIGHT: carousel takes remaining space */
.s2-think-carousel-wrap {
  flex: 1;
  min-width: 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   S2 MEMORY CAROUSEL  (extracted from inline Twig)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.s2-memory-carousel {
  --primary: #f69320;
  --secondary: #00e5ff;
  --accent: #f69320;
  --bg: #050510;
  --cardW: 240px;
  --cardH: 380px;
  --radius: 400px;
  --control-size: 48px;
  --controls-bottom: 16px;

  position: relative;
  width: 100%;
  min-height: 760px;
  display: grid;
  place-items: center;
  overflow: visible !important;
}

.s2-memory-carousel .s2-cosmos-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.s2-memory-carousel .s2-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 25% 25%, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 50% 50%, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 75% 75%, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 100% 100%, #fff, rgba(0, 0, 0, 0));
  background-size:
    200px 200px,
    300px 300px,
    400px 400px,
    600px 600px;
  background-repeat: repeat;
  animation: s2Twinkle 10s linear infinite;
  opacity: 0.65;
}

@keyframes s2Twinkle {
  0% {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0;
  }
  100% {
    background-position:
      200px 200px,
      300px 300px,
      400px 400px,
      600px 600px;
  }
}

.s2-memory-carousel .s2-carousel-stage {
  position: relative;
  width: 100%;
  height: 720px;
  perspective: 1200px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  touch-action: none;
  padding-bottom: 72px;
  overflow: visible !important;
}

.s2-memory-carousel .s2-carousel {
  position: relative;
  width: var(--radius);
  height: var(--radius);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

/* card shell */
.s2-memory-carousel .s2-card {
  position: absolute;
  width: var(--cardW);
  height: var(--cardH);
  left: 50%;
  top: 50%;
  margin-left: calc(var(--cardW) / -2);
  margin-top: calc(var(--cardH) / -2);
  transform-style: preserve-3d;
  cursor: pointer;
}

.s2-memory-carousel .s2-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.s2-memory-carousel .s2-card:hover .s2-card-inner {
  transform: translateZ(20px);
}
.s2-memory-carousel .s2-card.is-flipped .s2-card-inner {
  transform: rotateY(180deg);
}

.s2-memory-carousel .s2-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.s2-memory-carousel .s2-front {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 60, 0.8),
    rgba(20, 20, 40, 0.9)
  );
  border: 1px solid rgba(148, 163, 184, 0.4);
  transition: border-color 0.3s ease;
}

.s2-memory-carousel .s2-card:hover .s2-front {
  border-color: rgba(248, 250, 252, 0.8);
}

.s2-memory-carousel .s2-back {
  background: linear-gradient(
    135deg,
    rgba(20, 20, 40, 0.9),
    rgba(30, 30, 60, 0.8)
  );
  border: 1px solid rgba(0, 229, 255, 0.3);
  transform: rotateY(180deg);
}

.s2-memory-carousel .s2-back .s2-card-content {
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto; /* title | text (bounded) | coords (always visible) */
  gap: 10px;
}

.s2-memory-carousel .s2-back .s2-title {
  margin: 0;
}

.s2-memory-carousel .s2-card-content {
  padding: 20px;
  height: 90%;
  display: flex;
  flex-direction: column;
  position: relative;
  color: #fff;
}

.s2-memory-carousel .s2-meta {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 10px;
  text-shadow: 0 0 5px rgba(246, 147, 32, 0.7);
  letter-spacing: 0.5px;
}

.s2-memory-carousel .s2-title {
  font-size: 1.5rem;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 15px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.s2-memory-carousel .s2-image {
  width: 100%;
  height: 150px;
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.s2-memory-carousel .s2-image i {
  font-size: 4rem;
  color: var(--primary);
  text-shadow:
    0 0 10px rgba(246, 147, 32, 0.7),
    0 0 20px rgba(246, 147, 32, 0.5);
  z-index: 2;
  animation: s2Pulse 3s infinite alternate;
}

@keyframes s2Pulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.s2-memory-carousel .s2-glitch {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 65%,
    rgba(246, 147, 32, 0.3) 70%,
    transparent 75%
  );
  background-size: 200% 200%;
  animation: s2Glitch 3s linear infinite;
  z-index: 1;
}

@keyframes s2Glitch {
  0% {
    background-position: 0 0;
  }
  25% {
    background-position: 100% 0;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0 100%;
  }
  100% {
    background-position: 0 0;
  }
}

.s2-memory-carousel .s2-preview,
.s2-memory-carousel .s2-back p {
  font-size: clamp(0.75rem, 0.85vw, 0.9rem);
  color: #b8b8ff;
  line-height: 1.5;
  margin: 0;
  min-height: 0; /* allow grid 1fr row to constrain this item */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.s2-memory-carousel .s2-coords {
  font-size: 0.8rem;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.s2-memory-carousel .s2-time {
  color: var(--accent);
}

.s2-memory-carousel .s2-glow {
  position: absolute;
  inset: 0;
  border-radius: 15px;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 104, 222, 0.12),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.s2-memory-carousel .s2-card:hover .s2-glow {
  opacity: 1;
}

/* Controls */
.s2-memory-carousel .s2-controls {
  position: absolute;
  left: 50%;
  bottom: var(--controls-bottom);
  transform: translateX(-50%);
  display: flex;
  gap: 64px;
  z-index: 10;
  pointer-events: auto;
}

.s2-memory-carousel .homepage__btn {
  height: var(--control-size);
  min-width: var(--control-size);
  padding: 0;
  display: grid;
  place-items: center;
}

.s2-memory-carousel .homepage__btn i {
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

@media (max-width: 1280px) {
  .s2-think-inner {
    grid-template-columns: 260px 1fr;
  }
  .s2-think-intro {
    padding: 2rem 1.5rem 2rem 1.5rem;
  }
}

@media (max-width: 1024px) {
  .s2-think-section {
    padding: 40px 16px;
  }
  .s2-think-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .s2-think-intro {
    padding: 2rem 1.5rem 2.5rem;
    align-items: center;
    text-align: center;
    /* Clear separator before carousel */
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 0;
  }
  .s2-think-description {
    max-width: 560px;
  }
  .s2-memory-carousel {
    --radius: 340px;
    min-height: 660px;
    --controls-bottom: 24px;
  }
  .s2-memory-carousel .s2-carousel-stage {
    height: 620px;
    padding-bottom: 80px;
  }
}

@media (max-width: 768px) {
  .s2-think-section {
    padding: 32px 12px;
  }
  .s2-think-intro {
    padding: 1.5rem 1rem 2rem;
  }
  .s2-memory-carousel {
    --cardW: 210px;
    --cardH: 340px;
    --radius: 260px;
    min-height: 520px;
    --control-size: 44px;
    --controls-bottom: 16px;
  }
  .s2-memory-carousel .s2-carousel-stage {
    height: 480px;
    padding-bottom: 80px;
  }
  .s2-memory-carousel .s2-controls {
    gap: 24px;
  }
  .s2-memory-carousel .s2-title {
    font-size: 1.2rem;
    line-height: 1.25;
  }
  .s2-memory-carousel .s2-preview,
  .s2-memory-carousel .s2-back p {
    font-size: 0.82rem;
    -webkit-line-clamp: 5;
  }
  .s2-memory-carousel .s2-image {
    height: 110px;
  }
}

@media (max-width: 576px) {
  .s2-think-intro {
    padding: 1.25rem 0.75rem 1.75rem;
  }
  .s2-think-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.25;
  }
  .s2-memory-carousel .s2-preview,
  .s2-memory-carousel .s2-back p {
    font-size: 0.78rem;
    -webkit-line-clamp: 4;
  }
  .s2-memory-carousel {
    --cardW: 180px;
    --cardH: 300px;
    --radius: 200px;
    min-height: 460px;
    --controls-bottom: 16px;
  }
  .s2-memory-carousel .s2-carousel-stage {
    height: 420px;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   S2 COMMUNITY / IMPACT SECTION
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.s2-community {
  position: relative;
  padding: 80px 16px;
  overflow: hidden;
  /* Glassmorphism ON â€” section-level frosted-glass layer */
  background: linear-gradient(
    180deg,
    rgba(5, 10, 30, 0.55) 0%,
    rgba(8, 15, 40, 0.72) 50%,
    rgba(5, 10, 30, 0.55) 100%
  );
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

/* Ambient glow behind the section */
.s2-community::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(246, 147, 32, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Glassmorphism OFF â€” solid opaque override */
.s2-community--solid {
  background: linear-gradient(180deg, #060c1e 0%, #0a1228 50%, #060c1e 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.s2-community--solid::after {
  display: none;
}

@media (min-width: 1024px) {
  .s2-community {
    padding: 104px 32px;
  }
}

.s2-community__inner {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.s2-community__header {
  text-align: left;
  max-width: 950px;
  margin-bottom: 40px;
}

.s2-community__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.2;
  color: #f9fafb;
  text-transform: uppercase;
}

.s2-community__subtitle {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.9);
}

/* â”€â”€ Chip / eyebrow â”€â”€ */
.s2-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.7);
  color: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin-bottom: 16px;
}

/* â”€â”€ Grid â”€â”€ */
.s2-community__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .s2-community__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* â”€â”€ Block / Card â”€â”€ */
.s2-community__block {
  position: relative;
  padding: 28px 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0 0, rgba(243, 146, 34, 0.22), transparent 55%),
    radial-gradient(
      circle at 100% 100%,
      rgba(96, 165, 250, 0.22),
      transparent 55%
    ),
    rgba(8, 15, 40, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

/* rainbow top border */
.s2-community__block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(135deg, #38bdf8, #a855f7, #f97316);
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  border: 2px solid transparent;
  opacity: 0.6;
  pointer-events: none;
}

.s2-community__block:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(56, 189, 248, 0.3);
  border-color: rgba(56, 189, 248, 0.4);
}

/* highlight variant */
.s2-community__block--highlight {
  background:
    radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.14),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(244, 114, 182, 0.14),
      transparent 55%
    ),
    linear-gradient(145deg, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.8));
}

/* â”€â”€ Glassmorphism OFF â”€â”€ */
.s2-community--solid .s2-community__block {
  background: rgba(10, 18, 36, 0.97);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.s2-community--solid .s2-community__block--highlight {
  background: rgba(8, 16, 32, 0.98);
}

/* â”€â”€ Block typography â”€â”€ */
.s2-community__block-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e5e7eb;
}

.s2-community__block-text {
  margin: 0 0 20px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(209, 213, 219, 0.88);
}

.s2-community__footnote {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.85);
}

/* â”€â”€ Logo cloud â”€â”€ */
.s2-logo-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.s2-logo-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.75);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.s2-logo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
}

.s2-logo-card__logo,
a.s2-logo-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: radial-gradient(
    circle at top left,
    rgba(56, 189, 248, 0.28),
    rgba(37, 99, 235, 0.18)
  );
  color: #f9fafb !important;
  -webkit-text-fill-color: #f9fafb !important;
  text-decoration: none;
  border: 0;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

a.s2-logo-card__logo:hover {
  background: linear-gradient(160deg, #f69320, #e4b50d);
  text-decoration: none;
}

.s2-logo-card__label {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.9);
}

/* â”€â”€ Badge list â”€â”€ */
.s2-badge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.s2-badge,
a.s2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  background: rgba(30, 64, 175, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(226, 232, 240, 0.95) !important;
  -webkit-text-fill-color: rgba(226, 232, 240, 0.95) !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

a.s2-badge:hover,
button.s2-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.85);
  background: linear-gradient(160deg, #f69320, #e4b50d);
  -webkit-text-fill-color: #0b1120 !important;
  color: #0b1120 !important;
  text-decoration: none;
  border-color: transparent;
}

/* â”€â”€ Pill groups â”€â”€ */
.s2-community__pill-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

@media (min-width: 700px) {
  .s2-community__pill-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.s2-community__pill-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s2-community__pill-heading {
  display: flex;
  align-items: flex-end;
  height: 48px;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.85);
}

.s2-pill,
a.s2-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: rgba(226, 232, 240, 0.95) !important;
  -webkit-text-fill-color: rgba(226, 232, 240, 0.95) !important;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.8);
  text-decoration: none;
  cursor: pointer;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

a.s2-pill:hover,
button.s2-pill:hover {
  background: linear-gradient(160deg, #f69320, #e4b50d);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.9);
  -webkit-text-fill-color: #0b1120 !important;
  color: #0b1120 !important;
  border-color: transparent;
  text-decoration: none;
}

/* Section typography alignment (same scale as services-technology). */
.s2-think-title,
.technologies-title,
.slm-stats__title,
.slm-stats__title-text {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.s2-think-description,
.technologies-description,
.slm-stats__subtitle,
.slm-section-subtitle {
  font-family: "Hind", sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .s2-think-title,
  .technologies-title,
  .slm-stats__title,
  .slm-stats__title-text {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

  .s2-think-description,
  .technologies-description,
  .slm-stats__subtitle,
  .slm-section-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .s2-think-title,
  .technologies-title,
  .slm-stats__title,
  .slm-stats__title-text {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .s2-think-description,
  .technologies-description,
  .slm-stats__subtitle,
  .slm-section-subtitle {
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

/* ===========================================================
   COMMUNITY V2 - Nebular Rotating Showcase
   =========================================================== */

.s2-nebula {
  --nb-primary: #f69320;
  --nb-cyan: #02d9ff;
  --nb-text: #e4eeff;
  --nb-text-muted: rgba(219, 230, 255, 0.66);
  --nb-border: rgba(2, 217, 255, 0.2);
  --nb-surface: rgba(12, 20, 46, 0.46);
  --nb-font: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  --nb-display-font: inherit;
  --nb-tab-font: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --nb-slide-height: 380px;

  position: relative;
  width: 100%;
  overflow: clip;
  padding: 72px 20px 72px;
  border-top: 1px solid var(--slm-border, rgba(148, 163, 184, 0.15));
  border-bottom: 1px solid var(--slm-border, rgba(148, 163, 184, 0.15));
  background:
    radial-gradient(
      80% 65% at 8% 45%,
      rgba(0, 123, 255, 0.14),
      transparent 62%
    ),
    radial-gradient(
      55% 45% at 85% 58%,
      rgba(246, 147, 32, 0.09),
      transparent 68%
    ),
    linear-gradient(
      180deg,
      rgba(5, 10, 30, 0.55) 0%,
      rgba(8, 15, 40, 0.72) 50%,
      rgba(5, 10, 30, 0.55) 100%
    );
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.s2-nebula--solid {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: linear-gradient(180deg, #060c1e 0%, #0a1228 50%, #060c1e 100%);
}

.s2-nebula__starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.s2-nebula__stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

.s2-nebula__stars--sm {
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 60% 75%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 85% 14%, rgba(255, 255, 255, 0.7), transparent);
  background-size:
    170px 170px,
    220px 220px,
    150px 150px;
  opacity: 0.6;
  animation: nb-stars-slow 55s linear infinite;
}

.s2-nebula__stars--md {
  background-image:
    radial-gradient(
      1.5px 1.5px at 30% 55%,
      rgba(2, 217, 255, 0.5),
      transparent
    ),
    radial-gradient(
      1.5px 1.5px at 75% 32%,
      rgba(246, 147, 32, 0.42),
      transparent
    );
  background-size:
    280px 280px,
    360px 360px;
  opacity: 0.45;
  animation: nb-stars-mid 85s linear infinite reverse;
}

.s2-nebula__stars--lg {
  background-image: radial-gradient(
    2px 2px at 50% 50%,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  background-size: 520px 520px;
  opacity: 0.25;
  animation: nb-stars-slow 110s linear infinite;
}

@keyframes nb-stars-slow {
  from {
    background-position:
      0 0,
      0 0,
      0 0;
  }
  to {
    background-position:
      170px 170px,
      220px 220px,
      150px 150px;
  }
}

@keyframes nb-stars-mid {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      280px 280px,
      360px 360px;
  }
}

.s2-nebula__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.52;
  pointer-events: none;
}

.s2-nebula__line {
  fill: none;
  stroke: rgba(2, 217, 255, 0.28);
  stroke-width: 0.8;
  stroke-dasharray: 8 7;
  animation: nb-lines 18s linear infinite;
}

.s2-nebula__line--alt {
  stroke: rgba(246, 147, 32, 0.28);
  stroke-dasharray: 6 8;
  animation-duration: 24s;
}

@keyframes nb-lines {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -220;
  }
}

.s2-nebula__node-dot {
  fill: var(--nb-cyan);
  animation: nb-dot 3.8s ease-in-out infinite alternate;
}

.s2-nebula__node-dot:nth-child(even) {
  fill: var(--nb-primary);
  animation-delay: -1.6s;
}

@keyframes nb-dot {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 0.9;
  }
}

.s2-nebula__inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
}

.s2-nebula__header {
  margin-bottom: 44px;
}

.s2-nebula-showcase {
  position: relative;
  padding-top: 62px;
}

/* Reset global orange-gradient link style inside nebula section */
.s2-nebula a {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: currentColor !important;
}

.s2-nebula-showcase__rings {
  position: absolute;
  inset: -34px;
  z-index: 0;
  border-radius: 32px;
  pointer-events: none;
  opacity: 0.32;
  background: none;
}

.s2-nebula-showcase__rings::before,
.s2-nebula-showcase__rings::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(2, 217, 255, 0.2);
  animation: nb-orbit 22s linear infinite;
}

.s2-nebula-showcase__rings::before {
  inset: 12% 10%;
}

.s2-nebula-showcase__rings::after {
  inset: 25% 20%;
  border-color: rgba(246, 147, 32, 0.22);
  animation-duration: 30s;
  animation-direction: reverse;
}

@keyframes nb-orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.s2-nebula-showcase__viewport {
  position: relative;
  z-index: 1;
  min-height: var(--nb-slide-height);
  height: var(--nb-slide-height);
  transition: height 0.45s ease;
}

.s2-nebula-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 26px 24px 18px;
  border-radius: 22px;
  background: var(--nb-surface);
  border: 1px solid rgba(148, 163, 184, 0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.98) rotateX(8deg);
  transition:
    opacity 0.85s ease,
    transform 1.05s cubic-bezier(0.19, 1, 0.22, 1),
    border-color 0.45s ease;
  overflow: hidden;
}

.s2-nebula-slide::before {
  content: "";
  position: absolute;
  inset: -25%;
  pointer-events: none;
  background: conic-gradient(
    from 180deg,
    rgba(2, 217, 255, 0),
    rgba(2, 217, 255, 0.2),
    rgba(246, 147, 32, 0.16),
    rgba(2, 217, 255, 0)
  );
  filter: blur(36px);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.s2-nebula-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1) rotateX(0);
}

.s2-nebula-slide.is-active::before {
  opacity: 0.56;
}

.s2-nebula-slide:hover {
  border-color: rgba(2, 217, 255, 0.42);
}

.s2-nebula-slide--highlight {
  border-color: rgba(246, 147, 32, 0.38);
}

.s2-nebula-slide__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.85) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  opacity: 0.045;
}

.s2-nebula-slide__topline,
.s2-nebula-slide__desc,
.s2-nebula-slide__layout,
.s2-nebula-slide__left,
.s2-nebula-slide__right,
.s2-nebula-slide__content,
.s2-nebula-slide__footnote {
  position: relative;
  z-index: 1;
}

.s2-nebula-slide__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  min-height: 0;
}

.s2-nebula-slide__left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
}

.s2-nebula-slide__right {
  min-width: 0;
  min-height: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.16);
  padding-left: 20px;
}

.s2-nebula-slide__label {
  margin: 0;
  font-family: var(--nb-font);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  color: var(--nb-cyan);
  text-transform: uppercase;
}

.s2-nebula-slide--highlight .s2-nebula-slide__label {
  color: var(--nb-primary);
}

.s2-nebula-slide__title {
  margin: 8px 0 0;
  font-family: var(--nb-display-font);
  font-size: clamp(1.7rem, 2.55vw, 2.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: transparent;
  background-image: linear-gradient(
    115deg,
    #ffffff 34%,
    #f5fbff 46%,
    #dff3ff 50%,
    #ffffff 57%,
    #ffffff 100%
  );
  background-size: 230% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: nb-title-shimmer 9.5s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

@keyframes nb-title-shimmer {
  0% {
    background-position: 110% 50%;
  }
  100% {
    background-position: -130% 50%;
  }
}

.s2-nebula-slide__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--nb-text-muted);
  max-width: 38ch;
}

.s2-nebula-slide__content {
  display: block;
  min-height: 0;
  overflow: visible;
  padding-right: 6px;
}

.s2-nebula-slide__content::-webkit-scrollbar {
  width: 7px;
}

.s2-nebula-slide__content::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(2, 217, 255, 0.48),
    rgba(246, 147, 32, 0.45)
  );
  border-radius: 999px;
}

.s2-nebula-list--logos {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  padding-top: 3px;
}

.s2-nebula-list--logos.s2-nebula-list--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.s2-nebula-item {
  border: 1px solid rgba(246, 147, 32, 0.28);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(246, 147, 32, 0.06);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.s2-nebula-item:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 217, 255, 0.52);
}

.s2-nebula-item__name {
  display: block;
  font-family: var(--nb-font);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--nb-primary);
}

.s2-nebula-item__name a {
  color: var(--nb-primary);
  text-decoration: none;
}

.s2-nebula-item__name a:hover,
.s2-nebula-item__name a:focus {
  color: var(--nb-cyan);
}

.s2-nebula-item__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: rgba(194, 207, 236, 0.64);
}

.s2-nebula-list--badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 3px;
}

.s2-nebula-list--badges.s2-nebula-list--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.s2-nebula-chip {
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(246, 147, 32, 0.32);
  background: rgba(246, 147, 32, 0.08);
  padding: 9px 12px;
  font-family: var(--nb-font);
  font-size: 0.74rem;
  color: var(--nb-primary);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.s2-nebula-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 217, 255, 0.52);
  background: rgba(246, 147, 32, 0.08);
  color: var(--nb-cyan);
}

.s2-nebula-chip a {
  color: inherit;
  text-decoration: none;
}

.s2-nebula-chip a:hover,
.s2-nebula-chip a:focus {
  color: inherit;
}

.s2-nebula-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.s2-nebula-groups.s2-nebula-groups--three .s2-nebula-group:last-child {
  grid-column: 1 / -1;
}

.s2-nebula-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(246, 147, 32, 0.26);
  background: rgba(246, 147, 32, 0.06);
}

.s2-nebula-group__title {
  font-family: "Hind", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.s2-nebula-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.s2-nebula-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(246, 147, 32, 0.38);
  background: rgba(246, 147, 32, 0.1);
  padding: 6px 12px;
  font-family: "Hind", sans-serif;
  font-size: 0.74rem;
  line-height: 1.2;
  color: var(--nb-primary);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.s2-nebula-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 217, 255, 0.6);
  background: rgba(2, 217, 255, 0.16);
  color: var(--nb-cyan);
}

.s2-nebula-pill a {
  font-family: "Hind", sans-serif;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
}

.s2-nebula-pill a:hover,
.s2-nebula-pill a:focus {
  color: inherit;
}

.s2-nebula-slide__footnote {
  margin: auto 0 0;
  font-family: "Hind", sans-serif;
  font-size: 0.66rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: rgba(177, 194, 226, 0.52);
}

.s2-nebula-showcase__controls {
  position: static;
  z-index: 2;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.s2-nebula-arrow {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  border: 1px solid rgba(2, 217, 255, 0.38);
  background: rgba(5, 18, 45, 0.76);
  color: var(--nb-cyan);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.s2-nebula-arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 217, 255, 0.72);
}

.s2-nebula-tabs {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  width: max-content;
  max-width: calc(100% - 24px);
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.s2-nebula-tabs::-webkit-scrollbar {
  display: none;
}

.s2-nebula-tab {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(217, 227, 250, 0.76);
  padding: 8px 16px;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.45s ease,
    color 0.45s ease,
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.s2-nebula-tab__text {
  position: relative;
  z-index: 1;
  font-family: var(--nb-tab-font);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.s2-nebula-tab__progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 217, 255, 0.2),
    rgba(246, 147, 32, 0.22)
  );
}

.s2-nebula-tab.is-active {
  color: #fff;
  border-color: rgba(2, 217, 255, 0.65);
  box-shadow: 0 6px 24px rgba(2, 217, 255, 0.2);
}

.s2-nebula-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(2, 217, 255, 0.42);
}

.s2-nebula-tab.is-active .s2-nebula-tab__progress {
  animation: nb-progress var(--nb-progress-duration, 8.4s)
    cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes nb-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .s2-nebula {
    padding-left: 0;
    padding-right: 0;
  }

  .s2-nebula__inner {
    width: 100%;
    max-width: none;
    padding-left: 28px;
    padding-right: 28px;
    box-sizing: border-box;
  }
}

@media (max-width: 900px) {
  .s2-nebula-slide__layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .s2-nebula-slide__right {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding-top: 14px;
  }

  .s2-nebula-list--logos.s2-nebula-list--split,
  .s2-nebula-list--badges.s2-nebula-list--split,
  .s2-nebula-groups {
    grid-template-columns: 1fr;
  }

  .s2-nebula-groups.s2-nebula-groups--three .s2-nebula-group:last-child {
    grid-column: auto;
  }

  .s2-nebula__lines {
    display: none;
  }
}

@media (max-width: 768px) {
  .s2-nebula {
    --nb-slide-height: 420px;
    padding: 32px 0 40px;
    overflow-x: clip;
  }

  .s2-nebula__inner {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding-left: 12px;
    padding-right: 18px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .s2-nebula__header,
  .s2-nebula-showcase,
  .s2-nebula-showcase__viewport,
  .s2-nebula-slide {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .s2-nebula__header {
    margin-bottom: 24px;
  }

  .s2-nebula-showcase {
    padding-top: 0;
  }

  .s2-nebula-showcase__viewport {
    overflow-x: clip;
  }

  .s2-nebula-showcase__controls {
    margin-top: 12px;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .s2-nebula-tabs {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    gap: 10px;
    overflow: visible;
  }

  .s2-nebula-slide__layout,
  .s2-nebula-slide__left,
  .s2-nebula-slide__right,
  .s2-nebula-slide__content,
  .s2-nebula-list,
  .s2-nebula-groups,
  .s2-nebula-group,
  .s2-nebula-group__chips {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .s2-nebula-tab {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 10px 12px;
  }

  .s2-nebula-tab__text {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .s2-nebula-slide {
    padding: 22px 16px 18px;
  }

  .s2-nebula-slide__title,
  .s2-nebula-slide__desc,
  .s2-nebula-slide__footnote {
    max-width: none;
  }

  .s2-nebula-slide__content {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .s2-nebula {
    --nb-slide-height: 420px;
    padding: 28px 0 34px;
    overflow-x: clip;
  }

  .s2-nebula__inner {
    padding-left: 10px;
    padding-right: 16px;
  }

  .s2-nebula-showcase {
    padding-top: 0;
  }

  .s2-nebula-slide {
    padding: 20px 14px 16px;
  }

  .s2-nebula-showcase__controls {
    align-items: stretch;
  }

  .s2-nebula-tabs {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  .s2-nebula-arrow {
    display: none;
  }
}

@media (max-width: 576px) {
  .s2-nebula {
    padding: 28px 10px 34px;
  }

  .s2-nebula-tab {
    padding: 9px 10px;
  }

  .s2-nebula-tab__text {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }
}
