/* =============================================================================
   MixedSkills Theme — custom.css
   Source CSS for Tailwind compilation + hand-written component styles
   ============================================================================= */

/* ── Tailwind directives ─────────────────────────────────────────────────── */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* ── Google Fonts import (fallback if not in <head>) ─────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* =============================================================================
   1. BASE / RESET
   ============================================================================= */

@layer base {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    font-size: 16px;
    scroll-behavior: auto; /* Lenis handles smooth scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  body {
    background-color: var(--color-bg, #080808);
    color: var(--color-text, #F0F0F0);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: none; /* hide native cursor when custom is enabled */
  }

  /* Restore cursor when custom cursor not enabled */
  body:not(.custom-cursor-enabled) {
    cursor: auto;
  }
  body:not(.custom-cursor-enabled) a,
  body:not(.custom-cursor-enabled) button {
    cursor: pointer;
  }

  /* Focus visible */
  :focus-visible {
    outline: 2px solid var(--color-accent, #B4FF39);
    outline-offset: 3px;
    border-radius: 2px;
  }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: #0F0F0F; }
  ::-webkit-scrollbar-thumb { background: #2A2A2A; border-radius: 2px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--color-accent, #B4FF39); }

  /* Selection */
  ::selection {
    background-color: var(--color-accent, #B4FF39);
    color: #080808;
  }

  img, video {
    display: block;
    max-width: 100%;
  }

  a { color: inherit; text-decoration: none; }

  button {
    background: none;
    border: none;
    cursor: none;
    font-family: inherit;
  }
}

/* =============================================================================
   2. LAYOUT UTILITIES
   ============================================================================= */

@layer components {
  .ms-container {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 5rem);
  }

  .ms-container--narrow {
    max-width: 860px;
  }

  .ms-section {
    padding-block: clamp(5rem, 10vw, 10rem);
  }

  .ms-section--services {
    background: #0C0C0C;
  }

  .ms-section--stats {
    border-top: 1px solid #1A1A1A;
    border-bottom: 1px solid #1A1A1A;
  }
}

/* =============================================================================
   3. PAGE LOADER
   ============================================================================= */

#ms-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #F0F0F0;
  margin-bottom: 2rem;
}

.loader-progress {
  width: 200px;
  height: 1px;
  background: #1E1E1E;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent, #B4FF39);
  transition: width 0.1s linear;
}

.loader-counter {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #3A3A3A;
}

/* =============================================================================
   4. PAGE TRANSITION
   ============================================================================= */

#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

#page-transition-cover {
  position: absolute;
  inset: 0;
  background: #080808;
  transform: scaleY(0);
  transform-origin: bottom center;
}

/* =============================================================================
   5. CUSTOM CURSOR
   ============================================================================= */

.ms-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9997;
  pointer-events: none;
  will-change: transform;
}

.ms-cursor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent, #B4FF39);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.ms-cursor__ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 240, 240, 0.5);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.ms-cursor__label {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-accent, #B4FF39);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  will-change: transform, opacity;
}

#cursor-label-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #080808;
}

/* =============================================================================
   6. NAVIGATION
   ============================================================================= */

.ms-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
  padding: 1.75rem 0;
}

.ms-nav--scrolled {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ms-nav--hidden {
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, padding 0.4s ease;
}

.ms-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 5rem);
}

.ms-nav__logo {
  text-decoration: none;
  z-index: 10;
}

.ms-nav__logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F0F0F0;
}

.ms-nav__logo-img {
  height: 36px;
  width: auto;
}

.ms-nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .ms-nav__links { display: none; }
}

.ms-nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9A9A9A;
  transition: color 0.2s ease;
  position: relative;
}

.ms-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent, #B4FF39);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-nav__link:hover,
.ms-nav__link--active {
  color: #F0F0F0;
}

.ms-nav__link:hover::after,
.ms-nav__link--active::after {
  width: 100%;
}

.ms-nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Hamburger */
.ms-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px;
  z-index: 10;
}

@media (max-width: 768px) {
  .ms-nav__hamburger { display: flex; }
  .ms-nav__cta { display: none; }
}

.ms-hamburger__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #F0F0F0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  transform-origin: center;
}

.menu-open .ms-hamburger__line:first-child {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-open .ms-hamburger__line:last-child {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu */
.ms-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 5rem);
  background: #080808;
}

.ms-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ms-mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.25rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #3A3A3A;
  border-bottom: 1px solid #161616;
  transition: color 0.3s ease, padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-mobile-menu__link:hover,
.ms-mobile-menu__link--active {
  color: #F0F0F0;
  padding-left: 1rem;
}

.ms-mobile-menu__link--cta {
  color: var(--color-accent, #B4FF39);
  border-bottom: none;
  margin-top: 1rem;
}

.ms-mobile-menu__index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #3A3A3A;
  min-width: 2rem;
}

.ms-mobile-menu__social {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

.ms-mobile-menu__social-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #6B6B6B;
  transition: color 0.2s;
}

.ms-mobile-menu__social-link:hover {
  color: var(--color-accent, #B4FF39);
}

/* =============================================================================
   7. HERO SECTION
   ============================================================================= */

.ms-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: 0;
}

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

.ms-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.ms-hero__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.2) 0%,
    rgba(8,8,8,0.4) 60%,
    rgba(8,8,8,0.95) 100%
  );
}

/* Gradient fallback */
.ms-hero__gradient-bg {
  position: absolute;
  inset: 0;
  background: #080808;
  overflow: hidden;
}

.ms-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.ms-hero__orb--1 {
  width: 60vw;
  height: 60vw;
  top: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(180, 255, 57, 0.12) 0%, transparent 70%);
  animation-delay: 0s;
}

.ms-hero__orb--2 {
  width: 50vw;
  height: 50vw;
  bottom: -10%;
  left: -15%;
  background: radial-gradient(circle, rgba(100, 80, 255, 0.08) 0%, transparent 70%);
  animation-delay: -4s;
}

.ms-hero__orb--3 {
  width: 40vw;
  height: 40vw;
  top: 30%;
  left: 30%;
  background: radial-gradient(circle, rgba(180, 255, 57, 0.05) 0%, transparent 70%);
  animation-delay: -8s;
}

.ms-hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
  opacity: 0.4;
  pointer-events: none;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.05); }
}

/* Hero content */
.ms-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(7rem, 12vw, 10rem) clamp(1.25rem, 4vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.ms-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent, #B4FF39);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.ms-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent, #B4FF39);
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.ms-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4rem, 11vw, 13rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #F0F0F0;
  overflow: hidden;
  margin-bottom: 0;
}

.ms-hero__title-line {
  display: block;
  overflow: hidden;
}

.ms-hero__title-inner {
  display: block;
  /* GSAP animates this from translateY(110%) */
}

.ms-hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 4rem);
  opacity: 0;
}

.ms-hero__subtitle {
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  color: #6B6B6B;
  max-width: 400px;
  line-height: 1.6;
}

/* Scroll indicator */
.ms-hero__scroll {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  padding-bottom: clamp(2rem, 4vw, 4rem);
  padding-left: clamp(1.25rem, 4vw, 5rem);
  opacity: 0;
}

.ms-hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, #3A3A3A, transparent);
  position: relative;
  overflow: hidden;
}

.ms-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent, #B4FF39);
  animation: scroll-line 2s ease infinite;
}

@keyframes scroll-line {
  0%   { top: -100%; }
  100% { top: 100%; }
}

.ms-hero__scroll-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3A3A3A;
  writing-mode: vertical-rl;
}

/* Marquee strip */
.ms-hero__marquee-strip {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  background: #0F0F0F;
  border-top: 1px solid #161616;
  border-bottom: 1px solid #161616;
  padding: 0.875rem 0;
}

.ms-marquee { overflow: hidden; }

.ms-marquee__track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}

.ms-marquee__item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2A2A2A;
  padding: 0 2rem;
  transition: color 0.3s;
}

.ms-marquee__item:hover { color: var(--color-accent, #B4FF39); }

.ms-marquee__sep {
  color: var(--color-accent, #B4FF39);
  font-size: 0.5rem;
  opacity: 0.5;
}

/* =============================================================================
   8. BUTTONS
   ============================================================================= */

.ms-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.ms-btn--accent {
  background: var(--color-accent, #B4FF39);
  color: #080808;
}

.ms-btn--accent:hover {
  background: #F0F0F0;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(180, 255, 57, 0.2);
}

.ms-btn--outline {
  border: 1px solid rgba(240, 240, 240, 0.2);
  color: #F0F0F0;
  background: transparent;
}

.ms-btn--outline:hover {
  border-color: var(--color-accent, #B4FF39);
  color: var(--color-accent, #B4FF39);
  transform: translateY(-2px);
}

.ms-btn--ghost {
  color: #9A9A9A;
  background: transparent;
  padding-inline: 0;
}

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

.ms-btn__arrow,
.ms-btn__icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

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

/* =============================================================================
   9. SECTION HEADERS
   ============================================================================= */

.ms-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  gap: 2rem;
  flex-wrap: wrap;
}

.ms-section-header__eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent, #B4FF39);
  margin-bottom: 0.75rem;
}

.ms-section-header__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F0F0F0;
  line-height: 1;
}

/* =============================================================================
   10. PORTFOLIO ITEMS
   ============================================================================= */

.ms-portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ms-portfolio-item {
  position: relative;
  border-top: 1px solid #1A1A1A;
}

.ms-portfolio-item:last-child {
  border-bottom: 1px solid #1A1A1A;
}

.ms-portfolio-item__link {
  display: grid;
  grid-template-columns: 3rem 1fr 2fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  transition: color 0.3s;
}

@media (max-width: 768px) {
  .ms-portfolio-item__link {
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
  }
}

.ms-portfolio-item__index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: #3A3A3A;
  align-self: center;
  letter-spacing: 0.05em;
}

.ms-portfolio-item__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.25rem;
  background: #161616;
  order: 2;
}

@media (max-width: 768px) {
  .ms-portfolio-item__media {
    grid-column: 1 / -1;
    order: 1;
  }
}

.ms-portfolio-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-portfolio-item:hover .ms-portfolio-item__img {
  transform: scale(1.06);
}

.ms-portfolio-item__placeholder {
  width: 100%;
  height: 100%;
}

.ms-portfolio-item__video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.ms-portfolio-item__video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 240, 240, 0.5);
  transition: color 0.3s;
}

.ms-portfolio-item__video-play svg {
  width: 40px;
  height: 40px;
}

.ms-portfolio-item:hover .ms-portfolio-item__video-play {
  color: var(--item-accent, #B4FF39);
}

.ms-portfolio-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  order: 1;
}

@media (max-width: 768px) {
  .ms-portfolio-item__info {
    order: 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.ms-portfolio-item__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ms-portfolio-item__category,
.ms-portfolio-item__year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6B6B;
}

.ms-portfolio-item__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F0F0F0;
  line-height: 1.1;
  transition: color 0.3s;
}

.ms-portfolio-item:hover .ms-portfolio-item__title {
  color: var(--item-accent, #B4FF39);
}

.ms-portfolio-item__arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: #3A3A3A;
  transition: color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-portfolio-item:hover .ms-portfolio-item__arrow {
  color: var(--item-accent, #B4FF39);
  transform: translate(4px, -4px);
}

.ms-portfolio-item__line {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--item-accent, #B4FF39);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-portfolio-item:hover .ms-portfolio-item__line {
  width: 100%;
}

/* =============================================================================
   11. PAGE HERO (subpages)
   ============================================================================= */

.ms-page-hero {
  padding-top: clamp(8rem, 15vw, 14rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.ms-page-hero__inner { max-width: 1440px; }

.ms-page-hero__eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent, #B4FF39);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.ms-page-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.5rem, 9vw, 11rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #F0F0F0;
  overflow: hidden;
  margin-bottom: 0;
}

.ms-page-hero__title-line {
  display: block;
  overflow: hidden;
}

.ms-page-hero__title-inner { display: block; }

.ms-page-hero__desc {
  margin-top: 2rem;
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  color: #6B6B6B;
  max-width: 500px;
  line-height: 1.6;
  opacity: 0;
}

/* =============================================================================
   12. PORTFOLIO FILTER
   ============================================================================= */

.ms-filter {
  padding-block: 1.5rem;
  border-bottom: 1px solid #1A1A1A;
  margin-bottom: 0;
}

.ms-filter__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ms-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6B6B6B;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.25s ease;
  cursor: none;
}

.ms-filter__btn:hover {
  color: #F0F0F0;
  border-color: #2A2A2A;
}

.ms-filter__btn--active {
  color: #080808;
  background: var(--color-accent, #B4FF39);
  border-color: var(--color-accent, #B4FF39);
}

.ms-filter__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  opacity: 0.6;
}

/* =============================================================================
   13. PROJECT DETAIL
   ============================================================================= */

.ms-project-hero {
  position: relative;
  width: 100%;
  margin-top: 0;
  padding-top: 5rem; /* nav height */
}

.ms-project-hero__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #161616;
}

@media (max-width: 768px) {
  .ms-project-hero__media { aspect-ratio: 4 / 3; }
}

.ms-project-hero__image,
.ms-project-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms-project-hero__placeholder {
  width: 100%;
  height: 100%;
}

.ms-project-hero__scroll {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0;
}

.ms-project-header {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.ms-project-header__inner {
  max-width: 900px;
}

.ms-project-header__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #F0F0F0;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

/* Meta grid */
.ms-project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.ms-project-meta__item { border-left: 1px solid #1E1E1E; padding-left: 1rem; }

.ms-project-meta__label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3A3A3A;
  margin-bottom: 0.4rem;
}

.ms-project-meta__value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #F0F0F0;
}

/* Prose */
.ms-prose {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.75;
  color: #9A9A9A;
}

.ms-prose h2, .ms-prose h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: #F0F0F0;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.ms-prose p { margin-bottom: 1.25em; }

.ms-prose a {
  color: var(--color-accent, #B4FF39);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Gallery */
.ms-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.ms-gallery-item {
  overflow: hidden;
  border-radius: 0.25rem;
  background: #161616;
}

/* Alternate large/small pattern */
.ms-gallery-item:nth-child(3n+1) { grid-column: span 8; }
.ms-gallery-item:nth-child(3n+2) { grid-column: span 4; }
.ms-gallery-item:nth-child(3n)   { grid-column: span 12; }

@media (max-width: 768px) {
  .ms-gallery-item { grid-column: 1 / -1 !important; }
}

.ms-gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-gallery-item:hover .ms-gallery-item__img {
  transform: scale(1.04);
}

/* Project navigation */
.ms-project-nav { padding-block: clamp(3rem, 6vw, 6rem); }

.ms-project-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 600px) {
  .ms-project-nav__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.ms-project-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: opacity 0.3s;
}

.ms-project-nav__item--prev { align-items: flex-start; }
.ms-project-nav__item--next { align-items: flex-end; }
.ms-project-nav__item--empty { pointer-events: none; }

.ms-project-nav__item:hover { opacity: 0.7; }

.ms-project-nav__dir {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3A3A3A;
}

.ms-project-nav__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F0F0F0;
  transition: color 0.3s;
}

.ms-project-nav__item:hover .ms-project-nav__title {
  color: var(--color-accent, #B4FF39);
}

.ms-project-nav__back {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3A3A3A;
  transition: color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-project-nav__back svg { width: 40px; height: 40px; }

.ms-project-nav__back:hover {
  color: var(--color-accent, #B4FF39);
  transform: scale(1.1);
}

/* =============================================================================
   14. SERVICES & STATS
   ============================================================================= */

.ms-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: #161616;
  border: 1px solid #161616;
  border-radius: 0.5rem;
  overflow: hidden;
}

.ms-service-card {
  background: #0C0C0C;
  padding: clamp(2rem, 4vw, 3rem);
  transition: background 0.4s ease;
}

.ms-service-card:hover { background: #111111; }

.ms-service-card__icon {
  display: block;
  font-size: 1.5rem;
  color: var(--color-accent, #B4FF39);
  margin-bottom: 1.5rem;
}

.ms-service-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F0F0F0;
  margin-bottom: 0.75rem;
}

.ms-service-card__desc {
  font-size: 0.875rem;
  color: #6B6B6B;
  line-height: 1.6;
}

/* Stats */
.ms-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid #1A1A1A;
  border-radius: 0.5rem;
  overflow: hidden;
}

.ms-stat {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid #1A1A1A;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ms-stat:last-child { border-right: none; }

@media (max-width: 600px) {
  .ms-stat { border-right: none; border-bottom: 1px solid #1A1A1A; }
  .ms-stat:last-child { border-bottom: none; }
}

.ms-stat__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-accent, #B4FF39);
  line-height: 1;
}

.ms-stat__label {
  font-size: 0.8125rem;
  color: #6B6B6B;
}

/* =============================================================================
   15. INTRO SECTION
   ============================================================================= */

.ms-intro {
  max-width: 900px;
}

.ms-intro__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent, #B4FF39);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.ms-intro__content {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #9A9A9A;
  opacity: 0;
}

.ms-intro__content strong {
  color: #F0F0F0;
  font-weight: 600;
}

/* =============================================================================
   16. FOOTER
   ============================================================================= */

.ms-footer {
  padding-top: clamp(5rem, 10vw, 8rem);
  border-top: 1px solid #1A1A1A;
}

.ms-footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 5rem);
}

@media (max-width: 768px) {
  .ms-footer__top { grid-template-columns: 1fr; }
}

.ms-footer__logo {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F0F0F0;
  margin-bottom: 1rem;
}

.ms-footer__tagline {
  font-size: 0.875rem;
  color: #6B6B6B;
  line-height: 1.6;
  max-width: 300px;
}

.ms-footer__cta-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.ms-footer__cta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3A3A3A;
  margin-bottom: 0.5rem;
}

.ms-footer__cta-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F0F0F0;
  line-height: 1;
  transition: color 0.3s;
}

.ms-footer__cta-link:hover .ms-footer__cta-text {
  color: var(--color-accent, #B4FF39);
}

.ms-footer__cta-arrow {
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--color-accent, #B4FF39);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  align-self: flex-end;
}

.ms-footer__cta-link:hover .ms-footer__cta-arrow {
  transform: translate(8px, -8px);
}

.ms-footer__middle {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2rem clamp(1.25rem, 4vw, 5rem);
  max-width: 1440px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ms-footer__nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.ms-footer__nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6B6B6B;
  transition: color 0.2s;
}

.ms-footer__nav-link:hover { color: #F0F0F0; }

.ms-footer__social {
  display: flex;
  gap: 1rem;
}

.ms-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #3A3A3A;
  border: 1px solid #1E1E1E;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.ms-footer__social-link svg { width: 16px; height: 16px; }

.ms-footer__social-link:hover {
  color: var(--color-accent, #B4FF39);
  border-color: var(--color-accent, #B4FF39);
  transform: translateY(-3px);
}

.ms-footer__divider {
  height: 1px;
  background: #1A1A1A;
  max-width: 1440px;
  margin: 0 auto;
  margin-inline: clamp(1.25rem, 4vw, 5rem);
}

.ms-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 5rem) 2rem;
}

.ms-footer__copyright,
.ms-footer__made {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: #3A3A3A;
}

.ms-footer__back-to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6B6B;
  transition: color 0.3s;
}

.ms-footer__back-to-top svg { width: 16px; height: 16px; }

.ms-footer__back-to-top:hover { color: var(--color-accent, #B4FF39); }

/* =============================================================================
   17. EMPTY STATE
   ============================================================================= */

.ms-empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: #3A3A3A;
  font-size: 0.875rem;
}

/* =============================================================================
   18. MISC STATES
   ============================================================================= */

/* Body during menu open — prevent scroll */
body.menu-open { overflow: hidden; }

/* Page loaded state */
body.page-loaded .ms-hero__eyebrow {
  /* GSAP will handle the animation after loader */
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto !important; }
}

/* =============================================================================
   ABOUT PAGE STYLES
   ============================================================================= */

/* Accent text in hero title */
.ms-accent-text { color: var(--color-accent, #c6f56f); }

/* Stat sublabel */
.ms-stat__sublabel {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3A3A3A;
}

/* About intro */
.ms-about-intro { max-width: 900px; }

.ms-about-intro__body {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #9A9A9A;
  margin-top: 1.5rem;
}

.ms-about-intro__body strong { color: #F0F0F0; font-weight: 600; }

/* About two-column layout */
.ms-about-two-col {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

@media (max-width: 768px) {
  .ms-about-two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}

.ms-about-body-text {
  font-size: clamp(0.9375rem, 1.25vw, 1.125rem);
  color: #6B6B6B;
  line-height: 1.75;
  margin-bottom: 1.25em;
}

.ms-about-body-text:last-child { margin-bottom: 0; }

.ms-about-section-desc {
  font-size: clamp(0.875rem, 1.25vw, 1.0625rem);
  color: #6B6B6B;
  line-height: 1.65;
  max-width: 380px;
}

/* Values grid */
.ms-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: #1A1A1A;
  border: 1px solid #1A1A1A;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-top: clamp(3rem, 5vw, 5rem);
}

.ms-value-card {
  background: #0C0C0C;
  padding: clamp(2rem, 4vw, 3rem);
  transition: background 0.4s ease;
}

.ms-value-card:hover { background: #111111; }

.ms-value-card__icon {
  display: block;
  font-size: 1.5rem;
  color: var(--color-accent, #c6f56f);
  margin-bottom: 1.5rem;
}

.ms-value-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F0F0F0;
  margin-bottom: 0.75rem;
}

.ms-value-card__desc {
  font-size: 0.875rem;
  color: #6B6B6B;
  line-height: 1.6;
}

/* Service card tag */
.ms-service-card__tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent, #c6f56f);
  border: 1px solid var(--color-accent, #c6f56f);
  padding: 0.2em 0.6em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

/* Team statement */
.ms-team-statement {
  border-left: 2px solid var(--color-accent, #c6f56f);
  padding-left: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 5vw, 5rem);
  max-width: 700px;
}

.ms-team-statement__quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #F0F0F0;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.ms-team-statement__cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3A3A3A;
  font-style: normal;
}

/* =============================================================================
   CONTACT PAGE STYLES
   ============================================================================= */

/* Contact two-column layout */
.ms-contact-two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

@media (max-width: 900px) {
  .ms-contact-two-col { grid-template-columns: 1fr; gap: 3rem; }
}

/* Contact info */
.ms-contact-intro-text {
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  color: #6B6B6B;
  line-height: 1.75;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.ms-contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.ms-contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ms-contact-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  border: 1px solid #1A1A1A;
  color: var(--color-accent, #c6f56f);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.ms-contact-detail-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3A3A3A;
  margin-bottom: 0.25rem;
}

.ms-contact-detail-value {
  font-size: 0.9375rem;
  color: #F0F0F0;
  transition: color 0.3s;
}

a.ms-contact-detail-value:hover { color: var(--color-accent, #c6f56f); }

.ms-contact-social-links { margin-top: 0.25rem; }

.ms-contact-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.ms-contact-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  border: 1px solid #1A1A1A;
  color: #6B6B6B;
  transition: border-color 0.3s, color 0.3s;
}

.ms-contact-social-link:hover {
  border-color: var(--color-accent, #c6f56f);
  color: var(--color-accent, #c6f56f);
}

/* Contact form */
.ms-contact-form {
  background: #0C0C0C;
  border: 1px solid #1A1A1A;
  border-radius: 0.5rem;
  padding: clamp(2rem, 4vw, 3rem);
}

.ms-form-group {
  margin-bottom: 1.5rem;
}

.ms-form-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin-bottom: 0.6rem;
}

.ms-form-required { color: var(--color-accent, #c6f56f); }

.ms-form-input {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  background: #080808;
  border: 1px solid #1A1A1A;
  border-radius: 0.375rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  color: #F0F0F0;
  transition: border-color 0.3s;
  outline: none;
  box-sizing: border-box;
}

.ms-form-input:focus {
  border-color: var(--color-accent, #c6f56f);
  box-shadow: 0 0 0 3px rgba(198, 245, 111, 0.08);
}

.ms-form-input::placeholder { color: #2A2A2A; }

.ms-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.ms-form-textarea { resize: vertical; min-height: 120px; }

.ms-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-accent, #c6f56f);
  color: #080808;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.ms-form-submit:hover {
  background: #F0F0F0;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(198, 245, 111, 0.15);
}

.ms-form-submit svg { transition: transform 0.3s ease; }
.ms-form-submit:hover svg { transform: translateX(4px); }

.ms-form-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2A2A2A;
  text-align: center;
  margin-top: 1rem;
}

/* Process steps */
.ms-process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: #1A1A1A;
  border: 1px solid #1A1A1A;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-top: clamp(3rem, 5vw, 5rem);
}

.ms-process-step {
  background: #0C0C0C;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  transition: background 0.4s ease;
}

.ms-process-step:hover { background: #111111; }

.ms-process-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent, #c6f56f);
  margin-bottom: 1.25rem;
}

.ms-process-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F0F0F0;
  margin-bottom: 0.6rem;
}

.ms-process-desc {
  font-size: 0.875rem;
  color: #6B6B6B;
  line-height: 1.6;
}

/* FAQ grid */
.ms-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: clamp(3rem, 5vw, 5rem);
}

@media (max-width: 600px) {
  .ms-faq-grid { grid-template-columns: 1fr; }
}

.ms-faq-item {
  border: 1px solid #1A1A1A;
  border-radius: 0.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color 0.3s;
}

.ms-faq-item:hover { border-color: #2A2A2A; }

.ms-faq-question {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #F0F0F0;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.ms-faq-answer {
  font-size: 0.875rem;
  color: #6B6B6B;
  line-height: 1.65;
}


/* =============================================================================
   HELIX EARTH–STYLE COMPONENTS (hx- prefix)
   About & Contact pages — matches helixearth.com design language
   ============================================================================= */

/* ── Entry animations (popIn / fadeIn — same as Helix Earth) ──────────── */
@keyframes hx-popIn {
  0%   { opacity: 0; transform: scale(0.96) translateY(8px); }
  100% { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes hx-fadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
.animate-pop-in  { animation: hx-popIn  0.65s cubic-bezier(0.16,1,0.3,1) both; }
.animate-fade-in { animation: hx-fadeIn 0.5s ease both; }

/* ── Scroll reveal (data-ns-animate) ───────────────────────────────────── */
[data-ns-animate] {
  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-ns-animate][data-direction="left"]  { transform: translateX(-30px); }
[data-ns-animate][data-direction="right"] { transform: translateX(30px); }
[data-ns-animate][data-direction="up"]    { transform: translateY(24px); }
[data-ns-animate].is-visible { opacity: 1; transform: translate(0); }

/* ── Shared layout ─────────────────────────────────────────────────────── */
.hx-section { padding: 6rem 0; position: relative; z-index: 1; }
.hx-section--dark { background: rgba(255,255,255,0.022); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.hx-eyebrow { display: inline-block; font-family: var(--font-mono,'JetBrains Mono',monospace); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent,#c6f56f); margin-bottom: 1rem; }
.hx-section__title { font-size: clamp(2rem,5vw,3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: #fff; margin-bottom: 1.5rem; max-width: 54ch; }
.hx-section__title--wide { max-width: 70ch; }
.hx-section__desc { font-size: 1.0625rem; color: rgba(240,240,240,0.6); line-height: 1.7; max-width: 60ch; margin-bottom: 2.5rem; }
.hx-accent { color: var(--color-accent,#c6f56f); }

/* ── Badge pill ────────────────────────────────────────────────────────── */
.hx-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.8125rem; font-weight: 500; color: rgba(240,240,240,0.9); margin-bottom: 1.5rem; backdrop-filter: blur(8px); }
.hx-badge__dot { width: 7px; height: 7px; background: var(--color-accent,#c6f56f); border-radius: 50%; animation: hx-pulse 2s infinite; }
@keyframes hx-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.4)} }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.hx-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.75rem; border-radius: 999px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; cursor: pointer; border: none; }
.hx-btn:hover { transform: translateY(-2px); }
.hx-btn--primary { background: #fff; color: #080808; box-shadow: 0 4px 24px rgba(255,255,255,.1); }
.hx-btn--primary:hover { background: var(--color-accent,#c6f56f); }
.hx-btn--dark { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.hx-btn--dark:hover { background: rgba(255,255,255,.14); }
.hx-btn--outline { background: transparent; color: rgba(240,240,240,.75); border: 1px solid rgba(255,255,255,.2); }
.hx-btn--outline:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.hx-btn--submit { width: 100%; justify-content: center; background: #fff; color: #080808; font-size: 1rem; padding: 1rem 2rem; border-radius: 999px; margin-top: .5rem; }
.hx-btn--submit:hover { background: var(--color-accent,#c6f56f); }

/* ── Two-column text ───────────────────────────────────────────────────── */
.hx-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; margin-top: 2rem; }
@media(max-width:768px){ .hx-two-col{grid-template-columns:1fr;gap:1.5rem} }
.hx-two-col__text p { font-size: 1rem; color: rgba(240,240,240,.65); line-height: 1.75; margin-bottom: 1.25rem; }
.hx-two-col__text p strong { color: #fff; font-weight: 600; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hx-hero { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 0 6rem; position: relative; z-index: 1; overflow: hidden; }
.hx-hero::before { content:''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(198,245,111,.06) 0%, transparent 70%); pointer-events: none; }
.hx-hero__inner { max-width: 780px; margin: 0 auto; }
.hx-hero__title { font-size: clamp(2.5rem,6vw,5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: #fff; margin-bottom: 1.5rem; }
.hx-hero__subtitle { font-size: clamp(1rem,2vw,1.25rem); color: rgba(240,240,240,.6); line-height: 1.7; max-width: 56ch; margin: 0 auto 2rem; }
.hx-hero__features { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; margin-bottom: 2.5rem; padding: 0; }
.hx-hero__feature { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; color: rgba(240,240,240,.75); }
.hx-hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ── Features grid ─────────────────────────────────────────────────────── */
.hx-features-grid { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 3rem; }
.hx-feature-pill { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: .5rem 1.1rem; font-size: .9rem; color: rgba(240,240,240,.8); backdrop-filter: blur(6px); }
.hx-feature-pill__icon { font-size: .85rem; color: var(--color-accent,#c6f56f); }

/* ── Mission visual ─────────────────────────────────────────────────────── */
.hx-mission-visual { border-radius: 1.25rem; overflow: hidden; margin-top: 3rem; position: relative; height: 320px; background: linear-gradient(135deg, rgba(198,245,111,.08) 0%, rgba(131,231,238,.08) 50%, rgba(10,20,35,.9) 100%); border: 1px solid rgba(255,255,255,.08); }
.hx-mission-visual__gradient { position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 50%, rgba(198,245,111,.15) 0%, transparent 70%); }
.hx-mission-visual__label { position: absolute; bottom: 1.5rem; left: 1.5rem; font-family: var(--font-mono,monospace); font-size: .75rem; color: rgba(240,240,240,.5); letter-spacing: .1em; text-transform: uppercase; }

/* ── Timeline ───────────────────────────────────────────────────────────── */
.hx-timeline { margin-top: 3rem; display: grid; gap: 0; position: relative; }
.hx-timeline::before { content:''; position: absolute; left: 5.5rem; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.1); }
@media(max-width:640px){ .hx-timeline::before{left:4rem} }
.hx-timeline__item { display: grid; grid-template-columns: 7rem 1fr; gap: 0 2rem; padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.hx-timeline__item:last-child { border-bottom: none; }
.hx-timeline__year { font-family: var(--font-mono,monospace); font-size: .8125rem; font-weight: 700; color: var(--color-accent,#c6f56f); letter-spacing: .06em; padding-top: .15rem; position: relative; }
.hx-timeline__year::after { content:''; position: absolute; right: -.75rem; top: .55rem; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent,#c6f56f); box-shadow: 0 0 10px var(--color-accent,#c6f56f); }
.hx-timeline__heading { font-size: 1.0625rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.hx-timeline__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.hx-timeline__list li { font-size: .9375rem; color: rgba(240,240,240,.6); line-height: 1.55; padding-left: 1.25rem; position: relative; }
.hx-timeline__list li::before { content:'—'; position: absolute; left: 0; color: var(--color-accent-2,#83e7ee); font-size: .75rem; }

/* ── Team cards ─────────────────────────────────────────────────────────── */
.hx-team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1.5rem; margin: 2.5rem 0; }
.hx-team-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 1.25rem; padding: 2rem; transition: background .25s ease, border-color .25s ease; }
.hx-team-card:hover { background: rgba(255,255,255,.07); border-color: rgba(198,245,111,.25); }
.hx-team-card__avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--color-accent,#c6f56f) 0%, var(--color-accent-2,#83e7ee) 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.hx-team-card__initial { font-size: 1.25rem; font-weight: 800; color: #080808; }
.hx-team-card__name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.hx-team-card__role { font-family: var(--font-mono,monospace); font-size: .75rem; color: var(--color-accent,#c6f56f); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.hx-team-card__desc { font-size: .9rem; color: rgba(240,240,240,.55); line-height: 1.6; }

/* ── Quote ──────────────────────────────────────────────────────────────── */
.hx-quote { border-left: 3px solid var(--color-accent,#c6f56f); padding: 1.5rem 2rem; margin: 3rem 0 0; background: rgba(198,245,111,.04); border-radius: 0 1rem 1rem 0; }
.hx-quote__text { font-size: clamp(1.1rem,2.5vw,1.5rem); font-style: italic; color: rgba(240,240,240,.85); line-height: 1.55; margin-bottom: .75rem; }
.hx-quote__cite { font-family: var(--font-mono,monospace); font-size: .8rem; color: rgba(240,240,240,.4); letter-spacing: .06em; }

/* ── Stats row ──────────────────────────────────────────────────────────── */
.hx-stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
@media(max-width:900px){ .hx-stats-row{grid-template-columns:repeat(2,1fr)} }
@media(max-width:480px){ .hx-stats-row{grid-template-columns:1fr} }
.hx-stat { text-align: center; }
.hx-stat__number { display: block; font-size: clamp(2.5rem,5vw,4rem); font-weight: 900; letter-spacing: -0.04em; color: #fff; line-height: 1; margin-bottom: .5rem; }
.hx-stat__label { display: block; font-family: var(--font-mono,monospace); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--color-accent,#c6f56f); margin-bottom: .25rem; }
.hx-stat__sub { display: block; font-size: .8125rem; color: rgba(240,240,240,.4); }

/* ── CTA band ───────────────────────────────────────────────────────────── */
.hx-cta-band { padding: 6rem 0; background: linear-gradient(180deg, transparent 0%, rgba(198,245,111,.04) 100%); border-top: 1px solid rgba(255,255,255,.06); }
.hx-cta-band__inner { text-align: center; }
.hx-cta-band__title { font-size: clamp(2rem,5vw,4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #fff; margin-bottom: 1.25rem; }
.hx-cta-band__desc { font-size: 1.0625rem; color: rgba(240,240,240,.55); max-width: 48ch; margin: 0 auto 2.5rem; line-height: 1.7; }
.hx-cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ── Contact hero ───────────────────────────────────────────────────────── */
.hx-contact-hero { padding: 9rem 0 4rem; text-align: center; position: relative; z-index: 1; }
.hx-contact-hero::before { content:''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(131,231,238,.06) 0%, transparent 70%); pointer-events: none; }
.hx-contact-hero__title { font-size: clamp(2.5rem,7vw,5rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-bottom: 1.25rem; }
.hx-contact-hero__desc { font-size: 1.0625rem; color: rgba(240,240,240,.55); max-width: 52ch; margin: 0 auto; line-height: 1.7; }

/* ── Contact layout ─────────────────────────────────────────────────────── */
.hx-contact-body { padding: 2rem 0 6rem; position: relative; z-index: 1; }
.hx-contact-layout { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; }
@media(max-width:900px){ .hx-contact-layout{grid-template-columns:1fr} }

/* ── Contact sidebar cards ──────────────────────────────────────────────── */
.hx-contact-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.hx-contact-card { border-radius: 1.25rem; padding: 2rem; border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: .75rem; transition: border-color .25s ease; }
.hx-contact-card:hover { border-color: rgba(255,255,255,.18); }
.hx-contact-card--address { background: rgba(255,255,255,.04); }
.hx-contact-card--email   { background: linear-gradient(135deg, rgba(180,130,40,.25) 0%, rgba(220,160,60,.12) 100%); }
.hx-contact-card--plain   { background: rgba(255,255,255,.03); }
.hx-contact-card__icon { width: 48px; height: 48px; border-radius: .75rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.hx-contact-card__title { font-size: 1rem; font-weight: 700; color: #fff; margin: 0; }
.hx-contact-card__info { font-size: .9375rem; color: rgba(240,240,240,.55); line-height: 1.55; margin: 0; }
.hx-contact-card__link { color: rgba(240,240,240,.55); text-decoration: none; transition: color .2s ease; }
.hx-contact-card__link:hover { color: var(--color-accent,#c6f56f); }

/* ── Contact form ───────────────────────────────────────────────────────── */
.hx-contact-form-wrap { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 1.5rem; padding: 2.5rem; }
.hx-contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.hx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:600px){ .hx-form-row{grid-template-columns:1fr} }
.hx-form-group { display: flex; flex-direction: column; gap: .5rem; }
.hx-form-label { font-size: .875rem; font-weight: 600; color: rgba(240,240,240,.85); }
.hx-form-input { width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: .75rem; padding: .875rem 1.125rem; font-size: .9375rem; color: #fff; font-family: var(--font-body,'Space Grotesk',sans-serif); outline: none; transition: border-color .2s ease, background .2s ease; resize: none; }
.hx-form-input::placeholder { color: rgba(240,240,240,.25); }
.hx-form-input:focus { border-color: rgba(198,245,111,.5); background: rgba(255,255,255,.07); }
.hx-form-textarea { min-height: 140px; }
.hx-form-checkbox { display: flex; align-items: center; gap: .625rem; }
.hx-form-check { width: 16px; height: 16px; border-radius: 4px; accent-color: var(--color-accent,#c6f56f); cursor: pointer; flex-shrink: 0; }
.hx-form-check-label { font-size: .875rem; color: rgba(240,240,240,.5); cursor: pointer; }
.hx-form-link { color: var(--color-accent-2,#83e7ee); text-decoration: underline; text-underline-offset: 2px; }
.hx-form-link:hover { color: var(--color-accent,#c6f56f); }

/* ── FAQ grid ───────────────────────────────────────────────────────────── */
.hx-faq-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 2.5rem; }
@media(max-width:768px){ .hx-faq-grid{grid-template-columns:1fr} }
.hx-faq-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 1rem; padding: 1.75rem; transition: border-color .25s ease, background .25s ease; }
.hx-faq-item:hover { background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.14); }
.hx-faq-item__q { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .75rem; line-height: 1.4; }
.hx-faq-item__a { font-size: .9rem; color: rgba(240,240,240,.5); line-height: 1.65; }
