/* dongho.dnnr.us — design system
   Type: Instrument Serif (display) + Inter (text/UI). One accent. Warm paper light, ink dark.
   Pages are generated: edit _src/ and run `python3 _src/build.py`. */

:root {
  --bg: #F7F6F3;
  --bg-2: #EFEEE9;
  --surface: #FFFFFF;
  --surface-2: #F1F0EC;
  --text: #121216;
  --muted: #5A5B66;
  --faint: #8C8D99;
  --border: #E3E2DC;
  --border-2: #D2D1CA;
  --ink: #121216;
  --ink-text: #F7F6F3;
  --brand: #4F46E5;
  --brand-2: #8B7CFF;
  --brand-ink: #FFFFFF;
  --brand-soft: rgba(79, 70, 229, .10);
  --glow-a: rgba(124, 108, 246, .55);
  --glow-b: rgba(56, 189, 248, .35);
  --glow-c: rgba(244, 114, 182, .30);
  --blue: rgba(79, 70, 229, .85);
  --shadow-sm: 0 1px 2px rgba(10, 10, 20, .05);
  --shadow: 0 1px 2px rgba(10, 10, 20, .04), 0 14px 36px rgba(10, 10, 20, .08);
  --shadow-lg: 0 2px 6px rgba(10, 10, 20, .06), 0 36px 80px rgba(10, 10, 20, .18);
  --radius: 22px;
  --radius-sm: 12px;
  --max: 1200px;
  --narrow: 800px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}

:root[data-theme="dark"] { --bg: #0D0D11; --bg-2: #111116; --surface: #15151B; --surface-2: #1C1C24; --text: #F2F1EC; --muted: #A6A7B3; --faint: #777A8A; --border: #24242D; --border-2: #32323C; --ink: #F2F1EC; --ink-text: #0D0D11; --brand: #8B85F5; --brand-2: #B4ADFF; --brand-ink: #0D0D11; --brand-soft: rgba(139, 133, 245, .14); --glow-a: rgba(124, 108, 246, .45); --glow-b: rgba(56, 189, 248, .25); --glow-c: rgba(244, 114, 182, .22); --blue: rgba(139, 133, 245, .9); --shadow-sm: none; --shadow: 0 1px 0 rgba(255, 255, 255, .03); --shadow-lg: 0 36px 80px rgba(0, 0, 0, .6); color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0D0D11; --bg-2: #111116; --surface: #15151B; --surface-2: #1C1C24; --text: #F2F1EC; --muted: #A6A7B3; --faint: #777A8A; --border: #24242D; --border-2: #32323C; --ink: #F2F1EC; --ink-text: #0D0D11; --brand: #8B85F5; --brand-2: #B4ADFF; --brand-ink: #0D0D11; --brand-soft: rgba(139, 133, 245, .14); --glow-a: rgba(124, 108, 246, .45); --glow-b: rgba(56, 189, 248, .25); --glow-c: rgba(244, 114, 182, .22); --blue: rgba(139, 133, 245, .9); --shadow-sm: none; --shadow: 0 1px 0 rgba(255, 255, 255, .03); --shadow-lg: 0 36px 80px rgba(0, 0, 0, .6); color-scheme: dark; }
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-optical-sizing: auto; transition: background .25s ease, color .25s ease; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, li a, td a, blockquote a, dd a, .side a, .lead a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ink-text); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
::selection { background: var(--brand); color: var(--brand-ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: var(--narrow); }
section { padding: 72px 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.022em; line-height: 1.12; font-weight: 700; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6.6vw, 84px); letter-spacing: -.02em; line-height: .98; }
h1 em { font-style: italic; color: var(--brand); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.8vw, 46px); letter-spacing: -.015em; line-height: 1.05; }
h3 { font-size: 19px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 46em; margin: 22px 0 0; line-height: 1.55; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.i { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; white-space: nowrap; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-1px); border-color: var(--faint); box-shadow: var(--shadow-sm); }
.btn-ink { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.btn-ink:hover { border-color: var(--ink); opacity: .9; }
.btn-ghost { background: transparent; }
.btn-link { border-color: transparent; background: transparent; color: var(--muted); padding-left: 8px; }
.btn-link:hover { box-shadow: none; border-color: transparent; color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; align-items: center; }
.actions.center { justify-content: center; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.brand .mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a:not(.btn) { padding: 8px 12px; border-radius: 9px; font-weight: 500; color: var(--muted); font-size: 15px; transition: background .15s ease, color .15s ease; }
.nav > a:not(.btn):hover, .nav > a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 6px; }
.theme { width: 38px; height: 38px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; margin-left: 4px; }
.theme:hover { background: var(--surface-2); color: var(--text); }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: none; } :root:not([data-theme="light"]) .theme .moon { display: block; } }
@media (max-width: 600px) { .nav { gap: 0; } .nav > a:not(.btn) { padding: 8px 7px; font-size: 14px; } .nav .btn span { display: none; } .nav .btn { padding: 0 11px; margin-left: 2px; } .brand { font-size: 15px; gap: 8px; } .theme { width: 34px; } }
@media (max-width: 400px) { .brand-name { display: none; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* hero */
.hero { padding: 64px 0 32px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 9.5em; }
.hero .lead { max-width: 34em; }
.hero-copy .actions { margin-top: 34px; }

/* artifact: architecture <-> shipped */
.artifact { position: relative; }
.art-toggle { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 18px; }
.art-toggle button { position: relative; z-index: 1; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: color .2s ease; }
.art-toggle button[aria-selected="true"] { color: var(--brand-ink); }
.art-toggle .ind { position: absolute; top: 4px; left: 4px; height: calc(100% - 8px); width: calc(50% - 5px); border-radius: 999px; background: var(--brand); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.artifact[data-mode="build"] .art-toggle .ind { transform: translateX(calc(100% + 2px)); }
.stage { position: relative; height: 540px; perspective: 1400px; --tx: 0deg; --ty: 0deg; }
.stage .glow { position: absolute; inset: 4% 0; border-radius: 40px; background: radial-gradient(60% 60% at 30% 30%, var(--glow-a), transparent 70%), radial-gradient(50% 50% at 75% 25%, var(--glow-b), transparent 70%), radial-gradient(55% 55% at 60% 85%, var(--glow-c), transparent 70%); filter: blur(30px); opacity: .9; transition: opacity .6s ease; }
.artifact[data-mode="architect"] .stage .glow { opacity: .45; }
.stage .device, .stage .side { position: absolute; border-radius: 24px; overflow: hidden; border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); background: var(--surface-2); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .6s ease, opacity .6s ease; }
.stage .device { left: 29%; top: 0; width: 42%; aspect-ratio: 9 / 19.5; z-index: 2; transform: rotateY(var(--tx)) rotateX(var(--ty)) translateZ(30px); }
.stage .device > img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: filter .6s ease, opacity .6s ease; }
.stage .side { width: 30%; aspect-ratio: 9 / 19.5; opacity: .9; }
.stage .s1 { left: 2%; top: 10%; transform: rotateY(var(--tx)) rotateX(var(--ty)) rotate(-7deg); }
.stage .s2 { right: 2%; top: 12%; transform: rotateY(var(--tx)) rotateX(var(--ty)) rotate(7deg); }
.stage .side img, .stage .side { object-fit: cover; object-position: top; }
.artifact[data-mode="architect"] .stage .side { opacity: .25; filter: grayscale(1); }
.artifact[data-mode="architect"] .stage .device > img { filter: grayscale(1) contrast(.9) brightness(1.05); opacity: .55; }
.blueprint { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; background-image: linear-gradient(var(--blue) 1px, transparent 1px), linear-gradient(90deg, var(--blue) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; mix-blend-mode: normal; }
.blueprint::before { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: .65; mix-blend-mode: multiply; }
:root[data-theme="dark"] .blueprint::before { mix-blend-mode: screen; opacity: .35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blueprint::before { mix-blend-mode: screen; opacity: .35; } }
.blueprint { background-image: linear-gradient(rgba(79, 70, 229, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 70, 229, .22) 1px, transparent 1px); }
.artifact[data-mode="architect"] .blueprint { opacity: 1; }
.blueprint .co { position: absolute; border: 1.5px dashed var(--brand); border-radius: 10px; background: var(--brand-soft); }
.blueprint .co .n { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg); }
.blueprint .co:nth-child(1) { animation: pulse 2.4s ease-in-out infinite; }
.blueprint .co:nth-child(2) { animation: pulse 2.4s ease-in-out .3s infinite; }
.blueprint .co:nth-child(3) { animation: pulse 2.4s ease-in-out .6s infinite; }
.blueprint .co:nth-child(4) { animation: pulse 2.4s ease-in-out .9s infinite; }
@keyframes pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.art-caption { margin-top: 14px; min-height: 86px; }
.art-caption .cap { margin: 0; font-size: 14px; color: var(--muted); display: none; }
.artifact[data-mode="architect"] .cap.architect, .artifact[data-mode="build"] .cap.build { display: block; }
.legend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 12.5px; color: var(--muted); display: none; }
.artifact[data-mode="architect"] .legend { display: grid; }
.legend li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.legend .n { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .stage { height: 420px; }
  .legend { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .stage { height: 360px; } .stage .device { left: 25%; width: 50%; } .stage .side { width: 34%; } }

/* proof */
.proof { padding: 20px 0 56px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.stats.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .stats.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats.five { grid-template-columns: repeat(2, 1fr); } .stats.five .stat:last-child { grid-column: span 2; } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 18px 16px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: -.02em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.logos { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 10px; color: var(--faint); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* section heads */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 44em; }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* marquee shelf */
.shelf { padding: 56px 0 40px; border-top: 1px solid var(--border); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding: 8px 0 16px; }
.marquee .track { display: flex; gap: 22px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; font-size: 12px; color: var(--muted); text-align: center; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.marquee a img { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease; }
.marquee a:hover { color: var(--text); }
.marquee a:hover img { transform: translateY(-6px) scale(1.06); box-shadow: var(--shadow-lg); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* editorial feature rows */
.features { display: flex; flex-direction: column; gap: 28px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding: 22px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, border-color .25s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.feature.flip .media { order: 2; }
.feature .media { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.feature .media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.feature:hover .media img { transform: scale(1.035); }
.feature .media.empty { display: grid; place-items: center; background: radial-gradient(80% 80% at 20% 20%, var(--glow-a), transparent 60%), radial-gradient(60% 60% at 80% 70%, var(--glow-b), transparent 60%), var(--surface-2); }
.feature .media.empty span { font-family: var(--display); font-size: 120px; color: var(--text); opacity: .3; }
.feature .copy { padding: 8px 12px 8px 0; }
.feature.flip .copy { padding: 8px 0 8px 12px; }
.feature .meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--faint); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.feature .meta .n { font-family: var(--display); font-size: 22px; color: var(--brand); letter-spacing: 0; }
.feature h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.8vw, 36px); letter-spacing: -.015em; margin: 14px 0 10px; line-height: 1.05; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.feature .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.feature .nums b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: -.01em; }
.feature .nums span { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); line-height: 1.35; }
.feature .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; font-size: 14px; color: var(--brand); }
.feature .more .i { transition: transform .2s ease; }
.feature:hover .more .i { transform: translateX(4px); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 18px; padding: 14px; } .feature.flip .media { order: 0; } .feature .copy, .feature.flip .copy { padding: 6px 8px 10px; } .feature .nums { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .feature .nums { grid-template-columns: 1fr 1fr; } }

/* cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .22s cubic-bezier(.2, .7, .2, 1), border-color .22s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-lg); }
.card .media { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; position: relative; }
.card .media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .media img { transform: scale(1.03); }
.card .media.empty { display: grid; place-items: center; background: radial-gradient(80% 80% at 20% 20%, var(--glow-a), transparent 60%), radial-gradient(60% 60% at 80% 70%, var(--glow-b), transparent 60%), var(--surface-2); }
.card .media.empty span { font-family: var(--display); font-size: 80px; color: var(--text); opacity: .35; }
.card .body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.card .meta { display: flex; gap: 10px; font-size: 12.5px; color: var(--faint); font-weight: 500; }
.card h3 { font-size: 20px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.card .tags span { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
@media (max-width: 960px) { .cards.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards, .cards.three { grid-template-columns: 1fr; } .card p { -webkit-line-clamp: unset; } }

/* rows */
.rows { display: flex; flex-direction: column; margin-top: 22px; border-top: 1px solid var(--border); }
.row { display: grid; grid-template-columns: 104px 1fr auto 20px; gap: 16px; align-items: center; padding: 18px 6px; border-bottom: 1px solid var(--border); transition: background .15s ease; }
.row:not(.static):hover { background: var(--surface-2); }
.row .period { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.row .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row .t b { font-weight: 600; }
.row .t span { color: var(--muted); font-size: 14px; }
.row .org { font-size: 13px; color: var(--faint); white-space: nowrap; }
.row .i { color: var(--faint); }
.row.static { grid-template-columns: 104px 1fr auto; }
@media (max-width: 640px) { .row, .row.static { grid-template-columns: 1fr; gap: 4px; } .row .i { display: none; } .row .org { order: -1; } }

/* capabilities: editorial numbered list */
.caps { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-2); }
.cap-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 48px; gap: 20px; align-items: start; padding: 26px 8px; border-bottom: 1px solid var(--border-2); transition: background .2s ease, padding .2s ease; }
.cap-list li:hover { background: var(--surface); padding-left: 16px; }
.cap-list .n { font-family: var(--display); font-size: 28px; color: var(--brand); line-height: 1; padding-top: 2px; }
.cap-list h3 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -.01em; }
.cap-list p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; max-width: 54em; }
.cap-list .icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
@media (max-width: 640px) { .cap-list li { grid-template-columns: 44px minmax(0, 1fr); } .cap-list .icon { display: none; } }

/* principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.principles li { display: flex; gap: 14px; }
.principles .n { font-family: var(--display); color: var(--brand); font-size: 22px; line-height: 1; padding-top: 4px; }
.principles h3 { font-size: 18px; }
.principles p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

/* cta */
.cta { padding-top: 16px; }
.cta-box { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px; border-radius: 28px; background: var(--ink); color: var(--ink-text); overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(40% 40% at 20% 30%, var(--glow-a), transparent 70%), radial-gradient(35% 35% at 85% 70%, var(--glow-b), transparent 70%); opacity: .5; pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(26px, 3vw, 36px); }
.cta-box p { margin: 12px 0 0; opacity: .82; max-width: 44em; }
.cta-box .actions { margin: 0; flex: none; }
.cta-box .btn-ink { background: var(--ink-text); color: var(--ink); border-color: var(--ink-text); }
.cta-box .btn-ghost { color: var(--ink-text); border-color: rgba(128, 128, 128, .5); }
@media (max-width: 760px) { .cta-box { flex-direction: column; align-items: flex-start; padding: 28px; } }

/* page heads */
.page-head { padding: 60px 0 32px; }
.page-head.center { text-align: center; padding-bottom: 80px; }
.group { padding: 32px 0 12px; }

/* apps shelf page */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.chip { border: 1px solid var(--border-2); background: var(--surface); color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: all .18s ease; }
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip.on { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease, border-color .22s ease; }
.app:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.app.hide { display: none; }
.app.flash { outline: 2px solid var(--brand); outline-offset: 2px; }
.app .top { display: flex; align-items: center; gap: 14px; }
.app .top img { width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.app h3 { font-size: 17px; }
.app .cat { font-size: 12px; color: var(--faint); }
.app .tag { margin: 0; color: var(--muted); font-size: 14.5px; }
.app .ai { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 4px 9px; border-radius: 999px; }
.app .ai .i { width: 14px; height: 14px; }
.app .story { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s ease; }
.app:hover .story, .app:focus-within .story { max-height: 160px; opacity: 1; }
.app .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; }
.app .stores { display: flex; gap: 12px; }
.app .stores a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.app .stores a:hover { color: var(--text); }
.app .stores .i { width: 15px; height: 15px; }
.app .case-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
@media (max-width: 960px) { .app-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .app-grid { grid-template-columns: 1fr; } .app .story { max-height: none; opacity: 1; } }

/* timeline (about) */
.timeline { margin: 28px 0 44px; padding: 20px 8px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.tl-axis { position: relative; height: 18px; margin: 0 8px 10px; border-bottom: 1px solid var(--border-2); }
.tl-axis span { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tl-rows { position: relative; height: 300px; margin: 0 8px; }
.tl-item { position: absolute; top: 0; height: 22px; border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; text-align: left; }
.tl-item .bar { display: block; height: 10px; border-radius: 999px; background: var(--faint); opacity: .85; transition: transform .2s ease, opacity .2s ease; }
.tl-item:hover .bar, .tl-item.open .bar, .tl-item:focus-visible .bar { transform: scaleY(1.4); opacity: 1; }
.tl-item .lab { position: absolute; left: 0; top: 14px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.tl-item.k-eng .bar { background: #38BDF8; } .tl-item.k-design .bar { background: var(--brand); } .tl-item.k-product .bar { background: #F59E0B; } .tl-item.k-founder .bar { background: #F472B6; } .tl-item.k-edu .bar { background: #34D399; }
.tl-item:nth-child(1) { top: 0; } .tl-item:nth-child(2) { top: 36px; } .tl-item:nth-child(3) { top: 72px; } .tl-item:nth-child(4) { top: 108px; } .tl-item:nth-child(5) { top: 0; } .tl-item:nth-child(6) { top: 36px; } .tl-item:nth-child(7) { top: 72px; } .tl-item:nth-child(8) { top: 144px; } .tl-item:nth-child(9) { top: 108px; } .tl-item:nth-child(10) { top: 0; } .tl-item:nth-child(11) { top: 180px; } .tl-item:nth-child(12) { top: 36px; } .tl-item:nth-child(13) { top: 72px; }
.tl-item .pop { position: absolute; left: 0; top: 30px; z-index: 5; width: 240px; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--ink-text); font-size: 12.5px; line-height: 1.4; display: none; box-shadow: var(--shadow-lg); }
.tl-item .pop b { display: block; font-size: 13px; }
.tl-item .pop span { display: block; opacity: .7; }
.tl-item .pop em { display: block; font-style: normal; margin-top: 4px; opacity: .9; }
.tl-item:hover .pop, .tl-item.open .pop, .tl-item:focus-visible .pop { display: block; }
.tl-item:nth-child(n+10) .pop { left: auto; right: 0; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 8px 0; font-size: 11.5px; color: var(--muted); }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.tl-legend .k-eng::before { background: #38BDF8; } .tl-legend .k-design::before { background: var(--brand); } .tl-legend .k-product::before { background: #F59E0B; } .tl-legend .k-founder::before { background: #F472B6; } .tl-legend .k-edu::before { background: #34D399; }
@media (max-width: 640px) { .timeline { overflow-x: auto; } .tl-axis, .tl-rows, .tl-legend { min-width: 640px; } }

/* case study */
.case { padding-top: 44px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.hero-stats { margin: 32px 0 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 24px; margin: 26px 0 0; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.facts div { display: flex; flex-direction: column; gap: 3px; }
.facts dt { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.facts dd { margin: 0; font-size: 14px; color: var(--text); line-height: 1.5; }
.case .actions { margin-top: 18px; }
figure.cover { margin: 44px 0 8px; border-radius: 28px; overflow: hidden; background: radial-gradient(70% 70% at 20% 20%, var(--glow-a), transparent 60%), radial-gradient(60% 60% at 80% 80%, var(--glow-b), transparent 60%), var(--surface-2); border: 1px solid var(--border); display: flex; justify-content: center; max-height: 640px; }
figure.cover img { width: auto; max-width: 100%; max-height: 640px; object-fit: contain; }
.case-layout { display: grid; grid-template-columns: 200px minmax(0, var(--narrow)); gap: 48px; justify-content: center; padding-top: 28px; }
.case-layout .side { position: sticky; top: 92px; align-self: start; }
.toc { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; border-left: 1px solid var(--border); }
.toc b { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 0 0 8px 14px; }
.toc a { color: var(--muted); padding: 5px 14px; border-left: 2px solid transparent; margin-left: -1px; transition: color .15s ease, border-color .15s ease; }
.toc a:hover, .toc a.on { color: var(--text); border-color: var(--brand); }
@media (max-width: 980px) { .case-layout { grid-template-columns: minmax(0, 1fr); } .case-layout .side { display: none; } }

/* prose */
.prose { font-size: 17px; line-height: 1.72; padding-bottom: 32px; }
.prose > h2 { font-family: var(--display); font-weight: 400; margin: 54px 0 14px; font-size: 34px; letter-spacing: -.015em; }
.prose > h2:first-child { margin-top: 8px; }
.prose > h3 { margin: 30px 0 8px; font-size: 18px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--faint); }
.prose blockquote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); color: var(--muted); font-size: 17px; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.prose figure { margin: 24px 0; }
.prose figure img { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.prose figcaption { margin-top: 8px; font-size: 13px; color: var(--faint); }
.prose .gallery { display: grid; gap: 12px; margin: 24px 0; }
.prose .gallery.n2 { grid-template-columns: 1fr 1fr; }
.prose .gallery.n3 { grid-template-columns: repeat(3, 1fr); }
.prose .gallery figure { margin: 0; }
.prose .gallery img { width: 100%; }
.prose .stats { margin: 24px 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; }
@media (max-width: 640px) { .prose .gallery.n2, .prose .gallery.n3 { grid-template-columns: 1fr; } .prose { font-size: 16px; } }

.more { background: var(--bg-2); border-top: 1px solid var(--border); }

/* resume */
.resume-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 52px; align-items: start; }
.resume .side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 22px; font-size: 14px; }
.resume .side .block { display: flex; flex-direction: column; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.resume .side .block b { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 2px; }
.resume .side .block span { color: var(--text); line-height: 1.5; }
.resume .side .skill { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.resume .side .skill b { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text); }
.resume .side .skill span { color: var(--muted); font-size: 13.5px; }
.resume .prose { font-size: 16px; padding-bottom: 0; }
.resume .prose > h2 { font-family: var(--font); font-weight: 600; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.resume .prose > h2:first-child { margin-top: 0; }
.resume .prose > h3 { margin: 24px 0 2px; font-size: 17px; letter-spacing: -.01em; }
.resume .prose h3 + p { color: var(--faint); font-size: 13.5px; margin-bottom: 8px; }
.resume .prose ul { margin-bottom: 8px; }
.resume .prose li { margin: 3px 0; }
@media (max-width: 860px) { .resume-grid { grid-template-columns: 1fr; gap: 24px; } .resume .side { position: static; } }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 56px; margin-top: 24px; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: start; }
.foot p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.foot .now { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--faint); }
.foot .now .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.foot .links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.foot .links a:hover { color: var(--text); }
.foot .copyright { grid-column: 1 / -1; font-size: 13px; color: var(--faint); }
@media (max-width: 640px) { .foot { grid-template-columns: 1fr; } }

/* print (resume) */
@media print {
  .site-header, .site-footer, .no-print, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11px; }
  .container { max-width: none; padding: 0; }
  .page-head { padding: 0 0 8px; }
  h1 { font-size: 26px; }
  .lead { font-size: 12.5px; margin-top: 4px; color: #333; }
  .resume-grid { grid-template-columns: 1fr; gap: 10px; }
  .resume .side { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; font-size: 10.5px; }
  .resume .side .block { padding-bottom: 6px; border: 0; }
  .resume .prose { font-size: 11px; line-height: 1.42; }
  .resume .prose > h2 { margin-top: 12px; font-size: 10.5px; }
  .resume .prose > h3 { margin-top: 9px; font-size: 12.5px; }
  .prose p, .prose ul { margin-bottom: 5px; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: inherit; text-decoration: none; }
  @page { margin: 12mm 14mm; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } .marquee .track { animation: none; flex-wrap: wrap; width: auto; } }
