/* ===========================================================
   BYSTECH × Horizon — living background module
   - .bh            : 배경 필드 (이미지 + 별빛 캔버스 + 글로우)
   - .bh__reticle   : SEM 뷰포트 오버레이 (코너 브래킷, 십자선, 판독값, 스케일 바)
   - .horizon-band  : B안 — 스크롤로 "초점을 맞추는" 브랜드 필름 섹션
   Depends on: horizon.js  ·  Fonts: IBM Plex Mono (사이트 기존)
   =========================================================== */

.bh { position: absolute; inset: 0; overflow: hidden; background: #030a18; }
.bh__img {
  position: absolute; inset: -8%;
  background-size: cover; background-repeat: no-repeat;
  background-position: var(--cx, 50%) var(--cy, 50%);
  transform-origin: var(--cx, 50%) var(--cy, 50%);
  will-change: transform, filter;
}
.bh__stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.bh__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38% 46% at var(--cx, 50%) var(--cy, 50%), rgba(90,155,255,.22), transparent 70%);
  opacity: var(--glow, .6);
}

/* ---------- SEM viewport reticle ---------- */
.bh__reticle {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  font-family: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  color: rgba(157,205,255,.78);
}
.bh__frame { position: absolute; inset: var(--rt-inset, 28px); }
.bh__corner { position: absolute; width: 22px; height: 22px; border: 1px solid rgba(157,205,255,.45); }
.bh__corner:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.bh__corner:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.bh__corner:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.bh__corner:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }

.bh__cross { position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); width: 0; height: 0; }
.bh__cross::before, .bh__cross::after { content: ""; position: absolute; background: rgba(157,205,255,.5); }
.bh__cross::before { left: -18px; top: 0; width: 36px; height: 1px; }
.bh__cross::after  { top: -18px; left: 0; width: 1px; height: 36px; }
.bh__cross i {
  position: absolute; left: -46px; top: -46px; width: 92px; height: 92px;
  border: 1px dashed rgba(157,205,255,.28); border-radius: 50%;
  animation: bh-spin 24s linear infinite;
}
@keyframes bh-spin { to { transform: rotate(360deg); } }

.bh__readout {
  position: absolute; right: 0; bottom: 0;
  display: flex; align-items: flex-end; gap: 22px;
  font-size: 11px; letter-spacing: .14em; line-height: 1.7; text-transform: uppercase;
  padding: 0 34px 30px 0;
}
.bh__readout dl { display: grid; grid-template-columns: auto auto; column-gap: 12px; text-align: right; }
.bh__readout dt { color: rgba(157,205,255,.45); }
.bh__readout dd { color: #dbe9ff; font-variant-numeric: tabular-nums; }
.bh__scale { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bh__scale b { display: block; height: 4px; border: 1px solid #dbe9ff; border-top: 0; transition: width .3s; }
.bh__scale span { color: #dbe9ff; font-variant-numeric: tabular-nums; }
.bh__tag {
  position: absolute; left: 34px; top: 30px;
  font-size: 11px; letter-spacing: .2em; color: rgba(157,205,255,.6);
  display: flex; align-items: center; gap: 8px;
}
.bh__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3385ff; box-shadow: 0 0 10px #3385ff; animation: bh-blink 1.6s ease-in-out infinite; }
@keyframes bh-blink { 50% { opacity: .25; } }

/* ===========================================================
   B안 — Horizon brand-film band (scroll-to-focus)
   =========================================================== */
.horizon-band { position: relative; height: 210vh; background: #030a18; color: #fff; }
.horizon-band__sticky { position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden; }
.horizon-band .bh__img { filter: hue-rotate(196deg) saturate(.95) brightness(.85); }
.horizon-band__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, #030a18 0%, transparent 18%, transparent 70%, #030a18 100%),
    radial-gradient(70% 60% at 50% 55%, transparent 30%, rgba(3,10,24,.65) 100%);
}
.horizon-band__content {
  position: absolute; z-index: 2; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 0 var(--gutter, 32px);
}
.horizon-band__title {
  font-size: clamp(30px, 4.4vw, 64px); font-weight: 700; line-height: 1.22; letter-spacing: -.045em;
  word-break: keep-all; text-wrap: balance; margin-top: 26px;
  text-shadow: 0 4px 40px rgba(3,10,24,.9);
}
.horizon-band__title span { display: block; opacity: calc(var(--l1, 0)); transform: translateY(calc((1 - var(--l1, 0)) * 18px)); }
.horizon-band__title span + span { opacity: var(--l2, 0); transform: translateY(calc((1 - var(--l2, 0)) * 18px)); color: #9dcdff; }
.horizon-band__lede {
  max-width: 560px; margin-top: 26px; font-size: 17px; line-height: 1.85; color: rgba(255,255,255,.78);
  word-break: keep-all; opacity: var(--l3, 0); transform: translateY(calc((1 - var(--l3, 0)) * 14px));
  text-shadow: 0 2px 20px rgba(3,10,24,.9);
}
.horizon-band .hero-actions { justify-content: center; opacity: var(--l3, 0); }
.horizon-band .eyebrow { opacity: calc(.4 + var(--l1, 0) * .6); }

.horizon-band__focus {
  position: absolute; z-index: 2; left: 34px; bottom: 30px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .16em; color: rgba(157,205,255,.7);
  display: flex; align-items: center; gap: 12px; text-transform: uppercase;
}
.horizon-band__focus i { display: block; width: 120px; height: 2px; background: rgba(157,205,255,.2); position: relative; }
.horizon-band__focus i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--f, 0) * 100%); background: #6da8ff; box-shadow: 0 0 8px #3385ff; }

/* ===========================================================
   A안 — Hero carousel slide 05
   =========================================================== */
.hero-slide--horizon .bh { z-index: 0; }
.hero-slide--horizon .bh__img { left: 20%; right: -14%; top: -10%; bottom: -10%; }
.hero-slide--horizon::after { background: linear-gradient(90deg, rgba(3,10,24,.96) 0%, rgba(3,10,24,.78) 34%, rgba(3,10,24,.05) 72%), linear-gradient(0deg, #071a30 0%, transparent 32%); }
.hero-slide--horizon .bh__reticle { z-index: 2; }
.hero-slide--horizon .bh__readout { padding-bottom: 110px; }
.hero-slide--horizon .bh__tag { left: auto; right: 34px; }
.hero-carousel__topics button.is-new::after { content: "NEW"; position: absolute; top: -20px; left: 0; font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .14em; color: #6da8ff; }

@media (max-width: 760px) {
  /* 모바일: 터널을 우상단으로 올리고, 텍스트는 하단 정렬 + 아래쪽을 더 어둡게 */
  .hero-slide--horizon .bh__img { left: -30%; right: -40%; top: -6%; bottom: 20%; }
  .hero-slide--horizon::after { background: linear-gradient(180deg, rgba(3,10,24,.15) 0%, rgba(3,10,24,.55) 42%, rgba(3,10,24,.94) 70%, #071a30 100%); }
  .hero-slide--horizon .hero-slide__content { justify-content: flex-end; min-height: 600px; padding-bottom: 40px; }
  .hero-slide--horizon .bh__readout { padding-bottom: 0; top: 20px; bottom: auto; right: 0; padding-right: 20px; }
  .hero-slide--horizon .bh__tag { right: auto; left: 20px; }
  .hero-slide--horizon .bh__frame { display: none; }
  .hero-carousel__topics button.is-new::after { top: -16px; }
  .horizon-band .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .horizon-band__title { font-size: clamp(26px, 7.4vw, 36px); }
  .horizon-band__content { justify-content: center; padding-top: 40px; }
  .horizon-band .bh__frame { --rt-inset: 12px; }
}

@media (max-width: 760px) {
  .horizon-band { height: 170vh; }
  .bh__readout { gap: 14px; padding: 0 20px 22px 0; font-size: 10px; }
  .bh__readout dl { display: none; }
  .bh__frame { --rt-inset: 16px; }
  .bh__tag { left: 20px; top: 20px; }
  .horizon-band__focus { left: 20px; bottom: 22px; }
  .horizon-band__lede { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .bh__cross i, .bh__tag::before { animation: none; }
  .horizon-band { height: auto; }
  .horizon-band__sticky { position: relative; }
}
