:root {
  --bg: #f7f3ee;
  --surface: #fffdf9;
  --surface-alt: #efe6dc;
  --text: #2b2622;
  --muted: #6e6258;
  --accent: #bf5b28;
  --accent-dark: #96441a;
  --line: #dbcfc2;
  --shadow: 0 12px 32px rgba(43, 38, 34, 0.08);
  --radius: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(219, 207, 194, 0.8);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  padding: 4.75rem 0 3.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  background: rgba(191, 91, 40, 0.12);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 0.2rem;
}

.hero-visual {
  background: linear-gradient(145deg, #2f2a25, #1f1b18);
  border-radius: 28px;
  padding: 1rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.hero-visual img {
  border-radius: 18px;
  min-height: 540px;
  object-fit: cover;
}

section {
  padding: 2.5rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 52ch;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.2rem;
  margin: 0.85rem 0 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(191, 91, 40, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.project-card {
  overflow: hidden;
  padding: 0;
}

.project-card img {
  border-radius: 0;
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.project-body {
  padding: 1.1rem 1.1rem 1.2rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.9rem 0 1rem;
}

.tag {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.84rem;
  background: var(--surface-alt);
  color: var(--accent-dark);
  font-weight: 700;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.process-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.process-card::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-weight: 800;
  color: rgba(191, 91, 40, 0.22);
  font-size: 1.35rem;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.industry-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.industry-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
}

.industry-card .overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  height: 100%;
  padding: 1.25rem;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
}

.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.about-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.about-monogram {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(160deg, #ede4d9, #d9ccc0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  gap: 0.4rem;
}

.monogram-bg {
  position: absolute;
  inset: 0;
}

.monogram-initials {
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 24px rgba(191, 91, 40, 0.18);
}

.monogram-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.monogram-role {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.cta {
  padding: 3rem 0 4rem;
}

/* .cta-panel {
  background: linear-gradient(135deg, #bf5b28, #a1491e);
  color: white;
  border-radius: 28px;
  padding: 2.25rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(191, 91, 40, 0.22);
} */

.cta-panel {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 28px;
      padding: 2rem;
      text-align: centre;
      box-shadow: var(--shadow);
    }

/* .cta-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
}

.cta-panel p {
  max-width: 58ch;
  margin: 0 auto 1.25rem;
  opacity: 0.92;
} */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Case Study Page ─────────────────────────────── */
.cs-hero {
  padding: 3rem 0 2rem;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 1.25rem;
  transition: color 0.15s ease;
}

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

.cs-hero .eyebrow {
  margin-bottom: 0.75rem;
}

.cs-hero h1 {
  margin-bottom: 0.75rem;
}

.cs-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.cs-info-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cs-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cs-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.cs-info-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
  flex-shrink: 0;
}

.cs-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1rem 5rem;
}

.cs-section {
  margin-bottom: 0;
}

.cs-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.cs-section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.cs-section p:last-child {
  margin-bottom: 0;
}

.cs-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.cs-callout {
  display: flex;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem 0;
}

.cs-callout-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  color: white;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.cs-callout-stat:last-child {
  border-right: none;
}

.cs-callout-stat strong {
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cs-callout-stat span {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-top: 0.4rem;
  line-height: 1.4;
}

.cs-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.content-block h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.content-block p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.result-card {
  background: var(--surface-alt);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.result-card strong {
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.result-card span {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
}

.stack-list,
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stack-list li,
.feature-list li {
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
  line-height: 1.5;
}

.stack-list li span,
.feature-list li span {
  font-weight: 700;
  color: var(--text);
  min-width: 90px;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .cs-info-divider {
    display: none;
  }

  .cs-callout {
    flex-direction: column;
  }

  .cs-callout-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.1rem;
  }

  .cs-callout-stat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
      .content-grid {
        grid-template-columns: 1fr;
      }
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .industry-grid,
  .process,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual img {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card-grid,
  .industry-grid,
  .process,
  .stats {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .hero {
    padding-top: 3rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-visual img {
    min-height: 300px;
  }
}
