/* ─── Variables ──────────────────────────────────────────── */
:root {
  --ink:      #1a1814;
  --muted:    #6b6b6b;
  --hairline: #ececec;
  --paper:    #ffffff;
  --tint:     #f4efe6;
  --card:     #e6e1d6;
  --accent:   #c44a2b;
  --font:     'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --page-max: 1280px;
  --page-pad: clamp(20px, 5vw, 56px);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { -webkit-tap-highlight-color: transparent; }
::selection { background: #c44a2b22; }
p, figure, blockquote, dl { margin: 0; }
h1, h2, h3 { margin: 0; }

/* ─── Utilities ──────────────────────────────────────────── */
.cs-page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.cs-accent { color: var(--accent); }

/* ─── Nav ────────────────────────────────────────────────── */
.cs-nav {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.cs-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.cs-nav__brand {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cs-nav__mark {
  height: 25px;
  width: auto;
  display: block;
}
.cs-nav__name {
  font-size: 15px;
  font-weight: 500;
}
.cs-nav__back {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 200ms ease;
}
.cs-nav__back:hover { color: var(--ink); }

/* ─── Eyebrow ────────────────────────────────────────────── */
.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-eyebrow__rule {
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
  display: inline-block;
  flex-shrink: 0;
}
.cs-eyebrow__rule--light {
  background: var(--accent);
  opacity: 0.5;
}

/* ─── Hero ───────────────────────────────────────────────── */
.cs-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 56px);
}
.cs-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}
.cs-hero__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cs-hero__title {
  font-weight: 600;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.cs-hero__right {
  padding-bottom: 14px;
}
.cs-hero__summary {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* ─── Hero image ─────────────────────────────────────────── */
.cs-hero-image {
  padding: 0 var(--page-pad) clamp(40px, 5vw, 56px);
}
.cs-hero-image .cs-page {
  padding: 0;
}
.cs-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ─── Art placeholder ────────────────────────────────────── */
.cs-art {
  position: relative;
  width: 100%;
  border-radius: 9px;
  background: var(--card);
  overflow: hidden;
}
.cs-art--wide { aspect-ratio: 21 / 9; }
.cs-art--4x3  { aspect-ratio: 4 / 3; }
.cs-art--16x9 { aspect-ratio: 16 / 9; }
.cs-art__x {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cs-art__label {
  position: absolute;
  top: 14px; left: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

/* ─── Meta strip ─────────────────────────────────────────── */
.cs-meta-strip {
  background: var(--tint);
  padding: clamp(20px, 2.5vw, 28px) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}
.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-meta-item dt {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cs-meta-item dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
}

/* ─── Body ───────────────────────────────────────────────── */
.cs-body {
  padding: clamp(56px, 7vw, 80px) 0;
}
.cs-body__grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: clamp(40px, 5vw, 64px);
  row-gap: clamp(48px, 6vw, 72px);
}

/* Sticky section label */
.cs-sticky-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: start;
}
.cs-sticky-head__num {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cs-sticky-head__label {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Body content */
.cs-body__content {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 40px);
}
.cs-body__text {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 64ch;
}

/* Image grid (2-up) */
.cs-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

/* Figure / caption */
.cs-figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-caption {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Pull quote */
.cs-pullquote {
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 720px;
  border-left: 2px solid var(--accent);
  padding-left: clamp(20px, 2.5vw, 28px);
}

/* ─── Results ────────────────────────────────────────────── */
.cs-results {
  background: var(--ink);
  padding: clamp(48px, 6vw, 72px) 0;
}
.cs-results__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.cs-results__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.cs-result {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.cs-result__check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.cs-result__number {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.78);
}
.cs-result__label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  max-width: 26ch;
}
.cs-result__sublabel {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.42);
  max-width: 26ch;
}

/* ─── Next project ───────────────────────────────────────── */
.cs-next {
  border-top: 1px solid var(--hairline);
  padding: clamp(56px, 7vw, 80px) 0;
}
.cs-next__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 2vw, 20px);
}
.cs-next__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-next__title {
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.cs-next__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease;
}
.cs-next__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Footer ─────────────────────────────────────────────── */
.cs-footer-rule {
  border-top: 1px solid var(--hairline);
}
.cs-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
}
.cs-footer__copy {
  font-size: 13px;
  color: #9a9a9a;
}
.cs-footer__back {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms ease;
}
.cs-footer__back:hover { color: var(--ink); }

/* ─── Carousel ───────────────────────────────────────────── */
.cs-carousel {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  user-select: none;
}
.cs-carousel__track {
  display: flex;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cs-carousel__slide {
  min-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.cs-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(26, 24, 20, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, border-color 180ms ease;
  z-index: 2;
}
.cs-carousel__btn:hover {
  background: rgba(26, 24, 20, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
}
.cs-carousel__btn--prev { left: 14px; }
.cs-carousel__btn--next { right: 14px; }
.cs-carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.cs-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, transform 200ms ease;
}
.cs-carousel__dot.is-active {
  background: #ffffff;
  transform: scale(1.2);
}

/* ─── Modal ──────────────────────────────────────────────── */
.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.cs-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.cs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cs-modal__box {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: 12px;
  max-width: 960px;
  width: 100%;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: scale(0.96) translateY(10px);
  transition: transform 240ms ease;
}
.cs-modal.is-open .cs-modal__box {
  transform: scale(1) translateY(0);
}
.cs-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, border-color 180ms ease;
}
.cs-modal__close:hover {
  background: var(--hairline);
  border-color: transparent;
}
.cs-modal__media {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.cs-modal__img {
  display: block;
  width: 100%;
  height: auto;
}
.cs-modal__art {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--card);
  position: relative;
  overflow: hidden;
}
.cs-modal__art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cs-modal__caption {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  letter-spacing: 0.01em;
}

/* Make approach figures look clickable */
.cs-img-grid .cs-figure {
  cursor: pointer;
}
.cs-img-grid .cs-figure {
  position: relative;
}
.cs-img-grid .cs-figure .cs-art,
.cs-img-grid .cs-figure img {
  transition: filter 180ms ease;
}
.cs-img-grid .cs-figure:hover .cs-art,
.cs-img-grid .cs-figure:hover img {
  filter: brightness(0.75);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .cs-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cs-hero__right { padding-bottom: 0; }
  .cs-body__grid {
    grid-template-columns: 1fr;
    row-gap: clamp(36px, 5vw, 56px);
  }
  .cs-sticky-head {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--hairline);
  }
  .cs-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cs-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .cs-art--wide { aspect-ratio: 16 / 9; }
  .cs-img-grid  { grid-template-columns: 1fr; }
  .cs-meta-grid { grid-template-columns: 1fr; }
  .cs-results__grid { grid-template-columns: repeat(2, 1fr); }
  .cs-hero-image { padding-left: 0; padding-right: 0; }
  .cs-art { border-radius: 0; }
}
