/* ---------- 인트로 2안: 화면을 세로 4칸으로 나눈 풀스크린 인트로 ---------- */
html, body.intro2 { height: 100%; }
body.intro2 { margin: 0; background: #0f1113; color: #fff; overflow: hidden; display: flex; flex-direction: column; }
.i2h { position: absolute; z-index: 5; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px 32px; pointer-events: none; }
.i2h .iw { display: inline-flex; align-items: baseline; gap: 8px; color: #fff; text-decoration: none; pointer-events: auto; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.i2h .iw b { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; }
.i2h .iw span { font-size: 11px; font-weight: 700; letter-spacing: .22em; opacity: .9; }
.i2h .hint { margin: 0; font-size: 13px; opacity: .8; text-shadow: 0 1px 12px rgba(0,0,0,.35); }

.i2 { flex: 1; display: flex; min-height: 0; }
.pn { position: relative; flex: 1; min-width: 0; display: flex; align-items: flex-end; color: #fff; text-decoration: none; overflow: hidden; border-right: 1px solid rgba(255,255,255,.14); transition: flex 1s var(--ease); opacity: 0; transform: translateY(24px); }
.pn:last-child { border-right: 0; }
body.ready .pn { opacity: 1; transform: none; transition: flex 1s var(--ease), opacity .9s var(--ease), transform .9s var(--ease); }
body.ready .pn:nth-child(2) { transition-delay: .12s; } body.ready .pn:nth-child(3) { transition-delay: .24s; } body.ready .pn:nth-child(4) { transition-delay: .36s; }
.pn .bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(1.06); filter: saturate(.85) brightness(.8); transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.pn .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,14,.1) 30%, rgba(10,12,14,.78) 100%); }
.pn .tx { position: relative; z-index: 1; padding: 0 32px 44px; width: 100%; }
.pn small { display: block; font-family: var(--en); font-size: 11px; font-weight: 700; letter-spacing: .22em; opacity: .85; }
.pn b { display: block; margin-top: 8px; font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; letter-spacing: -0.04em; }
.pn p { margin: 12px 0 0; font-size: 15px; line-height: 1.65; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s var(--ease); }
.pn .go { display: inline-flex; align-items: center; margin-top: 18px; min-height: 40px; padding: 0 18px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease) .1s, transform .5s var(--ease) .1s, background .25s, color .25s; }
.pn:hover { flex: 2.4; }
.pn:hover .bg { transform: scale(1); filter: saturate(1) brightness(.95); }
.pn:hover p { max-height: 80px; opacity: 1; }
.pn:hover .go { opacity: 1; transform: none; }
.pn:hover .go:hover { background: #fff; color: #0f1113; }
.i2:hover .pn:not(:hover) .bg { filter: saturate(.6) brightness(.55); }

/* 맥널티제약 클릭: 그 칸이 화면 전체로 펼쳐지고 흰 막이 덮인 뒤 홈으로 */
.i2.opening .pn { transition: flex .9s var(--ease), opacity .5s; }
.i2.opening .pn:not(.open) { flex: 0.0001; opacity: 0; border: 0; }
.i2.opening .pn.open { flex: 1; }
.i2.opening .pn.open .tx { opacity: 0; transition: opacity .4s; }
.i2.opening .pn.open .bg { transform: scale(1.04); filter: brightness(1); }
.veil { position: fixed; inset: 0; z-index: 9; background: #fff; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.veil.on { opacity: 1; }

.i2f { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0 32px 12px; font-size: 12px; color: rgba(255,255,255,.7); pointer-events: none; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.i2f .copy { margin-left: auto; }

@media (max-width: 760px) {
  body.intro2 { overflow: auto; }
  .i2h { padding: 16px 20px; }
  .i2h .hint { display: none; }
  .i2 { flex-direction: column; min-height: 100svh; }
  .pn { flex: 1; min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); transition: flex .7s var(--ease), opacity .9s, transform .9s; }
  .pn .tx { padding: 0 20px 24px; }
  .pn b { font-size: 24px; }
  .pn:hover { flex: 1; }
  .pn.act { flex: 2.2; }
  .pn.act .bg { transform: scale(1); filter: saturate(1) brightness(.95); }
  .pn.act p { max-height: 80px; opacity: 1; }
  .pn.act .go { opacity: 1; transform: none; }
  .pn[data-enter] .go { opacity: 1; transform: none; }
  .i2f { position: static; padding: 14px 20px 20px; background: #0f1113; text-shadow: none; }
  .i2f .copy { margin-left: 0; width: 100%; }
}
@media (max-width: 760px) {
  .i2 { padding-top: 64px; }
  .pn { min-height: 21vh; }
  .pn.act { min-height: 38vh; }
}
