/* H1 Palette: shared styles. All colours derive from the client's five swatches plus white and a near-white. */
:root {
  /* palette swatches */
  --navy: #1D3057;
  --steel: #476A96;
  --lavender: #A6B6D3;
  --sky: #AECBE7;
  --blush: #FBD7CD;
  --white: #FFFFFF;
  --mist: #F6F8FB;
  --gold: #F6B45D; /* logo stars only */

  /* roles */
  --ink: var(--navy);
  --ink-2: color-mix(in srgb, var(--navy) 80%, var(--white));
  --ink-3: color-mix(in srgb, var(--navy) 62%, var(--white));
  --ink-4: color-mix(in srgb, var(--navy) 42%, var(--white));
  --link: var(--steel);
  --bg: var(--white);
  --bg-2: var(--mist);
  --sky-soft: color-mix(in srgb, var(--sky) 30%, var(--white));
  --sky-mid: color-mix(in srgb, var(--sky) 60%, var(--white));
  --lav-soft: color-mix(in srgb, var(--lavender) 24%, var(--white));
  --blush-soft: color-mix(in srgb, var(--blush) 38%, var(--white));
  --line: color-mix(in srgb, var(--navy) 11%, transparent);
  --line-2: color-mix(in srgb, var(--navy) 20%, transparent);
  --wash: linear-gradient(180deg, color-mix(in srgb, var(--navy) 0%, transparent) 30%, color-mix(in srgb, var(--steel) 42%, transparent) 62%, color-mix(in srgb, var(--navy) 88%, transparent) 100%);
  --glow: 0 18px 50px -18px color-mix(in srgb, var(--steel) 45%, transparent), 0 0 0 1px color-mix(in srgb, var(--blush) 70%, transparent);
  --shadow: 0 1px 2px color-mix(in srgb, var(--navy) 6%, transparent), 0 12px 32px -16px color-mix(in srgb, var(--navy) 24%, transparent);

  --font: "Plus Jakarta Sans", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ko: "Noto Sans KR", "Plus Jakarta Sans", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --r: 20px;
  --r-sm: 12px;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --hh: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); }
html.lock { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--font); letter-spacing: .003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[lang="ko"] { font-family: var(--ko); letter-spacing: 0; }
::selection { background: var(--blush); color: var(--navy); }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- type ---------- */
.eyebrow, .meta { font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.h1 { font-size: clamp(30px, 2.9vw, 42px); line-height: 1.16; font-weight: 500; letter-spacing: -.012em; }
.h2 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.25; font-weight: 500; letter-spacing: -.006em; }
.h3 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.002em; }
.lede { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; color: var(--ink-2); }
.small { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.ul { color: var(--link); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease), color .2s; padding-bottom: 1px; }
.ul:hover { color: var(--navy); background-size: 0 1px; background-position: 100% 100%; }
.ul-t { background: linear-gradient(var(--steel), var(--steel)) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--out); }
a:hover .ul-t, button:hover .ul-t, a:focus-visible .ul-t, button:focus-visible .ul-t { background-size: 100% 1px; }
.arr { display: inline-block; transition: transform .35s var(--out); }
a:hover .arr, button:hover .arr { transform: translateX(4px); }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; font-size: 14.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s var(--ease), color .3s, box-shadow .3s; white-space: nowrap; }
.btn:hover { background: var(--blush-soft); box-shadow: inset 0 0 0 1px var(--blush); }
.btn.solid { background: var(--navy); color: var(--white); box-shadow: none; }
.btn.solid:hover { background: var(--steel); }
.btn.light { background: var(--white); color: var(--navy); box-shadow: none; }
.btn.light:hover { background: var(--blush); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, box-shadow .3s, transform .3s var(--out); flex: none; }
.icon-btn:hover { background: var(--blush-soft); box-shadow: inset 0 0 0 1px var(--blush); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s, color .25s, box-shadow .25s; }
.chip:hover { background: var(--blush-soft); box-shadow: inset 0 0 0 1px var(--blush); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); box-shadow: none; }
.chip .n { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: var(--sky); }
.copy { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; margin-left: 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--steel); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s, color .25s, box-shadow .25s; vertical-align: 1px; }
.copy:hover { background: var(--blush-soft); box-shadow: inset 0 0 0 1px var(--blush); }
.copy.done { background: var(--blush); color: var(--navy); box-shadow: none; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--sky-soft); color: var(--steel); font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.tag.blush { background: var(--blush-soft); color: var(--navy); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--hh); background: color-mix(in srgb, var(--white) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); transition: transform .45s var(--out), box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.away { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: .005em; color: var(--navy); white-space: nowrap; }
.brand .logo { width: 34px; height: auto; flex: none; transition: transform .6s var(--out); }
.brand:hover .logo { transform: rotate(-4deg) scale(1.04); }
.brand .b-sub { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .02em; color: var(--ink-3); margin-top: 1px; }
.logo .bars { fill: var(--navy); }
.logo .star { fill: var(--gold); transform-box: fill-box; transform-origin: center; }
.brand:hover .logo .star { animation: twinkle 1.2s var(--ease); }
@keyframes twinkle { 40% { transform: scale(.8) rotate(12deg); } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .25s, background .25s; }
.nav a:hover { color: var(--navy); background: var(--sky-soft); }
.nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--blush); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blush) 40%, transparent); }
.menu-btn { display: none; height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; }

/* mobile menu */
.menu { border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: var(--white); color: var(--navy); }
.menu::backdrop { background: color-mix(in srgb, var(--navy) 30%, transparent); }
.menu[open] { animation: menu-in .45s var(--out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
.menu .top { height: var(--hh); display: flex; align-items: center; justify-content: space-between; }
.menu .close { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; }
.menu .close svg { width: 12px; height: 12px; }
.menu nav { margin-top: 28px; }
.menu nav li { border-top: 1px solid var(--line); opacity: 0; transform: translateY(8px); animation: li-in .5s var(--out) forwards; animation-delay: calc(var(--i, 0) * 50ms + 60ms); }
@keyframes li-in { to { opacity: 1; transform: none; } }
.menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 22px; font-weight: 500; }
.menu nav a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blush); }
.menu .m-foot { margin-top: auto; padding: 32px 0 28px; }

/* ---------- page head ---------- */
.page-head { padding: clamp(40px, 6vw, 84px) 0 clamp(28px, 3.5vw, 48px); }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head .lede { max-width: 60ch; margin-top: 16px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section { padding: clamp(56px, 7vw, 112px) 0; }
.sec-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }
.sec-top .eyebrow { margin-bottom: 10px; }

/* ---------- media frames ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--sky-soft); isolation: isolate; transform: translateZ(0); }
.media > img, .media .mv > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.4s var(--out), filter .6s; will-change: transform; }
/* looping research videos (muted, poster first; site.js H.videos plays them only while on screen) */
.media > video.vid { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b0b0d; }
.hover-host:hover .media > video.vid { transform: none; }
.media .mv { position: absolute; inset: 0; }
.media.contain > img, .media.contain .mv > img { object-fit: contain; }
.media.mat-white { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.media.mat-navy { background: var(--navy); }
.media.mat-lav { background: var(--lav-soft); }
.zoom:hover > img, .zoom:hover .mv > img, a:hover > .media.zoom > img, a:hover > .media.zoom .mv > img, a:focus-visible > .media.zoom > img,
button:hover > .media.zoom > img, .hover-host:hover .media.zoom > img, .hover-host:focus-visible .media.zoom > img { transform: scale(1.055); }
/* palette wash + caption reveal: research figures only (never on photos of people) */
.wash::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--wash); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.wash .w-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px; color: var(--white); font-size: 14px; line-height: 1.55; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .7s var(--out); pointer-events: none; }
.wash .w-cap .credit { display: block; margin-top: 6px; font-size: 12px; color: var(--blush); letter-spacing: .02em; }
.wash:hover::after, .hover-host:hover .wash::after, .hover-host:focus-visible .wash::after { opacity: 1; }
.wash:hover .w-cap, .hover-host:hover .wash .w-cap, .hover-host:focus-visible .wash .w-cap { opacity: 1; transform: none; }
.caption { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); max-width: 90ch; }
.caption .credit { color: var(--steel); white-space: nowrap; }

/* loupe (cursor-following magnifier on research figures) */
.loupe-host { cursor: crosshair; }
.loupe { position: absolute; left: 0; top: 0; z-index: 4; width: var(--ls, 200px); height: var(--ls, 200px); margin: calc(var(--ls, 200px) / -2) 0 0 calc(var(--ls, 200px) / -2); border-radius: 50%; pointer-events: none; background-repeat: no-repeat; background-color: var(--white);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px color-mix(in srgb, var(--blush) 80%, transparent), 0 22px 50px -12px color-mix(in srgb, var(--navy) 55%, transparent);
  opacity: 0; transform: scale(.6); transition: opacity .3s var(--ease), transform .45s var(--out); }
.loupe.on { opacity: 1; transform: scale(1); }
.loupe-tip { position: absolute; right: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--white) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; color: var(--navy); pointer-events: none; transition: opacity .3s; }
.loupe-tip svg { width: 13px; height: 13px; }
.loupe-host.looking .loupe-tip { opacity: 0; }
@media (hover: none) { .loupe-tip { display: none; } }

/* ---------- entrance motion (content visible at rest; only hidden once JS confirms observers work) ---------- */
.rv-on [data-rv]:not(.rv-in) { opacity: 0; transform: translateY(22px); }
.rv-on [data-rv] { transition: opacity .9s var(--ease) calc(var(--i, 0) * 70ms), transform 1.1s var(--out) calc(var(--i, 0) * 70ms); }
.rv-on [data-clip]:not(.rv-in) { clip-path: inset(10% 6% 10% 6% round var(--r)); }
.rv-on [data-clip]:not(.rv-in) img { transform: scale(1.14); }
.rv-on [data-clip] { transition: clip-path 1.4s var(--out); clip-path: inset(0 0 0 0 round var(--r)); }
.rv-on [data-clip] img { transition: transform 1.8s var(--out); }

/* ---------- dialogs ---------- */
dialog { color: var(--navy); }
.sheet { border: 0; padding: 0; margin: 0 0 0 auto; width: min(1040px, 100%); max-width: 100%; height: 100%; max-height: 100%; background: var(--white); overflow-y: auto; overscroll-behavior: contain; box-shadow: -30px 0 80px -30px color-mix(in srgb, var(--navy) 40%, transparent); }
.sheet::backdrop { background: color-mix(in srgb, var(--navy) 38%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .6s var(--out); }
.sheet[open]::backdrop { animation: fade-in .5s var(--ease); }
@keyframes sheet-in { from { transform: translateX(48px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; padding: 0 clamp(20px, 4vw, 48px); background: color-mix(in srgb, var(--white) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sheet-body { padding: clamp(24px, 4vw, 48px); }

/* lightbox */
.lb { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: color-mix(in srgb, var(--navy) 96%, transparent); color: var(--white); overflow: hidden; }
.lb::backdrop { background: transparent; }
.lb[open] { animation: fade-in .4s var(--ease); }
.lb-stage { position: absolute; inset: 72px 72px 110px; display: grid; place-items: center; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); transition: opacity .35s var(--ease), transform .5s var(--out); }
.lb-stage img.out { opacity: 0; transform: scale(.97); }
.lb-top { position: absolute; left: 0; right: 0; top: 0; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.lb .icon-btn { color: var(--white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 30%, transparent); }
.lb .icon-btn:hover { background: color-mix(in srgb, var(--white) 12%, transparent); box-shadow: inset 0 0 0 1px var(--blush); }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -22px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 24px; text-align: center; font-size: 15px; }
.lb-d { font-size: 13px; color: var(--sky); }
.lb-n { font-size: 13px; color: var(--sky); font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: clamp(48px, 6vw, 80px) 0 28px; margin-top: clamp(40px, 6vw, 96px); }
.site-footer .logo .bars { fill: var(--white); }
.site-footer .brand { color: var(--white); }
.site-footer .brand .b-sub { color: var(--lavender); }
.f-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.f-grid h2, .f-grid h3 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); margin-bottom: 10px; }
.f-grid p { font-size: 14.5px; line-height: 1.65; color: color-mix(in srgb, var(--white) 88%, var(--sky)); }
.f-grid .mt { margin-top: 20px; }
.f-email { color: var(--white); background: linear-gradient(var(--blush), var(--blush)) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease); }
.f-email:hover { background-size: 0 1px; background-position: 100% 100%; }
.site-footer .copy { color: var(--white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 30%, transparent); }
.site-footer .copy:hover, .site-footer .copy.done { background: var(--blush); color: var(--navy); box-shadow: none; }
.f-ko { display: block; margin-top: 14px; font-size: 13.5px; color: var(--lavender); }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--white) 14%, transparent); font-size: 13px; color: var(--lavender); }
.f-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.f-bottom a:hover { color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --hh: 64px; --r: 16px; }
  body { font-size: 15.5px; }
  .brand { font-size: 14px; gap: 10px; }
  .brand .logo { width: 30px; }
  .f-grid { grid-template-columns: 1fr; gap: 26px; }
  .lb-stage { inset: 64px 12px 120px; }
  .lb-prev, .lb-next { top: auto; bottom: 30px; margin: 0; }
  .lb-cap { padding: 0 72px; font-size: 14px; }
}

/* ---------- reduced motion / still ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still .site-header { position: relative; }
.still .menu nav li { opacity: 1; transform: none; }

/* ===================== Palette layer (v3): all five swatches in use ===================== */
:root {
  --sky-lite: color-mix(in srgb, var(--sky) 45%, var(--white));
  --lav-lite: color-mix(in srgb, var(--lavender) 38%, var(--white));
  --blush-lite: color-mix(in srgb, var(--blush) 44%, var(--white));
  --steel-lite: color-mix(in srgb, var(--steel) 14%, var(--white));
}
/* theme colour assignment: fp sky, vs blush, lensless lavender, speckle steel, hbi navy */
[data-th] { --th: var(--sky); --th-ink: var(--navy); --th-soft: var(--sky-lite); --th-acc: var(--steel); }
[data-th="fp"], [data-th="micro"] { --th: var(--sky); --th-ink: var(--navy); --th-soft: var(--sky-lite); --th-acc: var(--steel); }
/* virtual staining is part of computational microscopy: same colour as fp */
[data-th="vs"] { --th: var(--sky); --th-ink: var(--navy); --th-soft: var(--sky-lite); --th-acc: var(--steel); }
[data-th="lensless"] { --th: var(--lavender); --th-ink: var(--navy); --th-soft: var(--lav-lite); --th-acc: var(--navy); }
[data-th="speckle"] { --th: var(--steel); --th-ink: var(--white); --th-soft: var(--steel-lite); --th-acc: var(--steel); }
[data-th="hbi"] { --th: var(--navy); --th-ink: var(--white); --th-soft: color-mix(in srgb, var(--navy) 10%, var(--white)); --th-acc: var(--navy); }
[data-th="all"], [data-th="other"] { --th: var(--navy); --th-ink: var(--white); --th-soft: var(--mist); --th-acc: var(--navy); }

body .tag[data-th] { background: var(--th); color: var(--th-ink); }

/* buttons, chips, links in steel */
body .btn.solid { background: var(--steel); }
body .btn.solid:hover { background: var(--navy); }
body .btn:not(.solid):not(.light):hover { background: var(--sky-lite); box-shadow: inset 0 0 0 1px var(--sky); }
body .chip:hover { background: var(--sky-lite); box-shadow: inset 0 0 0 1px var(--sky); }
body .chip[aria-pressed="true"] { background: var(--steel); color: var(--white); }
body .chip[data-th]:not([data-th="all"]):not([data-th="other"]) { box-shadow: inset 0 0 0 1px var(--line-2); }
body .chip[data-th]:not([data-th="all"]):not([data-th="other"])::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--th); box-shadow: 0 0 0 1px color-mix(in srgb, var(--navy) 14%, transparent); }
body .chip[data-th]:hover { background: var(--th-soft); }
body .chip[data-th][aria-pressed="true"] { background: var(--th); color: var(--th-ink); box-shadow: none; }
body .chip[data-th][aria-pressed="true"]::before { background: var(--th-ink); opacity: .6; }
body .chip[data-th][aria-pressed="true"] .n { color: inherit; opacity: .75; }
body .chip[data-th="all"][aria-pressed="true"] { background: var(--steel); }

/* page heads: soft sky to blush wash */
body .page-head { background: linear-gradient(120deg, var(--sky-lite) 0%, color-mix(in srgb, var(--lavender) 22%, var(--white)) 55%, var(--blush-lite) 100%); }
body .page-head .eyebrow { color: var(--steel); }

/* footer: navy with steel sub-band */
body .site-footer { background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 70%, color-mix(in srgb, var(--navy) 70%, var(--steel)) 100%); }
body .site-footer .f-bottom { border-top-color: color-mix(in srgb, var(--lavender) 35%, transparent); }
body .site-footer { margin-top: 0; }
body .chip .n { color: color-mix(in srgb, var(--navy) 70%, var(--white)); }

/* ---------- language switch (EN / KO) ---------- */
.nav .lang { display: inline-flex; align-items: center; gap: 2px; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; }
.nav .lang > * { padding: 6px 8px; border-radius: 999px; font-size: 12.5px; }
.nav .lang .on { color: var(--navy); }
.nav .lang a { color: var(--ink-3); }
.nav .lang a:hover { color: var(--navy); background: var(--sky-soft); }
