/* ─── 테마 ─────────────────────────────────────────── */
:root {
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 14px;
  --wrap: 1120px;
  --nav-h: 64px;
  --banner-h: 0px;
}
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #0a0a0a;
  --card: #0a0a0a;
  --fg: #ededed;
  --fg-strong: #fff;
  --muted: #a1a1a1;
  --faint: #6b6b6b;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .16);
  --grid: rgba(255, 255, 255, .055);
  --btn-bg: #ededed;
  --btn-fg: #0a0a0a;
  --ghost-bg: rgba(255, 255, 255, .04);
  --nav-bg: rgba(0, 0, 0, .6);
  --spot: rgba(255, 255, 255, .08);
  --shadow: 0 0 0 1px var(--line), 0 20px 60px -20px rgba(0, 0, 0, .8);
}
[data-theme='light'] {
  color-scheme: light;
  --bg: #fff;
  --bg-2: #fafafa;
  --card: #fff;
  --fg: #171717;
  --fg-strong: #000;
  --muted: #5e5e5e;
  --faint: #8f8f8f;
  --line: rgba(0, 0, 0, .09);
  --line-2: rgba(0, 0, 0, .15);
  --grid: rgba(0, 0, 0, .05);
  --btn-bg: #171717;
  --btn-fg: #fff;
  --ghost-bg: rgba(0, 0, 0, .02);
  --nav-bg: rgba(255, 255, 255, .7);
  --spot: rgba(0, 0, 0, .05);
  --shadow: 0 0 0 1px var(--line), 0 20px 50px -24px rgba(0, 0, 0, .18);
}

/* ─── 기본 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--banner-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 16px; line-height: 1.65; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss05', 'tnum' 0; word-break: keep-all; overflow-wrap: anywhere;
  transition: background-color .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--fg-strong); margin: 0; letter-spacing: -0.035em; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--fg-strong); color: var(--bg); }
:focus-visible { outline: 2px solid #3291ff; outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: .82em; letter-spacing: 0; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ─── 버튼 ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { opacity: .86; }
.btn-ghost { background: var(--ghost-bg); border-color: var(--line-2); color: var(--fg); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--faint); background: var(--spot); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--fg-strong); border-color: var(--line-2); }
[data-theme='dark'] .i-moon, [data-theme='light'] .i-sun { display: none; }

/* ─── 공지: 최상단 배너 ───────────────────────────── */
.banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; min-height: 40px;
  display: flex; align-items: center; justify-content: center; padding: 8px 48px;
  background: linear-gradient(90deg, #0b3a8c, #6d28d9 50%, #be185d); color: #fff; font-size: 14px;
  transform: translateY(-100%); transition: transform .5s var(--ease);
}
.banner.show { transform: none; }
.banner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  background-size: 250% 100%; animation: shine 4.5s ease-in-out infinite;
}
.banner-in { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; text-align: center; line-height: 1.45; }
.banner-in b { margin-right: 8px; }
.banner-in a { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 1; }
.banner-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); flex: none; }
.banner-x {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px;
  background: transparent; color: #fff; cursor: pointer; opacity: .8;
}
.banner-x:hover { background: rgba(255, 255, 255, .15); opacity: 1; }
@keyframes shine { 0%, 40% { background-position: 150% 0; } 100% { background-position: -100% 0; } }

/* ─── 네비게이션 ───────────────────────────────────── */
.nav {
  position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid transparent; transition: top .5s var(--ease), background-color .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled { background: var(--nav-bg); border-bottom-color: var(--line); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); }
.nav-in { height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; font-size: 17px; font-weight: 750; color: var(--fg-strong); letter-spacing: -.02em; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--fg-strong); background: var(--spot); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ─── 히어로 ───────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate;
  /* 위아래 여백이 같아야 내용이 화면 정중앙에 옴 (아래 여백 안에 기술 스택이 들어감) */
  --hero-pad: calc(var(--nav-h) + 56px);
  padding: var(--hero-pad) 0;
}
.hero-grid, .nf .hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 50%, #000 30%, transparent 80%);
}
.hero-beams { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-glow { position: absolute; inset: 0; z-index: -3; filter: blur(80px); opacity: .55; }
[data-theme='light'] .hero-glow { opacity: .35; }
.hero-glow i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
[data-theme='light'] .hero-glow i { mix-blend-mode: multiply; }
.hero-glow i:nth-child(1) { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; left: 8%; top: 2%; background: radial-gradient(circle, #0070f3 0%, transparent 65%); }
.hero-glow i:nth-child(2) { width: 40vw; height: 40vw; max-width: 540px; max-height: 540px; right: 4%; top: 14%; background: radial-gradient(circle, #a855f7 0%, transparent 65%); animation-delay: -6s; animation-duration: 22s; }
.hero-glow i:nth-child(3) { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; left: 36%; top: 46%; background: radial-gradient(circle, #ff0080 0%, transparent 65%); opacity: .7; animation-delay: -12s; animation-duration: 26s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, -3vh, 0) scale(.94); }
}
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--ghost-bg); backdrop-filter: blur(8px); font-size: 13px; color: var(--fg); margin-bottom: 22px;
}
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.hero-role { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; font-size: 12px; }
.hero-title {
  font-size: clamp(40px, 8vw, 88px); font-weight: 800; letter-spacing: -0.055em; line-height: 1.06; max-width: 16ch;
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span {
  display: inline-block; transform: translateY(105%) rotate(4deg); opacity: 0;
  animation: rise .9s var(--ease) forwards; animation-delay: calc(140ms + var(--i) * 70ms);
  background: linear-gradient(180deg, var(--fg-strong) 35%, color-mix(in srgb, var(--fg-strong) 58%, var(--bg)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes rise { to { transform: none; opacity: 1; } }
/* 서명: 획마다 순서대로 그려짐 */
.sig { display: block; width: auto; max-width: 100%; color: var(--fg-strong); overflow: visible; }
.sig-md { height: clamp(56px, 9vw, 104px); }
.sig-lg { height: clamp(96px, 17vw, 200px); filter: drop-shadow(0 0 24px color-mix(in srgb, var(--fg-strong) 18%, transparent)); }
.sig .sd { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; animation-name: sigDraw; animation-fill-mode: forwards; animation-timing-function: cubic-bezier(.4, .05, .5, 1); }
@keyframes sigDraw { from { opacity: 1; stroke-dashoffset: 1; } to { opacity: 1; stroke-dashoffset: 0; } }
.hero-sig { margin-top: 18px; display: flex; justify-content: center; max-width: 100%; }
.hero-title-sig { display: flex; justify-content: center; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-intro { margin-top: 26px; max-width: 560px; font-size: clamp(16px, 2vw, 19px); color: var(--muted); line-height: 1.7; }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fade { opacity: 0; transform: translateY(14px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* 기술 스택 무한 흐름 */
.marquee {
  position: absolute; left: 0; right: 0; bottom: 28px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--mq-dur, 40s) linear infinite; }
.mq-group { display: flex; gap: 10px; padding-right: 10px; flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip {
  font-family: var(--mono); font-size: 13px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg-2); white-space: nowrap;
}
/* 기본은 그룹 2개 → -50%. 넓은 화면에서는 site.js 가 그룹을 더 붙이고 --mq-shift 를 한 그룹 폭으로 맞춤 */
@keyframes marquee { to { transform: translateX(var(--mq-shift, -50%)); } }

/* ─── 섹션 공통 ───────────────────────────────────── */
.section { position: relative; padding: 120px 0; border-top: 1px solid var(--line); }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 750; }
.sec-head { margin-bottom: 48px; }
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px 80px; align-items: start; }
.about h2 { max-width: 12ch; }
.about-body { font-size: 18px; color: var(--muted); display: grid; gap: 18px; padding-top: 34px; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 40px; overflow: hidden; }
.stat { padding: 28px 28px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); background: var(--bg-2); }
.stat:last-child { border-right: 0; }
.stat b { font-size: clamp(32px, 4vw, 44px); font-weight: 750; letter-spacing: -.04em; color: var(--fg-strong); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* Work — 벤토 그리드 */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; grid-auto-flow: dense; }
.card {
  position: relative; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  overflow: hidden; isolation: isolate;
}
/* 마우스를 따라다니는 빛 테두리 */
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(120, 160, 255, .55), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, -999px) var(--my, -999px), var(--spot), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.project { display: flex; flex-direction: column; transition: transform .5s var(--ease), opacity .9s var(--ease), filter .9s var(--ease); }
.project.featured { grid-column: span 2; grid-row: span 2; }
.project:hover { transform: translateY(-4px); }
.pvis { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.project.featured .pvis { aspect-ratio: auto; flex: 1; min-height: 300px; }
.project.featured .pbody h3 { font-size: 26px; }
.project.featured .pbody { flex: none; }
.pvis img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .pvis img, .project:hover .ph span { transform: scale(1.04); }
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, hsl(var(--h) 90% 60% / .55), transparent 50%),
    radial-gradient(circle at 80% 70%, hsl(calc(var(--h) + 70) 90% 60% / .5), transparent 55%),
    var(--bg-2);
}
.ph::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.ph span { position: relative; font-size: clamp(20px, 2.6vw, 30px); font-weight: 750; color: var(--fg-strong); letter-spacing: -.02em; transition: transform .8s var(--ease); text-shadow: 0 2px 20px rgba(0, 0, 0, .3); padding: 0 16px; text-align: center; }
.pbody { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pmeta .mono { color: var(--faint); margin-right: 4px; }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pbody h3 { font-size: 21px; font-weight: 700; }
.pbody p { color: var(--muted); font-size: 15px; }
.plinks { margin-top: auto; padding-top: 8px; display: flex; gap: 16px; }
.plink { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--fg); position: relative; z-index: 3; }
.plink:hover { color: var(--fg-strong); }
.plink svg { transition: transform .25s var(--ease); }
.plink:hover svg:last-child { transform: translate(2px, -2px); }

/* Experience — 스크롤에 따라 그려지는 세로선 */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 44px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline::after {
  content: ''; position: absolute; left: 4px; top: 8px; width: 1px; height: calc((100% - 16px) * var(--p, 0));
  background: linear-gradient(180deg, #0070f3, #a855f7, #ff0080); transition: height .2s linear;
}
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 8px 32px; position: relative; }
.timeline li::before {
  content: ''; position: absolute; left: -28px; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2); z-index: 1; transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.timeline li.in::before { background: var(--fg-strong); border-color: var(--fg-strong); box-shadow: 0 0 0 4px var(--spot); }
.t-period { color: var(--muted); padding-top: 3px; }
.t-main h3 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.t-main h3 .muted { font-weight: 500; }
.t-main p { color: var(--muted); margin-top: 6px; }

/* Contact */
.contact { overflow: hidden; text-align: center; padding: 140px 0 150px; }
.contact-glow {
  position: absolute; left: 50%; bottom: -320px; width: 900px; height: 600px; transform: translateX(-50%); z-index: -1;
  background: conic-gradient(from 180deg at 50% 50%, #0070f3, #a855f7, #ff0080, #f5a623, #0070f3);
  border-radius: 50%; filter: blur(110px); opacity: .28; animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.contact-in { display: flex; flex-direction: column; align-items: center; }
.contact-title { font-size: clamp(38px, 7vw, 76px) !important; font-weight: 800 !important; letter-spacing: -.055em; }
.contact-text { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 520px; }
.contact-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.contact-links { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.contact-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; transition: color .2s; }
.contact-links a:hover { color: var(--fg-strong); }

.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.footer-in { display: flex; justify-content: space-between; gap: 16px; }

/* ─── 공지: 중앙 팝업 ─────────────────────────────── */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-wrap[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100svh - 40px); overflow: auto;
  background: var(--card); border-radius: 18px; padding: 30px 28px 22px; box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -10px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.modal:focus { outline: none; }
.modal::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #0070f3, #a855f7, #ff0080, transparent);
}
.modal-wrap.show .modal-backdrop { opacity: 1; }
.modal-wrap.show .modal { opacity: 1; transform: none; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { background: var(--spot); color: var(--fg-strong); }
.modal-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.modal-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #0070f3, #ff0080); }
.modal h2 { margin-top: 14px; font-size: 22px; letter-spacing: -.03em; }
.modal-body { margin-top: 10px; color: var(--muted); display: grid; gap: 10px; font-size: 15px; }
.modal-actions { margin-top: 22px; display: flex; gap: 8px; }
.modal-actions .btn { flex: 1; height: 42px; }
.modal-skip { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.modal-skip input { accent-color: var(--fg-strong); width: 15px; height: 15px; margin: 0; }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120; transform: translate(-50%, 20px);
  background: var(--fg-strong); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.nf { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; position: relative; text-align: center; padding: 24px; }
.nf h1 { font-size: clamp(28px, 5vw, 44px); }

/* ─── 반응형 ───────────────────────────────────────── */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .project.featured { grid-row: auto; }
  .project.featured .pvis { aspect-ratio: 21 / 9; min-height: 0; flex: none; }
  .about { grid-template-columns: 1fr; }
  .about-body { padding-top: 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .section { padding: 88px 0; }
  .bento { grid-template-columns: 1fr; }
  .project.featured { grid-column: auto; grid-row: auto; }
  .project.featured .pvis { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .hero { --hero-pad: calc(var(--nav-h) + 36px); }
  .marquee { bottom: 20px; }
  .banner { font-size: 13px; padding: 8px 44px 8px 16px; }
  .footer-in { flex-direction: column; align-items: center; }
}

/* 움직임 줄이기 설정을 켠 사용자 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .hero-beams { display: none; }
  .sig .sd { opacity: 1; stroke-dashoffset: 0; animation: none !important; }
}
