/* ==========================================================================
   MIRACLE AD AI — Core Styles
   테마: 흑백 + 빨간 신호 — 검정 바탕 · 흰색 강조 · 빨강은 위협과 제목 속 강조 단어에만
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #000000;
  --bg-2: #080808;
  --surface: #101010;
  --surface-2: #161616;
  --surface-3: #1e1e1e;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .22);

  --text: #ffffff;
  --text-2: #9b9b9b;
  --text-3: #5e5e5e;

  /* 흑백 + 빨간 신호: 흰색 = 우리(강조 · 버튼), 빨강 = 위협 · 제목 속 강조 단어 */
  --accent: #ffffff;
  --accent-rgb: 255, 255, 255;
  --accent-ink: #000000;
  --blue: #b9b9b9;
  --blue-rgb: 185, 185, 185;
  --cyan: #d0d0d0;
  --danger: #ff3b2f;
  --danger-rgb: 255, 59, 47;
  --warn: #ff7a70;

  --paper: #f2f2f0;
  --ink: #000000;
  --ink-2: #555555;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --font-display: 'Space Grotesk', var(--font);
  --font-mono: 'JetBrains Mono', 'Pretendard Variable', Pretendard, ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1360px;
  --sec: clamp(96px, 12vw, 184px);
  --r: 16px;
  --r-lg: clamp(20px, 2vw, 28px);
  --r-xl: clamp(24px, 3vw, 44px);

  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
/* scrollbar-gutter: 인트로 · 페이지 전환 · 모달이 스크롤을 잠가도 스크롤바 자리를 남겨 둠 → 화면이 옆으로 밀리지 않음 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; background: var(--bg); scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
/* 페이지 전환 중에는 스크롤바를 숨기지 않음 — 나가는 화면 → 새 화면까지 스크롤바가 사라졌다 나타나며 깜박이지 않도록 */
html.is-leaving.lenis.lenis-stopped, html.is-pt.lenis.lenis-stopped { overflow: visible; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -.011em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
/* 드래그(글자 선택 · 이미지 끌기) 막기 — 입력칸은 예외. 우클릭은 app.js 에서 막음 */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
img, a { -webkit-user-drag: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 999; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.show-sm { display: none; }
@media (max-width: 640px) { .show-sm { display: initial; } }

/* ---------- Layout ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.container--wide { width: min(100% - var(--gutter) * 2, 1560px); margin-inline: auto; }
main { position: relative; z-index: 1; display: block; }
.sec { position: relative; padding-block: var(--sec); }
.sec--tight { padding-block: calc(var(--sec) * .6); }
.sec + .sec:not(.paper):not(.sec--line) { padding-top: 0; }
.sec--line { border-top: 1px solid var(--line); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.4; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow b { color: var(--accent); font-weight: 500; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14); }
.dot--live { animation: livePulse 1.8s ease-in-out infinite; }
.dot--danger { background: var(--danger); box-shadow: 0 0 0 4px rgba(var(--danger-rgb), .16); }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); }
  60% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); }
}

.h1 { font-size: clamp(40px, 6vw, 96px); line-height: 1.08; letter-spacing: -.045em; font-weight: 700; }
.h2 { font-size: clamp(32px, 4.3vw, 66px); line-height: 1.17; letter-spacing: -.04em; font-weight: 700; }
.h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.35; letter-spacing: -.03em; font-weight: 700; }
.h1 em, .h2 em, .h3 em { color: var(--danger); }
.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.8; color: var(--text-2); max-width: 38em; }
.lead + .lead { margin-top: 1em; }
.lead b, .lead strong { color: var(--text); font-weight: 600; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.7; color: var(--text-3); }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* split-text helpers (JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w__i { display: inline-block; will-change: transform; }
html.js:not(.reduced) [data-split] { visibility: hidden; }
html.js:not(.reduced) [data-reveal],
html.js:not(.reduced) [data-hero-fade],
html.js:not(.reduced) .hero__canvas { opacity: 0; }
html.js:not(.reduced) [data-stagger] > * { opacity: 0; }
.sw { transition: none; }

/* ---------- Section heads ---------- */
.sec-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 96px); }
.sec-head > * { min-width: 0; }
.sec-head--split { grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr); align-items: end; column-gap: clamp(32px, 5vw, 96px); }
.sec-head--center { text-align: center; justify-items: center; }
.sec-head--center .lead { margin-inline: auto; }
@media (max-width: 900px) { .sec-head--split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  --h: 58px;
  --btn-fill: #fff;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h); padding: 0 7px 0 26px;
  border-radius: 999px; overflow: hidden;
  font-size: 16px; font-weight: 650; letter-spacing: -.015em; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn:not(:has(.btn__ico)) { padding-right: 26px; }
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--btn-fill);
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn em { font-weight: 500; opacity: .72; }
.btn__txt { position: relative; }
.btn__ico {
  flex: none; display: grid; place-items: center;
  width: calc(var(--h) - 14px); height: calc(var(--h) - 14px); border-radius: 50%;
  transition: transform .6s var(--ease), background .5s var(--ease), color .5s var(--ease);
}
.btn__ico .ic { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .btn__ico .ic { transform: rotate(45deg); }
.btn:hover .btn__ico .lucide-arrow-right { transform: translateX(3px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary .btn__ico { background: var(--accent-ink); color: var(--accent); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); --btn-fill: var(--text); }
.btn--ghost:hover { color: var(--bg); }
.btn--ghost .btn__ico { background: rgba(255, 255, 255, .08); }
.btn--ghost:hover .btn__ico { background: var(--bg); color: var(--text); }
.btn--dark { background: var(--ink); color: #fff; --btn-fill: var(--accent); }
.btn--dark:hover { color: var(--accent-ink); }
.btn--dark .btn__ico { background: var(--accent); color: var(--accent-ink); }
.btn--dark:hover .btn__ico { background: var(--accent-ink); color: var(--accent); }

.btn--sm { --h: 46px; font-size: 15px; gap: 10px; padding-left: 20px; padding-right: 5px; }
.btn--sm .btn__ico .ic { width: 16px; height: 16px; }
.btn--lg { --h: 62px; font-size: 17px; }
.btn--xl { --h: 76px; font-size: clamp(17px, 1.4vw, 20px); padding-left: 34px; padding-right: 9px; gap: 22px; }
.btn--xl:not(:has(.btn__ico)) { padding-right: 34px; }
.btn--xl .btn__ico .ic { width: 22px; height: 22px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .ic { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover .ic { transform: translate(3px, -3px); }

.ic { width: 1.15em; height: 1.15em; stroke-width: 1.75; flex: none; }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.chip .ic { width: 15px; height: 15px; color: var(--accent); }
.chip--accent { background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .3); color: var(--accent); }
.chip--danger { background: rgba(var(--danger-rgb), .1); border-color: rgba(var(--danger-rgb), .3); color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Cards ---------- */
.card {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 40px);
}
[data-spot]::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(var(--accent-rgb), .09), transparent 60%);
  opacity: 0; transition: opacity .5s;
}
[data-spot]:hover::after { opacity: 1; }
.glass {
  background: linear-gradient(180deg, rgba(22, 22, 22, .72), rgba(10, 10, 10, .62));
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(var(--accent-rgb), .1); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .22);
}
.card__icon .ic { width: 24px; height: 24px; }
.card__num { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); letter-spacing: .04em; }
.card h3 { margin: 22px 0 12px; }
.card p { color: var(--text-2); font-size: 16px; line-height: 1.75; }

/* ---------- Paper : 한 단 밝은 패널 섹션 (흰 바탕은 검은 화면에서 눈이 부셔 어두운 회색으로) ---------- */
.paper {
  position: relative;
  background: radial-gradient(90% 70% at 0% 0%, rgba(255, 255, 255, .06), transparent 60%), linear-gradient(180deg, #1c1c1c 0%, #131313 100%);
  color: var(--text); border: 1px solid var(--line);
  border-radius: var(--r-xl); margin-inline: clamp(8px, 1.2vw, 20px);
  padding-block: var(--sec);
}
.scrub em { color: var(--danger); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding-block: clamp(16px, 2vw, 28px); user-select: none; }
.marquee__inner { display: inline-flex; align-items: center; will-change: transform; }
.marquee__inner > * { margin-right: clamp(24px, 3vw, 48px); }
.marquee span { font-size: clamp(28px, 4.2vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
.marquee i { font-style: normal; color: var(--accent); font-size: clamp(18px, 2vw, 30px); }
.marquee span:nth-of-type(even) {
  color: transparent;
  background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, .12));
  -webkit-background-clip: text; background-clip: text;
}

/* ==========================================================================
   Overlays — intro / page transition / grain / cursor
   ========================================================================== */

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 200; display: none; color: var(--text); }
html.is-intro .intro { display: block; }
html.is-intro, html.is-intro body { overflow: hidden; }
.intro__cols { position: absolute; inset: 0; display: flex; }
.intro__cols span { flex: 1; height: 100%; background: var(--bg); margin-right: -1px; }
.intro__stage { position: absolute; inset: 0; padding: clamp(20px, 3vw, 40px) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; }
.intro__top, .intro__bottom { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: 12px; color: var(--text-3); }
.intro__center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: clamp(20px, 3vw, 36px); padding: var(--gutter); }
.intro__mark { width: clamp(56px, 6vw, 84px); color: var(--text); overflow: visible; }
.intro__mark-path { stroke-dasharray: 130; stroke-dashoffset: 130; }
.intro__mark-dot { fill: var(--accent); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.intro__words { position: relative; height: 1.6em; width: 16em; overflow: hidden; text-align: center; font-size: clamp(15px, 1.3vw, 18px); color: var(--text-2); }
.intro__words span { position: absolute; inset: 0; transform: translateY(110%); }
.intro__brand { display: flex; overflow: hidden; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 10vw, 168px); line-height: .92; letter-spacing: -.055em; padding-bottom: .04em; }
.intro__brand span { display: inline-block; transform: translateY(110%); }
.intro__brand .sp { width: .26em; }
.intro__brand .ai { color: var(--accent); }
.intro__count { font-size: clamp(44px, 7vw, 112px); line-height: .9; color: var(--text); font-weight: 500; letter-spacing: -.04em; }
.intro__count small { font-size: .32em; color: var(--text-3); margin-left: 4px; }
.intro__hint { max-width: 50%; }
.intro__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.intro__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- Page transition ---------- */
.pt { position: fixed; inset: 0; z-index: 190; pointer-events: none; visibility: hidden; }
html.is-pt .pt, .pt.is-active { visibility: visible; pointer-events: auto; }
.pt__layer { position: absolute; inset: 0; display: flex; }
.pt__layer span { flex: 1; height: 100%; margin-right: -1px; transform: translateY(101%); }
.pt__layer--accent span { background: var(--accent); }
.pt__layer--dark span { background: var(--bg-2); }
html.is-pt .pt__layer span { transform: none; }
.pt__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; opacity: 0; text-align: center; }
/* 새 페이지에서는 라벨 없이 어두운 막만 — 라벨은 떠나는 페이지에서 보여 주고 지움 (폰트가 뒤늦게 바뀌며 글자가 튀는 것 방지) */
html.is-pt .pt__label { opacity: 0; }
.pt__idx { font-size: 14px; color: var(--accent); }
.pt__name { display: block; overflow: hidden; font-size: clamp(44px, 8vw, 128px); font-weight: 700; letter-spacing: -.05em; line-height: 1.1; }
.pt__name > span { display: inline-block; }
.pt__en { font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: .14em; }

/* ---------- Grain / grid / progress ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 150; pointer-events: none; opacity: .055;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(4%, -8%); }
  60% { transform: translate(-8%, -3%); }
  80% { transform: translate(7%, 6%); }
}
.gridlines { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: flex; justify-content: space-between; width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.gridlines i { width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .04) 20%, rgba(255, 255, 255, .04) 80%, transparent); }
@media (max-width: 760px) { .gridlines i:nth-child(2), .gridlines i:nth-child(4) { display: none; } }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- Cursor : 24시 다이얼 ---------- */
/* 기본 커서 숨김 — 글 입력칸과 열린 모달(최상위 층)에서는 기본 커서 */
html.has-cursor:not(.cursor-native), html.has-cursor:not(.cursor-native) * { cursor: none !important; }
html.has-cursor:not(.cursor-native) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]), textarea, [contenteditable="true"]) { cursor: text !important; }
html.has-cursor:not(.cursor-native) select { cursor: default !important; }

.cursor {
  --cur: rgba(255, 255, 255, .75); --cur-dot: var(--accent); --cur-rgb: var(--accent-rgb); --s: 1; --p: 1;
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none;
  mix-blend-mode: difference;   /* 흰 커서가 흰 버튼 · 밝은 섹션 위에서는 검게 반전됨 */
  transition: opacity .3s;
}
html.has-cursor .cursor { display: block; }
.cursor.is-off, .cursor.is-hidden, html.cursor-native .cursor { opacity: 0; }
.cursor > * { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }

/* 가운데 점 */
.cursor__dot::before {
  content: ''; position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--cur-dot);   /* 번짐 없음: 반전 모드에서는 얼룩처럼 보임 */
  transition: transform .3s var(--ease-out), opacity .25s, background-color .4s;
}
.cursor.is-label .cursor__dot::before { opacity: 0; }
.cursor.is-press .cursor__dot::before { transform: scale(1.8); }

/* 다이얼: 24칸 눈금 (0·6·12·18시는 길게) + 바늘. scale 대신 크기를 바꿔 선 굵기는 그대로 */
.cursor__dial svg {
  --d: calc(40px * var(--s) * var(--p));
  position: absolute; left: calc(var(--d) / -2); top: calc(var(--d) / -2); width: var(--d); height: var(--d); max-width: none; overflow: visible;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), left .45s var(--ease-out), top .45s var(--ease-out);
}
.cursor__dial line { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.cursor__dial .tk { stroke: var(--cur); stroke-width: 1; transition: stroke .3s, opacity .3s; }
.cursor__dial .tk--major { stroke-width: 1.4; }
.cursor__hand { stroke: var(--cur-dot); stroke-width: 1.6; transition: opacity .25s, stroke .3s; }
.cursor.is-hover { --cur: var(--accent); --s: 1.45; }
.cursor.is-label { --cur: rgba(var(--accent-rgb), .7); --s: 2.5; }
.cursor.is-label .cursor__hand { opacity: 0; }
.cursor.is-press { --p: .85; }

/* 라벨 */
.cursor__label {
  position: absolute; left: 0; top: 0; padding: 7px 11px 6px; border-radius: 999px; white-space: nowrap;
  background: var(--accent); color: var(--accent-ink); font: 700 11px/1 var(--font-mono); letter-spacing: .1em;
  transform: translate(-50%, -50%) scale(.4); opacity: 0;
  transition: transform .45s var(--ease-out), opacity .25s;
}
.cursor.is-label .cursor__label { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* 메인 스토리 경고 장면 */
html[data-story-mood="alert"] .cursor.is-story { --cur: rgba(255, 179, 168, .85); --cur-dot: var(--danger); --cur-rgb: var(--danger-rgb); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px clamp(10px, 2vw, 28px); transition: transform .6s var(--ease); pointer-events: none; }
.hd.is-hidden { transform: translateY(-120%); }
.hd__bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1520px; height: 66px; margin-inline: auto; padding: 0 9px 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .5s, border-color .5s, box-shadow .5s;
}
.hd.is-scrolled .hd__bar, body.menu-open .hd__bar {
  background: rgba(10, 10, 10, .72); border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.hd__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.logo-mark { width: 30px; height: 30px; }
.logo-type { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.logo-type b { color: var(--accent); font-weight: 700; }
.hd__logo:hover .logo-mark path { stroke-dasharray: 130; animation: markDraw 1.1s var(--ease) both; }
@keyframes markDraw { from { stroke-dashoffset: 130; } to { stroke-dashoffset: 0; } }

.hd__nav ul { display: flex; align-items: center; gap: 2px; }
.hd__nav a {
  position: relative; display: block; overflow: hidden;
  padding: 9px 15px; border-radius: 999px;
  font-size: 15px; font-weight: 550; line-height: 1.5; color: var(--text-2);
  transition: color .35s, background-color .35s;
}
.hd__link-txt { position: relative; display: inline-block; transition: transform .5s var(--ease); }
.hd__link-txt::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--text); padding-top: 9px; }
.hd__nav a:hover .hd__link-txt { transform: translateY(calc(-100% - 9px)); }
.hd__nav a:hover { color: var(--text); }
.hd__nav a.is-active { color: var(--text); background: rgba(255, 255, 255, .07); }
.hd__nav a.is-active::before { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.hd__right { display: flex; align-items: center; gap: 8px; flex: none; }
.hd__cta em { font-weight: 500; opacity: .7; }

.hd__burger { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.hd__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.hd__burger span:first-child { top: 19px; }
.hd__burger span:last-child { top: 27px; }
body.menu-open .hd__burger span:first-child { top: 23px; transform: rotate(45deg); }
body.menu-open .hd__burger span:last-child { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1200px) {
  .hd__nav { display: none; }
  .hd__burger { display: block; }
}
@media (max-width: 480px) {
  .logo-type { font-size: 15px; }
  .hd__bar { height: 60px; padding-left: 16px; }
  .hd__cta { --h: 42px; padding-left: 14px; font-size: 14px; }
  .hd__cta .btn__ico { display: none; }
  .hd__cta.btn { padding-right: 14px; }
  .hd__burger { width: 42px; height: 42px; }
  .hd__burger span { left: 12px; right: 12px; }
  .hd__burger span:first-child { top: 16px; }
  .hd__burger span:last-child { top: 24px; }
  body.menu-open .hd__burger span:first-child, body.menu-open .hd__burger span:last-child { top: 20px; }
}

/* mobile full menu (CSS 전환 — JS 라이브러리 없이도 동작) */
.mnav { position: fixed; inset: 0; z-index: 95; visibility: hidden; transition: visibility 0s .9s; }
.mnav.is-open { visibility: visible; transition: none; }
.mnav__bg { position: absolute; inset: 0; background: var(--bg-2); clip-path: circle(0% at calc(100% - 52px) 46px); transition: clip-path .9s var(--ease); }
.mnav.is-open .mnav__bg { clip-path: circle(150% at calc(100% - 52px) 46px); }
.mnav__inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 120px var(--gutter) 36px; overflow-y: auto; }
.mnav__list li { border-bottom: 1px solid var(--line); overflow: hidden; }
.mnav__list a { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 8px; padding: 14px 0; transform: translateY(105%); transition: transform .5s var(--ease); }
.mnav.is-open .mnav__list a { transform: none; transition: transform 1s var(--ease-out) calc(.3s + var(--i, 0) * .06s); }
.mnav__foot { opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s; }
.mnav.is-open .mnav__foot { opacity: 1; transform: none; transition: opacity .8s .7s, transform .8s var(--ease-out) .7s; }
.mnav__idx { font-size: 12px; color: var(--text-3); }
.mnav__txt { font-size: clamp(30px, 7vw, 54px); font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
.mnav__en { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.mnav__list a.is-active .mnav__txt { color: var(--accent); }
.mnav__foot { display: grid; gap: 16px; padding-top: 32px; }
.mnav__foot .btn { justify-self: start; }
.mnav__foot p { font-size: 13px; color: var(--text-3); }

/* mobile sticky CTA */
.m-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
  display: none; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6);
  transform: translateY(160%); transition: transform .6s var(--ease);
}
.m-cta.is-show { transform: none; }
@media (max-width: 760px) { .m-cta { display: flex; } }

/* ==========================================================================
   Hero (공통)
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 clamp(40px, 5vw, 80px);
}
.hero__canvas { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; z-index: -2; pointer-events: none;
  width: 70vw; height: 70vw; right: -18vw; top: -32vw;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .16) 0%, transparent 62%);
}
.hero__glow--blue { background: radial-gradient(circle, rgba(var(--blue-rgb), .2) 0%, transparent 62%); }
.hero__glow--danger { background: radial-gradient(circle, rgba(var(--danger-rgb), .16) 0%, transparent 62%); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, 0) 26%),
    linear-gradient(to top, var(--bg) 0%, rgba(0, 0, 0, .55) 32%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(to right, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 55%);
}
.hero__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 40px); }
.hero__status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.hero__title {
  font-size: clamp(44px, 8.2vw, 144px); line-height: 1.06; letter-spacing: -.052em; font-weight: 750;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.hero__title em { color: var(--danger); }
.hero__title .o { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); }
.hero__title--md { font-size: clamp(42px, 6.6vw, 112px); }
.hero__bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 4vw, 80px); align-items: end; }
.hero__lead { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.75; color: var(--text-2); max-width: 32em; }
.hero__lead b { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-3); }
.hero__scroll i { position: relative; display: block; width: 1px; height: 36px; background: var(--line-2); overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: scrollLine 1.8s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }
@media (max-width: 960px) {
  .hero__bottom { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 120px; }
}

/* hero widget */
.widget { border-radius: 24px; padding: 18px; font-size: 14px; }
.widget__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12px; }
.widget__title { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 14px; font-weight: 600; font-family: var(--font); }
.widget__main { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 16px 4px; }
.widget__kw small { display: block; font-size: 12px; color: var(--text-3); }
.widget__kw b { font-size: 19px; letter-spacing: -.03em; }
.rankpill { min-width: 70px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); text-align: center; line-height: 1.2; }
.rankpill small { display: block; font-size: 11px; color: var(--text-3); }
.rankpill b { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.rankpill--target { background: rgba(var(--accent-rgb), .1); border-color: rgba(var(--accent-rgb), .3); }
.rankpill--target b { color: var(--accent); }
.rankpill--danger { background: rgba(var(--danger-rgb), .1); border-color: rgba(var(--danger-rgb), .3); }
.rankpill--danger b { color: var(--danger); }

.ticker { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0; }
.ticker li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .04); white-space: nowrap; overflow: hidden; }
.ticker li:nth-child(n+5) { display: none; }
.ticker time { color: var(--text-3); flex: none; }
.ticker span { overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.t-up { color: var(--accent) !important; }
.t-down { color: var(--blue) !important; }
.t-hold { color: var(--warn) !important; }
.t-bad { color: var(--danger) !important; }
.t-ok { color: var(--text) !important; }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats { position: relative; padding-block: clamp(64px, 8vw, 120px); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.stats__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 44px); }
.stats__date { font-size: 12px; color: var(--text-3); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats--4 .stats__grid { grid-template-columns: repeat(4, 1fr); }
.stat {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 3vw, 44px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .5s;
}
.stat::before { content: ''; position: absolute; left: -1px; top: -1px; width: 0; height: 2px; background: var(--accent); transition: width .8s var(--ease); }
.stat:hover { background: rgba(255, 255, 255, .022); }
.stat:hover::before { width: calc(100% + 1px); }
.stat__label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text); }
.stat__label::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 1px; }
.stat__value { display: flex; align-items: baseline; gap: 6px; }
.stat__value strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4vw, 64px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: clamp(16px, 1.4vw, 20px); color: var(--text-2); font-weight: 500; }
.stat__note { font-size: 13px; color: var(--text-3); line-height: 1.5; }
@media (max-width: 1024px) { .stats--4 .stats__grid, .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats--4 .stats__grid, .stats__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; padding-block: clamp(80px, 10vw, 160px); overflow: hidden; overflow: clip; }
.cta-band__marquee { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) rotate(-5deg); border: 0; opacity: .07; pointer-events: none; overflow: hidden; white-space: nowrap; }
.cta-band__marquee .marquee__inner > * { margin-right: 4vw; }
.cta-band__marquee span { font-size: 13vw; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.cta-band__marquee i { font-style: normal; font-size: 6vw; color: var(--accent); }
.cta-band__inner { position: relative; }
.cta-band__card {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip; text-align: center;
  padding: clamp(56px, 8vw, 128px) clamp(20px, 5vw, 80px);
  border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: radial-gradient(120% 90% at 50% 0%, #141414 0%, var(--surface) 42%, var(--bg-2) 100%);
}
.cta-band__card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 80%);
}
.cta-band__glow { position: absolute; z-index: -1; left: 50%; top: -55%; width: min(900px, 120%); aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(circle, rgba(var(--accent-rgb), .26) 0%, transparent 60%); animation: glowBreath 6s ease-in-out infinite; pointer-events: none; }
@keyframes glowBreath { 50% { opacity: .6; transform: translateX(-50%) scale(1.08); } }
.cta-band__title { font-size: clamp(34px, 5.6vw, 92px); line-height: 1.12; letter-spacing: -.05em; font-weight: 750; margin: 26px auto 26px; }
.cta-band__desc { margin-inline: auto; max-width: 40em; color: var(--text-2); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.75; }
.cta-band__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: clamp(32px, 4vw, 52px); }
.cta-band__facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; font-size: 14px; color: var(--text-2); }
.cta-band__facts li { display: inline-flex; align-items: center; gap: 8px; }
.cta-band__facts .ic { width: 17px; height: 17px; color: var(--accent); }
@media (max-width: 560px) {
  .cta-band__btns .btn { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ft { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(72px, 9vw, 140px); overflow: hidden; overflow: clip; }
.ft__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 120px); padding-bottom: clamp(48px, 6vw, 80px); }
.ft__slogan { margin: 28px 0 32px; font-size: clamp(24px, 2.4vw, 36px); font-weight: 650; line-height: 1.35; letter-spacing: -.035em; }
.ft__mail { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); font-size: clamp(17px, 1.4vw, 20px); transition: color .3s, border-color .3s; }
.ft__mail:hover { color: var(--accent); border-color: var(--accent); }
.ft__mail .ic { width: 18px; height: 18px; }
.ft__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ft__col h4 { font-size: 12px; font-weight: 500; color: var(--text-3); letter-spacing: .12em; margin-bottom: 20px; }
.ft__col li + li { margin-top: 10px; }
.ft__col a { position: relative; color: var(--text-2); font-size: 16px; transition: color .3s; }
.ft__col a:hover { color: var(--text); }
.ft__muted { font-size: 14px; color: var(--text-3); line-height: 1.6; }
.ft__legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-block: 1px solid var(--line); }
.ft__policy { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ft__policy a { font-size: 15px; color: var(--text-2); transition: color .3s; }
.ft__policy a:hover { color: var(--accent); }
.ft__policy b { color: var(--text); font-weight: 650; }
.ft__top-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); letter-spacing: .06em; }
.ft__top-btn .ic { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.ft__top-btn:hover { color: var(--accent); }
.ft__top-btn:hover .ic { transform: translateY(-3px); }
.ft__biz { padding: 26px 0 8px; font-size: 14px; line-height: 1.8; }
.ft__biz dl { display: flex; flex-wrap: wrap; gap: 2px 26px; }
.ft__biz dl > div { display: flex; gap: 8px; }
.ft__biz dt { color: var(--text-3); }
.ft__biz dd { color: var(--text-2); }
.ft__copy { margin-top: 14px; font-size: 13px; color: var(--text-3); line-height: 1.7; }
.ft__word {
  display: flex; justify-content: center; gap: .16em; overflow: hidden;
  margin-top: clamp(32px, 4vw, 56px); padding-bottom: .06em;
  font-family: var(--font-display); font-weight: 700; font-size: 13.2vw; line-height: .92; letter-spacing: -.065em;
  color: var(--surface-2); white-space: nowrap; user-select: none;
}
.ft__word span { display: inline-block; }
.ft__word .ai { color: var(--accent); }
@media (max-width: 900px) {
  .ft__top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ft__cols { grid-template-columns: 1fr 1fr; }
  .ft__cols .ft__col:last-child { grid-column: 1 / -1; }
  .ft { padding-bottom: 84px; }
}

/* ==========================================================================
   Modal (legal)
   ========================================================================== */
.modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.modal::backdrop { background: transparent; }
.modal::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .55s var(--ease); }
.modal.is-open::before { opacity: 1; }
.modal__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(780px, 100%);
  display: flex; flex-direction: column;
  background: var(--bg-2); border-left: 1px solid var(--line-2);
  transform: translateX(100%); transition: transform .7s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 14px clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.modal__actions { display: flex; align-items: center; gap: 8px; }
.modal__pop { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); font-family: var(--font); transition: color .3s, border-color .3s; }
.modal__pop:hover { color: var(--accent); border-color: var(--accent); }
.modal__pop .ic { width: 15px; height: 15px; }
.modal__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--text); transition: transform .5s var(--ease), background .3s; }
.modal__close:hover { transform: rotate(90deg); background: var(--accent); color: var(--accent-ink); }
.modal__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px) 64px; }

/* legal typography */
.legal__head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal__title { font-size: clamp(28px, 3vw, 42px); font-weight: 750; letter-spacing: -.04em; line-height: 1.2; }
.legal__date { margin-top: 10px; font-size: 13px; color: var(--accent); }
.legal__body { margin-top: 28px; font-size: 16px; line-height: 1.85; color: var(--text-2); }
.legal__body > p { margin-bottom: 8px; }
.legal__body h3 { margin: 34px 0 12px; font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.legal__body ul { display: grid; gap: 8px; }
.legal__body li { position: relative; padding-left: 18px; }
.legal__body li::before { content: ''; position: absolute; left: 2px; top: .9em; width: 6px; height: 1px; background: var(--text-3); }
.legal__body a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.legal__calc { margin-top: 10px; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.legal__calc li { padding-left: 0; }
.legal__calc li::before { display: none; }
.legal__calc b { color: var(--accent); font-weight: 600; margin-right: 6px; }

/* ==========================================================================
   Alert (커스텀 알림창) — 커스텀 커서(z 300)보다 아래
   ========================================================================== */
.alertbox { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.alertbox.is-open { opacity: 1; }
.alertbox__panel {
  width: min(440px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 36px) clamp(22px, 3vw, 30px);
  border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface-3) 0%, var(--surface) 100%);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: translateY(18px) scale(.96); transition: transform .5s var(--ease-out);
}
.alertbox.is-open .alertbox__panel { transform: none; }
.alertbox__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 4px; border-radius: 50%; background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .3); color: var(--accent); }
.alertbox__icon svg { width: 30px; height: 30px; }
.alertbox--warn .alertbox__icon { background: rgba(var(--danger-rgb), .12); border-color: rgba(var(--danger-rgb), .45); color: var(--danger); }
.alertbox__title { font-size: 22px; font-weight: 750; line-height: 1.35; letter-spacing: -.03em; }
.alertbox__text { font-size: 15px; line-height: 1.65; color: var(--text-2); }
.alertbox__text:empty, .alertbox__list:empty { display: none; }
.alertbox__list { width: 100%; display: grid; gap: 6px; margin-top: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); text-align: left; }
.alertbox__list li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.6; color: var(--text); }
.alertbox__list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.alertbox__ok { --h: 52px; width: 100%; margin-top: 12px; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { animation: none; }
}
