/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body { overflow-x: hidden; }
img  { display: block; max-width: 100%; }
button { font: inherit; border: none; cursor: pointer; background: none; }
a { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --red:     #cc1111;
  --cream:      #f0eddf;
  --dark:       #2a2926;
  --ink:        #1e1c1a;
  --ink-muted:  #7a7068;
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--cream);
  background-image: url('../img/paper-texture-white.webp');
  background-blend-mode: multiply;
  color: var(--ink);
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ─────────────────────────────────────────
   NAV  (case-study pages)
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(240,237,223,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(30,28,26,0.08);
}
.nav-logo {
  display: block;
  width: 200px;
  height: auto;
  flex-shrink: 0;
}
.nav-logo svg { width: 100%; height: auto; }
.logo-tex-wrap { display: block; width: 100%; }
.logo-tex-wrap svg .logo-path { fill: var(--red); transition: fill 0.3s; }

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.nav-back:hover { background: var(--red); color: var(--cream); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.cs-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10rem 3rem 5rem;
  background-color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cs-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 40%, rgba(240,237,223,0) 70%);
  z-index: 1;
}
.cs-hero > *:not(.cs-hero-bg):not(.cs-hero-overlay) { position: relative; z-index: 2; }
.cs-hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
}
.cs-hero-title {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: 2rem;
}
.cs-hero-title em { font-family: 'Source Serif 4', serif; font-style: italic; font-weight: 700; text-transform: none; }
.cs-hero-meta { display: flex; gap: 2rem; flex-wrap: wrap; }
.cs-meta-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}
.cs-meta-value { font-size: 0.95rem; color: var(--ink); }

/* ─────────────────────────────────────────
   OVERVIEW STRIP
───────────────────────────────────────── */
.cs-overview {
  background-color: var(--red);
  background-image: url('../img/paper-texture-orange.webp');
  background-blend-mode: multiply;
  padding: 4rem 3rem;
}
.cs-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0eddf;
  margin-bottom: 0.3rem;
}

/* ─────────────────────────────────────────
   CONTENT WRAPPER
───────────────────────────────────────── */
.cs-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
.cs-section {
  padding: 5rem 0;
  border-bottom: 1px solid rgba(30,28,26,0.1);
}
.cs-section:last-child { border-bottom: none; }

.cs-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
}
.cs-h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.cs-h2 em {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 700;
}
.cs-h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
}
.cs-p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.cs-p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────
   OVERVIEW STRIP  (shared grid + text)
───────────────────────────────────────── */
.cs-overview-inner {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.cs-overview-intro {
  grid-column: 1 / -1;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.65;
  color: var(--cream);
}
.cs-stat-value {
  font-size: 1rem;
  color: var(--cream);
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   PRINCIPLES
───────────────────────────────────────── */
.principles-list { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 1px; }
.principle-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid rgba(30,28,26,0.1);
}
.principle-num {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--red);
  padding-top: 0.1rem;
}

/* ─────────────────────────────────────────
   PRINCIPLES TEXT
───────────────────────────────────────── */
.principle-text { font-size: 1.05rem; line-height: 1.7; }
.principle-text em { font-style: normal; font-weight: 800; }

/* ─────────────────────────────────────────
   CALLOUT
───────────────────────────────────────── */
.cs-callout {
  border-left: 3px solid var(--red);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: rgba(255,255,255,0.25);
  border-radius: 0 6px 6px 0;
}
.cs-callout p { font-size: 1.1rem; font-weight: 700; line-height: 1.7; color: var(--ink); }

/* ─────────────────────────────────────────
   IMAGES
───────────────────────────────────────── */
.cs-img {
  width: 100%;
  border-radius: 8px;
  margin-top: 2rem;
  display: block;
  border: 1px solid rgba(30,28,26,0.08);
  box-shadow: 0 4px 24px rgba(30,28,26,0.07);
}
.cs-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.cs-img-pair img {
  width: 100%;
  border-radius: 8px;
  display: block;
  border: 1px solid rgba(30,28,26,0.08);
  box-shadow: 0 4px 24px rgba(30,28,26,0.07);
}
.cs-img-caption {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 0.6rem;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

/* ─────────────────────────────────────────
   FUTURE LIST
───────────────────────────────────────── */
.future-list {
  list-style: none;
  margin-top: 2rem;
}
.future-list li {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(30,28,26,0.1);
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 1.2rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}
.future-list li::before {
  content: '→';
  color: var(--red);
  margin-top: 0.1rem;
}

/* ─────────────────────────────────────────
   FOOTER HEADING
───────────────────────────────────────── */
.cs-footer-heading {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 2.5rem;
}
.cs-footer-heading em {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 700;
  text-transform: none;
}
.cs-footer-copy {
  margin-top: 4rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a6e66;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.cs-footer {
  background-color: var(--dark);
  background-image: url('../img/paper-texture-dark.webp');
  background-blend-mode: multiply;
  padding: 5rem 3rem;
  text-align: center;
}
.cs-footer-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a09888;
  margin-bottom: 1.5rem;
}
.cs-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cs-btn-primary {
  background: var(--red);
  color: var(--cream);
  border: 1.5px solid var(--red);
}
.cs-btn-primary:hover { background: #a80e0e; border-color: #a80e0e; }
.cs-btn-ghost {
  border: 1.5px solid #a09888;
  color: #c8bfb5;
  background: transparent;
}
.cs-btn-ghost:hover { border-color: var(--cream); color: var(--cream); }

/* ─────────────────────────────────────────
   FADE-UP ANIMATION
───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 1.25rem 1.5rem; }
  .cs-hero { padding: 8rem 1.5rem 4rem; }
  .cs-overview { padding: 3rem 1.5rem; }
  .cs-body { padding: 0 1.5rem; }
  .cs-overview-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cs-img-pair { grid-template-columns: 1fr; }
  .cs-footer { padding: 4rem 1.5rem; }
  .nav-logo { width: 160px; }
}
