/* ==========================================================================
   홈 첫 화면: 3D 통로 히어로
   양옆 카드가 깊은 곳(z -2400)에서 앞(z 780)으로 날아온다. 움직임은 corridor.js 가 맡고,
   여기서는 무대·카드 모양·가운데 내용만 정한다. 카드는 스크립트가 준비된 뒤(is-ready)에만 보인다.
   ========================================================================== */
.gm-corridor {
  --gm-corridor-bg: #0b0b0b;
  --gm-plane-w: 220px;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(34rem, calc(100svh - 7.5rem));
  background: var(--gm-corridor-bg);
  color: #fff;
  overflow: hidden;
  clip-path: inset(0); /* iOS Safari: 3D 자식이 overflow 밖으로 새는 문제 */
  isolation: isolate;
}

/* ---------- 무대 ---------- */
.gm-corridor-scene {
  display: none;
  position: absolute; inset: 0; z-index: 0;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  pointer-events: none;
}
.gm-corridor.is-ready .gm-corridor-scene { display: block; }
.gm-corridor-world { position: absolute; inset: 0; transform-style: preserve-3d; }

/* 가운데 글씨가 카드 위에서도 읽히도록 가운데를 어둡게, 위아래 가장자리는 배경색으로 */
.gm-corridor::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 48% 44% at 50% 52%, rgba(11, 11, 11, .9), rgba(11, 11, 11, .72) 55%, transparent 88%),
    linear-gradient(to bottom, var(--gm-corridor-bg), transparent 14%, transparent 86%, var(--gm-corridor-bg));
}

/* ---------- 카드 ---------- */
.gm-corridor-plane {
  position: absolute; left: 50%; top: 50%;
  width: var(--gm-plane-w); aspect-ratio: 3 / 4;
  display: flex; flex-direction: column;
  padding: calc(var(--gm-plane-w) * .08);
  opacity: 0;
  backface-visibility: hidden;
  will-change: transform, opacity;
  overflow: hidden;
  font-size: calc(var(--gm-plane-w) * .065);
  line-height: 1.25;
}
/* 카드 = 제품 예시 이미지(wwwroot/images/hero, 제품+패키지 목업) 한 장 + 아래쪽 어둡게 깐 카테고리 이름 */
.gm-corridor-plane--light, .gm-corridor-plane--dark { background: #e4ded4; color: #fff; }
.gm-corridor-photo {
  position: absolute; inset: 0; z-index: 0;
  display: block; width: 100%; height: 100%; object-fit: cover;
  user-select: none; pointer-events: none;
}
.gm-corridor-plane::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 8, 8, .82), rgba(8, 8, 8, .35) 55%, rgba(8, 8, 8, 0));
}

.gm-corridor-plane-word {
  position: relative; z-index: 2;
  margin-top: auto;
  font-family: var(--gm-display-font); font-weight: 900;
  font-size: 1.4em; line-height: 1.08; letter-spacing: -.04em;
}

/* ---------- 가운데 내용 ---------- */
.gm-corridor-content {
  position: relative; z-index: 2;
  align-self: center;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-top: 4rem; padding-bottom: 2rem;
  text-shadow: 0 0 1.25rem rgba(11, 11, 11, .95), 0 0 .35rem rgba(11, 11, 11, .9);
}
.gm-corridor-content .btn { text-shadow: none; }
.gm-corridor-eyebrow { color: #9a9a9a; margin-bottom: 1rem; }
.gm-corridor-mark {
  margin: 0 0 1.25rem;
  font-family: var(--gm-display-font); font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -.05em;
}
.gm-corridor-title { color: #fff; margin-bottom: 1rem; }
.gm-corridor-lead { max-width: 34rem; margin: 0 auto 2rem; color: #d6d6d6; }
.gm-corridor-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; justify-content: center; }

.gm-btn-invert {
  --bs-btn-bg: #fff; --bs-btn-color: var(--gm-ink); --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: transparent; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff;
  --bs-btn-active-bg: #fff; --bs-btn-active-color: var(--gm-ink); --bs-btn-active-border-color: #fff;
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
  border-radius: 0; font-weight: 700;
}
.gm-corridor-link { color: #fff; }
.gm-corridor-link:hover, .gm-corridor-link:focus-visible { color: #bdbdbd; }

/* ---------- 아래 캡션(지구본) ---------- */
.gm-corridor-foot {
  position: relative; z-index: 2;
  display: flex; gap: .5rem; align-items: center; justify-content: center;
  padding: 0 1rem 1.5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; color: #8a8a8a; text-align: center;
}
.gm-corridor-globe { flex: none; }
.gm-corridor-foot { flex-wrap: wrap; }
.gm-corridor-toggle {
  margin-left: .5rem; padding: .3rem .75rem;
  background: transparent; color: #d6d6d6; border: 1px solid #4a4a4a; border-radius: 0;
  font: inherit; letter-spacing: .08em; cursor: pointer;
}
.gm-corridor-toggle:hover, .gm-corridor-toggle:focus-visible { color: #fff; border-color: #fff; }
.gm-corridor-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- 휴대폰 ---------- */
@media (max-width: 767.98px) {
  .gm-corridor { min-height: max(32rem, calc(100svh - 6.5rem)); }
  .gm-corridor-content { padding-top: 3rem; }
  .gm-corridor-mark { font-size: 15vw; }
  .gm-corridor-lead { font-size: .95rem; }
  .gm-corridor-actions { flex-direction: column; width: 100%; }
  .gm-corridor-actions .gm-btn { width: 100%; }
  .gm-corridor-foot { letter-spacing: .06em; font-size: .8rem; }
  .gm-corridor-toggle { min-height: 44px; padding: .3rem 1rem; }
}
