/* ==========================================================================
   CASE STUDY PAGES STYLING (Andrey Hong Portfolio)
   ========================================================================== */

.case-page {
  padding-bottom: 80px;
}

.case-hero {
  padding: 100px 5% 70px;
  background: radial-gradient(circle at 85% 45%, #22252a, #0b0c0d 60%);
  border-bottom: 1px solid var(--line, #333537);
  position: relative;
}

.case-page-overline {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent, #d4ff5f);
  border: 1px solid rgba(212, 255, 95, 0.3);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 28px;
}

.case-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 8vw, 130px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.92;
  margin: 0 0 25px;
}

.case-hero .period {
  color: var(--accent, #d4ff5f);
}

.case-subtitle {
  font-size: clamp(20px, 2.4vw, 36px);
  color: #aeb0ac;
  letter-spacing: -0.03em;
  margin: 0 0 35px;
  max-width: 700px;
  line-height: 1.35;
}

.case-page-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line, #333537);
  padding-top: 35px;
  margin-top: 40px;
}

.case-page-intro p {
  max-width: 580px;
  font-size: 16px;
  line-height: 1.7;
  color: #c9ccc7;
  margin: 0;
}

.case-page-intro a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent, #d4ff5f);
  border: 1px solid var(--accent, #d4ff5f);
  padding: 12px 24px;
  border-radius: 99px;
  transition: all 0.25s ease;
}

.case-page-intro a:hover {
  background: var(--accent, #d4ff5f);
  color: #0b0c0d;
  box-shadow: 0 0 20px rgba(212, 255, 95, 0.4);
}

.case-detail-block {
  padding: 100px 5%;
  background: #141617;
  border-bottom: 1px solid var(--line, #333537);
}

.case-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 70px;
}

.case-detail-grid h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 5vw, 72px);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 20px 0 0;
}

.case-detail-grid h2 i {
  color: var(--accent, #d4ff5f);
  font-style: normal;
}

.case-detail-facts {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}

.case-detail-facts > div {
  border-left: 2px solid var(--accent, #d4ff5f);
  padding-left: 20px;
}

.case-detail-facts small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--muted, #9b9d99);
  margin-bottom: 6px;
}

.case-detail-facts p {
  font-size: 16px;
  line-height: 1.5;
  color: #f1f0ea;
  margin: 0;
}

.case-process {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 45px;
}

.case-process h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -0.04em;
  margin: 15px 0 20px;
}

.case-process p {
  font-size: 15px;
  line-height: 1.75;
  color: #b9bcb7;
  max-width: 720px;
}

.case-note {
  font-size: 13px !important;
  color: var(--accent, #d4ff5f) !important;
  border: 1px dashed rgba(212, 255, 95, 0.4);
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 25px;
  background: rgba(212, 255, 95, 0.03);
}

.case-gallery {
  padding: 110px 5%;
  background: #0b0c0d;
}

.case-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin: 20px 0 55px;
}

.case-gallery-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 0;
}

.case-gallery-head h2 i {
  color: var(--accent, #d4ff5f);
  font-style: normal;
}

.case-gallery-head p {
  max-width: 440px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted, #9b9d99);
  margin: 0;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.case-media-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.case-media-tile:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent, #d4ff5f);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 255, 95, 0.15);
}

.case-media-frame {
  position: relative;
  aspect-ratio: 9/14;
  border-radius: 6px;
  overflow: hidden;
  background: #1e2120;
}

.case-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-media-tile:hover .case-media-frame img {
  transform: scale(1.06);
}

.case-media-frame span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent, #d4ff5f);
  color: #101111;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 18px;
  border-radius: 99px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.case-media-tile:hover .case-media-frame span {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 25px rgba(212, 255, 95, 0.7);
}

.case-media-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 0;
}

.case-media-foot strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: -0.2px;
}

.case-media-foot small {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted, #9b9d99);
}

.case-next {
  padding: 100px 5%;
  background: #161819;
  border-top: 1px solid var(--line, #333537);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.case-next h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 68px);
  margin: 10px 0 0;
  letter-spacing: -0.05em;
}

.case-next a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3vw, 38px);
  font-weight: 700;
  color: var(--accent, #d4ff5f);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--accent, #d4ff5f);
  padding: 16px 36px;
  border-radius: 99px;
  transition: all 0.3s ease;
}

.case-next a:hover {
  background: var(--accent, #d4ff5f);
  color: #0b0c0d;
  box-shadow: 0 0 30px rgba(212, 255, 95, 0.5);
  transform: translateX(6px);
}

@media (max-width: 850px) {
  .case-detail-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .case-gallery-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .case-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}
