/* ================================================================
   MIXEDSKILLS THEME — Helix Earth Design Language
   Pure CSS, zero build step, zero external dependencies
   Font: Inter Tight | Palette: Navy + Cyan + Lime
   ================================================================ */

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

/* ── CSS Variables (Helix Earth tokens) ───────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #070e15;   /* helix-blue-dark-2 */
  --bg-mid:      #0b1420;   /* helix-blue-dark */
  --bg-card:     #0f1217;   /* background-6 */
  --bg-raised:   #181d26;   /* background-7 */
  --bg-surface:  #13171e;   /* background-5 */

  /* Accents */
  --accent-blue: #003e83;   /* helix-blue */
  --accent-cyan: #83e7ee;   /* ns-cyan */
  --accent-lime: #c6f56f;   /* ns-green / primary */
  --accent-yellow:#f9eb57;  /* ns-yellow */

  /* Text */
  --text:        #fcfcfc;
  --text-muted:  rgba(252,252,252,0.6);
  --text-subtle: rgba(252,252,252,0.3);

  /* Strokes */
  --stroke-1:    #1b232f;
  --stroke-2:    #202731;
  --stroke-3:    #2a333e;
  --stroke-4:    #303b49;

  /* Typography scale (Helix Earth exact) */
  --text-h1:     4.25rem;
  --text-h2:     3.25rem;
  --text-h3:     2.5rem;
  --text-h4:     2rem;
  --text-h5:     1.5rem;
  --text-h6:     1.25rem;
  --text-tag1:   1rem;
  --text-tag2:   .875rem;
  --text-tag3:   .75rem;

  /* Font */
  --font: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;

  /* Easing */
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.5;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; font-family: inherit; color: inherit; cursor: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--text); }
p { color: var(--text-muted); line-height: 1.65; }
ul, ol { list-style: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

::selection { background: var(--accent-cyan); color: #000; }

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

/* ── Layout ─────────────────────────────────────────────────────── */
.wrap {
  max-width: 1290px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ── GSAP Initial State (Helix Earth [data-ns-animate]) ──────── */
[data-ns-animate] { opacity: 0; }

/* ── Keyframes ──────────────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes scroll-line {
  from { top: -100%; }
  to   { top: 100%; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes noise-drift {
  0%,  100% { transform: translate(0, 0); }
  25%        { transform: translate(2%, -1%); }
  50%        { transform: translate(-2%, 5%); }
  75%        { transform: translate(1%, 8%); }
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}
@keyframes textAnimate {
  0%   { background-position: 0%; }
  50%  { background-position: 100%; }
  100% { background-position: 0%; }
}
@keyframes top-to-bottom {
  0%   { top: -30%; }
  50%  { top: 50%; }
  100% { top: 100%; }
}
@keyframes count-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   LOADER
   ================================================================ */
#ms-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: min(320px, 85vw);
}

.loader-wordmark {
  font-family: var(--font);
  font-size: clamp(.875rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
}

.loader-bar-wrap {
  width: 100%;
  height: 1px;
  background: var(--stroke-1);
  position: relative;
  overflow: hidden;
}

.loader-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-lime));
  transition: width .05s linear;
}

.loader-counter {
  font-family: var(--font);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--text);
  min-width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ================================================================
   PAGE CURTAIN
   ================================================================ */
#ms-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ================================================================
   CUSTOM CURSOR
   ================================================================ */
#ms-cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9998;
  pointer-events: none;
  will-change: transform;
}

#cursor-ring {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(131, 231, 238, 0.4);
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: border-color .3s;
}

#cursor-dot {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  transform: translate(-50%, -50%);
}

#cursor-label {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

#cursor-label-txt {
  font-family: var(--font);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}

/* ================================================================
   NAVIGATION — Floating Pill (Helix Earth exact)
   ================================================================ */
#ms-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  pointer-events: none;
}

/* Wrapper moves from top:56px → top:20px on scroll */
.nav-wrap {
  position: absolute;
  top: 3.5rem;     /* 56px — helixearth rest state */
  left: 0; right: 0;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  pointer-events: none;
  transition: top .5s var(--ease-in-out), padding .5s var(--ease-in-out);
}

.nav-wrap.scrolled {
  top: 20px;
}

/* The pill */
.nav-pill {
  max-width: 1290px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(11, 20, 32, 0.72);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  padding: .625rem .625rem .625rem 1.5rem;
  pointer-events: all;
  transition: background .5s var(--ease-in-out), box-shadow .5s var(--ease-in-out);
}

.nav-wrap.scrolled .nav-pill {
  background: rgba(7, 14, 21, 0.94);
  box-shadow: 0 8px 48px rgba(0, 0, 0, .7), 0 1px 0 rgba(255,255,255,.04);
}

/* Logo */
.nav-logo {
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .7; }

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

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

.nav-link {
  font-size: var(--text-tag2);
  font-weight: 400;
  color: var(--text-muted);
  padding: .5rem 1rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--stroke-2);
}

.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--stroke-2);
}

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* CTA button in nav */
.nav-cta-btn {
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: #070e15;
  background: var(--accent-lime);
  border-radius: 9999px;
  padding: .5rem 1.25rem;
  transition: background .3s, transform .3s, box-shadow .3s;
  white-space: nowrap;
}
.nav-cta-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(198, 245, 111, .25);
}

@media (max-width: 640px) { .nav-cta-btn { display: none; } }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--stroke-2) !important;
  transition: border-color .3s;
  flex-shrink: 0;
}

@media (max-width: 768px) { .hamburger { display: flex; } }

.ham-line {
  display: block;
  width: 14px; height: 1.5px;
  background: var(--text);
  transition: transform .4s var(--ease-expo), opacity .3s;
  transform-origin: center;
}

body.menu-open .ham-line:first-child { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .ham-line:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Menu ─────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(2rem, 8vw, 5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--stroke-1);
  transition: padding-left .4s var(--ease-expo);
}

.mobile-link:hover { padding-left: 1rem; }
.mobile-link:last-child { border-bottom: none; }

.mobile-idx {
  font-family: var(--font);
  font-size: .6875rem;
  letter-spacing: .1em;
  color: var(--text-subtle);
  min-width: 2.5rem;
  flex-shrink: 0;
}

.mobile-txt {
  font-family: var(--font);
  font-size: clamp(2.5rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--text-subtle);
  line-height: 1;
  transition: color .3s;
}

.mobile-link:hover .mobile-txt { color: var(--text); }
.mobile-link--cta .mobile-txt  { color: var(--accent-lime); }
.mobile-link--active .mobile-txt { color: var(--text); }

.mobile-menu__bottom {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

.mobile-social {
  font-family: var(--font);
  font-size: .6875rem;
  letter-spacing: .15em;
  color: var(--text-subtle);
  transition: color .2s;
}
.mobile-social:hover { color: var(--accent-cyan); }

body.menu-open { overflow: hidden; }

/* ================================================================
   HERO SECTION
   ================================================================ */
.ms-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

/* Gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
  pointer-events: none;
}

.hero-orb-1 {
  width: 70vw; height: 70vw;
  top: -25%; right: -20%;
  background: radial-gradient(circle, rgba(0, 62, 131, .22) 0%, transparent 65%);
  animation: orb-pulse 16s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 55vw; height: 55vw;
  bottom: -10%; left: -15%;
  background: radial-gradient(circle, rgba(131, 231, 238, .1) 0%, transparent 65%);
  animation: orb-pulse 20s ease-in-out infinite alternate-reverse;
}

.hero-orb-3 {
  width: 40vw; height: 40vw;
  top: 30%; left: 30%;
  background: radial-gradient(circle, rgba(198, 245, 111, .06) 0%, transparent 65%);
  animation: orb-pulse 24s ease-in-out infinite alternate;
}

/* Film grain */
.hero-grain {
  position: absolute;
  inset: -50%;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.animate-noise-drift { animation: noise-drift 1.2s steps(4, end) infinite; }

/* Hero inner content — bottom aligned */
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(8rem, 14vw, 12rem) clamp(1.25rem, 5vw, 3rem) clamp(2.5rem, 4vw, 4rem);
  max-width: 1290px;
  margin: 0 auto;
  width: 100%;
}

/* Eyebrow badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
  opacity: 0; /* Set by GSAP after load */
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: blink 2.4s ease infinite;
  flex-shrink: 0;
}

/* Giant title (Helix Earth: clamp(2rem,18vw,18rem)) */
.hero-title {
  font-size: clamp(3.5rem, 12vw, 14rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--text);
  overflow: visible;
  margin-bottom: 0;
}

.hero-title-line {
  display: block;
  overflow: hidden;
  line-height: .95;
}

.hero-title-inner {
  display: block;
  transform: translateY(110%); /* Animated by GSAP */
}

/* Bottom sub-row */
.hero-sub-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: clamp(2.5rem, 4vw, 4rem);
  opacity: 0; /* Set by GSAP */
}

.hero-desc {
  font-size: clamp(.875rem, 1.2vw, 1.0625rem);
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(2rem, 4vw, 3rem);
  opacity: 0;
}

.hero-scroll-line {
  width: 1px; height: 60px;
  background: var(--stroke-1);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 60%;
  background: linear-gradient(to bottom, transparent, var(--accent-cyan));
  animation: scroll-line 2.4s ease infinite;
}

.hero-scroll-text {
  font-size: .5625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-subtle);
  writing-mode: vertical-rl;
}

/* Marquee strip */
.hero-marquee-strip {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--bg-mid);
  border-top: 1px solid var(--stroke-1);
  padding: .875rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stroke-3);
  padding: 0 2rem;
  transition: color .3s;
}

.marquee-item:hover { color: var(--accent-lime); }

.marquee-sep {
  color: var(--accent-cyan);
  font-size: .4rem;
  opacity: .4;
  flex-shrink: 0;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .8125rem 1.625rem;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 9999px;
  transition: all .35s var(--ease-expo);
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}

.btn svg { width: 1rem; height: 1rem; transition: transform .3s var(--ease-expo); }
.btn:hover svg { transform: translateX(4px); }

/* Lime / primary */
.btn-lime {
  background: var(--accent-lime);
  color: #070e15;
  border-color: var(--accent-lime);
}
.btn-lime:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(198, 245, 111, .22);
}

/* Outline */
.btn-outline {
  border-color: var(--stroke-3);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Ghost */
.btn-ghost {
  color: var(--text-muted);
  padding-inline: 0;
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text); }

/* ================================================================
   SECTIONS
   ================================================================ */
.ms-section { padding-block: clamp(5rem, 10vw, 9rem); }
.ms-section-dark    { background: var(--bg-mid); }
.ms-section-darker  { background: var(--bg); }

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

.section-eyebrow {
  display: block;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: .875rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.1;
}

.section-desc {
  font-size: clamp(.9375rem, 1.2vw, 1.0625rem);
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}

/* ================================================================
   PORTFOLIO LIST
   ================================================================ */
.ms-portfolio-list { display: flex; flex-direction: column; }

.ms-portfolio-item {
  border-top: 1px solid var(--stroke-1);
  position: relative;
  overflow: hidden;
}

.ms-portfolio-item:last-child { border-bottom: 1px solid var(--stroke-1); }

.ms-portfolio-item__link {
  display: grid;
  grid-template-columns: 3.5rem 1fr 300px auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.5rem, 2.5vw, 2.5rem) 0;
  transition: none;
}

@media (max-width: 900px) {
  .ms-portfolio-item__link {
    grid-template-columns: 1fr 240px auto;
  }
  .ms-portfolio-item__index { display: none; }
}

@media (max-width: 640px) {
  .ms-portfolio-item__link {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .ms-portfolio-item__arrow { display: none; }
}

.ms-portfolio-item__index {
  font-size: .625rem;
  letter-spacing: .08em;
  color: var(--stroke-3);
  font-weight: 400;
  align-self: flex-start;
  padding-top: .25rem;
}

.ms-portfolio-item__info { display: flex; flex-direction: column; gap: .5rem; }

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

.ms-portfolio-item__cat,
.ms-portfolio-item__year {
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 400;
}

.ms-portfolio-item__meta-sep {
  color: var(--stroke-2);
  font-size: .75rem;
}

.ms-portfolio-item__title {
  font-size: clamp(1.375rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.05;
  transition: color .35s;
}

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

.ms-portfolio-item__desc {
  font-size: var(--text-tag3);
  color: var(--text-subtle);
  line-height: 1.55;
  max-width: 400px;
}

.ms-portfolio-item__media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: .5rem;
  background: var(--bg-card);
}

.ms-portfolio-item__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-expo);
}

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

.ms-portfolio-item__placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-portfolio-item__placeholder-text {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -.05em;
  color: rgba(252,252,252,.08);
  text-transform: uppercase;
}

.ms-portfolio-item__line {
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--accent-lime);
  transition: width .6s var(--ease-expo);
}

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

.ms-portfolio-item__arrow {
  font-size: 1.25rem;
  color: var(--text-subtle);
  transition: color .3s, transform .4s var(--ease-expo);
  line-height: 1;
}

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

/* ================================================================
   INTRO BLOCK
   ================================================================ */
.ms-intro { max-width: 960px; }

.intro-body {
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.02em;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.intro-body strong { color: var(--text); font-weight: 600; }

/* ================================================================
   SERVICES GRID
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1px;
  background: var(--stroke-1);
  border: 1px solid var(--stroke-1);
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  padding: clamp(2rem, 4vw, 3rem);
  transition: background .4s;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.service-card:hover { background: var(--bg-raised); }

.service-tag {
  font-size: .5625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 500;
}

.service-icon {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  line-height: 1;
  margin-top: .5rem;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text);
  line-height: 1.3;
}

.service-desc {
  font-size: .875rem;
  color: var(--text-subtle);
  line-height: 1.65;
  flex: 1;
}

/* ================================================================
   STATS
   ================================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--stroke-1);
  border-radius: 1rem;
  overflow: hidden;
}

.stat-item {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--stroke-1);
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

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

@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: 1px solid var(--stroke-1); border-bottom: 1px solid var(--stroke-1); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:last-child, .stat-item:nth-last-child(2) { border-bottom: none; }
}

.stat-num {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -.05em;
  color: var(--accent-lime);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-sublabel {
  font-size: .6875rem;
  color: var(--text-subtle);
  letter-spacing: .03em;
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke-1);
  border-radius: 1rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color .3s;
}

.testimonial-card:hover { border-color: var(--stroke-3); }

.testimonial-stars {
  color: var(--accent-yellow);
  font-size: .875rem;
  letter-spacing: .1em;
}

.testimonial-quote {
  font-size: clamp(.9375rem, 1.2vw, 1.0625rem);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stroke-1);
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: var(--text-tag2);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.testimonial-role {
  font-size: var(--text-tag3);
  color: var(--text-subtle);
  line-height: 1.3;
  margin-top: .125rem;
}

/* ================================================================
   CTA BAND
   ================================================================ */
.ms-cta-band {
  background: var(--bg-mid);
  border-top: 1px solid var(--stroke-1);
}

.cta-band-inner {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.cta-band-badge {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 500;
}

.cta-band-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: blink 2.4s ease infinite;
}

.cta-band-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--text);
}

.cta-title-accent {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-lime);
  background: linear-gradient(45deg, var(--accent-lime), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-band-desc {
  font-size: clamp(.9375rem, 1.2vw, 1.0625rem);
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  text-align: center;
}

.cta-band-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ================================================================
   PAGE HERO (sub-pages)
   ================================================================ */
.ms-page-hero {
  padding-top: clamp(9rem, 16vw, 15rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  background: var(--bg);
}

.ms-page-hero__eyebrow {
  display: block;
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  opacity: 0; /* GSAP */
}

.ms-page-hero__title {
  font-size: clamp(4rem, 10vw, 12rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--text);
}

.ms-page-hero__title-line { display: block; overflow: hidden; }
.ms-page-hero__title-inner { display: block; transform: translateY(110%); }

.ms-page-hero__desc {
  margin-top: 2.5rem;
  font-size: clamp(.9375rem, 1.3vw, 1.125rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
  opacity: 0; /* GSAP */
}

/* ================================================================
   FILTER
   ================================================================ */
.ms-filter {
  border-bottom: 1px solid var(--stroke-1);
  padding: 1.25rem 0;
  background: var(--bg);
}

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

.ms-filter__btn {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: .5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: all .25s;
  cursor: none;
}

.ms-filter__btn:hover { color: var(--text); border-color: var(--stroke-2); }
.ms-filter__btn--active {
  background: var(--accent-lime);
  color: #070e15;
  border-color: var(--accent-lime);
}

/* ================================================================
   FOOTER
   ================================================================ */
.ms-footer {
  padding-top: clamp(5rem, 10vw, 8rem);
  border-top: 1px solid var(--stroke-1);
  background: var(--bg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

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

.footer-logo {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
  transition: opacity .2s;
}
.footer-logo:hover { opacity: .7; }

.footer-tagline {
  font-size: var(--text-tag2);
  color: var(--text-subtle);
  line-height: 1.65;
  max-width: 300px;
}

.footer-big-link {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.footer-cta-label {
  font-size: .625rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: .5rem;
}

.footer-cta-text {
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--text);
  line-height: 1.05;
  transition: color .3s;
}

.footer-big-link:hover .footer-cta-text { color: var(--accent-lime); }

.footer-cta-arr {
  font-size: clamp(1.75rem, 3.5vw, 3.5rem);
  color: var(--accent-lime);
  transition: transform .5s var(--ease-expo);
  align-self: flex-end;
  line-height: 1;
}

.footer-big-link:hover .footer-cta-arr { transform: translate(8px, -8px); }

.footer-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 2rem;
  border-top: 1px solid var(--stroke-1);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav-link {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-subtle);
  transition: color .2s;
}
.footer-nav-link:hover { color: var(--text); }

.footer-social { display: flex; gap: .75rem; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  font-size: .6rem;
  letter-spacing: .08em;
  font-weight: 500;
  color: var(--stroke-3);
  border: 1px solid var(--stroke-1);
  border-radius: 50%;
  transition: all .3s;
}

.social-link:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.footer-divider {
  height: 1px;
  background: var(--stroke-1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem 2.5rem;
}

.footer-copy, .footer-made {
  font-size: .625rem;
  letter-spacing: .1em;
  color: var(--stroke-3);
}

.back-top {
  font-size: .625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  transition: color .3s;
  cursor: none;
}
.back-top:hover { color: var(--accent-lime); }

/* ================================================================
   PROJECT DETAIL
   ================================================================ */
.ms-project-hero { padding-top: 5rem; }

.ms-project-hero__media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: 1rem;
}

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

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

.ms-project-header__title {
  font-size: clamp(3rem, 8vw, 10rem);
  line-height: .9;
  letter-spacing: -.05em;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

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

.ms-project-meta__item {
  border-left: 1px solid var(--stroke-1);
  padding-left: 1.25rem;
}

.ms-project-meta__label {
  display: block;
  font-size: .5625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: .4rem;
}

.ms-project-meta__value {
  font-size: var(--text-tag1);
  font-weight: 500;
  color: var(--text);
}

.ms-prose {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 720px;
}
.ms-prose h2, .ms-prose h3 { color: var(--text); margin: 2em 0 .75em; }
.ms-prose p { margin-bottom: 1.25em; }
.ms-prose a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 3px; }
.ms-prose strong { color: var(--text); font-weight: 600; }

/* Gallery */
.ms-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(.75rem, 1.5vw, 1.5rem);
}
.ms-gallery-item { overflow: hidden; border-radius: .5rem; background: var(--bg-card); }
.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; aspect-ratio: 16/5; }
@media (max-width: 768px) { .ms-gallery-item { grid-column: 1/-1 !important; aspect-ratio: auto !important; } }
.ms-gallery-item__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-expo); }
.ms-gallery-item:hover .ms-gallery-item__img { transform: scale(1.04); }

/* Project nav */
.ms-project-nav { padding: clamp(3rem,6vw,6rem) 0; border-top: 1px solid var(--stroke-1); }
.ms-project-nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
@media (max-width: 640px) { .ms-project-nav__inner { grid-template-columns: 1fr; } }
.ms-project-nav__item { display: flex; flex-direction: column; gap: .625rem; transition: opacity .3s; }
.ms-project-nav__item:hover { opacity: .65; }
.ms-project-nav__item--prev { align-items: flex-start; }
.ms-project-nav__item--next { align-items: flex-end; }
.ms-project-nav__dir { font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); }
.ms-project-nav__title { font-size: clamp(1rem, 2vw, 1.625rem); letter-spacing: -.02em; color: var(--text); transition: color .3s; }
.ms-project-nav__item:hover .ms-project-nav__title { color: var(--accent-lime); }
.ms-project-nav__back { display: flex; align-items: center; justify-content: center; color: var(--text-subtle); transition: color .3s, transform .4s; }
.ms-project-nav__back svg { width: 40px; height: 40px; }
.ms-project-nav__back:hover { color: var(--accent-lime); transform: scale(1.1); }

/* ================================================================
   ERROR PAGE
   ================================================================ */
.ms-error-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
}

.ms-error-page__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.ms-error-page__number {
  font-size: clamp(8rem, 26vw, 22rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke-2);
  margin-bottom: 2rem;
}

.ms-error-page__title {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.ms-error-page__desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.ms-error-page__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.ms-empty-state {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--text-subtle);
  font-size: var(--text-tag2);
  border: 1px dashed var(--stroke-1);
  border-radius: 1rem;
}

/* ================================================================
   ACCESSIBILITY & STATES
   ================================================================ */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  [data-ns-animate] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-title-inner { transform: translateY(0) !important; }
  .ms-page-hero__title-inner { transform: translateY(0) !important; }
}
