/* ==========================================================================
   ivLis STUDIO — portfolio
   Simple, bright and bouncy: flat colours (no gradients), bold type, springs,
   and physical 3D toys that react to scroll and touch.
   ========================================================================== */

:root {
  --grey50: #f9fafb; --grey100: #f2f4f6; --grey200: #e5e8eb; --grey300: #d1d6db; --grey400: #b0b8c1;
  --grey500: #8b95a1; --grey600: #6b7684; --grey700: #4e5968; --grey800: #333d4b; --grey900: #191f28;
  --blue50: #e8f3ff; --blue100: #c9e2ff; --blue200: #90c2ff; --blue300: #64a8ff; --blue400: #4593fc;
  --blue500: #3182f6; --blue600: #2272eb; --blue700: #1b64da; --blue800: #1957c2;
  --green50: #e9f9f1; --green500: #03b26c; --green600: #029359;
  --red50: #ffeeee; --red500: #f04452;
  --yellow500: #ffc342; --purple500: #6d5cf5;

  --text: var(--grey900);
  --text-2: var(--grey700);
  --text-3: var(--grey600);
  --f: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  --nav-h: 64px;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1180px;
  --r-xl: 32px;
  --r-l: 24px;
  --r-m: 18px;
  --shadow-s: 0 2px 10px rgba(2, 32, 71, .07);
  --shadow-m: 0 14px 34px rgba(2, 32, 71, .11);
  --shadow-l: 0 34px 80px rgba(2, 32, 71, .17);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --bounce: cubic-bezier(.34, 1.8, .64, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* damped springs (ζ≈.55 → 13% overshoot, ζ≈.36 → 30% overshoot) */
    --spring: linear(0, 0.05, 0.173, 0.335, 0.51 10%, 0.676, 0.821, 0.938, 1.025 20%, 1.083, 1.115, 1.126, 1.122 30%, 1.108, 1.088, 1.066, 1.045 40%, 1.026, 1.01, 0.999, 0.991 50%, 0.986, 0.984, 0.984, 0.986 60%, 0.988, 0.991, 0.994, 0.996 70%, 0.998, 1, 1.001, 1.002 80%, 1.002, 1.001, 1);
    --bounce: linear(0, 0.041, 0.15, 0.305, 0.485 8.3%, 0.671, 0.848, 1.002, 1.126 16.7%, 1.217, 1.273, 1.296, 1.292 25%, 1.265, 1.223, 1.171, 1.115 33.3%, 1.062, 1.013, 0.973, 0.943 41.7%, 0.923, 0.913, 0.912, 0.918 50%, 0.929, 0.944, 0.96, 0.977 58.3%, 0.992, 1.004, 1.014, 1.021 66.7%, 1.025, 1.026, 1.025, 1.022 75%, 1.018, 1.013, 1.008, 1.004 83.3%, 1, 0.997, 0.994, 0.993 91.7%, 0.992, 0.993, 1);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: #fff; color: var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  overflow-x: clip;
}
body { font-family: var(--f); font-size: 17px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: normal; }
b, strong { font-weight: 700; }
::selection { background: var(--blue100); color: var(--grey900); }
:focus-visible { outline: 3px solid var(--blue300); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 400; padding: 12px 18px; border-radius: 12px; background: var(--grey900); color: #fff; font-weight: 700; transition: top .3s var(--ease-out); }
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.eyebrow { margin-bottom: 14px; font-size: 17px; font-weight: 700; color: var(--blue500); letter-spacing: -.01em; }
.eyebrow--light { color: #fff; }
.h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; line-height: 1.32; letter-spacing: -.025em; color: var(--grey900); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.38; letter-spacing: -.02em; color: var(--grey900); }

/* ---------- pill buttons (Toss style: label + dark round arrow) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 22px;
  border-radius: 999px; background: var(--grey100); color: var(--grey900);
  font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .6s var(--bounce), background-color .2s, box-shadow .3s;
}
.pill:hover { background: var(--grey200); }
.pill:active { transform: scale(.93); transition: transform .12s var(--ease-out); }
.pill__icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grey900); color: #fff; transition: transform .6s var(--bounce); }
.pill__icon svg { width: 18px; height: 18px; }
.pill:hover .pill__icon { transform: translateX(3px) rotate(-8deg) scale(1.06); }
.pill--white { background: #fff; }
.pill--white:hover { background: var(--grey50); box-shadow: 0 10px 26px rgba(0, 27, 55, .18); }
.pill--lg { height: 64px; padding: 0 10px 0 28px; font-size: 21px; }
.pill--lg .pill__icon { width: 44px; height: 44px; }
.pill--line { padding: 0 24px; background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .78); font-size: 19px; }
.pill--line:hover { background: rgba(255, 255, 255, .14); }
.pill--line.is-done { background: #fff; color: var(--blue600); box-shadow: none; }

/* ==========================================================================
   NAV + TICKS + GL LAYER
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  transition: transform .7s var(--spring), box-shadow .3s;
}
.nav.is-hidden { transform: translateY(-104%); transition: transform .45s var(--ease-out), box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--grey200); }
.nav__inner { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 6vw, 96px); display: flex; align-items: center; gap: 20px; }
.nav__logo { display: inline-flex; font-size: 25px; line-height: 1; letter-spacing: -.02em; transition: transform .6s var(--bounce); }
.nav__logo:hover { transform: rotate(-4deg) scale(1.06); }
.nav__iv { font-weight: 800; }
.nav__lis { font-weight: 250; }
.nav__links { display: flex; gap: 4px; margin: 0 auto; }
.nav__links a { padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--grey700); transition: background-color .2s, color .2s; }
.nav__links a:hover { background: var(--grey100); color: var(--grey900); }
.nav__links a.is-active { color: var(--blue500); }
.nav__cta { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--grey100); font-size: 15px; font-weight: 600; color: var(--grey800); transition: transform .5s var(--bounce), background-color .2s; }
.nav__cta:hover { background: var(--grey200); }
.nav__cta:active { transform: scale(.92); transition-duration: .1s; }

.ticks { position: fixed; left: 22px; top: 50%; z-index: 90; transform: translateY(-50%); display: flex; flex-direction: column; }
.tick { position: relative; display: block; width: 30px; height: 14px; }
.tick::before { content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 2px; border-radius: 2px; background: var(--grey300); transition: width .55s var(--bounce), background-color .3s; }
.tick.is-active::before { width: 22px; background: var(--grey900); }
.tick span { position: absolute; left: 32px; top: 50%; padding: 3px 8px; border-radius: 6px; background: var(--grey900); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-6px, -50%); pointer-events: none; transition: opacity .2s, transform .45s var(--bounce); }
.tick:hover span, .tick:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.ticks.is-light .tick::before { background: rgba(255, 255, 255, .5); }
.ticks.is-light .tick.is-active::before { background: #fff; }

/* the WebGL layer sits above the page (toys are in front of cards) but below the nav */
.gl { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; }
.no-webgl .gl { display: none; }
html.is-toy-hover, html.is-toy-hover * { cursor: grab !important; }
html.is-grabbing, html.is-grabbing * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

.ripple { position: fixed; z-index: 55; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); pointer-events: none; animation: ripple .7s var(--ease-out) forwards; }
@keyframes ripple { to { transform: scale(9); opacity: 0; } }

/* ==========================================================================
   HERO — blue stage full of toys
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; }
.hero__stage {
  --hx: 16px; --hb: 16px; --hr: 32px; --ht: 1;
  position: absolute; left: var(--hx); right: var(--hx); bottom: var(--hb); top: calc(var(--nav-h) * var(--ht));
  border-radius: var(--hr); background: var(--blue500); color: #fff; overflow: hidden;
}
.hero__copy { position: absolute; left: clamp(24px, 6.5vw, 104px); right: clamp(24px, 6.5vw, 104px); top: clamp(56px, 11vh, 130px); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 999px; background: #fff; color: var(--grey900); font-size: 15px; font-weight: 700; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue500); animation: dot 1.6s var(--ease-out) infinite; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(49, 130, 246, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(49, 130, 246, 0); } }
.hero__title { margin: 22px 0 18px -.04em; font-size: clamp(46px, 7.4vw, 108px); font-weight: 800; line-height: 1.06; letter-spacing: -.04em; }
.hero__line { display: block; }
.hero__title .wd { display: inline-block; }
.hero__sub { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; letter-spacing: -.015em; }
.hero__cta { margin-top: clamp(22px, 3.4vh, 36px); }
/* live "latest release" pill: top-right of the stage on desktop, under the button on phones */
.hero__news { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--grey800); font-size: 14px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 27, 55, .14); transition: background-color .2s, transform .5s var(--bounce); }
.hero__news:hover { background: #fff; transform: translateY(-2px); }
.hero__news-tag { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; background: var(--blue700); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.hero__news-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__news-go { flex-shrink: 0; color: var(--grey500); font-weight: 700; }
.hero__news--corner { position: absolute; right: 20px; top: 20px; }
.hero__news--flow { display: none; margin-top: 20px; }

/* pre-boot: hero copy waits for the intro (revealed by JS, or by the boot-failed safety net) */
.js.is-loading .hero__copy > *, .js.is-loading .hero__news { opacity: 0; }

/* ==========================================================================
   PHILOSOPHY — one short line builds itself; toys are thrown in around it
   ========================================================================== */
.philo { position: relative; height: 230vh; }
.philo__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--gutter) 6vh; text-align: center; }
.philo__eyebrow { margin-bottom: 26px; }
.philo__text { font-size: clamp(40px, 7vw, 100px); font-weight: 800; line-height: 1.24; letter-spacing: -.04em; transform-origin: 50% 70%; }
.philo__line { display: block; white-space: nowrap; }
.philo__text .w { display: inline-block; color: var(--grey200); transform: translateY(.24em) scale(.88) rotate(var(--r, -3deg)); transform-origin: 50% 100%; transition: color .3s var(--ease-out), transform .6s var(--ease-out); }
.philo__line:nth-child(2) .w { --r: 3deg; }
.philo__line .w + .w { --r: 2deg; }
.philo__text .w.is-on { color: var(--grey900); transform: none; transition: color .25s var(--ease-out), transform .8s var(--bounce); }
.philo__text .w.is-pop { animation: wordPop .85s var(--ease-out) both; }
@keyframes wordPop {
  0% { transform: translateY(.3em) scale(.8) rotate(var(--r, -3deg)); }
  40% { transform: translateY(-.14em) scale(1.08) rotate(calc(var(--r, -3deg) * -.6)); }
  68% { transform: translateY(.04em) scale(.98); }
  100% { transform: none; }
}
/* flat stickers behind the key words */
.philo__text em { position: relative; z-index: 0; display: inline-block; padding: 0 .14em; margin: 0 .02em; transition: color .3s var(--ease-out); }
.philo__text em::before { content: ''; position: absolute; z-index: -1; inset: .1em 0 .02em; border-radius: .24em; background: var(--st); opacity: 0; transform: scale(.2, .4) rotate(-8deg); transition: transform .5s var(--ease-out), opacity .2s; }
.philo__text .w.is-on em::before { opacity: 1; transform: rotate(var(--sr, -2deg)); transition: transform .9s .1s var(--bounce), opacity .2s .1s; }
.w--idea { --st: var(--yellow500); }
.w--thing { --st: var(--blue500); --sr: 1.5deg; }
.philo__text .w--thing.is-on em { color: #fff; }
/* a little spark bursts out from behind each sticker */
.spark { position: absolute; left: 50%; top: 55%; z-index: -2; pointer-events: none; }
.spark i { position: absolute; left: -.07em; top: -.07em; width: .14em; height: .14em; border-radius: 50%; background: var(--c); opacity: 0; }
.w.is-on .spark i { animation: spark .9s .14s var(--ease-out) both; }
@keyframes spark {
  0% { opacity: 1; transform: rotate(var(--a)) translateX(.3em) scale(.4); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d, 2.1em)) scale(1); }
}
/* the whole line wobbles once it's complete */
.philo__text.is-done { animation: jelly .9s var(--ease-out); }
@keyframes jelly { 0% { transform: none; } 22% { transform: scale(1.045, .94); } 46% { transform: scale(.985, 1.03); } 72% { transform: scale(1.01, .99); } 100% { transform: none; } }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { padding: clamp(110px, 14vw, 190px) 0 clamp(80px, 10vw, 140px); }
.sec-head { margin-bottom: clamp(44px, 6vw, 80px); }
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-bottom: clamp(100px, 12vw, 170px); }
.profile__media { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-xl); background: var(--grey100); transition: transform .8s var(--bounce); }
.profile__media:hover { transform: rotate(-2deg) scale(1.02); }
.profile__img { width: 100%; height: 100%; object-fit: cover; }
.profile__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease-out); }
.profile__video.is-playing { opacity: 1; }
.profile__name { font-size: clamp(64px, 9vw, 128px); font-weight: 250; line-height: 1; letter-spacing: -.045em; }
.profile__name b { font-weight: 800; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 22px; padding: 8px 14px; border-radius: 999px; background: var(--blue50); color: var(--blue600); font-size: 15px; font-weight: 700; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue500); }
.profile__bio { max-width: 30em; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.7; color: var(--grey700); }
.facts { display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 4vw, 56px); margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--grey200); }
.facts li { display: flex; align-items: baseline; gap: 4px; }
.facts b { display: inline-block; font-size: clamp(30px, 3vw, 42px); font-weight: 800; letter-spacing: -.03em; color: var(--grey900); font-variant-numeric: tabular-nums; }
.facts span { font-size: 16px; font-weight: 600; color: var(--grey600); }

/* skills playground */
.play { margin-bottom: clamp(100px, 12vw, 170px); }
.play__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 32px; margin-bottom: 22px; }
.play__desc { margin-top: 6px; font-size: 17px; color: var(--grey600); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--grey100); font-size: 14px; font-weight: 600; color: var(--grey700); }
.legend li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
[data-c="fe"] { --c: var(--blue500); --cb: var(--blue500); --ct: #fff; }
[data-c="be"] { --c: var(--green500); --cb: #fff; --ct: var(--grey900); }
[data-c="ops"] { --c: var(--grey800); --cb: var(--grey800); --ct: #fff; }
[data-c="ai"] { --c: var(--yellow500); --cb: var(--yellow500); --ct: var(--grey900); }
[data-c="gh"] { --c: var(--purple500); --cb: var(--purple500); --ct: #fff; }
.play__box { position: relative; height: clamp(340px, 36vw, 460px); overflow: hidden; border-radius: var(--r-xl); background: var(--grey100); }
.chips { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: flex-end; gap: 10px; padding: 22px; }
.chip { display: flex; touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: grab; }
.is-touch .chip { cursor: pointer; }
.chip__in {
  display: inline-flex; align-items: center; gap: 9px; height: 58px; padding: 0 24px 0 20px;
  border-radius: 999px; background: var(--cb); color: var(--ct);
  font-size: 20px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(2, 32, 71, .10);
}
.chip__in::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
[data-c="fe"] .chip__in::before, [data-c="ops"] .chip__in::before, [data-c="gh"] .chip__in::before { background: #fff; box-shadow: none; }
[data-c="ai"] .chip__in::before { background: var(--grey900); box-shadow: none; }
.chip.is-drag { cursor: grabbing; z-index: 5; }
.chip.is-drag .chip__in { box-shadow: 0 18px 34px rgba(2, 32, 71, .2); }
.play__box.is-live .chips { display: block; padding: 0; }
.play__box.is-live .chip { position: absolute; left: 0; top: 0; will-change: transform; }
.play__box.is-live .chip.is-waiting { visibility: hidden; }

/* interests — Toss style 3-up cards */
.interests .h3 { margin-bottom: 24px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card3__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-l); background: var(--grey100); transition: transform .7s var(--bounce); }
.card3:hover .card3__media { transform: translateY(-8px) rotate(-1deg); }
.card3__cv { width: 100%; height: 100%; }
.card3__title { margin-top: 18px; font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.card3__desc { margin-top: 2px; font-size: 16px; color: var(--grey600); }

/* ==========================================================================
   JOURNEY — sticky staircase, a ball hops between the years
   ========================================================================== */
.journey { position: relative; height: 330vh; }
.journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.journey__grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-rows: auto auto;
  grid-template-areas: "head stairs" "eras stairs"; gap: clamp(26px, 3.4vw, 44px) clamp(32px, 6vw, 96px);
}
.journey__head { grid-area: head; align-self: end; }
.eras { grid-area: eras; align-self: start; display: grid; }
.era { grid-area: 1 / 1; opacity: 0; transform: translateY(28px); pointer-events: none; transition: opacity .14s, transform .3s var(--ease-out); }
.era.is-past { transform: translateY(-22px); }
.era.is-active { opacity: 1; transform: none; pointer-events: auto; transition: opacity .3s .15s, transform .85s .15s var(--spring); }
.era__label { font-size: 15px; font-weight: 700; color: var(--blue500); }
.era__year { margin: 2px 0 14px; font-size: clamp(28px, 2.8vw, 38px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.era__list li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--grey200); font-size: clamp(17px, 1.45vw, 20px); font-weight: 500; color: var(--grey700); }
.era__list li::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--blue500); transform: translateY(-3px); }
.era__list b { color: var(--grey900); }
.era__list li { transition: opacity .14s, transform .3s var(--ease-out); }
.era:not(.is-active) .era__list li { opacity: 0; transform: translateY(14px); }
.era.is-active .era__list li { transition: opacity .3s .22s, transform .8s .22s var(--bounce); }
.era.is-active .era__list li:nth-child(2) { transition-delay: .29s; }
.era.is-active .era__list li:nth-child(3) { transition-delay: .36s; }

.stairs { grid-area: stairs; position: relative; height: clamp(320px, 58vh, 540px); display: flex; align-items: flex-end; gap: 12px; }
.step {
  position: relative; flex: 1; height: var(--h); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: clamp(16px, 2vw, 26px); border-radius: 26px 26px 14px 14px; background: var(--sb); color: var(--sc);
  transform-origin: 50% 100%;
}
.step[data-i="0"] { --h: 34%; --sb: var(--grey100); --sc: var(--grey500); }
.step[data-i="1"] { --h: 60%; --sb: var(--blue100); --sc: var(--blue700); }
.step[data-i="2"] { --h: 88%; --sb: var(--blue500); --sc: #fff; }
.step__year { font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1; opacity: .55; transition: opacity .3s; }
.step.is-on .step__year { opacity: 1; }
.step__now { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--blue600); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.step.is-land { animation: stepLand .75s var(--ease-out); }
@keyframes stepLand { 0% { transform: none; } 18% { transform: scaleY(.95) scaleX(1.02); } 50% { transform: scaleY(1.015); } 100% { transform: none; } }
/* flat stand-in for the WebGL ball (no-WebGL browsers only) */
.stairs__ball { display: none; position: absolute; left: 0; top: 0; width: var(--bs, 60px); height: var(--bs, 60px); border-radius: 50%; background: var(--yellow500); box-shadow: inset -8px -10px 0 rgba(0, 0, 0, .08); will-change: transform; }
.no-webgl .stairs__ball { display: block; }

/* ==========================================================================
   PROJECTS — sticky phone + accordion
   ========================================================================== */
.work { position: relative; padding-top: clamp(90px, 11vw, 150px); }
.work__head { margin-bottom: clamp(10px, 2vw, 24px); }
.work__track { position: relative; height: calc(var(--n) * 72vh + 100vh); }
.work__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.work__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }

.acc__item { border-top: 1px solid var(--grey200); }
.acc__item:last-child { border-bottom: 1px solid var(--grey200); }
.acc__head { width: 100%; display: flex; align-items: center; gap: 14px; padding: clamp(14px, 2.2vh, 20px) 0; text-align: left; font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; letter-spacing: -.02em; color: var(--grey400); transition: color .3s; }
.acc__head:hover { color: var(--grey600); }
.acc__item.is-active .acc__head { color: var(--grey900); }
.acc__num { min-width: 1.6em; font-size: 15px; font-weight: 700; color: var(--grey400); font-variant-numeric: tabular-nums; transition: color .3s; }
.acc__item.is-active .acc__num { color: var(--blue500); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.acc__item.is-active .acc__body { grid-template-rows: 1fr; }
.acc__inner { min-height: 0; overflow: hidden; padding-left: calc(1.6em * 15 / 17 + 14px); }
.acc__cat { display: inline-block; margin-bottom: 10px; padding: 5px 10px; border-radius: 8px; background: var(--blue50); color: var(--blue600); font-size: 14px; font-weight: 700; }
.acc__desc { max-width: 27em; margin-bottom: 18px; font-size: 17px; line-height: 1.65; color: var(--grey600); }
.acc__inner .pill { margin-bottom: 24px; }
.acc__item:not(.is-active) .acc__inner > * { opacity: 0; transform: translateY(8px); }
.acc__inner > * { transition: opacity .3s .1s, transform .7s .1s var(--spring); }

.device { position: relative; height: min(76vh, 700px); display: grid; place-items: center; }
.phone {
  position: relative; height: 100%; aspect-ratio: 9 / 19.2; padding: 10px; border-radius: 54px; background: #0d1117;
  box-shadow: 0 0 0 2px #c9d1da, 0 0 0 6px #eef1f4, 0 0 0 7px #d5dbe2, var(--shadow-l);
  transform: rotate(-4deg);
}
.phone.is-hop { animation: phoneHop .9s var(--ease-out); }
@keyframes phoneHop { 0% { transform: rotate(-4deg); } 22% { transform: translateY(-16px) rotate(-6deg) scale(1.02); } 55% { transform: translateY(4px) rotate(-3.4deg); } 100% { transform: rotate(-4deg); } }
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 44px; background: #fff; isolation: isolate; }
.phone__island { position: absolute; left: 50%; top: 20px; z-index: 6; width: 31%; height: 27px; margin-left: -15.5%; border-radius: 20px; background: #000; }
.phone__status { position: absolute; left: 0; right: 0; top: 0; z-index: 5; height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 6px 30px 0 34px; font-size: 14px; font-weight: 700; color: var(--grey900); transition: color .3s; pointer-events: none; }
.phone[data-tone="dark"] .phone__status { color: #fff; }
.phone__icons { display: inline-flex; align-items: flex-end; gap: 2px; }
.phone__icons i { width: 4px; border-radius: 1px; background: currentColor; }
.phone__icons i:nth-child(1) { height: 5px; } .phone__icons i:nth-child(2) { height: 8px; } .phone__icons i:nth-child(3) { height: 11px; }
.screen { position: absolute; inset: 0; opacity: 0; transform: translateY(7%) scale(.94); transition: opacity .25s, transform .4s var(--ease-out); pointer-events: none; }
.screen.is-active { opacity: 1; transform: none; transition: opacity .3s .08s, transform .8s .08s var(--spring); pointer-events: auto; }
/* every screen is designed at 300 × (auto) CSS px and scaled to the phone (JS sets --k) */
.fit { position: absolute; left: 0; top: 0; width: 300px; height: calc(100% / var(--k, 1)); transform: scale(var(--k, 1)); transform-origin: 0 0; }

.pops { position: absolute; inset: 0; pointer-events: none; }
.pop {
  position: absolute; left: var(--px, 0%); top: var(--py, 60%); width: max-content; max-width: 250px; padding: 16px 18px;
  border-radius: 22px; background: #fff; color: var(--grey900);
  box-shadow: 0 26px 60px rgba(2, 32, 71, .2), 0 0 0 1px rgba(2, 32, 71, .05);
  opacity: 0; transform: translate(var(--pdx, 40px), 16px) scale(.55) rotate(var(--pr, -6deg));
  transition: opacity .2s, transform .35s var(--ease-out);
}
.pop.is-active { opacity: 1; transform: rotate(var(--pr, -6deg)); transition: opacity .25s .35s, transform .9s .35s var(--bounce); }
.pop[data-i="0"] { --px: -8%; --py: 58%; --pr: -5deg; --pdx: 60px; }
.pop[data-i="1"] { --px: 58%; --py: 68%; --pr: 5deg; --pdx: -60px; }
.pop[data-i="2"] { --px: -6%; --py: 18%; --pr: -6deg; --pdx: 60px; }
.pop[data-i="3"] { --px: -12%; --py: 50%; --pr: -9deg; --pdx: 70px; }
.pop[data-i="4"] { --px: 58%; --py: 62%; --pr: 4deg; --pdx: -60px; }
.pop__label { font-size: 13px; font-weight: 700; color: var(--blue500); }
.pop__main { margin-top: 3px; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.015em; }
.pop__sub { margin-top: 2px; font-size: 14px; color: var(--grey600); }
.work__dots { display: none; justify-content: center; gap: 8px; margin-top: 14px; }
.work__dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--grey300); transition: width .5s var(--bounce), background-color .3s; cursor: pointer; }
.work__dots i.is-active { width: 24px; background: var(--grey900); }

/* ==========================================================================
   PHONE SCREENS (designed at 300px wide)
   ========================================================================== */
/* ivLyrics */
.ly { height: 100%; display: flex; flex-direction: column; padding: 58px 22px 20px; background: #5b47e0; color: #fff; }
.ly__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.ly__app { display: inline-flex; align-items: center; gap: 6px; }
.ly__app::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #1ed760; }
.ly__lang { padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .2); font-size: 11px; }
.ly__view { position: relative; flex: 1; margin: 14px 0; overflow: hidden; }
.ly__list { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.ly__line { padding: 9px 0; opacity: .38; transform: scale(.94); transform-origin: 0 50%; transition: opacity .5s, transform .7s var(--spring); }
.ly__line.is-active { opacity: 1; transform: none; }
.ly__line.is-past { opacity: .5; }
.ly__o { font-size: 23px; font-weight: 800; line-height: 1.22; letter-spacing: -.02em; }
.ly__w { --p: 0%; background: linear-gradient(90deg, #fff var(--p), rgba(255, 255, 255, .45) var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ly__t { margin-top: 3px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.ly__player { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 10px 12px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(0, 0, 0, .18); }
.ly__cover { width: 42px; height: 42px; border-radius: 10px; background: #ffc342; display: grid; place-items: center; }
.ly__cover::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: #5b47e0; }
.ly__meta b { display: block; font-size: 14px; }
.ly__meta span { font-size: 12px; color: rgba(255, 255, 255, .72); }
.ly__bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.ly__bar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }

/* 단어의 숲 */
.fo { height: 100%; display: flex; flex-direction: column; padding: 60px 18px 18px; background: #fff; color: var(--grey900); }
.app-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.app-head b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.app-head span { padding: 4px 9px; border-radius: 7px; background: var(--grey100); color: var(--grey600); font-size: 11px; font-weight: 700; }
.fo__card { padding: 14px 16px; border-radius: 18px; background: var(--grey100); }
.fo__tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--green600); }
.fo__tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green500); }
.fo__before { position: relative; display: inline-block; font-size: 14px; color: var(--grey500); }
.fo__before::after { content: ''; position: absolute; left: 0; right: 0; top: 55%; height: 2px; border-radius: 2px; background: var(--red500); transform-origin: 0 50%; transform: scaleX(var(--strike, 0)); }
.fo__after { min-height: 1.5em; margin-top: 4px; font-size: 16px; font-weight: 800; letter-spacing: -.015em; }
.fo__cloud { position: relative; flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 10px 0; }
.fo__chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--green50); color: var(--green600); }
.fo__chip.is-ant { background: var(--red50); color: var(--red500); }
.fo__chip.is-root { flex-basis: 100%; justify-content: center; height: 46px; margin: 0 auto 6px; max-width: max-content; padding: 0 22px; font-size: 19px; background: var(--green500); color: #fff; }
.fo__legend { display: flex; justify-content: center; gap: 14px; font-size: 12px; font-weight: 600; color: var(--grey600); }
.fo__legend span { display: inline-flex; align-items: center; gap: 6px; }
.fo__legend span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green500); }
.fo__legend .ant::before { background: var(--red500); }

/* 인사이트 코드 */
.in { height: 100%; display: flex; flex-direction: column; padding: 60px 18px 18px; background: #fff; color: var(--grey900); }
.in__state { transition: background-color .3s, color .3s; }
.in__state.is-done { background: var(--blue50) !important; color: var(--blue600) !important; }
.in__grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; padding: 12px; border-radius: 18px; background: var(--grey100); }
.in__cell { aspect-ratio: 1; border-radius: 5px; background: var(--grey200); transition: background-color .25s, transform .5s var(--bounce); }
.in__cell.is-scan { background: var(--blue200); }
.in__cell.is-hit { background: var(--blue500); transform: scale(1.35); box-shadow: 0 4px 10px rgba(49, 130, 246, .45); position: relative; z-index: 1; }
.in__res { flex: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--grey200); }
.in__label { font-size: 12px; font-weight: 700; color: var(--grey600); }
.in__num { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.in__num small { margin-left: 3px; font-size: 15px; font-weight: 700; color: var(--grey500); }
.in__radar { width: 100%; height: 100%; min-height: 120px; }

/* 모바일 학생증 */
.id { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 60px 16px 16px; background: var(--grey100); color: var(--grey900); }
.id .app-head { margin-bottom: 2px; }
.id .app-head span { background: #fff; }
.id__card { position: relative; overflow: hidden; padding: 16px; border-radius: 20px; background: var(--blue500); color: #fff; box-shadow: 0 14px 26px rgba(49, 130, 246, .35); }
.id__card::after { content: ''; position: absolute; right: -30px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.id__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.id__row small { font-size: 10px; font-weight: 700; letter-spacing: .06em; opacity: .8; white-space: nowrap; }
.id__body { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.id__photo { flex-shrink: 0; width: 50px; height: 60px; overflow: hidden; border-radius: 10px; background: var(--blue100); display: grid; place-items: end center; }
.id__photo svg { width: 42px; height: 46px; }
.id__info b { display: block; font-size: 18px; font-weight: 800; }
.id__info span { display: block; font-size: 12px; opacity: .88; }
.id__qr { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px; border-radius: 20px; background: #fff; }
.id__qr canvas { width: 108px; height: 108px; image-rendering: pixelated; }
.id__qr p { font-size: 12px; font-weight: 600; color: var(--grey600); }
.id__scan { position: absolute; left: 22%; right: 22%; top: 14px; height: 3px; border-radius: 3px; background: var(--blue500); opacity: 0; }
.id__ok { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #fff; font-size: 14px; font-weight: 800; }
.id__ok small { display: block; font-size: 11px; font-weight: 600; color: var(--grey500); }
.id__check { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green500); color: #fff; }
.id__check svg { width: 14px; height: 14px; }
.id__foot { margin-top: auto; text-align: center; font-size: 11px; font-weight: 600; color: var(--grey500); }
.plastic { position: relative; width: 190px; aspect-ratio: 85.6 / 54; padding: 12px; border-radius: 12px; background: var(--grey200); overflow: hidden; }
.plastic__band { height: 16px; margin: -12px -12px 10px; background: var(--grey300); }
.plastic__row { display: flex; gap: 10px; }
.plastic__photo { width: 30%; aspect-ratio: 3 / 4; border-radius: 4px; background: var(--grey400); }
.plastic__lines { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.plastic__lines i { height: 6px; border-radius: 3px; background: var(--grey400); }
.plastic__lines i:nth-child(2) { width: 70%; } .plastic__lines i:nth-child(3) { width: 45%; }
.plastic__x { position: absolute; inset: 0; display: grid; place-items: center; }
.plastic__x svg { width: 46%; overflow: visible; }
.plastic__x path { fill: none; stroke: var(--red500); stroke-width: 9; stroke-linecap: round; }
.pop--plastic { padding: 12px; }
.pop--plastic .pop__sub { margin: 8px 2px 0; font-weight: 700; color: var(--grey800); }

/* 한강물 온도 */
.hg { position: relative; height: 100%; background: #0c1f3b; color: #fff; overflow: hidden; }
.hg__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.hg__ui { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 96px 20px 0; text-align: center; }
.hg__label { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.hg__temp { display: flex; align-items: flex-start; font-size: 76px; font-weight: 800; line-height: 1.05; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.hg__temp span { margin: 10px 0 0 4px; font-size: 26px; font-weight: 700; letter-spacing: 0; }
.hg__msg { min-height: 1.5em; margin-top: 12px; font-size: 16px; font-weight: 700; }
.hg__msg::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: #7cc4ff; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hg__demo { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 1; text-align: center; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .6); }

/* ==========================================================================
   LIVE BITS — small shared pieces
   ========================================================================== */
.live-tag { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--green50); color: var(--green600); font-size: 13px; font-weight: 700; vertical-align: 2px; }
.live-tag i, .pulse { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--green500); animation: livePing 1.8s var(--ease-out) infinite; }
.live-tag--dot { margin: 0 9px 0 0; padding: 0; background: none; vertical-align: 1px; }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(3, 178, 108, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(3, 178, 108, 0); } }
.sec-sub { margin-top: 14px; font-size: clamp(17px, 1.5vw, 20px); color: var(--grey600); }
.sk { display: block; height: 14px; border-radius: 7px; background: var(--grey200); animation: skel 1.1s ease-in-out infinite alternate; }
.sk--s { width: 38%; }
.sk--m { width: 72%; }
@keyframes skel { from { opacity: .5; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.8); } to { opacity: 1; transform: none; } }

/* tiny Discord presence on the avatar */
.profile__media { position: relative; }
.presence { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--grey800); font-size: 13px; font-weight: 700; box-shadow: 0 6px 18px rgba(2, 32, 71, .16); animation: popIn .8s var(--bounce) both; }
.presence__dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--grey400); }
[data-status="online"] > .presence__dot, .contact__presence[data-status="online"] i { background: var(--green500); }
[data-status="idle"] > .presence__dot, .contact__presence[data-status="idle"] i { background: var(--yellow500); }
[data-status="dnd"] > .presence__dot, .contact__presence[data-status="dnd"] i { background: var(--red500); }
.presence__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presence.is-music .presence__text::before { content: '♪ '; }

.journey__motto { margin-top: 14px; font-size: clamp(16px, 1.3vw, 18px); font-weight: 600; color: var(--grey600); }
.journey__motto span { color: var(--blue500); }

/* live ivLyrics platforms inside the first accordion item */
.acc__live { margin: -4px 0 18px; }
.plats { display: flex; flex-wrap: wrap; gap: 8px; }
.plat { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px 0 11px; border-radius: 999px; background: var(--grey100); font-size: 14px; font-weight: 700; color: var(--grey800); white-space: nowrap; transition: background-color .2s, transform .5s var(--bounce); }
.plat:hover { background: var(--grey200); transform: translateY(-2px); }
.plat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.plat b { font-weight: 700; color: var(--grey500); font-variant-numeric: tabular-nums; }
.acc__stat { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--grey500); }

/* ==========================================================================
   NUMBERS — live bento
   ========================================================================== */
.numbers { padding: clamp(110px, 13vw, 180px) 0 clamp(60px, 8vw, 110px); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 16px; }
.stat { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--r-xl); background: var(--grey100); color: var(--grey900); overflow: hidden; }
.stat--wide { grid-column: span 2; }
.stat--blue { background: var(--blue500); color: #fff; }
.stat--yellow { background: #fff4d6; }
.stat--dark { background: var(--grey900); color: #fff; }
.stat__label { font-size: 17px; font-weight: 700; color: var(--grey700); }
.stat--blue .stat__label, .stat--dark .stat__label { color: rgba(255, 255, 255, .84); }
.stat__value { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; font-size: clamp(44px, 4.6vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat__value b { display: inline-block; transform-origin: 0 80%; }
.stat__value small { font-size: .4em; font-weight: 700; letter-spacing: -.01em; opacity: .75; }
.stat__value--text { font-size: clamp(30px, 3vw, 42px); }
.stat__sub { margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--grey600); }
.stat--blue .stat__sub { color: rgba(255, 255, 255, .86); }
.stat--dark .stat__sub { color: rgba(255, 255, 255, .72); }
.stat .pulse { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.stat__link { align-self: flex-start; margin-top: auto; padding-top: 18px; font-size: 16px; font-weight: 700; color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.stat__link:hover { opacity: .8; }
.bars { position: absolute; right: clamp(24px, 2.4vw, 32px); bottom: clamp(24px, 2.4vw, 32px); display: flex; align-items: flex-end; gap: 6px; width: min(46%, 380px); height: 60%; }
.bars i { flex: 1; height: calc(var(--v) * 100%); border-radius: 8px 8px 4px 4px; background: rgba(255, 255, 255, .32); transform-origin: 50% 100%; transform: scaleY(calc(var(--in, 1) * (1 + var(--j, 0)))); }
.bars i:last-child { background: #fff; }
.langbar { display: flex; gap: 4px; height: 16px; margin-top: 24px; }
.langbar i { flex: var(--g) 1 0; min-width: 8px; border-radius: 999px; background: var(--c); transform-origin: 0 50%; }
.langs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--grey700); }
.langs li { display: inline-flex; align-items: center; gap: 6px; }
.langs i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.langs b { font-weight: 700; color: var(--grey500); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   LAB — side projects in a physics drawer
   ========================================================================== */
.lab { padding: clamp(60px, 8vw, 110px) 0; }
.lab__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 40px; margin-bottom: 26px; }
.lab__side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.lab__desc { max-width: 27em; font-size: 17px; line-height: 1.65; color: var(--grey600); text-align: right; }
.lab__desc b { color: var(--grey900); }
.lab__box { position: relative; height: clamp(440px, 40vw, 540px); overflow: hidden; border-radius: var(--r-xl); background: var(--grey100); }
.lab[data-live="loading"] .lab__box::after { content: '서랍을 여는 중…'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--grey500); font-weight: 600; }
.repos { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: flex-end; gap: 12px; padding: 22px; }
.lab__box.is-live .repos { display: block; padding: 0; }
.lab__box.is-live .repo { position: absolute; left: 0; top: 0; will-change: transform; }
.lab__box.is-live .repo.is-waiting { visibility: hidden; }
.repo { width: 224px; user-select: none; -webkit-user-select: none; }
.repo.is-drag { z-index: 5; }
.repo__in { display: flex; flex-direction: column; gap: 6px; min-height: 142px; padding: 17px 17px 15px; border-radius: 22px; background: var(--rb); color: var(--rt); box-shadow: 0 8px 20px rgba(2, 32, 71, .12); -webkit-user-drag: none; cursor: grab; }
.repo.is-drag .repo__in { cursor: grabbing; box-shadow: 0 22px 40px rgba(2, 32, 71, .22); }
.repo__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; opacity: .86; }
.repo__name { font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.repo__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.45; opacity: .84; }
.repo__time { margin-top: auto; padding-top: 4px; font-size: 12px; font-weight: 600; opacity: .7; }
/* phones: a swipeable row instead of physics */
.lab__box.is-row { height: auto; overflow: visible; border-radius: 0; background: none; }
.lab__box.is-row .repos { position: static; flex-wrap: nowrap; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.lab__box.is-row .repos::-webkit-scrollbar { display: none; }
.lab__box.is-row .repo { flex: 0 0 auto; width: min(72vw, 280px); scroll-snap-align: start; }
.lab__box.is-row .repo__in { min-height: 172px; cursor: pointer; }

/* ==========================================================================
   NOW — live GitHub activity
   ========================================================================== */
.now { padding: clamp(80px, 10vw, 140px) 0; }
.now__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.now__sub { margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--grey600); }
.now__last { font-size: 15px; color: var(--grey500); }
.now__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
.now__stats li { padding: 16px 16px 14px; border-radius: 20px; background: var(--grey100); }
.now__stats b { display: inline-block; font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.now__stats span { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--grey600); }
.now__h3 { margin-bottom: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.working { margin-top: 36px; }
.working__row { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 48px; padding: 10px 0; border-top: 1px solid var(--grey200); font-size: 16px; }
.working__row.is-skel { display: flex; }
.working__row.is-skel .sk { width: 100%; height: 18px; }
.working__name { overflow: hidden; font-weight: 700; color: var(--grey900); text-overflow: ellipsis; white-space: nowrap; }
.working__name:hover { color: var(--blue500); }
.working__bar { height: 10px; overflow: hidden; border-radius: 999px; background: var(--grey100); }
.working__bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--blue500); }
.working__n { font-weight: 700; color: var(--grey700); font-variant-numeric: tabular-nums; }
.working__ago { min-width: 4.6em; text-align: right; font-size: 14px; color: var(--grey500); }

.cal { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-xl); background: var(--grey100); }
.cal__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 16px; font-size: 16px; }
.cal__legend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--grey500); }
.cal__legend i { width: 12px; height: 12px; border-radius: 4px; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__dow { margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--grey500); text-align: center; }
.cal__cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cal__cell[data-l="0"], .cal__legend [data-l="0"] { background: #fff; color: var(--grey500); }
.cal__cell[data-l="1"], .cal__legend [data-l="1"] { background: var(--blue100); color: var(--blue700); }
.cal__cell[data-l="2"], .cal__legend [data-l="2"] { background: var(--blue300); color: #fff; }
.cal__cell[data-l="3"], .cal__legend [data-l="3"] { background: var(--blue500); color: #fff; }
.cal__cell[data-l="4"], .cal__legend [data-l="4"] { background: var(--blue700); color: #fff; }
.cal__cell.is-out { background: transparent; color: var(--grey400); outline: 1.5px dashed var(--grey300); outline-offset: -1.5px; }
.cal__cell.is-future { background: transparent; color: var(--grey300); }
.cal__cell.is-today { box-shadow: 0 0 0 2.5px var(--grey900); }
.cal__cell.is-skel { background: var(--grey200); animation: skel 1.1s ease-in-out infinite alternate; }
.cal__cell:not(.is-skel):not(.is-future):hover { box-shadow: 0 0 0 2.5px var(--blue300); }

.feed { margin-top: 16px; padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--grey200); border-radius: var(--r-xl); }
.feed__list { display: grid; gap: 2px; }
.feed__item { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 0; }
.feed__icon { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: var(--blue50); color: var(--blue500); }
.feed__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feed__item[data-kind="release"] .feed__icon { background: #fff4d6; color: #9a6b00; }
.feed__item[data-kind="review"] .feed__icon, .feed__item[data-kind="comment"] .feed__icon { background: var(--green50); color: var(--green600); }
.feed__item[data-kind="issue"] .feed__icon { background: var(--red50); color: var(--red500); }
.feed__item[data-kind="pr"] .feed__icon { background: #efedff; color: #5b47e0; }
.feed__item[data-kind="create"] .feed__icon { background: var(--grey100); color: var(--grey700); }
.feed__item.is-skel .feed__icon { background: var(--grey200); }
.feed__body { flex: 1; min-width: 0; }
.feed__item.is-skel .sk + .sk { margin-top: 8px; }
.feed__text { overflow: hidden; font-size: 16px; color: var(--grey700); text-overflow: ellipsis; white-space: nowrap; }
.feed__text b { color: var(--grey900); }
.feed__time { margin-top: 1px; font-size: 13.5px; color: var(--grey500); }

/* ==========================================================================
   BLOG — RSS / Atom cards
   ========================================================================== */
.blog { padding: clamp(40px, 6vw, 80px) 0 0; }
.blog__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post__in { display: flex; flex-direction: column; height: 100%; }
.post__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-l); background: var(--pb, var(--grey100)); transition: transform .7s var(--bounce); }
.post__glyph { font-size: clamp(34px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.04em; color: var(--pf, var(--grey500)); }
.post__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
a.post__in:hover .post__media { transform: translateY(-8px) rotate(-1deg); }
.post__cat { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--blue500); }
.post__title { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.post__text { margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.6; color: var(--grey600); }
.post__date { margin-top: 10px; font-size: 13.5px; color: var(--grey500); }
.post.is-skel .post__media { background: var(--grey100); animation: skel 1.1s ease-in-out infinite alternate; }
.post.is-skel .sk { margin-top: 14px; }
.blog__fallback { display: flex; align-items: center; gap: 20px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--grey100); transition: transform .6s var(--bounce), background-color .2s; }
.blog__fallback:hover { background: var(--grey200); transform: translateY(-4px); }
.blog__mark { flex-shrink: 0; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--grey900); color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.blog__fb { flex: 1; display: grid; gap: 2px; }
.blog__fb b { font-size: 21px; letter-spacing: -.02em; }
.blog__fb span { color: var(--grey600); }

/* ==========================================================================
   CONTACT + FOOTER
   ========================================================================== */
.contact { padding: clamp(90px, 11vw, 150px) 0 clamp(56px, 7vw, 96px); }
.contact__card { position: relative; min-height: clamp(640px, 84vh, 780px); padding: clamp(40px, 6vw, 88px); border-radius: var(--r-xl); background: var(--blue500); color: #fff; overflow: hidden; }
.contact__title { font-size: clamp(42px, 6.6vw, 94px); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; }
.contact__title .wd { display: inline-block; }
.contact__sub { margin-top: 20px; font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.contact__actions .pill--line { height: 64px; }
.contact__presence { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 16px; font-weight: 700; color: rgba(255, 255, 255, .92); animation: popIn .8s var(--bounce) both; }
.contact__presence i { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.contact__links { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0 -12px; }
.contact__links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; font-size: 19px; font-weight: 700; transition: background-color .2s, transform .5s var(--bounce); }
.contact__links a::after { content: '↗'; font-weight: 600; }
.contact__links a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }

.footer { padding: 56px 0 64px; color: var(--grey600); font-size: 15px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 30px; }
.footer__logo { font-size: 28px; font-weight: 250; color: var(--grey900); letter-spacing: -.03em; line-height: 1; }
.footer__logo b { font-weight: 800; }
.footer__tag { margin-top: 8px; font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 22px; font-weight: 600; color: var(--grey700); }
.footer__links a:hover { color: var(--grey900); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--grey200); }
.top-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--grey100); color: var(--grey800); font-size: 15px; font-weight: 700; white-space: nowrap; transition: transform .6s var(--bounce), background-color .2s; }
.top-btn span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grey900); color: #fff; }
.top-btn svg { width: 14px; height: 14px; }
.top-btn:hover { background: var(--grey200); transform: translateY(-3px); }
.top-btn:active { transform: scale(.92); transition-duration: .1s; }

.toast { position: fixed; left: 50%; bottom: 32px; z-index: 120; padding: 14px 20px; border-radius: 16px; background: var(--grey900); color: #fff; font-size: 16px; font-weight: 600; opacity: 0; transform: translate(-50%, 24px) scale(.9); pointer-events: none; transition: opacity .25s, transform .7s var(--bounce); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
  .ticks { display: none; }
}

@media (max-width: 1023px) {
  .work__grid { gap: 28px; }
  .pop { max-width: 210px; padding: 13px 15px; }
  .pop__main { font-size: 16px; }
}

@media (max-width: 767px) {
  :root { --nav-h: 56px; }
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .nav__logo { font-size: 23px; }

  .hero__stage { --hx: 10px; --hb: 10px; --hr: 26px; }
  .hero__copy { left: 22px; right: 22px; top: 40px; }
  .hero__eyebrow { font-size: 13px; padding: 7px 12px 7px 10px; }
  .hero__title { margin-top: 18px; font-size: clamp(42px, 12.4vw, 60px); }
  .hero__sub { font-size: 19px; }
  .hero__news--corner { display: none; }
  .hero__news--flow { display: inline-flex; font-size: 13px; }
  .philo { height: 210vh; }
  .philo__text { font-size: clamp(34px, 10.4vw, 56px); }

  .profile { grid-template-columns: 1fr; }
  .profile__media { max-width: 420px; }
  .chip__in { height: 42px; padding: 0 15px 0 13px; font-size: 15px; gap: 7px; }
  .chip__in::before { width: 8px; height: 8px; }
  .play__box { height: 520px; }
  .cards3 { grid-template-columns: 1fr; gap: 28px; }

  .journey { height: 300vh; }
  .journey__grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; grid-template-areas: "head" "stairs" "eras"; gap: 20px; }
  .journey__head .h2 { font-size: 30px; }
  .stairs { height: 34svh; min-height: 200px; max-height: 280px; gap: 8px; }
  .step { padding: 12px; border-radius: 18px 18px 10px 10px; }
  .step__year { font-size: 22px; }
  .step__now { font-size: 11px; padding: 3px 8px; }
  .era__year { margin-bottom: 8px; font-size: 26px; }
  .era__list li { padding: 10px 0; font-size: 16px; }

  .work__head .h2 { font-size: 30px; }
  .work__track { height: calc(var(--n) * 64vh + 100vh); }
  .work__grid { grid-template-columns: 1fr; gap: 14px; }
  .device { order: -1; height: 50svh; max-height: 470px; }
  .phone { padding: 7px; border-radius: 40px; transform: none; box-shadow: 0 0 0 2px #c9d1da, 0 0 0 5px #eef1f4, var(--shadow-m); }
  .phone.is-hop { animation-name: phoneHopM; }
  @keyframes phoneHopM { 0% { transform: none; } 22% { transform: translateY(-12px) scale(1.02); } 55% { transform: translateY(3px); } 100% { transform: none; } }
  .phone__screen { border-radius: 33px; }
  .phone__island { top: 12px; height: 18px; }
  .phone__status { height: 36px; padding: 2px 20px 0 24px; font-size: 11px; }
  .acc__item { border: 0 !important; }
  .acc__item:not(.is-active) { display: none; }
  .acc__head { padding: 0 0 6px; font-size: 24px; pointer-events: none; }
  .acc__inner { padding-left: 0; }
  .acc__desc { margin-bottom: 14px; font-size: 16px; }
  .acc__inner .pill { margin-bottom: 4px; height: 48px; }
  .work__dots { display: flex; }
  .pop { max-width: 170px; padding: 10px 12px; border-radius: 16px; }
  .pop__label { font-size: 11px; }
  .pop__main { font-size: 13px; }
  .pop__sub { font-size: 11px; }
  .pop[data-i="0"] { --px: -2%; --py: 64%; }
  .pop[data-i="1"] { --px: 56%; --py: 66%; }
  .pop[data-i="2"] { --px: 0%; --py: 30%; }
  .pop[data-i="3"] { --px: -2%; --py: 68%; }
  .pop[data-i="4"] { --px: 56%; --py: 66%; }
  .plastic { width: 130px; }

  .contact__card { min-height: 800px; padding: 36px 24px; border-radius: 26px; }
  .contact__actions .pill--lg { height: 58px; font-size: 19px; }
  .contact__actions .pill--line { height: 58px; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ---------- live sections: tablet ---------- */
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .now__grid { grid-template-columns: minmax(0, 1fr); }
  .now__stats { max-width: 640px; }
}

/* ---------- live sections: phones ---------- */
@media (max-width: 767px) {
  .live-tag { margin-left: 8px; font-size: 12px; }
  .bento { gap: 10px; }
  .stat { min-height: 172px; padding: 20px; border-radius: 24px; }
  .stat--wide, .stat[data-card="stars"] { grid-column: span 2; }
  .stat[data-card="stars"] { min-height: 210px; }
  .stat__label { font-size: 15px; }
  .stat__value { font-size: 38px; }
  .stat__value--text { font-size: 26px; }
  .stat__sub { font-size: 14px; }
  .stat__link { font-size: 15px; }
  .bars { position: relative; right: auto; bottom: auto; width: 100%; height: 76px; margin-top: auto; padding-top: 18px; }
  .langs { font-size: 14px; gap: 6px 12px; }

  .lab__side { align-items: flex-start; }
  .lab__desc { text-align: left; font-size: 16px; }
  .lab__box { height: 212px; }
  .lab__box.is-row { height: auto; }
  .repo__name { font-size: 18px; }

  .now__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .working__row { grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) auto; font-size: 15px; }
  .working__ago { display: none; }
  .cal { padding: 18px; border-radius: 24px; }
  .cal__dow, .cal__grid { gap: 5px; }
  .cal__cell { border-radius: 9px; font-size: 12px; }
  .cal__legend { display: none; }
  .feed { padding: 18px; border-radius: 24px; }
  .feed__text { font-size: 15px; }

  .posts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .post__in { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; align-content: start; }
  .post__media { grid-row: 1 / 4; aspect-ratio: 1; border-radius: 18px; }
  .post__glyph { font-size: 26px; }
  .post__cat { margin-top: 0; font-size: 13px; }
  .post__title { font-size: 17px; }
  .post__text { display: none; }
  .post__date { margin-top: 4px; font-size: 13px; }
  .post.is-skel .sk { margin-top: 10px; }
  .blog__fallback { gap: 14px; padding: 20px; }
  .blog__mark { width: 52px; height: 52px; border-radius: 16px; font-size: 20px; }

  .contact__presence { font-size: 15px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
