/* ═══════════════════════════════════════════════════════════
   MAWG DESIGN — Redesign 2025
   GT Flex · DM Mono · Inter · light theme · Awwwards-level
═══════════════════════════════════════════════════════════ */

/* ─── CUSTOM FONTS ──────────────────────────────────────── */
@font-face {
  font-family: 'GT Flex';
  src: url('../fonts/GT%20Flexa/GT-Flexa-Extended-Black.woff2') format('woff2'),
       url('../fonts/GT%20Flexa/GT-Flexa-Extended-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Brand Primary Colors */
  --blurple:   #5769E7;
  --indigo:    #201650;
  --haze:      #F3EEEE;
  --black:     #000000;
  --white:     #FFFFFF;

  /* Brand Secondary Colors */
  --maple:     #F5333F;
  --sky:       #AEE2E3;
  --butter:    #F3DD6C;
  --flamingo:  #F87FB4;
  --seafoam:   #85ED91;

  /* Legacy/Fallbacks */
  --off-white: #f5f4f0;
  --surface:   #eeece6;
  --ink:       #1a1a1a;
  --grey:      #888882;
  --grey-lt:   #c8c7c2;
  --border:    #e0deda;
  --cream:     #F3EEEE;
  --yellow:    #F3DD6C;
  --red:       #F5333F;
  --blue:      #5769E7;
  --green:     #85ED91;

  --font: 'DM Sans', sans-serif;
  --font-headline: 'GT Flex', sans-serif;
  --font-accent: 'DM Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.76, 0, 0.24, 1);

  --nav-h: 72px;
  --section-pad: clamp(80px, 10vw, 140px);
  --container: 1320px;
  --gutter: clamp(24px, 5vw, 80px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ─── CUSTOM CURSOR — expanding circle ────────────────────── */
body {
  font-family: var(--font);
  background: var(--haze);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); border: none; background: none; cursor: none; }

a, button, .service-item, .work-card, input, textarea, select { cursor: none; }

#custom-cursor {
  position: fixed;
  width: 22px;
  height: 22px;
  border: 1.5px solid #fff;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  top: -40px; left: -40px;
  mix-blend-mode: difference;
  transition: width 0.35s var(--ease-out-expo),
              height 0.35s var(--ease-out-expo),
              background-color 0.35s var(--ease-out-expo),
              opacity 0.3s;
}
#custom-cursor.is-link {
  width: 52px;
  height: 52px;
  background-color: rgba(255, 255, 255, 0.28);
}
#custom-cursor.is-hidden { opacity: 0; }

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
.overline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo);
  display: block;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--indigo);
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--indigo);
  color: var(--haze);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out-expo);
}
.btn:hover {
  background: var(--blurple);
  color: var(--haze);
  transform: scale(1.04);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--flamingo);
  color: var(--flamingo);
}
.btn--outline:hover {
  background: var(--flamingo);
  color: var(--haze);
}

/* ─── SCROLL REVEAL — text clip ─────────────────────────── */
.reveal-text {
  overflow: hidden;
  /* Push clip boundary down enough for descenders (g, p, y, q) */
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}
.reveal-text__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
  /* Mirror padding so text baseline stays in place */
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}
.reveal-text.is-visible .reveal-text__inner {
  transform: translateY(0);
}

/* ─── SCROLL REVEAL — fade up ───────────────────────────── */
.reveal-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out-expo),
              transform 0.9s var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
}
.reveal-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── IMAGE REVEAL ───────────────────────────────────────── */

/* Homepage work grid — clip reveal on the img wrapper */
.expand-img .work-card__img-wrap {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--ease-out-expo);
}
.expand-img.is-visible .work-card__img-wrap {
  clip-path: inset(0% 0 0 0);
}

/* Case study gallery figures — slide-up from below */
.cs-figure {
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  background: var(--surface);
}
.cs-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Starts below and slightly zoomed; slides up into place */
  transform: translateY(48px) scale(1.04);
  opacity: 0;
  transition: transform 1s var(--ease-out-expo),
              opacity 0.8s var(--ease-out-expo);
  transition-delay: var(--img-delay, 0s);
}
.cs-figure.is-visible img {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ─── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  z-index: 1000;
  background: transparent;
  box-shadow: 0 1px 0 transparent;
  transition: background 0.25s, box-shadow 0.25s;
  will-change: background;
}
.nav.scrolled,
.nav.nav--white {
  background: var(--haze);
  box-shadow: 0 1px 0 var(--border);
}
.nav.scrolled .nav__menu-btn span,
.nav.nav--white .nav__menu-btn span {
  background: var(--indigo);
}

/* .nav__logo — new SVG-based logo */
.nav__logo {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  text-decoration: none;
}
.nav__logo-img {
  height: 32px;
  width: auto;
  transition: opacity 0.3s;
}
.nav__logo:hover .nav__logo-img {
  opacity: 0.8;
}

.nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav__link {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--haze);
  transition: color 0.4s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease-out-expo);
}
.nav__link:hover::after { width: 100%; }

/* Once nav background appears, switch links to indigo */
.nav.scrolled .nav__link,
.nav.nav--white .nav__link {
  color: var(--indigo);
}
.nav.scrolled .nav__link:hover,
.nav.nav--white .nav__link:hover {
  color: var(--indigo);
}

.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--haze);
  transition: transform 0.35s var(--ease-out-expo), background 0.25s;
}
.nav__menu-btn.open span { background: var(--indigo); }
.nav__menu-btn.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu-btn.open span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--haze);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: all; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu__link {
  display: block;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  padding: 12px 0;
  color: var(--indigo);
  transition: color 0.25s;
}
.mobile-menu__link:hover { color: var(--yellow); }

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero--spline {
  height: 100svh;
}

.hero__spline-iframe {
  position: absolute;
  /* Scale up ~8% and shift up so the "Built with Spline" badge is cropped below the fold */
  top: 0; left: -4%;
  width: 108%;
  height: 108%;
  border: none;
  display: block;
  opacity: 0;
  animation: splineFadeIn 1.4s var(--ease-out-expo) 0.3s forwards;
}

.hero__spline-cursor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

@keyframes splineFadeIn {
  to { opacity: 1; }
}

/* ─── HERO TAGLINE ──────────────────────────────────────── */
.hero-tagline {
  padding: clamp(64px, 8vw, 100px) var(--gutter);
  background: var(--haze);
}

.hero-tagline__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-tagline__headline {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--indigo);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.hero-tagline__part {
  display: block;
  overflow: hidden;
}

.hero-tagline__part--2 {
  color: var(--blurple);
}

.hero-tagline__subheadline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  right: var(--gutter);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--haze);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.hero__scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: var(--grey);
  animation: scrollLine 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── SERVICES ──────────────────────────────────────────── */
.services {
  padding: clamp(40px, 5vw, 80px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.services__intro {
  margin-bottom: 4rem;
}

/* Decorative animated square */
.services__list {
  position: relative;
  z-index: 1;
}

.services__deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.services__deco--square {
  width: 340px;
  height: 340px;
  border: 1.5px solid var(--grey-lt);
  opacity: 0.22;
  top: 50%;
  left: 50%;
  animation: decoRotate 35s linear infinite;
}
@keyframes decoRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.service-item {
  display: block;
  position: relative;
  padding: clamp(28px, 4vw, 56px) 0;
}

.service-item__line {
  height: 1px;
  background: var(--border);
  transition: background 0.4s;
}
.service-item:first-child { border-top: 1px solid var(--border); }
.service-item:hover .service-item__line { background: var(--ink); }

.service-item__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.service-item__num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--grey-lt);
  min-width: 28px;
  transition: color 0.3s;
}
.service-item:hover .service-item__num { color: var(--ink); }

.service-item__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  flex: 1;
  transition: transform 0.5s var(--ease-out-expo), color 0.3s;
  color: var(--indigo);
}
.service-item:hover .service-item__title {
  transform: translateX(16px);
}

/* Colour accents on hover per service */
.service-item:nth-child(1):hover .service-item__title { color: var(--yellow); }
.service-item:nth-child(2):hover .service-item__title { color: var(--red); }
.service-item:nth-child(3):hover .service-item__title { color: var(--blue); }
.service-item:nth-child(4):hover .service-item__title { color: var(--green); }

.service-item__arrow {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--indigo);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out-expo);
}
.service-item:hover .service-item__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── MOUSE TRAIL ───────────────────────────────────────── */
.trail-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}

.trail-img {
  position: absolute;
  width: 220px;
  height: 155px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.8) rotate(-3deg);
  pointer-events: none;
  will-change: transform, opacity;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.trail-img.show {
  animation: trailIn 1s var(--ease-out-expo) forwards;
}
@keyframes trailIn {
  0%   { opacity: 0;   transform: scale(0.8) rotate(-4deg); }
  25%  { opacity: 1;   transform: scale(1.02) rotate(1.5deg); }
  70%  { opacity: 0.85; transform: scale(1) rotate(-1deg); }
  100% { opacity: 0;   transform: scale(0.95) rotate(2deg); }
}

/* ─── SELECTED WORK ─────────────────────────────────────── */
.work {
  padding: clamp(40px, 5vw, 80px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.work__header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  display: block;
}
.work-card--wide {
  grid-column: 1 / -1;
}

.work-card__img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 8px;
  background: var(--surface);
  position: relative;
}
.work-card--wide .work-card__img-wrap {
  aspect-ratio: 16/7;
}
.work-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out-expo);
}
.work-card:hover .work-card__img-wrap img {
  transform: scale(1.06);
}

.work-card__info {
  padding: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.work-card__cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
}
.work-card__title {
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  transition: color 0.25s;
}
.work-card:hover .work-card__title { color: var(--blue); }

/* ─── HOME WORK STRIP (non-case-study projects) ─────────── */
.work-strip {
  padding: 0 var(--gutter) var(--section-pad);
  max-width: var(--container);
  margin: 0 auto;
}
.work-strip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.work-strip__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0;
}
.work-strip__arrows {
  display: flex;
  gap: 8px;
}
.work-strip__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--haze);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: none;
}
.work-strip__arrow:hover {
  background: var(--indigo);
  color: var(--haze);
  border-color: var(--indigo);
}
.work-strip__scroll {
  overflow-x: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.work-strip__scroll::-webkit-scrollbar { display: none; }

.work-strip__track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.work-strip__item {
  flex-shrink: 0;
  width: clamp(240px, 30vw, 360px);
}
.work-strip__item figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
}
.work-strip__item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out-expo);
}
.work-strip__item:hover figure img { transform: scale(1.06); }

/* WNBA image has baked-in black letterbox bars — zoom to crop them */
.work-strip__item figure img[src*="wnba"] {
  transform: scale(1.28);
  object-position: center center;
}
.work-strip__item:hover figure img[src*="wnba"] { transform: scale(1.34); }
.work-strip__item figcaption {
  font-size: 12px;
  color: var(--indigo);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* Footer static logo */
.footer__logo-img {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

/* ─── ABOUT ─────────────────────────────────────────────── */
.about {
  padding: var(--section-pad) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  /* Vertical single-column layout */
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
}

.about__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Two-column text layout within the left block */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 80px);
  align-items: end;
}
.about__left .section-title { margin-bottom: 0; }

.about__body {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--indigo);
  margin-bottom: 28px;
  max-width: 520px;
}

.about__stats {
  display: grid;
  /* 6 stats in a single horizontal row */
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 0;
}

.stat {
  padding: 28px 0;
  border-right: 1px solid var(--border);
  padding-right: 20px;
  padding-left: 20px;
}
.stat:first-child { padding-left: 0; }
.stat:last-child  { border-right: none; }

.stat__num {
  display: block;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stat__label {
  display: block;
  font-size: 12px;
  color: var(--indigo);
  margin-top: 8px;
  font-weight: 400;
}

/* ─── LEARN MORE EXPANDABLE ─────────────────────────────── */
.about__more {
  grid-column: 1 / -1;
}

.about__more-summary {
  background: none;
  border: none;
  padding: 0;
  padding-left: 28px;
  cursor: pointer;
  font-family: var(--font);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--blurple);
  font-weight: 600;
  margin-top: 16px;
  user-select: none;
  position: relative;
  text-align: left;
  transition: color 0.3s;
}

.about__more-summary:hover {
  color: var(--indigo);
}

.about__more-summary::before {
  content: '+';
  position: absolute;
  left: 0;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.4s var(--ease-out-expo);
}

.about__more.is-open .about__more-summary::before {
  transform: rotate(45deg);
}

/* Animated body — JS sets explicit heights; CSS drives the transition */
.about__more-body {
  overflow: hidden;
  height: 0;
  transition: height 0.7s var(--ease-out-expo);
}

.about__more-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  padding-top: 36px;
  padding-bottom: 12px;
}

.about__more-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__more-text p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--indigo);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out-expo), transform 0.55s var(--ease-out-expo);
}

.about__more-text p.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about__quote {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--indigo);
}

.about__quote .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}

.about__quote.words-visible .word {
  opacity: 1;
  transform: translateY(0);
}

/* Portrait pair — stacked with gap, Michael above Thomas */
.about__team {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding-top: 8px;
  gap: 20px;
}

.team-member {
  width: 86%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--haze);
  border-radius: 8px;
  padding: 10px 10px 16px;
  position: relative;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.13);
}

.team-member:first-child { /* Michael */
  transform: rotate(-2.5deg);
  align-self: flex-start;
}

.team-member:last-child { /* Thomas — lower, offset to the right */
  transform: rotate(2deg);
  align-self: flex-end;
}

.team-member__img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 1;
  display: block;
}

.team-member__name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 10px;
}

.team-member__title {
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 500;
  color: var(--indigo);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ─── CAPABILITIES ──────────────────────────────────────── */
.capabilities {
  padding: var(--section-pad) var(--gutter);
  background: var(--indigo);
  color: var(--haze);
  border-radius: 16px;
  box-sizing: border-box;
  margin: 0 var(--gutter);
  overflow: hidden;
}

.capabilities .overline { color: rgba(255,255,255,0.4); }

.capabilities__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.capabilities__intro .section-title {
  color: var(--haze);
  margin-bottom: 0;
}
.capabilities__intro-sub {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: rgba(255,255,255,0.45);
  max-width: 320px;
  line-height: 1.65;
  flex-shrink: 0;
}

.capabilities__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255,255,255,0.07);
}

.cap-card {
  position: relative;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 52px);
  background: var(--indigo);
  overflow: hidden;
  transition: background 0.45s var(--ease-out-expo);
}

/* Large decorative number in the background */
.cap-card__bg-num {
  position: absolute;
  bottom: -0.12em;
  right: -0.04em;
  font-size: clamp(8rem, 16vw, 18rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
  transition: color 0.45s, transform 0.6s var(--ease-out-expo);
  font-family: var(--font);
  user-select: none;
}
.cap-card:hover .cap-card__bg-num {
  color: rgba(255,255,255,0.08);
  transform: scale(1.06) translateY(-4px);
}

.cap-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.35);
  transition: color 0.35s;
}

.cap-card__title {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--haze);
  transition: transform 0.45s var(--ease-out-expo);
}
.cap-card:hover .cap-card__title { transform: translateX(8px); }

.cap-card__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
  max-width: 300px;
  transition: color 0.35s;
}
.cap-card:hover .cap-card__desc { color: rgba(255,255,255,0.65); }

/* Per-card hover accent colours + icon colour */
.cap-card:nth-child(1):hover { background: rgba(245,200,66,0.1); }
.cap-card:nth-child(1):hover .cap-card__icon { color: var(--yellow); }
.cap-card:nth-child(2):hover { background: rgba(217,79,61,0.1); }
.cap-card:nth-child(2):hover .cap-card__icon { color: var(--red); }
.cap-card:nth-child(3):hover { background: rgba(80,120,255,0.2); }
.cap-card:nth-child(3):hover .cap-card__icon { color: #7ba7f7; }
.cap-card:nth-child(4):hover { background: rgba(58,184,122,0.1); }
.cap-card:nth-child(4):hover .cap-card__icon { color: var(--green); }
.cap-card:nth-child(5):hover { background: rgba(245,200,66,0.1); }
.cap-card:nth-child(5):hover .cap-card__icon { color: var(--yellow); }
.cap-card:nth-child(6):hover { background: rgba(217,79,61,0.1); }
.cap-card:nth-child(6):hover .cap-card__icon { color: var(--red); }

/* ─── MARQUEE ───────────────────────────────────────────── */
.clients {
  padding: var(--section-pad) 0;
  overflow: hidden;
  background: var(--haze);
}
.clients .overline {
  padding: 0 var(--gutter);
  margin-bottom: 2.5rem;
}

.marquee { overflow: hidden; }
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.marquee__item img {
  height: clamp(28px, 3.5vw, 44px);
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
  opacity: 0.22;
  /* No hover interaction — static display only */
}

/* ─── TESTIMONIAL ───────────────────────────────────────── */
.testimonial {
  padding: var(--section-pad) var(--gutter);
  text-align: center;
  background: var(--off-white);
}
.testimonial__inner {
  max-width: 900px;
  margin: 0 auto;
}
.testimonial__quote {
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-style: normal;
  overflow: hidden;
  color: var(--ink);
}
.testimonial__cite {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--indigo);
  margin-top: 28px;
  font-style: normal;
  letter-spacing: 0.04em;
}
.testimonial__portrait {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

/* ─── CONTACT ───────────────────────────────────────────── */
.contact-section {
  background: var(--blue);
}

.contact {
  padding: var(--section-pad) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}
.contact__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-top: 16px;
}

.contact-section .section-title { color: var(--haze); }
.contact-section .overline { color: rgba(255,255,255,0.55); }

.contact__email-btn {
  display: inline-block;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--haze);
  text-decoration: none;
  border: 2px solid var(--haze);
  padding: 20px 32px;
  border-radius: 8px;
  background: transparent;
  transition: background 0.3s, color 0.3s;
  line-height: 1.2;
}
.contact__email-btn:hover {
  background: var(--haze);
  color: var(--blurple);
}

.contact__info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
}
.contact__info a { transition: color 0.25s; }
.contact__info a:hover { color: var(--haze); }

.contact__social {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}
.contact__social a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.28);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
}
.contact__social a:hover {
  color: var(--haze);
  border-color: var(--haze);
}

/* ─── LOCATION ──────────────────────────────────────────── */
.location-section {
  background: var(--blue);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.location {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}
.location__map {
  border-radius: 12px;
  overflow: hidden;
}
.location__map img {
  width: 100%;
  display: block;
}
.location__info { color: var(--haze); }

.location__address {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.location__maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--yellow);
  border-bottom: 1px solid rgba(245,200,66,0.45);
  padding-bottom: 2px;
  margin-bottom: 32px;
  transition: border-color 0.3s;
}
.location__maps-link:hover { border-color: var(--yellow); }

.location__dir-group { margin-bottom: 20px; }

.location__dir-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.location__dir-text {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
}

/* ─── FOOTER ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.footer__logo { /* replaced by .mawg-logo--footer */ }
.footer__left p {
  font-size: 12px;
  color: var(--indigo);
}
.footer__right {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
}
.footer__right a {
  font-size: 12px;
  color: var(--indigo);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.footer__right a:hover { color: var(--ink); }

/* ─── IMAGE CREDIT ──────────────────────────────────────── */
.img-credit {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   CASE STUDY PAGE STYLES
═══════════════════════════════════════════════════════════ */
.cs-hero {
  height: 90svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.cs-hero__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  transform: scale(1.05);
  animation: heroScale 1.4s var(--ease-out-expo) forwards;
}
@keyframes heroScale {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}
.cs-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--gutter) var(--gutter) clamp(48px, 6vw, 80px);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.cs-hero__tag {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.cs-hero__title {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--haze);
}

/* ─── CASE STUDY — BACK LINK ─────────────────────────────── */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  transition: color 0.25s, gap 0.3s var(--ease-out-expo);
  padding: clamp(40px, 5vw, 72px) var(--gutter) 0;
  display: flex;
}
.cs-back:hover { color: var(--ink); gap: 18px; }

/* ─── CASE STUDY — BODY ──────────────────────────────────── */
.cs-body {
  padding: clamp(48px, 6vw, 80px) var(--gutter) 0;
  max-width: calc(var(--container) - 200px);
  margin: 0 auto;
}
.cs-intro {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: clamp(40px, 5vw, 72px);
  color: var(--ink);
}
.cs-detail {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 80px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-bottom: 0;
}
.cs-detail__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 2px;
}
.cs-detail__value {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}

/* ─── CASE STUDY — GALLERY ──────────────────────────────── */

/*
  .cs-gallery-block wraps all gallery rows for a page.
  It sets one top padding and lets inner rows use a uniform gap.
  This prevents the double-padding problem where each .cs-gallery
  added its own padding-top, creating inconsistent spacing.
*/
.cs-gallery-block {
  padding: var(--section-pad) var(--gutter) 0;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px; /* uniform gap between all gallery rows */
}

/* Within a block, galleries have no extra padding of their own */
.cs-gallery-block .cs-gallery {
  padding: 0;
  margin: 0;
}

/* Standalone .cs-gallery (used outside a block) keeps its own padding */
.cs-gallery {
  display: grid;
  gap: 16px;
  padding: var(--section-pad) var(--gutter) 0;
  max-width: var(--container);
  margin: 0 auto;
}
.cs-gallery--2col { grid-template-columns: 1fr 1fr; }
.cs-gallery--3col { grid-template-columns: 1fr 1fr 1fr; }
.cs-gallery--full { grid-template-columns: 1fr; }

/* Figure sizes */
.cs-figure {
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.cs-figure--landscape { aspect-ratio: 4/3; }
.cs-figure--portrait  { aspect-ratio: 3/4; }
.cs-figure--wide      { aspect-ratio: 16/9; }
.cs-figure--square    { aspect-ratio: 1/1; }

/* Stagger delays — set --img-delay so the img transition uses it */
.cs-gallery .cs-figure:nth-child(1) { --img-delay: 0s; }
.cs-gallery .cs-figure:nth-child(2) { --img-delay: 0.12s; }
.cs-gallery .cs-figure:nth-child(3) { --img-delay: 0.24s; }
.cs-gallery .cs-figure:nth-child(4) { --img-delay: 0.06s; }
.cs-gallery .cs-figure:nth-child(5) { --img-delay: 0.18s; }
.cs-gallery .cs-figure:nth-child(6) { --img-delay: 0.30s; }

/*
  Photo strip — horizontal scrolling row for non-case-study projects.
  Each item is a fixed-width card. No links, just images + captions.
*/
.cs-photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 30vw, 380px);
  gap: 16px;
  overflow-x: auto;
  /* hide scrollbar but keep functionality */
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px; /* prevent box-shadow clip */
}
.cs-photo-strip::-webkit-scrollbar { display: none; }

.cs-photo-strip__item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
  flex-shrink: 0;
}
.cs-photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* slide-up on scroll-reveal */
  transform: translateY(48px) scale(1.04);
  opacity: 0;
  transition: transform 1s var(--ease-out-expo),
              opacity 0.8s var(--ease-out-expo);
}
.cs-photo-strip__item.is-visible img {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cs-photo-strip__item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--haze);
  pointer-events: none;
}

/* ─── CASE STUDY — ABOUT (text interlaced with images) ──────── */
.cs-about {
  padding: var(--section-pad) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}

.cs-about__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo);
  display: block;
  margin-bottom: 24px;
}

.cs-about__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.cs-about__row--text-right .cs-about__text { order: 2; }
.cs-about__row--text-right .cs-about__media { order: 1; }

.cs-about__row--full {
  grid-template-columns: 1fr;
}
.cs-about__row--2media {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.cs-about__text p {
  font-size: clamp(1rem, 1.4vw, 1.05rem);
  line-height: 1.8;
  color: var(--ink);
}
.cs-about__text p + p { margin-top: 14px; }

.cs-about__media {
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.cs-about__media--portrait  { aspect-ratio: 3/4; }
.cs-about__media--landscape { aspect-ratio: 4/3; }
.cs-about__media--wide      { aspect-ratio: 16/9; }

.cs-about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateY(48px) scale(1.04);
  opacity: 0;
  transition: transform 1s var(--ease-out-expo),
              opacity 0.8s var(--ease-out-expo);
}
.cs-about__media.is-visible img {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ─── CASE STUDY — TEXT SECTION (between gallery rows) ──────── */
.cs-text-section {
  padding: var(--section-pad) var(--gutter) 0;
  max-width: calc(var(--container) - 200px);
  margin: 0 auto;
}

.cs-text-section__headline {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--indigo);
  margin-bottom: clamp(24px, 3vw, 40px);
  overflow: hidden;
}

.cs-text-section__body {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: var(--ink);
  max-width: 640px;
}
.cs-text-section__body + .cs-text-section__body {
  margin-top: 16px;
}

/* ─── CASE STUDY — BOTTOM NAVIGATION ────────────────────── */
.cs-next {
  padding: var(--section-pad) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.cs-next__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2rem;
}

/* ─── MORE WORK section on CS pages ─────────────────────── */
.cs-more {
  padding: var(--section-pad) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about   { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; }
  .capabilities__grid { grid-template-columns: 1fr 1fr; }
  .capabilities__intro { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }
  .work-strip__arrows { display: none; }
  .work-strip__item figure { aspect-ratio: 4 / 3.9; }

  /* Extra zoom on mobile to ensure Spline badge stays cropped */
  .hero__spline-iframe {
    left: -8%;
    width: 116%;
    height: 116%;
  }

  .work__grid { grid-template-columns: 1fr; }
  .work-card--wide { grid-column: 1; }
  .work-card--wide .work-card__img-wrap { aspect-ratio: 4/3; }

  /* About — single-column vertical layout */
  .about__left {
    grid-template-columns: 1fr;
  }

  /* Stats — 2-col grid with adapted dividers */
  .about__stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 20px 16px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat:first-child { padding-left: 16px; }
  /* Right column items: no right border */
  .stat:nth-child(even) { border-right: none; }
  /* Last two items (bottom row): no bottom border */
  .stat:nth-last-child(1),
  .stat:nth-last-child(2) { border-bottom: none; }

  .capabilities__grid { grid-template-columns: 1fr; }
  .cap-card__bg-num { font-size: clamp(6rem, 22vw, 10rem); }

  .cs-detail { grid-template-columns: 1fr; gap: 6px; }
  .cs-gallery--2col,
  .cs-gallery--3col { grid-template-columns: 1fr; }

  .cs-about__row,
  .cs-about__row--text-right,
  .cs-about__row--2media {
    grid-template-columns: 1fr;
  }
  .cs-about__row--text-right .cs-about__text,
  .cs-about__row--text-right .cs-about__media {
    order: unset;
  }
  .cs-next__grid { grid-template-columns: 1fr; }

  .about__more-inner {
    grid-template-columns: 1fr;
  }

  .about__team {
    flex-direction: row;
    align-items: flex-start;
    padding-bottom: 32px; /* room for box-shadows at the bottom */
    gap: 12px;
  }

  .team-member {
    flex: 1;
    width: auto;
  }

  .team-member:first-child {
    transform: rotate(-2.5deg) translateY(8px);
    align-self: auto;
  }

  .team-member:last-child {
    transform: rotate(2deg) translateY(-6px);
    margin-top: 0;
    align-self: auto;
  }
}

@media (max-width: 480px) {
  .service-item__title { font-size: clamp(2rem, 10vw, 3rem); }
  .footer { flex-direction: column; align-items: flex-start; }
  .testimonial__cite {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .testimonial__cite span {
    display: block;
    text-align: center;
  }
}

/* ─── PAGE TRANSITION — disabled ───────────────────────── */
.page-transition { display: none; }
