/* yenny.dnnr.us — design system
   Type: Geist (text and display, light weights, tight) + Newsreader italic for the emphasized phrase + Geist Mono for labels.
   One accent, used sparingly: terracotta. Bright white light, near-black dark. Hairlines over shadows.
   Pages are generated: edit _src/ and run `python3 _src/build.py`. */

:root {
  --bg: #FFFFFF;
  --bg-2: #F6F6F4;
  --surface: #FFFFFF;
  --surface-2: #F1F1EE;
  --text: #0E0E10;
  --muted: #66666E;
  --faint: #8E8E97;
  --border: #E6E6E2;
  --border-2: #D4D4CF;
  --ink: #0E0E10;
  --ink-text: #FFFFFF;
  --brand: #C9432A;
  --brand-2: #E8775A;
  --brand-ink: #FFFFFF;
  --brand-soft: rgba(201, 67, 42, .08);
  --glow-a: rgba(255, 138, 92, .45);
  --glow-b: rgba(255, 205, 150, .35);
  --glow-c: rgba(120, 160, 255, .18);
  --shadow-sm: 0 1px 2px rgba(10, 10, 12, .05);
  --shadow: 0 1px 2px rgba(10, 10, 12, .04), 0 10px 30px rgba(10, 10, 12, .05);
  --shadow-lg: 0 2px 6px rgba(10, 10, 12, .05), 0 30px 70px rgba(10, 10, 12, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1240px;
  --narrow: 800px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] { --bg: #0B0B0D; --bg-2: #101013; --surface: #131316; --surface-2: #1A1A1F; --text: #F3F3F0; --muted: #A8A8B0; --faint: #76767F; --border: #222228; --border-2: #30303A; --ink: #F3F3F0; --ink-text: #0B0B0D; --brand: #E8775A; --brand-2: #F29B84; --brand-ink: #0B0B0D; --brand-soft: rgba(232, 119, 90, .12); --glow-a: rgba(255, 123, 82, .35); --glow-b: rgba(255, 180, 120, .2); --glow-c: rgba(120, 160, 255, .14); --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: #0B0B0D; --bg-2: #101013; --surface: #131316; --surface-2: #1A1A1F; --text: #F3F3F0; --muted: #A8A8B0; --faint: #76767F; --border: #222228; --border-2: #30303A; --ink: #F3F3F0; --ink-text: #0B0B0D; --brand: #E8775A; --brand-2: #F29B84; --brand-ink: #0B0B0D; --brand-soft: rgba(232, 119, 90, .12); --glow-a: rgba(255, 123, 82, .35); --glow-b: rgba(255, 180, 120, .2); --glow-c: rgba(120, 160, 255, .14); --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; 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, .resume .side a, .lead a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
p a:hover, li a:hover, .lead a:hover, .resume .side a:hover { color: var(--brand); }
: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 24px; }
.container.narrow { max-width: var(--narrow); }
section { padding: 80px 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.1; font-weight: 500; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 6vw, 80px); letter-spacing: -.045em; line-height: 1.0; }
h1 em, h1 .em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.02em; color: var(--text); }
h1.lines .line { display: block; }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; line-height: 1.05; }
h2 em { font-family: var(--serif); font-style: italic; font-weight: 300; }
h3 { font-size: 18px; letter-spacing: -.015em; font-weight: 500; }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); max-width: 46em; margin: 22px 0 0; line-height: 1.65; font-weight: 400; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.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: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-weight: 500; font-size: 14.5px; 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: 34px; padding: 0 13px; font-size: 13.5px; }
.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) 80%, 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: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 500; font-size: 15.5px; letter-spacing: -.02em; white-space: nowrap; color: var(--text); line-height: 1; }
.brand::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a:not(.btn) { padding: 7px 11px; border-radius: 999px; font-weight: 500; color: var(--muted); font-size: 14.5px; 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: 36px; height: 36px; 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 6px; font-size: 13px; } .nav .btn span { display: none; } .nav .btn { padding: 0 10px; margin-left: 2px; } .brand { font-size: 15px; } .theme { width: 32px; } }
@media (max-width: 400px) { .theme { display: none; } }

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

/* home hero: headline, then the four covers */
.hero { padding: 88px 0 24px; }
.hero h1 { max-width: 12em; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-top: 28px; }
.hero-row .lead { margin: 0; max-width: 40em; }
.hero-row .actions { margin: 0; justify-content: flex-end; }
@media (max-width: 860px) { .hero { padding-top: 48px; } .hero-row { grid-template-columns: 1fr; gap: 22px; } .hero-row .actions { justify-content: flex-start; } }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 28px; margin-top: 72px; }
.tile { display: flex; flex-direction: column; color: inherit; }
.tile .media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.tile .media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .media { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile:hover .media img { transform: scale(1.03); }
.tile .body { padding: 20px 2px 0; }
.tile .meta { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--faint); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.tile .meta .n { color: var(--brand); }
.tile h3 { font-family: var(--display); font-weight: 500; font-size: clamp(21px, 2vw, 26px); letter-spacing: -.03em; margin: 12px 0 8px; line-height: 1.1; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.tile .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.tile .nums b { display: block; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile .nums span { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); line-height: 1.35; }
.tile .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 500; font-size: 14px; color: var(--text); }
.tile .more .i { transition: transform .2s ease; }
.tile:hover .more .i { transform: translateX(4px); }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; } .tile .nums { gap: 10px; } }
@media (max-width: 420px) { .tile .nums { grid-template-columns: 1fr 1fr; } .tile .nums div:last-child { grid-column: span 2; } }

/* proof */
.proof { padding: 64px 0 56px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin: 24px 0; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stats.four { grid-template-columns: repeat(2, 1fr); } }
.stat { background: transparent; border: 0; border-top: 1px solid var(--border-2); border-radius: 0; padding: 18px 4px 6px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: -.045em; 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: 20px; color: var(--faint); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* section heads */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.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 (work index) */
.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: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: none; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, border-color .25s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-2); }
.feature.flip .media { order: 2; }
.feature .media { aspect-ratio: 16 / 10; border-radius: 16px; 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: 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-family: var(--mono); font-size: 11px; color: var(--faint); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.feature .meta .n { color: var(--brand); }
.feature h3 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.035em; margin: 14px 0 10px; line-height: 1.08; }
.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: 500; font-size: 24px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.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: 500; font-size: 14px; color: var(--text); }
.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; } }
@media (max-width: 520px) { .feature .nums { grid-template-columns: 1fr 1fr; } }

/* cards (more work) */
.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: 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-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.card h3 { font-family: var(--display); font-size: 19px; letter-spacing: -.025em; font-weight: 500; }
.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: 11.5px; font-weight: 500; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
@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: 96px 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-family: var(--mono); font-size: 12px; 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: 500; }
.row .t span { color: var(--muted); font-size: 14px; }
.row .t .story { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--text); }
.row .t .story svg { width: 14px; height: 14px; }
.row .org { font-size: 13px; color: var(--faint); white-space: nowrap; }
.row .i { color: var(--faint); }
.row.static { grid-template-columns: 96px 104px 1fr auto; }
.row.static.nothumb { grid-template-columns: 96px 1fr auto; padding-top: 14px; padding-bottom: 14px; }
.row .thumb { display: block; width: 96px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.row .thumb.empty { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; color: var(--faint); }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.row:not(.static):hover .thumb img { transform: scale(1.04); }
.row .t .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.row .t .chips span { font-size: 11.5px; line-height: 1; padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface); letter-spacing: .01em; }
@media (max-width: 760px) { .row, .row.static { grid-template-columns: 72px 1fr 20px; } .row.static { grid-template-columns: 72px 1fr; } .row.static.nothumb { grid-template-columns: 1fr; } .row .thumb { width: 72px; } .row .period { grid-column: 2; font-size: 12px; } .row .org { display: none; } .row .t { grid-column: 2; } .row .i { grid-row: 1 / span 2; grid-column: 3; } }
@media (max-width: 640px) { .row, .row.static { grid-template-columns: 1fr; gap: 4px; } .row .i { display: none; } .row .org { order: -1; } }

/* capabilities */
.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(--mono); font-weight: 500; font-size: 12px; color: var(--brand); line-height: 1; padding-top: 8px; letter-spacing: .08em; }
.cap-list h3 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.03em; }
.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: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-2); color: var(--muted); }
@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(--mono); font-weight: 500; color: var(--brand); font-size: 12px; line-height: 1; padding-top: 6px; letter-spacing: .08em; }
.principles h3 { font-size: 17px; }
.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: 44px; border-radius: 20px; 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: .55; pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(22px, 2.6vw, 30px); max-width: 22em; }
.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; }

/* about head: text + portrait */
.about-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.about-head .page-head { padding-bottom: 0; }
.about-head .page-head h1 { font-size: clamp(32px, 4.2vw, 56px); }
.portrait { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .about-head { grid-template-columns: 1fr; gap: 24px; } .portrait { max-width: 360px; } }

/* 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: 13px; font-weight: 500; 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: 16.5px; }
.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: 500; 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: 500; color: var(--text); }
@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; margin: 0 8px; }
.tl-lane { position: absolute; right: 0; margin-top: -1px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); opacity: .7; pointer-events: none; }
.tl-item.drop1 .lab { top: 26px; } .tl-item.drop2 .lab { top: 38px; }
.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; margin: 0 3px; 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: 3px; top: 14px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.tl-item.k-design .bar { background: var(--brand); } .tl-item.k-founder .bar { background: var(--text); } .tl-item.k-product .bar { background: #F59E0B; } .tl-item.k-eng .bar { background: #38BDF8; }
.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.k-founder .pop { left: auto; right: 0; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 20px 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-design::before { background: var(--brand); } .tl-legend .k-founder::before { background: var(--text); } .tl-legend .k-product::before { background: #F59E0B; } .tl-legend .k-eng::before { background: #38BDF8; }
@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-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.case h1 { font-size: clamp(32px, 4.4vw, 58px); }
.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-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; 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: 48px 0 8px; border-radius: 20px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); display: block; aspect-ratio: 16 / 10; }
figure.cover img, figure.cover.video video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.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-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; 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: 500; margin: 56px 0 14px; font-size: 28px; letter-spacing: -.035em; }
.prose > h2:first-child { margin-top: 8px; }
.prose > h3 { margin: 30px 0 8px; font-size: 18px; font-weight: 500; }
.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: 10px; font-size: 13px; color: var(--faint); line-height: 1.5; }
.prose .gallery { display: grid; gap: 12px; margin: 24px 0; }
.prose .gallery.n1 { grid-template-columns: 1fr; }
.prose .gallery.n2 { grid-template-columns: 1fr 1fr; }
.prose .gallery.n3 { grid-template-columns: repeat(3, 1fr); }
.prose .gallery.n4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .prose .gallery.n3, .prose .gallery.n4 { grid-template-columns: 1fr 1fr; } }
.prose .gallery figure { margin: 0; }
.prose .gallery img { width: 100%; }
.prose .gallery.fit figure img, .prose .gallery.fit figure video { width: 100%; aspect-ratio: var(--ar, 3 / 2); object-fit: contain; background: var(--surface-2); }
.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-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 500; }
@media (max-width: 640px) { .prose .gallery.n2, .prose .gallery.n3 { grid-template-columns: 1fr; } .prose { font-size: 16px; } }

/* clips */
.prose figure.video video { display: block; width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.prose figure.video.portrait { max-width: 340px; margin-left: auto; margin-right: auto; }
.prose .gallery figure.video.portrait { max-width: none; }
.prose .gallery figure.video.portrait video { aspect-ratio: 9 / 19; object-fit: cover; }

section.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-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; 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-family: var(--font); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 500; }
.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(--mono); font-weight: 500; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.resume .prose > h2:first-child { margin-top: 0; }
.resume .prose > h3 { margin: 24px 0 2px; font-size: 17px; letter-spacing: -.015em; font-weight: 500; }
.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 b { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; }
.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; } }
