/* BPA 360 — 소개 페이지 (visionOS 스타일)
   방(환경) 앞에 유리 창이 떠 있고, 탭과 도구는 창 가장자리에 붙은 오너먼트로 둔다. */

:root {
  color-scheme: dark;

  /* 유리 위 글자는 흰색의 투명도로 위계를 만든다 */
  --label: rgba(255, 255, 255, 0.96);
  --label-2: rgba(255, 255, 255, 0.76);
  --label-3: rgba(255, 255, 255, 0.6);

  --glass-top: rgba(255, 255, 255, 0.17);
  --glass-bottom: rgba(255, 255, 255, 0.07);
  --platter: rgba(255, 255, 255, 0.1);
  --platter-hover: rgba(255, 255, 255, 0.18);
  --recessed: rgba(0, 0, 0, 0.2);
  --rim: rgba(255, 255, 255, 0.12);

  --marker: #ffd60a;
  --marker-ink: #1a1400;
  --blood: #d6453a;

  --stage: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
  --rail: 0px;

  /* 창 모서리와 안쪽 모서리는 같은 중심을 공유한다 (안쪽 = 바깥 - 여백) */
  --r-window: 46px;
  --pad-window: 28px;
  --r-inner: calc(var(--r-window) - var(--pad-window) + 4px);

  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, system-ui,
    "Noto Sans KR", sans-serif;
}

@media (min-width: 768px) {
  :root {
    --rail: 104px;
  }
}

@media (max-width: 640px) {
  :root {
    --r-window: 34px;
    --pad-window: 18px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #15110d;
  color: var(--label);
  font: 400 1.0625rem/1.6 var(--font);
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #000;
}

.skip:focus {
  top: 16px;
}

/* ---------- 환경: 창 뒤에 보이는 방 ---------- */

.environment {
  position: fixed;
  inset: -3%;
  z-index: -1;
  background: #15110d url("../img/env.webp") center / cover no-repeat;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  will-change: transform;
}

.environment::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 40%, transparent, rgba(0, 0, 0, 0.35)),
    rgba(10, 8, 6, 0.22);
}

/* 메인과 훈련 체험은 사건 현장이 배경이 된다 */
.environment--scene {
  background-image: url("../img/hero-scene.webp");
}

.environment--scene::after {
  background:
    radial-gradient(80% 60% at 50% 40%, transparent, rgba(0, 0, 0, 0.45)),
    rgba(10, 8, 6, 0.4);
}

/* ---------- 유리 ---------- */

.glass {
  position: relative;
  background:
    linear-gradient(180deg, var(--glass-top), var(--glass-bottom)),
    rgba(16, 11, 8, 0.34);
  backdrop-filter: blur(44px) saturate(150%);
  -webkit-backdrop-filter: blur(44px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 30px 70px -20px rgba(0, 0, 0, 0.45);
}

/* 빛이 위 왼쪽 모서리에 맺히는 테두리 */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.2px;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.08) 30%,
    rgba(255, 255, 255, 0.03) 65%,
    rgba(255, 255, 255, 0.22)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- 시선(포인터)이 닿은 곳을 비추는 하이라이트 ---------- */

.hover {
  position: relative;
  isolation: isolate;
}

.hover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.22),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

@media (hover: hover) {
  .hover:hover::after {
    opacity: 1;
  }
}

/* 기울이는 카드는 JS가 --rx, --ry, --s를 스프링으로 움직인다 */
[data-tilt] {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  will-change: transform;
}

/* ---------- 탭 오너먼트 ---------- */

/* 탭 바, 그리고 그 옆에 따로 떠 있는 훈련 시작 버튼 */
.dock {
  position: fixed;
  z-index: 40;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.tabs,
.start {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 8px;
  /* 이름이 펼쳐져 폭이 바뀌어도 모서리 모양은 그대로 둔다 */
  border-radius: 32px;
  list-style: none;
}

.tab {
  display: flex;
  align-items: center;
  height: 48px;
  min-width: 48px;
  padding: 0 12px;
  border-radius: 24px;
  color: var(--label-2);
  transition: background-color 200ms ease, color 200ms ease;
}

.tab svg {
  flex: none;
  width: 24px;
  height: 24px;
}

.tab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    max-width 420ms var(--ease-out),
    opacity 200ms ease,
    margin 420ms var(--ease-out);
}

/* 탭 바를 바라보면 이름이 펼쳐진다 */
.tabs:hover .tab__label,
.tabs:focus-within .tab__label,
.start:hover .tab__label,
.start:focus-within .tab__label {
  max-width: 7em;
  margin-left: 12px;
  margin-right: 6px;
  opacity: 1;
}

.tab:hover {
  color: var(--label);
}

.tab[aria-current] {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* 훈련 시작은 다른 탭과 달리 체험으로 들어가는 버튼이라 채워서 구분한다 */
.start .tab,
.start .tab:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

.start .hover::after {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.9), transparent 60%);
}

@media (max-width: 767px) {
  .dock {
    left: 50%;
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .tabs {
    flex-direction: row;
    gap: 2px;
  }

  .tabs,
  .start {
    padding: 6px;
  }

  .tab {
    flex-direction: column;
    justify-content: center;
    height: 54px;
    min-width: 62px;
    padding: 0 8px;
    gap: 2px;
  }

  .tab svg {
    width: 22px;
    height: 22px;
  }

  .tab__label,
  .tabs:hover .tab__label,
  .tabs:focus-within .tab__label,
  .start:hover .tab__label,
  .start:focus-within .tab__label {
    max-width: none;
    margin: 0;
    opacity: 1;
    font-size: 0.6875rem;
  }
}

/* 탭이 다섯 개라 좁은 폰에서는 간격을 줄여 훈련 시작까지 한 줄에 담는다 */
@media (max-width: 480px) {
  .dock {
    gap: 6px;
  }

  .tabs,
  .start {
    padding: 5px;
  }

  .tab {
    min-width: 50px;
    padding: 0 4px;
  }

  .tab__label,
  .tabs:hover .tab__label,
  .tabs:focus-within .tab__label,
  .start:hover .tab__label,
  .start:focus-within .tab__label {
    font-size: 0.625rem;
  }
}

/* 폭이 360px 이하인 폰(아이폰 SE 1세대 등)에서도 탭 바가 화면 안에 들어오게 더 줄인다 */
@media (max-width: 380px) {
  .dock {
    gap: 4px;
  }

  .tabs,
  .start {
    padding: 4px;
  }

  .tabs {
    gap: 0;
  }

  .tab {
    min-width: 0;
    padding: 0 3px;
  }

  .tab__label,
  .tabs:hover .tab__label,
  .tabs:focus-within .tab__label,
  .start:hover .tab__label,
  .start:focus-within .tab__label {
    font-size: 0.5625rem;
  }
}

/* 폰을 가로로 눕히면 폭은 넓어 옆 탭 바로 바뀌지만 높이가 모자라니, 탭 바를 낮춰 위아래로 잘리지 않게 한다 */
@media (min-width: 768px) and (max-height: 520px) {
  .dock {
    left: max(12px, env(safe-area-inset-left));
    gap: 8px;
  }

  .tabs,
  .start {
    gap: 2px;
    padding: 5px;
    border-radius: 28px;
  }

  .tab {
    height: 40px;
    min-width: 40px;
    padding: 0 8px;
    border-radius: 20px;
  }
}

/* ---------- 무대: 창이 놓이는 세로 열 ---------- */

.stage,
.stack {
  display: grid;
  /* 가로로 스크롤되는 목록이 열 너비를 밀어내지 않게 한다 */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(64px, 9vw, 112px);
}

.stage {
  width: min(var(--stage), 100% - var(--gutter) * 2 - var(--rail) * 2);
  margin-inline: auto;
  padding: clamp(48px, 8vw, 96px) 0 clamp(120px, 14vw, 180px);
}

@media (max-width: 767px) {
  .stage {
    padding-bottom: 140px;
  }
}

.window-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.window {
  width: 100%;
  padding: var(--pad-window);
  border-radius: var(--r-window);
}

/* 창 아래의 닫기 점과 이동 막대 */
.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.window-bar span {
  display: block;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background-color 200ms ease, transform 300ms var(--ease-out);
}

.window-bar__close {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.window-bar__grab {
  width: 128px;
  height: 7px;
  border-radius: 999px;
}

.window-group:hover .window-bar span {
  background: rgba(255, 255, 255, 0.6);
}

.window-group:hover .window-bar__grab {
  transform: scaleX(1.06);
}

/* 창 아래 가장자리에 반쯤 걸치는 도구 오너먼트 */
.ornament {
  position: relative;
  z-index: 2;
  margin-top: -32px;
  max-width: calc(100% - 24px);
  padding: 8px;
  border-radius: 999px;
}

.ornament + .window-bar {
  margin-top: 14px;
}

/* 오너먼트가 걸치는 창은 아래 여백을 늘려 사진을 가리지 않게 한다 */
.window:has(+ .ornament) {
  padding-bottom: calc(var(--pad-window) + 30px);
}

/* ---------- 타이포 ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--platter);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--label-2);
}

.chip--plain {
  padding-left: 14px;
}

.chip b {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--marker);
  color: var(--marker-ink);
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.display {
  margin: 0;
  font-size: clamp(2.5rem, 6.6vw, 4.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.headline {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.title {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--label-2);
  text-wrap: pretty;
}

.body {
  margin: 0;
  color: var(--label-2);
  text-wrap: pretty;
}

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--platter);
  color: var(--label);
  font-size: 0.975rem;
  font-weight: 600;
  transition:
    transform 260ms var(--ease-out),
    background-color 200ms ease;
}

@media (hover: hover) {
  .btn:hover {
    background: var(--platter-hover);
    transform: scale(1.04);
  }
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.btn--primary {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

@media (hover: hover) {
  .btn--primary:hover {
    background: #fff;
  }
}

.btn--primary.hover::after {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.9), transparent 60%);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- 로고 ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  line-height: 1;
}

.logo__symbol {
  width: 1.9em;
  height: auto;
}

.logo__word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
}

.logo__bpa {
  height: 0.82em;
  width: auto;
}

.logo__num {
  font-weight: 600;
  font-size: 1.08em;
  letter-spacing: -0.03em;
}

/* ---------- 히어로 창 ---------- */

.hero {
  text-align: center;
  padding-top: clamp(36px, 6vw, 64px);
}

.hero .logo {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.hero__sub {
  margin: 8px 0 28px;
  font-size: 0.8125rem;
  color: var(--label-2);
}

.hero .lead {
  max-width: 36rem;
  margin: 22px auto 0;
}

.hero .actions {
  margin-top: 32px;
}

/* ---------- 히어로 강조 ---------- */

.display em {
  white-space: nowrap;
  font-style: normal;
  color: var(--marker);
  text-shadow: 0 0 42px rgba(255, 214, 10, 0.3);
}

/* ---------- 왜 Vision Pro인가 ---------- */

.vision {
  padding: clamp(28px, 5vw, 56px);
}

.vision .chip {
  margin-bottom: 18px;
}

.vision .headline {
  max-width: 24ch;
}

.vision__card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vision__card p {
  margin: 0;
  color: var(--label-2);
  font-size: 0.95rem;
}

.vision__card .vision__no {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--marker);
}

.vision__photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--r-inner) - 10px);
  background: var(--recessed);
}

.vision__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 561px) and (max-width: 860px) {
  .vision__photo {
    aspect-ratio: 16 / 9;
  }
}

.vision__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(32px, 5vw, 48px);
}

.vision__card {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 10px 10px 26px;
  border-radius: var(--r-inner);
  background: var(--recessed);
}

.vision__text {
  padding-inline: 14px;
}

@media (max-width: 860px) {
  .vision__grid {
    grid-template-columns: 1fr;
  }
}

/* 끌어서 돌려 보는 입체 그림. 면과 선은 JS가 매 프레임 투영해서 그린다 */
.space {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--r-inner) - 10px);
  background:
    radial-gradient(90% 70% at 50% 30%, rgba(255, 255, 255, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.24);
  cursor: grab;
  /* 세로로 밀면 페이지가 스크롤되고, 가로로 밀면 그림이 돈다 */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

/* 카드가 한 줄을 다 쓰면 그림이 너무 높아지지 않게 가로로 넓힌다 */
@media (min-width: 561px) and (max-width: 860px) {
  .space {
    aspect-ratio: 16 / 9;
  }
}

.space.is-dragging {
  cursor: grabbing;
}

.space svg {
  display: block;
  width: 100%;
  height: 100%;
}

.space .face {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1;
  stroke-linejoin: round;
}

.space .face--floor {
  fill: rgba(255, 255, 255, 0.09);
}

.space .face--dim {
  fill: rgba(255, 255, 255, 0.025);
}

.space .stain {
  fill: var(--blood);
}

.space .marker {
  fill: var(--marker);
}

.space .string {
  fill: none;
  stroke: #ff8a7f;
  stroke-width: 1;
  stroke-linecap: round;
}

.space .guide {
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.space .ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.2;
}

.space .dot {
  fill: #ff5b4d;
}

/* 나타나고 사라지는 건 JS가 opacity로 하므로 맥박은 fill-opacity로 뛴다 */
.space .halo {
  fill: #ff5b4d;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 2.4s ease-out infinite;
}

@keyframes halo {
  from {
    fill-opacity: 0.6;
    transform: scale(0.5);
  }

  to {
    fill-opacity: 0;
    transform: scale(1.7);
  }
}

/* 이름표가 줄 위에 놓여도 읽히게 어두운 테두리를 먼저 칠한다 */
.space .tag {
  font: 600 11px var(--font);
  fill: var(--label-2);
  paint-order: stroke;
  stroke: rgba(24, 19, 15, 0.85);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.space__hint {
  position: absolute;
  right: 12px;
  bottom: 9px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(12, 8, 6, 0.78);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--label-2);
  pointer-events: none;
  transition: opacity 300ms ease;
}

.space.is-touched .space__hint {
  opacity: 0;
}

.no-js .space {
  display: none;
}

/* ---------- 훈련 단계 창 ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(28px, 4vw, 40px);
}

.feature--flip .feature__text {
  order: 2;
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
  }

  .feature--flip .feature__text {
    order: 0;
  }
}

.feature__text {
  padding-inline: clamp(0px, 1.5vw, 16px);
}

.feature .chip {
  margin-bottom: 18px;
}

.feature .body {
  margin-top: 14px;
}

.points {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--label-2);
}

.points li {
  position: relative;
  padding-left: 22px;
}

.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blood);
  box-shadow: 0 0 0 3px rgba(214, 69, 58, 0.25);
}

.shot {
  margin: 0;
  border-radius: var(--r-inner);
  overflow: hidden;
  background: var(--recessed);
  box-shadow: 0 0 0 1px var(--rim);
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.caption {
  margin: 16px 0 0;
  min-height: 1.6em;
  font-size: 0.875rem;
  color: var(--label-3);
}

/* 사진 전환 */
.frames {
  display: grid;
}

.frames > img {
  grid-area: 1 / 1;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 420ms ease,
    transform 700ms var(--ease-out);
}

.frames > img.is-active {
  opacity: 1;
  transform: none;
}

/* ---------- 세그먼트 컨트롤 ---------- */

.segmented {
  position: relative;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar {
  display: none;
}

.segmented__thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--w, 0);
  transform: translateX(var(--x, 0));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 380ms var(--ease-out),
    width 380ms var(--ease-out);
}

.segmented button {
  position: relative;
  z-index: 1;
  flex: none;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--label-2);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 200ms ease, transform 100ms ease-out;
}

.segmented button:active {
  transform: scale(0.96);
}

.segmented button:focus-visible {
  outline: 2px solid var(--marker);
  outline-offset: -4px;
}

.segmented button[aria-selected="true"] {
  color: #fff;
}

/* ---------- 가설 · 비교 ---------- */

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 760px) {
  .pair {
    grid-template-columns: 1fr;
  }
}

.pair .window {
  padding: clamp(28px, 4vw, 40px);
}

.pair .chip {
  margin-bottom: 18px;
}

.pair .body {
  margin-top: 12px;
}

/* ---------- 도구 ---------- */

.section-head {
  position: relative;
  isolation: isolate;
  max-width: 40rem;
  padding: 0 4px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

/* 밝은 사진 위에서도 읽히도록 글 뒤에 번진 어두운 막을 깐다 */
.section-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -26px -12px;
  border-radius: 40px;
  background: rgba(12, 8, 6, 0.62);
  filter: blur(22px);
  pointer-events: none;
}

.section-head .lead {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.tools {
  display: grid;
  gap: 24px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
  }
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 38px;
}

.tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 26px;
}

.tile--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  border-radius: var(--r-window);
}

.tile--wide img {
  aspect-ratio: 2400 / 1286;
  border-radius: calc(var(--r-window) - 14px);
}

@media (max-width: 900px) {
  .tile--wide {
    grid-template-columns: 1fr;
  }
}

.tile__text {
  padding: 18px 12px 10px;
}

.tile--wide .tile__text {
  padding: clamp(18px, 3vw, 36px);
}

.tile__text h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tile--wide .tile__text h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
}

.tile__text p {
  margin: 0;
  color: var(--label-2);
  font-size: 0.95rem;
}

/* ---------- 마무리 창 ---------- */

.cta {
  text-align: center;
  padding: clamp(40px, 7vw, 80px) var(--pad-window);
}

.cta .logo {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  margin-bottom: 32px;
}

.cta .lead {
  margin: 14px auto 0;
}

.cta .actions {
  margin-top: 30px;
}

.footnote {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.74);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.footnote a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

/* ---------- 팀 ---------- */

.team-head {
  text-align: center;
  padding: clamp(40px, 7vw, 72px) var(--pad-window);
}

.team-head .chip {
  margin-bottom: 20px;
}

.team-head .lead {
  max-width: 32rem;
  margin: 18px auto 0;
}

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

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 26px 26px;
  border-radius: 40px;
  text-align: center;
}

.member__avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--platter);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.14),
    0 18px 36px rgba(0, 0, 0, 0.35);
}

.member__name {
  margin: 22px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.member__role {
  margin: 10px 0 0;
}

.member__desc {
  flex: 1;
  margin: 16px 0 0;
  color: var(--label-2);
  font-size: 0.95rem;
}

.member .btn {
  margin-top: 22px;
  min-height: 42px;
  font-size: 0.9rem;
}

/* ---------- 유튜브 ---------- */

.yt {
  padding: clamp(24px, 4vw, 40px);
}

.yt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.yt__head .chip {
  margin-bottom: 16px;
}

.yt__head .body {
  max-width: 34rem;
  margin-top: 12px;
}

.yt__player {
  position: relative;
  margin-top: clamp(24px, 4vw, 36px);
  aspect-ratio: 16 / 9;
  border-radius: var(--r-inner);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--rim);
}

.yt__player iframe,
.yt__poster {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.yt__play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #fff;
  transition: transform 300ms var(--ease-out), background-color 200ms ease;
}

.yt__play svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
}

@media (hover: hover) {
  .yt__poster:hover img {
    transform: scale(1.025);
  }

  .yt__poster:hover .yt__play {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.32);
  }
}

.yt__poster:active .yt__play {
  transform: scale(0.95);
}

.yt__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 860px) {
  .yt__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 62%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .yt__list li {
    scroll-snap-align: start;
  }
}

.yt__item {
  display: block;
  height: 100%;
  padding: 8px 8px 12px;
  border-radius: 22px;
  transition: background-color 200ms ease, transform 260ms var(--ease-out);
}

.yt__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
}

@media (hover: hover) {
  .yt__item:hover {
    background: var(--platter);
  }
}

.yt__item:active {
  transform: scale(0.97);
}

.yt__item[aria-current] {
  background: rgba(255, 255, 255, 0.2);
}

.yt__ep {
  display: block;
  padding-inline: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--label-3);
}

.yt__title {
  display: -webkit-box;
  padding-inline: 4px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- 창이 떠오르는 등장 ---------- */

/* transform은 기울기에 쓰므로 등장은 translate·scale로만 움직인다 */
.reveal {
  opacity: 0;
  translate: 0 28px;
  scale: 0.96;
  transition:
    opacity 700ms ease,
    translate 900ms var(--ease-out),
    scale 900ms var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  translate: none;
  scale: none;
}

.no-js .reveal {
  opacity: 1;
  translate: none;
  scale: none;
}

.intro {
  animation: intro 1s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

@keyframes intro {
  from {
    opacity: 0;
    translate: 0 20px;
    scale: 0.97;
  }
}

/* ---------- 접근성 설정 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* 숨겼다 보여 주는 효과에 기대지 않는다: 처음부터 완성된 화면이 보인다 */
  .reveal,
  .reveal.is-in {
    opacity: 1;
    translate: none;
    scale: none;
    transition: none;
  }

  .intro {
    animation: none;
  }

  .frames > img {
    transform: none !important;
  }

  .segmented__thumb,
  .tab__label {
    transition: none;
  }

  .space .halo {
    animation: none;
    fill-opacity: 0.3;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: rgb(52, 47, 43);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --label-2: rgba(255, 255, 255, 0.86);
    --label-3: rgba(255, 255, 255, 0.7);
    --rim: rgba(255, 255, 255, 0.4);
  }

  .glass {
    background: rgba(40, 36, 33, 0.92);
  }
}


/* ---------- 같은 혈흔, 다른 화면 ---------- */

.compare {
  padding: clamp(28px, 5vw, 56px);
  padding-bottom: calc(clamp(28px, 5vw, 56px) + 30px);
}

.compare .chip {
  margin-bottom: 18px;
}

.compare .headline {
  max-width: 22ch;
}

.compare .lead {
  max-width: 38rem;
  margin-top: 18px;
}

.compare__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(28px, 4vw, 40px);
}

@media (max-width: 860px) {
  .compare__grid {
    grid-template-columns: 1fr;
  }

  /* 버튼과 가까운 순서로: 그림 → 지금 보이는 것 → BPA 설명 */
  .compare__side .readout {
    order: -1;
  }
}

.space--wide {
  aspect-ratio: 4 / 3;
  align-self: start;
  border-radius: var(--r-inner);
  box-shadow: 0 0 0 1px var(--rim);
  transition: box-shadow 500ms ease, background-color 500ms ease;
}

/* 평면 화면일 때는 모니터처럼 테두리가 생기고 그림이 돌아가지 않는다 */
.space--wide.is-flat {
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 0 0 7px rgba(10, 8, 6, 0.55);
}

.space__mode {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--label);
  pointer-events: none;
}

.space__mode::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5b4d;
}

.space--wide.is-flat .space__mode::before {
  background: var(--label-3);
}

.space--wide .space__hint {
  font-size: 0.8rem;
}

.compare__side {
  display: grid;
  align-content: space-between;
  gap: 24px;
}

.compare__label {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--label-3);
}

.bpa-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bpa-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--label-2);
  font-size: 1rem;
  line-height: 1.5;
}

.bpa-steps b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--platter);
  color: var(--label);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.bpa-steps strong {
  color: var(--label);
}

.readout {
  padding: 22px 24px 24px;
  border-radius: var(--r-inner);
  background: var(--recessed);
  box-shadow: 0 0 0 1px var(--rim);
}

.readout__state[hidden] {
  display: none;
}

.readout__state {
  animation: readout-in 420ms var(--ease-out);
}

@keyframes readout-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.readout p {
  margin: 0;
}

.readout__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--label-3);
}

.readout__main {
  margin-top: 8px !important;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.readout__sub {
  margin-top: 8px !important;
  font-size: 0.92rem;
  color: var(--label-2);
}

.readout__answer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px !important;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

.readout__answer b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
}

.readout__answer--no {
  background: rgba(255, 255, 255, 0.08);
  color: var(--label-2);
}

.readout__answer--no b {
  background: rgba(255, 255, 255, 0.18);
}

.readout__answer--yes {
  background: rgba(255, 214, 10, 0.16);
  color: var(--marker);
}

.readout__answer--yes b {
  background: var(--marker);
  color: var(--marker-ink);
}

/* ---------- 한눈에 비교 ---------- */

.vs {
  padding: clamp(28px, 5vw, 56px);
}

.vs__table {
  width: 100%;
  margin-top: clamp(24px, 4vw, 36px);
  border-collapse: separate;
  border-spacing: 0 8px;
  text-align: left;
}

.vs__table th,
.vs__table td {
  padding: 16px 20px;
  background: var(--recessed);
  font-size: 1rem;
  font-weight: 500;
}

.vs__table thead th {
  background: none;
  padding-block: 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--label-3);
}

.vs__table thead th small {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--marker);
  color: var(--marker-ink);
  font-size: 0.7rem;
  font-weight: 800;
}

.vs__table tbody th {
  width: 17%;
  border-radius: var(--r-inner) 0 0 var(--r-inner);
  font-weight: 700;
  color: var(--label-2);
}

.vs__table td:last-child {
  border-radius: 0 var(--r-inner) var(--r-inner) 0;
}

.vs__table td:nth-child(2) {
  color: var(--label-2);
}

.vs__table td:nth-child(3) {
  background: rgba(255, 214, 10, 0.12);
  color: var(--label);
  font-weight: 700;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .vs__table,
  .vs__table tbody,
  .vs__table tr,
  .vs__table th,
  .vs__table td {
    display: block;
  }

  .vs__table thead {
    display: none;
  }

  .vs__table {
    border-spacing: 0;
  }

  .vs__table tr {
    margin-top: 10px;
    overflow: hidden;
    border-radius: var(--r-inner);
    background: var(--recessed);
  }

  .vs__table th,
  .vs__table td {
    width: auto !important;
    padding: 12px 18px;
    border-radius: 0 !important;
    background: none;
  }

  .vs__table tbody th {
    padding-bottom: 2px;
    font-size: 0.85rem;
  }

  .vs__table td {
    display: grid;
    grid-template-columns: 5.5em minmax(0, 1fr);
    gap: 8px;
  }

  .vs__table td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--label-2);
  }

  .vs__table td:nth-child(3) {
    background: rgba(255, 214, 10, 0.12);
  }
}

/* 제안하는 교육 · Vision Pro를 고른 이유 머리말 */
.section-head .chip {
  margin-bottom: 18px;
}

#solution-head .headline,
#vision-head .headline {
  max-width: 22ch;
}

/* ---------- 문제: 교육 과정의 공백 ---------- */

.problem {
  padding: clamp(28px, 5vw, 56px);
}

.problem .chip {
  margin-bottom: 18px;
}

.problem .headline {
  max-width: 24ch;
}

.problem .lead {
  max-width: 42rem;
  margin-top: 18px;
}

.problem__flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}

.problem__step {
  padding: 22px 22px 26px;
  border-radius: var(--r-inner);
  background: var(--recessed);
}

.problem__step b {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--marker);
}

.problem__step h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.problem__step p {
  margin: 0;
  color: var(--label-2);
  font-size: 0.95rem;
}

/* 기본 교육과 현장 경험 사이의 비어 있는 구간 */
.problem__gap {
  margin: 14px 0 0;
  padding: 16px 20px;
  border-radius: var(--r-inner);
  background: rgba(214, 69, 58, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 130, 110, 0.3);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (max-width: 860px) {
  .problem__flow {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ---------- 입체 그림 (CSS 3D) ---------- */

.space .s3 {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

/* 그림 높이 600을 기준으로 지은 장면을 --k배로 맞춘다. 글자와 선 굵기는 --k로 나눠 제 크기를 지킨다 */
.s3__cam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  perspective: 1000px;
  transform: scale(var(--k, 1));
}

.s3__world {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.p3 {
  position: absolute;
  left: 0;
  top: 0;
}

.p3 > canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.l3 {
  --t: calc(1.6px / var(--k, 1));
  position: absolute;
  left: 0;
  top: 0;
  height: var(--t);
  margin-top: calc(var(--t) / -2);
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  background: var(--c, #fff);
}

.l3::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transform: rotateX(90deg);
}

.b3 {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}

.b3 > * {
  position: absolute;
  left: 0;
  top: 0;
}

.s3-wall {
  overflow: hidden;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.s3-ceiling {
  filter: brightness(0.82);
}

/* 바닥은 가장자리로 갈수록 어둠 속으로 사라진다 */
.s3-floor {
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 96%), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 96%), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}

.s3-floor--room {
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent), linear-gradient(to right, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent), linear-gradient(to right, #000 80%, transparent);
}

.s3-ring {
  border: calc(1.6px / var(--k, 1)) solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 calc(8px / var(--k, 1)) rgba(255, 255, 255, 0.45);
}

.s3-ring--floor {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.35);
}

.s3-guide {
  --t: calc(1.3px / var(--k, 1));
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0 7px, transparent 7px 13px);
}

.s3-string {
  --t: calc(1.5px / var(--k, 1));
  --c: #ffe3dd;
  box-shadow: 0 0 calc(7px / var(--k, 1)) rgba(255, 110, 96, 0.85);
}

.s3-origin__dot,
.s3-origin__halo {
  position: absolute;
  border-radius: 50%;
}

.s3-origin__dot {
  --d: calc(17px / var(--k, 1));
  width: var(--d);
  height: var(--d);
  left: calc(var(--d) / -2);
  top: calc(var(--d) / -2);
  background: radial-gradient(circle at 34% 30%, #ffc1b8, #ff4a3a 46%, #b01c12);
  box-shadow: 0 0 calc(20px / var(--k, 1)) rgba(255, 74, 58, 0.9);
}

.s3-origin__halo {
  --d: calc(52px / var(--k, 1));
  width: var(--d);
  height: var(--d);
  left: calc(var(--d) / -2);
  top: calc(var(--d) / -2);
  background: rgba(255, 91, 77, 0.55);
  animation: s3-halo 2.4s ease-out infinite;
}

@keyframes s3-halo {
  from {
    opacity: 0.7;
    transform: scale(0.35);
  }

  to {
    opacity: 0;
    transform: scale(1.25);
  }
}

.s3-tag {
  padding: 0.38em 0.85em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(20, 15, 12, 0.72);
  color: #fff;
  font: 600 calc(11.5px / var(--k, 1)) / 1.2 var(--font);
  white-space: nowrap;
}

.s3-tag--origin {
  transform: translate(-100%, -100%) translate(calc(-12px / var(--k, 1)), calc(-10px / var(--k, 1)));
  border-color: rgba(255, 110, 96, 0.6);
}

.s3-tag--wall {
  transform: translate(calc(16px / var(--k, 1)), calc(10px / var(--k, 1)));
}

/* 유형별 유리 층. --split이 0이면 벽에 붙어 보이지 않고, 1이면 테두리와 이름이 드러난다 */
.s3-layer {
  --split: 0;
  border: calc(1.5px / var(--k, 1)) solid color-mix(in srgb, var(--tint) calc(var(--split) * 88%), transparent);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, calc(var(--split) * 0.12)), rgba(255, 255, 255, calc(var(--split) * 0.02)) 60%);
  box-shadow: 0 0 calc(var(--split) * 26px) color-mix(in srgb, var(--tint) 22%, transparent);
}

.s3-layer__name {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: calc(7px / var(--k, 1));
  opacity: calc((var(--split) - 0.55) / 0.35);
  color: var(--tint);
  font: 700 calc(12px / var(--k, 1)) / 1 var(--font);
  white-space: nowrap;
  padding: calc(3px / var(--k, 1)) calc(7px / var(--k, 1));
  border-radius: calc(6px / var(--k, 1));
  background: rgba(12, 8, 6, 0.82);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.s3-sofa {
  background: #4b453e;
}

.s3-sofa.is-top {
  background: linear-gradient(#625a50, #554e45);
}

.s3-sofa.is-front {
  background: linear-gradient(#4f4941, #37322c);
}

.s3-sofa.is-side {
  background: #2f2a25;
}

.s3-sofa.is-side.is-lit {
  background: linear-gradient(#5d554b, #443e37);
}

.s3-table {
  background: #6f4d34;
}

.s3-table.is-top {
  background: linear-gradient(120deg, #a47a57, #8a6344);
}

.s3-table.is-front {
  background: linear-gradient(#7f5a3d, #5d4029);
}

.s3-table.is-side {
  background: #4d3522;
}

.s3-pole {
  --t: 3px;
  --c: #1c1714;
}

.s3-lamp::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  left: -150px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 140, 0.42), rgba(255, 206, 140, 0) 65%);
}

.s3-lamp::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 46px;
  left: -30px;
  top: -23px;
  clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%);
  background: linear-gradient(#fff0d2, #f6c98c);
}

.s3-marker {
  border-radius: 2px;
  background: var(--marker);
  color: var(--marker-ink);
  font: 800 17px / 26px var(--font);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.s3-marker--tent {
  font-size: 12px;
  line-height: 18px;
}

/* ---------- 단계별 반복 화면 (움짤) ---------- */

.loop {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-inner);
  background: #1b1512;
  box-shadow: 0 0 0 1px var(--rim);
}

.loop__stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 960px;
  height: 540px;
  transform-origin: 0 0;
  font-family: var(--font);
  color: #fff;
}

.loop__stage > *,
.lp-wall {
  position: absolute;
}

.lp-wall {
  left: 0;
  top: 0;
  width: 960px !important;
  height: 540px !important;
}

.frames > .loop {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 420ms ease, transform 700ms var(--ease-out), visibility 0s 420ms;
}

.frames > .loop.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 420ms ease, transform 700ms var(--ease-out), visibility 0s;
}

.tile .loop {
  border-radius: 26px;
}

/* 유리 패널 */
.lg {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(16, 11, 8, 0.5);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 24px 50px -16px rgba(0, 0, 0, 0.5);
}

.lg > *,
.lp-note > * {
  position: absolute;
}

.lp-card__t {
  left: 30px;
  top: 22px;
  font-size: 18px;
  font-weight: 700;
}

.lp-card__s {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.lp-card__p {
  left: 30px;
  top: 52px;
  margin: 0;
  max-width: 400px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.lp-pbtn {
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.lp-pbtn {
  width: 140px;
  background: rgba(255, 255, 255, 0.3);
}

.lp-zone {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: #ffd60a;
  color: #111;
  font-size: 40px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* 손 포인터 */
.lp-cur {
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  --p: 0;
  pointer-events: none;
  z-index: 9;
}

.lp-cur i {
  position: absolute;
  border-radius: 50%;
}

.lp-cur__ring {
  --d: calc(46px - var(--p) * 20px);
  left: calc(var(--d) / -2);
  top: calc(var(--d) / -2);
  width: var(--d);
  height: var(--d);
  border: 3px solid rgba(255, 255, 255, 0.95);
  background: rgba(100, 190, 255, calc(var(--p) * 0.4));
  box-shadow: 0 0 22px rgba(120, 200, 255, calc(0.35 + var(--p) * 0.55)), inset 0 0 12px rgba(255, 255, 255, 0.3);
}

.lp-cur__dot {
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

/* 화살 스티커 */
.lp-arw {
  left: 0;
  top: 0;
  width: 64px;
  height: 28px;
  margin: -14px 0 0 -32px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.lp-arw svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lp-pulse {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.lp-rect {
  border: 3px dashed rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.lp-tip {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(60, 40, 30, 0.82);
  font-size: 14px;
  white-space: nowrap;
}

.lp-row {
  left: 20px;
  right: 20px;
  height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  font-size: 17px;
}

.lp-row span {
  flex: 1;
}

.lp-row__ok {
  display: none;
  margin-right: 10px;
  font-style: normal;
  color: #ffd60a;
}

.lp-row.is-on .lp-row__ok {
  display: block;
}

.lp-row.is-on {
  color: #ffd60a;
}

.lp-row__chev {
  font-style: normal;
  opacity: 0.6;
}

.lp-view {
  overflow: hidden;
  border-radius: 22px;
}

.lp-view > canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.lp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lp-ell {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
}

.lp-axis {
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.5;
}

.lp-handle {
  fill: #4fb6ff;
  stroke: #fff;
  stroke-width: 2;
}

.lp-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
}

.lp-field b {
  width: 130px;
  padding: 11px 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  font-weight: 600;
  text-align: center;
  color: #fff;
}

.lp-angle {
  display: flex;
  justify-content: space-between;
  width: 300px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
}

.lp-angle b {
  font-size: 22px;
}

.lp-svg--full {
  pointer-events: none;
}

.lp-string {
  stroke: #fff;
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
}

.lp-dash {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
  stroke-dasharray: 7 6;
  fill: none;
}

.lp-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #62e078;
  border: 3px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(98, 224, 120, 0.8);
}

.lp-spot {
  width: 0;
  height: 0;
}

.lp-spot i {
  position: absolute;
  left: -26px;
  top: -26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 224, 200, 0.95);
  box-shadow: 0 0 30px rgba(255, 224, 200, 0.8);
}

.lp-label {
  padding: 12px 20px;
  border-radius: 30px;
  background: rgba(70, 48, 36, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 15px;
}

.lp-label b {
  display: block;
  font-size: 16px;
}

.lp-label span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.lp-wallline,
.lp-floorline {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 3;
}

.lp-floorline {
  stroke-width: 2;
}

.lp-wallstain {
  fill: #a02218;
}

.lp-ray {
  stroke: #ffd5cd;
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 100, 85, 0.8));
}

.lp-arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.5;
}

.lp-halo {
  fill: rgba(255, 90, 75, 0.35);
  animation: s3-halo-svg 2.2s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes s3-halo-svg {
  from {
    transform: scale(0.5);
    opacity: 0.8;
  }

  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

.lp-red {
  fill: #ff4a3a;
  filter: drop-shadow(0 0 10px rgba(255, 74, 58, 0.9));
}

.lp-svgtext {
  fill: #fff;
  font: 700 17px var(--font);
}

.lp-svgtext--s {
  font-size: 14px;
  fill: rgba(255, 255, 255, 0.7);
}

.lp-done {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.lp-done i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffd60a;
  color: #111;
  font-size: 13px;
  font-style: normal;
}

.lp-ink {
  fill: none;
  stroke: #ffd60a;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1 15;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.lp-arrow {
  fill: #ffd60a;
}

.lp-sw {
  position: absolute;
  left: 38px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.lp-note {
  left: 0;
  top: 0;
  width: 250px;
  height: 250px;
  padding: 0;
  background: #fbf7ee;
  color: #2a2118;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.lp-note i {
  left: 24px;
  right: 24px;
  height: 2px;
  background: rgba(60, 40, 20, 0.14);
}

.lp-note i:nth-of-type(1) { top: 70px; }
.lp-note i:nth-of-type(2) { top: 110px; }
.lp-note i:nth-of-type(3) { top: 150px; }
.lp-note i:nth-of-type(4) { top: 190px; }

.lp-note em {
  left: 24px;
  top: 32px;
  color: #6a635a;
  font: italic 600 21px/40px var(--font);
  white-space: pre-line;
}

.lp-rect--cap {
  border-style: dotted;
}

.lp-flash {
  inset: 0;
  background: #fff;
  opacity: 0;
}

.lp-thumb {
  width: 440px;
  height: 280px;
  border: 5px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

/* 작업 패널 */
.lp-wp__card {
  left: 16px;
  top: 34px;
  width: 143px;
  height: 138px;
  border-radius: 26px;
  background: rgba(30, 18, 10, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lp-wp__card > * {
  position: absolute;
}

.lp-wp__ico {
  left: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.lp-wp__ico svg {
  width: 16px;
  height: 16px;
}

.lp-wp__step {
  left: 14px;
  top: 80px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.lp-wp__title {
  left: 14px;
  top: 98px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.lp-wp__title em,
.lp-wp__cap em {
  margin-left: 5px;
  font-style: normal;
  opacity: 0.7;
}

.lp-wp__btn {
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.lp-wp__btn svg {
  width: 22px;
  height: 22px;
}

.lp-wp__btn.is-on {
  background: #f6f4f2;
  color: #1c1410;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.lp-wp__line {
  left: 16px;
  right: 16px;
  top: 188px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.lp-wp__cap {
  left: 16px;
  top: 205px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 124px;
  height: 54px;
  padding-left: 4px;
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.lp-wp__cap .lp-wp__btn {
  flex: none;
  width: 46px;
  height: 46px;
}

/* 작업 패널 옆 트레이 */
.lp-tile {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 22px;
  background: rgba(30, 16, 8, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lp-tray__nav {
  left: 16px;
  right: 16px;
  top: 222px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.lp-tray__nav i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-style: normal;
  color: #fff;
}

.lp-zone--tile {
  width: 56px;
  height: 56px;
  font-size: 38px;
}

.lp-zone--wall {
  left: 0;
  top: 0;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  font-size: 48px;
}

.lp-tile .lp-arw {
  margin: 0;
  transform: rotate(-35deg);
}

.lp-rul {
  width: 66px;
  height: 16px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, #1c1c1e 0 1.5px, transparent 1.5px 6.5px) 4px 0 / calc(100% - 8px) 6px no-repeat,
    #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  transform: rotate(-6deg);
}

.lp-scl {
  width: 56px;
  height: 34px;
  border-radius: 2px;
  background:
    linear-gradient(#1c1c1e, #1c1c1e) 6px 20px / calc(100% - 12px) 2px no-repeat,
    repeating-linear-gradient(90deg, #1c1c1e 0 1.5px, transparent 1.5px 8px) 6px 9px / calc(100% - 12px) 6px no-repeat,
    #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  transform: rotate(4deg);
}

.lp-zero {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 54px;
  padding-bottom: 10px;
  background: #fff;
  color: #111;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  transform: rotate(-4deg);
}

.lp-zero::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 7px;
  height: 5px;
  background: repeating-linear-gradient(90deg, #111 0 3px, #fff 3px 6px);
}

/* 스티커 옮기기와 각도 조절 */
.lp-tip--mid {
  left: 0;
  right: 0;
  top: 482px;
  width: max-content;
  margin-inline: auto;
}

.lp-glow {
  left: 0;
  top: 0;
  width: 130px;
  height: 130px;
  margin: -65px 0 0 -65px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 222, 0.7), rgba(255, 240, 220, 0) 70%);
}

.lp-ringline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
}

.lp-wedge {
  fill: rgba(64, 200, 190, 0.55);
}

.lp-knob {
  fill: #fff;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.45));
}

.lp-sw2 {
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.lp-sw2.is-on {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.lp-x {
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
}

.lp-x svg {
  width: 20px;
  height: 20px;
}

/* 그룹 영역과 구역 지정 */
.lp-rect--dot {
  border: 3px dotted rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.lp-dotk {
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.lp-veil {
  left: 0;
  top: 0;
  width: 960px;
  height: 540px;
  background: rgba(24, 14, 8, 0.14);
  backdrop-filter: blur(14px) brightness(0.82);
  -webkit-backdrop-filter: blur(14px) brightness(0.82);
}

.lp-dlg__no {
  left: 24px;
  top: 208px;
  font-size: 14px;
  line-height: 40px;
  color: rgba(255, 255, 255, 0.8);
}

/* 질문으로 고르는 혈흔 유형 */
.lp-crumb {
  right: 28px;
  top: 30px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.lp-hr {
  left: 28px;
  right: 28px;
  top: 66px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.lp-qpage {
  left: 0;
  right: 0;
  top: 84px;
  height: 224px;
}

.lp-qpage > *,
.lp-opt > * {
  position: absolute;
}

.lp-q__n {
  left: 28px;
  top: 0;
  font-size: 16px;
  font-weight: 600;
}

.lp-q__t {
  left: 28px;
  top: 24px;
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
}

.lp-opt {
  top: 70px;
  width: 254px;
  height: 122px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.lp-opt svg {
  left: 20px;
  top: 18px;
  width: 22px;
  height: 22px;
}

.lp-opt b {
  left: 20px;
  top: 54px;
  font-size: 16px;
}

.lp-opt span {
  left: 20px;
  right: 16px;
  top: 80px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.lp-q__foot {
  left: 0;
  right: 0;
  top: 330px;
  font-size: 13.5px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.lp-tag {
  left: 0;
  top: 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(38, 28, 22, 0.86);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.lp-mini {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.lp-mini svg {
  width: 17px;
  height: 17px;
}


/* ==========================================================
   2차 디자인: 밤의 감식 현장 + visionOS 유리
   ========================================================== */

:root {
  --glass-top: rgba(104, 92, 84, 0.42);
  --glass-bottom: rgba(38, 31, 27, 0.5);
  --platter: rgba(255, 255, 255, 0.11);
  --recessed: rgba(0, 0, 0, 0.28);
  --rim: rgba(255, 255, 255, 0.14);
}

.glass {
  backdrop-filter: blur(42px) saturate(165%) brightness(1.1);
  -webkit-backdrop-filter: blur(42px) saturate(165%) brightness(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 44px 90px -30px rgba(0, 0, 0, 0.75);
}

/* ---------- 배경: 손전등이 비추는 사건 현장 ---------- */

.environment--live {
  --lx: 0px;
  --ly: -8vh;
  overflow: hidden;
  filter: contrast(1.14) saturate(0.86);
}

.environment--live::after {
  background: radial-gradient(90% 70% at 50% 42%, transparent 30%, rgba(0, 0, 0, 0.6));
}

.environment--live i {
  position: absolute;
  display: block;
  pointer-events: none;
}

/* 현장 전체는 어둡고, 손전등이 닿는 곳만 드러난다 */
.env-dark {
  left: 50%;
  top: 50%;
  width: 320vmax;
  height: 320vmax;
  margin: -160vmax 0 0 -160vmax;
  background: radial-gradient(circle, rgba(6, 4, 3, 0) 0, rgba(6, 4, 3, 0.04) 6%, rgba(6, 4, 3, 0.5) 15%, rgba(6, 4, 3, 0.72) 34%);
  transform: translate3d(var(--lx), var(--ly), 0);
}

.env-beam {
  left: 50%;
  top: 50%;
  width: 70vmax;
  height: 70vmax;
  margin: -35vmax 0 0 -35vmax;
  background: radial-gradient(circle, rgba(255, 246, 226, 0.26), rgba(255, 240, 210, 0.08) 38%, transparent 62%);
  mix-blend-mode: screen;
  transform: translate3d(var(--lx), var(--ly), 0);
}

/* 창밖 순찰차 경광등이 번갈아 스민다 */
.env-siren {
  inset: 0;
}

.env-siren::before,
.env-siren::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
}

.env-siren::before {
  background: radial-gradient(60% 80% at 0% 30%, rgba(255, 40, 40, 0.3), transparent 70%);
  animation: siren 2.8s ease-in-out infinite;
}

.env-siren::after {
  background: radial-gradient(60% 80% at 100% 26%, rgba(50, 90, 255, 0.32), transparent 70%);
  animation: siren 2.8s ease-in-out -1.4s infinite;
}

@keyframes siren {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 1; }
}

/* 필름 입자 */
.env-grain {
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .env-siren::before,
  .env-siren::after {
    animation: none;
    opacity: 0.3;
  }
}

/* ---------- 히어로 ---------- */

#top {
  min-height: calc(100svh - clamp(140px, 22vw, 230px));
  align-content: center;
}

.hero {
  max-width: 900px;
  padding-block: clamp(44px, 7vw, 76px);
}

.display em {
  color: var(--marker);
}

.hero__hint {
  display: none;
  margin: 26px 0 0;
  font-size: 0.8125rem;
  color: var(--label-3);
}

@media (hover: hover) and (pointer: fine) {
  .hero__hint {
    display: block;
  }
}

/* ---------- 증거 표지 모양의 번호 ---------- */

.chip {
  padding-left: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.chip b {
  min-width: 28px;
  height: 28px;
  border-radius: 4px;
  transform: rotate(-4deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  font-size: 0.8rem;
}

.chip--plain {
  padding-left: 14px;
}

/* ---------- 훈련 단계: 움직이는 화면을 크게, 설명은 아래에 ---------- */

.feature {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 34px);
  padding: var(--pad-window);
}

.feature > .loop,
.feature > .shot {
  order: -1;
}

.feature--flip .feature__text {
  order: 0;
}

.feature__text {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding: 0 clamp(4px, 1.6vw, 22px) 10px;
}

.feature__text > * {
  grid-column: 1;
}

.feature__text > .chip {
  justify-self: start;
}

.feature__text > .points {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  margin-top: 0;
  padding: 20px 22px;
  border-radius: var(--r-inner);
  background: var(--recessed);
}

.feature__text > .caption {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .feature__text {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature__text > .points {
    grid-column: 1;
    grid-row: auto;
    margin-top: 20px;
  }
}

.shot {
  background: none;
  box-shadow: none;
  overflow: visible;
}

.vision__loop {
  border-radius: calc(var(--r-inner) - 10px);
  aspect-ratio: 4 / 3;
}

.space {
  background:
    radial-gradient(90% 70% at 50% 30%, rgba(255, 244, 226, 0.1), transparent 70%),
    #120e0c;
}
