/* ================================================================
   MixedSkills Theme — main.css v3.0
   HelixEarth EXACT design system
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');

/* ================================================================
   CSS CUSTOM PROPERTIES — HelixEarth exact values
   ================================================================ */
:root {
  --font-main:          "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Brand Colors (HelixEarth exact) ── */
  --color-secondary:         #1a1a1c;
  --color-accent:            #fcfcfc;
  --color-helix-blue:        #003e83;
  --color-helix-blue-shade:  #051d3b;
  --color-helix-blue-dark:   #0b1420;
  --color-helix-blue-dark-1: #09111a;
  --color-helix-blue-dark-2: #070e15;
  --color-ns-cyan:           #83e7ee;
  --color-ns-yellow:         #f9eb57;
  --color-ns-green:          #c6f56f;
  --color-ns-red:            #ffb9a2;
  --color-ns-linen:          #beab9a;

  /* ── Backgrounds ── */
  --bg-1:  #fcfcfd;
  --bg-3:  #f4f5f8;
  --bg-4:  #f0f2f6;
  --bg-5:  #13171e;
  --bg-6:  #0f1217;
  --bg-7:  #181d26;
  --bg-8:  #070b10;
  --bg-9:  #1f252f;

  /* ── Stroke ── */
  --stroke-1: #dfe4eb;
  --stroke-5: #1b232f;
  --stroke-6: #202731;
  --stroke-7: #2a333e;
  --stroke-8: #303b49;

  /* ── Type Scale (HelixEarth exact) ── */
  --text-h1:  4.25rem;  /* 68px */
  --text-h2:  3.25rem;  /* 52px */
  --text-h3:  2.5rem;   /* 40px */
  --text-h4:  2rem;     /* 32px */
  --text-h5:  1.5rem;   /* 24px */
  --text-h6:  1.25rem;  /* 20px */
  --text-tl1: 1rem;     /* 16px — tagline-1 */
  --text-tl2: 0.875rem; /* 14px — tagline-2 */
  --text-tl3: 0.75rem;  /* 12px — tagline-3 */

  /* ── Gradients ── */
  --grad-1:    linear-gradient(135deg, #a585ff 0%, #ffc2ad 100%);
  --grad-12:   radial-gradient(73.01% 80.77% at 19.23% 47.79%, #83e7ee 0%, rgba(134,79,254,0) 100%);
  --grad-helix-dark: linear-gradient(135deg, #0b1420 0%, #070e15 100%);

  /* ── Motion ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.4s;
  --duration-slow: 0.7s;
}

/* ================================================================
   BASE RESET
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  border: 0 solid;
  margin: 0;
  padding: 0;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-helix-blue-dark-2); /* #070e15 — exact HelixEarth */
  color: var(--color-accent);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-8); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #003e83, #83e7ee);
  border-radius: 4px;
}

/* ── SR Only ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
p {
  font-size: var(--text-tl2);
  line-height: 1.65;
  color: rgba(252,252,252,0.6);
}
@media (min-width: 640px) { p { font-size: var(--text-tl1); } }

/* ── Layout ── */
.main-container {
  width: 100%;
  max-width: 1290px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .main-container { padding-inline: 1.5rem; } }
@media (min-width: 1280px) { .main-container { padding-inline: 2rem; } }

/* ================================================================
   [data-ns-animate] — SCROLL REVEAL (HelixEarth exact)
   Initial: opacity 0, translateY 20px
   Triggered: opacity 1, translateY 0
   ================================================================ */
[data-ns-animate] {
  opacity: 0;
  transform: translateY(20px);
}
[data-ns-animate].ns-animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
[data-ns-animate][data-direction="up"].ns-animated    { transform: translateY(0); }
[data-ns-animate][data-direction="left"].ns-animated  { transform: translateX(0); }
[data-ns-animate][data-direction="right"].ns-animated { transform: translateX(0); }

/* ================================================================
   REVEAL TEXT — clip-path wipe (HelixEarth exact)
   ================================================================ */
.reveal-text {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
}
.reveal-text.revealed {
  clip-path: inset(0 0% 0 0);
  transition: clip-path 0.9s var(--ease-out-expo);
}
.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }
.delay-600 { transition-delay: 0.6s !important; }
.delay-700 { transition-delay: 0.7s !important; }
.delay-800 { transition-delay: 0.8s !important; }

/* ================================================================
   HOVER TEXT EFFECT — gradient shimmer (HelixEarth exact)
   Used on hero brand name and service list items
   ================================================================ */
.hover-text-effect {
  background-image: linear-gradient(
    to right,
    var(--color-helix-blue) 20%,
    var(--color-ns-cyan) 40%,
    rgba(252,252,252,0.8) 51%,
    rgba(252,252,252,0.8) 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-position 0.5s ease;
}
.hover-text-effect:hover {
  background-position: 0% 0;
}

/* ================================================================
   FLOATING PILL NAVBAR — HelixEarth exact
   
   HelixEarth source classes:
   "header-two header-two-at-rest header-home fixed top-14 left-1/2 z-50
    mx-auto flex w-full max-w-[350px] -translate-x-1/2 items-center
    justify-between rounded-full px-2.5 py-2.5 backdrop-blur-[25px]
    max-md:!top-8 min-[425px]:max-w-[380px] min-[500px]:max-w-[450px]
    sm:max-w-[540px] md:max-w-[720px] lg:max-w-[960px] xl:max-w-[1140px]
    xl:py-0"
   ================================================================ */

#ms-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  pointer-events: none;
}

.ms-pill-nav {
  pointer-events: auto;
  position: fixed;
  top: 2rem;               /* max-md: top-8 = 32px */
  left: 0;
  right: 0;
  margin-inline: auto;     /* centering fix: immune to body overflow-x:hidden */
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 9999px;   /* rounded-full */
  padding: 0.625rem;       /* px-2.5 py-2.5 */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  width: calc(100% - 1rem);
  max-width: 350px;        /* mobile */
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    max-width 0.4s ease;
}

/* Responsive max-width (HelixEarth exact breakpoints) */
@media (min-width: 425px)  { .ms-pill-nav { max-width: 380px; } }
@media (min-width: 500px)  { .ms-pill-nav { max-width: 450px; } }
@media (min-width: 640px)  {
  .ms-pill-nav { max-width: 540px; top: 3.5rem; } /* sm: top-14 = 56px */
}
@media (min-width: 768px)  { .ms-pill-nav { max-width: 720px; } }
@media (min-width: 1024px) { .ms-pill-nav { max-width: 960px; } }
@media (min-width: 1280px) {
  .ms-pill-nav {
    max-width: 1140px;
    padding-block: 0; /* xl:py-0 */
  }
}
@media (min-width: 1440px) { .ms-pill-nav { max-width: 1290px; } }

/* Rest state — HelixEarth "header-two-at-rest" on home: light translucent */
.ms-pill-nav--rest {
  background-color: rgba(9, 17, 26, 0.4);
  border: 1px solid rgba(252,252,252,0.07);
}

/* Scroll state — more opaque */
.ms-pill-nav--scroll {
  background-color: rgba(9, 17, 26, 0.88);
  border: 1px solid rgba(252,252,252,0.1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(252,252,252,0.04);
}

/* ── Logo ── */
.ms-nav-brand { flex-shrink: 0; min-width: 0; }
.ms-nav-brand__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.ms-nav-brand__text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.04em;
  white-space: nowrap;
  line-height: 1;
}
.ms-nav-brand__sup {
  font-size: 0.55em;
  font-weight: 600;
  color: rgba(252,252,252,0.55);
  vertical-align: super;
  letter-spacing: -0.06em;
}

/* ── Desktop Nav (xl only) — exact HelixEarth ── */
.ms-desktop-nav {
  display: none;
}
@media (min-width: 1280px) {
  .ms-desktop-nav { display: flex; align-items: center; }
}

.ms-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.ms-nav-item {
  position: relative;
  cursor: pointer;
  padding-block: 0.625rem; /* py-2.5 */
  list-style: none;
}

/* Nav link — HelixEarth exact:
   "hover:text-accent hover:border-accent text-tagline-1 text-accent/60
    group flex items-center gap-1 rounded-full border border-transparent
    px-4 py-2 font-normal transition-all duration-200" */
.ms-nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;            /* gap-1 */
  padding: 0.5rem 1rem;    /* px-4 py-2 */
  border-radius: 9999px;   /* rounded-full */
  border: 1px solid transparent;
  font-size: var(--text-tl1);
  font-weight: 400;        /* font-normal */
  color: rgba(252,252,252,0.6); /* text-accent/60 */
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ms-nav-link:hover,
.ms-nav-link--active {
  color: var(--color-accent);   /* hover:text-accent */
  border-color: var(--color-accent); /* hover:border-accent */
}

/* Nav arrow (dropdown indicator) */
.ms-nav-arrow {
  width: 14px; height: 14px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  display: block;
  opacity: 0.6;
}
.ms-nav-link:hover .ms-nav-arrow { opacity: 1; }
.ms-nav-item.is-open .ms-nav-arrow { transform: rotate(180deg); }

/* ── Dropdown menu ── */
.ms-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 50;
  min-width: 220px;
  padding: 0.75rem;
  background: rgba(9,17,26,0.97);
  border: 1px solid rgba(252,252,252,0.08);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  list-style: none;
}

.ms-nav-item:hover .ms-dropdown,
.ms-nav-item.is-open .ms-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ms-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  font-size: var(--text-tl1);
  color: rgba(252,252,252,0.65);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}
.ms-dropdown-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(252,252,252,0.04);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ms-dropdown-item:hover {
  color: rgba(252,252,252,1);
}
.ms-dropdown-item:hover::before { opacity: 1; }

/* ── CTA Button (nav) ── */
.ms-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: var(--text-tl1);
  font-weight: 500;
  font-family: var(--font-main);
  letter-spacing: -0.01em;
  /* btn-white-dark: white bg, dark text */
  background-color: var(--color-accent);
  color: var(--color-helix-blue-dark);
  border: 1px solid var(--color-accent);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.ms-btn-cta:hover {
  background-color: var(--color-helix-blue-dark-2);
  color: var(--color-accent);
  border-color: rgba(252,252,252,0.25);
}

/* Desktop CTA — hidden on mobile */
.ms-btn-cta--desktop { display: none; }
@media (min-width: 1280px) { .ms-btn-cta--desktop { display: inline-flex; } }

/* ── Hamburger — circular (HelixEarth exact) ── */
.ms-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ms-hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;                /* gap-[5px] */
  width: 3rem; height: 3rem; /* size-12 */
  border-radius: 9999px;   /* rounded-full */
  background-color: rgba(252,252,252,0.08); /* bg-background-6 approx */
  flex-shrink: 0;
  cursor: pointer;
}
.ms-hamburger:hover { background-color: rgba(252,252,252,0.12); }

.ms-hamburger__line {
  display: block;
  width: 1.5rem;    /* w-6 */
  height: 2px;      /* h-0.5 */
  background-color: var(--color-accent);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 1280px) { .ms-hamburger { display: none; } }

/* ── Sidebar Overlay ── */
.ms-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background-color: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ms-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Mobile Sidebar — right panel (HelixEarth exact)
   "fixed top-0 right-0 z-[9999] h-screen w-full translate-x-full
    rounded-l-3xl bg-white transition-all duration-300 sm:w-1/2" */
.ms-sidebar {
  position: fixed;
  top: 0; right: 0;
  z-index: 9999;
  height: 100vh;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-8); /* dark mode */
  transform: translateX(100%);
  border-radius: 1.5rem 0 0 1.5rem; /* rounded-l-3xl */
  transition: transform 0.3s var(--ease-out-expo);
  overflow: hidden;
}
@media (min-width: 640px) { .ms-sidebar { max-width: 50%; } }
@media (min-width: 1280px) { .ms-sidebar { display: none; } }

.ms-sidebar.open { transform: translateX(0); }

.ms-sidebar__inner {
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) { .ms-sidebar__inner { padding: 2rem; } }

.ms-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

.ms-sidebar__close {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(252,252,252,0.06);
  cursor: pointer;
}
.ms-sidebar__close:hover { background-color: rgba(252,252,252,0.1); }
.ms-sidebar__close span {
  position: absolute;
  display: block;
  width: 1rem; height: 2px;
  background-color: rgba(252,252,252,0.6);
  border-radius: 2px;
}
.ms-sidebar__close span:first-child  { transform: rotate(45deg); }
.ms-sidebar__close span:last-child   { transform: rotate(-45deg); }

.ms-sidebar__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 2rem;
}
.ms-sidebar__scroll::-webkit-scrollbar { display: none; }

.ms-sidebar__section-label {
  display: block;
  font-size: var(--text-tl2);
  color: rgba(252,252,252,0.35);
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ms-sidebar__menu { list-style: none; }

.ms-sidebar-link {
  display: block;
  padding: 0.625rem 0;
  font-size: var(--text-tl1);
  color: rgba(252,252,252,0.85);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ms-sidebar-link:hover { color: var(--color-ns-cyan); }

.ms-mobile-submenu { padding-left: 1rem; }
.ms-mobile-submenu .ms-sidebar-link { color: rgba(252,252,252,0.55); font-size: var(--text-tl2); }

/* ================================================================
   NOISE DRIFT — hero grain animation (HelixEarth exact: steps(4,end))
   ================================================================ */
@keyframes noise-drift {
  0%, 100% { transform: translate(-1.4%) translateY(10%); }
  25%       { transform: translate(2%)    translateY(-1%);  }
  50%       { transform: translate(-2%)   translateY(5%);   }
  75%       { transform: translate(1%)    translateY(8%);   }
}
.animate-noise-drift {
  animation: noise-drift 1.2s steps(4, end) infinite;
}

/* ================================================================
   HERO SECTION — HelixEarth exact 4-quadrant layout
   ================================================================ */
#hero {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Outer pad: creates the gap around the rounded card */
.ms-hero-outer {
  position: relative;
  width: 100%;
  padding: 1rem 0.5rem 2rem;
}
@media (min-width: 640px)  { .ms-hero-outer { padding: 3.5rem 0.75rem 2.5rem; } }
@media (min-width: 768px)  { .ms-hero-outer { padding: 1.5rem 0.5rem 3rem; } }
@media (min-width: 1024px) { .ms-hero-outer { padding: 1rem 1rem 3rem; } }

/* The dark rounded card */
.ms-hero-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-inline: auto;
  max-width: 2090px;
  min-height: min(90vh, 100dvh);
  background-color: var(--color-helix-blue-dark); /* #0b1420 */
}
@media (min-width: 640px)  { .ms-hero-inner { border-radius: 16px; } }
@media (min-width: 768px)  { .ms-hero-inner { border-radius: 20px; min-height: 95vh; } }

/* Background layers */
.ms-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.ms-hero-video-layer {
  position: absolute;
  inset: 0;
  filter: grayscale(0.6);
}
.ms-hero-video-layer video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Gradient fallback (when no video) */
.ms-hero-gradient-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(0,62,131,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(131,231,238,0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(0,62,131,0.2) 0%, transparent 60%),
    linear-gradient(135deg, #0b1420 0%, #070e15 100%);
}

/* Grain overlay */
.ms-hero-grain-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: rgba(0,0,0,0.08);
}

/* SVG noise pattern — HelixEarth uses noise.webp with opacity:0.05 */
.ms-hero-grain {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  opacity: 0.045;
  inset: -200%;
  width: 400%; height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ── Hero Content layout ── */
.ms-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: min(90vh, 100dvh);
  /* HelixEarth: "px-4 pt-26 sm:px-6 md:px-12 lg:px-24 py-10 sm:py-12 md:py-14 md:pt-28" */
  padding: 6.5rem 1rem 2.5rem;
}
@media (min-width: 640px)  { .ms-hero-content { padding: 6.5rem 1.5rem 3rem; } }
@media (min-width: 768px)  { .ms-hero-content { padding: 7rem 3rem 3.5rem; } }
@media (min-width: 1024px) { .ms-hero-content { padding: 7rem 6rem 3.5rem; } }

.ms-hero-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 1600px;
  margin-inline: auto;
  width: 100%;
}

/* ── TOP ROW: brand (left) + services (right) ── */
.ms-hero-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .ms-hero-top { gap: 2rem; margin-bottom: 2.5rem; } }
@media (min-width: 1024px) {
  .ms-hero-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3.5rem;
  }
}

/* Brand name — HelixEarth exact fluid font */
.ms-hero-brand {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: rgba(252,252,252,0.8);
  white-space: nowrap;
  font-size: clamp(1.125rem, min(17vw, 14dvh), 7.5rem);
  display: inline-block;
}
@media (min-width: 400px)  { .ms-hero-brand { font-size: clamp(1.2rem,  min(17.5vw,15dvh),  8.5rem); } }
@media (min-width: 640px)  { .ms-hero-brand { font-size: clamp(1.28rem, min(17.5vw,15.5dvh), 9.75rem); } }
@media (min-width: 768px)  { .ms-hero-brand { font-size: clamp(1.35rem, min(17.8vw,14dvh),  11rem); } }
@media (min-width: 1024px) { .ms-hero-brand { font-size: clamp(1.42rem, min(13.8vw,13dvh),  13.5rem); } }
@media (min-width: 1280px) { .ms-hero-brand { font-size: clamp(1.5rem,  15vw, 17rem); } }

/* TM superscript */
.ms-hero-reg {
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.1;
  color: rgba(252,252,252,0.8);
  white-space: nowrap;
  display: inline-block;
  vertical-align: super;
  margin-left: 2px;
  font-size: clamp(2.75rem, 9vw, 8rem);
}
@media (max-width: 1279px) {
  .ms-hero-reg { font-size: clamp(0.75rem, min(7.25vw, 9dvh), 6.75rem); }
}

/* Services list (right side) */
.ms-hero-services {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
  padding-top: 1.5rem;
  align-items: flex-end;
}
@media (min-width: 640px)  { .ms-hero-services { gap: 0.625rem; } }
@media (min-width: 1024px) { .ms-hero-services { gap: 0.75rem; } }

/* Service item — HelixEarth "hero-services" */
.ms-hero-service {
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-accent);
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  display: inline-block;
}

/* ── BOTTOM ROW: tagline (left) + video card (right) ── */
.ms-hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}
@media (min-width: 1024px) {
  .ms-hero-bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

/* Tagline — HelixEarth "hero-tagline" */
.ms-hero-tagline {
  font-size: clamp(1.125rem, 1.75vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-accent);
  max-width: 42rem;
}
.ms-hero-tagline .ms-muted { color: rgba(252,252,252,0.7); }

.ms-hero-copyright {
  font-size: clamp(0.75rem, 0.95vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: rgba(252,252,252,0.5);
  margin-top: 0.75rem;
}

/* ── Video card (340×200px, hidden below lg) ── */
.ms-hero-card-wrap { display: none; flex-shrink: 0; }
@media (min-width: 1024px) { .ms-hero-card-wrap { display: block; } }

.ms-hero-video-card {
  position: relative;
  width: 340px; height: 200px;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  /* HelixEarth: "border-6 border-accent" → approx 3px */
  border: 3px solid var(--color-accent);
  background-color: #000;
  transition: transform 0.2s ease;
  display: block;
  outline: none;
}
.ms-hero-video-card:active { transform: scale(0.98); }

.ms-hero-video-card video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.5);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.ms-hero-video-card:hover video {
  filter: grayscale(0.5) blur(4px);
}

/* Card hover label */
.ms-card-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(255,255,255,0.35);
  transition: opacity 0.3s ease;
  z-index: 10;
}
.ms-hero-video-card:hover .ms-card-hover-overlay { opacity: 1; }

.ms-card-hover-label {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-helix-blue-dark);
  letter-spacing: -0.04em;
}

/* Card badge */
.ms-card-badge {
  position: absolute;
  bottom: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  background-color: var(--color-accent);
  color: var(--color-helix-blue-dark);
  padding: 0.5rem;
  border-top-left-radius: 1rem;
  border: 3px solid var(--color-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ================================================================
   VIDEO MODAL
   ================================================================ */
.ms-video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.ms-video-modal.open { display: block; }

.ms-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#modal-content {
  position: fixed;
  background-color: #000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.08);
}

#modal-content video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.ms-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 20;
  padding: 0.5rem;
  border-radius: 9999px;
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ms-modal-close:hover { background: rgba(0,0,0,0.65); }
.ms-modal-close svg { transition: transform 0.3s ease; }
.ms-modal-close:hover svg { transform: rotate(90deg); }

/* ================================================================
   MARQUEE — logo strip
   ================================================================ */
.ms-marquee-section {
  overflow: hidden;
  padding-block: 1.25rem;
  border-top: 1px solid var(--stroke-6);
  border-bottom: 1px solid var(--stroke-6);
  background: rgba(7,11,16,0.6);
  position: relative;
}
.ms-marquee-section::before,
.ms-marquee-section::after {
  content:'';
  position:absolute;
  top:0;bottom:0;
  width:80px;
  z-index:10;
  pointer-events:none;
}
.ms-marquee-section::before {
  left:0;
  background:linear-gradient(to right, var(--color-helix-blue-dark-2), transparent);
}
.ms-marquee-section::after {
  right:0;
  background:linear-gradient(to left, var(--color-helix-blue-dark-2), transparent);
}

.ms-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: ms-marquee 35s linear infinite;
}

.ms-marquee-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(252,252,252,0.3);
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ms-marquee-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(131,231,238,0.35);
  flex-shrink: 0;
}

@keyframes ms-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   PROBLEM SECTION — cursor + before/after slider
   ================================================================ */
#problem-section-cursor-dot {
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  background: transparent;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px; height: 48px;
  transition: opacity .2s, width .2s, height .2s, gap .2s, padding .2s,
              border-radius .2s, background-color .2s, transform .15s;
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
}
.problem-cursor-tail {
  background: var(--color-helix-blue);
  border-radius: 100%;
  flex-shrink: 0;
  width: 48px; height: 48px;
  transition: width .2s, height .2s;
}
#problem-section-cursor-dot.has-label {
  background: var(--color-helix-blue);
  border-radius: 7px;
  width: auto;
  max-width: min(320px, calc(100vw - 24px));
  height: auto;
  min-height: 18px;
  padding: 6px;
  transform: translate(10%, -50%);
}
#problem-section-cursor-dot.has-label .problem-cursor-tail { display: none; }
#problem-section-cursor-dot:not(.has-label) #problem-section-cursor-label { display: none; }
#problem-section-cursor-label {
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: normal;
  pointer-events: none;
}
#the-problem-section.problem-cursor-active #problem-section-cursor-dot { opacity: 1; }

/* Comparison slider */
.ms-slider-wrap {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  user-select: none;
}
.ms-slider-frame {
  position: relative;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  border-radius: 20px;
}
@media (min-width: 640px)  { .ms-slider-frame { min-height: 360px; } }
@media (min-width: 1024px) { .ms-slider-frame { min-height: 596px; } }

.ms-slider {
  position: relative;
  height: 100%;
  width: 100%;
  cursor: ew-resize;
}
.ms-slider .before {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 10;
}
.ms-slider .after {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 20;
  clip-path: inset(0 50% 0 0);
}
.ms-slider-handle {
  position: absolute;
  top: 0; left: 20%;
  width: 4px; height: 100%;
  z-index: 30;
  transform: translateX(-50%);
}
.ms-handle-line {
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 100%;
  background: rgba(30,39,49,0.8);
  transform: translateX(-50%);
}
.ms-handle-blur {
  position: absolute;
  top: 50%; left: 50%;
  width: 5rem; height: 267px;
  transform: translate(-50%, -50%);
  filter: blur(30px);
  background: var(--grad-12);
  pointer-events: none;
}
.ms-handle-circle {
  position: absolute;
  top: 50%; left: 50%;
  width: 17px; height: 30px;
  padding: 7px 1px;
  background: var(--bg-8);
  border: 2px solid rgba(31,37,47,0.5);
  backdrop-filter: blur(17px);
  border-radius: 40px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.ms-handle-circle:hover  { transform: translate(-50%,-50%) scale(1.05); }
.ms-handle-circle:active { transform: translate(-50%,-50%) scale(1.1); }

.ms-slider-label {
  position: absolute;
  top: 0;
  z-index: 25;
  padding: 0.3rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--color-helix-blue-dark);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
@media (min-width: 640px) { .ms-slider-label { padding: 0.375rem 0.75rem; font-size: 0.8125rem; } }
.ms-slider-label--before { left: 0; border-bottom-right-radius: 0.375rem; }
.ms-slider-label--after  { right: 0; border-bottom-left-radius: 0.375rem; }

/* ================================================================
   TAB SYSTEM — sliding pill indicator (HelixEarth exact)
   ================================================================ */
[data-tab-items-container] {
  position: relative;
  background-color: var(--bg-7);
  border-radius: 1rem;
  padding: 0.375rem;
  display: grid;
  gap: 0.375rem;
  width: 100%;
}
@media (min-width: 768px) {
  [data-tab-items-container] {
    border-radius: 9999px;
    padding: 0.25rem;
    gap: 0.25rem;
    display: flex;
  }
}

[data-tab-items-container] button {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  text-align: center;
  font-family: var(--font-main);
  font-size: var(--text-tl1);
  font-weight: 500;
  color: rgba(252,252,252,0.45);
  background-color: var(--color-helix-blue-shade);
  cursor: pointer;
  transition: color 0.3s ease;
  border: none;
}
@media (min-width: 768px) {
  [data-tab-items-container] button {
    border-radius: 9999px;
    padding: 0.875rem 1.5rem;
    flex: 1;
  }
}

[data-tab-items-container] button[data-selected],
[data-tab-items-container] button.ms-tab-active {
  color: #fff;
}

[data-active-tab-indicator] {
  position: absolute;
  top: 0.375rem;
  left: 0.375rem;
  z-index: 10;
  background: linear-gradient(to right, var(--color-helix-blue), var(--color-ns-cyan));
  border-radius: 9999px;
  pointer-events: none;
  transition: all 0.5s var(--ease-out-expo);
}

/* Tab panels */
[data-tab-contents-container] > [data-tab-content] { display: none; }
[data-tab-contents-container] > [data-tab-content][data-active] { display: flex; flex-direction: column; }

/* ================================================================
   SECTIONS — shared
   ================================================================ */
.ms-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.ms-section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badges */
.ms-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: var(--text-tl3);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.ms-badge--purple {
  background: rgba(165,133,255,0.12);
  color: #a585ff;
  border: 1px solid rgba(165,133,255,0.2);
}
.ms-badge--cyan {
  background: rgba(131,231,238,0.08);
  color: var(--color-ns-cyan);
  border: 1px solid rgba(131,231,238,0.18);
}
.ms-badge--blue {
  background: rgba(0,62,131,0.18);
  color: rgba(131,231,238,0.9);
  border: 1px solid rgba(0,62,131,0.3);
}

.ms-section-title {
  font-size: clamp(1.875rem, 4vw, var(--text-h3));
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* Gradient text */
.ms-text-grad-orange {
  background: linear-gradient(to right, #f97316, #eab308);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ms-text-grad-cyan {
  background: linear-gradient(to right, var(--color-ns-cyan), var(--color-helix-blue));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================================================================
   STATS GRID
   ================================================================ */
.ms-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 1024px) { .ms-stats-grid { grid-template-columns: repeat(4, 1fr); } }

.ms-stat {
  padding: 2rem 1.5rem;
  background: var(--bg-7);
  border: 1px solid var(--stroke-6);
  border-radius: 1.25rem;
  text-align: center;
  transition: border-color .3s ease;
}
.ms-stat:hover { border-color: var(--stroke-7); }

.ms-stat__number {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(to bottom, var(--color-accent) 0%, rgba(252,252,252,0.45) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.ms-stat__label {
  font-size: var(--text-tl2);
  color: rgba(252,252,252,0.45);
  font-weight: 400;
  line-height: 1.4;
}

/* ================================================================
   FEATURES GRID
   ================================================================ */
.ms-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px)  { .ms-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .ms-features-grid { grid-template-columns: repeat(3, 1fr); } }

.ms-feature-card {
  background: var(--bg-7);
  border: 1px solid var(--stroke-6);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.ms-feature-card:hover {
  border-color: var(--stroke-7);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.ms-feature-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke-7);
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  color: rgba(252,252,252,0.8);
}
.ms-feature-icon svg { width: 20px; height: 20px; }
.ms-feature-title {
  font-size: var(--text-h6);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.ms-feature-desc {
  font-size: var(--text-tl2);
  color: rgba(252,252,252,0.5);
  line-height: 1.7;
  margin: 0;
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.ms-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px)  { .ms-testimonials-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1280px) { .ms-testimonials-grid { grid-template-columns: repeat(3,1fr); } }

.ms-testimonial {
  background: var(--bg-7);
  border: 1px solid var(--stroke-6);
  border-radius: 1.25rem;
  padding: 1.5rem;
}
.ms-testimonial__stars { display:flex; gap:.25rem; margin-bottom:.75rem; }
.ms-testimonial__stars svg { width:13px;height:13px;fill:#f9eb57; }
.ms-testimonial__text {
  font-size:var(--text-tl1);
  color:rgba(252,252,252,.65);
  line-height:1.7;
  font-style:italic;
  margin-bottom:1.25rem;
}
.ms-testimonial__author {
  display:flex;align-items:center;gap:.75rem;
  padding-top:1rem;
  border-top:1px solid var(--stroke-6);
}
.ms-testimonial__avatar {
  width:36px;height:36px;border-radius:50%;
  background:linear-gradient(135deg,var(--color-helix-blue),var(--color-ns-cyan));
  display:flex;align-items:center;justify-content:center;
  font-size:.75rem;font-weight:700;color:#fff;flex-shrink:0;
}
.ms-testimonial__name { font-size:var(--text-tl2);font-weight:600;color:var(--color-accent);margin:0; }
.ms-testimonial__role { font-size:var(--text-tl3);color:rgba(252,252,252,.4);margin:0; }

/* ================================================================
   FAQ
   ================================================================ */
.ms-faq-list { max-width:820px;margin-inline:auto;display:flex;flex-direction:column;gap:.5rem; }

.ms-faq-item {
  background:var(--bg-7);
  border:1px solid var(--stroke-6);
  border-radius:1rem;
  overflow:hidden;
}
.ms-faq-question {
  display:flex;align-items:center;justify-content:space-between;
  padding:1.25rem 1.5rem;cursor:pointer;gap:1rem;
}
.ms-faq-question-text {
  font-size:var(--text-tl1);font-weight:500;color:var(--color-accent);line-height:1.4;
}
.ms-faq-icon {
  flex-shrink:0;
  width:28px;height:28px;border-radius:50%;
  border:1px solid var(--stroke-7);
  display:flex;align-items:center;justify-content:center;
  transition:transform .3s ease, background .3s ease, border-color .3s ease;
}
.ms-faq-icon svg { width:14px;height:14px;stroke:rgba(252,252,252,.7); }
.ms-faq-item.open .ms-faq-icon {
  transform:rotate(45deg);
  background:rgba(131,231,238,.08);
  border-color:rgba(131,231,238,.25);
}
.ms-faq-answer { max-height:0;overflow:hidden;transition:max-height .4s var(--ease-out-expo); }
.ms-faq-item.open .ms-faq-answer { max-height:500px; }
.ms-faq-answer-inner {
  padding:.25rem 1.5rem 1.25rem;
  font-size:var(--text-tl1);
  color:rgba(252,252,252,.6);
  line-height:1.7;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.ms-cta-box {
  position:relative;overflow:hidden;
  background:var(--bg-7);
  border:1px solid var(--stroke-6);
  border-radius:1.5rem;
  padding:clamp(2.5rem,5vw,5rem) clamp(1.5rem,4vw,4rem);
  text-align:center;
}
.ms-cta-glow {
  position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 50% 0%,rgba(0,62,131,.25) 0%,transparent 60%);
}
.ms-cta-title {
  font-size:clamp(2rem,5vw,3.75rem);
  font-weight:600;letter-spacing:-0.04em;
  color:var(--color-accent);margin-bottom:1rem;
}
.ms-cta-desc {
  font-size:var(--text-tl1);color:rgba(252,252,252,.6);
  max-width:560px;margin-inline:auto;margin-bottom:2rem;
}
.ms-cta-actions {
  display:flex;align-items:center;justify-content:center;gap:.75rem;flex-wrap:wrap;
}

/* Buttons */
.ms-btn {
  display:inline-flex;align-items:center;justify-content:center;
  gap:.5rem;border-radius:9999px;
  font-size:var(--text-tl1);font-weight:500;
  font-family:var(--font-main);
  padding:.75rem 1.5rem;cursor:pointer;
  text-decoration:none;white-space:nowrap;
  border:1px solid transparent;
  transition:all .2s ease;
}
.ms-btn--white {
  background:var(--color-accent);
  color:var(--color-helix-blue-dark);
  border-color:var(--color-accent);
}
.ms-btn--white:hover {
  background:var(--color-helix-blue-dark-2);
  color:var(--color-accent);
  border-color:rgba(252,252,252,.25);
}
.ms-btn--outline {
  background:transparent;color:var(--color-accent);
  border-color:rgba(252,252,252,.2);
}
.ms-btn--outline:hover { border-color:rgba(252,252,252,.4);background:rgba(252,252,252,.05); }

/* ================================================================
   FOOTER
   ================================================================ */
.ms-footer {
  background:var(--bg-8);
  border-top:1px solid var(--stroke-6);
  padding-block:clamp(3rem,6vw,5rem) 2rem;
}
.ms-footer__grid {
  display:grid;grid-template-columns:1fr;gap:2.5rem;margin-bottom:3rem;
}
@media (min-width:768px)  { .ms-footer__grid { grid-template-columns:1.5fr repeat(3,1fr); } }
@media (min-width:1024px) { .ms-footer__grid { grid-template-columns:2fr repeat(4,1fr); } }

.ms-footer__brand-desc {
  font-size:var(--text-tl2);color:rgba(252,252,252,.4);line-height:1.7;
  margin-top:.75rem;margin-bottom:1.25rem;
}
.ms-footer__social { display:flex;gap:.75rem;flex-wrap:wrap; }
.ms-footer__social-link {
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:50%;
  border:1px solid var(--stroke-7);
  color:rgba(252,252,252,.45);
  transition:transform .3s ease, border-color .3s ease, color .3s ease;
}
.ms-footer__social-link:hover {
  transform:translateY(-4px);
  border-color:var(--stroke-8);
  color:var(--color-accent);
}
.ms-footer__social-link svg { width:15px;height:15px;display:block; }

.ms-footer__col-title {
  font-size:var(--text-tl3);font-weight:500;
  color:rgba(252,252,252,.35);
  text-transform:uppercase;letter-spacing:.08em;
  margin-bottom:1rem;
}
.ms-footer__link-list { display:flex;flex-direction:column;gap:.625rem;list-style:none; }
.ms-footer__link {
  font-size:var(--text-tl1);font-weight:400;
  color:rgba(252,252,252,.8);
  position:relative;display:inline-block;overflow:hidden;
  transition:color .2s ease;
}
.ms-footer__link::before {
  content:'';position:absolute;bottom:0;left:0;
  width:100%;height:1px;
  background:var(--color-accent);
  transform-origin:100%;transform:scaleX(0);
  transition:transform .5s ease;
}
.ms-footer__link:hover { color:var(--color-accent); }
.ms-footer__link:hover::before { transform-origin:0;transform:scaleX(1); }

.ms-footer__bottom {
  display:flex;align-items:center;justify-content:space-between;
  padding-top:2rem;border-top:1px solid var(--stroke-6);
  flex-wrap:wrap;gap:1rem;
}
.ms-footer__copy { font-size:var(--text-tl2);color:rgba(252,252,252,.35);margin:0; }
.ms-footer__legal { display:flex;gap:1.5rem;flex-wrap:wrap; }
.ms-footer__legal-link { font-size:var(--text-tl2);color:rgba(252,252,252,.35);transition:color .2s ease; }
.ms-footer__legal-link:hover { color:var(--color-accent); }

/* ================================================================
   PAGE CONTENT
   ================================================================ */
.ms-page-content { padding-block: 8rem 4rem; }
.ms-page-content img { max-width:100%;height:auto;border-radius:.75rem; }
.ms-page-content h1,.ms-page-content h2,.ms-page-content h3 { margin-bottom:1rem; }
.ms-page-content p { margin-bottom:1.25rem;font-size:var(--text-tl1);color:rgba(252,252,252,.7);line-height:1.75; }
.ms-page-content a { color:var(--color-ns-cyan);text-decoration:underline;text-underline-offset:3px; }
.ms-page-content ul,.ms-page-content ol { padding-left:1.5rem;margin-bottom:1.25rem; }
.ms-page-content li { margin-bottom:.5rem;font-size:var(--text-tl1);color:rgba(252,252,252,.7);line-height:1.7; }

/* ================================================================
   BACK TO TOP
   ================================================================ */
#ms-back-top.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}
#ms-back-top:hover { background: var(--bg-9) !important; }

/* ================================================================
   ELEMENTOR OVERRIDES — ensure dark theme in editor too
   ================================================================ */
.elementor-widget-container { color: var(--color-accent); }
.elementor-section,.elementor-container { position: relative; }

/* ================================================================
   RESPONSIVE UTILITIES
   ================================================================ */
.hidden { display: none; }
@media (min-width: 1280px) { .xl\:hidden { display: none !important; } }
@media (max-width: 1279px) { .xl\:show  { display: none !important; } }
