/* Case page — light studio theme */

.studio-case-page {
  margin: 0;
  min-height: 100dvh;
  background: #ffffff;
  color: #000000;
}

/* Main site atmospheric layers must not bleed into case pages. */
.studio-case-page::before,
.studio-case-page::after {
  content: none;
  display: none;
}

.case-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.case-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0;
}

.case-logo {
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -1.44px;
  color: #000000;
  text-decoration: none;
}

.case-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1 1 auto;
  justify-content: center;
}

.case-nav-links a {
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.2px;
  color: #000000;
  text-decoration: none;
}

.case-nav-links a:hover {
  opacity: 0.7;
}

.case-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: #000000;
  color: #ffffff;
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.2px;
  text-decoration: none;
}

.case-main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 116px 0 96px;
}

.case-side-nav {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 25;
}

.case-side-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(13, 26, 42, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: #1b2a3c;
  text-decoration: none;
  font-size: 20px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 6px 14px rgba(12, 22, 34, 0.12);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.case-side-arrow:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(13, 26, 42, 0.24);
  color: #0f1b2a;
}

.case-side-arrow--left {
  left: 16px;
}

.case-side-arrow--right {
  right: 16px;
}

.case-hero-media .media-skeleton,
.case-gallery-item .media-skeleton,
.case-related-card .media-skeleton {
  width: 100%;
  border-radius: inherit;
}

.case-gallery-item .media-skeleton {
  aspect-ratio: 16 / 10;
}

.case-related-card .media-skeleton {
  aspect-ratio: 16 / 10;
}

.case-related-card > .media-skeleton img {
  border-radius: 0;
}

.case-page-skeleton__gallery .media-skeleton--cover {
  aspect-ratio: 16 / 10;
  min-height: 180px;
  border-radius: 20px;
}

.case-page-skeleton .case-page-skeleton__hero > .media-skeleton--cover {
  aspect-ratio: 16 / 9;
  min-height: clamp(220px, 42vw, 520px);
  border-radius: 20px;
}

.case-main.is-revealed > * {
  animation: caseContentReveal 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes caseContentReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-main.is-revealed > * {
    animation: none;
  }
}

.case-loading,
.case-empty {
  padding: 80px 0;
  text-align: center;
  font-family: "Inter", sans-serif;
  color: #505050;
}

.case-empty h1 {
  margin: 0 0 12px;
  font-family: "Fustat", sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.04em;
  color: #000000;
}

.case-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #505050;
}

.case-breadcrumbs a {
  color: #505050;
  text-decoration: none;
}

.case-breadcrumbs a:hover {
  color: #000000;
}

.case-hero {
  display: grid;
  gap: 32px;
  margin-bottom: 56px;
}

.case-hero-media {
  overflow: hidden;
  border-radius: 20px;
  background: #f3f6fa;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.case-hero-media .media-skeleton {
  aspect-ratio: 16 / 9;
}

.case-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-category {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8f8f8;
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #505050;
}

.case-title {
  margin: 0;
  font-family: "Fustat", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #000000;
}

.case-lead {
  margin: 0;
  max-width: 720px;
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.4px;
  color: #505050;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tag {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(25, 43, 66, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
  box-shadow:
    0 8px 20px rgba(43, 72, 108, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1f2f45;
  white-space: nowrap;
}

.case-live-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-live-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #000000;
  text-decoration: none;
}

.case-live-links a:hover {
  background: #f8f8f8;
}

.case-body {
  display: grid;
  gap: 48px;
}

.case-block {
  display: grid;
  gap: 12px;
}

.case-eyebrow {
  margin: 0;
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.2px;
  color: #505050;
}

.case-block-title {
  margin: 0;
  font-family: "Fustat", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #000000;
}

.case-text {
  margin: 0;
  max-width: 760px;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #505050;
}

.case-list {
  margin: 0;
  padding-left: 20px;
  max-width: 760px;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #505050;
}

.case-list li + li {
  margin-top: 8px;
}

.case-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-metric {
  padding: 18px 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(20, 40, 70, 0.04);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #000000;
}

.case-chapters {
  display: grid;
  gap: 20px;
}

.case-chapter {
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(20, 40, 70, 0.04);
}

.case-chapter-label {
  margin: 0 0 8px;
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #505050;
}

.case-chapter-title {
  margin: 0 0 10px;
  font-family: "Fustat", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #000000;
}

.case-chapter-text {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #505050;
}

.case-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.case-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
  border: none;
}

.case-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.case-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.case-related {
  margin-top: 72px;
  display: grid;
  gap: 14px;
}

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

.case-related-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.case-related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-related-content {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.case-related-tag {
  justify-self: start;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 11px;
  line-height: 24px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.case-related-content h3 {
  margin: 0;
  font-family: "Fustat", sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #111;
}

.case-related-content p {
  margin: 0;
  color: #505050;
  font-size: 14px;
}

.studio-discuss--case {
  padding: 48px 0 0;
  margin-top: 8px;
}

.studio-discuss--case .studio-discuss__inner {
  width: 100%;
  margin: 0;
}

#case-footer-root {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.studio-case-page #case-footer-root .studio-footer {
  width: 100%;
  max-width: none;
  margin-top: 36px;
  padding-bottom: 20px;
}

.case-page-footer {
  margin-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 24px;
}

.case-page-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}

.case-page-footer__brand a {
  display: inline-flex;
  text-decoration: none;
}

.case-page-footer__brand .brand-wordmark {
  height: 36px;
}

.case-page-footer__brand p {
  margin: 10px 0 0;
  color: #505050;
  font-size: 14px;
  line-height: 1.5;
  max-width: 460px;
}

.case-page-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.case-page-footer__contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f5f6f8;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.case-page-footer__links {
  display: grid;
  align-content: start;
  justify-content: end;
  gap: 8px;
}

.case-page-footer__links a {
  color: #111;
  font-size: 14px;
  text-decoration: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.case-page-footer__bottom {
  margin-top: 14px;
  color: #6a6a6a;
  font-size: 13px;
}

.case-back,
.case-brief {
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  min-height: 44px;
}

.case-back {
  color: #505050;
}

.case-back:hover {
  color: #000000;
}

.case-header-back {
  display: none;
}

@media (max-width: 640px) {
  .studio-case-page .hero-nav-actions .case-header-back {
    display: inline-flex;
    min-height: 40px;
    min-width: 0;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 14px;
  }

  .studio-case-page .hero-nav-actions .case-header-home {
    display: none;
  }
}

.case-brief {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
}

@media (max-width: 900px) {
  .case-nav-links {
    display: none;
  }

  .case-metrics,
  .case-gallery,
  .case-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-side-arrow {
    display: none;
  }

  .studio-discuss--case .studio-discuss__form {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-page-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-page-footer__links {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .case-nav-inner,
  .case-main {
    width: min(1120px, calc(100% - 36px));
  }

  .case-main {
    padding: 112px 0 72px;
  }

  .case-breadcrumbs {
    margin-bottom: 18px;
    line-height: 1.5;
  }

  .case-hero {
    gap: 28px;
    margin-bottom: 48px;
  }

  .case-hero-copy {
    gap: 18px;
  }

  .case-hero-media {
    aspect-ratio: 16 / 9;
    border-radius: 22px;
  }

  .case-hero-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .case-title {
    font-size: clamp(34px, 11vw, 44px);
    margin-top: 2px;
  }

  .case-lead {
    margin-top: 2px;
    line-height: 1.5;
  }

  .case-tags {
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    width: calc(100% + 2px);
    margin-top: 4px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .case-tags::-webkit-scrollbar {
    display: none;
  }

  .case-tag {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 14px;
  }

  .case-body {
    gap: 40px;
  }

  .case-block {
    gap: 16px;
  }

  .case-block-title {
    margin-top: 2px;
  }

  .case-lead,
  .case-text,
  .case-list,
  .case-chapter-text {
    font-size: 16px;
    line-height: 1.7;
  }

  .case-list {
    padding-left: 22px;
  }

  .case-list li + li {
    margin-top: 10px;
  }

  .case-chapter {
    padding: 24px 20px;
  }

  .case-metrics {
    gap: 14px;
  }

  .case-metric {
    padding: 20px 18px;
  }

  .case-gallery {
    gap: 14px;
  }

  .case-related {
    gap: 18px;
    padding-top: 40px;
  }

  .case-related-grid {
    gap: 16px;
  }

  .case-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding-top: 28px;
  }

  .case-brief,
  .case-back {
    justify-content: center;
  }

  .studio-discuss--case .studio-discuss__inner {
    padding: 28px 22px;
  }

  .studio-discuss--case .studio-discuss__form {
    gap: 16px;
  }

  .studio-case-page #case-footer-root .studio-footer {
    margin-top: 36px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}
