/* ═══════════════════════════════════════════════
   RESET & TOKENS
═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #0a0a0b;
  --bg2: #111114;
  --bg3: #18181c;
  --bg4: #1e1e24;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.13);
  --text: #f0eee8;
  --muted: #888680;
  --subtle: #555350;
  --accent: #c8f04a;
  --accent2: #e8d5a3;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Syne", sans-serif;
  --body: "DM Sans", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════
   PAGE ROUTER — only one page visible at a time
═══════════════════════════════════════════════ */
.page {
  display: none;
  min-height: 100vh;
}
.page.active {
  display: block;
}

/* ═══════════════════════════════════════════════
   SHARED NAV
═══════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(20px);
}
.nav-logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.nav-logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-back {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
}
.nav-back:hover {
  color: var(--text);
}
.nav-back::before {
  content: "←";
  font-size: 14px;
}
.nav-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 9px 18px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover {
  opacity: 0.85;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border2);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
nav.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
nav.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
#nav-home-links {
  display: none;
}
#nav-back-btn {
  display: none;
}
body.on-home #nav-home-links {
  display: flex;
}
body:not(.on-home) #nav-back-btn {
  display: flex;
}
.nav-cta-item {
  display: none;
}

/* ═══════════════════════════════════════════════
   SHARED FOOTER
═══════════════════════════════════════════════ */
footer {
  background: var(--bg2);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-logo span {
  color: var(--accent);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  font-size: 12px;
  color: rgba(136, 134, 128, 0.4);
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.d1 {
  transition-delay: 0.1s;
}
.d2 {
  transition-delay: 0.2s;
}
.d3 {
  transition-delay: 0.3s;
}
.d4 {
  transition-delay: 0.4s;
}

/* ═══════════════════════════════════════════════
   HOMEPAGE STYLES
═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -200px;
  right: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 240, 74, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-left {
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.availability-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent2);
}
.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.btn-primary {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 14px 24px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
.btn-ghost {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border2);
  padding: 14px 24px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}
.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  padding-top: 40px;
}
.hero-img-wrap {
  position: relative;
  width: 360px;
}
.hero-img-frame {
  width: 360px;
  height: 480px;
  border-radius: 200px 200px 0 0;
  overflow: hidden;
  border: 1px solid var(--border2);
  position: relative;
}
.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%);
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(10, 10, 11, 0.6) 100%
  );
}
.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-radius: 8px;
  line-height: 1.4;
}
.hero-badge strong {
  font-size: 22px;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}
.hero-img-accent {
  position: absolute;
  top: 24px;
  right: -24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(200, 240, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200, 240, 74, 0.05);
  text-align: center;
}
.impact-band {
  background: var(--accent);
  padding: 18px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-item {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}
.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
/* WORK SECTION */
.home-work {
  background: var(--bg);
  padding: 100px 48px;
}
.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.section-title em {
  font-style: italic;
  color: var(--accent2);
}
.work-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.work-card {
  background: var(--bg3);
  display: grid;
  grid-template-columns: 1fr 480px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.work-card:hover {
  background: #1c1c22;
}
.work-card-left {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
}
.work-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200, 240, 74, 0.3);
  padding: 5px 11px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 24px;
}
.work-card-num {
  font-family: var(--serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}
.work-card-title {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
}
.work-card-desc {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 32px;
}
.work-card-impact {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.impact-num {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.impact-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}
.work-card-arrow {
  position: absolute;
  top: 48px;
  right: 48px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
  transition: all 0.3s;
  pointer-events: none;
}
.work-card:hover .work-card-arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}
.work-card-right {
  position: relative;
  overflow: hidden;
  height: 340px;
}
.work-card-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.5s ease;
  filter: brightness(0.92);
}
.work-card:hover .work-card-right img {
  transform: scale(1.03);
}
.work-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(24, 24, 28, 0.4) 0%,
    transparent 50%
  );
  pointer-events: none;
}
/* ABOUT */
.home-about {
  background: var(--bg2);
  padding: 100px 48px;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
}
.about-text p {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-text p strong {
  color: var(--text);
  font-weight: 500;
}
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.tool-pill {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.tool-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.exp-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:first-child {
  border-top: 1px solid var(--border);
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5px;
}
.exp-company {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.exp-period {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
  white-space: nowrap;
  margin-left: 16px;
}
.exp-role {
  font-size: 13px;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.exp-highlight {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
}
/* CTA */
.home-cta {
  background: var(--bg);
  text-align: center;
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(200, 240, 74, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cta-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cta-label::before,
.cta-label::after {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.cta-headline {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 650px;
  margin: 0 auto 16px;
}
.cta-headline em {
  font-style: italic;
  color: var(--accent2);
}
.cta-sub {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 48px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* ═══════════════════════════════════════════════
   CASE STUDY SHARED STYLES
═══════════════════════════════════════════════ */
.cs-hero {
  padding: 140px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.cs-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.cs-breadcrumb {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs-breadcrumb::before {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.cs-year {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--subtle);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.cs-hero-title {
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  max-width: 800px;
}
.cs-hero-title em {
  font-style: italic;
  color: var(--accent2);
}
.cs-hero-sub {
  font-size: 19px;
  font-weight: 300;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 56px;
}
.cs-meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 64px;
}
.cs-meta-cell {
  padding: 24px 28px;
  border-right: 1px solid var(--border);
}
.cs-meta-cell:last-child {
  border-right: none;
}
.cs-meta-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 8px;
}
.cs-meta-value {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.cs-hero-img {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border2);
  position: relative;
}
.cs-hero-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 580px;
  object-position: top;
}
.cs-hero-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 28px;
  background: linear-gradient(transparent, rgba(10, 10, 11, 0.85));
  font-size: 12px;
  color: rgba(240, 238, 232, 0.5);
  font-family: var(--sans);
  letter-spacing: 0.06em;
}
.cs-impact-band {
  background: var(--accent);
  padding: 0;
}
.cs-impact-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}
.cs-impact-stat {
  padding: 36px 48px;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  text-align: center;
}
.cs-impact-stat:last-child {
  border-right: none;
}
.cs-impact-num {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: var(--bg);
  margin-bottom: 8px;
  display: block;
}
.cs-impact-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 10, 11, 0.6);
}
.cs-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.cs-sidebar {
  position: sticky;
  top: 88px;
  min-width: 0;
  max-width: 100%;
}
.cs-nav-list {
  list-style: none;
}
.cs-nav-list > li {
  margin-bottom: 4px;
}
.cs-nav-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.cs-nav-link::before {
  content: "";
  display: block;
  width: 16px;
  height: 1px;
  background: var(--subtle);
  transition: width 0.2s, background 0.2s;
  flex-shrink: 0;
}
.cs-nav-link:hover,
.cs-nav-link.active {
  color: var(--accent);
}
.cs-nav-link:hover::before,
.cs-nav-link.active::before {
  width: 24px;
  background: var(--accent);
}
.cs-content {
  min-width: 0;
}
.cs-section {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
}
.cs-section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-section-label::before {
  content: "";
  display: block;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.cs-section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.cs-section-title em {
  font-style: italic;
  color: var(--accent2);
}
.cs-prose {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}
.cs-prose strong {
  color: var(--text);
  font-weight: 500;
}
.cs-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 64px 0;
}
.cs-callout {
  border-left: 2px solid var(--accent);
  padding: 24px 28px;
  background: rgba(200, 240, 74, 0.04);
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
}
.cs-callout p {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
}
.cs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.cs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.cs-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  min-width: 0;
}
.cs-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(200, 240, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 16px;
}
.cs-card-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.cs-card-body {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}
.cs-persona {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 24px 0;
}
.cs-persona-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(200, 240, 74, 0.2),
    rgba(200, 240, 74, 0.05)
  );
  border: 1px solid rgba(200, 240, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.cs-persona-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.cs-persona-role {
  font-size: 12px;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cs-persona-quote {
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}
.cs-persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cs-persona-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
}
.cs-process {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
}
.cs-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}
.cs-step::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.cs-step:last-child::after {
  display: none;
}
.cs-step:last-child {
  padding-bottom: 0;
}
.cs-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  background: var(--bg3);
  position: relative;
  z-index: 1;
}
.cs-step-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  padding-top: 12px;
}
.cs-step-body {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}
.cs-img-block {
  margin: 40px 0;
}
.cs-img-block img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
}
.cs-img-caption {
  font-size: 12px;
  color: var(--subtle);
  margin-top: 12px;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-align: center;
}
.cs-img-full {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}
.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin: 32px 0;
}
.cs-outcome-cell {
  background: var(--bg3);
  padding: 32px 28px;
  text-align: center;
}
.cs-outcome-cell:first-child {
  border-radius: 8px 0 0 8px;
}
.cs-outcome-cell:last-child {
  border-radius: 0 8px 8px 0;
}
.cs-outcome-num {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.cs-outcome-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-learnings {
  list-style: none;
  margin: 24px 0;
}
.cs-learnings li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 24px;
  position: relative;
}
.cs-learnings li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 700;
}
.cs-learnings li:last-child {
  border-bottom: none;
}
.cs-learnings li strong {
  color: var(--text);
  font-weight: 500;
}
.cs-next {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 80px 48px;
}
.cs-next-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cs-next-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 12px;
}
.cs-next-title {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cs-next-tag {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-blockquote {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
  max-width: 640px;
  margin: 36px auto 0;
}
.cs-blockquote-attr {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  text-align: center;
  margin-top: 16px;
}

/* Case study layout guards */
.page {
  overflow-x: clip;
}
.cs-content,
.cs-hero,
.cs-impact-inner,
.cs-next-inner,
.cs-body {
  min-width: 0;
}
.cs-meta-value,
.cs-prose,
.cs-card-body,
.cs-step-body,
.cs-next-tag {
  overflow-wrap: break-word;
}
.cs-hero-img img,
.cs-img-block img {
  max-width: 100%;
}
.cs-img-full {
  width: 100%;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */

/* Large tablet / small desktop */
@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr 360px;
    gap: 48px;
  }
  .work-card {
    grid-template-columns: 1fr 400px;
  }
  .cs-body {
    gap: 56px;
  }
  .cs-hero-img img {
    max-height: 520px;
  }
  .cs-img-full {
    max-height: 460px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  nav {
    padding: 16px 32px;
  }
  footer {
    padding: 32px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 110px 32px 72px;
    min-height: auto;
  }
  .hero-right {
    order: -1;
    padding-top: 0;
    align-items: center;
  }
  .hero-img-wrap,
  .hero-img-frame {
    width: min(100%, 320px);
    max-width: 320px;
  }
  .hero-img-frame {
    height: 400px;
  }
  .hero-img-accent {
    right: 0;
    top: 16px;
  }
  .hero-badge {
    left: 0;
    bottom: -16px;
  }
  .home-work,
  .home-about {
    padding: 80px 32px;
  }
  .home-cta {
    padding: 96px 32px;
  }
  .work-card {
    grid-template-columns: 1fr;
  }
  .work-card-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 40px 32px;
  }
  .work-card-right {
    height: 280px;
    order: -1;
  }
  .work-card-arrow {
    top: 32px;
    right: 32px;
  }
  .work-img-overlay {
    background: linear-gradient(
      to bottom,
      rgba(24, 24, 28, 0.2) 0%,
      transparent 40%
    );
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .cs-hero {
    padding: 120px 32px 64px;
  }
  .cs-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 72px 32px;
  }
  .cs-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cs-sidebar::-webkit-scrollbar {
    display: none;
  }
  .cs-nav-list {
    display: flex;
    gap: 8px;
    width: max-content;
    max-width: none;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cs-nav-list::-webkit-scrollbar {
    display: none;
  }
  .cs-nav-list > li {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .cs-nav-link {
    white-space: nowrap;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    width: auto;
  }
  .cs-nav-link::before {
    display: none;
  }
  .cs-meta-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-meta-cell:nth-child(2) {
    border-right: none;
  }
  .cs-meta-cell:nth-child(3),
  .cs-meta-cell:nth-child(4) {
    border-top: 1px solid var(--border);
  }
  .cs-meta-cell:nth-child(4) {
    border-right: none;
  }
  .cs-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cs-outcomes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cs-next {
    padding: 64px 32px;
  }
  .cs-next-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cs-impact-stat {
    padding: 28px 24px;
  }
  .cs-impact-num {
    font-size: 44px;
  }
  .cs-outcome-cell {
    padding: 24px 20px;
  }
  .cs-outcome-num {
    font-size: 40px;
  }
  .cs-hero-img img {
    max-height: 480px;
  }
  .cs-img-full {
    max-height: 400px;
  }
  .cs-card {
    padding: 24px;
  }
}

/* Mobile landscape / large phone */
@media (max-width: 768px) {
  body.nav-menu-open {
    overflow: hidden;
  }
  nav {
    padding: 14px 20px;
    gap: 12px;
  }
  .nav-toggle {
    display: flex;
  }
  body:not(.on-home) .nav-toggle {
    display: none;
  }
  body:not(.on-home) nav {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: 10px;
  }
  body:not(.on-home) .nav-logo {
    grid-column: 1;
    grid-row: 1;
  }
  body:not(.on-home) .nav-actions {
    grid-column: 2;
    grid-row: 1;
  }
  body:not(.on-home) #nav-back-btn {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  body.on-home #nav-home-links {
    display: none;
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px 20px 24px;
    background: rgba(10, 10, 11, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    z-index: 199;
  }
  nav.menu-open #nav-home-links {
    display: flex;
  }
  #nav-home-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  #nav-home-links li:last-child a {
    border-bottom: none;
  }
  body.on-home .nav-actions .nav-cta {
    display: none;
  }
  .nav-cta-item {
    display: list-item;
    margin-top: 12px;
    padding-top: 4px;
  }
  #nav-home-links .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 13px;
    border-bottom: none;
  }
  .nav-cta {
    padding: 8px 14px;
    font-size: 11px;
  }
  .hero {
    padding: 96px 20px 56px;
    gap: 36px;
  }
  .hero-headline {
    font-size: clamp(36px, 9vw, 52px);
  }
  .hero-sub {
    font-size: 16px;
    max-width: none;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn-primary,
  .btn-ghost {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }
  .stat-num {
    font-size: 28px;
  }
  .hero-img-frame {
    height: 360px;
  }
  .hero-img-accent {
    width: 64px;
    height: 64px;
    font-size: 8px;
  }
  .home-work,
  .home-about {
    padding: 64px 20px;
  }
  .section-title {
    margin-bottom: 40px;
  }
  .work-card-left {
    padding: 32px 20px;
  }
  .work-card-title {
    font-size: 28px;
    padding-right: 48px;
  }
  .work-card-desc {
    max-width: none;
  }
  .work-card-impact {
    flex-wrap: wrap;
    gap: 20px 24px;
  }
  .work-card-arrow {
    top: 24px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  .work-card-right {
    height: 220px;
  }
  .home-cta {
    padding: 80px 20px;
  }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-headline {
    font-size: clamp(32px, 8vw, 48px);
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 20px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
  .cs-hero {
    padding: 120px 20px 48px;
  }
  .cs-hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
  }
  .cs-hero-title {
    font-size: clamp(34px, 8vw, 52px);
  }
  .cs-hero-sub {
    font-size: 17px;
    margin-bottom: 40px;
  }
  .cs-meta-row {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }
  .cs-meta-cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px;
  }
  .cs-meta-cell:last-child {
    border-bottom: none;
  }
  .cs-meta-cell:nth-child(3),
  .cs-meta-cell:nth-child(4) {
    border-top: none;
  }
  .cs-impact-inner {
    grid-template-columns: 1fr;
  }
  .cs-impact-stat {
    padding: 28px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }
  .cs-impact-stat:last-child {
    border-bottom: none;
  }
  .cs-impact-num {
    font-size: 42px;
  }
  .cs-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 56px 20px;
  }
  .cs-sidebar {
    margin: 0 -4px;
    padding: 0 4px;
  }
  .cs-section {
    margin-bottom: 56px;
    scroll-margin-top: 108px;
  }
  .cs-section-title {
    font-size: clamp(24px, 5.5vw, 32px);
  }
  .cs-prose {
    font-size: 15px;
    line-height: 1.8;
  }
  .cs-divider {
    margin: 40px 0;
  }
  .cs-grid-2,
  .cs-grid-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .cs-card {
    padding: 20px;
  }
  .cs-callout {
    padding: 20px;
    margin: 24px 0;
  }
  .cs-callout p {
    font-size: 19px;
  }
  .cs-img-block {
    margin: 28px 0;
  }
  .cs-img-full {
    max-height: 320px;
  }
  .cs-hero-img img {
    max-height: 420px;
  }
  .cs-persona {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 16px;
  }
  .cs-persona-avatar {
    width: 56px;
    height: 56px;
    font-size: 16px;
  }
  .cs-outcomes {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .cs-outcome-cell:first-child,
  .cs-outcome-cell:last-child {
    border-radius: 0;
  }
  .cs-outcome-cell:first-child {
    border-radius: 8px 8px 0 0;
  }
  .cs-outcome-cell:last-child {
    border-radius: 0 0 8px 8px;
  }
  .cs-outcome-num {
    font-size: 40px;
  }
  .cs-next {
    padding: 56px 20px;
  }
  .cs-next-inner {
    gap: 24px;
  }
  .cs-next-inner .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .cs-next-title {
    font-size: 28px;
  }
  .cs-blockquote {
    font-size: 20px;
    padding: 0 4px;
  }
  .exp-header {
    flex-direction: column;
    gap: 4px;
  }
  .exp-period {
    margin-left: 0;
    white-space: normal;
  }
}

/* Small phone */
@media (max-width: 480px) {
  .nav-logo {
    font-size: 13px;
  }
  .nav-back {
    font-size: 11px;
  }
  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
    flex-wrap: wrap;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-img-wrap,
  .hero-img-frame {
    width: 100%;
    max-width: 280px;
  }
  .hero-img-frame {
    height: 320px;
  }
  .hero-badge {
    font-size: 10px;
    padding: 12px 14px;
  }
  .hero-badge strong {
    font-size: 18px;
  }
  .marquee-item {
    font-size: 11px;
    padding: 0 20px;
    gap: 20px;
  }
  .work-card-title {
    font-size: 24px;
  }
  body:not(.on-home) nav {
    padding: 12px 16px;
    row-gap: 8px;
  }
  body:not(.on-home) .nav-cta {
    padding: 8px 12px;
    font-size: 10px;
  }
  .cs-hero {
    padding: 112px 16px 40px;
  }
  .cs-hero-title {
    font-size: clamp(30px, 9vw, 40px);
  }
  .cs-hero-sub {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .cs-meta-cell {
    padding: 16px;
  }
  .cs-meta-value {
    font-size: 13px;
  }
  .cs-impact-stat {
    padding: 24px 16px;
  }
  .cs-impact-num {
    font-size: 36px;
  }
  .cs-impact-label {
    font-size: 11px;
    line-height: 1.4;
  }
  .cs-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 16px;
  }
  .cs-section {
    margin-bottom: 48px;
    scroll-margin-top: 112px;
  }
  .cs-section-title {
    font-size: clamp(22px, 6.5vw, 28px);
    margin-bottom: 18px;
  }
  .cs-prose {
    font-size: 14px;
  }
  .cs-card {
    padding: 18px;
  }
  .cs-card-title {
    font-size: 13px;
  }
  .cs-callout p {
    font-size: 17px;
  }
  .cs-nav-link {
    padding: 8px 12px;
    font-size: 11px;
  }
  .cs-outcome-cell {
    padding: 24px 16px;
  }
  .cs-outcome-num {
    font-size: 36px;
  }
  .cs-next {
    padding: 48px 16px;
  }
  .cs-next-title {
    font-size: 24px;
  }
  .cs-blockquote {
    font-size: 18px;
  }
  .cs-hero-img img {
    max-height: 360px;
  }
  .cs-hero-img-caption {
    padding: 16px;
    font-size: 11px;
  }
  .cs-img-full {
    max-height: 260px;
  }
  .cs-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
  }
  .cs-step-num {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
  .cs-step::after {
    left: 19px;
    top: 40px;
  }
}
