:root {
  --background: hsl(210 20% 98%);
  --foreground: hsl(215 25% 15%);
  --card: hsl(0 0% 100%);
  --primary: #0b2339;
  --primary-foreground: hsl(210 20% 98%);
  --muted: hsl(210 15% 93%);
  --muted-foreground: hsl(215 18% 32%);
  --accent: #4f8ca6;
  --border: hsl(214 20% 88%);
  --shadow: 0 20px 50px rgba(10, 28, 45, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

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

img {
  display: block;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(1, 23, 33, 0.88);
  backdrop-filter: blur(16px);
}

.nav-shell,
.container {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--primary-foreground);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  display: block;
  width: auto;
  height: 3rem;
}

.back-link {
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.back-link:hover,
.case-title a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.hero {
  padding: 5rem 0 3rem;
}

.section-label {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.95;
}

.hero-copy {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

.cases-list {
  display: grid;
  gap: 1.5rem;
  padding: 0 0 4rem;
}

.case-card {
  display: grid;
  gap: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.case-media {
  aspect-ratio: 16 / 10;
  background: #fff;
  min-width: 0;
}

.case-media-with-credit {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
}

.case-media-credit {
  margin: -0.35rem 0 0;
  padding: 0 0.85rem 0.75rem;
  color: rgba(11, 35, 57, 0.62);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

.case-media-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(11, 35, 57, 0.55);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-copy {
  padding: 0 1.25rem 1.25rem;
}

.case-title {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.15;
}

.case-title a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.case-copy p {
  margin: 0;
  color: var(--foreground);
}

.case-copy p + p {
  margin-top: 0.85rem;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #011721;
  padding: 2rem 0 3rem;
  color: rgba(248, 250, 252, 0.88);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(248, 250, 252, 0.92);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.footer-social-link svg {
  width: 1rem;
  height: 1rem;
}

.footer-social-link:hover {
  color: var(--accent);
}

.imprint-link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.imprint-link:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 48rem) {
  .case-card {
    gap: 1.5rem;
  }

  .case-copy {
    padding: 0 1.5rem 1.5rem;
  }
}

@media (min-width: 64rem) {
  .case-card {
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }

  .case-media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .case-copy {
    min-width: 0;
    padding: 1.5rem 1.6rem 1.5rem 0;
  }
}
