/*
 * 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;
  }
}
