/* Jimin Park · a digital name card that unfolds into a Now · Built · Before board. One visual system:
   the card's warm paper, one rust accent, round corners and soft shadows carry through the board and drawers. */
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --bg: #efeeea;
  --glow: rgba(163, 70, 29, .07);
  --surface: #ffffff;
  --surface-2: #f4f3ef;
  --surface-3: #e7e5df;
  --plate: #ffffff;
  --ink: #161719;
  --ink-2: #33353a;
  --muted: #5b5c61;
  --line: rgba(22, 23, 25, .09);
  --line-2: rgba(22, 23, 25, .16);
  --accent: #9c4219;
  --accent-soft: rgba(156, 66, 25, .09);
  --accent-ring: rgba(156, 66, 25, .34);
  --gold: #7c5200;
  --gold-soft: rgba(176, 120, 10, .13);
  --card-a: #ffffff;
  --card-b: #f6f4ef;
  --primary: #161719;
  --primary-ink: #ffffff;
  --sheen: rgba(255, 255, 255, .85);
  --sweep: rgba(255, 255, 255, .7);
  --scrim: rgba(18, 16, 14, .34);
  --shadow-card: 0 0 0 1px rgba(22, 23, 25, .06), 0 2px 3px rgba(30, 24, 18, .04), 0 12px 24px -10px rgba(30, 24, 18, .14), 0 40px 70px -30px rgba(30, 24, 18, .32);
  --shadow-soft: 0 0 0 1px rgba(22, 23, 25, .06), 0 1px 2px rgba(30, 24, 18, .05), 0 8px 22px -12px rgba(30, 24, 18, .18);
  --shadow-lift: 0 0 0 1px rgba(22, 23, 25, .07), 0 2px 4px rgba(30, 24, 18, .05), 0 18px 36px -16px rgba(30, 24, 18, .26);
  --shadow-sheet: 0 30px 90px -20px rgba(20, 14, 8, .4);
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;
  --wide: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --batang-ink: #121417;
  --batang-lime: #c2e764;
  --ml-cobalt: #2b57d9;
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #0f1012;
  --glow: rgba(240, 154, 108, .06);
  --surface: #191a1d;
  --surface-2: #222327;
  --surface-3: #2c2d32;
  --plate: #f4f3ef;
  --ink: #f1f0ec;
  --ink-2: #d7d6d2;
  --muted: #a3a3a8;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --accent: #f0a074;
  --accent-soft: rgba(240, 160, 116, .12);
  --accent-ring: rgba(240, 160, 116, .45);
  --gold: #e3bd6a;
  --gold-soft: rgba(227, 189, 106, .13);
  --card-a: #222327;
  --card-b: #18191c;
  --primary: #f1f0ec;
  --primary-ink: #111214;
  --sheen: rgba(255, 255, 255, .16);
  --sweep: rgba(255, 255, 255, .1);
  --scrim: rgba(0, 0, 0, .58);
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 30px -12px rgba(0, 0, 0, .6), 0 44px 80px -30px rgba(0, 0, 0, .8);
  --shadow-soft: 0 0 0 1px rgba(255, 255, 255, .07), 0 8px 22px -12px rgba(0, 0, 0, .6);
  --shadow-lift: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 36px -16px rgba(0, 0, 0, .7);
  --shadow-sheet: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 90px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.locked { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font: 400 16px/1.55 var(--font); color: var(--ink);
  background: radial-gradient(80vmax 60vmax at 50% 18%, var(--glow), transparent 60%) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { flex: none; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 0; letter-spacing: -.01em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nb { white-space: nowrap; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
main:focus, .board:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); text-decoration: none; font-weight: 600; }
.skip:focus { top: 10px; }

/* ---------- buttons ---------- */
.pill, .circle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft);
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  transition: background-color .2s, transform .15s var(--ease);
}
.pill { padding: 0 16px; }
.circle { width: 40px; padding: 0; }
.pill:hover, .circle:hover { background: var(--surface-2); }
.pill:active, .circle:active, .see:active, .chip:active, .act:active .act-ic { transform: scale(.96); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, filter .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn.solid { background: var(--primary); color: var(--primary-ink); }
.btn.solid:hover { opacity: .9; }
.btn.ghost { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--surface-3); }
.btn:active { transform: scale(.97); }
.badge { display: inline-flex; align-items: center; flex: none; height: 21px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 650; line-height: 1; white-space: nowrap; }
.badge.acc { background: var(--accent-soft); color: var(--accent); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.soft { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--wide); margin: 0 auto; padding: 12px 16px 4px; min-height: 60px;
  view-transition-name: topbar;
}
.top-r { display: flex; gap: 8px; margin-left: auto; }
.fold { padding-left: 10px; view-transition-name: fold; }
.host { display: none; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; padding-left: 4px; view-transition-name: host; }
[data-view='card'] .fold { display: none; }
@media (max-width: 759px) { [data-view='card'] .host { display: block; } }

/* ---------- stage ---------- */
.stage {
  display: grid; justify-items: center; align-content: center; gap: 22px;
  min-height: calc(100svh - 64px); padding: 8px 16px 28px;
}

/* ---------- the card (portrait: phones) ---------- */
.card {
  --rx: 0deg; --ry: 0deg;
  position: relative; isolation: isolate; width: min(100%, 400px);
  display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; align-items: center;
  grid-template-areas: 'photo nm' 'stmt stmt' 'aff aff' 'act act';
  padding: 22px 20px 16px; border-radius: var(--r-xl);
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .7s var(--ease);
  view-transition-name: card;
}
.card.lit { transition: transform .12s linear; }
.card-bg {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(155deg, var(--card-a) 0%, var(--card-a) 40%, var(--card-b) 100%);
  box-shadow: var(--shadow-card);
  view-transition-name: card-bg;
}
.card-main { display: contents; }
.photo {
  grid-area: photo; width: 84px; height: 84px; object-fit: cover; object-position: 50% 28%;
  border-radius: 24px; background: var(--surface-3);
  view-transition-name: photo;
}
.nm { grid-area: nm; font-size: 30px; line-height: 1.12; font-weight: 680; letter-spacing: -.025em; }
.nm .name { display: inline-block; view-transition-name: name; }
.nm .alt { display: block; width: fit-content; margin-top: 6px; font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--muted); view-transition-name: alt; }
.url, .role-line, .stats { display: none; }
.stmt { grid-area: stmt; margin-top: 18px; font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; view-transition-name: stmt; }
.aff {
  grid-area: aff; display: grid; gap: 14px; margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line); view-transition-name: aff;
}
.aff li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
.aff-ic { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.aff-t { display: grid; gap: 1px; padding-top: 1px; min-width: 0; }
.aff-t b { font-size: 15.5px; font-weight: 650; line-height: 1.35; }
.aff-t > span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.actions {
  grid-area: act; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.act {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0;
  border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--ink);
  font-size: 12.5px; font-weight: 600; line-height: 1.25; text-align: center; border-radius: 16px;
}
.act-email { view-transition-name: act-email; } .act-cv { view-transition-name: act-cv; }
.act-gh { view-transition-name: act-gh; } .act-vcf { view-transition-name: act-vcf; }
.act-ic {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, transform .15s var(--ease);
}
.act:hover .act-ic { background: var(--surface-3); }
.act-email .act-ic { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
.act-email:hover .act-ic { background: var(--primary); opacity: .88; }
.act:focus-visible { outline-offset: 1px; }

/* Sheen: a soft light that follows the pointer, plus one sweep on arrival. */
.sheen { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; overflow: hidden; }
.sheen::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--sheen), transparent 60%);
  mix-blend-mode: soft-light;
}
[data-theme='dark'] .sheen::before { mix-blend-mode: screen; }
.card.lit .sheen::before { opacity: 1; }
.sheen::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; opacity: 0;
  background: linear-gradient(100deg, transparent, var(--sweep) 50%, transparent);
  transform: translateX(-130%) skewX(-14deg);
}
.card.intro .sheen::after { animation: sweep 1.25s .35s var(--ease) both; }
@keyframes sweep { 0% { opacity: 0; transform: translateX(-130%) skewX(-14deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(260%) skewX(-14deg); } }
.card.intro { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: perspective(1400px) translateY(14px) rotateX(4deg); } }

/* ---------- below the card ---------- */
.below { width: min(100%, 400px); display: grid; gap: 16px; justify-items: center; view-transition-name: below; }
.below-l { display: grid; gap: 10px; justify-items: center; }
.cap { font-size: 13px; color: var(--muted); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px 0 12px;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--surface); box-shadow: var(--shadow-soft);
  font-size: 15px; font-weight: 650; letter-spacing: -.01em;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.chip:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.chip .mk { height: 22px; width: auto; }
.see {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--primary); color: var(--primary-ink);
  font-size: 16.5px; font-weight: 650; letter-spacing: -.01em;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .45);
  transition: transform .15s var(--ease);
}
.see svg { transition: transform .3s var(--ease); }
.see:hover svg { transform: translateY(2px); }

/* ---------- landscape card (tablet / desktop) ---------- */
@media (min-width: 760px) {
  .top { padding: 16px 32px 4px; }
  .stage { padding: 8px 32px 40px; gap: 26px; }
  [data-view='card'] .card {
    width: min(100%, 980px); padding: 0; column-gap: 0; align-items: stretch;
    grid-template-columns: minmax(250px, 37%) minmax(0, 1fr); grid-template-areas: 'photo main';
    border-radius: 32px;
  }
  [data-view='card'] .photo {
    width: 100%; height: auto; min-height: 100%; align-self: stretch; contain: size;
    border-radius: 32px 0 0 32px; object-position: 50% 30%;
  }
  [data-view='card'] .card-main { grid-area: main; display: flex; flex-direction: column; position: relative; padding: 42px 46px 36px 44px; }
  [data-view='card'] .url { display: block; position: absolute; top: 44px; right: 46px; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; view-transition-name: url; }
  [data-view='card'] .nm { font-size: 46px; line-height: 1.05; padding-right: 120px; }
  [data-view='card'] .nm .alt { display: inline-block; margin: 0 0 0 10px; font-size: 22px; }
  [data-view='card'] .stmt { margin-top: 16px; font-size: 18px; max-width: 32em; }
  [data-view='card'] .aff { gap: 14px; margin-top: 24px; padding-top: 22px; }
  [data-view='card'] .stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
    margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); view-transition-name: stats;
  }
  .stats li { display: grid; gap: 2px; align-content: start; }
  .stats b { font-size: 28px; line-height: 1.1; font-weight: 680; letter-spacing: -.02em; }
  .stats span { font-size: 13px; line-height: 1.35; color: var(--muted); }
  [data-view='card'] .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 28px; border-top: 0; }
  [data-view='card'] .act { flex-direction: row; gap: 4px; height: 44px; padding: 0 16px 0 4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; transition: background-color .2s; }
  [data-view='card'] .act:hover { background: var(--surface-3); }
  [data-view='card'] .act .act-ic { width: 36px; height: 36px; background: transparent; box-shadow: none; }
  [data-view='card'] .act-email { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
  [data-view='card'] .act-email:hover { background: var(--primary); opacity: .9; }
  [data-view='card'] .act-email .act-ic { background: transparent; }
  [data-view='card'] .below { width: min(100%, 980px); grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: stretch; }
  [data-view='card'] .below-l { display: flex; align-items: center; gap: 14px; justify-items: start; flex-wrap: wrap; }
  [data-view='card'] .see { width: auto; padding: 0 24px 0 28px; }
}
@media (min-width: 760px) and (max-width: 960px) {
  [data-view='card'] .card-main { padding: 34px 32px 30px 32px; }
  [data-view='card'] .url { top: 36px; right: 32px; }
  [data-view='card'] .nm { font-size: 38px; padding-right: 0; }
  [data-view='card'] .url { display: none; }
  [data-view='card'] .nm .alt { display: block; margin: 6px 0 0; font-size: 19px; }
  [data-view='card'] .stmt { font-size: 16.5px; }
  [data-view='card'] .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  [data-view='card'] .actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-top: 22px; }
  [data-view='card'] .act { flex-direction: column; height: auto; gap: 6px; padding: 4px 0; background: none; box-shadow: none; font-size: 12.5px; }
  [data-view='card'] .act:hover { background: none; }
  [data-view='card'] .act .act-ic { width: 46px; height: 46px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
  [data-view='card'] .act-email { background: none; color: var(--ink); }
  [data-view='card'] .act-email .act-ic { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
}

/* ---------- the card, folded into the board's profile header ---------- */
[data-view='open'] .stage { min-height: 0; display: block; max-width: var(--wide); margin: 0 auto; padding: 8px 16px 0; }
[data-view='open'] .below { display: none; }
[data-view='open'] .card {
  width: 100%; transform: none; padding: 16px; border-radius: 26px; column-gap: 14px; row-gap: 0;
  grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: 'photo nm' 'photo role' 'act act';
}
[data-view='open'] .photo { width: 56px; height: 56px; border-radius: 18px; }
[data-view='open'] .nm { font-size: 21px; align-self: end; }
[data-view='open'] .nm .alt { display: inline-block; margin: 0 0 0 6px; font-size: 15px; }
[data-view='open'] .role-line { display: block; grid-area: role; align-self: start; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); view-transition-name: role; }
[data-view='open'] :is(.stmt, .aff, .stats, .url) { display: none; }
[data-view='open'] .actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 0; border-top: 0; }
[data-view='open'] .act .act-ic { width: 42px; height: 42px; }
[data-view='open'] .act-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 760px) {
  [data-view='open'] .stage { padding: 8px 32px 0; }
  [data-view='open'] .card { padding: 18px 20px; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: 'photo nm act' 'photo role act'; column-gap: 16px; }
  [data-view='open'] .photo { width: 64px; height: 64px; border-radius: 20px; }
  [data-view='open'] .nm { font-size: 23px; }
  [data-view='open'] .actions { margin: 0; align-self: center; }
  [data-view='open'] .act { flex-direction: row; gap: 2px; height: 42px; padding: 0 14px 0 2px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
  [data-view='open'] .act:hover { background: var(--surface-3); }
  [data-view='open'] .act .act-ic { width: 38px; height: 38px; background: transparent; box-shadow: none; }
  [data-view='open'] .act-email { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
  [data-view='open'] .act-email:hover { background: var(--primary); opacity: .9; }
  [data-view='open'] .act-email .act-ic { background: transparent; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  [data-view='open'] .act { width: 42px; padding: 0; justify-content: center; }
}
@media (min-width: 1100px) {
  [data-view='open'] .act-l { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

/* ---------- the board ---------- */
.board { display: none; }
[data-view='open'] .board { display: block; max-width: var(--wide); margin: 0 auto; padding: 0 16px 40px; view-transition-name: board; }
.summary { display: grid; gap: 16px; padding: 22px 2px 4px; }
.statement { font-size: 17px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; max-width: 62ch; }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-soft); overflow: hidden; }
.nums li { min-width: 0; }
.nums li + li { border-left: 1px solid var(--line); }
.num {
  width: 100%; height: 100%; display: flex; flex-direction: column; gap: 3px; padding: 13px 10px 13px 14px;
  border: 0; border-radius: 0; background: none; text-align: left; cursor: pointer; transition: background-color .15s;
}
div.num { cursor: default; }
button.num:hover { background: var(--surface-2); }
.num:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.num-n { font-size: 24px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.num-l { font-size: 12px; line-height: 1.3; color: var(--muted); }

/* segmented control (phones, tablets) */
.seg {
  position: sticky; top: 0; z-index: 5; --seg: 0;
  margin: 18px -16px 0; padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.seg-in { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.seg-ind {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 12px -6px rgba(0, 0, 0, .25);
  transform: translateX(calc(var(--seg) * 100%)); transition: transform .32s var(--ease);
}
[data-theme='dark'] .seg-ind { background: #3a3b41; }
.seg:has(~ .viewport.dragging) .seg-ind { transition: none; }
.seg-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s;
}
.seg-btn[aria-selected='true'], .seg-btn:hover { color: var(--ink); }
.seg-btn:focus-visible { outline-offset: -2px; border-radius: 999px; }
.dots { display: inline-flex; }
.dots i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--surface-3); }
.dots i + i { margin-left: -2px; }
.seg-btn[aria-selected='true'] .dots i { box-shadow: 0 0 0 1.5px var(--surface); }
[data-theme='dark'] .seg-btn[aria-selected='true'] .dots i { box-shadow: 0 0 0 1.5px #3a3b41; }
.dot-batang { background: var(--batang-ink); }
[data-theme='dark'] .dot-batang { background: var(--batang-lime); }
.dot-ml4sci { background: var(--ml-cobalt); }

.viewport { position: relative; overflow: hidden; overflow: clip; touch-action: pan-y; transition: height .32s var(--ease); margin-top: 6px; }
.cols { display: flex; align-items: flex-start; transition: transform .32s var(--ease); }
.viewport.dragging .cols { transition: none; }
.col { flex: 0 0 100%; min-width: 0; }

/* columns */
.col-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 12px; }
.col-h h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.col-h .cap { text-align: right; }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.col-b { display: grid; gap: 12px; }
.grp { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); padding: 8px; }
.grp-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.2; font-weight: 650; color: var(--muted); letter-spacing: .02em; padding: 10px 10px 6px; }
.grp-h .n { font-size: 11px; font-weight: 500; line-height: 1; padding: 3px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

.list { display: grid; }
.item {
  position: relative; width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) 16px; gap: 10px; align-items: start;
  padding: 10px; border: 0; border-radius: var(--r-sm); background: none; color: inherit; text-align: left; font: inherit;
  transition: background-color .15s, opacity .2s, box-shadow .2s;
}
button.item { cursor: pointer; }
.item.static { grid-template-columns: 52px minmax(0, 1fr); }
button.item:hover { background: var(--surface-2); }
.item:focus-visible { outline-offset: -2px; border-radius: var(--r-sm); }
.rail { font-size: 12px; font-weight: 500; line-height: 1.6; color: var(--muted); letter-spacing: -.03em; padding-top: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.it-main { display: grid; gap: 5px; min-width: 0; }
.it-title { font-size: 15px; line-height: 1.38; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.it-meta { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.it-meta .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.item.compact .it-title { font-size: 14.5px; }
.chev { width: 16px; height: 16px; color: var(--muted); margin-top: 3px; transition: transform .2s var(--ease), color .2s; }
button.item:hover .chev { transform: translateX(2px); color: var(--ink); }

/* connected highlight */
.rel-on [data-id] { transition: opacity .2s, background-color .2s, box-shadow .2s; }
.rel-on .item:not(.is-src):not(.is-rel) { opacity: .4; }
.rel-on .prod:not(.is-rel) { opacity: .6; }
.item.is-rel { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent-ring); }
.item.is-rel .rail { color: var(--accent); }
.item.is-src { background: var(--surface-2); }
.lnk { display: none; flex: none; align-items: center; height: 21px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: var(--accent); color: var(--surface); white-space: nowrap; }
.rel-on .is-src .lnk { display: inline-flex; }
.col-note { font-size: 13.5px; line-height: 1.55; color: var(--muted); padding: 4px 6px 0; }

.more {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; cursor: pointer; text-align: left;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-soft); color: var(--ink); transition: background-color .15s;
}
.more:hover { background: var(--surface-2); }
.more-ic { width: 38px; height: 38px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); }
.more-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.more-t b { font-size: 15px; font-weight: 650; }
.more-t span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* product cards: each keeps its own brand colours */
.prods { display: grid; gap: 12px; }
.prod {
  --pb: var(--batang-ink); --pa: var(--batang-lime); --pt: #f3f2ee; --pm: rgba(243, 242, 238, .76);
  position: relative; isolation: isolate; overflow: hidden; padding: 18px 18px 16px; border-radius: var(--r-lg);
  background: var(--pb); color: var(--pt); box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s, opacity .2s;
}
.prod::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--pa) 16%, transparent), transparent 60%); }
.prod-ml4sci { --pb: var(--ml-cobalt); --pa: #ffffff; --pt: #ffffff; --pm: rgba(255, 255, 255, .9); }
.prod-ml4sci::before { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .16), transparent 60%); }
.prod:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
[data-theme='dark'] .prod-batang, [data-theme='dark'] .brand-band.prod-batang { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.prod:has(.stretch:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.prod.is-rel { box-shadow: 0 0 0 3px var(--accent-ring); }
.prod-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.prod-mark { height: 36px; width: auto; }
.prod-name h3 { font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.hg { font-weight: 500; color: var(--pm); font-size: .84em; }
.stretch { all: unset; cursor: pointer; }
.stretch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.prod-host {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 3px; margin: 3px 0 0 -8px; height: 26px; padding: 0 8px;
  border-radius: 999px; font-size: 12.5px; line-height: 1; color: var(--pm); text-decoration: none; transition: background-color .15s, color .15s;
}
.prod-host:hover { background: color-mix(in srgb, var(--pt) 14%, transparent); color: var(--pt); }
.prod-host:focus-visible { outline-color: var(--pa); outline-offset: 0; }
.prod-host .ext { width: 14px; height: 14px; }
.prod-gloss { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--pm); }
.prod-gloss i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--pa); margin-right: 4px; }
.prod-hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--pt) 18%, transparent); }
.prod-hl dt { font-size: 21px; line-height: 1.1; font-weight: 720; letter-spacing: -.03em; color: var(--pa); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prod-hl dd { margin-top: 3px; font-size: 12px; line-height: 1.3; color: var(--pm); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 4px var(--accent-ring); } }
.col.flash .prods { animation: flash 1.1s var(--ease); border-radius: var(--r-lg); }

/* footer (board only) */
.foot { display: none; }
[data-view='open'] .foot {
  display: grid; gap: 10px; max-width: var(--wide); margin: 0 auto; padding: 26px 16px 44px;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 550; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 959px) {
  .col-h { padding: 6px 6px 10px; }
  .col-h h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .col-h .cap { text-align: left; }
}
@media (min-width: 760px) {
  [data-view='open'] .board { padding: 0 32px 48px; }
  [data-view='open'] .foot { padding: 28px 32px 48px; }
  .summary { padding-top: 26px; }
  .statement { font-size: 18px; }
  .seg { margin: 22px -32px 0; padding: 10px 32px; }
}
/* three columns side by side */
@media (min-width: 960px) {
  .summary { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: 28px 4px 4px; }
  .statement { font-size: 18.5px; line-height: 1.55; }
  .nums { grid-template-columns: repeat(4, auto); }
  .num { padding: 13px 22px 13px 18px; }
  .num-n { font-size: 28px; }
  .seg { display: none; }
  .viewport { overflow: visible; height: auto !important; margin-top: 30px; }
  .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; transform: none !important; }
}
@media (min-width: 960px) and (max-width: 1180px) {
  .summary { grid-template-columns: 1fr; gap: 18px; }
  .nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .item { grid-template-columns: 44px minmax(0, 1fr) 14px; gap: 8px; }
  .item.static { grid-template-columns: 44px minmax(0, 1fr); }
  .rail { font-size: 11.5px; }
  .prod-hl dt { font-size: 18px; }
}

/* ---------- drawer (side) / bottom sheet (phones) ---------- */
.layer { position: fixed; inset: 0; z-index: 40; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .3s var(--ease); }
.layer.open .scrim { opacity: 1; }
.drawer {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 90dvh; display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-sheet);
  transform: translateY(102%); transition: transform .38s var(--ease); outline: none;
}
.layer.open .drawer { transform: translateY(0); }
.d-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 20px 14px 10px 20px; flex: none; touch-action: none; }
.grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line-2); }
.d-kicker { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-head .circle { box-shadow: inset 0 0 0 1px var(--line); background: var(--surface-2); }
.d-head .circle:hover { background: var(--surface-3); }
.d-back { margin-left: -6px; }
.d-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(30px + env(safe-area-inset-bottom)); display: grid; gap: 18px; align-content: start; }
.d-title { font-size: 23px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; text-wrap: pretty; }
.d-title .hg { color: inherit; opacity: .72; }
.d-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.lead { font-size: 16px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.venue, .authors { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin-top: -8px; }
.authors b { color: var(--ink); font-weight: 650; }
.authors + .venue { margin-top: -14px; }
.plain { font-size: 15px; line-height: 1.6; }
.note { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.kv { display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; font-size: 14.5px; line-height: 1.5; }
.kv dt { color: var(--muted); font-weight: 550; }
.d-sec { display: grid; gap: 10px; }
.d-sec h3 { font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:lang(ko) .d-sec h3 { letter-spacing: .02em; }
.bul { display: grid; gap: 8px; }
.bul li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.55; }
.bul li::before { content: ''; position: absolute; left: 3px; top: .64em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .75; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12.5px; font-weight: 550; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.figs { display: grid; gap: 14px; }
.fig { display: grid; gap: 8px; }
.fig-box { border-radius: var(--r-md); overflow: hidden; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); padding: 12px; }
.fig-box img { width: 100%; height: auto; }
.fig figcaption { font-size: 13px; line-height: 1.45; color: var(--muted); }
.list.in-drawer { margin: 0 -10px; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.brand { background: var(--pb); color: var(--pt); }
.btn.brand.prod-batang { --pb: var(--batang-ink); --pt: #f3f2ee; }
.btn.brand.prod-ml4sci { --pb: var(--ml-cobalt); --pt: #ffffff; }
[data-theme='dark'] .btn.brand.prod-batang { --pb: var(--batang-lime); --pt: var(--batang-ink); }
.btn.brand:hover { filter: brightness(1.1); }
.brand-band {
  --pb: var(--batang-ink); --pa: var(--batang-lime); --pt: #f3f2ee; --pm: rgba(243, 242, 238, .78);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; border-radius: var(--r-lg); background: var(--pb); color: var(--pt);
}
.brand-band.prod-ml4sci { --pb: var(--ml-cobalt); --pa: #ffffff; --pt: #ffffff; --pm: rgba(255, 255, 255, .9); }
.brand-band .prod-mark { height: 44px; }
.brand-band .prod-gloss { margin-top: 6px; font-size: 14.5px; }
.prod-hl.big { margin: 0; padding: 16px; border: 0; border-radius: var(--r-lg); background: var(--surface-2); --pa: var(--ink); --pm: var(--muted); }
.stages { display: grid; gap: 10px; }
.stages li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 10px; font-size: 14.5px; line-height: 1.45; }
.stages .st-n { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500; background: var(--accent-soft); color: var(--accent); }
.stages li > span:last-child { color: var(--muted); }
.tl { display: grid; gap: 12px; }
.tl li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; font-size: 14.5px; line-height: 1.45; }
.tl li.on { padding: 10px 12px; margin: 0 -12px; border-radius: var(--r-sm); background: var(--accent-soft); }
.tl-p { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.tl-w { display: grid; gap: 2px; min-width: 0; }
.tl-w b { font-weight: 650; }
.tl-w span { color: var(--ink-2); }
.tl-w em { font-style: normal; color: var(--muted); font-size: 13.5px; }
.skills { display: grid; gap: 12px; }
.skills dt { font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.contact { display: grid; }
.contact a { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.contact a svg { color: var(--muted); }
.contact a:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .tl li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv div { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
}
@media (min-width: 760px) {
  .drawer { left: auto; top: 12px; bottom: 12px; right: 12px; width: min(580px, calc(100vw - 48px)); max-height: none; border-radius: var(--r-xl); transform: translateX(calc(100% + 24px)); }
  .layer.open .drawer { transform: translateX(0); }
  .grab { display: none; }
  .d-head { padding: 18px 18px 10px 30px; }
  .d-body { padding: 6px 30px 40px; gap: 20px; }
  .d-title { font-size: 26px; }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  padding: 12px 18px; border-radius: 999px; background: var(--primary); color: var(--primary-ink);
  font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- the morph (View Transitions) ---------- */
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.22, .9, .22, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
/* The card surface is drawn by the group itself so its corners stay round while it resizes. */
::view-transition-old(card-bg), ::view-transition-new(card-bg) { display: none; }
::view-transition-group(card-bg) { background: var(--card-a); border-radius: 28px; box-shadow: var(--shadow-card); }
::view-transition-old(card), ::view-transition-new(card) { display: none; }
::view-transition-group(photo) { border-radius: 22px; overflow: hidden; }
::view-transition-old(photo), ::view-transition-new(photo) { height: 100%; object-fit: cover; object-position: 50% 30%; }
::view-transition-old(stmt), ::view-transition-old(aff), ::view-transition-old(stats), ::view-transition-old(url), ::view-transition-old(below), ::view-transition-old(host), ::view-transition-old(fold) { animation: vt-out .12s ease-in both; }
::view-transition-new(host), ::view-transition-new(fold) { animation: vt-in .3s .3s ease-out both; }
::view-transition-new(stmt), ::view-transition-new(aff), ::view-transition-new(stats), ::view-transition-new(url), ::view-transition-new(below) { animation: vt-in .35s .28s ease-out both; }
::view-transition-new(board) { animation: vt-up .5s .24s var(--ease) both; }
::view-transition-old(board) { animation: vt-out .18s ease-in both; }
::view-transition-new(role) { animation: vt-in .3s .3s ease-out both; }
::view-transition-old(role) { animation: vt-out .15s ease-in both; }
/* The card stays on top while it folds; the board rises from underneath it. */
::view-transition-group(card), ::view-transition-group(card-bg), ::view-transition-group(photo), ::view-transition-group(name), ::view-transition-group(alt),
::view-transition-group(role), ::view-transition-group(stmt), ::view-transition-group(aff), ::view-transition-group(stats), ::view-transition-group(url),
::view-transition-group(act-email), ::view-transition-group(act-cv), ::view-transition-group(act-gh), ::view-transition-group(act-vcf) { z-index: 3; }
::view-transition-group(board), ::view-transition-group(below) { z-index: 1; }
::view-transition-group(topbar) { z-index: 4; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes vt-up { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  .card { transform: none !important; }
  .sheen::before { display: none; }
}
