@charset "utf-8";
/* 레이아웃: 한 장의 종이 위에 섹션이 이어지는 단일 스크롤. 흰·검정·회색만, 브랜드 로고만 공식 색. */
@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/PretendardVariable.woff2') format('woff2-variations'), url('../fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f2ee;
  --card: #fff;
  --ink: #0d0d0d;
  --ink-2: #34332f;
  --mute: #77756f;
  --soft: #a9a69e;
  --line: rgba(13, 13, 13, .1);
  --line-2: rgba(13, 13, 13, .18);
  --grey-1: #e9e6e0;
  --grey-2: #d9d5cd;
  --glass: rgba(255, 255, 255, .62);
  --shadow: 0 30px 60px -28px rgba(13, 13, 13, .28), 0 10px 24px -14px rgba(13, 13, 13, .12);
  --shadow-s: 0 12px 28px -18px rgba(13, 13, 13, .3);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --f-ko: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --f-en: 'Inter Tight', 'Pretendard', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', 'Noto Serif KR', Georgia, serif;
  --f-serif-ko: 'Noto Serif KR', 'Instrument Serif', Georgia, serif;
  --f-mono: 'JetBrains Mono', 'Pretendard', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gutter: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
  --nav-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-ko);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--paper);
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { max-width: 1320px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- progress + nav ---------- */
.progress { position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto; height: 2px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink);
  display: grid; place-items: center; font-family: var(--f-en); font-weight: 600; font-size: 13px; letter-spacing: .02em;
  background: transparent; color: var(--ink);
  transition: background .5s var(--ease), color .5s var(--ease), transform .9s var(--ease);
}
.nav.scrolled .brand-mark { background: var(--ink); color: var(--card); }
.brand:hover .brand-mark { transform: rotate(360deg); }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }

.menu {
  position: relative; border: 1px solid var(--line); border-radius: 999px; padding: 5px;
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.scrolled .menu { background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-color: rgba(13,13,13,.07); box-shadow: var(--shadow-s); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.menu a {
  display: block; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--mute);
  transition: color .3s var(--ease);
}
.menu a:hover, .menu a[aria-current="true"] { color: var(--ink); }
.menu-ind {
  position: absolute; left: 0; bottom: 6px; height: 2px; width: 0; border-radius: 2px; background: var(--ink);
  transition: transform .6s var(--ease), width .6s var(--ease), opacity .3s; opacity: 0;
}
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background .3s, color .3s;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon-btn:hover { background: var(--ink); color: var(--card); }
.menu-btn {
  display: none; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; font-weight: 500; font-size: 14px;
}

.sheet {
  position: fixed; inset: 0; z-index: 90; background: var(--paper);
  padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  animation: sheetIn .6s var(--ease);
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(-12px); } }
.sheet ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sheet a {
  display: flex; align-items: baseline; gap: 16px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(34px, 10vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1;
}
.sheet a span { font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: var(--mute); letter-spacing: .02em; }
.sheet-foot { color: var(--mute); font-size: 12px; margin: 0; }
body.sheet-open .nav .menu-btn { background: var(--ink); color: var(--card); }
body.sheet-open .nav { z-index: 95; }

/* ---------- buttons, chips, labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; cursor: pointer; border: 1px solid var(--ink);
  transition: transform .5s var(--ease), background .3s, color .3s, box-shadow .5s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--card); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); background: var(--card); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.done { background: var(--ink); color: var(--card); border-color: var(--ink); }

.label { font-size: 12px; color: var(--mute); margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.h2 {
  margin: 0; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.12; font-weight: 700; letter-spacing: -.04em; text-wrap: balance;
}
.h2 em, .hero-title em, .mega em {
  font-family: var(--f-serif-ko); font-style: normal; font-weight: 500; color: var(--mute); letter-spacing: -.05em; padding-left: .04em;
}
.section { padding-block: clamp(96px, 13vw, 176px); position: relative; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-note { margin: 0; color: var(--mute); font-size: 14px; }
.prose p { margin: 0 0 1em; color: var(--ink-2); max-width: 34em; }

/* reveal: 첫 화면 밖 요소만 숨겼다가 올라오게 한다 */
html.js .reveal.pre { opacity: 0; transform: translateY(24px); }
html.js .reveal { transition: opacity 1s var(--ease) var(--rd, 0s), transform 1s var(--ease) var(--rd, 0s); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: clip;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(8px, 2vw, 24px));
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero-outline {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); margin: 0; z-index: 0; pointer-events: none;
  font-family: var(--f-en); font-weight: 700; text-transform: uppercase; white-space: nowrap; line-height: .8;
  font-size: clamp(84px, 19vw, 320px); letter-spacing: -.045em;
  color: transparent; -webkit-text-stroke: 1.2px rgba(13, 13, 13, .2);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: clamp(20px, 3vw, 48px);
}
.hero-copy, .hero-side { min-width: 0; padding-bottom: clamp(24px, 6vh, 72px); }
.eyebrow { font-size: 12px; color: var(--mute); margin: 0 0 18px; }
.hero-title { margin: 0; font-size: clamp(30px, 3.1vw, 48px); line-height: 1.18; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.hero-title .l1 { display: block; font-size: .58em; letter-spacing: -.03em; font-weight: 600; color: var(--ink-2); margin-bottom: .25em; }
.hero-lede { margin: 0 0 24px; color: var(--ink-2); font-size: 15px; max-width: 28em; }
.hero-stage { position: relative; margin: 0; height: clamp(440px, 76svh, 800px); aspect-ratio: 400 / 720; max-width: 100%; }
.hero-stage video { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; background: transparent; }
.sound {
  position: absolute; right: 0; bottom: 22%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--card); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-s);
  transition: transform .5s var(--ease);
}
.sound:hover { transform: scale(1.06); }
.sound svg { width: 18px; height: 18px; fill: var(--ink); grid-area: 1 / 1; }
.sound .i-pause { display: none; }
.sound[aria-pressed="true"] .i-play { display: none; }
.sound[aria-pressed="true"] .i-pause { display: block; }
.sound-ping { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--ink); opacity: 0; pointer-events: none; }
.hero.blocked .sound-ping { animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .35; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.sound-hint {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; color: var(--mute);
  background: var(--glass); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .5s;
}
.hero.blocked .sound-hint { opacity: 1; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .9fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.about-intro .h2 { margin-bottom: 28px; }
.badge-col { display: flex; flex-direction: column; align-items: center; margin-top: -40px; }
.badge-swing { position: relative; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; will-change: transform; perspective: 1100px; }
.lanyard {
  width: 22px; height: 150px; border-radius: 0 0 4px 4px;
  background: repeating-linear-gradient(180deg, #1b1b1a 0 6px, #262624 6px 12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.badge-clip { width: 40px; height: 22px; margin-top: -4px; border-radius: 6px 6px 10px 10px; background: linear-gradient(#cfccc5, #a9a69f); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); position: relative; z-index: 2; }
.badge {
  position: relative; width: 248px; aspect-ratio: 54 / 86; margin-top: -8px; cursor: pointer;
  transform-style: preserve-3d; transition: transform 1s var(--ease); border-radius: 22px;
}
.badge.flipped { transform: rotateY(180deg); }
.badge-face {
  position: absolute; inset: 0; border-radius: 22px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  display: flex; flex-direction: column;
}
.badge-back { transform: rotateY(180deg); padding: 28px 22px 22px; }
.badge-front::before { content: ""; position: absolute; top: 14px; left: 50%; width: 44px; height: 8px; margin-left: -22px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0,0,0,.15); z-index: 2; }
.bf-band { background: var(--ink); color: var(--card); padding: 34px 18px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: .12em; }
.bf-photo { margin: 16px auto 0; width: 62%; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.bf-photo img { width: 100%; height: 100%; object-fit: cover; }
.bf-name { text-align: center; margin: 14px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.bf-role { text-align: center; margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.bf-org { text-align: center; margin: 0; font-size: 11px; color: var(--mute); }
.bf-code { margin: auto 18px 16px; }
.bf-bars { height: 30px; }
.bf-code span { display: block; font-size: 9px; color: var(--mute); margin-top: 4px; text-align: center; letter-spacing: .14em; }
.bb-h { font-size: 11px; color: var(--mute); margin: 0 0 14px; }
.bb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bb-list li { display: grid; grid-template-columns: 22px 1fr; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.bb-list li b { font-family: var(--f-mono); font-weight: 400; font-size: 10px; color: var(--soft); padding-top: 3px; }
.bb-foot { margin-top: auto; font-family: var(--f-serif); font-style: italic; font-size: 26px; color: var(--mute); }
.badge-hint { font-size: 11px; color: var(--mute); margin: 22px 0 0; }

.facts-h { font-size: 12px; font-weight: 400; color: var(--mute); margin: 0 0 8px; }
.facts dl { margin: 0; }
.facts dl div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dl div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--f-mono); font-size: 11px; color: var(--mute); padding-top: 3px; }
.facts dd { margin: 0; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.quote { margin: 36px 0 0; padding: 0; }
.quote p { margin: 0; font-family: var(--f-serif-ko); font-style: normal; font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.4; letter-spacing: -.01em; }
.quote p::before { content: "“"; display: block; font-size: 2.2em; line-height: .6; color: var(--soft); margin-bottom: 6px; }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 11px; color: var(--mute); }

/* ---------- skills ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ptable-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.ptable { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.tile {
  position: relative; width: 100%; aspect-ratio: 1 / 1.1; padding: 10px 10px 9px; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  display: flex; flex-direction: column; justify-content: space-between; min-width: 0;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .5s var(--ease), border-color .3s;
}
.tile:hover, .tile.on { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile.on { border-color: var(--ink); }
.tile.dim { opacity: .2; }
.tile .n { font-family: var(--f-mono); font-size: 10px; color: var(--soft); line-height: 1; }
.tile .s { font-family: var(--f-en); font-weight: 600; font-size: clamp(20px, 2.1vw, 30px); letter-spacing: -.04em; line-height: 1; }
.tile .nm { font-size: 12px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.tile .c { font-family: var(--f-mono); font-size: 9px; color: var(--mute); line-height: 1.2; }
.ptable.pre .tile { opacity: 0; transform: translateY(18px) scale(.94); }
.ptable .tile { transition-delay: 0s; }
.ptable.wave .tile { transition: transform .9s var(--ease) var(--d), opacity .9s var(--ease) var(--d), box-shadow .5s var(--ease), border-color .3s; }

.inspector {
  position: sticky; top: calc(var(--nav-h) + 24px + env(safe-area-inset-top, 0px));
  background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--shadow);
  min-height: 360px; display: flex; flex-direction: column; gap: 16px;
}
.ins-top { display: flex; align-items: center; justify-content: space-between; }
.ins-logo { width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--card); position: relative; }
.ins-logo::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--glow, transparent); filter: blur(18px); opacity: .32; z-index: 0; }
.ins-logo svg { width: 32px; height: 32px; position: relative; }
.ins-logo .sym { font-family: var(--f-en); font-weight: 600; font-size: 26px; letter-spacing: -.04em; position: relative; }
.ins-n { font-family: var(--f-mono); font-size: 11px; color: var(--soft); }
.ins-name { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.ins-cat { font-family: var(--f-mono); font-size: 11px; color: var(--mute); margin: 4px 0 0; }
.ins-h { font-family: var(--f-mono); font-size: 11px; color: var(--mute); margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.ins-rel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ins-rel li { font-size: 14px; line-height: 1.5; padding-left: 14px; position: relative; color: var(--ink-2); }
.ins-rel li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 1px; background: var(--ink); }
.ins-empty { font-size: 14px; color: var(--mute); margin: 0; }
.inspector .swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

/* ---------- work accordion ---------- */
.flow { list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.flow-st { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.flow-st:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; width: 6px; height: 6px; border-top: 1px solid var(--soft); border-right: 1px solid var(--soft); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.flow-st.ai { border-color: var(--ink); box-shadow: var(--shadow-s); }
.flow-who { font-size: 10.5px; color: var(--mute); }
.flow-st.ai .flow-who { color: var(--ink); }
.flow-st b { font-size: 16px; letter-spacing: -.02em; }
.flow-st > span:last-child { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.acc-note { font-size: 11px; color: var(--mute); margin: 0 0 12px; }
.acc { display: flex; gap: 10px; height: clamp(600px, 74svh, 680px); }
.panel {
  position: relative; flex: 0 0 66px; min-width: 0; overflow: hidden; border-radius: 26px; background: var(--card); border: 1px solid var(--line);
  transition: flex .8s var(--ease), box-shadow .8s var(--ease), border-color .4s;
}
.panel.open { flex: 1 1 auto; box-shadow: var(--shadow); border-color: var(--line-2); }
.p-spine {
  position: absolute; inset: 0; width: 66px; padding: 22px 0; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 16px; z-index: 2; border-radius: 26px;
  transition: opacity .4s var(--ease);
}
.p-spine .n { font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.p-spine .t { writing-mode: vertical-rl; text-orientation: sideways; font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.panel.open .p-spine { opacity: 0; pointer-events: none; }
.p-body {
  position: absolute; inset: 0; left: 0; width: max(100%, 640px); padding: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .82fr); gap: clamp(20px, 3vw, 40px);
  opacity: 0; transform: translateX(16px); transition: opacity .5s var(--ease), transform .8s var(--ease); pointer-events: none;
}
.panel.open .p-body { opacity: 1; transform: none; pointer-events: auto; transition-delay: .18s; }
.p-text { display: flex; flex-direction: column; min-width: 0; }
.p-meta { font-family: var(--f-mono); font-size: 11px; color: var(--mute); margin: 0 0 18px; display: flex; gap: 12px; }
.p-title { margin: 0 0 16px; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.18; letter-spacing: -.035em; font-weight: 700; }
.p-text { overflow: auto; scrollbar-width: none; }
.p-steps { margin: 0 0 16px; display: grid; gap: 10px; max-width: 34em; }
.p-steps div { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
.p-steps dt { font-family: var(--f-mono); font-size: 11px; color: var(--mute); padding-top: 3px; }
.p-steps dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.p-points { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.p-points li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.p-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.p-result { margin: 0; display: flex; flex-direction: column; }
.p-result s { font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.p-result b { font-family: var(--f-en); font-size: clamp(32px, 3.2vw, 46px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; }
.p-result span { font-size: 12.5px; color: var(--mute); margin-top: 4px; }
.p-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.p-tools span, .p-tools a { font-family: var(--f-mono); font-size: 11px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; }
.p-tools a { background: var(--ink); color: var(--card); border-color: var(--ink); }

/* 실제 화면 캡처 */
.shot { position: relative; width: 100%; max-width: 300px; margin: 0; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); padding: 12px; overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.shot .mini-tag { z-index: 4; }
.shot-browser { padding-top: 10px; }
.shot-browser .chrome { display: flex; gap: 5px; margin-bottom: 8px; }
.shot-browser .chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-2); }
.shot-browser img { border-radius: 6px; box-shadow: var(--shadow-s); }
.shot-slack { padding: 16px; }
.shot-slack img { border-radius: 12px; box-shadow: var(--shadow-s); }
.shot-phone { max-width: 230px; height: 420px; padding: 10px; border-radius: 30px; background: var(--ink); border-color: var(--ink); }
.shot-phone img { border-radius: 22px; transform: translateY(0); }
.panel.open .shot-phone img { animation: phoneScroll 16s ease-in-out 1s infinite alternate; }
@keyframes phoneScroll { 0%, 10% { transform: translateY(0); } 90%, 100% { transform: translateY(calc(-100% + 400px)); } }
.shot-phone .mini-tag { top: 18px; right: 18px; }
.shot-cards { max-width: 330px; height: 360px; background: transparent; border: 0; padding: 0; }
.shot-cards img { position: absolute; width: 60%; top: 34px; border-radius: 10px; box-shadow: var(--shadow); transition: transform .8s var(--ease); }
.shot-cards img:nth-of-type(1) { left: 0; transform: rotate(-7deg); }
.shot-cards img:nth-of-type(2) { left: 20%; top: 14px; z-index: 2; }
.shot-cards img:nth-of-type(3) { right: 0; transform: rotate(7deg); }
.panel.open .shot-cards:hover img:nth-of-type(1) { transform: rotate(-10deg) translateX(-8px); }
.panel.open .shot-cards:hover img:nth-of-type(3) { transform: rotate(10deg) translateX(8px); }
.shot-cards .mini-tag { top: 0; right: 0; }
.p-ui { min-width: 0; display: flex; align-items: center; justify-content: center; }

/* mini UI (회색조, 설명용) */
.mini { position: relative; width: 100%; max-width: 280px; aspect-ratio: 3 / 4; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); padding: 16px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.mini-tag { position: absolute; right: 10px; top: 10px; z-index: 3; font-family: var(--f-mono); font-size: 9px; color: var(--mute); background: var(--card); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; }
.mini .bar { height: 8px; border-radius: 6px; background: var(--grey-2); }
.mini .bar.s { width: 40%; } .mini .bar.m { width: 66%; } .mini .bar.l { width: 88%; }
.mini .blk { border-radius: 12px; background: var(--grey-1); }
.mini .row { display: flex; align-items: center; gap: 8px; }
.mini .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--grey-2); flex: none; }
.mini .card { background: var(--card); border-radius: 12px; border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.mini .pill { width: 34px; height: 12px; border-radius: 6px; background: var(--ink); flex: none; }
.mini .pill.g { background: var(--grey-2); }
.mini .chart { flex: 1; display: flex; align-items: flex-end; gap: 5px; padding: 10px; background: var(--card); border-radius: 12px; border: 1px solid var(--line); }
.mini .chart i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--grey-2); }
.mini .chart i:nth-child(3n) { background: var(--ink); }
.mini .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini .scrim { position: absolute; inset: 0; background: rgba(13,13,13,.22); z-index: 1; }
.mini .modal { position: absolute; left: 14%; right: 14%; top: 26%; z-index: 2; background: var(--card); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.mini .btnb { height: 22px; border-radius: 999px; background: var(--ink); }
.mini .funnel { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.mini .funnel i { height: 26px; border-radius: 8px; background: var(--grey-2); margin-inline: auto; }
.mini .funnel i:last-child { background: var(--ink); }
.mini .chrome { display: flex; gap: 5px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.mini .chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-2); }
.mini .pipe { margin-top: 26px; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.mini .pipe-st { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 12.5px; font-weight: 600; text-align: center; }
.mini .pipe-st.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.mini .pipe-ar { display: block; width: 1px; height: 12px; background: var(--soft); margin: 0 auto; }
.mini .ab { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.mini .ab-col { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.mini .ab-col.win { border-color: var(--ink); }
.mini .ab-lab { font-size: 10px; font-weight: 700; line-height: 1.3; }
.mini .ab-badge { align-self: flex-start; font-family: var(--f-mono); font-size: 9px; background: var(--ink); color: var(--card); border-radius: 999px; padding: 2px 7px; }
.mini .ab-plan { height: 30px; border-radius: 8px; background: var(--grey-2); }
.mini .ab-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.mini .ab-chips i { height: 26px; border-radius: 5px; background: var(--grey-1); }

/* ---------- career ---------- */
.career-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.career-side { position: sticky; top: calc(var(--nav-h) + 40px + env(safe-area-inset-top, 0px)); }
.certs-h { font-size: 12px; font-weight: 400; color: var(--mute); margin: 48px 0 10px; }
.certs { list-style: none; margin: 0; padding: 0; }
.certs li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.certs li span { font-family: var(--f-mono); font-size: 11px; color: var(--mute); padding-top: 2px; }
.tl { position: relative; padding-left: 44px; }
.tl-line { position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tl-line span { display: block; width: 100%; height: 100%; background: var(--ink); transform-origin: 50% 0; transform: scaleY(0); }
.tl ol { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 6vw, 64px); }
.tl-item { position: relative; opacity: .38; transition: opacity .8s var(--ease); }
.tl-item.lit { opacity: 1; }
.tl-node { position: absolute; left: -40px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--grey-2); transition: background .6s var(--ease), border-color .6s var(--ease), box-shadow .8s var(--ease); }
.tl-item.lit .tl-node { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 7px rgba(13,13,13,.07); }
.tl-when { font-family: var(--f-mono); font-size: 12px; color: var(--mute); margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.tl-tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); }
.tl-org { margin: 0; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; line-height: 1.3; font-weight: 700; }
.tl-role { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.tl-items { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.tl-items li { font-size: 14.5px; color: var(--ink-2); padding-left: 14px; position: relative; }
.tl-items li::before { content: ""; position: absolute; left: 0; top: .78em; width: 5px; height: 1px; background: var(--mute); }
.tl-next .tl-node { border-style: dashed; }
.next-card { border: 1.5px dashed var(--line-2); border-radius: 24px; padding: 26px 28px; }
.next-card p { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.03em; }
.next-card p em { font-family: var(--f-serif-ko); font-style: normal; font-weight: 500; color: var(--mute); }
.next-card a { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--mute); }

/* ---------- achievements ---------- */
.ach { position: relative; }
.ach-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
.ach-head { width: 100%; }
.ach-viewport { width: 100%; }
.ach-track { list-style: none; margin: 0; padding: 18px var(--gutter-r) 30px var(--gutter); display: flex; gap: clamp(14px, 2vw, 24px); width: max-content; will-change: transform; }
.ach-card {
  position: relative; flex: 0 0 clamp(210px, 18vw, 260px); aspect-ratio: 1 / 1.05; height: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px 20px 18px;
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .9s var(--ease), box-shadow .9s var(--ease);
}
.ach-card.center { transform: translateY(-10px); box-shadow: var(--shadow); }
.ach-i { font-family: var(--f-mono); font-size: 10px; color: var(--soft); }
.ach-label { margin: 10px 0 4px; font-size: 16px; font-weight: 700; letter-spacing: -.03em; line-height: 1.35; }
.ach-detail { margin: 0; font-family: var(--f-mono); font-size: 10.5px; line-height: 1.5; color: var(--mute); }
.ach-num { margin-top: auto; align-self: flex-end; text-align: right; line-height: .9; }
.ach-num .pre { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--mute); margin-bottom: 6px; }
.ach-num .v { font-family: var(--f-en); font-weight: 700; font-size: clamp(50px, 4.6vw, 70px); letter-spacing: -.05em; }
.ach-num .u { font-family: var(--f-en); font-weight: 600; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.02em; margin-left: 2px; }
.ach-num .u.sign { margin: 0 1px 0 0; }
.ach-num .u.ko { font-family: var(--f-ko); font-size: clamp(14px, 1.1vw, 16px); }
.ach-more { background: transparent; border-style: dashed; border-color: var(--line-2); justify-content: flex-end; }
.ach-more p { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(30px, 2.8vw, 40px); line-height: 1; color: var(--mute); }

/* ---------- contact ---------- */
.contact { padding-bottom: clamp(64px, 8vw, 112px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.mega { margin: 0; font-size: clamp(44px, 7vw, 108px); line-height: 1.08; letter-spacing: -.04em; font-weight: 700; }
.mega .line { display: block; white-space: nowrap; }
.mega .ch { display: inline-block; will-change: transform; }
.mega .ch.bounce { animation: bounce .7s var(--ease); }
@keyframes bounce { 0% { transform: translateY(0); } 30% { transform: translateY(-.12em) rotate(-3deg); } 60% { transform: translateY(.02em); } 100% { transform: none; } }
.hello { width: clamp(92px, 9vw, 128px); height: auto; animation: spin 20s linear infinite; margin-bottom: 2vw; }
.hello text { font-family: var(--f-mono); font-size: 15.5px; letter-spacing: .16em; text-transform: uppercase; fill: var(--ink); }
.hello circle { fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-rows { margin-top: clamp(40px, 6vw, 72px); }
.contact-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row .k { font-size: 12px; color: var(--mute); }
.big-link { font-size: clamp(20px, 2.3vw, 32px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; text-decoration: none; overflow-wrap: anywhere; min-width: 0; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1.5px no-repeat; transition: background-size .6s var(--ease); justify-self: start; user-select: text; }
.big-link:hover { background-size: 100% 1.5px; }
.big-link.small { font-size: clamp(20px, 2.3vw, 32px); }
.contact-row .btn { justify-self: start; }
.contact-row .note { font-size: 12px; color: var(--mute); }

.foot { border-top: 1px solid var(--line); padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; color: var(--mute); }
.foot p { margin: 0; }
.totop { text-decoration: none; }
.totop:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .p-body { grid-template-columns: minmax(0, 1fr); width: max(100%, 460px); }
  .p-ui { display: none; }
}
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-column: 1 / -1; }
  .badge-col { margin-top: 0; }
}
@media (max-width: 900px) {
  .menu { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { transition: background .5s var(--ease); }
  .nav.scrolled { background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
  .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
  .hero-stage { order: -1; height: clamp(380px, 60svh, 560px); }
  .hero-copy, .hero-side { padding-bottom: 0; }
  .hero-lede { margin-inline: auto; }
  .btn-row { justify-content: center; }
  .hero-outline { top: 30%; }
  .ptable-wrap { grid-template-columns: 1fr; }
  .ptable { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .inspector { position: relative; top: 0; min-height: 0; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-st:last-child { grid-column: 1 / -1; }
  .flow-st::after { display: none; }
  .acc { flex-direction: column; height: auto; }
  .panel { flex: none; border-radius: 22px; }
  .panel.open { flex: none; }
  .p-spine { position: relative; inset: auto; width: 100%; flex-direction: row; padding: 18px 20px; gap: 14px; text-align: left; border-radius: 22px; }
  .p-spine .t { writing-mode: horizontal-tb; white-space: normal; flex: 1; }
  .p-spine::after { content: "+"; font-family: var(--f-mono); font-size: 18px; color: var(--mute); transition: transform .5s var(--ease); }
  .panel.open .p-spine { opacity: 1; pointer-events: auto; }
  .panel.open .p-spine::after { transform: rotate(45deg); }
  .p-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
  .panel.open .p-wrap { grid-template-rows: 1fr; }
  .p-wrap > div { overflow: hidden; min-height: 0; }
  .p-body { position: relative; inset: auto; width: 100%; padding: 0 20px 24px; transform: none; }
  .p-body .p-title { display: none; }
  .p-ui { display: flex; }
  .mini { max-width: 240px; }
  .career-grid { grid-template-columns: 1fr; }
  .career-side { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .hello { justify-self: end; margin-top: -10px; }
  .contact-row { grid-template-columns: 1fr auto; }
  .contact-row .k { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .about-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 14px; }
  .p-points { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .facts dl div { grid-template-columns: 72px 1fr; }
  .certs li { grid-template-columns: 1fr; gap: 2px; }
  .tile { padding: 8px 7px; border-radius: 12px; }
  .tile .nm { font-size: 10.5px; }
  .tile .c { display: none; }
  .ach-card { flex-basis: 60vw; }
}

/* 모션 줄이기: 장식 모션은 끄고 내용은 그대로 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js .reveal.pre, .ptable.pre .tile { opacity: 1; transform: none; }
  .ach { height: auto !important; }
  .ach-sticky { position: relative; height: auto; padding-block: 96px; }
  .ach-viewport { overflow-x: auto; }
  .ach-track { transform: none !important; }
  .ach-card.center { transform: none; }
  .brand:hover .brand-mark { transform: none; }
}
