/* ============================================================
   JMREY · Caso Real — section styles
   ============================================================ */

.caso {
  position: relative;
  padding: clamp(40px, 5vw, 90px) clamp(20px, 5vw, 96px) clamp(50px, 6vw, 100px);
  background: #F5F0E6;
  overflow: hidden;
  min-height: 100svh;
}

.caso-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}

.caso-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* ============== LEFT — quote block ============== */
.caso-left { padding-top: clamp(6px, 1vw, 16px); }

.caso-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.caso-eyebrow-rule {
  width: 36px;
  height: 1.5px;
  background: var(--accent);
  border: 0;
  margin: 8px 0 clamp(28px, 4vw, 56px);
}

.caso-headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--jmrey-navy-900);
  margin: 0 0 clamp(28px, 4vw, 56px);
}

.caso-quote-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.caso-quote-glyph {
  width: clamp(40px, 4vw, 56px);
  height: auto;
  display: block;
  margin-top: 6px;
}
.caso-quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--jmrey-navy-900);
  margin: 0;
}

.caso-attr-rule {
  width: 36px;
  height: 1.5px;
  background: var(--accent);
  border: 0;
  margin: 0 0 14px;
}
.caso-attr { display: block; }
.caso-attr-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.01em;
  color: var(--jmrey-navy-900);
  margin-bottom: 4px;
}
.caso-attr-role {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.1vw, 13.5px);
  color: var(--jmrey-navy-800);
}

/* ============== RIGHT — video card ============== */
.caso-right { min-width: 0; }

.caso-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: clamp(14px, 1.6vw, 22px);
  box-shadow: 0 8px 30px -10px rgba(20, 23, 28, 0.18),
              0 2px 8px rgba(20, 23, 28, 0.06);
}

.caso-video {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #2A2C30;
  overflow: hidden;
  border-radius: 12px;
}
.caso-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(1) contrast(1.02);
}
.caso-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 12.2vw, 173px);
  height: clamp(120px, 12.2vw, 173px);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out-soft);
}
.caso-play img { width: 100%; height: 100%; display: block; }
.caso-play:hover { transform: translate(-50%, -50%) scale(1.06); }

.caso-video-button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.caso-video-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -6px;
}

.caso-fakeplaying {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.caso-meta {
  display: grid;
  grid-template-columns: clamp(52px, 5vw, 68px) 1fr;
  gap: clamp(14px, 1.8vw, 22px);
  align-items: center;
  padding: clamp(16px, 1.8vw, 22px) clamp(6px, 0.8vw, 10px) clamp(8px, 1vw, 12px);
  border-top: 1px solid #ECE3D2;
  margin-top: clamp(16px, 1.8vw, 22px);
}
.caso-meta-quote {
  width: clamp(52px, 5vw, 68px);
  height: clamp(52px, 5vw, 68px);
  display: block;
}
.caso-meta-text {
  font-family: var(--font-sans);
  font-size: clamp(12.5px, 1.2vw, 14.5px);
  color: var(--jmrey-navy-800);
  line-height: 1.5;
  margin: 0;
}

/* ============== Responsive ============== */
@media (max-width: 1099px) {
  .caso {
    display: flex;
    align-items: center;
  }

  .caso-shell {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.58fr);
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
  }

  .caso-right {
    align-self: center;
    display: flex;
    justify-content: center;
    padding-bottom: 40px;
  }

  .caso-card {
    width: min(100%, 420px);
  }

  .caso-headline { font-size: clamp(28px, 6vw, 44px); }
}
@media (max-width: 540px) {
  .caso {
    display: block;
    padding: 32px 18px 48px;
  }
  .caso-shell { grid-template-columns: 1fr; }
  .caso-right { display: block; padding-bottom: 0; }
  .caso-card { width: auto; }
  .caso-headline { font-size: 28px; }
  .caso-quote-text { font-size: 18px; }
  .caso-meta { grid-template-columns: 48px 1fr; gap: 14px; }
  .caso-meta-quote { width: 48px; height: 48px; }
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 60px);
  background: rgba(8, 14, 26, 0.78);
  z-index: 1000;
}
.video-modal.is-open { display: flex; }
.video-modal-panel {
  position: relative;
  width: min(1080px, 94vw);
  background: #05070B;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}
.video-modal-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 8px;
  background: #05070B;
}
.video-modal-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.video-modal-close:hover { background: rgba(255,255,255,0.18); }
