/* ============================================================
   MIXEDSKILLS — MAIN.CSS
   Inspired by helixearth.com floating pill navbar design
   ============================================================ */

/* ─── FLOATING PILL HEADER ──────────────────────────────── */

.ms-header {
  position: fixed;
  top: 3.5rem;               /* top-14 = 3.5rem (Same offset as helixearth) */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 350px;          /* Shrink layout by default to match helixearth responsive navbar widths */
  z-index: 1000;
  transition: max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1), top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 425px) { .ms-header { max-width: 380px; } }
@media (min-width: 500px) { .ms-header { max-width: 450px; } }
@media (min-width: 640px) { .ms-header { max-width: 540px; } }
@media (min-width: 768px) { .ms-header { max-width: 720px; } }
@media (min-width: 1024px) { .ms-header { max-width: 960px; } }
@media (min-width: 1280px) { .ms-header { max-width: 1140px; } }
@media (min-width: 1440px) { .ms-header { max-width: 1290px; } }

/* The pill container */
.ms-header__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0.625rem 0.625rem 1.5rem;
  border-radius: 9999px;
  background: rgba(24, 29, 38, 0.4); /* background-7 with opacity, matching helixearth */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.35s ease;
}

/* Scrolled state — denser & shifted up */
.ms-header.is-scrolled {
  top: 1rem;
}

.ms-header.is-scrolled .ms-header__pill {
  background: rgba(234, 236, 235, 0.1); /* light translucent tint in dark mode, matching helixearth scroll state */
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

/* ─── LOGO ──────────────────────────────────────────────── */

.ms-header__logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.ms-header__logo img {
  height: 32px;
  width: auto;
  display: block;
}

.ms-logo-text {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
}

.ms-logo-text em {
  font-style: normal;
  color: var(--ms-accent);
}

/* ─── DESKTOP NAV ───────────────────────────────────────── */

.ms-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* The <ul> from wp_nav_menu or hardcoded fallback */
.ms-nav__list,
.ms-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.ms-nav__list li,
.ms-nav ul li {
  position: relative;
}

/* Nav links — pill style like helixearth */
.ms-nav__list a,
.ms-nav ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.ms-nav__list a:hover,
.ms-nav ul li a:hover,
.ms-nav__list .current-menu-item > a,
.ms-nav ul li.current-menu-item > a,
.ms-nav ul li.current_page_item > a {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* Remove WordPress default sub-menu hiding that can cause issues */
.ms-nav ul ul {
  display: none;
}

/* ─── HEADER ACTIONS (CTA + Hamburger) ──────────────────── */

.ms-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ms-header__cta {
  white-space: nowrap;
}

.ms-btn__arrow {
  transition: transform 0.2s ease;
}

.ms-header__cta:hover .ms-btn__arrow {
  transform: translateX(3px);
}

/* ─── HAMBURGER BUTTON ──────────────────────────────────── */

.ms-hamburger {
  display: none;              /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.ms-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ms-hamburger__line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 9999px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.ms-hamburger.is-active .ms-hamburger__line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.ms-hamburger.is-active .ms-hamburger__line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ─── MOBILE FULL-SCREEN DRAWER ─────────────────────────── */

.ms-mobile-nav {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 990;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ms-mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.ms-mobile-nav__inner {
  text-align: center;
}

.ms-mobile-nav__list,
.ms-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ms-mobile-nav__list li,
.ms-mobile-nav ul li {
  margin-bottom: 1.5rem;
}

.ms-mobile-nav__list a,
.ms-mobile-nav ul li a {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.ms-mobile-nav__list a:hover,
.ms-mobile-nav ul li a:hover {
  color: var(--ms-accent);
}

.ms-mobile-nav__cta {
  margin-top: 3rem;
}

.ms-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 989;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ms-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ─── RESPONSIVE BREAKPOINTS ────────────────────────────── */

@media (max-width: 1200px) {
  .ms-nav {
    display: none;             /* hide desktop nav below 1200px */
  }
  .ms-header__cta {
    display: none;             /* hide CTA on mobile */
  }
  .ms-hamburger {
    display: flex;             /* show hamburger */
  }
}

@media (max-width: 768px) {
  .ms-header {
    top: 1.5rem;
    width: calc(100% - 1.5rem);
  }
  .ms-header__pill {
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  }
  .ms-logo-text {
    font-size: 1rem;
  }
}

/* ─── PAGE LOADER ───────────────────────────────────────── */

.ms-loader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.ms-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ms-loader__logo {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.ms-loader__logo em {
  font-style: normal;
  color: var(--ms-accent);
}

.ms-loader__bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.ms-loader__fill {
  height: 100%;
  width: 0%;
  background: var(--ms-accent);
  border-radius: 9999px;
  animation: ms-loader-fill 1.5s ease forwards;
}

@keyframes ms-loader-fill {
  0%   { width: 0%; }
  70%  { width: 85%; }
  100% { width: 100%; }
}

/* ─── SCROLL PROGRESS BAR ───────────────────────────────── */

.ms-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--ms-accent);
  z-index: 9998;
  transition: width 0.1s linear;
}

/* ─── CUSTOM CURSOR ─────────────────────────────────────── */

.ms-cursor,
.ms-cursor-follower {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9990;
  mix-blend-mode: difference;
}

.ms-cursor {
  width: 8px;
  height: 8px;
  background: #fff;
  transition: transform 0.1s ease;
}

.ms-cursor-follower {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.12s ease;
  background: transparent;
}

/* ─── HERO SECTION ──────────────────────────────────────── */

.ms-hero-section-new {
  min-height: 95vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10rem 0 6rem;
  background: var(--ms-bg-primary);
}

.ms-hero-container {
  width: 100%;
  max-width: var(--ms-container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  z-index: 10;
}

.ms-hero-content-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70vh;
  width: 100%;
}

.ms-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  max-width: 1000px;
  max-height: 1000px;
  background: radial-gradient(circle, rgba(131, 231, 238, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* Top Row Layout */
.ms-hero-top-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  margin-bottom: 4rem;
}

.ms-hero-brand-wrap {
  flex: 1;
}

.ms-hero-brand-title {
  font-family: var(--ms-font-primary);
  font-size: clamp(2.8rem, 8.5vw, 10.5rem);
  font-weight: 800;
  color: var(--ms-text-primary);
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-transform: uppercase;
  margin: 0;
}

.ms-hero-tm {
  font-size: 0.3em;
  vertical-align: super;
  font-weight: 600;
  margin-left: 8px;
  opacity: 0.7;
}

.ms-hero-services-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  text-align: right;
  margin-top: 1rem;
}

.ms-hero-service-item {
  font-family: var(--ms-font-primary);
  font-size: clamp(0.8rem, 1.2vw, 1.05rem);
  font-weight: 600;
  color: var(--ms-text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: color 0.3s ease;
}

.ms-hero-service-item:hover {
  color: var(--ms-accent);
}

/* Bottom Row Layout */
.ms-hero-bottom-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4rem;
  margin-top: auto;
  width: 100%;
}

.ms-hero-tagline-wrap {
  max-width: 720px;
  flex: 1;
}

.ms-hero-tagline {
  font-family: var(--ms-font-primary);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ms-text-primary);
  margin-bottom: 1.5rem;
  text-transform: none;
}

.ms-hero-tagline span {
  color: var(--ms-text-secondary);
}

.ms-hero-copyright {
  font-size: var(--ms-text-sm);
  color: var(--ms-text-muted);
  margin: 0;
}

/* Video Thumbnail Card Trigger */
.ms-hero-video-card-wrap {
  flex-shrink: 0;
}

.ms-hero-video-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  display: block;
}

.ms-hero-video-thumbnail {
  width: 280px;
  height: 160px;
  border-radius: var(--ms-radius-md);
  background: linear-gradient(135deg, #0b1420 0%, #181d26 100%);
  border: 1px solid var(--ms-border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.ms-hero-video-thumbnail:hover {
  transform: scale(1.02);
  border-color: var(--ms-border-hover);
}

.ms-hero-thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 21, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.ms-hero-video-thumbnail:hover .ms-hero-thumbnail-overlay {
  background: rgba(7, 14, 21, 0.6);
}

.ms-hero-play-icon {
  font-size: 1.5rem;
  color: var(--ms-accent);
}

.ms-hero-thumbnail-overlay span:last-child {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ms-text-primary);
}

.ms-hero-video-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: var(--ms-bg-primary);
  border: 1px solid var(--ms-border);
  padding: 0.25rem 0.5rem;
  border-radius: var(--ms-radius-sm);
  line-height: 1;
}

.ms-hero-video-badge span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ms-text-muted);
}

/* Explainer Video Modal */
.ms-video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ms-video-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.ms-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 21, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.ms-video-modal-container {
  position: relative;
  width: 90%;
  max-width: 960px;
  background: #0b1420;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  overflow: hidden;
  z-index: 10;
}

.ms-video-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--ms-text-primary);
  font-size: 2rem;
  cursor: pointer;
  z-index: 20;
  line-height: 1;
  transition: color 0.2s ease;
}

.ms-video-modal-close:hover {
  color: var(--ms-accent);
}

.ms-video-modal-iframe-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
}

.ms-video-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 3rem;
  text-align: center;
  background: #0b1420;
}

.ms-video-placeholder-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--ms-text-primary);
}

.ms-video-placeholder-content p {
  font-size: 1rem;
  color: var(--ms-text-secondary);
  max-width: 500px;
}

/* Scroll indicators & animations */
.ms-hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.ms-scroll-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ms-accent);
  margin: 0.5rem auto 0;
  animation: ms-scroll-bounce 2s ease-in-out infinite;
}

@keyframes ms-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .ms-hero-section-new {
    padding: 10rem 1.5rem 6rem;
  }
  .ms-hero-content-wrap {
    min-height: auto;
    gap: 3rem;
  }
  .ms-hero-top-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }
  .ms-hero-services-list {
    align-items: flex-start;
    text-align: left;
    margin-top: 0;
  }
  .ms-hero-bottom-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }
  .ms-hero-video-card-wrap {
    margin-top: 1rem;
  }
}

/* ─── FOOTER ────────────────────────────────────────────── */

.ms-footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 5rem;
}

/* Footer link styles */
.ms-menu-footer {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ms-menu-footer li {
  margin-bottom: 0.75rem;
}

.ms-menu-footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ms-menu-footer a:hover {
  color: #fff;
}

/* Newsletter */
.ms-newsletter-form {
  margin-top: 0.75rem;
}

.ms-newsletter-field {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem;
  transition: border-color 0.2s ease;
}

.ms-newsletter-field:focus-within {
  border-color: var(--ms-accent);
}

.ms-newsletter-input {
  flex: 1;
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
}

.ms-newsletter-btn {
  width: 40px;
  height: 40px;
  background: var(--ms-accent);
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ms-newsletter-btn:hover {
  background: var(--ms-accent-hover);
  transform: scale(1.05);
}

/* ─── BACK TO TOP ───────────────────────────────────────── */

.ms-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.ms-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ms-back-to-top:hover {
  background: var(--ms-accent);
  color: #000;
  border-color: var(--ms-accent);
}

/* ─── SECTION SPACING & CONTAINERS ─────────────────────── */

.ms-section {
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
}

.ms-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── BUTTONS ────────────────────────────────────────────── */

.ms-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  white-space: nowrap;
  text-transform: lowercase;
}

.ms-btn span {
  display: inline-block;
}

.ms-btn span::first-letter {
  text-transform: uppercase;
}

.ms-btn--primary {
  background: #fcfcfd;
  color: #1a1a1c !important;
  border-color: #dfe4eb;
  padding: 0.7rem 1.5rem;
  font-size: 0.875rem;
}

.ms-btn--primary:hover {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

.ms-btn--outline {
  background: transparent;
  color: rgba(252, 252, 252, 0.8);
  border-color: #2a333e; /* stroke-7 */
  padding: 0.7rem 1.5rem;
  font-size: 0.875rem;
}

.ms-btn--outline:hover {
  color: #fff;
  border-color: #303b49;
  background: rgba(255, 255, 255, 0.05);
}

.ms-btn--ghost {
  background: transparent;
  color: rgba(252, 252, 252, 0.6);
  padding: 0.5rem 0;
}

.ms-btn--ghost:hover {
  color: #fff;
}

.ms-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.ms-btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.ms-btn-icon,
.ms-btn__arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.ms-btn:hover .ms-btn-icon,
.ms-btn:hover .ms-btn__arrow {
  transform: translateX(4px);
}

/* ─── CARDS ──────────────────────────────────────────────── */

.ms-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ms-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.ms-card__body {
  padding: 1.75rem;
}

.ms-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ms-card:hover .ms-card__image {
  transform: scale(1.04);
}

/* ─── SECTION HEADERS ────────────────────────────────────── */

.ms-section-label {
  display: inline-block;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-accent);
  margin-bottom: 1rem;
}

.ms-section-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}

.ms-section-title span {
  color: var(--ms-accent);
}

.ms-section-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 0;
}

.ms-section-header--center {
  text-align: center;
  margin-bottom: 4rem;
}

.ms-section-header--center .ms-section-desc {
  margin: 0 auto;
}

/* ─── GRID LAYOUTS ───────────────────────────────────────── */

.ms-grid {
  display: grid;
  gap: 1.5rem;
}

.ms-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ms-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ms-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .ms-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ms-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ms-grid--2,
  .ms-grid--3,
  .ms-grid--4 { grid-template-columns: 1fr; }
}

/* ─── FLEX HELPERS ───────────────────────────────────────── */

.ms-flex { display: flex; flex-wrap: wrap; }
.ms-flex--center { align-items: center; }
.ms-flex--between { justify-content: space-between; }
.ms-flex--gap-md { gap: 1rem; }
.ms-flex--gap-sm { gap: 0.5rem; }
.ms-flex--wrap { flex-wrap: wrap; }

/* ─── TAGS ───────────────────────────────────────────────── */

.ms-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
}

.ms-tag--accent {
  background: rgba(252, 252, 252, 0.1);
  color: var(--ms-accent);
  border: 1px solid rgba(252, 252, 252, 0.2);
}

.ms-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ms-accent);
  animation: ms-pulse 2s ease-in-out infinite;
}

@keyframes ms-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─── TEXT UTILITIES ─────────────────────────────────────── */

.ms-text-center { text-align: center; }
.ms-text-secondary { color: rgba(255, 255, 255, 0.6); }
.ms-text-accent { color: var(--ms-accent); }
.ms-text-muted { color: rgba(255, 255, 255, 0.35); }

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */

[data-ms-animate],
[data-ms-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-ms-animate].is-visible,
[data-ms-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-ms-delay="100"] { transition-delay: 0.1s; }
[data-ms-delay="200"] { transition-delay: 0.2s; }
[data-ms-delay="300"] { transition-delay: 0.3s; }
[data-ms-delay="400"] { transition-delay: 0.4s; }
[data-ms-delay="500"] { transition-delay: 0.5s; }
[data-ms-delay="650"] { transition-delay: 0.65s; }
[data-ms-delay="900"] { transition-delay: 0.9s; }

/* ─── NOISE OVERLAY ──────────────────────────────────────── */

.ms-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.ms-noise { position: relative; }
.ms-noise > * { position: relative; z-index: 1; }

/* ─── BG HELPERS ─────────────────────────────────────────── */

.bg-secondary { background: #0f0f0f; }

/* ─── POST CONTENT ───────────────────────────────────────── */

.ms-post-content p { margin-bottom: 1.5rem; color: rgba(255,255,255,0.7); }
.ms-post-content h2,
.ms-post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}
.ms-post-content ul,
.ms-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: rgba(255,255,255,0.6);
}
.ms-post-content li { margin-bottom: 0.4rem; }

/* ─── COMMENTS ───────────────────────────────────────────── */

.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 0;
}
.comment-meta { margin-bottom: 0.75rem; font-size: 0.875rem; }
.comment-content { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.6; }
.reply a { color: var(--ms-accent); font-size: 0.75rem; font-weight: 600; }
.comment-respond {
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1.25rem;
  padding: 2rem;
  margin-top: 3rem;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  color: #fff;
  margin-bottom: 1rem;
  font-family: inherit;
}
.comment-form .submit {
  background: var(--ms-accent) !important;
  color: #000 !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.2s ease !important;
}
.comment-form .submit:hover {
  background: var(--ms-accent-hover) !important;
  transform: scale(1.02) !important;
}

/* ─── SPACING UTILITIES ──────────────────────────────────── */

.mb-4  { margin-bottom: 1rem !important; }
.mb-6  { margin-bottom: 1.5rem !important; }
.mb-8  { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-12 { margin-bottom: 3rem !important; }
.mb-16 { margin-bottom: 4rem !important; }
.mb-0  { margin-bottom: 0 !important; }
.mt-2  { margin-top: 0.5rem !important; }
.mt-4  { margin-top: 1rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.py-8  { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.pb-16 { padding-bottom: 4rem !important; }
.pt-40 { padding-top: 10rem !important; }
.gap-6  { gap: 1.5rem !important; }
.gap-8  { gap: 2rem !important; }
.gap-12 { gap: 3rem !important; }
.h-full { height: 100% !important; }
.w-full { width: 100% !important; }
.max-w-xl { max-width: 36rem !important; }
.overflow-hidden { overflow: hidden !important; }
.block { display: block !important; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.border-b { border-bottom: 1px solid rgba(255,255,255,0.08) !important; }
.border-t { border-top: 1px solid rgba(255,255,255,0.08) !important; }
