/* hold.html: one screen. The opening films play one after another without end; a tap, a scroll or
   a key brings up one quiet line that the rest is being reworked. Nothing else loads. */
@font-face { font-family: Peek; src: url("assets/Peek-ExtraBold.woff2") format("woff2"); font-style: normal; font-weight: 700 900; font-display: swap; }
:root { --ground: #09162b; --deep: #060e1d; --text: #f6f7fa; --muted: #b9c8dc; --ice: #dbe7ff; --focus: #b7ddff; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { block-size: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; background: var(--ground); color: var(--text); }
body { font-family: Peek, "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.sr { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.stage { position: fixed; inset: 0; overflow: hidden; background: var(--ground); touch-action: pinch-zoom; cursor: default; user-select: none; -webkit-user-select: none; }
.first, .first img, .film { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.first img, .film { object-fit: cover; object-position: 50% 50%; }
.first img { display: block; }
/* A film is invisible until it is really playing, then takes over from whatever is under it. */
.film { opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.film.is-on { opacity: 1; }
.film.is-top { z-index: 1; }
.shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgb(6 14 29 / 42%), rgb(6 14 29 / 0) 22%, rgb(6 14 29 / 0) 68%, rgb(6 14 29 / 58%)); pointer-events: none; }
.brand { position: absolute; z-index: 3; inset: max(22px, env(safe-area-inset-top)) auto auto max(clamp(20px, 4vw, 58px), env(safe-area-inset-left)); margin: 0; font-size: clamp(1.38rem, 2vw, 1.8rem); font-weight: 800; line-height: 1; letter-spacing: -.072em; text-shadow: 0 0 1px var(--deep), 0 1px 10px rgb(6 14 29 / 55%); }
.caption { position: absolute; z-index: 3; inset: auto 50% calc(max(30px, env(safe-area-inset-bottom)) + 14px) auto; max-inline-size: min(88vw, 34em); margin: 0; padding: 8px 14px 9px; border-radius: 10px; background: rgb(6 15 30 / 78%); font-size: clamp(1.06rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.45; letter-spacing: -.02em; text-align: center; white-space: pre-line; word-break: keep-all; text-wrap: balance; transform: translateX(50%); transition: opacity .18s ease; }
.caption[hidden] { display: block; opacity: 0; transition-duration: .1s; }   /* gone before the next line arrives (0.12 s later) */
.caption:empty { visibility: hidden; }
.stage.is-noticed .caption { opacity: 0; }

.notice { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; background: rgb(6 14 29 / 66%); opacity: 0; visibility: hidden; transition: opacity .32s ease, visibility 0s linear .32s; }
.notice.is-shown { opacity: 1; visibility: visible; transition: opacity .32s ease, visibility 0s; }
.notice-words { display: grid; justify-items: center; gap: 0; text-align: center; transform: translateY(10px); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.notice.is-shown .notice-words { transform: none; }
.notice-dot { inline-size: 12px; block-size: 12px; border: 2px solid var(--ice); border-radius: 50%; box-shadow: 0 0 14px rgb(150 190 255 / 85%); }
.notice-title { margin: 22px 0 0; font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.07em; }
.notice-line { margin: 14px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 600; letter-spacing: -.02em; }
.notice-legal { position: absolute; inset: auto 0 max(22px, env(safe-area-inset-bottom)); display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; padding-inline: 20px; font-size: .84rem; }
.notice-legal a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--muted); text-decoration: none; }
.notice-legal a:hover { color: var(--text); text-decoration: underline; }
.notice-legal a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* ── the wait ──
   The name, and a hair of light that fills as the first film really arrives. A small ring rides its head:
   the same ring the light of the page falls into. When the film is ready the wait dissolves into it. */
.loader { --p: 0; position: absolute; inset: 0; z-index: 5; display: grid; align-content: center; justify-items: center; background: radial-gradient(60% 46% at 50% 46%, #10244a, var(--ground) 72%), var(--ground); transition: opacity .8s ease, visibility 0s linear .8s; }
.loader-name { margin: 0; font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.072em; opacity: 0; transform: translateY(6px); transition: opacity .6s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.loader.is-set .loader-name { opacity: 1; transform: none; }
.loader-line { position: relative; inline-size: clamp(210px, 22vw, 340px); block-size: 2px; margin-block-start: clamp(26px, 4vw, 38px); border-radius: 2px; background: rgb(185 203 255 / 14%); }
.loader-fill { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, #886df5, #72d7ff 55%, #dbe7ff); transform: scaleX(var(--p)); transform-origin: 0 50%; }
/* A glint runs along the part that is filled, so the line is alive even while the number waits. */
.loader-fill::after { content: ""; position: absolute; inset: -1px 0; background: linear-gradient(90deg, transparent 0 35%, rgb(255 255 255 / 85%) 50%, transparent 65% 100%); background-size: 240% 100%; animation: glint 1.6s linear infinite; }
.loader-head { position: absolute; inset: 50% auto auto calc(var(--p) * 100%); inline-size: 11px; block-size: 11px; margin: -5.5px 0 0 -5.5px; border: 1.5px solid var(--ice); border-radius: 50%; background: var(--ground); box-shadow: 0 0 12px rgb(150 190 255 / 90%), 0 0 2px rgb(255 255 255 / 80%) inset; }
.loader-words { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; inline-size: clamp(210px, 22vw, 340px); margin: 14px 0 0; color: var(--muted); font-size: clamp(.86rem, 1vw, 1rem); font-weight: 600; letter-spacing: -.01em; }
.loader-count { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.loader-count::after { content: "%"; margin-inline-start: 1px; color: var(--muted); font-weight: 600; }
@keyframes glint { from { background-position: 120% 0; } to { background-position: -120% 0; } }
/* Ready: the wait lets go, and the film eases in from a touch closer. */
.stage.is-ready .loader { opacity: 0; visibility: hidden; }
.stage:not(.is-ready) :is(.brand, .caption) { opacity: 0; }
.brand { transition: opacity .8s ease .3s; }
.film { transform: scale(1.035); transition: opacity .9s ease, transform 2.4s cubic-bezier(.2, .7, .2, 1); }
.stage.is-ready .film { transform: none; }

/* Reduced motion: the first frame stays, and the line is simply there. */
@media (prefers-reduced-motion: reduce) {
  .film, .loader { display: none; }
  .stage .brand { opacity: 1 !important; }
  .caption { display: none !important; }
  .notice { opacity: 1; visibility: visible; transition: none; }
  .notice-words { transform: none; transition: none; }
}
@media (forced-colors: active) { .notice { background: Canvas; } }
@media print { .film, .shade, .caption, .loader { display: none; } .notice { position: static; opacity: 1; visibility: visible; background: none; color: #000; } }
