/* ------------------------------------------------------------------
   Variant: stamp — quiet, gallery-like, artifact-first.
   The site's only design. Poppins at regular weight,
   one signature element (김채운 in Korean calligraphy on hanji), work shown as real artifacts.
   ------------------------------------------------------------------ */

:root {
  --bg: #ffffff;
  --bg-grad: linear-gradient(135deg, #f3f0ff 0%, #fafafd 50%, #eef5ff 100%);  /* lavender, near-white, sky */
  --ink: #161618;
  --ink-2: #6e6e73;          /* 5.0:1 on white */
  --line: rgba(0, 0, 0, 0.08);
  --fill: rgba(0, 0, 0, 0.05);
  --fill-2: rgba(0, 0, 0, 0.035);
  --pill: #ffffff;
  --seal: #c63d2f;
  --paper: #fbf6ee;
  --ok: #30b158;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .05), 0 24px 56px rgba(0, 0, 0, .12);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --r-card: 24px;

  /* stage gradients, one per piece of work */
  --g-lucent: linear-gradient(140deg, #ece8ff 0%, #dde8ff 55%, #f4f7ff 100%);
  --g-ey: linear-gradient(150deg, #f1f3f7 0%, #e1e7f0 100%);
  --g-tri: linear-gradient(150deg, #fff3ea 0%, #ffe2d1 100%);
  --g-mirror: linear-gradient(150deg, #fff9e8 0%, #fbe8cf 100%);
  --g-mobility: linear-gradient(150deg, #eef9f3 0%, #dcf1ea 100%);
  --g-arcade: linear-gradient(160deg, #1b2140 0%, #0f1426 100%);
  --g-plain: linear-gradient(160deg, #f6f6f8 0%, #ececf0 100%);
}

:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-grad: linear-gradient(135deg, #1a1530 0%, #0b0b0c 50%, #0c1322 100%);  /* deep indigo to near-black */
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --line: rgba(255, 255, 255, 0.1);
  --fill: rgba(255, 255, 255, 0.08);
  --fill-2: rgba(255, 255, 255, 0.05);
  --pill: #1c1c1e;
  --paper: #0b0b0c;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-line: rgba(255, 255, 255, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .6), 0 24px 56px rgba(0, 0, 0, .55);
  --g-lucent: linear-gradient(140deg, #1d1a33 0%, #151c2e 55%, #12141b 100%);
  --g-ey: linear-gradient(150deg, #17191e 0%, #1c222c 100%);
  --g-tri: linear-gradient(150deg, #24170f 0%, #2b1a12 100%);
  --g-mirror: linear-gradient(150deg, #241f12 0%, #2a2014 100%);
  --g-mobility: linear-gradient(150deg, #0f1f18 0%, #12241f 100%);
  --g-plain: linear-gradient(160deg, #161618 0%, #1c1c1f 100%);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background: var(--bg) var(--bg-grad) fixed;
  font: 400 16px/1.55 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: #ffe9a8; color: #161618; }
:focus-visible { outline: 3px solid rgba(0, 122, 255, .55); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* open questions stay in the markup, hidden from visitors */
.confirm { display: none; }
:root[data-confirm] .confirm { display: inline; background: #fff1a8; color: #5a4a00; border-radius: 4px; padding: 0 4px; font-size: .85em; }

/* ---------- atmosphere: one soft wash, top right ---------- */
.aurora {
  position: absolute; z-index: -1; pointer-events: none;
  top: -260px; right: -220px; width: min(1000px, 110vw); height: 620px;
  background:
    radial-gradient(40% 46% at 62% 46%, rgba(206, 190, 255, .55), transparent 70%),
    radial-gradient(36% 40% at 80% 30%, rgba(186, 214, 255, .6), transparent 70%),
    radial-gradient(30% 34% at 44% 30%, rgba(255, 236, 170, .45), transparent 70%);
  filter: blur(40px);
}
:root[data-theme="dark"] .aurora { opacity: .35; }

/* ---------- top: 김채운 in calligraphy, ink on hanji ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.seal { display: inline-block; line-height: 0; border-radius: 4px; }
.cal { display: block; width: 38px; height: auto; transform: rotate(-1.5deg);
  filter: drop-shadow(0 1px 1px rgba(40, 30, 10, .08)) drop-shadow(0 8px 14px rgba(60, 40, 10, .12)); }
:root[data-theme="dark"] .cal { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
@media (prefers-reduced-motion: no-preference) {
  .top .cal .paper { animation: paper-in .5s var(--ease) both; }
  .top .cal .ink { animation: write 1.5s cubic-bezier(.45, .05, .3, 1) .3s both; }
  @keyframes paper-in { from { opacity: 0; } }
  @keyframes write { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
}
.theme-toggle { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
.theme-toggle:hover { background: var(--fill); color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; }

/* ---------- intro ---------- */
.intro { padding-top: clamp(40px, 7vw, 76px); }
.name { font-size: clamp(28px, 3vw, 34px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.thesis, .cred { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.thesis { margin-top: 10px; min-height: 1.6em; transition: opacity .25s var(--ease); }
.thesis.is-swapping { opacity: 0; }
.cred a { color: var(--ink); font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease); }
.cred a:hover, .cred a:focus-visible { background-size: 100% 1px; }
.status { display: inline-flex; align-items: baseline; gap: 7px; color: var(--ink); }
.status i { flex: none; transform: translateY(-1px); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(48, 177, 88, .45); }
@media (prefers-reduced-motion: no-preference) {
  .status i { animation: ping 2.4s ease-out infinite; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(48, 177, 88, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(48, 177, 88, 0); } }
}

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; margin-top: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 6px 14px 5px; border-radius: 999px; font-size: 15px; font-weight: 400; color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tab:hover { color: var(--ink); background: var(--fill-2); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--fill); font-weight: 500; }

.panel { padding-top: 28px; }
.panel[hidden] { display: none; }
.sub-h { font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 52px 0 16px; letter-spacing: 0; }
.sub-h:first-child { margin-top: 0; }

/* ---------- work grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.w--wide { grid-column: 1 / -1; }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid, .grid--3 { grid-template-columns: minmax(0, 1fr); } .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.w { display: block; }
.stage {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 10; border-radius: var(--r-card);
  background: var(--g, var(--g-plain));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .4s var(--ease);
}
.w--wide .stage { aspect-ratio: 21 / 9; }
.grid--3 .stage { aspect-ratio: 4 / 3; border-radius: 20px; }
.grid--5 .stage { aspect-ratio: 1 / 1; border-radius: 16px; }
@media (max-width: 680px) { .w--wide .stage { aspect-ratio: 4 / 3; } }
.art { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .55s var(--ease); }
a.w:hover .stage, a.w:focus-visible .stage { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
a.w:hover .art, a.w:focus-visible .art { transform: translateY(-6px) scale(1.025); }
a.w:focus-visible { outline: none; }
a.w:focus-visible .stage { outline: 3px solid rgba(0, 122, 255, .55); outline-offset: 3px; }

/* the label: a small floating pill, bottom left */
.pill {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 3px; border-radius: 999px;
  background: var(--pill); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.pill em { font-style: normal; font-weight: 400; color: var(--ink-2); }
.pill em::before { content: "• "; }

.meta { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.meta b { color: var(--ink); font-weight: 500; }
.grid--3 .meta, .grid--5 .meta { font-size: 13px; margin-top: 10px; }

/* ---------- artifacts, drawn inside the stages ---------- */
/* browser window holding a real product screenshot */
.browser {
  position: absolute; left: 50%; bottom: -8%; width: 56%; transform: translateX(-50%);
  border-radius: 12px 12px 0 0; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 30px 60px -20px rgba(28, 30, 60, .35);
}
.browser__bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 11px; background: #f2f2f5; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d9de; }
.browser__bar i:nth-child(1) { background: #ff5f57; } .browser__bar i:nth-child(2) { background: #febc2e; } .browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span { flex: 1; text-align: center; font-size: 11px; color: #63636a; margin-right: 40px; }
@media (max-width: 680px) { .browser { width: 88%; } }

/* frosted tile carrying a number */
.glass {
  display: grid; place-items: center; text-align: center; gap: 2px;
  min-width: 46%; padding: 26px 30px 22px; border-radius: 22px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-line), 0 0 0 1px rgba(255, 255, 255, .5), 0 20px 50px -20px rgba(30, 40, 70, .25);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
:root[data-theme="dark"] .glass { box-shadow: inset 0 1px 0 var(--glass-line), 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 50px -20px rgba(0, 0, 0, .6); }
.glass b { font-size: clamp(34px, 4.6vw, 54px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.glass span { font-size: 13px; color: var(--ink-2); }
.grid--3 .glass { min-width: 58%; padding: 18px 20px 15px; border-radius: 18px; }
.grid--3 .glass b { font-size: clamp(26px, 3vw, 34px); }
.glass--status b { font-size: clamp(24px, 2.6vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
.glass--status span { display: inline-flex; align-items: center; gap: 7px; }
.glass--status span i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* printed cards, fanned */
.fan { position: relative; width: 52%; height: 78%; }
.fan img { position: absolute; top: 8%; width: 46%; border-radius: 10px; box-shadow: 0 18px 40px -16px rgba(80, 50, 10, .45), 0 0 0 1px rgba(0, 0, 0, .04); transition: transform .55s var(--ease); }
.fan img:nth-child(1) { left: 6%; transform: rotate(-9deg); }
.fan img:nth-child(2) { left: 44%; transform: rotate(7deg) translateY(4%); }
a.w:hover .fan img:nth-child(1) { transform: rotate(-13deg) translateX(-6%); }
a.w:hover .fan img:nth-child(2) { transform: rotate(11deg) translate(6%, 4%); }

/* a picture that fills the stage */
.fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fill--contain img { inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .14)); }
.fill--pixel img { image-rendering: pixelated; }

/* colour swatches */
.swatches { display: flex; width: 70%; height: 46%; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .3); }
.swatches i { flex: 1; transition: flex .4s var(--ease); }
a.w:hover .swatches i:nth-child(3) { flex: 1.8; }

/* pixel snake */
.snake-art { width: 62%; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); }
.toc { position: sticky; top: 28px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc a { color: var(--ink-2); padding: 4px 0; transition: color .2s; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active { color: #0a66d6; }
:root[data-theme="dark"] .toc a.is-active { color: #4ea1ff; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .toc { display: none; } }
.about__body { max-width: 640px; }
.about__body section { scroll-margin-top: 28px; }
.about__body section + section { margin-top: 56px; }
.about__body h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
.about__body h3 { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 14px; }
.about__body p { color: var(--ink-2); }
.about__body p + p { margin-top: 12px; }
.about__body p b, .about__body p a { color: var(--ink); font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 16px; font-size: 14px; color: var(--ink-2); }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 14px; height: 14px; opacity: .8; }

.xp li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.xp li:last-child { border-bottom: 1px solid var(--line); }
.xp b { font-weight: 500; }
.xp small { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.xp span { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.xp em { font-style: normal; color: var(--ink-2); }

.likes { display: grid; gap: 8px; margin-top: 4px; }
.likes li { color: var(--ink-2); }
.likes b { color: var(--ink); font-weight: 500; }
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.photos figure { border-radius: 12px; overflow: hidden; background: var(--fill); aspect-ratio: 3 / 4; }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.photos figure:hover img { transform: scale(1.04); }
@media (max-width: 520px) { .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { padding: 6px 13px 5px; border-radius: 999px; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; transition: background .2s; }
.links a:hover { background: var(--fill); }

/* ---------- footer ---------- */
.foot {
  margin-top: 96px; padding: 28px 0 56px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.3fr .8fr 1.2fr; gap: 28px; font-size: 14px;
}
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.foot__id { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.foot__id .cal { width: 17px; transform: rotate(-1.5deg); }
.clock { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.clock svg { width: 13px; height: 13px; }
.foot nav { display: grid; gap: 4px; align-content: start; }
.foot nav a { color: var(--ink-2); width: fit-content; transition: color .2s; }
.foot nav a:hover { color: var(--ink); }
.foot__cta b { display: block; font-size: 15px; font-weight: 500; }
.foot__cta a { color: var(--ink-2); }
.foot__cta a:hover { color: var(--ink); }
.foot__small { margin-top: 18px; display: grid; gap: 2px; font-size: 12.5px; color: var(--ink-2); }
.foot__small code { font: inherit; letter-spacing: .04em; }
.foot__small a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .art, .fan img, .swatches i, .photos img, .stage, .thesis { transition: none !important; }
  a.w:hover .art { transform: none; }
}

/* ---------- shared: floating variant switcher ---------- */

/* day/night glyph next to the clock */
#clock-icon[data-night="true"] .sun, #clock-icon:not([data-night="true"]) .moon { display: none; }
:root[data-theme="dark"] .browser { background: #1c1c1e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -20px rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .browser__bar { background: #2a2a2e; border-bottom-color: rgba(255, 255, 255, .06); }
.cred a[data-user] { white-space: nowrap; }
:root[data-theme="dark"] .browser__bar span { color: #a1a1a6; }

/* project headline: what the project is, in a sentence. Stats stay in the line below. */
.w-title { margin-top: 14px; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); max-width: 46ch; text-wrap: balance; }
.w-title + .meta { margin-top: 4px; }

/* ---------- builds: small browser frames, a terminal, a gauge ---------- */
.grid--3 .browser { width: 84%; bottom: -12%; border-radius: 9px 9px 0 0; }
.grid--3 .browser__bar { height: 18px; gap: 4px; padding: 0 8px; }
.grid--3 .browser__bar i { width: 6px; height: 6px; }
.grid--3 .browser__bar span { font-size: 9px; margin-right: 26px; }
.fill--top img { object-position: top left; }
.term { width: 76%; padding: 14px 16px; border-radius: 12px; background: #0d1020; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -16px rgba(0, 0, 0, .6);
  font: 500 11.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: #c9d1e8; }
.term p:first-child { color: #fff; }
.term ul { margin-top: 8px; display: grid; gap: 3px; }
.term li::before { content: "○ "; color: #7d86a8; }
.term li.on { color: #8fd4a8; }
.term li.on::before { content: "● "; color: #8fd4a8; }
.gauge { width: 68%; display: grid; gap: 8px; }
.gauge span { font-size: 12px; font-weight: 500; color: var(--ink); letter-spacing: .02em; }
.gauge i { display: block; height: 18px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 26px -12px rgba(80, 50, 10, .35); padding: 3px; }
.gauge b { display: block; height: 100%; width: 62%; border-radius: 999px; background: linear-gradient(90deg, #34c759, #ffcc00 70%, #ff9500); }
@media (prefers-reduced-motion: no-preference) {
  a.w:hover .gauge b, div.w:hover .gauge b { width: 38%; transition: width 1.2s var(--ease); }
  .gauge b { transition: width .6s var(--ease); }
}
#builds .sub-h:first-child { margin-top: 0; }

/* five variants: let the switcher scroll on narrow screens instead of overflowing */

/* the corner wash is wider than a phone; clip at the root so mobile browsers never widen the layout viewport to fit it */
html { overflow-x: clip; }

/* ---------- live previews: "Try it live" opens the real app in a dialog ---------- */
.live-card { position: relative; }
.live-btn { position: absolute; top: 14px; right: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px; background: var(--pill); color: var(--ink); font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.live-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.live-btn i, .live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(48, 177, 88, .2); flex: none; }
.live { width: min(1200px, calc(100vw - 32px)); height: min(820px, calc(100dvh - 32px)); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 18px; background: var(--pill); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.live[open] { display: flex; flex-direction: column; }
.live::backdrop { background: rgba(12, 12, 24, .45); backdrop-filter: blur(6px); }
.live__bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.live__bar b { font-weight: 600; }
.live__open { margin-left: auto; color: var(--ink-2); white-space: nowrap; }
.live__open:hover { color: var(--ink); }
.live__close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.live__close:hover { background: var(--fill); }
.live__note { padding: 8px 16px; font-size: 13px; color: var(--ink-2); background: var(--fill-2); border-bottom: 1px solid var(--line); }
.live iframe { flex: 1; width: 100%; border: 0; background: #fff; }
html.live-open { overflow: hidden; }
@media (max-width: 680px) { .live { width: 100vw; height: 100dvh; border-radius: 0; } .live-btn { top: 10px; right: 10px; } }

/* ---------- design notes (above the footer) ---------- */
.notes { margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--line); }
.notes h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.notes__lede { color: var(--ink-2); margin-top: 6px; }
.notes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(24px, 5vw, 72px); margin-top: 32px; }
@media (max-width: 760px) { .notes__grid { grid-template-columns: minmax(0, 1fr); } }
.notes h3 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 6px; }
.notes p, .notes li, .notes td { color: var(--ink-2); font-size: 14px; }
.notes p + p, .notes p + .grads, .notes .spec + .scale, .notes .scale + p, .notes .grads + p { margin-top: 12px; }
.notes code { font: inherit; font-size: 12.5px; letter-spacing: 0; color: var(--ink); overflow-wrap: anywhere; }
.notes__cap { font-size: 13px; margin-bottom: 14px; }
.swl { display: grid; gap: 10px; }
.swl li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 0 14px; }
.sw { grid-row: 1 / span 2; display: flex; width: 56px; height: 36px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.sw i { flex: 1; display: block; }
.swl__t b { font-weight: 500; color: var(--ink); }
.swl__h { font-size: 12.5px; }
.grads { display: grid; gap: 10px; margin-top: 16px; }
.grads div { display: grid; gap: 6px; }
.grads i { display: block; height: 36px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.grads span { font-size: 12.5px; color: var(--ink-2); }
.spec { padding: 18px 20px; border-radius: 16px; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; }
.spec p { margin: 0 !important; }
.spec__a { font-size: clamp(28px, 3vw, 34px) !important; font-weight: 500; letter-spacing: -0.025em; color: var(--ink) !important; line-height: 1.15; }
.spec__b { font-size: 17px !important; font-weight: 500; color: var(--ink) !important; }
.spec__c { font-size: 16px !important; }
.spec__d { font-size: 13px !important; font-weight: 600; letter-spacing: .02em; }
.scale { border-collapse: collapse; width: 100%; margin-top: 14px; }
.scale td { padding: 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
.scale td:first-child { color: var(--ink); width: 42%; }
.bul li { position: relative; padding-left: 16px; margin-top: 6px; }
.bul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--ink-2); }
.path li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.path li:last-child { border-bottom: 1px solid var(--line); }
.path b { font-weight: 500; color: var(--ink); }
@media (max-width: 420px) { .path li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.notes__cap a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.brandart { display: flex; align-items: center; justify-content: center; gap: 28px; height: 100%; }
.brandart .cal--card { width: 64px; }
.brandart__sw { display: flex; flex-direction: column; gap: 6px; }
.brandart__sw i { display: block; width: 120px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.path a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
