/* ========================================
   Kristina Ryaboy Portfolio
   Color Tokens & Reset
   ======================================== */

:root {
  --deep-slate: #030303;
  --charcoal-navy: #020202;
  --purple: #6C5CE7;
  --magenta: #E91E79;
  --magenta-dim: rgba(233, 30, 121, 0.15);
  --magenta-glow: rgba(233, 30, 121, 0.4);
  --cool-gray: #D9E1E8;
  --off-white: #F4F7FA;
  --white: #ffffff;

  --font-heading: 'Josefin Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-height: 56px;
  --container-max: 1200px;
  --section-pad: 100px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cool-gray);
  background-color: var(--deep-slate);
  overflow-x: hidden;
}

/* Page transition — fade in/out */
body {
  opacity: 0;
  animation: pageFadeIn 0.5s ease forwards;
}

body.page-exit {
  animation: pageFadeOut 0.3s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pageFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(3, 3, 3, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--magenta), var(--purple), transparent);
  opacity: 0.4;
}

.nav--scrolled {
  background: rgba(3, 3, 3, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(233, 30, 121, 0.1);
}



.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  margin-left: auto;
  margin-right: 24px;
}

.nav-logo__img {
  height: 36px;
  width: auto;
  transition: filter 0.3s ease;
}

.nav-logo:hover .nav-logo__img {
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(233, 30, 121, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cool-gray);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--magenta);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--magenta);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--active {
  color: var(--off-white);
}

.nav-link--active::after {
  width: 100%;
  background: var(--off-white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cool-gray);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(3, 3, 3, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--off-white);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.mobile-menu__link:hover { color: var(--magenta); }

/* ========================================
   Hero Banner
   ======================================== */

.hero {
  position: relative;
  width: 100%;
  margin-top: var(--nav-height);
  overflow: hidden;
  background: var(--deep-slate);
  padding: 20px 0;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  width: 180px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero::before {
  left: 0;
  background: linear-gradient(to right, rgba(233, 30, 121, 0.08), transparent);
}

.hero::after {
  right: 0;
  background: linear-gradient(to left, rgba(233, 30, 121, 0.08), transparent);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-logo {
  flex-shrink: 0;
  width: clamp(180px, 22vw, 320px);
  height: clamp(180px, 22vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;
  overflow: visible;
}

.hero-logo::before {
  content: '';
  position: absolute;
  width: 130%;
  height: 130%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url('images/BehindKRLogo.png') center/contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
  mask: radial-gradient(circle, black 49%, transparent 50%);
  -webkit-mask: radial-gradient(circle, black 49%, transparent 50%);
}

.hero-logo__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}

body.ambient-ready .hero-logo__orbit {
  opacity: 1;
}

.hero-logo__img {
  position: relative;
  z-index: 1;
  width: 65%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(233, 30, 121, 0.15));
  opacity: 0.85;
  position: relative;
}

.hero-text {
  flex: 1;
}


.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 300;
  letter-spacing: clamp(4px, 1vw, 10px);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-name__first {
  margin-right: 0.3em;
  background: linear-gradient(90deg, var(--off-white) 0%, var(--magenta) 40%, var(--purple) 60%, var(--off-white) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
}

.hero-name__last {
  font-weight: 600;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--purple) 40%, var(--magenta) 60%, var(--off-white) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
}
}

.hero-rule {
  width: 100%;
  max-width: 480px;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 225, 232, 0.15), rgba(233, 30, 121, 0.3), rgba(217, 225, 232, 0.08));
  margin-bottom: 20px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(10px, 1.5vw, 15px);
  font-weight: 400;
  letter-spacing: clamp(2px, 0.5vw, 5px);
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(12px, 1.8vw, 18px);
  font-weight: 500;
  letter-spacing: clamp(3px, 0.6vw, 6px);
  text-transform: uppercase;
  color: var(--off-white);
}

.hero-tagline span {
  display: inline-block;
  margin-right: 0.2em;
}

.hero-tagline--accent {
  color: var(--magenta);
}

/* ========================================
   Welcome Section
   ======================================== */

.welcome {
  padding: 72px 0 64px;
  text-align: center;
  background: var(--deep-slate);
  position: relative;
}


.welcome-heading {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 300;
  color: var(--off-white);
  letter-spacing: 1px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.welcome-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.3) rotate(8deg);
  transition: none;
}

.welcome-heading--animate .welcome-letter {
  animation: letterPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.welcome-letter--late {
  transform: translateY(-50px) scale(0.5) rotate(-12deg);
}

.welcome-heading--animate .welcome-letter--late {
  animation: letterLateDrop 0.5s cubic-bezier(0.22, 1.5, 0.36, 1) forwards;
}

@keyframes letterLateDrop {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.5) rotate(-12deg);
  }
  60% {
    opacity: 1;
    transform: translateY(6px) scale(1.15) rotate(3deg);
  }
  80% {
    transform: translateY(-2px) scale(0.97) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes letterPop {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.3) rotate(8deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-6px) scale(1.08) rotate(-2deg);
  }
  75% {
    transform: translateY(2px) scale(0.98) rotate(0.5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.welcome-divider {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.welcome-philosophy {
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.welcome-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--cool-gray);
  margin-bottom: 8px;
}

.welcome-text {
  font-size: 16px;
  color: var(--magenta);
  margin-bottom: 28px;
  line-height: 1.7;
}

.welcome-quote {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(217, 225, 232, 0.55);
  font-style: italic;
  padding: 16px 32px;
  position: relative;
}

.welcome-quote::before,
.welcome-quote::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60%;
  border-radius: 1px;
}

.welcome-quote::before {
  left: 0;
  background: linear-gradient(to bottom, transparent, rgba(233, 30, 121, 0.35), transparent);
  box-shadow: 0 0 8px rgba(233, 30, 121, 0.15);
}

.welcome-quote::after {
  right: 0;
  background: linear-gradient(to bottom, transparent, rgba(233, 30, 121, 0.35), transparent);
  box-shadow: 0 0 8px rgba(233, 30, 121, 0.15);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Section Cards (About / Process / Work)
   ======================================== */

/* ── Nav Banner (Background Image Section) ── */
.nav-banner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 60px;
  opacity: 0.8;
}

.nav-banner__bg {
  width: 100%;
  position: relative;
}

.nav-banner__bg img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(233, 30, 121, 0.4);
}

.nav-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse 85% 80% at center, transparent 40%, var(--deep-slate) 85%);
  pointer-events: none;
}

.nav-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 16%;
  display: flex;
}

.nav-banner__zone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.4s ease;
}

.nav-banner__zone:hover {
  background: rgba(233, 30, 140, 0.06);
}

.nav-banner__label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(217, 225, 232, 0.85);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease, letter-spacing 0.4s var(--ease-out), text-shadow 0.3s ease;
  pointer-events: none;
}

.nav-banner__zone:hover .nav-banner__label {
  color: #ffffff;
  letter-spacing: 8px;
  text-shadow: 0 0 30px rgba(233, 30, 140, 0.4), 0 2px 20px rgba(0, 0, 0, 0.8);
}

/* ========================================
   Section Shared Styles
   ======================================== */

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--magenta), var(--purple), transparent);
  opacity: 0.4;
}

.section-heading {
  margin-bottom: 64px;
}

.section-heading__label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 8px;
}

.section-heading__title {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--off-white) 0%, var(--magenta) 40%, var(--purple) 60%, var(--off-white) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
}

/* ========================================
   About Section
   ======================================== */

.about {
  background: var(--charcoal-navy);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.about-visual__landscape {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--charcoal-navy), var(--deep-slate));
  border: 1px solid rgba(217, 225, 232, 0.06);
  position: relative;
}

#aboutCanvas {
  width: 100%;
  height: 100%;
}

.about-lead {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--magenta);
  margin-bottom: 20px;
}

.about-content p {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 16px;
  color: rgba(217, 225, 232, 0.7);
}

.about-content p.about-lead {
  color: var(--magenta);
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
}

.section-heading-row .section-heading {
  margin-bottom: 0;
  flex-shrink: 0;
  min-width: 200px;
}

.section-heading-wave {
  flex: 1;
  height: 20px;
  overflow: visible;
}

.section-heading-wave__path {
  stroke-dasharray: 8 6;
  stroke-dashoffset: 0;
  animation: waveDash 4s linear infinite;
  animation-play-state: paused;
}

body.ambient-ready .section-heading-wave__path {
  animation-play-state: running;
}

@keyframes waveDash {
  to {
    stroke-dashoffset: -28;
  }
}

.section-banner {
  max-height: 160px;
  max-width: 50%;
  object-fit: contain;
  border-radius: 10px;
  opacity: 0.75;
  margin-left: auto;
}

.section-banner--mid {
  margin-left: 0;
  max-width: 30%;
  flex-shrink: 0;
}

.section-banner--video {
  overflow: hidden;
  border-radius: 10px;
}

/* Shorten waves in work section so video aligns with Process/Tools images */
.work .section-heading-wave {
  flex: 0.5;
}

.section-banner--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-banner {
  margin-top: 40px;
  margin-bottom: 56px;
  border-radius: 12px;
  overflow: hidden;
  max-height: 240px;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.work-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.about-banner {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  opacity: 0.75;
}

/* ── About Photo Cards ── */
.about-photos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.about-photo-card {
  position: relative;
  border-radius: 10px;
  border: 2px solid rgba(233, 30, 121, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo-card img {
  border-radius: 8px;
}

.about-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.about-photo-card--featured {
  max-width: 100%;
}

.about-photo-card--featured img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  display: block;
}

.about-photos-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.about-photos-row .about-photo-card {
  aspect-ratio: 1;
}

.about-photos-row .about-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(217, 225, 232, 0.08);
}

.skill-group__title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 16px;
}

.skill-list li {
  font-size: 14px;
  color: rgba(217, 225, 232, 0.6);
  padding: 5px 0;
  transition: color 0.3s ease;
}

.skill-list li:hover { color: var(--off-white); }

/* ── About Gallery Thumbnails ── */
.about-gallery {
  margin-top: 48px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.about-gallery__strip {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: galleryScroll 40s linear infinite;
}

.about-gallery__strip:hover {
  animation-play-state: paused;
}

.about-gallery__thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(217, 225, 232, 0.08);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

.about-gallery__thumb:hover {
  opacity: 1;
  transform: scale(1.08);
  border-color: rgba(233, 30, 121, 0.3);
  z-index: 2;
}

@keyframes galleryScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   Process Section
   ======================================== */

.process {
  background: var(--deep-slate);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 30, 121, 0.3) 20%, rgba(233, 30, 121, 0.3) 80%, transparent);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(233, 30, 121, 0.2);
  background: var(--charcoal-navy);
  color: var(--magenta);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  z-index: 2;
}

.process-step__icon svg { width: 36px; height: 36px; }

.process-step:hover .process-step__icon {
  border-color: var(--magenta);
  box-shadow: 0 0 30px rgba(233, 30, 121, 0.15);
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.process-step__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(217, 225, 232, 0.6);
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: -12px;
  right: 20%;
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: rgba(233, 30, 121, 0.06);
  letter-spacing: -2px;
  z-index: 1;
}

/* ========================================
   Work Section
   ======================================== */

/* ── Skills & Tools ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.skills-category {
  padding: 28px;
  background: rgba(217, 225, 232, 0.02);
  border: 1px solid rgba(217, 225, 232, 0.06);
  border-radius: 10px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.skills-category:hover {
  border-color: rgba(233, 30, 121, 0.2);
  background: rgba(233, 30, 121, 0.02);
}

.skills-category__title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(233, 30, 121, 0.15);
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skills-list__item {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(217, 225, 232, 0.6);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.skills-list__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(233, 30, 121, 0.4);
}

.skills-list__note {
  display: block;
  font-size: 12px;
  color: rgba(217, 225, 232, 0.35);
  font-style: italic;
  margin-top: 2px;
}

.skills-resume {
  text-align: center;
  margin-top: 40px;
}

.skills-resume__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid rgba(233, 30, 121, 0.4);
  border-radius: 6px;
  color: var(--magenta);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.skills-resume__btn:hover {
  background: rgba(233, 30, 121, 0.08);
  border-color: var(--magenta);
  box-shadow: 0 0 20px rgba(233, 30, 121, 0.1);
}

.skills-resume__btn svg {
  width: 18px;
  height: 18px;
}

.work {
  background: var(--charcoal-navy);
}



.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 85%;
  margin: 0 auto;
}

.project-card {
  background: var(--deep-slate);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(217, 225, 232, 0.06);
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(233, 30, 121, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(233, 30, 121, 0.08);
}

.project-card--featured {
  grid-column: 1 / -1;
}

.project-card-link--featured {
  grid-column: 1 / -1;
}

.project-card__image--logo-only {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__logo--centered {
  position: relative;
  width: 50%;
  max-width: 180px;
  height: auto;
  z-index: 1;
}

.project-card__image {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--deep-slate);
}

.project-card--featured .project-card__image { aspect-ratio: 21 / 9; }

/* Portfolio website card — shorter image, no phone frames */
.project-card--horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.project-card--horizontal .project-card__info {
  flex: 1;
  padding: 32px 40px;
}

.project-card--horizontal .project-card__image--web {
  flex: 0 0 40%;
  max-width: 40%;
  aspect-ratio: auto !important;
  overflow: hidden;
  border-radius: 0 12px 12px 0;
  height: 100%;
}

/* Sneak Peek card: rolling magenta gradient border */
.project-card--sneak-peek .project-card__image--web {
  padding: 3px;
  border-radius: 12px;
  overflow: visible;
  background-image: linear-gradient(
    90deg,
    #e91e8c 0%,
    rgba(233, 30, 121, 0.35) 15%,
    rgba(217, 225, 232, 0.55) 30%,
    rgba(233, 30, 121, 0.45) 45%,
    #e91e8c 60%,
    rgba(233, 30, 121, 0.35) 75%,
    rgba(217, 225, 232, 0.55) 90%,
    #e91e8c 100%
  );
  background-size: 300% 100%;
  background-position: 0% 0%;
  animation: sneak-shimmer 5s linear infinite;
  flex: 0 0 40%;
  max-width: 40%;
}

.project-card--sneak-peek .project-card__image--web .project-card__web-img {
  border-radius: 9px;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes sneak-shimmer {
  from { background-position: 0% 0%; }
  to { background-position: 300% 0%; }
}

body.reduce-motion .project-card--sneak-peek .project-card__image--web {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .project-card--sneak-peek .project-card__image--web {
    animation: none;
  }
}

.project-card__web-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.85;
}

.project-card:hover .project-card__web-img {
  transform: scale(1.03);
  opacity: 1;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 3, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-card__overlay { opacity: 1; }

.project-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  padding: 8px 18px;
  border-radius: 8px;
  margin-top: 12px;
  transition: background 0.3s ease, color 0.3s ease;
}

.project-card__cta:hover {
  background: var(--magenta);
  color: var(--white);
}

.project-card__info { padding: 28px 32px 32px; }

.project-card__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--magenta);
  background: var(--magenta-dim);
  padding: 4px 12px;
  border-radius: 100px;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--off-white) 0%, var(--magenta) 40%, var(--purple) 60%, var(--off-white) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

.project-card__desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(217, 225, 232, 0.7);
}

/* Placeholder visuals */
.project-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.project-gallery-canvas {
  width: 100%;
  height: 100%;
}

/* Flip card layout */
.project-card__image--flip {
  perspective: 1200px;
}

.project-card__flip-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease-in-out);
  transform-style: preserve-3d;
  position: relative;
}

.project-card:hover .project-card__flip-inner {
  transform: rotateY(180deg);
}

.project-card__flip-front,
.project-card__flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__flip-front {
  background: linear-gradient(135deg, #080808, #030303);
  padding: 40px;
  position: relative;
}

.project-card__orbit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}

body.ambient-ready .project-card__orbit-canvas {
  opacity: 1;
}

.project-card__flip-front .project-card__logo {
  position: relative;
  z-index: 1;
}

/* Static hero image (no flip) */
.project-card__image--hero {
  background: linear-gradient(135deg, #080808, #030303);
  padding: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero trio: photo – logo – photo */
.project-card__hero-trio {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  height: 100%;
}

.project-card__hero-trio .project-card__logo {
  flex-shrink: 0;
  max-width: 200px;
}

.project-card__hero-photo {
  position: relative;
  flex: 0 1 240px;
  height: 75%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-card__hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Shift Arcus2 crop to show the hat */
.project-card__hero-photo:last-child img {
  object-position: left center;
}

/* Tape strips on photo corners */
.project-card__hero-photo::before,
.project-card__hero-photo::after {
  content: '';
  position: absolute;
  width: 72px;
  height: 26px;
  background: rgba(217, 225, 232, 0.25);
  border-radius: 2px;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Top-left tape */
.project-card__hero-photo::before {
  top: -8px;
  left: -22px;
  transform: rotate(-28deg);
}

/* Top-right tape */
.project-card__hero-photo::after {
  top: -8px;
  right: -22px;
  transform: rotate(25deg);
}

@media (max-width: 768px) {
  .project-card__hero-trio {
    gap: 12px;
  }
  .project-card__hero-trio .project-card__logo {
    max-width: 120px;
  }
  .project-card__hero-photo {
    flex: 0 1 140px;
    height: 65%;
  }
}

/* Phone trio: 3 lo-fi screens side by side (DMC card) */
.project-card__phone-trio {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.project-card__phone-frame {
  width: 0;
  flex: 0 0 90px;
  height: 195px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(233, 30, 121, 0.15);
  transition: transform 0.4s var(--ease-out);
}

.project-card__phone-frame--center {
  flex: 0 0 96px;
  height: 210px;
  border-color: rgba(233, 30, 121, 0.35);
  z-index: 2;
}

.project-card:hover .project-card__phone-frame--center {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(233, 30, 121, 0.2);
}

.project-card__phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Arcus card — magenta borders to match portfolio theme */
.project-card__phone-frame--arcus {
  border-color: rgba(233, 30, 121, 0.2);
}

.project-card__phone-frame--arcus.project-card__phone-frame--center {
  border-color: rgba(233, 30, 121, 0.4);
  position: relative;
}

/* Blur email on profile card */
.project-card__phone-frame--arcus.project-card__phone-frame--center::after {
  content: '';
  position: absolute;
  top: 21%;
  left: 15%;
  right: 15%;
  height: 4%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(15, 23, 42, 0.4);
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .project-card__phone-trio {
    gap: 8px;
  }
  .project-card__phone-frame {
    flex: 0 0 70px;
    height: 152px;
    border-radius: 10px;
  }
  .project-card__phone-frame--center {
    flex: 0 0 76px;
    height: 165px;
  }
}

.project-card__flip-back {
  background: linear-gradient(135deg, #050505, #020202);
  transform: rotateY(180deg);
  overflow: hidden;
}

.project-card__logo {
  max-width: 260px;
  max-height: 80%;
  object-fit: contain;
  border-radius: 24px;
}

.project-card__mockup {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.placeholder-screens {
  display: flex;
  gap: 16px;
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
}

.placeholder-screen {
  width: 100px;
  height: 140px;
  background: rgba(217, 225, 232, 0.04);
  border: 1px solid rgba(217, 225, 232, 0.08);
  border-radius: 6px;
  position: relative;
}

.placeholder-screen::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--magenta-dim);
  border-radius: 2px;
}

.placeholder-screen::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 8px;
  width: 60%;
  height: 2px;
  background: rgba(217, 225, 232, 0.06);
  border-radius: 2px;
}

.placeholder-screen:nth-child(2) { transform: translateY(-16px); }

.placeholder-flow {
  display: flex;
  align-items: center;
}

.placeholder-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(233, 30, 121, 0.4);
  background: rgba(233, 30, 121, 0.08);
}

.placeholder-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--magenta-glow), transparent);
}

.placeholder-wave {
  width: 100%;
  height: 80px;
  background: linear-gradient(90deg, transparent, rgba(233, 30, 121, 0.15) 25%, rgba(233, 30, 121, 0.05) 50%, rgba(233, 30, 121, 0.15) 75%, transparent);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80'%3E%3Cpath d='M0,40 Q50,10 100,40 T200,40 T300,40 T400,40' fill='none' stroke='black' stroke-width='40'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80'%3E%3Cpath d='M0,40 Q50,10 100,40 T200,40 T300,40 T400,40' fill='none' stroke='black' stroke-width='40'/%3E%3C/svg%3E");
  mask-size: cover;
  -webkit-mask-size: cover;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 120px;
}

.placeholder-cell {
  aspect-ratio: 1;
  background: rgba(217, 225, 232, 0.04);
  border: 1px solid rgba(217, 225, 232, 0.08);
  border-radius: 6px;
}

.placeholder-cell:nth-child(4) {
  background: var(--magenta-dim);
  border-color: rgba(233, 30, 121, 0.2);
}

/* Project card link wrapper */
.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ========================================
   Case Study Page
   ======================================== */

.case-study {
  background: var(--charcoal-navy);
  min-height: 100vh;
}

/* ── Back nav ── */
.case-study-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 225, 232, 0.06);
}

.case-study-nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-study-nav__back {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cool-gray);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.case-study-nav__back:hover {
  color: var(--magenta);
}

.case-study-nav__back svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.case-study-nav__back:hover svg {
  transform: translateX(-3px);
}

/* ── Hero ── */
.case-study-hero {
  padding: 140px 40px 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.case-study-hero__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.case-study-hero__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.case-study-hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 56px;
  color: var(--off-white);
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--off-white) 0%, var(--magenta) 40%, var(--purple) 60%, var(--off-white) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
  margin-bottom: 0;
}

.case-study-hero__logo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.case-study-hero__logo-wrap::after {
  display: none;
}

.case-study-hero__logo {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.85;
  border-radius: 16px;
}

.case-study-hero__subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(217, 225, 232, 0.7);
  max-width: 640px;
}

.case-study-hero__partner {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(217, 225, 232, 0.4);
  margin-top: 12px;
}

.case-study-hero__partner a {
  color: var(--magenta);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 30, 121, 0.3);
  transition: border-color 0.3s ease;
}

.case-study-hero__partner a:hover {
  border-bottom-color: var(--magenta);
}

.case-study-hero__status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
}

.status-badge--live {
  background: rgba(233, 30, 121, 0.15);
  color: var(--magenta);
  border: 1px solid rgba(233, 30, 121, 0.3);
}

a.status-badge--link {
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.status-badge--link:hover {
  background: rgba(233, 30, 121, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 30, 121, 0.2);
}

.status-badge--coming {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(217, 225, 232, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-badge--sm {
  font-size: 10px;
  padding: 4px 10px;
  margin-top: 8px;
}

/* Title row: title + live badge inline */
.project-card__title-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.project-card__title-row .project-card__title {
  margin: 0;
  font-size: 30px;
}

/* Glowing live badge */
.status-badge--glow {
  font-size: 11px;
  padding: 4px 12px;
  animation: badge-glow 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25), 0 0 20px rgba(255, 255, 255, 0.1);
}

.status-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  display: inline-block;
  animation: dot-pulse 1.5s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 255, 255, 0.25), 0 0 20px rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 14px rgba(255, 255, 255, 0.4), 0 0 32px rgba(255, 255, 255, 0.2); }
}

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

.case-study-hero__image {
  margin-top: 40px;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  background: var(--deep-slate);
  border-radius: 12px;
  border: 1px solid rgba(217, 225, 232, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-study-hero__image img,
.case-study-hero__svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-hero__image-placeholder {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(217, 225, 232, 0.2);
}

/* ── Section Navigation ── */
.case-study {
  scroll-padding-top: 56px;
}

.section-nav {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: rgba(30, 42, 52, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 225, 232, 0.06);
  transition: box-shadow 0.3s ease;
}

.section-nav--scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.section-nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav__inner::-webkit-scrollbar {
  display: none;
}

.section-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  text-decoration: none;
  color: rgba(217, 225, 232, 0.4);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent;
  position: relative;
}

.section-nav__link:hover {
  color: rgba(217, 225, 232, 0.7);
}

.section-nav__link--active {
  color: var(--magenta);
  border-bottom-color: var(--magenta);
}

.section-nav__number {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.section-nav__link--active .section-nav__number {
  opacity: 0.8;
}

.section-nav__text {
  font-size: 12px;
}

/* ── Project Meta ── */
.case-study-meta {
  max-width: var(--container-max);
  margin: 16px auto 40px;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background-image: linear-gradient(var(--deep-slate), var(--deep-slate)),
                    linear-gradient(135deg, rgba(233, 30, 121, 0.05), rgba(233, 30, 121, 0.3), rgba(233, 30, 121, 0.05));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.case-study-meta__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
}

.case-study-meta__item:nth-child(odd) {
  padding-right: 24px;
}

.case-study-meta__item:nth-child(even) {
  padding-left: 24px;
}

.case-study-meta__item h4 {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--magenta);
  white-space: nowrap;
  flex-shrink: 0;
}

.case-study-meta__item p {
  font-size: 13px;
  color: rgba(217, 225, 232, 0.55);
  line-height: 1.5;
}

.case-study-meta__link {
  color: var(--magenta);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 30, 121, 0.3);
  transition: border-color 0.3s ease;
}

.case-study-meta__link:hover {
  border-bottom-color: var(--magenta);
}

/* ── Sections ── */
.case-study-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px 40px;
  border-top: 1px solid rgba(217, 225, 232, 0.06);
}

.case-study-section__label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 12px;
}

.case-study-section__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  color: var(--off-white);
  margin-bottom: 24px;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--off-white) 45%, var(--magenta) 90%);
  background-size: 120% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-study-section__body {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.case-study-section__body--centered {
  text-align: left;
}

.case-study-intro-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.case-study-intro-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.case-study-section__body p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(217, 225, 232, 0.7);
  margin-bottom: 20px;
}

.case-study-section__body p:last-child {
  margin-bottom: 0;
}

.case-study-section__body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.case-study-section__body li {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(217, 225, 232, 0.65);
  margin-bottom: 6px;
}

/* ── Section subtitle ── */
.case-study-section__subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--off-white);
  margin-bottom: 16px;
  margin-top: 8px;
}

/* ── Pain points ── */
.case-study-pain-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.case-study-pain-point {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--deep-slate);
  border-radius: 10px;
  border: 1px solid rgba(217, 225, 232, 0.06);
}

.case-study-pain-point__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--magenta-dim);
  color: var(--magenta);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-pain-point h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--off-white);
  margin-bottom: 8px;
  text-align: left;
}

.case-study-pain-point p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(217, 225, 232, 0.6);
  text-align: left;
}

@media (max-width: 768px) {
  .case-study-pain-points {
    grid-template-columns: 1fr;
  }
}

/* ── Image placeholders ── */
.case-study-image {
  margin: 40px 0;
  width: 100%;
  background: var(--deep-slate);
  border-radius: 12px;
  border: 1px solid rgba(217, 225, 232, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-image--wide {
  aspect-ratio: 16 / 9;
}

.case-study-image--square {
  aspect-ratio: 4 / 3;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-image__placeholder {
  padding: 60px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(217, 225, 232, 0.15);
}

/* ── Two-column image grid ── */
.case-study-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.case-study-image-grid .case-study-image {
  margin: 0;
  aspect-ratio: 4 / 3;
}

/* ── Coming Soon placeholder ── */
.case-study-coming-soon {
  margin: 40px auto;
  max-width: 480px;
  padding: 48px 32px;
  text-align: center;
  background: rgba(217, 225, 232, 0.03);
  border: 1px dashed rgba(233, 30, 121, 0.2);
  border-radius: 12px;
}

.case-study-coming-soon__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: rgba(233, 30, 121, 0.35);
}

.case-study-coming-soon__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
  opacity: 0.6;
  margin-bottom: 10px;
}

.case-study-coming-soon__note {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(217, 225, 232, 0.4);
}

/* ── Wireframe row (all 4 in one line) ── */
.wireframe-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
  align-items: center;
}

.wireframe-card {
  position: relative;
  text-align: center;
}

.wireframe-card__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(233, 30, 121, 0.5);
  margin-top: 10px;
}

.wireframe-card__image {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(217, 225, 232, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: zoom-in;
}

.wireframe-card__image:hover {
  transform: scale(2);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.wireframe-card__image img {
  border-radius: 10px;
}

/* Crazy 8's — rotate to correct orientation */
.wireframe-card__image--crazy8 {
  transform: rotate(-90deg) scale(0.75);
}

.wireframe-card__image--crazy8:hover {
  transform: rotate(-90deg) scale(1.5);
  z-index: 10;
}

/* Iteration heading */
.wireframe-iteration__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 48px 0 20px;
  opacity: 0.7;
}

/* Full-width wireframe card for iteration */
.wireframe-card--full {
  max-width: 480px;
  margin: 0 auto;
}

.wireframe-card__image--wide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.wireframe-card__image--wide:hover {
  transform: scale(1.8);
}

/* Tape strips on wireframe images */
.wireframe-card__image::before,
.wireframe-card__image::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 16px;
  background: rgba(217, 225, 232, 0.22);
  border-radius: 2px;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wireframe-card__image::before {
  top: -5px;
  left: -8px;
  transform: rotate(-28deg);
}

.wireframe-card__image::after {
  top: -5px;
  right: -8px;
  transform: rotate(25deg);
}

/* Counter-rotate tape on crazy 8's so it stays on the visual top */
.wireframe-card__image--crazy8::before {
  top: -8px;
  left: auto;
  right: -5px;
  transform: rotate(62deg);
}

.wireframe-card__image--crazy8::after {
  top: auto;
  right: -5px;
  bottom: -8px;
  transform: rotate(115deg);
}

.wireframe-card__image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .wireframe-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ── Visual Design mockups ── */
.visual-design-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.visual-design-card {
  text-align: center;
}

.visual-design-card__image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(217, 225, 232, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visual-design-card__image:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(233, 30, 121, 0.08);
}

.visual-design-card__image img {
  width: 100%;
  height: auto;
  display: block;
}

.visual-design-card__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(233, 30, 121, 0.5);
  margin-top: 14px;
}

@media (max-width: 960px) {
  .visual-design-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .visual-design-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ── Pre-Release Gallery ── */
.prerelease-group__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 48px 0 16px;
  opacity: 0.7;
}

.prerelease-group__title:first-of-type {
  margin-top: 32px;
}

.prerelease-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.prerelease-phone {
  width: 200px;
  flex-shrink: 0;
  text-align: center;
}

.prerelease-phone img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(217, 225, 232, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: zoom-in;
}

.prerelease-row--compare .prerelease-phone img {
  aspect-ratio: 1170 / 2532;
  height: auto;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.5);
}

.prerelease-phone img:hover {
  transform: scale(1.6);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  z-index: 10;
  position: relative;
}

.prerelease-phone__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(217, 225, 232, 0.4);
  margin-top: 10px;
}

@media (max-width: 768px) {
  .prerelease-phone {
    width: 160px;
  }
}

@media (max-width: 480px) {
  .prerelease-row {
    gap: 16px;
  }
  .prerelease-phone {
    width: 140px;
  }
  .prerelease-phone img:hover {
    transform: scale(1.3);
  }
}

/* ── Usability Studies ── */
.usability-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(217, 225, 232, 0.65);
  letter-spacing: 0.03em;
  margin: 48px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(217, 225, 232, 0.06);
}

.usability-note {
  font-size: 0.85rem;
  color: rgba(217, 225, 232, 0.4);
  font-style: italic;
  margin: 16px 0 0;
}

.usability-note--accent {
  color: rgba(233, 30, 121, 0.45);
}

/* Method cards */
.usability-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.usability-method-card {
  background: rgba(217, 225, 232, 0.03);
  border: 1px solid rgba(217, 225, 232, 0.06);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
}

.usability-method-card__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  color: rgba(233, 30, 121, 0.45);
}

.usability-method-card__stat {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: rgba(217, 225, 232, 0.7);
  margin-bottom: 2px;
}

.usability-method-card__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(233, 30, 121, 0.45);
  margin-bottom: 10px;
}

.usability-method-card__detail {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(217, 225, 232, 0.4);
}

@media (max-width: 768px) {
  .usability-method-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Key Findings */
.usability-findings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.usability-finding {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(217, 225, 232, 0.02);
  border: 1px solid rgba(217, 225, 232, 0.06);
  border-radius: 10px;
  transition: border-color 0.3s ease;
}

.usability-finding:hover {
  border-color: rgba(233, 30, 121, 0.15);
}

.usability-finding__number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(233, 30, 121, 0.1);
  color: #e91e8c;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.usability-finding h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(217, 225, 232, 0.7);
  margin-bottom: 6px;
}

.usability-finding p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(217, 225, 232, 0.45);
}

/* What Worked Well */
.usability-wins {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.usability-win {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(60, 180, 100, 0.04);
  border: 1px solid rgba(60, 180, 100, 0.1);
  border-radius: 8px;
  font-size: 0.88rem;
  color: rgba(217, 225, 232, 0.55);
}

.usability-win__check {
  flex-shrink: 0;
  color: rgba(60, 180, 100, 0.6);
  font-size: 1rem;
  font-weight: 600;
}

/* Design Improvements */
.usability-improvements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.usability-improvement {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: rgba(217, 225, 232, 0.02);
  border: 1px solid rgba(217, 225, 232, 0.06);
  border-radius: 10px;
}

.usability-improvement__num {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(233, 30, 121, 0.4);
  letter-spacing: 0.02em;
}

.usability-improvement h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(217, 225, 232, 0.65);
  margin-bottom: 4px;
}

.usability-improvement p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(217, 225, 232, 0.4);
}

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

/* Future Opportunities */
.usability-opportunities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0 0 20px;
}

.usability-opportunity {
  padding: 24px;
  background: rgba(217, 225, 232, 0.02);
  border: 1px solid rgba(217, 225, 232, 0.06);
  border-radius: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.usability-opportunity:hover {
  border-color: rgba(233, 30, 121, 0.15);
  transform: translateY(-3px);
}

.usability-opportunity__icon {
  width: 32px;
  height: 32px;
  color: rgba(233, 30, 121, 0.4);
  margin-bottom: 14px;
}

.usability-opportunity h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(217, 225, 232, 0.65);
  margin-bottom: 8px;
}

.usability-opportunity p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(217, 225, 232, 0.4);
}

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

/* Conclusion accent card */
.takeaway-conclusion {
  display: flex;
  gap: 0;
  margin: 24px 0 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(217, 225, 232, 0.06);
  background: rgba(233, 30, 121, 0.03);
}

.takeaway-conclusion__accent {
  width: 4px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #e91e8c, rgba(233, 30, 121, 0.2));
}

.takeaway-conclusion__content {
  padding: 28px 32px;
}

.takeaway-conclusion__content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(217, 225, 232, 0.55);
}

.takeaway-conclusion__content p:first-child {
  margin-bottom: 12px;
}

/* ── Lo-Fi Prototype ── */
.lofi-hint {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(217, 225, 232, 0.35);
  margin: 8px 0 24px;
  font-style: italic;
}

.lofi-prototype {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
}

.lofi-phone {
  width: 240px;
  min-height: 480px;
  background: #2a2e36;
  border-radius: 28px;
  border: 3px solid rgba(217, 225, 232, 0.12);
  padding: 8px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.lofi-phone__notch {
  width: 60px;
  height: 6px;
  background: rgba(217, 225, 232, 0.1);
  border-radius: 3px;
  margin: 4px auto 6px;
}

.lofi-phone__screen {
  flex: 1;
  background: #1c1f26;
  border-radius: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  max-height: 420px;
  scrollbar-width: none;
}

.lofi-phone__screen::-webkit-scrollbar {
  display: none;
}

.lofi-screen {
  display: none;
  flex-direction: column;
  padding: 12px;
  min-height: 100%;
  animation: lofiSlideIn 0.25s ease;
}

.lofi-screen--active {
  display: flex;
}

@keyframes lofiSlideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.lofi-phone__nav {
  display: flex;
  justify-content: space-around;
  padding: 6px 4px 4px;
}

.lofi-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 0.45rem;
  color: rgba(217, 225, 232, 0.3);
  cursor: pointer;
  transition: color 0.2s;
}

.lofi-nav-item--active,
.lofi-nav-item:hover {
  color: rgba(120, 160, 220, 0.7);
}

.lofi-nav-icon {
  font-size: 0.75rem;
}

/* Lo-fi elements */
.lofi-text {
  height: 6px;
  background: rgba(217, 225, 232, 0.2);
  border-radius: 3px;
}

.lofi-text--xs { height: 5px; font-size: 0; }
.lofi-text--sm { height: 7px; background: rgba(217, 225, 232, 0.3); }
.lofi-text--md { height: 9px; background: rgba(217, 225, 232, 0.35); }
.lofi-text--lg { height: 0; font-size: 0.85rem; color: rgba(217, 225, 232, 0.5); font-weight: 600; text-align: center; background: none; width: auto; }
.lofi-accent { background: rgba(120, 160, 220, 0.5) !important; color: rgba(120, 160, 220, 0.7) !important; }

.lofi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.lofi-card {
  background: rgba(217, 225, 232, 0.05);
  border: 1px solid rgba(217, 225, 232, 0.08);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 6px;
}

.lofi-icon-circle {
  border-radius: 50%;
  background: rgba(217, 225, 232, 0.1);
  border: 1px solid rgba(217, 225, 232, 0.15);
}

.lofi-stat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
}

.lofi-stat-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.lofi-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lofi-btn {
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.42rem;
  color: rgba(217, 225, 232, 0.5);
  text-align: center;
  cursor: default;
}

.lofi-btn--primary {
  background: rgba(120, 160, 220, 0.25);
  border: 1px solid rgba(120, 160, 220, 0.3);
}

.lofi-btn--outline {
  background: rgba(217, 225, 232, 0.04);
  border: 1px solid rgba(217, 225, 232, 0.12);
}

.lofi-input {
  background: rgba(217, 225, 232, 0.06);
  border: 1px solid rgba(217, 225, 232, 0.12);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.45rem;
  color: rgba(217, 225, 232, 0.4);
}

.lofi-divider {
  height: 1px;
  background: rgba(217, 225, 232, 0.08);
  margin: 8px 0;
}

.lofi-score-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.45rem;
  font-weight: 600;
  color: rgba(20, 20, 20, 0.8);
}

.lofi-score-dot--yellow { background: rgba(200, 180, 60, 0.5); }
.lofi-score-dot--red { background: rgba(180, 70, 60, 0.5); }

.lofi-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.lofi-key {
  padding: 7px 0;
  border-radius: 5px;
  font-size: 0.5rem;
  font-weight: 600;
  text-align: center;
  color: rgba(20, 20, 20, 0.7);
}

.lofi-key--gold { background: rgba(180, 160, 50, 0.4); }
.lofi-key--red { background: rgba(160, 60, 50, 0.4); }
.lofi-key--blue { background: rgba(60, 80, 140, 0.5); }
.lofi-key--gray { background: rgba(140, 140, 140, 0.3); }

.lofi-target-wrap {
  display: flex;
  justify-content: center;
  flex: 1;
}

.lofi-target-svg {
  width: 130px;
  height: 130px;
}

/* Navigation arrows */
.lofi-nav-arrow {
  background: none;
  border: 1px solid rgba(217, 225, 232, 0.12);
  color: rgba(217, 225, 232, 0.4);
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lofi-nav-arrow:hover {
  border-color: rgba(233, 30, 121, 0.3);
  color: rgba(233, 30, 121, 0.6);
}

/* Screen label and dots */
.lofi-screen-label {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: rgba(217, 225, 232, 0.5);
  margin-top: 16px;
  letter-spacing: 0.04em;
}

.lofi-screen-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.lofi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(217, 225, 232, 0.12);
  cursor: pointer;
  transition: all 0.2s;
}

.lofi-dot--active {
  background: rgba(233, 30, 121, 0.5);
}

.lofi-dot:hover {
  background: rgba(233, 30, 121, 0.3);
}

@media (max-width: 480px) {
  .lofi-phone {
    width: 200px;
    min-height: 400px;
  }
  .lofi-nav-arrow { display: none; }
}

/* ── Persona embed ── */
.case-study-persona-embed {
  margin: 40px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(217, 225, 232, 0.06);
}

.case-study-persona-embed iframe {
  width: 100%;
  height: 520px;
  border: none;
}

/* ── Personas two-column grid ── */
.case-study-personas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}

.case-study-persona-col .case-study-section__body {
  margin-bottom: 16px;
}

.case-study-persona-col .case-study-persona-embed {
  margin: 0;
}

.case-study-persona-col .case-study-persona-embed iframe {
  height: 420px;
}

@media (max-width: 1024px) {
  .case-study-personas-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .case-study-persona-embed iframe,
  .case-study-persona-col .case-study-persona-embed iframe {
    height: 820px;
  }
}

/* ── User Journey Map ── */
.journey-map-wrapper {
  position: relative;
  margin: 40px 0;
  max-width: 100%;
  overflow: hidden;
}

.journey-map-wrapper::after {
  content: 'Scroll to view full map \2192';
  display: none;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(233, 30, 121, 0.5);
  padding: 10px 0 0;
}

@media (max-width: 960px) {
  .journey-map-wrapper::after { display: block; }
}

.journey-map {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 30, 121, 0.3) transparent;
}

.journey-map__table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
}

.journey-map__header-row th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--magenta);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--magenta);
  white-space: nowrap;
}

.journey-map__header-row th:first-child {
  width: 110px;
}

.journey-map__phase-row td {
  padding: 0;
  border-bottom: 1px solid rgba(217, 225, 232, 0.08);
  vertical-align: top;
}

.journey-map__phase-row td:first-child {
  padding: 16px 16px 16px 0;
}

.journey-map__phase-header {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--off-white);
  padding: 16px 16px 16px 0;
  white-space: nowrap;
}

.journey-map__phase-cell {
  padding: 14px 16px;
  border-left: 1px solid rgba(217, 225, 232, 0.06);
}

.journey-map__phase-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--off-white);
  margin-bottom: 8px;
}

.journey-map__task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.journey-map__task-list li {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(217, 225, 232, 0.7);
  padding: 2px 0;
  padding-left: 14px;
  position: relative;
}

.journey-map__task-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--magenta);
  opacity: 0.5;
}

.journey-map__feelings {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.journey-map__feeling-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(233, 30, 140, 0.08);
  color: rgba(217, 225, 232, 0.75);
  border: 1px solid rgba(233, 30, 140, 0.15);
}

.journey-map__opportunity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.journey-map__opportunity-list li {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(217, 225, 232, 0.7);
  padding: 2px 0;
  padding-left: 14px;
  position: relative;
}

.journey-map__opportunity-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(41, 211, 239, 0.5);
  font-size: 11px;
}

.journey-map__persona-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 20px;
  background: rgba(233, 30, 140, 0.04);
  border: 1px solid rgba(233, 30, 140, 0.12);
  border-radius: 8px;
}

.journey-map__persona-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--magenta);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.journey-map__persona-name {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--off-white);
  font-weight: 500;
}

.journey-map__persona-goal {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(217, 225, 232, 0.6);
  margin-left: auto;
  font-style: italic;
}

@media (max-width: 768px) {
  .journey-map__persona-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .journey-map__persona-goal {
    margin-left: 0;
  }
}

/* ── Footer nav ── */
.case-study-footer {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 40px 80px;
  border-top: 1px solid rgba(217, 225, 232, 0.06);
  display: flex;
  justify-content: center;
}

.case-study-footer__back {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--magenta);
  text-decoration: none;
  border: 1px solid var(--magenta);
  padding: 14px 36px;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}

.case-study-footer__back:hover {
  background: var(--magenta);
  color: var(--white);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .section-nav__inner {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .section-nav__link {
    padding: 12px 8px;
    gap: 4px;
  }

  .section-nav__number {
    display: none;
  }

  .section-nav__text {
    font-size: 11px;
  }

  .case-study-hero {
    padding: 120px 24px 60px;
  }

  .case-study-hero__title {
    font-size: 36px;
  }

  .case-study-hero__subtitle {
    font-size: 17px;
  }

  .case-study-meta {
    grid-template-columns: 1fr;
    padding: 20px 24px 32px;
  }

  .case-study-meta__item {
    padding: 8px 0;
  }

  .case-study-meta__item:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }

  .case-study-meta__item:nth-child(even) {
    padding-left: 0;
  }

  .case-study-meta__item:last-child {
    border-bottom: none;
  }

  .case-study-hero__logo-wrap {
    width: 80px;
    height: 80px;
  }

  .case-study-section {
    padding: 40px 24px;
  }

  .case-study-section__title {
    font-size: 26px;
  }

  .case-study-image-grid {
    grid-template-columns: 1fr;
  }

  .case-study-footer {
    padding: 40px 24px 60px;
  }
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
  background: var(--deep-slate);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(217, 225, 232, 0.7);
  margin-top: -24px;
}

.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cool-gray);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(31, 46, 58, 0.6);
  border: 1px solid rgba(217, 225, 232, 0.1);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--off-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(233, 30, 121, 0.1);
}

.form-input::placeholder { color: rgba(217, 225, 232, 0.3); }
.form-textarea { resize: vertical; min-height: 120px; }

.btn {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease;
}

.btn--primary {
  background: var(--magenta);
  color: var(--white);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 30, 121, 0.3);
}

.btn--primary:active { transform: translateY(0); }

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--charcoal-navy);
  padding: 48px 0;
  border-top: 1px solid rgba(217, 225, 232, 0.06);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo__img {
  height: 42px;
  width: auto;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(217, 225, 232, 0.4);
  letter-spacing: 2px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--cool-gray);
  transition: color 0.3s ease;
}

.footer-link:hover { color: var(--magenta); }

.footer-copy {
  font-size: 12px;
  color: rgba(217, 225, 232, 0.3);
}

/* ========================================
   Scroll Reveal
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reveal variants ── */
.reveal--flip {
  transform: perspective(800px) rotateX(8deg) translateY(20px);
  transform-origin: top center;
}
.reveal--flip.reveal--visible {
  transform: perspective(800px) rotateX(0deg) translateY(0);
}

.reveal--drop {
  transform: translateY(15px) scale(0.98);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal--drop.reveal--visible {
  transform: translateY(0) scale(1);
}

.reveal--slide-left {
  transform: translateX(-40px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.reveal--slide-left.reveal--visible {
  transform: translateX(0);
}

.reveal--slide-right {
  transform: translateX(40px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.reveal--slide-right.reveal--visible {
  transform: translateX(0);
}

/* Stagger children within a group */
.reveal--stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal--stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal--stagger > *:nth-child(3) { transition-delay: 0.2s; }
.reveal--stagger > *:nth-child(4) { transition-delay: 0.3s; }

/* ========================================
   DMC Case Study Components
   ======================================== */

/* Pain Points */
.dmc-pain-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.dmc-pain-point {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--deep-slate);
  border-radius: 10px;
  border: 1px solid rgba(217, 225, 232, 0.06);
}

.dmc-pain-point__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(233, 30, 121, 0.12);
  color: var(--magenta);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}

.dmc-pain-point strong {
  display: block;
  color: var(--off-white);
  font-size: 14px;
  margin-bottom: 6px;
}

.dmc-pain-point p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(217, 225, 232, 0.6);
  margin: 0;
}

/* Persona Cards (inline) */
.dmc-persona-embed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.dmc-persona-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--deep-slate);
  border-radius: 12px;
  border: 1px solid rgba(217, 225, 232, 0.06);
}

.dmc-persona-card__photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}

.dmc-persona-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmc-persona-card__name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--magenta);
  margin: 0 0 4px;
}

.dmc-persona-card__role {
  font-size: 12px;
  color: rgba(217, 225, 232, 0.6);
  margin: 0 0 10px;
}

.dmc-persona-card__quote {
  font-style: italic;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(217, 225, 232, 0.75);
  margin: 0 0 12px;
}

.dmc-persona-card__quote::before { content: '\201C'; }
.dmc-persona-card__quote::after { content: '\201D'; }

.dmc-persona-card__details {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: rgba(217, 225, 232, 0.5);
}

/* Paper Wireframes — styles in dmc.css */

/* Digital Wireframe Grid */
.dmc-wireframe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.dmc-wireframe-phone {
  text-align: center;
}

.dmc-wireframe-phone img {
  width: 100%;
  max-width: 200px;
  border-radius: 20px;
  border: 2px solid rgba(217, 225, 232, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease-out);
}

.dmc-wireframe-phone img:hover {
  transform: scale(1.05);
}

.dmc-wireframe-phone__label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(217, 225, 232, 0.5);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Lo-Fi Prototype Grid */
.dmc-lofi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.dmc-lofi-phone {
  text-align: center;
}

.dmc-lofi-phone img {
  width: 100%;
  max-width: 220px;
  border-radius: 20px;
  border: 2px solid rgba(232, 113, 26, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease-out);
  cursor: zoom-in;
}

.dmc-lofi-phone img:hover {
  transform: scale(1.5);
  z-index: 10;
  position: relative;
}

.dmc-lofi-phone__label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(217, 225, 232, 0.5);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Placeholder text for incomplete sections */
.case-study-placeholder {
  font-style: italic;
  color: rgba(217, 225, 232, 0.4);
  border-left: 3px solid rgba(233, 30, 121, 0.2);
  padding-left: 16px;
}

/* DMC responsive */
@media (max-width: 768px) {
  .dmc-pain-points { grid-template-columns: 1fr; }
  .dmc-persona-embed { grid-template-columns: 1fr; }
  .dmc-persona-card { flex-direction: column; align-items: center; text-align: center; }
  .dmc-wireframe-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .dmc-lofi-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .nav-banner__label { font-size: 18px; letter-spacing: 6px; }

  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card--featured { grid-column: 1; }
  .project-card-link--featured { grid-column: 1; }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
  .process-timeline::before { display: none; }

  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 80px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 48px 0; }
  .hero-inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    padding: 0 24px;
  }
  .hero-logo { width: 160px; height: 160px; }
  .hero-logo__img { width: 85%; }
  .hero-rule { margin: 0 auto 16px; }

  .nav-banner__label { font-size: 14px; letter-spacing: 4px; }

  /* Nav banner — center text within circles on mobile */
  .nav-banner__overlay {
    bottom: 20%;
  }
  .nav-banner__label {
    font-size: 11px;
    letter-spacing: 3px;
  }
  .nav-banner {
    padding-bottom: 40px;
  }

  /* Section heading rows — hide banner images & wavy line on mobile */
  .section-heading-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 48px;
  }
  .section-heading-wave,
  .section-banner {
    display: none;
  }

  /* Portfolio — stack cards to single column, full width */
  .work-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 24px;
  }
  .project-card__title {
    font-size: 24px;
  }
  .project-card--horizontal {
    flex-direction: column;
  }
  .project-card--horizontal .project-card__image--web {
    flex: none;
    max-width: 100%;
    aspect-ratio: 16 / 7 !important;
    border-radius: 12px 12px 0 0;
    order: -1;
  }
  .project-card--horizontal .project-card__info {
    padding: 24px;
  }

  .process-timeline { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-photos-row { grid-template-columns: repeat(2, 1fr); }
  .about-skills { grid-template-columns: 1fr 1fr; }

  .footer-layout {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-brand { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  :root { --section-pad: 64px; }
  .section-heading__title { font-size: 32px; }
  .about-photos-row { grid-template-columns: repeat(2, 1fr); }
  .about-skills { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .project-card__info { padding: 20px 24px 24px; }
}

/* ========================================
   Motion Toggle Button
   ======================================== */

.motion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(217, 225, 232, 0.15);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--cool-gray);
  opacity: 0.5;
  transition: opacity 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  margin-right: 12px;
  flex-shrink: 0;
}

.motion-toggle:hover {
  opacity: 1;
  border-color: var(--magenta);
  color: var(--magenta);
}

.motion-toggle__icon--off { display: none; }

/* When motion is reduced, swap icons */
body.reduce-motion .motion-toggle__icon--on { display: none; }
body.reduce-motion .motion-toggle__icon--off { display: block; }

/* ========================================
   Reduced Motion — disable animations
   ======================================== */

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0ms !important;
  transition-duration: 0.001ms !important;
}

/* Keep page visible (override pageFadeIn) */
body.reduce-motion {
  opacity: 1 !important;
}

/* Hide all canvas elements and pause video */
body.reduce-motion canvas {
  opacity: 0 !important;
}
body.reduce-motion video {
  display: none;
}

/* Restore text colors that depend on background-clip: text + animation */
body.reduce-motion .hero-name__first,
body.reduce-motion .hero-name__last,
body.reduce-motion .project-card__title,
body.reduce-motion .section-heading__title,
body.reduce-motion .case-study-hero__title {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: var(--off-white) !important;
}

body.reduce-motion .hero-name__first {
  -webkit-text-fill-color: var(--off-white) !important;
}

body.reduce-motion .hero-name__last {
  -webkit-text-fill-color: var(--magenta) !important;
}

/* Stop wavy line animation */
body.reduce-motion .section-heading-wave__path {
  stroke-dasharray: none !important;
}

/* Gallery scroll freeze */
body.reduce-motion .featured-gallery__track {
  animation: none !important;
  transform: none !important;
}

/* Scroll reveal — show everything immediately */
body.reduce-motion .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Testimonials ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  align-items: stretch;
}

.testimonial-grid > .testimonial:nth-child(1),
.testimonial-grid > .testimonial:nth-child(2) {
  grid-row: span 2;
}

.testimonial {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 32px 36px;
  border-radius: 12px;
  border: 1px solid rgba(217, 225, 232, 0.08);
  background: rgba(233, 30, 121, 0.03);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #e91e8c, rgba(233, 30, 121, 0.15));
}

.testimonial__quote {
  margin: 0 0 24px;
  padding: 0;
  border: none;
}

.testimonial__quote p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(217, 225, 232, 0.7);
  font-style: italic;
  margin-bottom: 14px;
}

.testimonial__quote p:last-child {
  margin-bottom: 0;
}

.testimonial__credit {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 225, 232, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(217, 225, 232, 0.85);
  letter-spacing: 0.02em;
}

.testimonial__title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--magenta);
  opacity: 0.75;
}

@media (max-width: 1000px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-grid > .testimonial:nth-child(1),
  .testimonial-grid > .testimonial:nth-child(2) {
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .testimonial {
    padding: 26px 28px;
  }
}

/* System-level prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }

  body {
    opacity: 1 !important;
  }

  canvas {
    opacity: 0 !important;
  }

  .hero-name__first,
  .hero-name__last,
  .project-card__title,
  .section-heading__title,
  .case-study-hero__title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: var(--off-white) !important;
  }

  .hero-name__last {
    -webkit-text-fill-color: var(--magenta) !important;
  }

  .section-heading-wave__path {
    stroke-dasharray: none !important;
  }

  .featured-gallery__track {
    animation: none !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
