:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-2: #edf3f8;
  --ink: #0c1728;
  --muted: #596b80;
  --line: #d9e4ef;
  --primary: #1457d9;
  --navy: #0b2d5c;
  --accent: #10bfd1;
  --shadow: 0 18px 55px rgba(12, 23, 40, 0.11);
  --shadow-soft: 0 10px 30px rgba(12, 23, 40, 0.08);
  --radius: 8px;
  --max: 1120px;
  --font-title: "Aptos Display", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

body.case-study {
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 34rem),
    var(--bg);
}

a {
  color: inherit;
}

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

.header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand,
.btn,
.link {
  text-decoration: none;
  font-weight: 800;
}

.brand {
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.btn:focus-visible,
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.link {
  color: var(--primary);
}

.hero {
  padding: 5rem 0 3rem;
  background:
    linear-gradient(120deg, rgba(247, 250, 252, 0.94), rgba(247, 250, 252, 0.72)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1600&q=80") center / cover;
  border-bottom: 1px solid var(--line);
}

.case-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 3.2rem;
  background:
    linear-gradient(115deg, rgba(247, 250, 252, 0.98) 0%, rgba(247, 250, 252, 0.9) 48%, rgba(20, 87, 217, 0.18) 100%),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=80") center / cover;
  border-bottom: 1px solid var(--line);
}

.case-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 2rem;
  align-items: center;
}

.hero-panel {
  padding: 1rem;
  border: 1px solid rgba(217, 228, 239, 0.78);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
  font-size: 0.85rem;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.panel-metrics div {
  min-height: 108px;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.panel-metrics strong {
  display: block;
  color: var(--navy);
  font-size: 1.1rem;
}

.panel-metrics span {
  color: var(--muted);
  font-size: 0.88rem;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.82rem;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--navy);
}

h1 {
  max-width: 820px;
  margin: 0.9rem 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.13rem;
}

section {
  padding: 3.8rem 0;
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: start;
}

.card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card p {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  list-style: none;
}

.tags li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
  color: var(--muted);
}

.feature-list,
.process-list,
.outcome-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.feature-list li,
.outcome-list li {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.feature-list li strong,
.outcome-list li strong {
  color: var(--navy);
}

.process-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-list li {
  min-height: 150px;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.process-list span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 0.8rem;
  color: #ffffff;
  background: var(--primary);
  font-weight: 900;
}

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

.shot {
  min-height: 170px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-weight: 900;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.service-band {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.related-links a {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  text-decoration: none;
  font-weight: 900;
}

.cta {
  padding: 2rem;
  border-radius: 12px;
  background: var(--navy);
  color: #ffffff;
}

.cta h2 {
  color: #ffffff;
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 820px) {
  .case-hero .container,
  .nav,
  .grid,
  .grid.two,
  .split,
  .process-list,
  .gallery {
    grid-template-columns: 1fr;
  }

  .nav {
    display: grid;
  }
}
