/* ── CASE PAGE ── */

/* Nav over dark hero */
.nav--overlay {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.nav--overlay .nav-logo,
.nav--overlay .nav-links a,
.nav--overlay .nav-btn {
  color: #fff;
}

.nav--overlay .nav-btn {
  border-color: rgba(255,255,255,0.4);
}

.nav--overlay .nav-toggle span {
  background: #fff;
}

.nav--overlay.is-scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23,23,23,0.07);
}

.nav--overlay.is-scrolled .nav-logo,
.nav--overlay.is-scrolled .nav-links a,
.nav--overlay.is-scrolled .nav-btn {
  color: var(--color-primary);
}

.nav--overlay.is-scrolled .nav-btn {
  border-color: var(--color-primary);
}

.nav--overlay.is-scrolled .nav-toggle span {
  background: var(--color-primary);
}

/* Fullscreen hero */
.case-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}

.case-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1714;
}

.case-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.35) 100%);
}

.case-hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 3rem 4rem;
  max-width: 900px;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.case-tag {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cta);
}

.case-location {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.case-title {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: #fff;
  line-height: 1.0;
  margin-bottom: 0.75rem;
}

.case-subtitle {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
}

/* Story blocks */
.case-story {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.case-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(23,23,23,0.08);
}

.case-block:first-child { padding-top: 0; }
.case-block:last-child { border-bottom: none; padding-bottom: 0; }

.case-num {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(23,23,23,0.12);
}

.case-block-title {
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.case-block-text {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--color-secondary);
  max-width: 640px;
}

.case-block-text + .case-block-text { margin-top: 0.875rem; }

/* Specs row */
.case-specs {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(23,23,23,0.08);
}

.case-spec-lbl {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.375rem;
}

.case-spec-val {
  font-family: 'Cormorant', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

/* Gallery */
.case-gallery {
  background: #fafaf9;
  padding: 5rem 0 6rem;
}

.case-gallery-head {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 3rem;
}

.case-gallery-grid {
  columns: 3;
  column-gap: 4px;
  list-style: none;
}

.case-gallery-grid li {
  break-inside: avoid;
  margin-bottom: 4px;
  overflow: hidden;
}

.case-gallery-btn {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: none;
  cursor: pointer;
  background: none;
  overflow: hidden;
}

.case-gallery-btn img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 500ms ease;
}

.case-gallery-btn:hover img { transform: scale(1.04); }

.case-gallery-btn:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.7;
  transition: opacity 200ms ease;
}

.lightbox-close:hover { opacity: 1; }

/* Next project */
.case-next {
  padding: 0 3rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.case-next-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
}

.case-next-card {
  display: block;
  position: relative;
  height: 280px;
  overflow: hidden;
  text-decoration: none;
}

.case-next-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 500ms ease;
}

.case-next-card:hover .case-next-bg { transform: scale(1.04); }

.case-next-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
}

.case-next-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.case-next-name {
  font-family: 'Cormorant', serif;
  font-size: 1.75rem;
  color: #fff;
}

.case-next-arrow {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .case-hero-content { padding: 2rem 1.5rem 3rem; }
  .case-story { padding: 4rem 1.5rem; }
  .case-block { grid-template-columns: 1fr; gap: 0.75rem; padding: 2.5rem 0; }
  .case-num { font-size: 2.5rem; }
  .case-gallery { padding: 4rem 0; }
  .case-gallery-head { padding: 0 1.5rem; }
  .case-gallery-grid { columns: 2; }
  .case-next { padding: 0 1.5rem 4rem; }
}
