/* ══════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════ */
:root {
  --bg:         #fafafa;
  --bg-white:   #ffffff;
  --bg-subtle:  #f5f5f5;
  --bg-card:    #ffffff;
  --border:     rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --text:       #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent:     #1a1a1a;
  --accent-soft: rgba(26, 26, 26, 0.06);
  --r:          12px;
  --r-lg:       16px;
  --nav-h:      72px;
  --section-padding: 100px;
  --max-w:      1200px;
  --font:       'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* ══════════════════════════════════════════
   PAGE TRANSITION
   ══════════════════════════════════════════ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-white);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ══════════════════════════════════════════
   CURSOR FOLLOWER
   ══════════════════════════════════════════ */
.cursor-dot {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}
.cursor-dot.visible { opacity: 1; }

@media (max-width: 768px) {
  .cursor-dot { display: none; }
}

/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
  color: var(--text);
  background: var(--accent-soft);
}

/* Resume download pill */
.nav-resume {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border-hover);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
  letter-spacing: 0.01em;
}
.nav-resume:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  transform: translateY(-1px);
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 16px;
  right: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--transition);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.nav-mobile.open {
  transform: none;
  opacity: 1;
  pointer-events: all;
}
.nav-mobile .nav-link {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 14px 18px;
  border-radius: var(--r);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile .nav-link:hover,
.nav-mobile .nav-link.active {
  color: var(--text);
  background: var(--accent-soft);
}

@media (max-width: 660px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-text { max-width: 640px; }
.hero-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-title .line2 {
  display: block;
  color: var(--text-muted);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.3s var(--transition), box-shadow 0.3s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.hero-cta .arrow {
  transition: transform 0.3s;
}
.hero-cta:hover .arrow {
  transform: translate(3px, -3px);
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-avatar {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .hero-text { max-width: 100%; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .hero-avatar { width: 220px; height: 220px; }
  .hero-glow { width: 260px; height: 260px; }
}

/* ══════════════════════════════════════════
   SECTION SHARED
   ══════════════════════════════════════════ */
.section {
  padding: var(--section-padding) 0;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.section-alt {
  background: var(--bg-white);
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-header-left {}

/* ══════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════
   PROJECT CARDS
   ══════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.4s var(--transition), box-shadow 0.4s;
  cursor: pointer;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 20px 48px rgba(0,0,0,0.06);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-subtle);
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--transition);
}
.project-card:hover .project-thumb img {
  transform: scale(1.03);
}

.project-body {
  padding: 24px;
}
.project-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.project-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.project-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.project-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.project-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 4px 12px;
}

/* ══════════════════════════════════════════
   VIEW ALL BUTTON
   ══════════════════════════════════════════ */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-hover);
  color: var(--text);
  background: transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.btn-outline:hover {
  background: var(--text);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline .arrow {
  transition: transform 0.25s;
}
.btn-outline:hover .arrow {
  transform: translate(3px, -3px);
}

/* ══════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: border-color 0.35s, transform 0.35s var(--transition), box-shadow 0.35s;
}
.about-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.04);
}
.about-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.about-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.tcard {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.3s, transform 0.35s var(--transition), box-shadow 0.3s;
}
.tcard:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.04);
}
.tcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tcard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.tcard-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 13px;
}
.tcard-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
}
.tcard-quote em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}
.tcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tcard-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.tcard-loc {
  font-size: 13px;
  color: var(--text-muted);
}
.tcard-source {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
}

/* ══════════════════════════════════════════
   EXPERIENCE
   ══════════════════════════════════════════ */
.experience-list {
  max-width: 680px;
}
.exp-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--transition);
  cursor: default;
}
.exp-item:first-child { padding-top: 0; }
.exp-item:last-child { border-bottom: none; }
.exp-item:hover { padding-left: 12px; }
.exp-company {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  transition: color 0.2s;
}
.exp-item:hover .exp-company { color: var(--text-muted); }
.exp-meta {
  font-size: 14px;
  color: var(--text-muted);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 560px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
.stat-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 20px;
  transition: border-color 0.3s;
}
.stat-item:hover { border-color: var(--border-hover); }
.stat-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact-section {
  padding: var(--section-padding) 0;
  background: var(--bg-white);
}
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
}
.contact-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.1;
}
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group { margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 24px; }
.form-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 13px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
.form-input::placeholder { color: #bbb; }
.form-input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.form-input.err { border-color: #ef4444; }
.form-input.ok { border-color: #22c55e; }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-error {
  font-size: 13px;
  color: #ef4444;
  margin-top: 5px;
  display: none;
}
.form-input.err + .form-error { display: block; }

.btn-send {
  width: 100%;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
  padding: 15px 32px;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-send:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.btn-send.loading .lbl { display: none; }
.btn-send.loading .spin { display: inline-block !important; }
.form-success {
  display: none;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--r);
  padding: 22px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #16a34a;
}
.form-success.show { display: block; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   PROJECTS PAGE — Full Grid
   ══════════════════════════════════════════ */
.projects-page-hero {
  padding: calc(var(--nav-h) + 64px) 0 48px;
}
.projects-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.projects-segment {
  margin-bottom: 20px;
}
.projects-segment .section-tag {
  font-size: 12px;
}
@media (max-width: 700px) {
  .projects-full-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   CASE STUDY PAGE STYLES
   ══════════════════════════════════════════ */
.cs-hero {
  padding: calc(var(--nav-h) + 56px) 0 0;
}
.cs-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 48px;
}
.cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.cs-breadcrumb a {
  color: var(--text);
  transition: opacity 0.2s;
}
.cs-breadcrumb a:hover { opacity: 0.6; }
.cs-breadcrumb-sep { color: var(--text-muted); }

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.cs-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 14px;
}
.cs-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
  max-width: 700px;
}
.cs-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  width: fit-content;
}
.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 24px;
}
.cs-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cs-meta-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.cs-meta-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .cs-meta-row { width: 100%; }
  .cs-meta-item { flex: 1 1 40%; }
  .cs-meta-divider { display: none; }
}

.cs-hero-img-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.cs-hero-img {
  width: 100%;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  display: block;
}

/* Case study sections */
.cs-section {
  padding: 80px 0;
}
.cs-section-alt {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.cs-two-col {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 768px) {
  .cs-two-col { grid-template-columns: 1fr; gap: 28px; }
}
.cs-sticky-left {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.cs-section-header { margin-bottom: 48px; }
.cs-section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

/* Prose */
.cs-prose p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}
.cs-prose p:last-child { margin-bottom: 0; }

.cs-highlight-box {
  display: flex;
  gap: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-top: 24px;
}
.cs-highlight-icon { font-size: 22px; flex-shrink: 0; line-height: 1.6; }
.cs-highlight-box p {
  font-size: 15px !important;
  font-weight: 600;
  color: var(--text) !important;
  line-height: 1.6;
  margin: 0 !important;
}

/* Process steps */
.cs-process-steps {
  display: flex;
  flex-direction: column;
}
.cs-step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.25s var(--transition);
  cursor: default;
}
.cs-step:first-child { padding-top: 0; }
.cs-step:last-child { border-bottom: none; }
.cs-step:hover { padding-left: 8px; }
.cs-step-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding-top: 4px;
  flex-shrink: 0;
  width: 28px;
}
.cs-step-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.cs-step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Outcomes grid */
.cs-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .cs-outcomes-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .cs-outcomes-grid { grid-template-columns: 1fr; } }
.cs-outcome-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 20px;
  transition: border-color 0.3s, transform 0.35s var(--transition);
}
.cs-outcome-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.cs-outcome-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.cs-outcome-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
}
.cs-outcome-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Screen cards */
.cs-screens-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.cs-screen-card img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.cs-screen-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.cs-screen-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
}

/* Problem grid */
.cs-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) { .cs-problem-grid { grid-template-columns: 1fr; } }
.cs-problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 22px;
  transition: border-color 0.3s, transform 0.3s;
}
.cs-problem-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.cs-problem-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.cs-problem-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.cs-problem-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Image caption */
.cs-img-caption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* Exploration gallery grid */
.exploration-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) {
  .exploration-gallery { grid-template-columns: 1fr; }
}
.exploration-item {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--transition), box-shadow 0.4s;
}
.exploration-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}
.exploration-item img {
  width: 100%;
  display: block;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  margin-bottom: 40px;
}
.back-link:hover { color: var(--text); }

/* Lazy load */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s;
}
img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}
