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

:root {
  --black: #350000;
  --white: #F9F9F9;
  --blue: #5A50FF;
  --muted: #7a6060;
  --border: #e8ddd9;
  --bg-tag: #ece5e2;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max: 1280px;
  --pad: clamp(24px, 5vw, 80px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Scroll Reveal ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Nav ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(249,249,249,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-color: var(--border); }

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 14px;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--blue); }

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { color: var(--blue); background: var(--bg-tag); }
.icon-sun { display: none; }
body.dark .icon-moon { display: none; }
body.dark .icon-sun { display: block; }

/* ─── Dark Mode ───────────────────────────────────── */
body.dark {
  --black: #F9F9F9;
  --white: #1D1D1D;
  --muted: rgba(249,249,249,0.5);
  --border: rgba(249,249,249,0.12);
  --bg-tag: rgba(249,249,249,0.08);
  background: #1D1D1D;
  color: #F9F9F9;
}
body.dark nav { background: rgba(29,29,29,0.94); }
body.dark nav.scrolled { border-color: rgba(249,249,249,0.1); }
body.dark .work-item:hover { background: rgba(249,249,249,0.07); color: #F9F9F9; }
body.dark .work-item:hover .work-desc-inline { color: rgba(249,249,249,0.5); }
body.dark .process-card { background: rgba(249,249,249,0.05); border-color: rgba(249,249,249,0.1); }
body.dark .process-card:hover { border-color: rgba(249,249,249,0.35); box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
body.dark .contact-link-row { border-color: rgba(249,249,249,0.1); }
body.dark footer { border-color: rgba(249,249,249,0.1); }
body.dark .work-arrow { border-color: rgba(249,249,249,0.2); }
body.dark .cs-carousel { background: #1D1D1D; }

/* ─── Layout ──────────────────────────────────────── */
main { padding-top: 60px; }
section { max-width: var(--max); margin: 0 auto; padding: 120px var(--pad); }

/* ─── Hero ────────────────────────────────────────── */
#hero {
  padding-top: 72px;
  padding-bottom: 40px;
}

#top {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--pad) 48px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1); }
}

.hero-heading {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin-bottom: 36px;
}

.accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  justify-content: start;
  column-gap: 48px;
}

.stat-item { display: flex; flex-direction: column; gap: 6px; }

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stat-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}

/* ─── Ticker ──────────────────────────────────────── */
.ticker-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 28s linear infinite;
}

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

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--black);
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ─── Work ────────────────────────────────────────── */
#work { padding-bottom: 120px; }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--muted);
}

.work-header {
  margin-bottom: 40px;
}

.work-heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.work-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 40ch;
}

.work-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: transparent;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-family: var(--font-main);
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
}

.filter-btn:hover { border-color: var(--black); color: var(--black); }
.filter-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ─── Work Bento Grid ──────────────────────────────── */
.work-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
  height: 620px;
}

.work-card {
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  position: relative;
  transition: transform 0.3s ease;
}

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 38%, rgba(0,0,0,0.10) 65%, transparent 100%);
  transition: opacity 0.3s;
}

.work-card:hover { transform: scale(0.985); }
.work-card:hover::after { opacity: 0.92; }

.work-card--featured {
  grid-column: 1;
  grid-row: 1 / 3;
}

.work-card--wide {
  grid-column: 2 / 4;
  grid-row: 1;
}

.work-card:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.work-card:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.work-card-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 32px 20px;
}

.work-card-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.work-card-bottom {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.work-card-text { display: flex; flex-direction: column; gap: 6px; }

.work-card-title {
  font-family: var(--font-main);
  font-size: clamp(15px, 1.3vw, 22px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.work-card-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
  max-width: 360px;
  margin-top: 2px;
}

.work-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #ffffff;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.work-card:hover .work-card-arrow {
  background: var(--blue);
  border-color: var(--blue);
}
.work-card-arrow svg { width: 15px; height: 15px; }

@media (max-width: 768px) {
  .work-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 200px 200px;
    height: auto;
  }
  .work-card--featured { grid-column: 1 / 3; grid-row: 1; }
  .work-card--wide { grid-column: 1 / 3; grid-row: 2; }
  .work-card:nth-child(3) { grid-column: 1; grid-row: 3; }
  .work-card:nth-child(4) { grid-column: 2; grid-row: 3; }
  .work-card-inner { padding: 20px; }
  .work-card-desc { display: none; }
}

.work-list { border-top: 1px solid var(--border); }

.work-item {
  display: grid;
  grid-template-columns: 60px 1fr 1fr auto 48px;
  align-items: center;
  gap: 24px;
  padding: 28px 16px;
  margin: 0 -16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 0;
  position: relative;
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-item:hover { background: #E2DADA; }
.work-item.hidden { display: none; }

.work-num {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}

.work-item:hover .work-num { color: var(--blue); }

.work-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  position: relative;
  display: inline-block;
}


.work-desc-inline {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 50ch;
  transition: color 0.25s ease;
}

.work-item:hover { color: var(--black); }
.work-item:hover .work-desc-inline { color: var(--muted); }

.work-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.work-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--bg-tag);
  padding: 3px 8px;
  border-radius: 3px;
  transition: background 0.25s ease, color 0.25s ease;
}

.work-item:hover .work-tag {
  background: #e8e8e8;
  color: #555;
}

.work-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease;
}

.work-item:hover .work-arrow {
  transform: translateX(6px);
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.work-arrow svg { width: 16px; height: 16px; }

/* ─── About ───────────────────────────────────────── */
#about { padding-top: 120px; }

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

.about-portrait {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #dde1f0 0%, #e8d5f0 50%, #d5e8e0 100%);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #dde1f0 0%, #e8d5f0 50%, #d5e8e0 100%);
}

.about-content { padding-top: 0; }

.about-heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 32px;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-bio p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  text-align: justify;
}

.about-experience {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.exp-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.exp-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exp-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}

.exp-role {
  font-size: 13px;
  color: var(--muted);
}

.exp-year {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.about-bio strong {
  color: inherit;
  font-weight: 600;
}

/* ─── Process ─────────────────────────────────────── */
#process {
  border-top: 1px solid var(--border);
}

.process-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

.process-heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  white-space: nowrap;
}

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

.process-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.process-card:hover {
  border-color: #d9ceca;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.process-num {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 20px;
}

.process-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.process-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── CTA Banner ──────────────────────────────────── */
.cta-banner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 80px;
}

.cta-banner-inner {
  background: var(--black);
  border-radius: 20px;
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-heading {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.cta-heading .accent { color: var(--blue); }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--black);
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ─── Contact ─────────────────────────────────────── */
#contact {
  border-top: 1px solid var(--border);
}

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

.contact-heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 32px;
}

.contact-heading .accent { color: var(--blue); }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  width: 100%;
  transition: border-color 0.2s;
}

.contact-email:hover { border-color: var(--black); }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-link-row:hover { color: var(--blue); }

.contact-link-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.availability-card {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  background: #f5eeeb;
}

.avail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

.availability-card p {
  font-size: 14px;
  color: var(--black);
  line-height: 1.6;
}

.availability-card strong { font-weight: 700; }

/* ─── Footer ──────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy, .footer-tag {
  font-size: 13px;
  color: var(--muted);
}

/* ─── Case Study Page ─────────────────────────────── */
.cs-hero {
  padding: 80px var(--pad) 80px;
  max-width: var(--max);
  margin: 0 auto;
}

.cs-hero--split {
  padding-bottom: 60px;
}

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

.cs-hero-left {
  display: flex;
  flex-direction: column;
}

.cs-hero-right {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.cs-hero-right video {
  width: 100%;
  display: block;
}

.cs-hero--split .cs-heading {
  font-size: clamp(28px, 3.5vw, 52px);
}

@media (max-width: 768px) {
  .cs-hero-grid {
    grid-template-columns: 1fr;
  }
  .cs-hero-right {
    order: -1;
  }
  .cs-hero--split .cs-heading {
    font-size: clamp(28px, 6vw, 48px);
  }
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
  transition: color 0.2s;
}

.cs-back:hover { color: var(--black); }

.cs-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cs-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

.cs-heading {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 24px;
}

.cs-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.5;
}

.cs-cover {
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 0 var(--pad);
}

.cs-cover-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8eaf6, #f3e5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  aspect-ratio: 16/9;
}

.cs-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-cover-img:has(video) {
  aspect-ratio: 16/9;
  padding: 0;
  background: #0f172a;
}

.cs-cover-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.cs-cover-video {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.cs-cover-video video {
  width: 100%;
  display: block;
}

.cs-body-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 100px;
}

.cs-section-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 80px;
  row-gap: 56px;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.cs-section-heading {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0 0 24px;
  line-height: 1.2;
}

.cs-section-body > p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}
.cs-section-body > p:last-child { margin-bottom: 0; }

.cs-section-media {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
}

.cs-outcome-chart { padding: 4px 0; }
.cs-outcome-chart-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.cs-outcome-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.cs-outcome-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px 20px; }
.cs-outcome-card-num { font-size: clamp(36px, 4vw, 48px); font-weight: 800; color: var(--blue); letter-spacing: -0.03em; line-height: 1; margin: 0 0 10px; }
.cs-outcome-card-meta { font-size: 15px; font-weight: 600; color: var(--black); letter-spacing: -0.01em; margin: 0 0 6px; text-transform: none; }
.cs-outcome-card-sub { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin: 0; }

.cs-section-media .cs-ba-slider,
.cs-section-media .cs-video-block,
.cs-section-media .cs-audit-block,
.cs-section-media .cs-image-block { margin: 0; }

.cs-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0;
  white-space: nowrap;
}

.cs-section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}

.cs-section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cs-section p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}

.cs-num {
  font-weight: 700;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}

.cs-meta-grid {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 40px 0;
}

.cs-meta-item {
  background: var(--white);
  padding: 24px;
}

.cs-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.cs-meta-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cs-meta-link {
  color: var(--black);
  text-decoration: none;
  transition: color 0.15s ease;
}
.cs-meta-link:hover { color: var(--blue); }

.cs-video-block {
  width: 100%;
  margin: 40px 0;
  border-radius: 12px;
  overflow: hidden;
}

.cs-video-block video {
  width: 100%;
  display: block;
}

.cs-audit-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 40px 40px 48px;
  background: #0f172a;
  border-radius: 16px;
  margin: 40px 0;
}

.cs-audit-desktop {
  width: 63%;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  display: block;
}

.cs-audit-mobile {
  width: 35%;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  display: block;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .cs-audit-block {
    flex-direction: column;
    padding: 24px;
    gap: 12px;
  }
  .cs-audit-desktop,
  .cs-audit-mobile {
    width: 100%;
    margin-top: 0;
  }
}

/* ── Before/After Slider ── */
.cs-ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: 40px 0;
  background: #0f172a;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}

.cs-ba-img-after {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  border-radius: 16px;
}

.cs-ba-before-wrap {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
}

.cs-ba-img-before {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  max-width: none;
  pointer-events: none;
}

.cs-ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cs-ba-handle-knob {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
  color: #1a1a1a;
  flex-shrink: 0;
}

.cs-ba-label-before,
.cs-ba-label-after {
  position: absolute;
  top: 16px;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.85);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
}

.cs-ba-label-before { left: 16px; }
.cs-ba-label-after  { right: 16px; }

/* ─── Carousel ───────────────────────────────── */
.cs-image-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 40px 0;
  width: 100%;
  max-width: 1280px;
}
.cs-image-stack img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  transition: background 0.25s ease;
}
#lightbox.active {
  background: rgba(0,0,0,0.85);
}
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  opacity: 0;
  transform-origin: center center;
  transition: opacity 0.25s ease;
  user-select: none;
}
#lightbox.active img {
  opacity: 1;
  transform: scale(1);
}
.lb-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  pointer-events: none;
}

.cs-carousel {
  position: relative;
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  margin: 40px 0;
  background: #ffffff;
}
@media (max-width: 768px) {
  .cs-carousel { aspect-ratio: 16 / 9; }
}

.cs-carousel-track { width: 100%; height: 100%; }

.cs-carousel-slide { display: none; width: 100%; height: 100%; }
.cs-carousel-slide[data-active] { display: block; }
.cs-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cs-carousel-prev,
.cs-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  opacity: 0;
  transition: background 0.2s, opacity 0.2s;
}
.cs-carousel-prev { left: 16px; }
.cs-carousel-next { right: 16px; }
.cs-carousel:hover .cs-carousel-prev,
.cs-carousel:hover .cs-carousel-next { opacity: 1; }
.cs-carousel-prev:hover, .cs-carousel-next:hover { background: #fff; }

.cs-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.cs-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.cs-carousel-dot.active { background: #3C1053; }

.cs-image-block {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e8eaf6, #f3e5f5, #e8f5e9);
  border-radius: 12px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
}

.cs-image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-disclaimer {
  max-width: var(--max);
  margin: 0 auto 48px;
  padding: 0 var(--pad);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.cs-nav {
  border-top: 1px solid var(--border);
  padding: 48px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cs-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-nav-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cs-nav-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }

/* ─── Responsive ──────────────────────────────────── */

/* lg — 1024px */
@media (max-width: 1024px) {
  .about-inner { gap: 48px; }
}

/* case study sections — stack on tablet */
@media (max-width: 860px) {
  .cs-section-row { grid-template-columns: 1fr; column-gap: 0; row-gap: 32px; padding: 56px 0; }
}

/* below 900px — collapse 2-col grids */
@media (max-width: 900px) {
  .work-item { grid-template-columns: 40px 1fr auto 40px; }
  .work-desc-inline { display: none; }

  .work-header,
  .about-inner,
  .contact-inner,
  .process-header { grid-template-columns: 1fr; }

  .process-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }

  .about-portrait { max-width: 520px; aspect-ratio: 4/5; }

  .cta-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 40px;
  }
}

/* md — 768px */
@media (max-width: 768px) {
  section { padding: 80px var(--pad); }
  .process-heading { white-space: normal; }
  .about-portrait { max-width: 420px; aspect-ratio: 4/5; }
  .cs-meta-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
}

/* sm — 640px */
@media (max-width: 640px) {
  :root { --pad: 20px; }
  section { padding: 64px var(--pad); }

  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }

  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 16px; }

  .work-item { grid-template-columns: 40px 1fr auto; }
  .work-arrow { display: none; }

  .process-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner-inner { padding: 40px 28px; }
  .cta-heading { font-size: clamp(24px, 6vw, 40px); }
}

/* xs — 480px */
@media (max-width: 480px) {
  :root { --pad: 16px; }

  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12px; }

  .hero-content { padding-top: 60px; padding-bottom: 40px; }
  .hero-heading { margin-bottom: 24px; }
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 12px; column-gap: 16px; padding-top: 20px; }

  .process-grid { grid-template-columns: 1fr; }
  .cs-meta-grid { grid-template-columns: 1fr 1fr; }
  .about-portrait { max-width: 100%; aspect-ratio: 4/5; }
  .cta-banner-inner { padding: 32px 20px; }
}

/* xl — let all content grow wider on large screens (Apple-style) */
@media (min-width: 1440px) {
  :root { --max: 1600px; }
  .hero-heading {
    font-size: clamp(112px, 9vw, 160px);
    max-width: 16ch;
  }

}
