/* ============================================
   PORTFOLIO — Elisa Galand
   Style: Playful, bold, Matisse-inspired
   ============================================ */

/* === 1. FONTS & VARIABLES === */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700;800&display=swap');

@font-face {
  font-family: 'Louis George Cafe';
  src: url('../assets/fonts/LouisGeorgeCafe-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Louis George Cafe';
  src: url('../assets/fonts/LouisGeorgeCafe-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --purple:      #755BF8;
  --periwinkle:  #B7BBF4;
  --blue:        #006AFF;
  --gold:        #FDB833;
  --ivory:       #FFFAEB;
  --onyx:        #0A0A0A;

  --purple-light: rgba(117, 91, 248, 0.12);
  --gold-light:   rgba(253, 184, 51, 0.15);
  --blue-light:   rgba(0, 106, 255, 0.10);

  --font-heading: 'Baloo 2', cursive;
  --font-body:    'Louis George Cafe', 'Inter', sans-serif;

  --nav-h:         72px;
  --section-py:    clamp(72px, 9vw, 128px);
  --container-max: 1200px;
  --container-px:  clamp(20px, 5vw, 80px);

  --r-sm:   12px;
  --r-md:   20px;
  --r-lg:   32px;
  --r-xl:   48px;
  --r-full: 9999px;

  --shadow-sm:   0 2px 8px rgba(10,10,10,0.07);
  --shadow-md:   0 6px 24px rgba(10,10,10,0.10);
  --shadow-lg:   0 16px 56px rgba(10,10,10,0.14);
  --shadow-card: 0 4px 20px rgba(117,91,248,0.14);

  --t-fast: 150ms ease;
  --t-base: 260ms ease;
  --t-slow: 420ms cubic-bezier(0.23, 1, 0.32, 1);

  --z-blob:    -1;
  --z-base:    10;
  --z-nav:    100;
  --z-overlay:200;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--onyx);
  background-color: var(--ivory);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

ul, ol { list-style: none; }

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

input, textarea { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === 3. TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 800;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw,   3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 65ch;
}

em  { font-style: italic; color: var(--purple); }
strong { font-weight: 700; }

.text-purple { color: var(--purple); }
.text-gold   { color: var(--gold);   }
.text-blue   { color: var(--blue);   }

/* === 4. LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

.section-title  { margin-bottom: 20px; }
.section-desc   { color: #555; margin-bottom: 52px; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}
.section-header p { max-width: 100%; margin: 0 auto; }

/* === 5. BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base),
              transform var(--t-base), box-shadow var(--t-base),
              border-color var(--t-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover {
  background: var(--onyx);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--onyx);
  border: 2px solid var(--onyx);
}
.btn-ghost:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--gold);
  color: var(--onyx);
  padding: 10px 22px;
  font-size: 0.9rem;
}
.btn-nav:hover {
  background: var(--purple);
  color: #fff;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--onyx);
}
.btn-gold:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Ripple */
.ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleAnim 0.65s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(28); opacity: 0; }
}

/* === 6. NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 250, 235, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.02em;
  transition: color var(--t-fast);
}
.nav-logo:hover { color: var(--gold); }

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

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--onyx);
  position: relative;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width var(--t-base);
}
.nav-link:hover { color: var(--purple); }
.nav-link:hover::after { width: 100%; }

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--onyx);
  transition: color var(--t-fast), transform var(--t-fast);
}
.nav-social:hover {
  color: var(--purple);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--onyx);
  border-radius: 2px;
  transition: all var(--t-base);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === 7. FLOWERS (décoration) === */
.blob {
  position: absolute;
  animation: blobFloat 7s ease-in-out infinite;
  z-index: var(--z-blob);
  pointer-events: none;
  will-change: transform;
  overflow: visible;
}

.blob-purple {
  width: clamp(280px, 40vw, 560px);
  height: clamp(280px, 40vw, 560px);
  top: -12%;
  right: -8%;
  animation-delay: 0s;
}
.blob-gold {
  width: clamp(180px, 28vw, 380px);
  height: clamp(180px, 28vw, 380px);
  bottom: 4%;
  left: -6%;
  animation-delay: -3.5s;
  animation-duration: 9s;
}
.blob-blue {
  width: clamp(120px, 18vw, 260px);
  height: clamp(120px, 18vw, 260px);
  top: 45%;
  left: 8%;
  animation-delay: -6s;
  animation-duration: 11s;
}

@keyframes blobFloat {
  0%,100% { transform: translateY(0)     translateX(0)     rotate(0deg);  }
  25%     { transform: translateY(-26px)  translateX(10px)  rotate(6deg);  }
  50%     { transform: translateY(-14px)  translateX(-12px) rotate(-3deg); }
  75%     { transform: translateY(-38px)  translateX(7px)   rotate(8deg);  }
}

/* === LANG SWITCHER === */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--onyx);
  padding: 6px 12px;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(10,10,10,0.18);
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  cursor: pointer;
  background: transparent;
}
.lang-switcher:hover {
  border-color: var(--purple);
  background: var(--purple-light);
  color: var(--purple);
}
.lang-divider { color: rgba(10,10,10,0.3); margin: 0 1px; }
.lang-option  { color: rgba(10,10,10,0.38); }

/* === 8. HERO === */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-bottom: 80px;
  overflow: hidden;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(117, 91, 248, 0.10);
  border: 1.5px solid rgba(117, 91, 248, 0.28);
  color: var(--purple);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: var(--r-full);
  margin-bottom: 28px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseGreen 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseGreen {
  0%,100% { box-shadow: 0 0 0 0   rgba(34,197,94,0.45); }
  50%     { box-shadow: 0 0 0 6px rgba(34,197,94,0);    }
}

.hero-heading {
  margin-bottom: 24px;
  color: var(--onyx);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #444;
  margin-bottom: 40px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero illustration */
.hero-visual {
  display: none;
  position: relative;
  height: 420px;
  align-items: flex-end;
  justify-content: center;
}

.hero-illustration {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 88%;
  max-width: 360px;
}
.hero-illustration img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: scaleX(-1);
  display: block;
}

.hero-card {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: absolute;
}

.hero-card-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  align-items: flex-start;
  white-space: nowrap;
}

.hero-card-tag-pill {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--r-full);
  white-space: nowrap;
}


/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #999, transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.5; transform: scaleY(1); }
  50%     { opacity: 1;   transform: scaleY(1.2); }
}

/* === 9. WORK SECTION === */
.work { background: var(--ivory); }

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.work-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  cursor: pointer;
  display: block;
  position: relative;
}
.work-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--card-color, var(--purple));
  transition: height var(--t-base);
  z-index: 1;
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.work-card:hover::before { height: 8px; }

.work-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.work-card-image img {
  width: 100%;
  height: 100%;
  transition: transform var(--t-slow);
}
.work-card:hover .work-card-image img { transform: scale(1.05); }

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--card-color, var(--purple));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--t-base);
}
.work-card:hover .work-card-overlay { opacity: 1; }

.work-card-cta {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  transform: translateY(10px);
  transition: transform var(--t-base);
}
.work-card:hover .work-card-cta { transform: translateY(0); }

.work-card-body { padding: 28px 32px 36px; }

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  background: var(--ivory);
  border: 1.5px solid var(--periwinkle);
  color: #555;
  font-size: 0.77rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-full);
}

.work-card-title {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 12px;
  color: var(--onyx);
}
.work-card-desc {
  color: #555;
  font-size: 0.95rem;
  max-width: 55ch;
  line-height: 1.6;
}

/* === 10. ABOUT SECTION === */
.about {
  background: linear-gradient(140deg, var(--periwinkle) 0%, #cdd0ff 100%);
}

.about-blob {
  position: absolute;
  width: clamp(180px, 28vw, 380px);
  height: clamp(180px, 28vw, 380px);
  background: rgba(255, 250, 235, 0.35);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  top: -10%; right: -4%;
  animation: blobMorph 14s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.about-text p { margin-bottom: 18px; max-width: 58ch; }
.about-text .section-title { margin-top: 4px; }

.values-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
}
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(117, 91, 248, 0.14);
  border-radius: var(--r-sm);
  color: var(--purple);
  flex-shrink: 0;
}
.value-item p { margin: 0; font-size: 0.9rem; color: #444; max-width: none; }
.value-item strong { display: block; margin-bottom: 2px; }

.process-steps {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow-md);
}
.process-title {
  font-size: 1.3rem;
  margin-bottom: 28px;
  color: var(--purple);
}
.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(183,187,244,0.45);
}
.process-step:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.step-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--periwinkle);
  line-height: 1;
  flex-shrink: 0;
}
.process-step strong { display: block; margin-bottom: 4px; }
.process-step p { margin: 0; font-size: 0.9rem; color: #555; max-width: none; }

/* === 11. CONTACT SECTION === */
.contact { background: var(--onyx); color: #fff; }
.contact .section-label { color: var(--gold); }
.contact .section-title { color: #fff; }

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text p {
  color: rgba(255,255,255,0.68);
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color var(--t-fast);
}
.contact-link:hover { color: var(--gold); }

.contact-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 48px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  color: #fff;
  font-size: 1rem;
  transition: border-color var(--t-fast), background var(--t-fast);
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.32); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(255,255,255,0.11);
}
.form-group input.error,
.form-group textarea.error { border-color: #ff5a5a; }
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-form .btn-primary {
  background: var(--gold);
  color: var(--onyx);
  margin-top: 8px;
}
.contact-form .btn-primary:hover { background: var(--purple); color: #fff; }

.form-success {
  margin-top: 16px;
  background: rgba(34,197,94,0.14);
  border: 1px solid rgba(34,197,94,0.38);
  color: #4ade80;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-align: center;
}

/* === 12. FOOTER === */
.footer {
  background: #000;
  color: rgba(255,255,255,0.55);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--purple);
}
.footer-copy { font-size: 0.85rem; max-width: none; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--gold); }

/* === 13. SCROLL REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.72s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.72s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero stagger */
.animate-hero-1,
.animate-hero-2,
.animate-hero-3,
.animate-hero-4,
.animate-hero-5 {
  opacity: 0;
  transform: translateY(24px);
}
.animate-hero-1.is-visible { animation: heroFadeUp 0.7s 0.10s forwards cubic-bezier(0.23,1,0.32,1); }
.animate-hero-2.is-visible { animation: heroFadeUp 0.7s 0.26s forwards cubic-bezier(0.23,1,0.32,1); }
.animate-hero-3.is-visible { animation: heroFadeUp 0.7s 0.42s forwards cubic-bezier(0.23,1,0.32,1); }
.animate-hero-4.is-visible { animation: heroFadeUp 0.7s 0.58s forwards cubic-bezier(0.23,1,0.32,1); }
.animate-hero-5.is-visible { animation: heroFadeUp 0.7s 0.74s forwards cubic-bezier(0.23,1,0.32,1); }

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

/* Page enter */
.page-enter {
  animation: pageFadeIn 0.38s ease-out both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === 14. CASE STUDY STYLES === */
.cs-hero {
  padding-top: 56px;
  padding-bottom: 80px;
  background: var(--onyx);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.cs-hero .blob-purple { opacity: 0.35; }
.cs-hero .blob-gold   { opacity: 0.25; }

.cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}
.cs-breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--t-fast);
}
.cs-breadcrumb a:hover { color: var(--gold); }
.cs-breadcrumb-sep { color: rgba(255,255,255,0.25); }

.cs-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.cs-hero-tags .tag {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
}

.cs-hero h1 { color: #fff; margin-bottom: 20px; }

.cs-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.68);
  max-width: 52ch;
  margin-bottom: 48px;
}

.cs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 48px;
}
.cs-meta-item { display: flex; flex-direction: column; gap: 4px; }
.cs-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.cs-meta-value {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}

.cs-hero-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  max-height: 500px;
}
.cs-hero-image img { width: 100%; max-height: 500px; }

/* CS content sections */
.cs-section { padding: 80px 0; }
.cs-section-alt { background: #f9f6ee; }

.cs-section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.cs-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 24px;
  color: var(--onyx);
}

.cs-body-text p { margin-bottom: 18px; }
.cs-body-text p:last-child { margin-bottom: 0; }

.cs-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.cs-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cs-image img { width: 100%; display: block; height: auto; }

.cs-callout {
  border-left: 4px solid var(--purple);
  background: var(--purple-light);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: #333;
  max-width: 60ch;
}

.cs-insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
.cs-insight-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--card-color, var(--purple));
}
.cs-insight-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--onyx);
}
.cs-insight-card p { font-size: 0.9rem; color: #555; max-width: none; margin: 0; }

.cs-process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
.cs-process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.cs-step-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--periwinkle);
  line-height: 1;
  flex-shrink: 0;
}
.cs-process-step h4 { margin-bottom: 6px; }
.cs-process-step p  { font-size: 0.9rem; color: #555; margin: 0; max-width: none; }

.cs-screens {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
.cs-screen {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cs-screen img { width: 100%; display: block; }
.cs-screen-caption {
  padding: 14px 20px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
}

.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.cs-stat {
  background: var(--purple);
  color: #fff;
  padding: 28px 24px;
  border-radius: var(--r-md);
  text-align: center;
}
.cs-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.cs-stat-label { font-size: 0.88rem; opacity: 0.88; line-height: 1.4; }

/* CS next project */
.cs-next {
  background: var(--periwinkle);
  padding: 80px 0;
  text-align: center;
}
.cs-next h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cs-next p  { color: #444; margin: 0 auto 28px; }

/* === 15. REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .animate-hero-1,
  .animate-hero-2,
  .animate-hero-3,
  .animate-hero-4,
  .animate-hero-5 { opacity: 1; transform: none; animation: none; }
}

/* === 16. RESPONSIVE === */

/* Tablet 768px */
@media (min-width: 768px) {
  .hero-container { grid-template-columns: 1fr 1fr; gap: 64px; }
  .hero-visual { display: block; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-container { grid-template-columns: 1fr 1fr; }
  .contact-container { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .cs-two-col { grid-template-columns: 1fr 1fr; }
  .cs-insight-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-process-steps { grid-template-columns: repeat(2, 1fr); }
  .cs-screens { grid-template-columns: repeat(2, 1fr); }
  .contact-links { flex-direction: row; }
}

/* Desktop 1200px */
@media (min-width: 1200px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-card-image { height: 280px; }
  .cs-screens { grid-template-columns: repeat(3, 1fr); }
  .cs-insight-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: var(--z-overlay);
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.5rem; }
}
