/* 이연수 portfolio — generated site stylesheet (source: build/site_src/style.css)
   Palette A "Morning Sky" (DESIGN.md §2). Pastel sky/mint fills are decoration only;
   text and focus rings always use the -ink tokens.
   Layout grammar follows swhan0329.github.io: hero (greeting → name → role → badges → education → lead → CTA,
   round portrait), section heading row (kicker + H2 left, summary right), 2×2 numbered portfolio cards,
   experience timeline, alternating section bands. */

:root {
  --star: 29,111,150; --star-2: 26,122,96;
  --bg: #F5FAFC; --surface: #FFFFFF; --surface-2: #EAF5F9; --border: #D5E7EE; --text: #13303B; --muted: #4C6672;
  --sky: #5DB3D9; --sky-ink: #1D6F96; --mint: #6CCBAE; --mint-ink: #1A7A60; --sky-soft: #E1F1F9; --mint-soft: #E0F5EE; --on-accent: #FFFFFF;
  --band: #EDF6F9; --index-ink: #CBE2EB;
  /* emoji tiles: the soft fills in light mode; a lighter teal + hairline ring in dark mode so dark glyphs (🎓 🎤 🧳) stay visible */
  --tile-sky: var(--sky-soft); --tile-mint: var(--mint-soft); --tile-neutral: var(--surface-2); --tile-ring: transparent;
  --shadow-sm: 0 1px 2px rgba(19,48,59,.04), 0 4px 12px rgba(19,48,59,.04);
  --shadow-md: 0 10px 28px rgba(29,111,150,.09);
  --shadow-lg: 0 18px 44px rgba(29,111,150,.14);
  --portrait-shadow: 0 26px 60px rgba(29,111,150,.20), 0 2px 6px rgba(19,48,59,.06);
  --header-bg: rgba(245,250,252,.82);
  --pane-a: rgba(255,255,255,.72); --pane-b: rgba(188,225,243,.58); --pane-c: rgba(190,234,219,.62);
  --pane-edge: rgba(255,255,255,.95); --pane-line: rgba(93,179,217,.55);
  --pane-glare: rgba(255,255,255,.62);
  /* hero portrait group (v2.6, decoration only): conic ring stops, halo light, the panes' lit top edge + sheen,
     and the faint chart etched into each pane (--etch-line is the line chart's mask, theme-independent) */
  --fe-shadow: rgba(19,48,59,.2); /* hairline shadow under the Fluent emoji pictures */
  --ring-1: #5DB3D9; --ring-2: #6CCBAE; --ring-3: #A6DBEF; --ring-halo: rgba(93,179,217,.13);
  --halo: rgba(120,196,230,.44); --halo-mint: rgba(140,214,190,.22);
  --pane-top: rgba(255,255,255,.98); --pane-sheen: rgba(255,255,255,.5);
  --etch: rgba(29,111,150,.12); --etch-strong: rgba(29,111,150,.21);
  --etch-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 46'%3E%3Cpath d='M4 40 21 31 37 34 55 21 72 24 92 9' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='92' cy='9' r='4.8'/%3E%3C/svg%3E");
  --glass: rgba(255,255,255,.74); --glass-border: rgba(255,255,255,.92);
  --shader-1: #F5FAFC; --shader-2: #CFE8F5; --shader-3: #D2F0E5; --shader-4: #E4F3FA;
  --tile-hi: rgba(255,255,255,.96); --tile-drop: rgba(29,111,150,.30); --chat-me: #1D6F96; --dots-base: #C9DDE5; --dots-hot: 29,111,150;
  --floor: rgba(29,111,150,.16);
  /* pictures on tinted tiles (cards, gallery): hairline rim + soft drop shadow under the screenshot */
  --shot-rim: rgba(19,48,59,.09); --shot-shadow: rgba(29,111,150,.34);
  /* hero background (v2.5): aurora light pools + a sky/mint wash over the whole hero, graph-paper dots edge to edge,
     density contours + scatter, and a soft "paper" clearing that follows the copy block (decoration only) */
  --aurora-sky: rgba(106,186,226,.55); --aurora-aqua: rgba(150,216,238,.62); --aurora-mint: rgba(118,210,180,.46);
  --wash-sky: rgba(160,212,236,.55); --wash-mint: rgba(160,222,200,.5); --wash-mid: rgba(186,224,242,.5);
  --paper: rgba(245,250,252,.9); --grid-dot: rgba(29,111,150,.17);
  --iso-sky: #1D6F96; --iso-mint: #1A7A60; --iso-a: .2; --iso-step: .036; --axis: rgba(29,111,150,.34);
  --dot-sky: rgba(70,160,205,.62); --dot-mint: rgba(80,186,152,.66); --pick: rgba(29,111,150,.5); --pick-dot: #1D6F96;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --emoji-font: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --gutter: clamp(16px, 4vw, 24px);
  --section-y: clamp(56px, 6.5vw, 88px);
  --section-bg: var(--bg);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1A20; --surface: #13242C; --surface-2: #172C35; --border: #25404B; --text: #E3F0F4; --muted: #9BB4BE;
    --sky: #7CC6E8; --sky-ink: #8FD0EE; --mint: #7FD9BE; --mint-ink: #8EE0C7; --sky-soft: #163746; --mint-soft: #15392F; --on-accent: #0D1A20;
    --band: #102128; --index-ink: #2A4855;
    --tile-sky: #1F4A5C; --tile-mint: #1D4A3E; --tile-neutral: #223D48; --tile-ring: rgba(255,255,255,.08);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.30); --shadow-md: 0 10px 28px rgba(0,0,0,.32); --shadow-lg: 0 18px 44px rgba(0,0,0,.42);
    --portrait-shadow: 0 26px 60px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
    --header-bg: rgba(13,26,32,.82);
    --pane-a: rgba(124,198,232,.16); --pane-b: rgba(22,55,70,.40); --pane-c: rgba(21,57,47,.42);
    --pane-edge: rgba(143,208,238,.30); --pane-line: rgba(143,208,238,.34); --pane-glare: rgba(143,208,238,.10);
    --fe-shadow: rgba(0,0,0,.35); --ring-1: #7CC6E8; --ring-2: #7FD9BE; --ring-3: #2C6B83; --ring-halo: rgba(124,198,232,.09);
    --halo: rgba(52,140,182,.34); --halo-mint: rgba(40,140,112,.16);
    --pane-top: rgba(143,208,238,.46); --pane-sheen: rgba(143,208,238,.09);
    --etch: rgba(143,208,238,.15); --etch-strong: rgba(143,208,238,.3);
    --glass: rgba(19,36,44,.78); --glass-border: rgba(143,208,238,.22); --star: 143,208,238; --star-2: 142,224,199; --shader-1: #0D1A20; --shader-2: #133A4C; --shader-3: #113A31; --shader-4: #172F3B; --tile-hi: rgba(255,255,255,.10); --tile-drop: rgba(0,0,0,.45); --chat-me: #2B7FA6; --dots-base: #24414C; --dots-hot: 143,208,238;
    --floor: rgba(0,0,0,.45);
    --shot-rim: rgba(143,208,238,.16); --shot-shadow: rgba(0,0,0,.62);
    --aurora-sky: rgba(29,111,150,.36); --aurora-aqua: rgba(36,128,158,.24); --aurora-mint: rgba(26,122,96,.30);
    --wash-sky: rgba(29,111,150,.26); --wash-mint: rgba(26,122,96,.24); --wash-mid: rgba(29,111,150,.16);
    --paper: rgba(13,26,32,.82); --grid-dot: rgba(143,208,238,.12);
    --iso-sky: #8FD0EE; --iso-mint: #8EE0C7; --iso-a: .13; --iso-step: .028; --axis: rgba(143,208,238,.3);
    --dot-sky: rgba(124,198,232,.5); --dot-mint: rgba(127,217,190,.5); --pick: rgba(143,208,238,.5); --pick-dot: #8FD0EE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1A20; --surface: #13242C; --surface-2: #172C35; --border: #25404B; --text: #E3F0F4; --muted: #9BB4BE;
  --sky: #7CC6E8; --sky-ink: #8FD0EE; --mint: #7FD9BE; --mint-ink: #8EE0C7; --sky-soft: #163746; --mint-soft: #15392F; --on-accent: #0D1A20;
  --band: #102128; --index-ink: #2A4855;
  --tile-sky: #1F4A5C; --tile-mint: #1D4A3E; --tile-neutral: #223D48; --tile-ring: rgba(255,255,255,.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.30); --shadow-md: 0 10px 28px rgba(0,0,0,.32); --shadow-lg: 0 18px 44px rgba(0,0,0,.42);
  --portrait-shadow: 0 26px 60px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
  --header-bg: rgba(13,26,32,.82);
  --pane-a: rgba(124,198,232,.16); --pane-b: rgba(22,55,70,.40); --pane-c: rgba(21,57,47,.42);
  --pane-edge: rgba(143,208,238,.30); --pane-line: rgba(143,208,238,.34); --pane-glare: rgba(143,208,238,.10);
  --fe-shadow: rgba(0,0,0,.35); --ring-1: #7CC6E8; --ring-2: #7FD9BE; --ring-3: #2C6B83; --ring-halo: rgba(124,198,232,.09);
  --halo: rgba(52,140,182,.34); --halo-mint: rgba(40,140,112,.16);
  --pane-top: rgba(143,208,238,.46); --pane-sheen: rgba(143,208,238,.09);
  --etch: rgba(143,208,238,.15); --etch-strong: rgba(143,208,238,.3);
  --glass: rgba(19,36,44,.78); --glass-border: rgba(143,208,238,.22); --star: 143,208,238; --star-2: 142,224,199; --shader-1: #0D1A20; --shader-2: #133A4C; --shader-3: #113A31; --shader-4: #172F3B; --tile-hi: rgba(255,255,255,.10); --tile-drop: rgba(0,0,0,.45); --chat-me: #2B7FA6; --dots-base: #24414C; --dots-hot: 143,208,238;
  --floor: rgba(0,0,0,.45);
  --shot-rim: rgba(143,208,238,.16); --shot-shadow: rgba(0,0,0,.62);
  --aurora-sky: rgba(29,111,150,.36); --aurora-aqua: rgba(36,128,158,.24); --aurora-mint: rgba(26,122,96,.30);
  --wash-sky: rgba(29,111,150,.26); --wash-mint: rgba(26,122,96,.24); --wash-mid: rgba(29,111,150,.16);
  --paper: rgba(13,26,32,.82); --grid-dot: rgba(143,208,238,.12);
  --iso-sky: #8FD0EE; --iso-mint: #8EE0C7; --iso-a: .13; --iso-step: .028; --axis: rgba(143,208,238,.3);
  --dot-sky: rgba(124,198,232,.5); --dot-mint: rgba(127,217,190,.5); --pick: rgba(143,208,238,.5); --pick-dot: #8FD0EE;
  color-scheme: dark;
}

/* dark mode: white PDF slides and screenshots are the brightest things on the page - tone them down a little */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.figure, .shot, .g-frame) img { filter: brightness(.86) contrast(1.04); }
  :root:not([data-theme="light"]) :is(.figure a, a.shot, .g-frame, .pf-card, .pcard):hover img { filter: none; }
}
:root[data-theme="dark"] :is(.figure, .shot, .g-frame) img { filter: brightness(.86) contrast(1.04); }
:root[data-theme="dark"] :is(.figure a, a.shot, .g-frame, .pf-card, .pcard):hover img { filter: none; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-width: 320px;
  font-family: var(--font); font-size: 1rem; line-height: 1.75; color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 100% -140px, var(--sky-soft), transparent 70%),
    radial-gradient(860px 700px at -260px 420px, var(--mint-soft), transparent 70%);
  background-repeat: no-repeat;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--text); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 750; line-height: 1.3; letter-spacing: -0.025em; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--sky-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
time, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.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;
}
:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.icon { width: 1.125em; height: 1.125em; flex: none; vertical-align: -0.2em; }
.nowrap { white-space: nowrap; }
/* emoji (swhan's project-icon / category-icon / life-icon). Always decorative (aria-hidden), one per item,
   next to a text label; never inside running sentences. Colour emoji font first so Windows shows colour glyphs. */
.emoji, .e-tile, .tl-marker {
  font-family: var(--emoji-font); font-style: normal; font-weight: 400; letter-spacing: 0; line-height: 1;
  font-variant-emoji: emoji;
}
.emoji { display: inline-block; flex: none; }
.e-tile {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--tile-sky); box-shadow: inset 0 0 0 1px var(--tile-ring); font-size: 1.375rem; user-select: none;
}
.e-tile.t-mint { background: var(--tile-mint); }
.e-tile.t-both { background: linear-gradient(135deg, var(--tile-sky) 20%, var(--tile-mint) 80%); }
.e-tile.t-neutral { background: var(--tile-neutral); }
.e-tile.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 1.125rem; }
.e-tile.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 1.625rem; }
.e-tile.xl { width: 64px; height: 64px; border-radius: 18px; font-size: 2rem; }
/* v2.6: the glyph is a bundled Microsoft Fluent Emoji 3D picture (assets/emoji/, MIT) so it looks the same on Windows,
   macOS, Android and iOS. Every font-size rule above (and per section) still sizes it: the picture is 1.2em inline,
   1.16em inside a tile / timeline node, centred on the tile (grid). Inline, the picture is an inline-block dropped
   0.26em below the baseline, so the wrapper keeps a real text baseline: it lines up with the words both in running
   text and in baseline-aligned flex rows (#awards links) - a block picture there sat a quarter line too high.
   Fluent's paper icons (📄 📰 🔗 ✉️) are near-white, so a hairline drop shadow keeps them off a white surface. */
.has-fe > .fe {
  display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.26em; max-width: none; object-fit: contain;
  filter: drop-shadow(0 1px .5px var(--fe-shadow));
}
:is(.e-tile, .tl-marker).has-fe > .fe { width: 1.16em; height: 1.16em; }

/* ---------- pictures on a soft tinted tile (DESIGN.md §6 사진·화면) ----------
   .shot = 16:10 tile (portfolio / archive cards, gallery thumbnails); .g-frame = the case-page cover at its own
   proportions. Same backdrop as the project's emoji tile (sky / mint / sky→mint / neutral) + a light pool in the
   corner + the hero's graph-paper dots fading downward - all decoration. */
.shot, .g-frame {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(90% 80% at 10% 0%, var(--pane-glare), transparent 62%),
    linear-gradient(150deg, var(--sky-soft) 0%, var(--surface-2) 100%);
}
:is(.shot, .g-frame).t-mint {
  background: radial-gradient(90% 80% at 10% 0%, var(--pane-glare), transparent 62%), linear-gradient(150deg, var(--mint-soft) 0%, var(--surface-2) 100%);
}
:is(.shot, .g-frame).t-both {
  background: radial-gradient(90% 80% at 10% 0%, var(--pane-glare), transparent 62%), linear-gradient(135deg, var(--sky-soft) 12%, var(--mint-soft) 88%);
}
:is(.shot, .g-frame).t-neutral {
  background: radial-gradient(90% 80% at 10% 0%, var(--pane-glare), transparent 62%), linear-gradient(150deg, var(--surface-2) 0%, var(--bg) 100%);
}
.shot::before, .g-frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.4px);
  background-size: 14px 14px; background-position: 7px 7px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%); mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.shot { display: block; aspect-ratio: 16 / 10; }
.shot img {
  position: absolute; display: block; max-width: none; background: var(--surface);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .16s;
}
/* cover: a screenshot rises from the bottom edge like an app window (cropped at --pos, top by default) */
.shot.is-cover img {
  left: 7%; top: 9%; width: 86%; height: calc(91% + 8px);
  object-fit: cover; object-position: var(--pos, 50% 0%);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 0 1px var(--shot-rim), 0 14px 30px -10px var(--shot-shadow);
}
/* contain: the whole picture (posters, wide strips, diagrams) centred with a tinted margin; the generator sizes
   the box to the picture (--w / --h), so radius and shadow sit on the picture itself, never on empty letterbox */
.shot.is-contain img {
  left: calc((100% - var(--w, 86%)) / 2); top: calc((100% - var(--h, 86%)) / 2);
  width: var(--w, 86%); height: var(--h, 86%); object-fit: contain;
  border-radius: 6px; box-shadow: 0 0 0 1px var(--shot-rim), 0 10px 24px -12px var(--shot-shadow);
}
.zoom-hint {
  position: absolute; right: 10px; bottom: 10px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--glass); color: var(--sky-ink); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease);
}

.container {
  width: 100%; max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
}
.skip-link {
  position: absolute; left: 12px; top: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--sky-ink); color: var(--on-accent);
  font-weight: 650; text-decoration: none; transform: translateY(-160%); transition: transform .16s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- header (swhan grammar: clean, light, 70px, hairline bottom border) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border); transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 18px -14px rgba(19,48,59,.35); }
.header-inner { position: relative; display: flex; align-items: center; gap: 12px; min-height: 69px; } /* + 1px border = 70px */
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; flex: none;
  color: var(--text); font-weight: 700; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.wordmark .mark { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.wordmark .en { color: var(--muted); font-weight: 500; }
.nav-list, .nav-sub { list-style: none; }
.nav-list { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav a, .nav-more-btn {
  position: relative; display: inline-flex; align-items: center; gap: 3px; min-height: 44px; padding: 0 11px;
  border: 0; border-radius: 10px; background: transparent; white-space: nowrap;
  color: var(--muted); font: inherit; font-size: .9375rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; transition: color .16s, background-color .16s;
}
.nav a:hover, .nav-more-btn:hover { color: var(--text); background: var(--surface-2); }
/* active tab (scrollspy aria-current): ink text + a short underline bar, no weight change (no layout shift) */
.nav-list > li > a::after, .nav-more-btn::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--sky-ink); transform: scaleX(0); transition: transform .2s var(--ease);
}
.nav-list > li > a[aria-current="location"], .nav-more.has-current > .nav-more-btn { color: var(--sky-ink); }
.nav-list > li > a[aria-current="location"]::after, .nav-more.has-current > .nav-more-btn::after { transform: none; }
.nav-more { position: relative; }
.nav-more-btn .chev { width: 1em; height: 1em; transition: transform .16s var(--ease); }
.nav-more-btn[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.nav-more-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-sub {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; min-width: 200px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.js .nav-more-btn[aria-expanded="false"] + .nav-sub { display: none; }
.nav-sub a { display: flex; width: 100%; min-height: 42px; }
.nav-sub a[aria-current="location"] { color: var(--sky-ink); background: var(--sky-soft); }
/* without JS: no disclosure button, the extra links simply continue the bar */
html:not(.js) .nav-more-btn { display: none; }
html:not(.js) .nav-sub { position: static; display: flex; flex-wrap: wrap; min-width: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; font: inherit; padding: 0;
}
.icon-btn:hover { border-color: var(--sky); }
.theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
html:not(.js) .theme-toggle, html:not(.js) .menu-toggle { display: none; }
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.nav-open .menu-toggle .i-close { display: block; }
.nav-open .menu-toggle .i-menu { display: none; }

/* without JS every link is shown, so the bar may wrap onto a second row */
html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 6px; }
html:not(.js) .nav { order: 3; width: 100%; }
html:not(.js) .nav-list { flex-wrap: wrap; }
/* measured: the full bar needs ~760px without the English name, so it stays one row from 861px up */
@media (max-width: 960px) { .wordmark .en { display: none; } }
/* phones and small tablets: hamburger panel listing every item in the bar's order (main tabs, then 더 보기) */
@media (max-width: 860px) {
  .js .menu-toggle { display: inline-grid; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    padding: 8px var(--gutter) 16px;
  }
  .js .nav-open .nav { display: block; }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .nav a, .js .nav-more-btn { width: 100%; padding: 0 14px; font-size: 1rem; }
  .js .nav-list > li > a::after, .js .nav-sub a::after {
    content: ""; position: absolute; left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto;
    border-radius: 2px; background: var(--sky-ink); transform: scaleY(0); transition: transform .2s var(--ease);
  }
  .js .nav-list > li > a[aria-current="location"], .js .nav-sub a[aria-current="location"] { background: var(--sky-soft); }
  .js .nav-list > li > a[aria-current="location"]::after, .js .nav-sub a[aria-current="location"]::after { transform: none; }
  /* the panel already lists everything in page order: the 더 보기 items simply continue after a hairline */
  .js .nav-more { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
  .js .nav-more-btn { display: none; }
  .js .nav-more-btn + .nav-sub, .js .nav-more-btn[aria-expanded="false"] + .nav-sub { display: flex; flex-direction: column; gap: 2px; }
  .js .nav-sub { position: static; min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .js .nav-sub a { padding: 0 14px; }
}

/* ---------- buttons, pills, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: .9375rem; text-decoration: none; cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .16s, border-color .16s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--sky-ink); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--sky-ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--sky); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--sky); }
.btn .meta { font-weight: 500; opacity: .8; font-size: .8125rem; }
.btn-ghost .icon:last-of-type:not(:first-child) { width: .875em; height: .875em; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 650; line-height: 1.7; white-space: nowrap; border: 1px solid transparent;
}
.pill-sky { background: var(--sky-soft); color: var(--sky-ink); }
.pill-mint { background: var(--mint-soft); color: var(--mint-ink); }
.pill-neutral { background: var(--surface-2); color: var(--muted); }
.pill-outline { border-color: var(--border); color: var(--muted); background: var(--surface); }
.tier-grand { background: var(--sky-ink); color: var(--on-accent); }
.tier-top { background: var(--sky-soft); color: var(--sky-ink); }
.tier-excellent { background: var(--mint-soft); color: var(--mint-ink); }
.tier-org { background: var(--surface-2); color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 8px; font-size: .8125rem; line-height: 1.6;
  background: var(--surface-2); color: var(--muted);
}
.link-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.link-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--sky-ink); font-weight: 600; font-size: .9375rem; text-decoration: none;
  transition: border-color .16s, background-color .16s, box-shadow .16s;
}
.link-chip:hover { border-color: var(--sky); background: var(--sky-soft); }
/* soft tinted primary (swhan's light-blue card buttons): sixteen archive cards must not read as sixteen dark slabs */
.link-chip.is-primary { background: var(--sky-soft); border-color: transparent; color: var(--sky-ink); }
.link-chip.is-primary:hover { background: var(--sky-soft); border-color: var(--sky); box-shadow: var(--shadow-sm); }
.link-chip.sm { min-height: 40px; padding: 0 12px; font-size: .875rem; }
.link-chip .type { color: var(--muted); font-weight: 500; font-size: .8125rem; }
.link-chip .emoji, .btn .emoji { font-size: 1.0625em; margin-right: 1px; }
.inline-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-block: -10px; font-weight: 600; }
.inline-link .icon { width: .95em; height: .95em; }
.inline-link .emoji { margin-right: 2px; }
/* the underline belongs to the words, not the emoji in front of them */
.inline-link:has(> .emoji), .mini-links a:has(> .emoji) { text-decoration: none; }
.inline-link:has(> .emoji) > span:not(.emoji):not(.sr-only), .mini-links a:has(> .emoji) > span:not(.emoji):not(.sr-only) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.inline-link:has(> .emoji):hover > span:not(.emoji):not(.sr-only), .mini-links a:has(> .emoji):hover > span:not(.emoji):not(.sr-only) { text-decoration-thickness: 2px; }
.pill .emoji { font-size: 1.05em; margin-right: 1px; }
.award-tag { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; color: var(--text); }
.award-tag .emoji { font-size: 1.0625rem; }
.label { display: inline-block; min-width: 2.6em; margin-right: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section.alt { --section-bg: var(--band); background: var(--band); border-block: 1px solid var(--border); }
.section:not(.alt) + .section:not(.alt) { padding-top: 0; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 14px 48px; align-items: end;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.section-head h2 { max-width: 20em; }
.section-head .summary { color: var(--muted); font-size: .9375rem; line-height: 1.75; max-width: 32em; }
@media (max-width: 960px) { .section-head { grid-template-columns: 1fr; } }
.kicker {
  margin: 0 0 10px; font-size: .75rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sky-ink);
}
.kicker-ko { letter-spacing: .02em; text-transform: none; }

/* ---------- #about hero ---------- */
/* Background (v2.4 → v2.5, "너무 밋밋해"): an analyst's chart under morning light, five layers, all decoration —
   1 aurora + wash: sky / aqua / mint light pooled on the portrait side, and a sky→mint wash that reaches across the
     whole hero (sky from the top-left corner, mint from the bottom-left, a broad sky haze in the middle) — v2.4 only
     lit the portrait side, so the copy half stayed the old blank sheet with a visible seam down the middle
   2 graph-paper dot grid edge to edge (lighter on the copy side), fading out at the bottom
   3 .hero-plot (inline SVG from the generator): density contours + the scatter they summarise, peaking behind the
     portrait and fading out before the text column
   4 .hero-copy::before: a blurred --paper clearing that follows the copy block at every width, so the wash and dots
     calm down under the text (measured: every hero line ≥ 5.2:1 light, ≥ 7.7:1 dark)
   5 the glass panes, which float gently and blur the contours behind them */
.hero {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px);
}
.hero::before {
  content: ""; position: absolute; inset: -14% -10% -4%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(33% 46% at 80% 30%, var(--aurora-sky), transparent 72%),
    radial-gradient(28% 40% at 95% 72%, var(--aurora-aqua), transparent 70%),
    radial-gradient(34% 40% at 60% 86%, var(--aurora-mint), transparent 72%),
    radial-gradient(40% 64% at 56% 44%, var(--wash-mid), transparent 78%),
    radial-gradient(40% 60% at 2% 0%, var(--wash-sky), transparent 74%),
    radial-gradient(44% 60% at 14% 104%, var(--wash-mint), transparent 74%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 97%);
          mask-image: linear-gradient(180deg, #000 60%, transparent 97%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.6px);
  background-size: 22px 22px; background-position: 11px 11px;
  /* graph paper across the whole hero, half strength on the copy side, gone at the bottom edge */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.55), #000 66%), linear-gradient(180deg, #000 72%, transparent 98%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, rgba(0,0,0,.55), #000 66%), linear-gradient(180deg, #000 72%, transparent 98%);
          mask-composite: intersect;
}
.hero-copy { position: relative; z-index: 1; }
/* the clearing: as wide as the text actually runs (.hero-desc caps at 36em of 17px ≈ 38.5em here), blurred so it has no edge */
.hero-copy::before {
  content: ""; position: absolute; z-index: -1; top: -24px; bottom: -24px; left: -40px; width: calc(min(100%, 38.5em) + 72px);
  border-radius: 48px; background: var(--paper); filter: blur(28px); pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-greeting { font-size: 1.0625rem; font-weight: 500; color: var(--muted); }
.hero-name {
  margin-top: 4px; font-size: clamp(2.75rem, 1.9rem + 3.4vw, 4.5rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.035em;
}
.hero-name .en { display: inline-block; margin-left: .25em; font-size: .34em; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.hero-role {
  margin-top: 12px; font-size: clamp(1.125rem, 1rem + .55vw, 1.4rem); font-weight: 650;
  color: var(--sky-ink); letter-spacing: -0.01em; line-height: 1.5;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 18px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--sky-ink);
  font-size: .8125rem; font-weight: 650; line-height: 1.3; text-decoration: none;
  transition: border-color .16s, background-color .16s, transform .16s var(--ease);
}
.hero-badge .emoji { font-size: 1.0625rem; }
/* the badges name the team ("· 팀 도달"), so they are longer: a 2×2 grid instead of a 3+1 wrap with an orphan */
@media (min-width: 561px) {
  .hero-badges { display: grid; grid-template-columns: repeat(2, max-content); }
  .hero-badges li { display: flex; }
  .hero-badges .hero-badge { flex: 1 1 auto; }
}
a.hero-badge:hover { border-color: var(--sky); transform: translateY(-1px); }
.hero-badge.tone-grand { background: var(--sky-ink); border-color: var(--sky-ink); color: var(--on-accent); }
.hero-badge.tone-top, .hero-badge.tone-sky { background: var(--sky-soft); border-color: transparent; }
.hero-badge.tone-excellent, .hero-badge.tone-mint { background: var(--mint-soft); border-color: transparent; color: var(--mint-ink); }
a.hero-badge.tone-top:hover, a.hero-badge.tone-sky:hover, a.hero-badge.tone-excellent:hover, a.hero-badge.tone-mint:hover { border-color: currentColor; }
.hero-edu { margin-top: 16px; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.hero-edu .emoji { margin-top: .12em; font-size: 1.0625rem; }
.hero-lead {
  margin-top: 28px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 700;
  line-height: 1.45; letter-spacing: -0.02em; text-wrap: balance;
}
.hero-desc { margin-top: 10px; max-width: 36em; color: var(--muted); font-size: 1.0625rem; line-height: 1.75; text-wrap: pretty; }
.hero-desc p { margin: 0; }
.hero-desc p + p { margin-top: 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Signature: the portrait in a thin sky→mint ring, standing in front of three glass bars (echo of the PDF cover).
   v2.6 ("사진 뒤 디자인 조금 더 다듬어줘"): everything behind the photo is laid out in portrait units inside .stage
   (the portrait's own square box), so the group keeps one proportion at every width - before, the panes were % of
   the column and became wide squat slabs on phones and tall narrow slabs on desktop. The bars rise left-low →
   right-high on one x-axis, share one radius, carry a top highlight and a faint etched chart each (bars · grid ·
   line), so they read as data glass rather than blank slabs. */
.hero-visual { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 440px; }
.stage { position: relative; width: min(300px, 72%); margin-right: 8%; --tilt: -20deg; }
/* halo: soft sky→mint light right behind the portrait, under the glass (the panes' blur catches it) */
.stage::before {
  content: ""; position: absolute; inset: -17%; z-index: -2; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--halo) 0%, var(--halo-mint) 50%, transparent 100%);
}
.panes { position: absolute; inset: 0; z-index: -1; perspective: 1100px; pointer-events: none; }
.pane {
  position: absolute; bottom: -6%; border-radius: var(--pane-r, 16px); overflow: hidden;
  background:
    linear-gradient(118deg, transparent 36%, var(--pane-glare) 46%, transparent 58%),
    linear-gradient(165deg, var(--pane-a), var(--pane-b) 58%, var(--pane-c));
  border: 1px solid var(--pane-line);
  box-shadow: inset 0 1px 0 var(--pane-top), inset 0 0 0 1px var(--pane-edge), var(--shadow-lg);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  transform: rotateY(var(--tilt)); transform-origin: 50% 100%;
}
/* top highlight: a soft sheen band under the lit top edge */
.pane::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 34%; pointer-events: none;
  background: linear-gradient(180deg, var(--pane-sheen), transparent);
}
/* faint etching - each pane a different small chart, placed where the portrait does not cover it */
.pane::after { content: ""; position: absolute; pointer-events: none; }
/* back, tallest (right): a rising line with its last point */
.pane-1 { left: 100%; width: 34%; height: 94%; }
.pane-1::after {
  left: 16%; right: 14%; top: 7%; aspect-ratio: 100 / 46; background: var(--etch-strong);
  -webkit-mask: var(--etch-line) center / 100% 100% no-repeat; mask: var(--etch-line) center / 100% 100% no-repeat;
}
/* middle: graph-paper rules + a small scatter, in the part right of the portrait */
.pane-2 { left: 77%; width: 35%; height: 70%; }
.pane-2::after {
  right: 12%; top: 12%; width: 40%; height: 60%;
  background:
    radial-gradient(circle, var(--etch-strong) 0 2.2px, transparent 2.6px) 22% 30% / 9px 9px no-repeat,
    radial-gradient(circle, var(--etch-strong) 0 2.2px, transparent 2.6px) 78% 18% / 9px 9px no-repeat,
    radial-gradient(circle, var(--etch-strong) 0 2.2px, transparent 2.6px) 56% 58% / 9px 9px no-repeat,
    repeating-linear-gradient(180deg, var(--etch) 0 1px, transparent 1px 25%);
}
/* front, lowest (left): three rising bars */
.pane-3 { left: -25%; width: 36%; height: 50%; }
.pane-3::after {
  left: 15%; bottom: 11%; width: 46%; height: 52%;
  background:
    linear-gradient(var(--etch), var(--etch)) 0 100% / 24% 44% no-repeat,
    linear-gradient(var(--etch), var(--etch)) 50% 100% / 24% 70% no-repeat,
    linear-gradient(var(--etch-strong), var(--etch-strong)) 100% 100% / 24% 100% no-repeat;
}
/* the bars' shared floor is the chart's x-axis: a hairline with ticks */
.axis {
  z-index: -1;
  position: absolute; left: -38%; right: -46%; top: 106%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--axis) 12%, var(--axis) 88%, transparent);
}
.axis::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 1px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--axis) 0 1px, transparent 1px 32px);
}
.floor {
  position: absolute; left: -22%; right: -36%; top: 99%; height: 15%; z-index: -2;
  background: radial-gradient(closest-side, var(--floor), transparent); filter: blur(4px);
}
/* density plot: centred on the portrait (46% = portrait centre, it carries margin-right: 8%), scaled with the column,
   masked to an ellipse and cut off on the left so no contour runs under the copy */
.hero-plot {
  position: absolute; z-index: -3; left: 46%; top: 50%; width: 283%; height: auto; max-width: none;
  aspect-ratio: 1120 / 800; transform: translate(-50%, -50%); pointer-events: none; overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 47%), radial-gradient(closest-side, #000 48%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 30%, #000 47%), radial-gradient(closest-side, #000 48%, transparent 100%);
          mask-composite: intersect;
}
.hero-plot .iso { fill: none; stroke-width: 1.15; stroke-linejoin: round; stroke-opacity: calc(var(--iso-a) + var(--k) * var(--iso-step)); }
.hero-plot .iso-sky { stroke: var(--iso-sky); }
.hero-plot .iso-mint { stroke: var(--iso-mint); }
.hero-plot .dots { fill: none; stroke-width: 4.5; stroke-linecap: round; }
.hero-plot .dots-sky { stroke: var(--dot-sky); }
.hero-plot .dots-mint { stroke: var(--dot-mint); }
.hero-plot .pick { fill: none; stroke: var(--pick); stroke-width: 1.3; stroke-dasharray: 3 2.5; }
.hero-plot .dots-pick { stroke: var(--pick-dot); } /* the observation each ring marks (v2.4 rings circled nothing and read as dust) */
/* portrait: photo → a thin mat → a 2px sky→mint conic ring → a soft halo (glow + a faint outer ring of light) */
.portrait {
  position: relative; display: block; width: 100%; aspect-ratio: 1;
  border-radius: 50%; padding: 6px; border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from 210deg, var(--ring-1), var(--ring-3) 28%, var(--ring-2) 52%, var(--ring-3) 76%, var(--ring-1)) border-box;
  box-shadow: 0 0 0 6px var(--ring-halo), 0 0 46px 4px var(--halo), var(--portrait-shadow);
}
.portrait img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pane { background: linear-gradient(165deg, var(--surface), var(--surface-2)); }
}
/* two columns but little page margin left (861–1260px): the group reaches ~0.86 portrait right of the portrait centre,
   so a slightly smaller portrait sits a little further left - the tallest pane stays inside the column instead of
   touching the window edge (measured: ≥ 28px clear from 861 to 1260px, ≥ 44px above) */
@media (min-width: 861px) and (max-width: 1260px) {
  .stage { width: min(300px, 64%); margin-right: 10%; }
  .hero-plot { left: 45%; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { order: -1; min-height: 270px; width: 100%; max-width: 440px; justify-self: center; }
  /* the group reaches further right (two bars) than left (one): nudge it so it sits centred under the copy */
  .stage { width: 200px; margin-right: 0; translate: -4% 0; --pane-r: 12px; }
  .portrait { padding: 5px; }
  /* portrait on top, copy underneath: light and dots pool around the portrait, the plot fades out downward;
     a faint sky / mint wash keeps the copy half tinted, the --paper clearing calms it under the text */
  .hero::before {
    background:
      radial-gradient(44% 24% at 74% 14%, var(--aurora-sky), transparent 72%),
      radial-gradient(40% 20% at 16% 22%, var(--aurora-mint), transparent 72%),
      radial-gradient(36% 20% at 96% 36%, var(--aurora-aqua), transparent 70%),
      radial-gradient(60% 26% at 0% 62%, var(--wash-sky), transparent 74%),
      radial-gradient(60% 26% at 100% 88%, var(--wash-mint), transparent 74%);
  }
  .hero-copy::before { left: -24px; width: calc(100% + 48px); filter: blur(24px); }
  .hero::after {
    -webkit-mask-image: radial-gradient(62% 16% at 50% 17%, #000 0%, rgba(0,0,0,.5) 50%, transparent 86%);
            mask-image: radial-gradient(62% 16% at 50% 17%, #000 0%, rgba(0,0,0,.5) 50%, transparent 86%);
  }
  .hero-plot {
    left: 50%; width: 190%;
    -webkit-mask-image: linear-gradient(180deg, #000 38%, transparent 66%), radial-gradient(closest-side, #000 48%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 38%, transparent 66%), radial-gradient(closest-side, #000 48%, transparent 100%);
  }
  .hero-plot .iso { stroke-width: 1.7; }
  .hero-plot .dots { stroke-width: 6; }
  .hero-plot .pick { stroke-width: 1.8; }
}
@media (max-width: 480px) {
  .hero-visual { min-height: 236px; }
  .stage { width: 176px; --pane-r: 11px; }
  .hero-desc { font-size: 1rem; }
  .cta-row .btn { flex: 1 1 auto; }
  /* hero: primary CTA on its own row, GitHub + 블로그 share the next row (no orphan button) */
  .hero .cta-row .btn-primary { flex-basis: 100%; }
  .hero .cta-row .btn-ghost { flex: 1 1 0; min-width: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  /* one load sequence: contours draw outward from the portrait while the panes rise, then the scatter settles;
     afterwards only a slow drift of the light and a gentle float of the glass */
  .hero-plot .iso { stroke-dasharray: 1; stroke-dashoffset: 1; animation: iso-draw 1.5s var(--ease) calc(.1s + var(--r) * 80ms) forwards; }
  .hero-plot .scatter { animation: fade-in .8s var(--ease) .75s both; }
  .hero::before { animation: aurora-drift 24s ease-in-out infinite alternate; }
  .pane { animation: pane-in .9s var(--ease) both, pane-float 8s ease-in-out .9s infinite alternate; }
  .pane-2 { animation-delay: .08s, 1.7s; animation-duration: .9s, 9.5s; }
  .pane-3 { animation-delay: .16s, 2.4s; animation-duration: .9s, 7s; }
  .portrait { animation: fade-up .7s var(--ease) .18s both; }
  /* main.js marks the hero once it is scrolled away: the endless drift/float stop costing frames off-screen */
  .hero.is-offscreen::before, .hero.is-offscreen .pane { animation-play-state: paused; }
}
@keyframes pane-in { from { opacity: 0; transform: rotateY(var(--tilt)) translateY(22px); } to { opacity: 1; transform: rotateY(var(--tilt)); } }
@keyframes pane-float { from { transform: rotateY(var(--tilt)) translateY(0); } to { transform: rotateY(var(--tilt)) translateY(-8px); } }
@keyframes iso-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes aurora-drift { from { transform: none; } to { transform: translate3d(-2.5%, 1.5%, 0) scale(1.05); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- #portfolio: 2×2 numbered cards ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.pf-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 300px; overflow: hidden;
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s var(--ease);
}
.pf-card.has-media { min-height: 0; }
.pf-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 28px 28px 24px; }
.pf-card.has-media .pf-body { padding-top: 22px; }
.pf-media { flex: none; border-bottom: 1px solid var(--border); }
.pf-card:hover .shot.is-cover img { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--shot-rim), 0 20px 36px -12px var(--shot-shadow); }
.pf-card:hover .shot.is-contain img { transform: scale(1.025); }
.pf-card:not(.has-media)::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, var(--sky-soft), transparent); transition: opacity .2s;
}
.pf-card:hover { transform: translateY(-3px); border-color: var(--sky); box-shadow: var(--shadow-md); }
.pf-card:hover::before { opacity: .7; }
.pf-card.is-wide { grid-column: 1 / -1; }
.pf-index {
  flex: none; margin-left: auto; padding-left: 8px; font-size: clamp(2.4rem, 1.9rem + 1.8vw, 3.25rem); font-weight: 800;
  line-height: 1; letter-spacing: -0.04em; color: var(--index-ink); font-variant-numeric: tabular-nums;
}
.pf-top { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; }
.pf-card.has-media .pf-top { margin-bottom: 1.125rem; }
.pf-eyebrow {
  min-width: 0; padding: 3px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
  font-size: .75rem; font-weight: 700; line-height: 1.6; letter-spacing: .01em;
}
.pf-card .e-tile { width: 52px; height: 52px; border-radius: 15px; font-size: 1.625rem; transition: transform .2s var(--ease); }
.pf-card:hover .e-tile { transform: rotate(-4deg) scale(1.04); }
.pf-card h3 { max-width: 18em; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.625rem); font-weight: 750; line-height: 1.35; letter-spacing: -0.025em; }
.pf-card h3 a { color: var(--text); text-decoration: none; }
.pf-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.pf-card h3 a:focus-visible { outline: none; }
.pf-card h3 a:focus-visible::after { outline: 3px solid var(--sky-ink); outline-offset: -3px; }
.pf-desc { position: relative; margin-top: 10px; max-width: 34em; color: var(--muted); }
.pf-card .award-tag { position: relative; margin-top: 14px; }
.pf-cta {
  margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--sky-ink); font-size: .875rem; font-weight: 700;
}
.pf-cta .icon { transition: transform .2s var(--ease); }
.pf-card:hover .pf-cta .icon { transform: translateX(3px); }
/* an odd last card spans the row: picture left, text right */
@media (min-width: 721px) {
  .pf-card.is-wide.has-media { flex-direction: row; }
  .pf-card.is-wide .pf-media { flex: 0 0 50%; aspect-ratio: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card { min-height: 0; }
  .pf-body { padding: 24px 22px 20px; }
  .pf-card.has-media .pf-body { padding-top: 18px; }
  .pf-top { margin-bottom: 1.25rem; }
}

/* ---------- #experience timeline ---------- */
/* emoji nodes on the line say what kind of activity each entry is (봉사 · 창업 · 연구 · AI 크루 · 행정 · 동아리) */
.timeline { position: relative; max-width: 860px; padding-left: 58px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute; left: -58px; top: -2px; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border); font-size: 1.125rem;
  box-shadow: 0 0 0 5px var(--section-bg);
}
.tl-item:first-child .tl-marker { background: var(--tile-mint); border-color: var(--mint); }
@media (max-width: 480px) {
  .timeline { padding-left: 48px; }
  .timeline::before { left: 16px; }
  .tl-marker { left: -48px; width: 34px; height: 34px; font-size: 1rem; }
}
.tl-date { display: block; font-size: .8125rem; font-weight: 650; color: var(--sky-ink); letter-spacing: .01em; }
.tl-content h3 { margin-top: 2px; font-size: 1.125rem; }
.tl-org { color: var(--muted); font-size: .9375rem; font-weight: 500; }
.tl-desc { margin-top: 8px; max-width: 46em; }
.tl-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 6px; list-style: none; font-size: .9375rem; }

/* ---------- #awards (수상 & 대외 성과) ---------- */
.award-total {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 16px 6px 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: .9375rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.award-total .emoji { font-size: 1.0625rem; }
.table-wrap { padding: 4px 20px 8px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.award-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.award-table thead th {
  text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--muted);
  padding: 14px 12px 10px; border-bottom: 1px solid var(--border);
}
.award-table td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--border); transition: background-color .4s; }
.award-table tbody:last-child tr:last-child td { border-bottom: 0; }
.award-table .month-row th {
  text-align: left; padding: 20px 12px 8px; border-bottom: 2px solid var(--sky);
  font-size: .9375rem; font-weight: 700; color: var(--sky-ink); font-variant-numeric: tabular-nums;
}
.award-table tr:target td { background: var(--sky-soft); }
.award-table .col-tier { width: 96px; }
.award-table .award-name { font-weight: 650; }
.award-status { display: block; margin-top: 5px; font-size: .75rem; font-weight: 650; color: var(--mint-ink); line-height: 1.55; }
.award-tag .award-status { flex-basis: 100%; margin-top: 0; }
.award-table .org { display: block; color: var(--muted); font-size: .875rem; }
/* organizer homepage: muted, underline on hover only, so it is not mistaken for a result link */
.award-table .org a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; }
.award-table .org a:hover { color: var(--text); text-decoration: underline; }
.ev { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* long labels ("2차 심사 결과 (본선 8팀)") wrap under their own first word, not under the emoji (hanging indent) */
.ev .inline-link { display: inline-flex; align-items: baseline; gap: 4px; min-height: 0; margin: 0; padding-block: 2px; line-height: 1.6; }
.ev .inline-link > span:not(.emoji):not(.sr-only) { min-width: 0; }
.ev .inline-link span > .icon { margin-left: 4px; vertical-align: -0.12em; }
/* "📰 보도 N건 모아보기 →": one link to the collected #media story instead of separate article links */
.press-rollup span > .icon { width: .9em; height: .9em; margin-left: 4px; vertical-align: -0.12em; }
.award-table .col-evidence { width: 196px; }
.ev .emoji { flex: none; margin-right: 0; }
.award-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 24px; align-items: start; }
.pending-groups { display: grid; gap: 20px; min-width: 0; }
.pending, .latest { padding: 22px 24px 10px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.pending { border-style: dashed; }
.pending.is-confirmed { border-style: solid; border-top: 3px solid var(--mint); }
.pending h3, .latest-head h3 { display: flex; align-items: center; gap: 8px; font-size: 1.0625rem; }
.pending h3 .icon { color: var(--sky-ink); }
.pending ul, .latest-list { list-style: none; margin-top: 10px; }
.pending li, .latest-list li { padding: 12px 0; border-top: 1px solid var(--border); }
.pending strong { display: block; font-weight: 650; line-height: 1.5; }
.pending .status { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 650; color: var(--sky-ink); line-height: 1.5; }
.pending.is-confirmed .status { color: var(--mint-ink); }
.pending-meta { margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.pending-evidence { margin-top: 5px; font-size: .8125rem; }
.pending .note { margin-top: 4px; font-size: .8125rem; color: var(--muted); line-height: 1.6; }
.latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.latest-date { font-size: .8125rem; color: var(--muted); }
.latest-kicker { display: block; font-size: .75rem; font-weight: 750; letter-spacing: .04em; }
.k-mint { color: var(--mint-ink); }
.k-sky { color: var(--sky-ink); }
.k-neutral { color: var(--muted); }
.latest-text { margin-top: 2px; font-size: .9375rem; font-weight: 600; line-height: 1.55; }
.latest-foot { margin-top: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; font-size: .8125rem; color: var(--muted); }
.latest-foot .inline-link { font-size: .8125rem; }
.more-updates { border-top: 1px solid var(--border); }
.more-updates summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer;
  color: var(--sky-ink); font-weight: 650; font-size: .875rem; list-style: none;
}
.more-updates summary::-webkit-details-marker { display: none; }
.more-updates summary::before { content: "+"; width: 1em; font-weight: 700; }
.more-updates[open] summary::before { content: "−"; }
.more-updates .latest-list { margin-top: 0; }
@media (max-width: 960px) { .award-lower { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .table-wrap { padding: 0; border: 0; background: transparent; }
  .award-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .award-table, .award-table tbody, .award-table tr, .award-table td, .award-table th { display: block; width: 100%; }
  .award-table tbody tr:not(.month-row) {
    position: relative; margin-bottom: 12px; padding: 16px 16px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  }
  .award-table tr:target { border-color: var(--sky-ink); }
  .award-table td { border: 0; padding: 2px 0; }
  .award-table td.col-tier { margin-bottom: 4px; }
  .award-table .month-row th { padding: 16px 0 8px; margin-bottom: 12px; }
  .award-table .col-tier, .award-table .col-evidence { width: 100%; } /* desktop fixed widths would cut the divider short */
  .award-table td.col-evidence { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
  .ev { flex-direction: row; flex-wrap: wrap; gap: 2px 14px; }
  .award-table td[data-label]::before {
    content: attr(data-label); display: block; margin-top: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--muted);
  }
  .award-table td.col-evidence[data-label]::before { margin-top: 0; }
  .pending, .latest { padding: 18px 18px 8px; }
}

/* ---------- #writing (기록) ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; list-style: none; }
.post {
  position: relative; display: flex; flex-direction: column; padding: 20px 22px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
}
.post:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--sky); }
/* tile for the kind of post (💡 회고 · 🛠️ 개발 · 🙋 Q&A · 🧭 멘토링 · 🎤 발표 …) + date, like the talk cards */
.post-meta { display: flex; align-items: center; gap: 10px; }
.post .date { font-size: .8125rem; font-weight: 600; color: var(--sky-ink); }
.post h3 { margin-top: 12px; font-size: 1rem; line-height: 1.55; }
.post:hover .e-tile { transform: rotate(-6deg) scale(1.06); }
.post .e-tile { transition: transform .2s var(--ease); }
.post h3 a { color: var(--text); text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.post h3 a:focus-visible { outline: none; }
.post h3 a:focus-visible::after { outline: 3px solid var(--sky-ink); outline-offset: -3px; }
.post p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.blog-note { margin-top: 16px; font-size: .875rem; color: var(--muted); }
.posts-more { margin-top: 18px; }

/* ---------- #projects archive ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font: inherit; font-size: .9375rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background-color .16s, color .16s, border-color .16s;
}
.chip:hover { border-color: var(--sky); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--sky-ink); border-color: var(--sky-ink); color: var(--on-accent); }
.chip.award-toggle { display: inline-flex; align-items: center; gap: 6px; }
.chip.award-toggle .emoji { font-size: 1.0625rem; }
.chip.award-toggle[aria-pressed="true"] { background: var(--mint-soft); border-color: var(--mint); color: var(--mint-ink); }
.filter-sep { width: 1px; height: 28px; background: var(--border); }
.result-count { margin-bottom: 18px; font-size: .875rem; color: var(--muted); }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; list-style: none; }
.pcard {
  --pad: 22px;
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  padding: var(--pad) var(--pad) 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  transition: border-color .16s, box-shadow .16s var(--ease);
}
/* cover thumb bleeds to the card edges (the card's radius clips its top corners) */
.pcard .p-media { margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 18px; border-bottom: 1px solid var(--border); }
.pcard:hover .shot.is-cover img { transform: translateY(-4px); }
.pcard:hover .shot.is-contain img { transform: scale(1.025); }
/* the project emoji tile (tinted by category: sky = data, mint = AI, both = sky→mint) replaces the old top bar */
.pcard:hover { border-color: var(--sky); box-shadow: var(--shadow-md); }
.p-head { display: flex; align-items: center; gap: 12px; }
.p-order { min-width: 0; font-size: .75rem; font-weight: 700; letter-spacing: .02em; line-height: 1.5; color: var(--muted); }
.p-order .no { margin-right: 8px; color: var(--sky-ink); font-variant-numeric: tabular-nums; }
.pcard h3 { margin-top: 12px; font-size: 1.125rem; }
.pcard h3 a { color: var(--text); text-decoration: none; }
.pcard h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.p-status { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.p-status .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--mint-ink); transform: translateY(-1px); }
.pcard .one-liner { margin-top: 8px; font-size: .9375rem; }
.pcard .meta-line { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8125rem; color: var(--muted); }
.pcard .tags { margin-top: 12px; }
.p-links { margin-top: auto; padding-top: 16px; }
.empty { padding: 28px; border: 1px dashed var(--border); border-radius: 16px; text-align: center; color: var(--muted); background: var(--surface); }
.empty .btn { margin-top: 12px; }
.featured-more { margin: -6px 0 18px; }
@media (max-width: 720px) {
  .pcard { --pad: 18px; padding-bottom: 14px; }
  .pcard .p-media { margin-bottom: 16px; }
  .pcard .tags { display: none; }
  /* main.js: in the default "전체" view the portfolio projects (shown above) fold away */
  [data-archive].fold-featured .pcard[data-featured] { display: none; }
}
@media (max-width: 480px) {
  .filters { flex-direction: column; align-items: stretch; }
  .filter-sep { display: none; }
  .chip.award-toggle { align-self: flex-start; }
}

/* ---------- #teaching ---------- */
.t-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.t-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.t-panel { padding: 22px 24px 8px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.t-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; font-size: 1.0625rem; }
.t-list { list-style: none; }
.t-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.t-topic { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 650; line-height: 1.5; }
.t-meta, .t-note { grid-column: 1; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.t-note { font-size: .8125rem; }
.t-date { grid-column: 2; grid-row: 1; padding-top: 2px; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) { .t-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .t-panel { padding: 18px 18px 6px; }
  .t-item { grid-template-columns: 1fr; }
  .t-date { grid-column: 1; grid-row: auto; padding-top: 0; }
}

/* ---------- #talks ---------- */
.talks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.talk { padding: 22px 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.talk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.talk-meta .e-tile { margin-right: 4px; }
.talk-date { padding: 1px 8px; border-radius: 6px; background: var(--sky-ink); color: var(--on-accent); font-size: .75rem; font-weight: 700; line-height: 1.7; }
.talk h3 { font-size: 1.0625rem; }
.talk-sub { margin-top: 2px; color: var(--sky-ink); font-size: .875rem; font-weight: 600; line-height: 1.6; }
.talk-date-label { font-size: .75rem; font-weight: 650; color: var(--muted); }
.talk-role { margin-top: 8px; font-size: .9375rem; line-height: 1.6; }
.talk-role .label { color: var(--mint-ink); }
.talk-desc { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.talk-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; list-style: none; font-size: .9375rem; }
/* scheduled sessions (upcoming: true): dashed card + outlined date, same grammar as the "진행 중인 대회" panel */
.talk.is-upcoming { border-style: dashed; background: transparent; }
.talk.is-upcoming .talk-date { background: var(--surface); color: var(--sky-ink); box-shadow: inset 0 0 0 1px var(--sky-ink); }
.talk-upcoming { color: var(--sky-ink); }
@media (max-width: 720px) { .talks { grid-template-columns: 1fr; } .talk { padding: 18px 20px; } }

/* ---------- #media (press): one block per story — project tile + award chip, lead article, other articles,
   then every outlet that carried the same news as compact outlet·date chips ---------- */
.press-stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-bottom: 18px;
  font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.press-stats .emoji { font-size: 1.25rem; margin-right: -8px; }
.press-stats strong { color: var(--text); font-weight: 750; }
.press-stats > span:not(.emoji) + span::before { content: "·"; margin-right: 18px; color: var(--border); font-weight: 700; }
.press-stats .emoji + span::before { content: none; }
.press-groups { display: grid; gap: 16px; list-style: none; }
.press-group {
  display: flex; flex-direction: column; min-width: 0;
  padding: 22px 24px 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface);
  scroll-margin-top: 88px;
}
.press-group.is-compact .pg-body { flex: 1 1 auto; }
/* stories with more coverage span the row; single-article stories pair up (dense fills a hole left by a full row) */
@media (min-width: 861px) {
  .press-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .press-group.is-full { grid-column: 1 / -1; }
}
.press-group:target { border-color: var(--sky-ink); box-shadow: 0 0 0 3px var(--sky-soft); }
.pg-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.pg-titles { min-width: 0; flex: 1 1 auto; }
.pg-titles h3 { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem); line-height: 1.4; letter-spacing: -0.02em; }
.pg-titles h3 a { color: var(--text); text-decoration: none; }
.pg-titles h3 a:hover { color: var(--sky-ink); text-decoration: underline; }
.pg-chips { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chips .pill { white-space: normal; }
.pg-count { flex: none; align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .8125rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.pg-count strong { margin-right: 1px; color: var(--sky-ink); font-size: .9375rem; font-weight: 800; }
.pg-body { display: grid; gap: 16px 28px; margin-top: 18px; }
.pg-body.has-side { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.media-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: .8125rem; color: var(--muted); }
.media-meta .outlet { font-weight: 750; color: var(--text); letter-spacing: -0.01em; }
.media-meta .media-date { font-variant-numeric: tabular-nums; }
/* lead article: the one card that gets a tint and a summary */
.pg-lead { padding: 18px 20px 20px; border-radius: 14px; background: var(--surface-2); }
.pg-lead h4 { margin-top: 6px; font-size: 1.125rem; font-weight: 750; line-height: 1.45; letter-spacing: -0.015em; text-wrap: balance; }
.pg-lead h4 a, .pg-stories h4 a { color: var(--text); text-decoration: none; }
.pg-lead h4 a:hover, .pg-stories h4 a:hover { color: var(--sky-ink); text-decoration: underline; }
.pg-lead h4 .icon, .pg-stories h4 .icon { width: .8em; height: .8em; margin-left: 4px; color: var(--muted); vertical-align: -0.08em; }
.media-summary { margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.65; }
.pg-block.is-wide { grid-column: 1 / -1; padding-top: 14px; border-top: 1px dashed var(--border); }
.pg-label { font-size: .75rem; font-weight: 750; letter-spacing: .04em; color: var(--muted); }
.pg-label .n { margin-left: 2px; color: var(--sky-ink); font-variant-numeric: tabular-nums; }
.pg-stories { list-style: none; margin-top: 4px; }
.pg-stories li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.pg-stories li:first-child { padding-top: 4px; }
.pg-stories li:last-child { border-bottom: 0; padding-bottom: 0; }
.pg-stories h4 { margin-top: 2px; font-size: .9688rem; font-weight: 650; line-height: 1.5; }
.pg-outlets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; list-style: none; }
.outlet-chip {
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 7px 11px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: .8125rem; font-weight: 650; line-height: 1.4; text-decoration: none;
  transition: border-color .16s, background-color .16s;
}
.outlet-chip:hover { border-color: var(--sky); background: var(--sky-soft); }
.outlet-chip time, .outlet-chip .date { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.outlet-chip .icon { align-self: center; width: .8em; height: .8em; margin-left: -2px; color: var(--muted); }
@media (max-width: 860px) { .pg-body.has-side { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .press-group { padding: 18px 16px 18px; border-radius: 16px; }
  .pg-head { flex-wrap: wrap; gap: 12px; }
  .pg-head .e-tile { width: 44px; height: 44px; border-radius: 12px; font-size: 1.375rem; }
  .pg-head { position: relative; }
  .pg-titles { flex-basis: calc(100% - 56px); }
  .pg-titles h3 { padding-right: 58px; }
  .pg-count { position: absolute; top: 0; right: 0; padding: 1px 10px; }
  .pg-lead { padding: 16px; }
  .press-stats { gap: 4px 14px; }
  .press-stats > span:not(.emoji) + span::before { content: none; } /* a wrapped line must not start with "·" */
}

/* ---------- #skills ---------- */
.skills-table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
}
.skills-table th, .skills-table td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.skills-table tbody tr:last-child th, .skills-table tbody tr:last-child td { border-bottom: 0; }
.skills-table thead th { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding-block: 10px; }
.skills-table tbody th { color: var(--sky-ink); font-weight: 700; width: 170px; }
.skills-table .focus { display: inline-flex; align-items: center; gap: 8px; }
.skills-table .focus .emoji { font-size: 1.125rem; }
.skills-table td.how { color: var(--muted); font-size: .9375rem; }
.chip-cloud { margin-top: 24px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 20px; align-items: start; }
.chip-cloud h3 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
@media (max-width: 720px) {
  .skills-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .skills-table, .skills-table tbody, .skills-table tr, .skills-table th, .skills-table td { display: block; width: 100%; }
  .skills-table { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .skills-table tbody tr { margin-bottom: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
  .skills-table tbody th, .skills-table td { padding: 2px 0; border: 0; width: auto; }
  .skills-table td.tools { margin: 6px 0; }
  .skills-table td[data-label]::before {
    content: attr(data-label); display: block; margin: 6px 0 2px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  .chip-cloud { grid-template-columns: 1fr; }
}

/* ---------- #how (일하는 방식) ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.principle {
  display: flex; flex-direction: column; padding: 24px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.principle:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sky); }
.principle h3 { margin-top: 16px; font-size: 1.0625rem; }
.principle p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.principle .evidence { margin-top: auto; padding-top: 14px; font-size: .8125rem; color: var(--sky-ink); font-weight: 600; }
.flow-strip {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px 32px; margin-top: 16px;
  padding: 24px 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
}
.flow-strip > h3 { font-size: 1.0625rem; line-height: 1.5; }
.flow-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; list-style: none; }
.flow-steps li { display: inline-flex; align-items: center; }
.flow-steps li:not(:last-child)::after { content: "→"; margin: 0 12px; color: var(--sky-ink); font-weight: 700; }
.flow-steps .step { padding: 8px 16px; border-radius: 10px; background: var(--sky-soft); color: var(--text); font-weight: 650; }
.flow-steps .step .n { color: var(--sky-ink); font-size: .8125rem; margin-right: 6px; font-weight: 700; }
.flow-notes { margin-top: 14px; list-style: none; display: grid; gap: 6px; font-size: .9375rem; }
.flow-notes li { position: relative; padding-left: 16px; }
.flow-notes li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--mint-ink); }
.tool-cards { margin-top: 16px; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.tool-cards li { padding: 14px 16px; border-radius: 12px; background: var(--section-bg); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.tool-cards strong { font-weight: 700; }
.tool-cards .use { font-size: .8125rem; font-weight: 650; color: var(--sky-ink); }
.tool-cards .ex { margin-top: 4px; font-size: .875rem; color: var(--muted); line-height: 1.6; }
.next-line { margin-top: 20px; color: var(--muted); font-size: .9375rem; }
@media (max-width: 960px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-strip { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .principles { grid-template-columns: 1fr; }
  .flow-strip { padding: 20px 18px; }
  .flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .flow-steps li::after { display: none; }
  .flow-steps .step { width: 100%; text-align: center; padding: 8px 6px; font-size: .875rem; }
  .flow-steps .step .n { display: block; margin-right: 0; }
}

/* ---------- #contact ---------- */
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 5vw, 56px); border-radius: 22px; border: 1px solid var(--border);
  background: linear-gradient(130deg, var(--sky-soft), var(--surface) 55%, var(--mint-soft));
}
.contact-card h2 { max-width: 18em; }
.contact-card .summary { margin-top: 12px; color: var(--muted); max-width: 36em; }
.contact-card .contact-identity { margin-top: 10px; color: var(--sky-ink); font-size: .9375rem; font-weight: 600; letter-spacing: -.005em; }
.contact-card .contact-statement { margin-top: 18px; color: var(--text); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.8; }
.contact-card .cta-row { margin-top: 24px; }
.contact-card .link-row { margin-top: 20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 20px 84px; font-size: .875rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; margin-inline: -8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); }
.footer-links a:hover { color: var(--sky-ink); }
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); color: var(--sky-ink); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  visibility: hidden; /* not focusable while faded out (WCAG 2.4.7) */
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }

/* ---------- KPI tiles + dumbbell (case pages) ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; list-style: none; }
.case-content .kpis { max-width: var(--measure); } /* same right edge as the prose, callouts and decisions */
.kpi { background: var(--surface-2); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.kpi-value { display: block; font-size: 1.5rem; font-weight: 750; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; overflow-wrap: normal; }
.kpi-value .from, .kpi-value .to { white-space: nowrap; }
.kpi-value .from { color: var(--muted); font-weight: 600; }
.kpi-value .arrow { color: var(--mint-ink); margin: 0 .2em; font-weight: 600; }
.kpi-value .to { color: var(--mint-ink); }
.kpi-label { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.kpi-note { display: block; font-size: .75rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.dumbbell { display: block; position: relative; height: 12px; margin: 8px 6px 4px; }
.dumbbell::before { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 2px; background: var(--border); transform: translateY(-50%); border-radius: 2px; }
.dumbbell .seg { position: absolute; top: 50%; height: 2px; background: var(--sky-ink); transform: translateY(-50%); }
.dumbbell .dot { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); }
.dumbbell .dot-from { background: var(--surface); border: 2px solid var(--sky-ink); }
.dumbbell .dot-to { background: var(--sky-ink); }
@media (max-width: 480px) { .kpi-value { font-size: 1.25rem; } }

/* ---------- case study page ---------- */
.case-page { --measure: 46rem; padding-bottom: clamp(48px, 6vw, 80px); }
.case-hero { padding-block: 12px 8px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; font-size: .875rem; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--border); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--text); }
.case-head { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.case-titles { min-width: 0; }
.case-hero .kicker { margin: 0 0 6px; }
@media (max-width: 480px) { .case-head { flex-direction: column; align-items: flex-start; gap: 14px; } }
.case-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
.case-en { margin-top: 6px; color: var(--muted); font-weight: 500; }
.case-lead { margin-top: 18px; font-size: 1.125rem; line-height: 1.7; max-width: 40em; }
.case-status { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: .9375rem; color: var(--muted); }
.case-status .label { color: var(--mint-ink); }
.case-hero .link-row { margin-top: 22px; }
.case-hero .link-chip.is-primary { background: var(--sky-ink); border-color: var(--sky-ink); color: var(--on-accent); } /* the one solid action on a case page */
.case-hero .link-chip.is-primary:hover { box-shadow: var(--shadow-md); }
.meta-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 32px 0 0;
  background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
}
.meta-grid > div { background: var(--surface); padding: 16px 18px; min-width: 0; }
.meta-grid dt { font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.meta-grid dd { margin: 4px 0 0; font-size: .9375rem; }
.meta-grid dd .tags { margin-top: 2px; }
.meta-grid .mini-links { list-style: none; display: grid; gap: 0; }
.meta-grid .mini-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.contrib { margin-top: 16px; padding: 16px 20px; border-radius: 14px; background: var(--mint-soft); max-width: 100%; }
.contrib .label { color: var(--mint-ink); }
@media (max-width: 960px) { .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .meta-grid { grid-template-columns: 1fr; } }

.case-body { margin-top: clamp(36px, 5vw, 56px); }
.case-section { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 40px; padding-block: 36px; border-top: 1px solid var(--border); }
.case-section > h2 { position: sticky; top: 90px; align-self: start; font-size: 1.125rem; font-weight: 750; line-height: 1.5; color: var(--sky-ink); letter-spacing: -0.01em; }
.case-content { min-width: 0; }
.case-content > :first-child { margin-top: 0; }
.case-content .prose { max-width: var(--measure); }
.steps-list { max-width: var(--measure); padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps-list li { position: relative; padding-left: 40px; counter-increment: step; }
.steps-list li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .1em;
  font-size: .8125rem; color: var(--sky-ink); font-weight: 750; font-variant-numeric: tabular-nums;
}
.bullets { max-width: var(--measure); list-style: none; display: grid; gap: 8px; }
.kpis + .bullets { margin-top: 16px; }
.bullets li { position: relative; padding-left: 18px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.decisions { max-width: var(--measure); list-style: none; display: grid; gap: 10px; }
.decision {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
}
.decision .pill { justify-self: start; margin-top: 2px; }
.dec-adopt { background: var(--mint-soft); color: var(--mint-ink); }
.dec-reject { background: var(--surface-2); color: var(--muted); }
.dec-hold { border-color: var(--border); color: var(--muted); background: var(--surface); }
.decision.no-tag { grid-template-columns: 1fr; }
.callout { max-width: var(--measure); padding: 16px 20px; border-radius: 14px; background: var(--sky-soft); }
.callout.limits { background: var(--surface-2); }
/* 사진·화면: cover large on its tinted frame, the rest as whole-picture 16:10 tiles; all open in the zoom dialog */
.gallery { display: grid; gap: 22px; }
.g-fig { margin: 0; min-width: 0; }
.g-frame {
  display: block; padding: clamp(14px, 3vw, 30px) clamp(14px, 3vw, 30px) 0;
  border: 1px solid var(--border); border-radius: 18px; cursor: zoom-in;
}
.g-frame img {
  display: block; width: 100%; height: auto; border-radius: 10px 10px 0 0; background: var(--surface);
  box-shadow: 0 0 0 1px var(--shot-rim), 0 18px 40px -14px var(--shot-shadow);
  transition: transform .3s var(--ease), filter .16s;
}
.g-cover.is-contain .g-frame { padding-bottom: clamp(14px, 3vw, 30px); }
.g-cover.is-contain .g-frame img { border-radius: 8px; }
.g-cover.is-portrait .g-frame img { width: min(100%, calc(min(76vh, 900px) * var(--ar, .7))); margin-inline: auto; }
.g-frame:hover img { transform: translateY(-3px); }
.g-cover.is-contain .g-frame:hover img { transform: none; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px 16px; list-style: none; }
.g-grid[data-n="1"] { grid-template-columns: minmax(0, 420px); }
.g-tile { border: 1px solid var(--border); border-radius: 14px; cursor: zoom-in; }
.g-tile:hover img { transform: scale(1.03); }
:is(.g-frame, .g-tile):hover .zoom-hint { transform: scale(1.06); }
.g-fig figcaption { display: grid; gap: 4px; margin-top: 10px; }
.g-cover figcaption { max-width: var(--measure); margin-top: 12px; }
.g-cap { font-size: .875rem; line-height: 1.6; color: var(--text); }
.g-cover .g-cap { font-size: .9375rem; }
.g-src { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.g-src-k { font-weight: 700; letter-spacing: .02em; }
.g-src-k::after { content: "·"; margin-left: 6px; font-weight: 400; }
.g-src-link { display: inline-flex; align-items: center; gap: 3px; min-height: 24px; color: var(--muted); }
.g-src-link:hover { color: var(--sky-ink); }
.g-src-link .icon { width: .95em; height: .95em; }

.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.figure { margin: 0; }
.figure a { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); cursor: zoom-in; }
.figure img { display: block; width: 100%; height: auto; transition: filter .16s; }
.figure figcaption { margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.evidence-links { margin-top: 18px; }
.figures + .pdf-note, .evidence-links + .pdf-note { margin-top: 14px; }
.pdf-note { font-size: .875rem; color: var(--muted); }
@media (max-width: 860px) {
  .case-section { grid-template-columns: 1fr; padding-block: 28px; }
  .case-section > h2 { position: static; }
}
@media (max-width: 720px) { .figures { grid-template-columns: 1fr; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--border); }
.pager a {
  display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 16px 20px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text);
  transition: border-color .16s, transform .16s var(--ease);
}
.pager a:hover { border-color: var(--sky); transform: translateY(-2px); }
.pager .dir { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--sky-ink); font-weight: 650; }
.pager .next { text-align: right; align-items: flex-end; grid-column: 2; }
.pager strong { font-weight: 650; }
@media (max-width: 480px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

dialog.zoom {
  width: min(1200px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 16px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden;
}
dialog.zoom::backdrop { background: rgba(13,26,32,.72); }
.zoom-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 18px; border-bottom: 1px solid var(--border); }
.zoom-bar p { font-size: .875rem; color: var(--muted); }
.zoom-bar .zoom-pan { display: none; margin-left: auto; font-size: .8125rem; white-space: nowrap; }
.zoom-stage { overflow: auto; max-height: calc(94vh - 58px); }
.zoom-stage img { display: block; width: 100%; height: auto; max-width: var(--zw, none); margin-inline: auto; }
@media (max-width: 720px) {
  /* on a phone the slide would be no bigger than the inline figure: show it taller and let it pan */
  .zoom-stage { overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .zoom-stage img { width: auto; max-width: none; height: min(72vh, 620px, var(--zh, 620px)); }
  .zoom-bar .zoom-pan { display: block; }
}
.no-scroll { overflow: hidden; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(80px, 14vw, 160px); }
.notfound .code { color: var(--sky-ink); font-weight: 750; font-variant-numeric: tabular-nums; }
.notfound h1 { margin-top: 8px; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.3; }
.notfound p.lead { margin-top: 12px; color: var(--muted); max-width: 32em; }

/* ---------- reveal (JS adds .reveal-ready only when motion is allowed) ---------- */
/* uses the individual `translate` property so hover `transform` lifts on the same cards keep working */
.reveal-ready .reveal {
  opacity: 0; translate: 0 14px;
  transition: opacity .5s var(--ease), translate .5s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.reveal-ready .reveal.is-in { opacity: 1; translate: none; }
.reveal-ready .pf-grid > .reveal:nth-child(2) { transition-delay: .06s, .06s, 0s, 0s, 0s; }
.reveal-ready .pf-grid > .reveal:nth-child(3) { transition-delay: .12s, .12s, 0s, 0s, 0s; }
.reveal-ready .pf-grid > .reveal:nth-child(4) { transition-delay: .18s, .18s, 0s, 0s, 0s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal-ready .reveal { opacity: 1; translate: none; }
  .btn:hover, .pf-card:hover, .post:hover, .pager a:hover, a.hero-badge:hover, .principle:hover, .pf-card:hover .e-tile, .post:hover .e-tile { transform: none; }
  :is(.pf-card, .pcard, .g-frame, .g-tile):hover img, :is(.g-frame, .g-tile):hover .zoom-hint { transform: none; }
}

@media print {
  .site-header, .to-top, .filters, .skip-link, .panes, .floor, .hero-plot { display: none !important; }
  .hero::before, .hero::after, .hero-copy::before, .stage::before, .shot::before, .g-frame::before, .zoom-hint { display: none; }
  .portrait { box-shadow: none; }
  .reveal { opacity: 1 !important; translate: none !important; }
  body { background: #fff; }
  .section.alt { background: none; }
}


/* ================================================================ v2.8 (2026-11-17): motion + highlights
   Moving hero gradient, award headline tiles, periodic table of tools, quiet pointer effects.
   All decoration; every effect stops under prefers-reduced-motion. */

/* hero: WebGL gradient drifts under the copy; the static aurora stays as the no-WebGL / reduced-motion fallback */
.hero-shader { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; pointer-events: none;
  opacity: 0; transition: opacity 1.4s var(--ease);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 98%); mask-image: linear-gradient(180deg, #000 62%, transparent 98%); }
.hero-shader.is-live { opacity: 1; }
.hero.has-shader::before { opacity: .55; }
/* the main CTA carries a slow light around its edge (sky -> white -> mint) */
@property --cta-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.hero .btn-primary { position: relative; isolation: isolate; }
.hero .btn-primary::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--cta-angle), transparent 0 58%, var(--sky) 70%, #FFFFFF 76%, var(--mint) 84%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: cta-spin 4s linear infinite; }
@keyframes cta-spin { to { --cta-angle: 360deg; } }

/* awards: three headline tiles above the table */
.award-peaks { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 22px; padding: 0; }
.peak { position: relative; overflow: hidden; display: grid; gap: 2px; padding: 20px 20px 18px; border-radius: 18px;
  border: 1px solid var(--glass-border); background: linear-gradient(150deg, var(--glass), var(--surface-2));
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--pane-top), var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.peak::after { content: ""; position: absolute; right: -36px; top: -36px; width: 140px; height: 140px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--halo), transparent); }
.peak.t-mint::after { background: radial-gradient(closest-side, var(--halo-mint), transparent); }
.peak .e-tile { margin-bottom: 8px; }
.peak-n { display: flex; align-items: baseline; gap: 3px; }
.peak-n b { font-size: clamp(2.2rem, 1.7rem + 1.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.peak-n span { font-size: 1rem; font-weight: 700; color: var(--muted); }
.peak-label { font-weight: 750; color: var(--sky-ink); }
.peak.t-mint .peak-label { color: var(--mint-ink); }
.peak-names { margin-top: 4px; font-size: .875rem; color: var(--muted); line-height: 1.55; }
@media (hover: hover) { .peak:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--pane-top), var(--shadow-md); } }
@media (max-width: 720px) { .award-peaks { grid-template-columns: 1fr; } .peak { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; } .peak .e-tile { grid-row: span 3; margin: 0; } }

/* skills: periodic table of tools */
.ptable { --pc: var(--sky-ink); --ps: var(--sky-soft); margin-top: 8px; }
.ptable [data-g="g1"] { --pc: var(--sky-ink); --ps: var(--sky-soft); }
.ptable [data-g="g2"] { --pc: var(--mint-ink); --ps: var(--mint-soft); }
.ptable [data-g="g3"] { --pc: var(--sky-ink); --ps: var(--surface-2); }
.ptable [data-g="g4"] { --pc: var(--mint-ink); --ps: var(--surface-2); }
.ptable [data-g="g0"] { --pc: var(--muted); --ps: var(--surface); }
.pt-legend { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 0 0 16px; padding: 0; }
.pt-legend li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, background-color .2s; }
.pt-legend .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--pc); grid-row: span 2; align-self: center; }
.pt-legend b { font-size: .9375rem; color: var(--text); }
.pt-legend li > span:last-child { grid-column: 2; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.pt-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 0; margin: 0; }
.el { position: relative; aspect-ratio: 1; display: grid; align-content: end; gap: 2px; padding: 10px; border-radius: 12px; cursor: default;
  border: 1px solid var(--border); background: linear-gradient(160deg, var(--surface) 35%, var(--ps)); color: var(--text);
  box-shadow: inset 0 3px 0 var(--pc); transition: transform .3s var(--ease), box-shadow .3s, opacity .3s, border-color .3s; }
.el-n { position: absolute; left: 10px; top: 9px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.el-sym { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--pc); }
.el-name { font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el:focus-visible { outline: 2px solid var(--pc); outline-offset: 2px; }
.ptable.is-focus .el:not(.is-on) { opacity: .4; }
.ptable.is-focus .pt-legend li:not(.is-on) { opacity: .5; }
.el.is-on { transform: translateY(-3px); border-color: var(--pc); }
.pt-legend li.is-on { border-color: var(--pc); background: var(--ps); }
@media (max-width: 560px) { .pt-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); } .el-sym { font-size: 1.45rem; } }

/* quiet pointer spotlight on cards (main.js sets --mx/--my; fine pointers only) */
@media (hover: hover) and (pointer: fine) {
  .pf-card:hover {
    background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(93,179,217,.10), transparent 70%); }
  .peak:hover {
    background-image: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(93,179,217,.12), transparent 70%), linear-gradient(150deg, var(--glass), var(--surface-2)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .btn-primary::before { animation: none; }
  .hero-shader { display: none; }
}


/* ================================================================ v3 (2026-11-18): clean portfolio pass
   Fewer ornaments, the work up front: ask panel, project cover-flow, then awards. */

/* hero: keep the moving gradient and the portrait; drop the chart, panes and dot paper */
.hero-plot, .panes, .stage::before { display: none; }
.hero::after { opacity: .35; }
.stage { margin-right: 0; margin-inline: auto; }

/* icon tiles: soft glass instead of flat pastel squares */
.e-tile { background: linear-gradient(150deg, var(--tile-hi) 0%, var(--tile-sky) 62%); box-shadow: inset 0 1px 0 var(--tile-hi), inset 0 0 0 1px var(--tile-ring), 0 8px 18px -12px var(--tile-drop); }
.e-tile.t-mint { background: linear-gradient(150deg, var(--tile-hi) 0%, var(--tile-mint) 62%); }
.e-tile.t-both { background: linear-gradient(150deg, var(--tile-hi) 0%, var(--tile-sky) 45%, var(--tile-mint) 100%); }
.e-tile.t-neutral { background: linear-gradient(150deg, var(--tile-hi) 0%, var(--tile-neutral) 62%); }

/* ask panel */
.ask-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ask-intro { display: grid; gap: 20px; align-content: start; }
.ask-intro p { color: var(--muted); line-height: 1.75; max-width: 30em; }
.ask-facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 0; }
.ask-facts li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.ask-facts b { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--sky-ink); font-variant-numeric: tabular-nums; }
.ask-facts span { font-size: .8125rem; color: var(--muted); }
.ask { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); }
.ask-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ask-avs { position: relative; display: inline-flex; border-radius: 50%; }
.ask-av img, .ask-av { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ask-avs.is-speaking::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--sky); animation: ask-ring 1.4s ease-out infinite; }
@keyframes ask-ring { 0% { transform: scale(.88); opacity: .6; } 100% { transform: scale(1.22); opacity: 0; } }
.ask-title { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.ask-title b { font-size: .9375rem; }
.ask-status { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.ask-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.ask.is-busy .ask-status { color: var(--sky-ink); }
.ask.is-busy .ask-status::before { background: var(--sky); animation: ask-blink 1s ease-in-out infinite; }
@keyframes ask-blink { 50% { opacity: .25; } }
.ask-voice { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.ask-voice .icon { width: 18px; height: 18px; }
.ask-voice:hover { color: var(--text); }
.ask-voice[aria-pressed="true"] { color: var(--sky-ink); border-color: var(--sky); background: var(--sky-soft); }
.ask-voice[aria-pressed="true"] .i-wave { animation: ask-blink 1s ease-in-out infinite; }
.ask-log { height: 320px; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; overscroll-behavior: contain; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid var(--border); }
.ask-chips .chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.ask-chips .chip:hover, .ask-chips .chip:focus-visible { border-color: var(--sky); color: var(--sky-ink); background: var(--sky-soft); }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; animation: msg-in .35s var(--ease) both; }
.msg-av .ask-av, .msg-av .ask-av img { width: 28px; height: 28px; }
.msg-bubble { display: grid; gap: 3px; padding: 10px 14px; border-radius: 16px 16px 16px 6px; border: 1px solid var(--border); background: var(--surface-2); font-size: .9375rem; line-height: 1.6; color: var(--text); }
.msg-name { font-size: .75rem; font-weight: 700; color: var(--muted); }
.msg-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .875rem; font-weight: 650; color: var(--sky-ink); }
.msg-link::after { content: "\2192"; transition: transform .2s; }
.msg-link:hover::after { transform: translateX(3px); }
.msg.is-me { align-self: flex-end; }
.msg.is-me .msg-bubble { background: var(--chat-me); border-color: var(--chat-me); color: #FFFFFF; border-radius: 16px 16px 6px 16px; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: ask-dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ask-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .ask-grid { grid-template-columns: 1fr; } .ask-log { height: 300px; } }

/* project cover-flow */
#portfolio { overflow-x: clip; }
.rail { position: relative; margin-inline: calc(50% - 50vw); }
.rail-track { --w: clamp(260px, 30vw, 380px); position: relative; display: flex; gap: 22px; margin: 0; padding: 22px calc(50vw - var(--w) / 2) 30px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; perspective: 1200px; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: -2px; border-radius: 18px; }
.rail-track.is-drag { scroll-snap-type: none; cursor: grabbing; }
.rail-item { flex: 0 0 var(--w); scroll-snap-align: center; transform: rotateY(var(--ry, 0deg)) scale(var(--s, 1)); opacity: var(--o, 1); transition: opacity .3s; }
.rail-card { display: grid; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm);
  color: inherit; text-decoration: none; -webkit-user-drag: none; user-select: none; transition: box-shadow .35s var(--ease), border-color .35s; }
.rail-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.rail-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; -webkit-user-drag: none; transition: transform .7s var(--ease); }
.rail-meta { display: grid; gap: 6px; justify-items: start; padding: 16px 18px 18px; min-width: 0; }
.rail-meta b { font-size: 1.0625rem; font-weight: 750; letter-spacing: -0.02em; }
.rail-meta small { max-width: 100%; font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-item.is-center .rail-card { box-shadow: var(--shadow-lg); border-color: var(--sky); }
@media (hover: hover) { .rail-card:hover .rail-img img { transform: scale(1.04); } }
.rail-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.rail-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.rail-btn .icon { width: 18px; height: 18px; }
.rail-btn:hover { background: var(--sky-ink); border-color: var(--sky-ink); color: var(--on-accent); }
.rail-count { min-width: 64px; text-align: center; font-size: .875rem; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .rail-track { --w: 76vw; gap: 14px; padding-top: 16px; padding-bottom: 24px; } }

/* footer: name drawn in dots that move away from the pointer */
.foot-mark { position: relative; height: clamp(90px, 13vw, 170px); margin-top: 8px; color: transparent; cursor: crosshair; }
.foot-mark canvas { position: absolute; inset: 0; display: block; }
.foot-mark span { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(3rem, 11vw, 8rem); font-weight: 800; letter-spacing: -0.05em; color: var(--border); transition: opacity .6s; }
.foot-mark.is-live span { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .ask-avs.is-speaking::after, .typing i, .msg { animation: none; }
  .rail-item { transform: none; }
}

/* ================================================================ v3.1: experience, teaching, archive tabs, logo */

/* header mark: soft lift so the deeper monogram sits on the glass bar */
.wordmark .mark { width: 32px; height: 32px; border-radius: 10px; box-shadow: 0 6px 14px -8px rgba(29,111,150,.55); transition: transform .3s var(--ease); }
.wordmark:hover .mark { transform: rotate(-6deg) scale(1.04); }

/* experience: date column | marker on the rail | content card */
#experience .timeline { max-width: 1000px; padding-left: 0; display: grid; gap: 14px; }
#experience .timeline::before { left: 189px; top: 24px; bottom: 24px; }
#experience .tl-item { display: grid; grid-template-columns: 150px 40px minmax(0, 1fr); column-gap: 18px; align-items: start; padding: 0; }
.tl-when { padding-top: 16px; text-align: right; }
.tl-when .tl-date { display: inline; font-size: .8125rem; font-weight: 700; color: var(--sky-ink); font-variant-numeric: tabular-nums; line-height: 1.5; }
#experience .tl-marker { position: relative; left: auto; top: auto; margin-top: 8px; z-index: 1; }
#experience .tl-content { position: relative; padding: 16px 20px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
#experience .tl-content h3 { margin-top: 0; }
@media (hover: hover) { #experience .tl-content:hover { border-color: var(--sky); box-shadow: var(--shadow-md); transform: translateY(-2px); } }
#experience .tl-item.is-now .tl-content { border-color: var(--mint); background: linear-gradient(160deg, var(--surface) 55%, var(--mint-soft)); }
.now-pill { float: right; margin: 2px 0 6px 10px; padding: 3px 10px; border-radius: 999px; background: var(--mint-soft); color: var(--mint-ink); font-size: .75rem; font-weight: 700; }
@media (max-width: 720px) {
  #experience .timeline::before { left: 19px; }
  #experience .tl-item { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  #experience .tl-when { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 6px; }
  #experience .tl-marker { grid-column: 1; grid-row: 1 / span 2; margin-top: 0; }
  #experience .tl-content { grid-column: 2; }
}

/* teaching: calmer panels, a count beside each title, rows that read like a ledger */
.t-panel { padding: 20px 22px 6px; border-radius: 18px; box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s; }
@media (hover: hover) { .t-panel:hover { border-color: var(--sky); box-shadow: var(--shadow-md); } }
.t-head { gap: 10px; padding-bottom: 12px; }
.t-head > span:not(.e-tile):first-of-type { flex: 1; }
.t-count { margin-left: auto; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--sky-soft); color: var(--sky-ink); font-size: .75rem; font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; }
.t-item { padding: 12px 0 13px; }
.t-topic { font-size: .9688rem; }
.t-date { font-variant-numeric: tabular-nums; font-weight: 600; }

/* archive: tabs with counts instead of floating chips */
#projects .filters { align-items: flex-end; gap: 10px 16px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
#projects .chips { gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
#projects .chips::-webkit-scrollbar { display: none; }
#projects .chip.tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px 14px; border: 0; border-radius: 0; background: none; color: var(--muted); font-weight: 650; }
#projects .chip.tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--sky-ink); transform: scaleX(0); transition: transform .3s var(--ease); }
#projects .chip.tab:hover { color: var(--text); }
#projects .chip.tab[aria-pressed="true"] { background: none; color: var(--text); }
#projects .chip.tab[aria-pressed="true"]::after { transform: scaleX(1); }
.tab-n { padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#projects .chip.tab[aria-pressed="true"] .tab-n { background: var(--sky-soft); color: var(--sky-ink); }
#projects .filter-sep { display: none; }
#projects .award-toggle { margin: 0 0 8px auto; }

/* ================================================================ v3.4: data -> AI analysis -> AX flow (replaces the v3.3 constellation)
   Small stars joined into constellations by hairlines, twinkling slowly; stronger on the portrait side,
   faint behind the copy. The nearest figure brightens a little under the pointer. */
.hero-stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.45), #000 46%), linear-gradient(180deg, #000 78%, transparent 99%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, rgba(0,0,0,.45), #000 46%), linear-gradient(180deg, #000 78%, transparent 99%);
          mask-composite: intersect; }
@media (max-width: 860px) {
  .hero-stars { -webkit-mask-image: linear-gradient(180deg, #000 44%, rgba(0,0,0,.25) 62%, transparent 92%); mask-image: linear-gradient(180deg, #000 44%, rgba(0,0,0,.25) 62%, transparent 92%); }
}
.hero-stars.is-live { opacity: 1; }
.hero.has-stars::after { display: none; }

/* ================================================================ v3.3 mobile tightening */
@media (max-width: 560px) {
  .hero-badges { gap: 6px; }
  .hero-badge { min-height: 30px; padding: 0 10px; font-size: .75rem; gap: 4px; }
  .pt-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
  .pt-legend li { padding: 8px 10px; }
  .pt-legend li > span:last-child { display: none; }
  .pt-legend b { font-size: .875rem; }
  #projects .award-toggle { margin: 6px 0 8px; }
}

/* ================================================================ v3.5 archive page + slimmer landing */
.more-link { margin: 4px 0 26px; }
.archive-page { padding-top: clamp(32px, 5vw, 64px); }
.archive-head { display: grid; gap: 8px; margin-bottom: 22px; }
.archive-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.archive-head .summary { color: var(--muted); }
.arch-tabs { position: sticky; top: 70px; z-index: 5; display: flex; gap: 4px; margin: 0 0 28px; padding: 6px; overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--border); border-radius: 14px; background: var(--header-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.arch-tabs::-webkit-scrollbar { display: none; }
.arch-tab { flex: none; padding: 10px 16px; border-radius: 10px; color: var(--muted); font-weight: 650; text-decoration: none; transition: background-color .2s, color .2s; }
.arch-tab:hover { color: var(--text); background: var(--surface-2); }
.arch-tab[aria-selected="true"] { background: var(--sky-ink); color: var(--on-accent); }
.arch-panel { scroll-margin-top: 140px; }
html:not(.arch-js) .arch-panel + .arch-panel { margin-top: 72px; }
.nav-archive { font-weight: 650; color: var(--sky-ink) !important; }

/* ================================================================ v3.6 teaching: three highlights + one timeline */
.t-high { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.th-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px 22px 20px; overflow: hidden;
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.th-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--sky), var(--mint)); }
.th-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.th-kind, .tt-chip { display: inline-flex; align-items: center; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.th-kind { padding: 4px 10px; font-size: .8rem; }
.th-title { font-size: 1.12rem; font-weight: 750; line-height: 1.38; letter-spacing: -0.02em; }
.th-meta { color: var(--muted); font-size: .9rem; }
.k-teach.th-card .th-kind, .tt-chip.k-teach { background: var(--mint-soft); color: var(--mint-ink); }
.k-ongoing.th-card .th-kind, .tt-chip.k-ongoing { background: var(--sky-soft); color: var(--sky-ink); }
.k-edu.th-card .th-kind, .tt-chip.k-edu { background: var(--surface-2); color: var(--text); }
.k-cert.th-card .th-kind, .tt-chip.k-cert { background: transparent; color: var(--sky-ink); box-shadow: inset 0 0 0 1px var(--sky-ink); }
.t-more { margin-top: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.t-more > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 700; }
.t-more > summary::-webkit-details-marker { display: none; }
.t-more > summary .icon { margin-left: auto; transition: transform .25s var(--ease); }
.t-more[open] > summary .icon { transform: rotate(180deg); }
.t-more > summary:hover .t-more-label { color: var(--sky-ink); }
.tt-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-chip { padding: 2px 9px; font-size: .74rem; }
.tline { list-style: none; margin: 0; padding: 0 20px 18px; border-top: 1px solid var(--border); }
.tt-year { padding: 18px 0 4px 104px; color: var(--sky-ink); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.tt-row { display: grid; grid-template-columns: 84px 20px minmax(0, 1fr); gap: 0 12px; padding: 7px 0; }
.tt-date { padding-top: 3px; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; text-align: right; }
.tt-dot { position: relative; }
.tt-dot::before { content: ""; position: absolute; left: 50%; top: -7px; bottom: -7px; width: 2px; transform: translateX(-50%); background: var(--border); }
.tt-dot::after { content: ""; position: absolute; left: 50%; top: 8px; width: 10px; height: 10px; border-radius: 50%; transform: translateX(-50%);
  background: var(--surface); box-shadow: 0 0 0 2px var(--sky-ink); }
.tt-row.k-teach .tt-dot::after { box-shadow: 0 0 0 2px var(--mint-ink); }
.tt-row.is-star .tt-dot::after { background: var(--sky-ink); }
.tt-row.k-teach.is-star .tt-dot::after { background: var(--mint-ink); }
.tt-body { display: grid; gap: 3px; min-width: 0; }
.tt-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 700; }
.tt-meta, .tt-note { color: var(--muted); font-size: .88rem; }
.tt-note { font-size: .84rem; }
@media (max-width: 860px) {
  .t-high { grid-template-columns: 1fr; gap: 12px; }
  .th-card { padding: 18px; }
  .tline { padding: 0 14px 14px; }
  /* phones: the date moves above the title so it never wraps mid-number */
  .tt-row { grid-template-columns: 16px minmax(0, 1fr); gap: 2px 10px; }
  .tt-dot { grid-column: 1; grid-row: 1 / span 2; }
  .tt-date { grid-column: 2; grid-row: 1; padding: 0; text-align: left; font-size: .76rem; }
  .tt-body { grid-column: 2; grid-row: 2; }
  .tt-dot::after { top: 4px; }
  .tt-year { padding-left: 26px; }
  .tt-row:has(.tt-date:empty) .tt-date { display: none; }
  .tt-row:has(.tt-date:empty) .tt-body { grid-row: 1 / span 2; }
}

/* project film */
.case-video { margin: 0; }
.case-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #0b1620; box-shadow: var(--shadow-md); }
.case-video figcaption { margin-top: 8px; color: var(--muted); font-size: .88rem; }

/* ================================================================ v3.7 archive pages + press photos */
.arch-tab[aria-current="page"] { background: var(--sky-ink); color: var(--on-accent); }
.nav-archive[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.arch-index { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pg-photo { margin: 0 0 14px; overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.pg-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pg-photo figcaption { padding: 6px 10px; color: var(--muted); font-size: .76rem; }
.pg-lead { display: flow-root; }
.pg-photo.is-portrait { float: left; width: 104px; margin: 2px 16px 8px 0; }
.pg-photo.is-portrait img { aspect-ratio: 3 / 4; }
.pg-photo.is-portrait figcaption { padding: 4px 6px; font-size: .7rem; }
/* ---------- v3.9 landing: every award in one short table + press highlights ---------- */
.award-brief { margin: 0 0 18px; padding: 4px 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.award-brief table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.award-brief thead th {
  text-align: left; padding: 12px 10px 8px; border-bottom: 1px solid var(--border);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--muted);
}
.award-brief td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; transition: background-color .2s; }
.award-brief tbody tr:last-child td { border-bottom: 0; }
.award-brief tbody tr:hover td { background: var(--surface-2); }
.award-brief .b-when { width: 64px; }
.award-brief .b-date { color: var(--muted); font-size: .8125rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.award-brief .b-prize { width: 1%; white-space: nowrap; }
.award-brief .b-prize .pill { font-size: .8125rem; }
.b-comp-name a { color: var(--text); font-weight: 600; text-decoration: none; }
.b-comp-name a:hover { color: var(--sky-ink); text-decoration: underline; }
.b-proj {
  display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--surface-2);
  color: var(--muted); font-size: .78rem; font-weight: 600; line-height: 1.7; white-space: nowrap;
}
.b-proj a { color: inherit; text-decoration: none; }
.b-proj a:hover { color: var(--sky-ink); text-decoration: underline; }
@media (max-width: 720px) {
  .award-brief { padding: 2px 14px; }
  .award-brief thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .award-brief table, .award-brief tbody, .award-brief tr, .award-brief td { display: block; width: auto; }
  .award-brief tbody tr { position: relative; padding: 11px 0; border-bottom: 1px solid var(--border); }
  .award-brief tbody tr:last-child { border-bottom: 0; }
  .award-brief td { padding: 0; border: 0; }
  .award-brief tbody tr:hover td { background: none; }
  .award-brief .b-when { position: absolute; top: 13px; right: 0; width: auto; }
  .award-brief .b-prize { width: auto; padding-right: 52px; white-space: normal; }
  .award-brief .b-prize .pill { white-space: normal; text-align: left; }
  .award-brief .b-comp { margin-top: 5px; font-size: .875rem; line-height: 1.55; }
  .b-proj { margin: 4px 0 0; }
  .b-comp-name { display: block; }
}

.press-brief { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pb-feature { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.pb-photo { margin: 0; background: var(--surface-2); }
.pb-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pb-photo figcaption { padding: 6px 16px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .75rem; }
.pb-body { padding: 16px 20px 20px; }
.press-brief h3 { margin-top: 4px; font-size: 1rem; font-weight: 700; line-height: 1.45; letter-spacing: -0.015em; text-wrap: balance; }
.pb-feature h3 { margin-top: 6px; font-size: 1.25rem; font-weight: 750; }
.press-brief h3 a { color: var(--text); text-decoration: none; }
.press-brief h3 a:hover { color: var(--sky-ink); text-decoration: underline; }
.press-brief h3 .icon { width: .8em; height: .8em; margin-left: 4px; color: var(--muted); vertical-align: -0.08em; }
.pb-proj { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: .8125rem; }
.pb-proj-name a { font-weight: 650; text-decoration: none; }
.pb-proj-name a:hover { text-decoration: underline; }
.pb-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pb-item {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
}
.pb-thumb { width: 96px; height: 96px; margin: 0; overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.pb-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pb-thumb.is-tile { display: grid; place-items: center; }
.pb-credit { font-size: .72rem; }
.press-brief + .more-link { margin-top: 18px; }
@media (max-width: 860px) { .press-brief { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .pb-item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .pb-thumb { width: 72px; height: 72px; }
  .pb-body { padding: 14px 16px 18px; }
  .pb-feature h3 { font-size: 1.125rem; }
}

/* ---------- v3.10 logo: handwritten Ys on a light tile (follows the theme) ---------- */
.mark .mk-tile { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.mark .mk-ys { fill: var(--sky-ink); }
.mark .mk-line { fill: none; stroke: var(--mint); stroke-width: 3.5; stroke-linecap: round; }
.wordmark .mark { box-shadow: 0 6px 14px -9px rgba(29,111,150,.45); }
/* flowing words are larger than the old network: keep them quieter behind the copy on wide screens */
@media (min-width: 861px) {
  .hero-stars { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.3), rgba(0,0,0,.3) 34%, #000 58%), linear-gradient(180deg, #000 78%, transparent 99%);
                mask-image: linear-gradient(90deg, rgba(0,0,0,.3), rgba(0,0,0,.3) 34%, #000 58%), linear-gradient(180deg, #000 78%, transparent 99%); }
}

/* ================================================================ v3.12 (2026-11-27): visual refinement pass
   Cohesive elevation, landscape press thumbnails, tighter cover-flow cards, editorial award ledger, subtle card accents. */

/* header + archive tabs: slightly crisper separation on scroll, zero mobile tab clipping */
.site-header.is-scrolled { box-shadow: 0 10px 24px -18px rgba(19,48,59,.36); }
.arch-tabs { box-shadow: var(--shadow-sm); }
@media (max-width: 560px) {
  .arch-tabs { gap: 2px; padding: 5px; }
  .arch-tab { padding: 8px 11px; font-size: .875rem; }
}

/* hero: refined badge tactility, portrait ambient glow, overflow safety on medium desktops */
.hero-badge { box-shadow: var(--shadow-sm); }
a.hero-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (min-width: 561px) {
  .hero-badges { grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px; }
}
.portrait {
  box-shadow: 0 0 0 6px var(--ring-halo), 0 0 54px 6px var(--halo), var(--portrait-shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
@media (hover: hover) {
  .portrait:hover { transform: translateY(-3px); box-shadow: 0 0 0 7px var(--ring-halo), 0 0 62px 10px var(--halo), var(--portrait-shadow); }
}

/* ask panel: top accent line on stat tiles, softer glass header, tactile chips */
.ask-facts li {
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.ask-facts li::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--mint));
}
@media (hover: hover) {
  .ask-facts li:hover { transform: translateY(-2px); border-color: var(--sky); box-shadow: var(--shadow-md); }
}
.ask-head { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.ask-chips { background: var(--surface); }
.ask-chips .chip { transition: transform .18s var(--ease), border-color .2s, color .2s, background-color .2s, box-shadow .2s; }
@media (hover: hover) {
  .ask-chips .chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
}

/* project cover-flow: fix extra top gap on award-tag, crisp screenshot divider, 2-line summary clamp, archive CTA */
.rail-img { border-bottom: 1px solid var(--border); }
.rail-meta { gap: 7px; padding: 16px 18px 18px; }
.rail-meta .award-tag { margin-top: 0; font-size: .8125rem; line-height: 1.4; }
.rail-meta small {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: normal; line-height: 1.5;
}
.rail-item.is-center .rail-card { box-shadow: 0 0 0 1px var(--sky), var(--shadow-lg); border-color: var(--sky); }
#portfolio .more-link { margin: 22px 0 0; text-align: center; }

/* teaching highlights + timeline disclosure: consistent elevation & hover */
.th-card { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
@media (hover: hover) {
  .th-card:hover { transform: translateY(-2px); border-color: var(--sky); box-shadow: var(--shadow-md); }
}
.t-more { box-shadow: var(--shadow-sm); transition: border-color .2s; }
.t-more:hover { border-color: var(--sky); }

/* awards ledger + lower panels: clean header band, crisp pills, softer card shadows */
.award-brief { padding: 0; overflow: hidden; box-shadow: var(--shadow-sm); }
.award-brief thead th { padding: 12px 16px 10px; background: var(--surface-2); }
.award-brief td { padding: 9px 16px; }
.award-brief .b-when { width: 78px; }
.b-proj {
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color .16s, color .16s, background-color .16s;
}
.award-brief tbody tr:hover .b-proj { border-color: var(--sky); background: var(--sky-soft); color: var(--sky-ink); }
.pending, .latest { box-shadow: var(--shadow-sm); }
@media (max-width: 720px) {
  .award-brief { padding: 4px 16px; overflow: visible; }
  .award-brief td { padding: 0; }
  .award-brief tbody tr { padding: 12px 0; }
}

/* press highlights + press archive: landscape thumbnails so ceremony group photos stay uncropped, interactive lift */
.pb-feature, .pb-item {
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.pb-photo { overflow: hidden; }
.pb-photo img, .pb-thumb img { transition: transform .45s var(--ease); }
@media (hover: hover) {
  .pb-feature:hover, .pb-item:hover { transform: translateY(-2px); border-color: var(--sky); box-shadow: var(--shadow-md); }
  .pb-feature:hover .pb-photo img, .pb-item:hover .pb-thumb img { transform: scale(1.03); }
}
.pb-item { grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: 16px; }
.pb-thumb { width: 124px; height: 84px; border: 1px solid var(--border); }
.press-group { box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.pg-photo { border: 1px solid var(--border); }
.outlet-chip { transition: transform .16s var(--ease), border-color .16s, background-color .16s; }
@media (hover: hover) { .outlet-chip:hover { transform: translateY(-1px); } }
@media (max-width: 480px) {
  .pb-item { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px; align-items: start; }
  .pb-thumb { width: 92px; height: 64px; }
}

/* skills periodic table: flow-based number so index never collides with symbol, crisp 2-line wrap for long tool names */
.pt-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.el {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 3px;
  aspect-ratio: auto; min-height: 104px; padding: 10px 10px 11px;
}
.el-n { position: static; margin-bottom: auto; font-size: .72rem; line-height: 1; }
.el-sym { font-size: 1.65rem; line-height: 1.05; margin-top: 6px; }
.el-name {
  font-size: .75rem; line-height: 1.25; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .pt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .el { min-height: 92px; padding: 9px 9px 10px; }
  .el-sym { font-size: 1.45rem; margin-top: 4px; }
  .el-name { font-size: .74rem; }
}

/* working style + contact: unified top accent language */
.principle { position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.principle::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sky-soft));
}
.principle:nth-child(even)::before { background: linear-gradient(90deg, var(--mint), var(--mint-soft)); }
.flow-strip { box-shadow: var(--shadow-sm); }
.contact-card { box-shadow: inset 0 1px 0 var(--pane-top), var(--shadow-md); }

@media (prefers-reduced-motion: reduce) {
  .portrait:hover, .ask-facts li:hover, .ask-chips .chip:hover, .th-card:hover,
  .pb-feature:hover, .pb-item:hover, .pb-feature:hover .pb-photo img,
  .pb-item:hover .pb-thumb img, .outlet-chip:hover { transform: none; }
}
