/* minseo.ng: white page, black type, pill nav. Nothing else. */

:root {
  --bg: #fff;
  --fg: #000;
  --muted: #8A8A8A;
  --rule: #E6E6E6;
  --font: "Archivo", "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --ko: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --pad: clamp(20px, 3vw, 40px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* full-bleed sections use --vw (the width without the scrollbar, set by nav.js); clip anything that still pokes out sideways */
html, body { overflow-x: hidden; overflow-x: clip; }

/* switching tabs: the active pill slides over, the page content swaps with a short fade.
   (assets/nav.js swaps pages in place; @view-transition covers a normal page load too) */
@view-transition { navigation: auto; }
.pill[aria-current="page"] { view-transition-name: active-pill; }
.main { view-transition-name: page; }
::view-transition-group(active-pill) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }
::view-transition-old(page) { animation: page-out .14s ease-in both; }
::view-transition-new(page) { animation: page-in .42s cubic-bezier(.2, .7, .1, 1) .12s both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p, ul, dl, dd { margin: 0; padding: 0; font: inherit; }
ul { list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.top, .main, .foot {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ── Pill nav ── */

.top { padding-top: 24px; padding-bottom: 24px; }
.pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 5px 14px 4px;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  transition: background .15s, color .15s;
}
.pill:hover, .pill[aria-current="page"] { background: var(--fg); color: var(--bg); }

.main { flex: 1; padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(80px, 10vw, 140px); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 28px;
  font-size: 13px;
  color: var(--muted);
}
.foot a:hover { color: var(--fg); }

/* ── Shared ── */

.page-title, .hello-name {
  font-size: clamp(56px, 11vw, 152px);
  font-weight: 500;
  font-stretch: 90%;
  line-height: .86;
  letter-spacing: -.055em;
  text-transform: uppercase;
  margin-left: -.04em;
}
.page-title { margin-bottom: clamp(40px, 6vw, 80px); }

/* ── Home: the logo on brand red ── */

.p-home {
  --bg: #DF301C;
  --fg: #FFF1D1;
  --muted: rgba(255, 241, 209, .62);
  background: var(--bg);
  color: var(--fg);
}
.p-home ::selection { background: var(--fg); color: var(--bg); }
.p-home .pill:hover, .p-home .pill[aria-current="page"] { background: var(--fg); color: var(--bg); }

.p-home .main { display: grid; place-items: center; padding-top: 2vh; padding-bottom: 6vh; }
.hello { display: flex; flex-direction: column; align-items: center; }

.logo {
  display: block;
  width: min(78vw, 64vh * 552 / 473, 760px);
  height: auto;
  overflow: visible;
  fill: currentColor;
}
.logo path { transition: transform .5s cubic-bezier(.2, .7, .1, 1); transform-box: fill-box; transform-origin: 50% 100%; }
.logo path:hover { transform: translateY(-5%) rotate(-3deg); }

@media (prefers-reduced-motion: reduce) { .logo path:hover { transform: none; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Notes ── */

.note-cards { border-top: 1.5px solid var(--fg); }
.note-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.note-card-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.note-card-title { font-family: var(--ko); font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; letter-spacing: -.02em; }
.note-card:hover .note-card-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* ── Work ── */

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px clamp(16px, 2vw, 28px);
}
.work { display: block; }
.work-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--tile, #eee);
}
.shot { width: 100%; height: 100%; object-fit: cover; object-position: 10% 0; }
.icon { width: 34%; height: auto; aspect-ratio: 1; border-radius: 22%; }
.icon--letter {
  display: grid;
  place-items: center;
  background: var(--ib);
  color: var(--if);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
}
.work-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}
.work-year { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.work-desc { display: block; margin-top: 2px; font-family: var(--ko); font-size: 14px; color: var(--muted); }
.work:hover .work-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* ── About ── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.about-lead {
  font-family: var(--ko);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.03em;
  margin-bottom: 40px;
}
.fact { padding: 16px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.fact dt { font-size: 13px; font-weight: 700; text-transform: uppercase; }
.fact dd { line-height: 1.6; }
.fact a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.fact a:hover { text-decoration-color: var(--fg); }

/* ── Small screens ── */

@media (max-width: 800px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
}
@media (max-width: 520px) {
  .note-card { grid-template-columns: 1fr; gap: 2px; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .foot { flex-direction: column; gap: 4px; }
}

/* ── Empty view ── */
.empty { font-family: var(--ko); font-size: 17px; color: var(--muted); }
.empty a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* home shows only the logo */
.p-home .foot { display: none; }

/* sparkle next to SUPER */
.pill { display: inline-flex; align-items: center; gap: 4px; }
.spark { width: 11px; height: 11px; fill: currentColor; margin-top: -1px; }

/* phones: the five tabs always stay on one line, shrinking with the screen */
@media (max-width: 520px) {
  .pills { flex-wrap: nowrap; gap: clamp(3px, 1.2vw, 6px); }
  .pill { flex: 0 1 auto; min-width: 0; padding: 5px clamp(6px, 2.3vw, 11px) 4px; font-size: clamp(10px, 3.1vw, 12.5px); white-space: nowrap; }
  .spark { width: .85em; height: .85em; }
  .top { padding-left: 12px; padding-right: 12px; }
}

/* ── Super: black board of widgets ── */

.p-super {
  --bg: #F4F4F6;
  --fg: #141414;
  --muted: rgba(20, 20, 20, .5);
  background: var(--bg);
  color: var(--fg);
}
.p-super ::selection { background: #D9D4FA; color: #141414; }
.p-super .main { padding-top: clamp(24px, 3vw, 40px); }

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.col { display: flex; flex-direction: column; gap: 22px; }

.w {
  border-radius: 26px;
  padding: 22px 24px;
}
.w-lav { background: var(--lav); color: var(--lav-ink); }
.w-olive { background: var(--olive); color: var(--olive-ink); }
.w-mint { background: var(--mint); color: var(--mint-ink); }
.w-yellow { background: var(--yellow); color: var(--yellow-ink); }
.w-red { background: var(--red); color: var(--red-ink); }

.w-label { display: block; font-size: 13px; }
.w-note { font-size: 14px; line-height: 1.3; margin-top: 12px; max-width: 26ch; font-family: var(--ko); }
.tag {
  display: inline-block;
  padding: 4px 18px 3px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 19px;
  align-self: flex-start;
}

/* date */
.w-date { padding: 0 4px; color: var(--fg); }
.date-day { font-size: clamp(56px, 6.4vw, 84px); font-weight: 500; line-height: .95; letter-spacing: -.04em; color: #DCE4D6; }
.date-sub { font-size: clamp(24px, 2.6vw, 32px); color: var(--muted); letter-spacing: -.02em; margin-top: 4px; }

/* statement */
.w-quote { min-height: 300px; }
.w-quote p { font-family: var(--ko); font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; line-height: 1.25; letter-spacing: -.035em; }

/* calendar */
.w-cal { padding: 0 4px; font-variant-numeric: tabular-nums; }
.cal-head, .cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head { font-size: 11px; color: var(--muted); padding-bottom: 8px; border-bottom: 1.5px solid var(--fg); }
.cal-row { border-bottom: 1.5px solid var(--fg); }
.cal-row:last-child { border-bottom: 0; }
.cal-row span { font-size: clamp(22px, 2.2vw, 28px); line-height: 1; padding: 9px 0; display: grid; place-items: center; }
.cal-row .today { position: relative; z-index: 0; }
.cal-row .today::before {
  content: ""; position: absolute; z-index: -1; inset: 50% auto auto 50%;
  width: 1.45em; height: 1.45em; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--red);
}

/* bars */
.w-chart { min-height: 380px; display: flex; flex-direction: column; }
.bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; margin-top: 28px; min-height: 200px; }
.bars li { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar { width: 100%; height: calc(var(--h) * 70%); min-height: 2px; background: currentColor; border-radius: 4px 4px 0 0; }
.bar-n { font-size: 22px; font-weight: 500; }
.bar-y { font-size: 12px; padding-top: 6px; border-top: 1.5px solid currentColor; width: 100%; text-align: center; }

/* span */
.span-top { display: flex; justify-content: space-between; }
.span-top strong { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.span-track { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; }
.span-track i { flex: 1; height: 1.5px; background: currentColor; position: relative; }
.span-track i::after {
  content: ""; position: absolute; right: -4px; top: 50%;
  width: 18px; height: 18px; transform: translateY(-50%);
  border-radius: 50%; border: 4px solid currentColor; background: var(--yellow);
}

/* big number */
.big-num { display: block; font-size: clamp(80px, 9vw, 120px); font-weight: 500; line-height: .9; letter-spacing: -.05em; margin: 18px 0 22px; }
.big-foot { display: flex; justify-content: space-between; font-size: 13px; padding-top: 10px; border-top: 1.5px solid currentColor; }

/* launcher */

.launch { margin-top: 18px; }
.launch a { display: flex; align-items: center; gap: 14px; padding: 7px 0; font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -.02em; }
.launch a:hover span:last-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.w-icon {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden;
  border-radius: 9px; background: var(--ib); color: var(--if);
  font-size: 18px; font-weight: 700; line-height: 1;
}
.w-icon img { width: 100%; height: 100%; object-fit: cover; }

/* pills */
.w-pill {
  display: flex; align-items: center; gap: 22px;
  padding: 10px 24px 10px 10px;
  border-radius: 999px;
  font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.01em; text-transform: uppercase;
  transition: transform .2s cubic-bezier(.2, .7, .1, 1);
}
.w-pill:hover { transform: translateX(4px); }
.w-pill--mint { background: var(--mint); color: var(--mint-ink); }
.w-pill--red { background: var(--red); color: var(--red-ink); }
.w-pill--lav { background: var(--lav); color: var(--lav-ink); text-transform: none; padding-top: 14px; padding-bottom: 14px; }
.pill-dot {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: #000; color: #fff; font-size: 24px; font-weight: 600;
}

/* featured */
.w-feat { display: flex; flex-direction: column; }
.feat-name { display: block; margin-top: 18px; font-size: clamp(48px, 5.4vw, 72px); font-weight: 500; line-height: .95; letter-spacing: -.05em; }
.feat-name:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.feat-desc { font-family: var(--ko); font-size: 15px; margin-top: 10px; min-height: 2.6em; }
.feat-art {
  margin-top: 18px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  display: grid; place-items: center; background: #000;
}
.feat-art img.shot { width: 100%; height: 100%; object-fit: cover; object-position: 10% 0; }
.feat-art .w-icon { width: 34%; height: auto; aspect-ratio: 1; border-radius: 22%; font-size: clamp(40px, 5vw, 64px); }
.feat-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding: 6px 8px; border: 1.5px solid currentColor; border-radius: 999px;
  font-size: 18px; font-variant-numeric: tabular-nums;
}
.feat-nav button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 20px; cursor: pointer; }
.feat-nav button:hover { background: color-mix(in srgb, currentColor 16%, transparent); }

/* type specimen */
.type-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.type-size { display: flex; align-items: center; gap: 8px; }
.type-size button {
  width: 22px; height: 22px; display: grid; place-items: center; padding: 0;
  border: 1.2px solid currentColor; border-radius: 50%; background: none; color: inherit; font-size: 14px; cursor: pointer;
}
.type-size button:hover { background: color-mix(in srgb, currentColor 16%, transparent); }
.type-sample { margin-top: 26px; font-size: var(--ts, 30px); line-height: 1.12; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; }

@media (max-width: 960px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .board, .col:nth-child(3) { grid-template-columns: 1fr; }
  .col:nth-child(3) { display: flex; }
}

/* Super palettes. base = original. Others from Color Hunt:
   peach colorhunt.co/palette/e00000ffa97bffeccb9fed72, pop colorhunt.co/palette/2391fffff83fffcd54f70063,
   grape colorhunt.co/palette/ff6082ffe4f6b26cff705eff. ink = text colour per card, white on dark cards */
.p-super { --lav: #A39CC4; --lav-ink: #000000; --olive: #8E8812; --olive-ink: #000000; --mint: #DCE4D6; --mint-ink: #000000; --yellow: #F5E83A; --yellow-ink: #000000; --red: #DF301C; --red-ink: #000000; }
.p-super .board[data-pal="peach"] { --lav: #FFA97B; --lav-ink: #000000; --olive: #E00000; --olive-ink: #FFFFFF; --mint: #FFECCB; --mint-ink: #000000; --yellow: #9FED72; --yellow-ink: #000000; --red: #E00000; --red-ink: #FFFFFF; }
.p-super .board[data-pal="pop"] { --lav: #2391FF; --lav-ink: #000000; --olive: #F70063; --olive-ink: #000000; --mint: #FFF83F; --mint-ink: #000000; --yellow: #FFCD54; --yellow-ink: #000000; --red: #F70063; --red-ink: #000000; }
.p-super .board[data-pal="grape"] { --lav: #B26CFF; --lav-ink: #000000; --olive: #705EFF; --olive-ink: #000000; --mint: #FFE4F6; --mint-ink: #000000; --yellow: #FF6082; --yellow-ink: #000000; --red: #705EFF; --red-ink: #000000; }

/* ── Work: a fan of covers on the right, the current piece named on the left ── */

.p-work .main { padding-top: 0; padding-bottom: 0; }
.deck-wrap {
  position: relative;
  height: calc(var(--n) * 55vh + 100vh);
  /* full-bleed, so the fan runs off the edge of the window rather than a hard column edge */
  width: var(--vw, 100vw);
  margin-left: calc(50% - var(--vw, 100vw) / 2);
  overflow-x: clip;
}
.deck-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: center;
  padding-left: max(var(--pad), calc((var(--vw, 100vw) - var(--max)) / 2));
}

/* left: what you're looking at */
.deck-info { position: relative; z-index: 200; display: flex; flex-direction: column; gap: clamp(36px, 7vh, 72px); padding-right: 24px; }
.deck-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.deck-count span { color: var(--fg); }
/* the piece's name takes the place of a page title */
.deck-title {
  margin-top: 14px;
  font-family: var(--font);
  font-size: clamp(40px, 5.6vw, 88px);
  font-weight: 500;
  font-stretch: 90%;
  line-height: .92;
  letter-spacing: -.05em;
  text-transform: uppercase;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.deck-title.is-ko { font-family: var(--ko); font-stretch: normal; letter-spacing: -.04em; }
.deck-title.is-long { font-size: clamp(30px, 3.2vw, 52px); max-width: 12em; }
.deck-title.is-ko, .deck-title.is-long { line-height: 1.25; font-weight: 700; }
.deck-title.has-typo { --k: clamp(140px, 13vw, 190px); }
/* every logo gets the same visual area: width = k * sqrt(ratio), so wide wordmarks get shorter and stacked ones taller */
.deck-title.has-typo img { display: block; width: calc(var(--k) * var(--tw, 2)); max-width: 100%; height: auto; }
.deck-label { margin-top: 16px; font-family: var(--ko); font-size: 15px; color: var(--muted); }
@keyframes deck-swap { from { opacity: 0; transform: translateY(10px); } }

/* right: the fan. Every card turns around one point off to the right */
.deck {
  --w: min(500px, 37vw);
  --dir: -1;
  position: relative;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  perspective: 1800px;
}
.slide {
  position: absolute;
  width: var(--w);
  left: calc(55% - var(--w) / 2);
  top: calc(50% - var(--w) / var(--ar, 1.6) / 2);
  transform-origin: 190% 50%;
  transform: rotate(var(--a, 0deg));   /* flat, facing the viewer */
  will-change: transform;
}
.slide a {
  display: block;
  aspect-ratio: var(--ar, 1.6);
  border-radius: 5px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
  cursor: zoom-in;
}
.slide a img { width: 100%; height: 100%; object-fit: contain; }
.slide a:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }


/* ── Work detail modal ── */

.wm:focus { outline: none; }
.wm {
  --wm-bg: #EDECE8;
  --wm-fg: #141414;
  --wm-mute: rgba(20, 20, 20, .5);
  --wm-line: rgba(20, 20, 20, .14);
  --wm-pad: clamp(18px, 3vw, 44px);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--wm-bg);
  color: var(--wm-fg);
  overflow: auto;
  overscroll-behavior: contain;
}
html:has(dialog[open]) body { overflow: hidden; }
.wm::backdrop { background: rgba(20, 20, 20, .4); }

/* top bar: where you are, where you can go */
.wm-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 var(--wm-pad);
  background: color-mix(in srgb, var(--wm-bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.wm-count { font-size: 14px; color: var(--wm-mute); font-variant-numeric: tabular-nums; }
.wm-count b { color: var(--wm-fg); font-weight: 600; }
.wm-ticks { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.wm-ticks button {
  display: block;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.wm-ticks button::before {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--wm-line);
  transition: background .2s, height .2s, margin .2s;
}
.wm-ticks button:hover::before { background: var(--wm-mute); }
.wm-ticks button[aria-current]::before { background: var(--wm-fg); height: 4px; margin-top: -2px; }
.wm-nav { justify-self: end; display: flex; gap: 6px; }
.wm-btn {
  height: 36px;
  border: 1.5px solid var(--wm-fg);
  border-radius: 999px;
  background: transparent;
  color: var(--wm-fg);
  font-family: var(--ko);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.wm-btn:hover { background: var(--wm-fg); color: var(--wm-bg); }
.wm-btn:focus-visible, .wm-ticks button:focus-visible, .wm-nextcard:focus-visible, .wm-link:focus-visible { outline: 2px solid var(--wm-fg); outline-offset: 3px; }
.wm-icon { width: 36px; display: grid; place-items: center; padding: 0; }
.wm-close { padding: 0 16px; background: var(--wm-fg); color: var(--wm-bg); }
.wm-close:hover { background: transparent; color: var(--wm-fg); }
.wm-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--wm-fg);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.wm-inner {
  display: grid;
  grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(24px, 4vw, 56px) var(--wm-pad) var(--wm-pad);
}
.wm-side {
  position: sticky;
  top: calc(64px + clamp(24px, 4vw, 56px));
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.wm-title { --k: clamp(130px, 11vw, 170px); width: 100%; }
.wm-title img, .wm-nextcard-logo img { display: block; width: calc(var(--k) * var(--tw, 2)); max-width: 100%; height: auto; }
.wm-title-text { display: block; font-family: var(--ko); font-size: clamp(32px, 3.4vw, 52px); font-weight: 700; line-height: 1.15; letter-spacing: -.04em; word-break: keep-all; }
.wm-label {
  padding: 6px 14px 5px;
  border: 1.5px solid var(--wm-line);
  border-radius: 999px;
  font-family: var(--ko);
  font-size: 13px;
  font-weight: 500;
}
.wm-credits { width: 100%; border-top: 1.5px solid var(--wm-fg); }
.wm-credits h3 { font-family: var(--ko); font-size: 13px; font-weight: 600; color: var(--wm-mute); }
.wm-credits dl { display: grid; grid-template-columns: minmax(80px, auto) 1fr; margin: 0; font-family: var(--ko); }
.wm-credits dt, .wm-credits dd { padding: 10px 0; border-bottom: 1px solid var(--wm-line); }
.wm-credits dt { padding-right: 20px; font-size: 13px; color: var(--wm-mute); }
.wm-credits dd { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.5; }
.wm-credits dd span { display: block; white-space: nowrap; }
.wm-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--wm-fg);
  color: var(--wm-bg);
  font-family: var(--ko);
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s cubic-bezier(.2, .7, .1, 1);
}
.wm-link:hover { transform: translateY(-2px); }

.wm-images { display: flex; flex-direction: column; gap: 12px; }
.wm-images img { width: 100%; height: auto; border-radius: 6px; background: #E0DFDA; }
.wm[open] .wm-images img:not(:first-child) { animation: wm-in .6s cubic-bezier(.2, .7, .1, 1) both; animation-delay: calc(var(--k, 0) * 60ms + 200ms); }

/* the end of a piece leads straight into the next one */
.wm-nextcard {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 64px);
  width: 100%;
  margin-top: clamp(40px, 6vw, 96px);
  padding: clamp(22px, 3vw, 36px);
  border: 0;
  border-radius: 6px;
  background: #E3E2DD;
  color: var(--wm-fg);
  text-align: left;
  cursor: pointer;
  transition: background .25s;
}
.wm-nextcard:hover { background: #DAD9D3; }
.wm-nextcard-top { display: flex; justify-content: space-between; font-family: var(--ko); font-size: 14px; font-weight: 600; }
.wm-nextcard-top span:last-child { color: var(--wm-mute); font-family: var(--font); font-weight: 400; font-variant-numeric: tabular-nums; }
.wm-nextcard-logo { --k: clamp(110px, 9vw, 150px); transition: transform .4s cubic-bezier(.2, .7, .1, 1); }
.wm-nextcard:hover .wm-nextcard-logo { transform: translateX(10px); }
@keyframes wm-in { from { opacity: 0; transform: translateY(24px); } }
::view-transition-group(work-hero) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }
html.wm-lock { overflow: hidden; }

@media (max-width: 760px) {
  .deck-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; padding-top: 12px; }
  .deck-info { gap: 12px; padding-bottom: 8px; }
  .deck-title { font-size: 40px; }
  .deck-title.is-long { font-size: 30px; }
  .deck-title.has-typo { --k: 104px; }
  /* phones: the cards fan out sideways from a point below, like a hand of cards, so they never reach up into the text */
  .deck { --w: 76vw; --dir: 1; }
  .slide { left: calc(50% - var(--w) / 2); top: calc(40% - var(--w) / var(--ar, 1.6) / 2); transform-origin: 50% 280%; transform: rotate(var(--a, 0deg)); }
  .slide a { box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .45); }

  .wm-inner { grid-template-columns: 1fr; }
  .wm-side { position: static; gap: 18px; }
  .wm-title { --k: 112px; }
  .wm-ticks { display: none; }
  .wm-bar { grid-template-columns: 1fr auto; height: 56px; }
  .wm-nextcard-logo { --k: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .deck-wrap { height: auto; }
  .deck-stage { position: static; height: auto; display: block; }
  .deck { height: auto; display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
  .slide { position: relative; left: auto; top: auto; transform: none !important; margin: 0 auto; }
  .wm-images img { animation: none !important; }
}

/* ── Notes: a drawer of folders that doubles as a timeline ──
   Brand reds and creams; each tab sits along the top at the post's date (--x, 0 to 1, set by the build). */

.p-notes {
  --bg: #141414;
  --fg: #E6E5E1;
  --muted: rgba(230, 229, 225, .5);
  --rule: rgba(230, 229, 225, .16);
  background: var(--bg);
  color: var(--fg);
}
.p-notes ::selection { background: #E6E5E1; color: #141414; }
.p-notes .main { display: flex; flex-direction: column; padding-bottom: 0; }
.p-notes .foot { display: none; }
.view[data-view="notes"]:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; font-family: var(--ko); }
.notes-title { margin-bottom: clamp(36px, 5vw, 64px); }

.ruler, .folders {
  --edge: max(var(--pad), calc((var(--vw, 100vw) - var(--max)) / 2));
  --tw: min(300px, 26vw);
  --track: calc(var(--vw, 100vw) - var(--edge) * 2 - var(--tw));
  width: var(--vw, 100vw);
  margin-left: calc(50% - var(--vw, 100vw) / 2);
}

/* year ruler: ticks line up with where each year starts along the tabs */
.ruler { position: relative; height: 34px; margin-bottom: 14px; }
.ruler::before { content: ""; position: absolute; left: var(--edge); right: var(--edge); bottom: 0; height: 1.5px; background: var(--fg); }
/* the century part of each year hides on phones */
.ruler b { font-weight: inherit; }
.ruler span {
  position: absolute;
  bottom: 0;
  left: calc(var(--edge) + var(--x) * var(--track));
  padding: 0 0 8px 8px;
  border-left: 1.5px solid var(--fg);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.folders { flex: 1; display: flex; flex-direction: column; list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; }
.folder {
  --tab-h: clamp(40px, 3.6vw, 48px);
  position: relative;
  z-index: var(--z);
  margin-top: calc(var(--tab-h) * -1);
}
.folder:first-child { margin-top: 0; }
.folder:last-child { flex: 1; display: flex; flex-direction: column; }
.folder:last-child .fbody { flex: 1; }

/* the tab: a block with one big rounded corner, like the letters in the logo */
.ftab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: var(--tw);
  height: var(--tab-h);
  margin-left: calc(var(--edge) + var(--x) * var(--track));
  padding: 0 18px;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--c);
  color: var(--t);
  text-align: left;
  cursor: pointer;
}
.ftab-date { flex: none; font-size: 11px; font-variant-numeric: tabular-nums; opacity: .7; }
.ftab-title { min-width: 0; font-family: var(--ko); font-size: clamp(13px, 1.15vw, 15px); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftab:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
/* where the tab meets the long band, curve the inside corners instead of a right angle */
.ftab { position: relative; --fillet: 14px; }
.ftab::before, .ftab::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: var(--fillet);
  height: var(--fillet);
  pointer-events: none;
}
.ftab::before { left: calc(var(--fillet) * -1); background: radial-gradient(circle at 0 0, transparent calc(var(--fillet) - .5px), var(--c) var(--fillet)); }
.ftab::after  { right: calc(var(--fillet) * -1); background: radial-gradient(circle at 100% 0, transparent calc(var(--fillet) - .5px), var(--c) var(--fillet)); }

.fbody {
  display: grid;
  grid-template-rows: 0fr;
  min-height: var(--tab-h);
  background: var(--c);
  color: var(--t);
  transition: grid-template-rows .5s cubic-bezier(.2, .7, .1, 1);
}
.folder.is-open .fbody { grid-template-rows: 1fr; }
.fpanel {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  grid-template-areas: "no sum date" "no tags read";
  gap: 6px 24px;
  padding: 0 var(--edge);
  font-size: 12.5px;
  line-height: 1.6;
  transition: padding .5s cubic-bezier(.2, .7, .1, 1);
}
.folder.is-open .fpanel { padding-top: 26px; padding-bottom: calc(var(--tab-h) + 32px); }
.folder:last-child.is-open .fpanel { padding-bottom: 32px; }
.fp-no { grid-area: no; font-size: clamp(28px, 3vw, 40px); font-weight: 500; font-stretch: 90%; letter-spacing: -.04em; line-height: .9; }
.fp-sum { grid-area: sum; max-width: 46ch; font-family: var(--ko); font-size: 16px; line-height: 1.5; }
.fp-date { grid-area: date; opacity: .7; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-tags { grid-area: tags; opacity: .7; font-family: var(--ko); }
.fp-read {
  grid-area: read;
  justify-self: end;
  align-self: end;
  padding: 6px 16px 5px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-family: var(--ko);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.fp-read:hover { background: var(--t); color: var(--c); }

@media (max-width: 680px) {
  .ruler, .folders { --tw: 54vw; }
  .ruler span { font-size: 11px; padding-left: 4px; }
  .ruler b { display: none; }
  .ruler span::before { content: "'"; }
  .ftab-date { display: none; }
  .fpanel { grid-template-columns: 1fr auto; grid-template-areas: "sum sum" "no date" "tags read"; }
}
@media (prefers-reduced-motion: reduce) {
  .fbody, .fpanel { transition: none; }
}


/* ── Super, today's information ── */
.sun-track i::after { right: auto; left: calc(var(--p, 0) * 100% - 9px); transition: left .6s cubic-bezier(.2, .7, .1, 1); }
.bars[data-wx-bars] { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.bars[data-wx-bars] .bar-n { font-size: 14px; }
.bars[data-wx-bars] .bar-y { font-size: 11px; }
.wx-list li { display: flex; align-items: center; gap: 14px; padding: 7px 0; font-family: var(--ko); font-size: clamp(19px, 1.9vw, 24px); letter-spacing: -.02em; }
.wx-ico { background: rgba(0, 0, 0, .16); color: inherit; font-family: var(--font); font-size: 18px; font-weight: 600; }
.w-feat .feat-name { margin-top: 18px; }
.feat-desc { font-family: var(--ko); }
.wk-art { position: relative; color: var(--yellow); }
.wx-glyph { width: 38%; height: auto; }
.wk-rain { position: absolute; right: 14px; bottom: 12px; font-family: var(--ko); font-size: 13px; color: rgba(255, 255, 255, .7); }
.w-clock .clock-big { margin-top: 18px; font-size: clamp(64px, 7vw, 104px); font-weight: 500; font-stretch: 92%; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.w-clock .clock-sub { margin-top: 10px; font-family: var(--ko); font-size: 14px; }
.pill-dot svg { width: 24px; height: 24px; }
div.w-pill:hover { transform: none; }

/* news card */
.w-news { display: flex; flex-direction: column; }
.news-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.news-when { font-family: var(--ko); font-size: 12px; opacity: .6; }
.news-list { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: news; }
.news-list li { counter-increment: news; border-top: 1.5px solid currentColor; }
.news-list li:first-child { border-top: 0; }
.news-list a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 8px; padding: 12px 0; }
.news-list a::before { content: counter(news, decimal-leading-zero); grid-row: 1 / 3; font-size: 13px; font-weight: 600; padding-top: 2px; font-variant-numeric: tabular-nums; }
.news-title { font-family: var(--ko); font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-family: var(--ko); font-size: 12px; opacity: .6; }
.news-list a:hover .news-title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.news-empty { font-family: var(--ko); font-size: 15px; padding: 8px 0 4px; opacity: .7; }
.news-credit { margin-top: 12px; font-family: var(--ko); font-size: 11px; opacity: .5; }
.w-pill--lav { font-size: clamp(16px, 1.5vw, 20px); }

/* shared card header */
.music-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.music-state { font-family: var(--ko); font-size: 12px; opacity: .65; }

/* music */
.w-music { display: flex; flex-direction: column; }
.music-now { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.music-art { flex: none; width: 88px; height: 88px; border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, .18); }
.music-art img { width: 100%; height: 100%; object-fit: cover; }
.music-text { min-width: 0; }
.music-title { font-family: var(--ko); font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.music-artist { margin-top: 4px; font-family: var(--ko); font-size: 14px; opacity: .7; }
a.music-now:hover .music-title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.music-recent { list-style: none; margin: 18px 0 0; padding: 0; }
.music-recent li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1.5px solid currentColor; font-family: var(--ko); font-size: 13px; }
.mr-title { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-artist { flex: none; max-width: 45%; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* commits */
.commits-num, .ai-num { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.commits-num strong, .ai-num strong { font-size: clamp(52px, 5.4vw, 76px); font-weight: 500; font-stretch: 92%; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.commits-num span, .ai-num span { font-family: var(--ko); font-size: 14px; opacity: .7; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); grid-template-columns: repeat(var(--cols, 12), 1fr); gap: 3px; margin-top: 20px; }
.heat i { aspect-ratio: 1; border-radius: 2px; background: currentColor; opacity: calc(.1 + var(--l, 0) * .225); }
.heat i.off { opacity: 0; }
.heat-err { grid-column: 1 / -1; grid-row: 1 / -1; font-family: var(--ko); font-size: 13px; opacity: .7; }
.commits-last { margin-top: 14px; font-family: var(--ko); font-size: 13px; opacity: .75; }
.commits-last a { text-decoration: underline; text-underline-offset: 2px; }

/* AI usage */
.ai-tools { list-style: none; margin: 18px 0 0; padding: 0; }
.ai-tools li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; font-family: var(--ko); font-size: 14px; }
.ai-name { font-weight: 600; white-space: nowrap; }
.ai-bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, currentColor 18%, transparent); overflow: hidden; }
.ai-bar i { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: 4px; background: currentColor; }
.ai-val { font-variant-numeric: tabular-nums; opacity: .8; }
.ai-updated { margin-top: 12px; font-family: var(--ko); font-size: 12px; opacity: .6; }

.big-more { margin-top: 10px; font-family: var(--ko); font-size: 12px; opacity: .75; }

/* Work: the menu stays at the top and the fan fills the rest of the screen, so the first scroll already turns it */
.p-work { --top-h: 79px; }
.p-work .top { position: sticky; top: 0; z-index: 300; }
/* no bar behind the menu: the fan runs up under the pills, which float on frosted glass */
.p-work .top { pointer-events: none; }
.p-work .top .pills { pointer-events: auto; }
.p-work .deck-stage { top: var(--top-h); height: calc(100vh - var(--top-h)); height: calc(100svh - var(--top-h)); }

/* Work: scrolling stops on each card (one card per gesture); the snap points are placed by nav.js */
/* CSS snapping only for touch; on desktop the wheel/keys are handled in nav.js and the two would fight */
/* (touch: swipes are handled in nav.js, so no CSS snapping anywhere) */
.deck-snaps span {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  top: var(--y, 0);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: var(--top-h, 0px);
  pointer-events: none;
}
.p-work .foot { scroll-snap-align: end; }

/* ── Super: a light, Spotlight-like page ── */
.p-super .foot { display: none; }
.p-super .main { padding-top: 0; padding-bottom: 0; }
.p-super .top { z-index: 300; }

/* soft pastel light pooling at the top; colors follow Minseong's clock */
.sc-glow { display: none; }
.p-super .sc-glow {
  --g1: #B9B5F7; --g2: #CFE2FB; --g3: #F6C9DA; --g4: #FBE3D2;
  display: block; position: fixed; inset: 0 0 auto; height: 75vh; z-index: 0; pointer-events: none; overflow: hidden;
}
.sc-glow[data-phase="dawn"] { --g1: #FFD9A8; --g2: #FBE7B5; --g3: #F8C6D2; --g4: #D9D2FA; }
.sc-glow[data-phase="day"] { --g1: #B7D7FB; --g2: #CDEFF2; --g3: #D9D4FA; --g4: #E6F6CF; }
.sc-glow[data-phase="evening"] { --g1: #C9B6F5; --g2: #F9C7C1; --g3: #F6C9DA; --g4: #FCDCC0; }
.sc-glow[data-phase="night"] { --g1: #B9B5F7; --g2: #C6D6FA; --g3: #E7C8F2; --g4: #CFEDE6; }
.sc-glow i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .7; will-change: transform; transition: background 2s; }
.sc-glow i:nth-child(1) { left: -10%; top: -30%; width: 55vw; height: 60vh; background: var(--g1); animation: sc-drift-a 18s ease-in-out infinite alternate; }
.sc-glow i:nth-child(2) { left: 8%; top: 5%; width: 40vw; height: 40vh; background: var(--g2); opacity: .8; animation: sc-drift-b 22s ease-in-out infinite alternate; }
.sc-glow i:nth-child(3) { right: -12%; top: -20%; width: 50vw; height: 65vh; background: var(--g3); animation: sc-drift-c 20s ease-in-out infinite alternate; }
.sc-glow i:nth-child(4) { left: 35%; top: -35%; width: 35vw; height: 45vh; background: var(--g4); opacity: .7; animation: sc-drift-b 26s ease-in-out infinite alternate-reverse; }
.sc-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 35%, var(--bg) 100%); }
@keyframes sc-drift-a { to { transform: translate3d(6vw, 4vh, 0) scale(1.1); } }
@keyframes sc-drift-b { to { transform: translate3d(10vw, -4vh, 0) scale(1.15); } }
@keyframes sc-drift-c { to { transform: translate3d(-8vw, 6vh, 0) scale(.92); } }

.sc {
  --card: rgba(255, 255, 255, .72);
  --line: rgba(20, 20, 20, .08);
  --accent: #5B5BEA;
  --soft: rgba(20, 20, 20, .05);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  margin: 0 auto;
  font-family: var(--ko);
}
/* empty: the field floats in the light; once talking, it docks at the bottom */
.sc-dock { position: sticky; bottom: 0; z-index: 3; padding: 16px 0 max(18px, env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(244, 244, 246, 0), var(--bg) 24px); }
.sc.is-empty .sc-dock { margin: clamp(80px, 22vh, 220px) 0 auto; background: none; }
.sc.is-empty .sc-log { display: none; }
.sc-head { text-align: center; }
.sc-title { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-size: clamp(44px, 6vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.sc-title-star { width: .62em; height: .62em; color: var(--accent); margin-top: -.08em; }
.sc-title-star svg, .sc-avatar svg, .sc-icon svg { width: 100%; height: 100%; fill: currentColor; }
.sc-date { margin-top: 14px; font-size: 16px; color: rgba(20, 20, 20, .8); }

/* the search field */
.sc-form {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(20, 20, 20, .04), 0 10px 30px -8px rgba(80, 70, 140, .25), 0 0 60px 10px rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  transition: box-shadow .25s;
}
.sc-form:focus-within { box-shadow: 0 0 0 1px rgba(120, 100, 220, .25), 0 0 0 5px rgba(150, 130, 240, .12), 0 14px 34px -10px rgba(80, 70, 140, .3), 0 0 60px 10px rgba(255, 255, 255, .6); }
.sc-form-icon { width: 22px; height: 22px; flex: none; color: rgba(20, 20, 20, .75); }
.sc-input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; color: var(--fg); font: 17px var(--ko); outline: none; }
.sc-input::placeholder { color: rgba(20, 20, 20, .45); }
.sc-send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 11px; background: var(--fg); color: #F4F4F6; cursor: pointer; transition: background .2s, transform .15s; }
.sc-send svg { width: 18px; height: 18px; }
.sc-send:hover { background: var(--accent); }
.sc-send:active { transform: scale(.94); }

.sc-chips { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; padding: 2px 0 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.sc-chips::-webkit-scrollbar { display: none; }
.sc-chip { flex: none; height: 32px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .6); color: var(--fg); font: 500 13px var(--ko); cursor: pointer; transition: background .15s, border-color .15s; }
.sc-chip:hover { background: #fff; border-color: rgba(20, 20, 20, .14); }
.sc.is-busy .sc-chip, .sc.is-busy .sc-send { opacity: .4; pointer-events: none; }

/* results */
.sc-log { flex: 1; list-style: none; margin: 0; padding: 12px 0 8px; }
.sc-block { padding: 22px 0 6px; animation: sc-in .45s cubic-bezier(.2, .7, .1, 1) both; }
.sc-block + .sc-block { border-top: 1px solid var(--line); }
@keyframes sc-in { from { opacity: 0; transform: translateY(8px); } }
.sc-greet { font-size: 28px; font-weight: 700; letter-spacing: -.035em; }
.sc-q { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: rgba(20, 20, 20, .55); }
.sc-q svg { width: 16px; height: 16px; flex: none; }
.sc-thinking { margin-top: 16px; }
.sc-dots { display: inline-flex; gap: 5px; }
.sc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(20, 20, 20, .35); animation: sc-dot 1s ease-in-out infinite; }
.sc-dots i:nth-child(2) { animation-delay: .15s; }
.sc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes sc-dot { 50% { opacity: .3; transform: translateY(-3px); } }

.sc-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.sc-row { animation: sc-in .5s cubic-bezier(.2, .7, .1, 1) both; animation-delay: calc(var(--k, 0) * 110ms); }
.sc-row-main { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.sc-row-main:disabled { cursor: default; }
.sc-row-main:not(:disabled):hover, .sc-row-main[aria-expanded="true"] { background: rgba(255, 255, 255, .7); }
.sc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; padding: 9px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px -4px rgba(20, 20, 20, .35); }
.is-code .sc-icon { background: linear-gradient(160deg, #3A3A3E, #141414); }
.is-music .sc-icon { background: linear-gradient(160deg, #FF9AC8, #B36BFA); }
.is-ai .sc-icon { background: linear-gradient(160deg, #A99BFF, #5B5BEA); padding: 10px; }
.sc-row-text { display: grid; min-width: 0; }
.sc-row-title { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-row-sub { font-size: 14px; color: rgba(20, 20, 20, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-row-value { font-family: var(--font); font-size: clamp(28px, 4vw, 36px); font-weight: 400; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sc-live-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(91, 91, 234, .5); animation: sc-ping 1.6s infinite; }
@keyframes sc-ping { 70% { box-shadow: 0 0 0 7px rgba(91, 91, 234, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 91, 234, 0); } }
.sc-row-detail { padding: 6px 0 10px 52px; animation: sc-in .35s cubic-bezier(.2, .7, .1, 1) both; }
.sc-row.is-loading { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 0; }
.sc-row.is-loading .sc-icon { box-shadow: none; }
.sc-row.is-loading .sc-icon, .sc-row.is-loading .sc-row-text span { background: linear-gradient(90deg, rgba(20, 20, 20, .06), rgba(20, 20, 20, .1), rgba(20, 20, 20, .06)); background-size: 200% 100%; animation: sc-shimmer 1.2s linear infinite; }
.sc-row.is-loading .sc-row-text { gap: 6px; }
.sc-row.is-loading .sc-row-text span { height: 12px; border-radius: 6px; width: 60%; }
.sc-row.is-loading .sc-row-text span + span { width: 35%; }
@keyframes sc-shimmer { to { background-position: -200% 0; } }

/* answers */
.sc-answer { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.sc-avatar { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.sc-text { font-size: 17px; line-height: 1.65; letter-spacing: -.01em; word-break: keep-all; }
.sc-extra { margin-top: 14px; animation: sc-in .45s cubic-bezier(.2, .7, .1, 1) both; }

/* cards */
.sc-card { padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px var(--line), 0 12px 28px -14px rgba(60, 50, 120, .22); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 15px; line-height: 1.5; }
.sc-card a { color: inherit; }
.sc-strong { display: block; font-weight: 600; }
.sc-mute { color: rgba(20, 20, 20, .5); }
.sc-foot { margin-top: 12px; font-size: 12px; color: rgba(20, 20, 20, .45); }
.sc-foot a { text-decoration: underline; text-underline-offset: 2px; }
.sc-card--err p { color: rgba(20, 20, 20, .55); }
.sc-profile { display: flex; align-items: center; gap: 16px; }
.sc-profile img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.sc-profile .sc-mute { margin-top: 3px; font-size: 13px; }
.sc-list ul, .sc-music ul, .sc-ai ul, .sc-news ol, .sc-help ol { list-style: none; margin: 0; padding: 0; }
.sc-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sc-list li:first-child { padding-top: 0; }
.sc-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.sc-links { display: grid; padding: 4px 18px; }
.sc-links a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); transition: padding .2s; }
.sc-links a:last-child { border-bottom: 0; }
.sc-links a:hover { padding-left: 6px; }
.sc-help ol { display: grid; gap: 14px; counter-reset: h; }
.sc-help li { display: grid; grid-template-columns: 26px 1fr; counter-increment: h; }
.sc-help li::before { content: counter(h); grid-row: span 2; font-family: var(--font); font-weight: 600; color: var(--accent); }
.sc-help .sc-mute { margin-top: 2px; font-size: 14px; }
.sc-cta { display: inline-flex; align-items: center; height: 38px; margin-top: 18px; padding: 0 18px; border-radius: 999px; background: var(--fg); color: #F4F4F6 !important; font-size: 14px; font-weight: 600; transition: background .2s; }
.sc-cta:hover { background: var(--accent); }
.sc-news li + li { border-top: 1px solid var(--line); }
.sc-news a { display: grid; gap: 3px; padding: 10px 0; }
.sc-news li:first-child a { padding-top: 0; }
.sc-news-title { font-weight: 600; line-height: 1.4; }
.sc-news .sc-mute { font-size: 12px; }
.sc-news a:hover .sc-news-title { text-decoration: underline; text-underline-offset: 3px; }
.sc-music-now { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; }
.sc-music-art { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--soft); }
.sc-music-art img { width: 100%; height: 100%; object-fit: cover; }
.sc-music-now .sc-mute { display: block; font-size: 13px; }
.sc-badge { padding: 4px 10px; border-radius: 999px; background: var(--soft); font-size: 12px; color: rgba(20, 20, 20, .55); white-space: nowrap; }
.sc-badge.is-live { background: var(--accent); color: #F4F4F6; }
.sc-music ul { margin-top: 12px; border-top: 1px solid var(--line); }
.sc-music li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0 0; font-size: 14px; }
.sc-big { display: flex; align-items: baseline; gap: 8px; font-family: var(--font); font-size: 36px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.sc-big span { font-family: var(--ko); font-size: 14px; font-weight: 400; letter-spacing: 0; color: rgba(20, 20, 20, .5); }
.sc-heat { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-template-columns: repeat(var(--cols), 1fr); gap: 3px; margin-top: 14px; }
.sc-heat i { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--accent) calc(var(--l, 0) * 25%), rgba(20, 20, 20, .06)); }
.sc-heat i.off { background: none; }
.sc-ai ul { display: grid; gap: 10px; margin-top: 14px; }
.sc-ai li { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.sc-bar { height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.sc-bar i { display: block; width: calc(var(--p) * 1%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #A99BFF, #5B5BEA); }
.sc-timeline { list-style: none; margin: 0; padding: 0; }
.sc-timeline li { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sc-timeline li:first-child { padding-top: 0; }
.sc-timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.sc-timeline time { font-family: var(--font); font-variant-numeric: tabular-nums; color: rgba(20, 20, 20, .45); }
.sc-what { display: flex; flex-wrap: wrap; column-gap: 8px; min-width: 0; }
.sc-what > span:first-child { font-weight: 500; overflow-wrap: anywhere; }
.sc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 80px; }
.sc-week span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.sc-week i { width: 100%; max-width: 26px; height: calc(var(--h) * .56px); border-radius: 5px; background: rgba(20, 20, 20, .1); }
.sc-week .is-today i { background: linear-gradient(180deg, #A99BFF, #5B5BEA); }
.sc-week em { font-style: normal; font-size: 11px; color: rgba(20, 20, 20, .45); }
.sc-week .is-today em { color: var(--fg); font-weight: 600; }
.sc-works { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.sc-works::-webkit-scrollbar { display: none; }
.sc-work { flex: none; display: flex; flex-direction: column; gap: 3px; width: 180px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; font: inherit; }
.sc-work-logo { display: grid; place-items: center; height: 112px; margin-bottom: 8px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 22px -14px rgba(60, 50, 120, .25); font-weight: 700; transition: transform .3s cubic-bezier(.2, .7, .1, 1); }
.sc-work-logo img { width: calc(42px * var(--tw, 2)); max-width: 100%; max-height: 84px; object-fit: contain; }
.sc-work:hover .sc-work-logo { transform: translateY(-3px); }
.sc-work-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-work-label { font-size: 12px; color: rgba(20, 20, 20, .5); }
.sc-note { margin-top: 40px; font-size: 12px; color: rgba(20, 20, 20, .4); text-align: center; }
.sc-chip:focus-visible, .sc-send:focus-visible, .sc-work:focus-visible, .sc-links a:focus-visible, .sc-row-main:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
@media (max-width: 640px) {
  .sc { padding-top: 40px; }
  .sc-greet { font-size: 24px; }
  .sc-text { font-size: 16px; }
  .sc-row-detail { padding-left: 0; }
  .sc-work { width: 156px; }
  .sc-work-logo { height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-glow i, .sc-dots i, .sc-live-dot, .sc-row.is-loading * { animation: none; }
}

/* the assistant's mark: a soft iridescent star in the colors of the light above, not a flat red */
@property --sc-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.sc-avatar {
  width: 22px; height: 22px; margin-top: 3px;
  background: conic-gradient(from var(--sc-a), #7B61FF, #3D9BFF, #3FD3B8, #FF6FB1, #FF9F4A, #7B61FF);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.5 5.6 4.9 10 10.5 10.5-5.6.5-10 4.9-10.5 10.5C11.5 16.9 7.1 12.5 1.5 12 7.1 11.5 11.5 7.1 12 1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.5 5.6 4.9 10 10.5 10.5-5.6.5-10 4.9-10.5 10.5C11.5 16.9 7.1 12.5 1.5 12 7.1 11.5 11.5 7.1 12 1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: sc-hue 6s linear infinite;
}
.sc-avatar svg { display: none; }
@keyframes sc-hue { to { --sc-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .sc-avatar { animation: none; } }

/* ── chat bubbles ── */
.sc-block { display: grid; gap: 14px; padding: 14px 0; }
.sc-block + .sc-block { border-top: 0; }
.sc-me {
  justify-self: end; max-width: 78%;
  padding: 11px 17px; border-radius: 22px 22px 6px 22px;
  background: #141414; color: #F4F4F6;
  font-size: 16px; line-height: 1.5; word-break: keep-all;
  box-shadow: 0 10px 24px -14px rgba(20, 20, 20, .5);
  animation: sc-in .35s cubic-bezier(.2, .7, .1, 1) both;
}
.sc-answer, .sc-thinking { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: start; margin-top: 0; }
.sc-answer .sc-avatar, .sc-thinking .sc-avatar { margin: 11px 0 0; }
.sc-body { min-width: 0; display: grid; gap: 10px; justify-items: start; }
.sc-bubble {
  max-width: 100%;
  padding: 12px 17px; border-radius: 6px 22px 22px 22px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(20, 20, 20, .05), 0 12px 28px -16px rgba(60, 50, 120, .3);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.sc-text.sc-bubble { font-size: 16px; line-height: 1.6; }
.sc-text.sc-bubble:empty { display: none; }
.sc-thinking .sc-bubble { padding: 14px 18px; }
.sc-extra { margin-top: 0; width: 100%; }
.sc-bubble--rows { width: 100%; padding: 6px 12px; justify-items: stretch; }
.sc-bubble--rows .sc-rows { margin: 0; }
.sc-bubble--rows .sc-row-main { margin: 0; width: 100%; }
.sc-bubble--rows .sc-row-detail { padding: 0 0 10px; }
@media (max-width: 640px) { .sc-me { max-width: 86%; } }
/* no avatar: the bubbles speak for themselves */
.sc-answer .sc-avatar, .sc-thinking .sc-avatar { display: none; }
.sc-answer, .sc-thinking { grid-template-columns: minmax(0, 1fr); }

/* app icons */
.sc-row-main .sc-icon { padding: 0; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px rgba(20, 20, 20, .06), 0 4px 10px -5px rgba(20, 20, 20, .3); }
.sc-row-main .sc-icon svg { width: 100%; height: 100%; fill: initial; }
.is-code .sc-row-main .sc-icon, .sc-row.is-code .sc-icon { background: #181717; padding: 8px; }
.sc-row.is-music .sc-icon { background: #fff; padding: 0; }
.sc-row.is-ai .sc-icon { background: #D97757; padding: 8px; }

/* Apple Music playlist embed */
.sc-playlist { width: 100%; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(20, 20, 20, .06), 0 12px 28px -16px rgba(60, 50, 120, .3); }
.sc-playlist iframe { display: block; width: 100%; height: 450px; border: 0; background: transparent; }
@media (max-width: 640px) { .sc-playlist iframe { height: 420px; } }

.sc-extra { display: grid; gap: 10px; }
.sc-last .sc-music-art svg { display: block; width: 100%; height: 100%; }
.sc-last-label { display: block; font-size: 12px; margin-bottom: 1px; }

/* own playlist view */
.sc-playlist:not(.sc-playlist--embed) { padding: 8px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.sc-pl-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px; border-radius: 12px; color: inherit; transition: background .15s; }
.sc-pl-head:hover { background: rgba(20, 20, 20, .04); }
.sc-pl-cover { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 6px 16px -8px rgba(20, 20, 20, .4); }
.sc-pl-cover img, .sc-pl-cover svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-pl-meta { display: grid; gap: 2px; min-width: 0; }
.sc-pl-name { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.sc-pl-sub { font-size: 13px; color: rgba(20, 20, 20, .5); }
.sc-pl-open { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; opacity: .9; }
.sc-pl-open svg { display: block; width: 100%; height: 100%; }
.sc-pl-list { list-style: none; margin: 4px 0 0; padding: 0; }
.sc-pl-list a { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; color: inherit; transition: background .15s; }
.sc-pl-list a:hover { background: rgba(20, 20, 20, .04); }
.sc-pl-list li + li a { box-shadow: 0 -1px 0 rgba(20, 20, 20, .05); }
.sc-pl-n { font-family: var(--font); font-size: 13px; color: rgba(20, 20, 20, .4); text-align: right; font-variant-numeric: tabular-nums; }
.sc-pl-art { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; background: rgba(20, 20, 20, .06); }
.sc-pl-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-pl-text { display: grid; min-width: 0; }
.sc-pl-title { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-pl-artist { font-size: 13px; color: rgba(20, 20, 20, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-pl-time { font-family: var(--font); font-size: 13px; color: rgba(20, 20, 20, .4); font-variant-numeric: tabular-nums; }
.sc-pl-more { display: block; width: 100%; margin-top: 4px; padding: 11px; border: 0; border-radius: 10px; background: rgba(20, 20, 20, .04); color: var(--fg); font: 600 14px var(--ko); cursor: pointer; transition: background .15s; }
.sc-pl-more:hover { background: rgba(20, 20, 20, .08); }
@media (max-width: 640px) { .sc-pl-n { display: none; } .sc-pl-list a { grid-template-columns: 40px minmax(0, 1fr) auto; } }

/* ── floating menu: the outlined pills stay (they're the identity), each on its own frosted glass, pinned to the top on every tab ── */
.top { position: sticky; top: 0; z-index: 300; padding-top: 16px; padding-bottom: 16px; pointer-events: none; }
.pills { pointer-events: auto; width: fit-content; max-width: 100%; margin: 0 auto; }
.pill:not([aria-current="page"]) {
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
}
.pill { box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .35); }
.pill:not([aria-current="page"]):hover { background: var(--fg); color: var(--bg); }

/* phones: no backdrop blur on the pinned menu (it flickers on iOS while scrolling); a solid tint instead */
@media (pointer: coarse) {
  .pill:not([aria-current="page"]) { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--bg) 88%, transparent); }
}

/* phones: the Work stage is driven by swipes in nav.js, not by native scrolling */
@media (pointer: coarse) { .p-work .deck-wrap, .p-work .deck-stage { touch-action: none; } html.snap-y, html.snap-y body { overscroll-behavior: none; } }

/* the name block keeps one height for every piece, so switching cards never shifts the layout
   (on phones a changing height moved the whole fan up and down) */
.deck-title.has-typo { height: calc(var(--k) * .86); display: flex; align-items: center; }
.deck-title.has-typo img { max-height: 100%; width: auto; max-width: min(100%, calc(var(--k) * var(--tw, 2))); object-fit: contain; object-position: left center; }
.deck-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Work: warm paper instead of flat white, with a fine grain under the content (the artwork stays clean) */
.p-work { --bg: #F5F3EE; background: var(--bg); }
.p-work::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.42  0 0 0 0 0.38  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Work: a row of panes standing in space, seen from the side (after unveil.fr).
   The row runs from bottom-left to top-right; scrolling slides it along so the next piece comes forward. ── */
.p-work { --bg: #F4F4F4; background: var(--bg); }
.p-work::before { display: none; }
.p-work .deck-stage { display: block; padding: 0; perspective: 2200px; perspective-origin: 40% 40%; }
.p-work .deck {
  --w: min(420px, 29vw);
  --gap: min(150px, 10.5vw);
  perspective: none; transform-style: preserve-3d;
  transform: translate3d(-2vw, 4vh, 0) rotateX(-10deg) rotateY(-26deg);
}
.p-work .slide {
  left: calc(50% - var(--w) / 2);
  top: calc(50% - var(--w) / var(--ar, 1.6) / 2);
  transform-origin: 50% 50%;
  transform: translate3d(0, 0, calc(var(--o, 0) * var(--gap) * -1));
  opacity: clamp(0, min(calc(8 - var(--o, 0)), calc(1 + var(--o, 0) * 1.1)), 1);
}
.p-work .slide a { border-radius: 1px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 20, 20, .08), -18px 24px 40px -24px rgba(20, 20, 20, .35); }
/* labels: frosted boxes like the reference's menu, bottom-left and bottom-right */
.p-work .deck-info {
  position: fixed; z-index: 1500; left: 16px; bottom: 16px; top: auto;
  width: min(300px, calc(100vw - 32px)); padding: 12px 14px 13px; gap: 0;
  border-radius: 10px; background: rgba(240, 240, 240, .7); border: 1px solid rgba(20, 20, 20, .08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); pointer-events: none;
}
.p-work .deck-now { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title count" "label label"; align-items: center; column-gap: 12px; }
.p-work .deck-count { grid-area: count; position: static; transform: none; align-self: start; font-size: 12px; }
.p-work .deck-title { grid-area: title; margin-top: 0; }
.p-work .deck-title.has-typo { --k: 48px; }
.p-work .deck-label { grid-area: label; margin-top: 8px; font-size: 12px; color: rgba(20, 20, 20, .5); white-space: nowrap; }
@media (max-width: 760px) {
  .p-work .deck-stage { perspective: 1400px; perspective-origin: 40% 45%; }
  .p-work .deck { --w: 48vw; --gap: 20vw; transform: translate3d(-4vw, 4vh, 0) rotateX(-10deg) rotateY(-26deg); }
  .p-work .slide { left: calc(50% - var(--w) / 2); top: calc(50% - var(--w) / var(--ar, 1.6) / 2);
    transform: translate3d(0, 0, calc(var(--o, 0) * var(--gap) * -1)); }
  .p-work .deck-info { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
.p-work .top { z-index: 2000; }
@media (max-width: 760px) { .p-work .deck-info { z-index: 1500; padding-bottom: 12px; } }

/* no name box: the panes speak for themselves (kept in the markup for screen readers) */
.p-work .deck-info { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; }

/* panes are slightly see-through, so the ones behind show; the one you point at turns solid */
.p-work .slide a { background: rgba(255, 255, 255, .25); }
.p-work .slide a img { opacity: .9; transition: opacity .25s; }
.p-work .slide a:hover img, .p-work .slide a:focus-visible img { opacity: 1; }

/* angle like the reference: panes nearly face you, turned a little, and the row climbs steeply to the top right */
.p-work .deck-stage { perspective: 1500px; perspective-origin: 30% 30%; }
.p-work .deck { --w: min(420px, 30vw); --dx: calc(var(--w) * .34); --dy: calc(var(--w) * .30); --dz: calc(var(--w) * .25); transform: translate3d(-14vw, 22vh, 0); }
.p-work .slide { transform: translate3d(calc(var(--o, 0) * var(--dx)), calc(var(--o, 0) * var(--dy) * -1), calc(var(--o, 0) * var(--dz) * -1)) rotateY(-32deg); }
@media (max-width: 760px) {
  .p-work .deck { --w: 56vw; transform: translate3d(-18vw, 20vh, 0); }
  .p-work .slide { transform: translate3d(calc(var(--o, 0) * var(--dx)), calc(var(--o, 0) * var(--dy) * -1), calc(var(--o, 0) * var(--dz) * -1)) rotateY(-32deg); }
}

/* free-scrolling line: it runs off the screen at both ends (bottom left and top right) */
.p-work .slide { opacity: clamp(0, var(--e, 1), 1); }
.p-work .deck { transform: translate3d(-2vw, 6vh, 0); }
@media (max-width: 760px) { .p-work .deck { transform: translate3d(-6vw, 8vh, 0); } }

/* thin glass panes: a hair-thin rim instead of a slab, and the picture melts away toward its lower edge */
.p-work .slide { transform-style: preserve-3d; }
.p-work .slide::after {            /* the right side of the glass, seen at an angle */
  content: ""; position: absolute; pointer-events: none;
  top: 0; bottom: 0; right: 0; width: 14px;
  transform-origin: 100% 50%; transform: rotateY(-90deg);
  background: linear-gradient(180deg, rgba(232, 238, 242, .95), rgba(196, 204, 210, .85) 60%, rgba(220, 226, 230, .5));
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .9), inset -1px 0 0 rgba(120, 130, 140, .35);
  backface-visibility: visible;
}
.p-work .slide a { background: transparent; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .7), 1px 0 0 rgba(120, 130, 135, .35); }
.p-work .slide a img {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, rgba(0, 0, 0, .55) 85%, rgba(0, 0, 0, .25) 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 55%, rgba(0, 0, 0, .55) 85%, rgba(0, 0, 0, .25) 100%);
}
.p-work .slide::before {           /* the top of the glass */
  content: ""; position: absolute; pointer-events: none;
  left: 0; right: 0; top: 0; height: 14px;
  transform-origin: 50% 0; transform: rotateX(-90deg);
  background: linear-gradient(90deg, rgba(236, 241, 244, .95), rgba(205, 212, 218, .85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(120, 130, 140, .3);
}

/* edges continue the picture: the right side shows the image's right-most strip, the top its top strip, a touch darker */
.p-work .slide::after {
  background: linear-gradient(rgba(0, 0, 0, .14), rgba(0, 0, 0, .22)), var(--img, none) right center / var(--w) 100% no-repeat, #cfd5da;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .55);
}
.p-work .slide::before {
  background: linear-gradient(rgba(255, 255, 255, .18), rgba(0, 0, 0, .1)), var(--img, none) center top / 100% calc(var(--w) / var(--ar, 1.6)) no-repeat, #dfe4e8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* hover: the pane slides out to the side of the row, like pulling a card from a file */
@media (hover: hover) and (pointer: fine) {
  .p-work .slide { translate: 0 0; transition: translate .45s cubic-bezier(.2, .7, .1, 1), opacity .2s; }
  .p-work .slide:hover { translate: 46% 0; }
}
/* the 3D row sits behind the list's own box; let pointers fall through to the panes */
.p-work .deck { pointer-events: none; }
.p-work .slide { pointer-events: auto; }

/* frosted glass: the panes let the ones behind through, blurred */
.p-work .slide a { background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.p-work .slide a img { opacity: .9; }
.p-work .slide a:hover img, .p-work .slide a:focus-visible img { opacity: 1; }

/* ── About: one big sentence with little pictures tucked into it, awards as marks with a badge ── */
.ab { position: relative; max-width: 1040px; font-family: var(--ko); }
.ab-face { position: absolute; top: 0; right: 0; width: clamp(96px, 14vw, 180px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(20, 20, 20, .08); }
.ab-kicker { font-size: 13px; color: var(--muted); }
.ab-lead { max-width: 15em; margin-top: 8px; font-size: clamp(30px, 4.4vw, 56px); font-weight: 600; line-height: 1.18; letter-spacing: -.035em; word-break: keep-all; padding-right: clamp(100px, 15vw, 190px); }
.ab-chip { display: inline-block; height: .82em; width: .82em; margin: 0 .12em; vertical-align: -.06em; border-radius: .12em; object-fit: cover; }
.ab-chip--wide { width: 1.4em; }
.ab-h { margin-top: clamp(56px, 8vw, 96px); font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.03em; }
.ab-awards { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 96px); list-style: none; margin: 28px 0 0; padding: 0 0 0 clamp(0px, 8vw, 120px); }
.ab-awards a { position: relative; display: grid; justify-items: center; gap: 18px; color: inherit; }
.ab-mark { display: grid; place-items: center; width: 96px; height: 96px; font-family: var(--font); font-weight: 800; letter-spacing: -.02em; transition: transform .3s cubic-bezier(.2, .7, .1, 1); }
.ab-awards a:hover .ab-mark { transform: translateY(-4px) rotate(-3deg); }
.ab-mark--kosac { background: linear-gradient(160deg, #e9e9e9, #b9b9b9); color: #fff; font-size: 20px; clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.ab-mark--psa { background: #DF301C; color: #fff; font-size: 26px; border-radius: 0 0 48px 48px; }
.ab-badge { position: absolute; top: -8px; right: -18px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #141414; color: #fff; font-family: var(--font); font-size: 13px; font-weight: 700;
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 62%, transparent 63%) , conic-gradient(#000 0 0); }
.ab-name { font-size: 13px; line-height: 1.35; text-align: center; color: rgba(20, 20, 20, .7); }
.ab-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(64px, 9vw, 110px); padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.6; }
.ab-facts dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ab-facts dd { margin: 0; }
.ab-facts a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.ab-facts a:hover { text-decoration-color: var(--fg); }
.ab-sign { margin-top: 48px; font-size: 12px; font-weight: 600; line-height: 1.3; }
@media (max-width: 640px) {
  .ab-face { position: static; width: 88px; margin-bottom: 20px; }
  .ab-lead { padding-right: 0; }
  .ab-awards { padding-left: 0; justify-content: space-around; }
  .ab-facts { grid-template-columns: 1fr; }
}
.ab-lead { max-width: 19em; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.25; }
.ab-chip--logo { border-radius: 50%; object-fit: contain; background: #fff; }
.ab-emoji { display: inline-block; margin: 0 .08em; font-size: .82em; vertical-align: .02em; }
.ab-nw { white-space: nowrap; }
.ab-mark--logo { width: 150px; }
.ab-mark--logo img { width: 100%; height: auto; }
.ab-awards a:hover .ab-mark--logo { transform: translateY(-4px); }
/* English-only text in About uses the Latin face */
.ab-kicker, .ab-h, .ab-name, .ab-facts, .ab-sign { font-family: var(--font); }
/* phones: bigger panes and a steeper, more vertical climb, so the row fills the tall screen instead of slipping off the side */
@media (max-width: 760px) {
  .p-work .deck { --w: 72vw; --dx: calc(var(--w) * .12); --dy: calc(var(--w) * .34); --dz: calc(var(--w) * .26); transform: translate3d(-4vw, 16vh, 0); }
  .p-work .deck-stage { perspective: 1100px; perspective-origin: 40% 30%; }
  .p-work .slide { transform: translate3d(calc(var(--o, 0) * var(--dx)), calc(var(--o, 0) * var(--dy) * -1), calc(var(--o, 0) * var(--dz) * -1)) rotateY(-26deg); }
}
/* no washed-out cards under the menu: panes stay solid and only blink in/out right at the wrap point */
.p-work .slide { opacity: clamp(0, calc(var(--e, 1) * 4 - .2), 1); }
/* no fade on the pictures: every pane shows its whole image */
.p-work .slide a img { -webkit-mask-image: none; mask-image: none; }
/* phones: only two panes trail below; the rest climb on up under the menu to the top edge */
@media (max-width: 760px) { .p-work .deck { --trail: 2; transform: translate3d(-2vw, 22vh, 0); } }

/* ── Work geometry as variables (set on .deck-wrap so the stage and the row both see them).
   The ?tune panel writes these; the defaults below are the live look. ── */
.p-work .deck-wrap { --ry: -32; --kx: .45; --ky: .34; --kz: .25; --sw: 30; --tx: -2; --ty: 6; --pz: 1500; }
@media (max-width: 760px) { .p-work .deck-wrap { --ry: -26; --kx: .12; --ky: .34; --kz: .26; --sw: 72; --tx: -2; --ty: 22; --pz: 1100; } }
.p-work .deck-stage { perspective: calc(var(--pz) * 1px); }
.p-work .deck { --w: min(calc(var(--sw) * 1vw), calc(var(--sw) * 14px)); --dx: calc(var(--w) * var(--kx)); --dy: calc(var(--w) * var(--ky)); --dz: calc(var(--w) * var(--kz)); transform: translate3d(calc(var(--tx) * 1vw), calc(var(--ty) * 1vh), 0); }
.p-work .slide { transform: translate3d(calc(var(--o, 0) * var(--dx)), calc(var(--o, 0) * var(--dy) * -1), calc(var(--o, 0) * var(--dz) * -1)) rotateY(calc(var(--ry) * 1deg)); }
@media (max-width: 760px) { .p-work .deck { --w: calc(var(--sw) * 1vw); } }

/* tune panel (only with ?tune in the address) */
.tune { position: fixed; z-index: 5000; right: 12px; bottom: 12px; width: min(300px, calc(100vw - 24px)); padding: 14px 14px 12px; border-radius: 14px; background: rgba(255, 255, 255, .88); border: 1px solid rgba(20, 20, 20, .1); box-shadow: 0 18px 40px -18px rgba(20, 20, 20, .4); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font: 12px/1.3 var(--ko); color: #141414; }
.tune h3 { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.tune h3 button { border: 0; background: none; font: inherit; cursor: pointer; color: rgba(20, 20, 20, .5); }
.tune label { display: grid; grid-template-columns: 60px 1fr 44px; align-items: center; gap: 8px; padding: 3px 0; }
.tune input[type=range] { width: 100%; accent-color: #141414; }
.tune output { font-family: var(--font); font-variant-numeric: tabular-nums; text-align: right; }
.tune .tune-row { display: flex; gap: 6px; margin-top: 10px; }
.tune .tune-row button { flex: 1; height: 30px; border: 1px solid rgba(20, 20, 20, .15); border-radius: 8px; background: #fff; font: 600 12px var(--ko); cursor: pointer; }
.tune .tune-row button:first-child { background: #141414; color: #fff; border-color: #141414; }
.tune.is-min label, .tune.is-min .tune-row { display: none; }

/* ── Work detail: dark frame, a coloured panel with the name on the left, the pictures on the right ── */
.wm { --wm-bg: #0E0E0E; --wm-c: #E2506F; --wm-ink: #1A0E12; background: var(--wm-bg); color: var(--wm-ink); }
.wm::backdrop { background: rgba(0, 0, 0, .55); }
.wm-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 14px; min-height: 100%; }
.wm-side {
  position: sticky; top: 14px; align-self: start;
  height: calc(100vh - 28px); height: calc(100dvh - 28px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--wm-c); color: var(--wm-ink);
  transition: background .5s;
}
.wm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.wm-kicker { display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.wm-kicker [data-wm-label] { font-family: var(--ko); }
.wm-count { font-variant-numeric: tabular-nums; opacity: .7; }
.wm-count b { font-weight: 700; }
.wm-close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--wm-ink) 12%, transparent); color: inherit; cursor: pointer; transition: background .15s; }
.wm-close:hover { background: color-mix(in srgb, var(--wm-ink) 22%, transparent); }
.wm .wm-title {
  margin: 0; flex: 1;
  font-family: var(--font); font-size: clamp(34px, 4.4vw, 72px); font-weight: 800; font-stretch: 78%;
  line-height: .95; letter-spacing: -.02em; text-transform: uppercase; word-break: keep-all;
}
.wm-title:lang(ko), .wm-title { font-synthesis: none; }
.wm-bottom { display: grid; gap: 20px; }
.wm .wm-credits { border: 0; padding: 0; width: 100%; font-family: var(--font); }
.wm .wm-credits dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; margin: 0; font-size: 13px; line-height: 1.45; }
.wm .wm-credits dt { padding: 0; border: 0; font-size: 13px; opacity: .65; color: inherit; }
.wm .wm-credits dd { padding: 0; border: 0; font-size: 13px; font-weight: 500; }
.wm .wm-credits dd span { display: inline; }
.wm .wm-credits dd span + span::before { content: ", "; }
.wm-nav { display: flex; gap: 6px; }
.wm .wm-btn { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1.5px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background .15s, color .15s; }
.wm .wm-btn:hover { background: var(--wm-ink); color: var(--wm-c); }
.wm-progress { display: none; }
.wm .wm-images { display: flex; flex-direction: column; gap: 12px; padding: 0; }
.wm .wm-images img { width: 100%; height: auto; border-radius: 0; background: #1a1a1a; }
.wm-bar, .wm-ticks { display: none !important; }
@media (max-width: 760px) {
  .wm-inner { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .wm-side { position: relative; top: 0; height: auto; min-height: 62vh; }
  .wm .wm-title { font-size: clamp(34px, 11vw, 56px); }
}
.wm .wm-side { align-items: stretch; }
.wm .wm-nav { justify-self: start; }
.wm .wm-main, .wm .wm-images { margin: 0; padding: 0; }
@media (max-width: 760px) { .wm .wm-side { align-self: stretch; } .wm .wm-inner { align-items: start; } }

/* the piece's typography is the title, large, on its tinted panel */
.wm .wm-title { display: flex; align-items: center; justify-content: center; text-transform: none; }
.wm .wm-title img { width: min(100%, calc(var(--tw, 2) * clamp(120px, 12vw, 200px))); max-height: 46vh; height: auto; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(20, 20, 20, .12)); }
.wm .wm-title .wm-title-text { font-family: var(--ko); font-size: clamp(30px, 3.6vw, 56px); font-weight: 700; line-height: 1.15; }
@media (max-width: 760px) { .wm .wm-title img { width: min(100%, calc(var(--tw, 2) * 110px)); } }

/* detail top row: label and number on one baseline, same size; close button centred on that line */
.wm .wm-top { align-items: center; }
.wm .wm-kicker { align-items: baseline; gap: 10px; font-size: 13px; line-height: 1; letter-spacing: 0; text-transform: none; }
.wm .wm-kicker [data-wm-label] { font-family: var(--ko); font-size: 13px; font-weight: 600; }
.wm .wm-count { font-family: var(--font); font-size: 13px; font-weight: 500; opacity: .55; }
.wm .wm-count b { font-weight: 600; opacity: 1; }
.wm .wm-close { width: 34px; height: 34px; margin: -8px -6px -8px 0; background: transparent; }
.wm .wm-close:hover { background: color-mix(in srgb, var(--wm-ink) 10%, transparent); }
.wm .wm-close { padding: 0; position: static; display: grid; place-items: center; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; flex: none; }
.wm .wm-close svg { display: block; }
.wm .wm-credits dl, .wm .wm-credits dt, .wm .wm-credits dd, .wm .wm-credits dd span { font-family: var(--font); }
.wm .wm-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.wm .wm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* WORK 배경 흰색 */
.p-work { --bg: #fff; background: var(--bg); }

/* ── Work view switcher (3D / Grid / List) + the Grid and List layouts ── */
.wv { position: fixed; z-index: 1600; right: 16px; bottom: 16px; display: flex; gap: 6px; }
.wv .pill { cursor: pointer; font-family: inherit; color: var(--fg); }
.wv .pill[aria-current] { background: var(--fg); color: var(--bg); }
.wl[hidden] { display: none; }
.wl { width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); padding: clamp(40px, 9vh, 96px) clamp(16px, 2.2vw, 32px) 120px; }
.wl-head { font-size: clamp(32px, 4.4vw, 64px) !important; }
@media (min-width: 641px) { .wl[data-layout="list"] .wl-item { font-size: 16px; grid-template-columns: 168px minmax(0, 1.3fr) minmax(0, 1fr) 64px; } }
.wl-head { display: flex; align-items: flex-start; gap: 4px; margin: 0 0 clamp(28px, 5vh, 48px); font-family: var(--font); font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.wl-head sup { font-size: .32em; font-weight: 500; letter-spacing: 0; line-height: 1; margin-top: .15em; }
.wl-item { color: inherit; text-decoration: none; }
.wl-img { display: block; overflow: hidden; background: #EFEFEF; }
.wl-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .1, 1); }
.wl-item:hover .wl-img img { transform: scale(1.04); }

/* grid: two tight columns, the name centred under each picture */
.wl[data-layout="grid"] .wl-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 4px; }
.wl[data-layout="grid"] .wl-img { aspect-ratio: 4 / 3; }
.wl[data-layout="grid"] .wl-title { display: block; margin-top: 12px; padding: 0 12px; font-size: 14px; font-weight: 500; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl[data-layout="grid"] .wl-label, .wl[data-layout="grid"] .wl-no { display: none; }

/* list: thumbnail · name · where it was shown · number */
.wl[data-layout="list"] .wl-items { display: flex; flex-direction: column; gap: 4px; }
.wl[data-layout="list"] .wl-item { display: grid; grid-template-columns: 132px minmax(0, 1.3fr) minmax(0, 1fr) 48px; align-items: center; gap: 24px; padding-right: 4px; font-size: 14px; }
.wl[data-layout="list"] .wl-img { aspect-ratio: 1; }
.wl[data-layout="list"] .wl-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .4s cubic-bezier(.2, .7, .1, 1); }
.wl[data-layout="list"] .wl-label { color: rgba(20, 20, 20, .4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl[data-layout="list"] .wl-no { color: rgba(20, 20, 20, .4); text-align: right; font-variant-numeric: tabular-nums; }
.wl[data-layout="list"] .wl-item:hover .wl-title { transform: translateX(8px); }

@media (max-width: 640px) {
  .wv { top: calc(var(--top-h, 64px) + 2px); bottom: auto; right: 50%; transform: translateX(50%); gap: 4px; }
  .wv .pill { padding: 3px 10px 2px; font-size: 11px; }
  .wl[data-layout="grid"] .wl-items { gap: 24px 3px; }
  .wl[data-layout="grid"] .wl-title { font-size: 12px; margin-top: 8px; }
  .wl[data-layout="list"] .wl-item { grid-template-columns: 76px minmax(0, 1fr) 28px; gap: 14px; }
  .wl[data-layout="list"] .wl-label { display: none; }
}

/* Grid / List: whole pictures, never cropped */
.wl-img { background: none; }
.wl-img img { height: auto; object-fit: initial; }
.wl[data-layout="grid"] .wl-img, .wl[data-layout="list"] .wl-img { aspect-ratio: auto; }
.wl[data-layout="grid"] .wl-items { align-items: start; }

/* "Works(10)" heading: above the grid/list, and floating top-left over the 3D row */
.p-work .wl-head { padding: clamp(40px, 9vh, 96px) 0 0; margin-bottom: 0; }
.wl { padding-top: clamp(28px, 5vh, 48px); }
.p-work .view[data-mode="3d"] .wl-head { position: fixed; z-index: 1500; left: clamp(16px, 2.2vw, 32px); top: calc(var(--top-h, 79px) + 16px); padding: 0; pointer-events: none; }
@media (max-width: 640px) { .p-work .view[data-mode="3d"] .wl-head { top: calc(var(--top-h, 64px) + 44px); } }
.p-work .view:not([data-mode="3d"]) .wl-head { width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); padding-left: clamp(16px, 2.2vw, 32px); padding-right: clamp(16px, 2.2vw, 32px); }

/* ── About entrance ── */
@media (prefers-reduced-motion: no-preference) {
  .ab.is-in .ab-w { display: inline-block; animation: ab-rise .9s cubic-bezier(.2, .7, .1, 1) both; animation-delay: calc(var(--d) * 45ms + 120ms); }
  .ab.is-in .ab-w.ab-nw { white-space: nowrap; }
  .ab.is-in img.ab-chip.ab-w { animation-name: ab-pop; animation-duration: .8s; animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); }
  .ab.is-in .ab-w .ab-chip { animation: ab-pop .8s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--d) * 45ms + 320ms); }
  .ab.is-in .ab-w .ab-emoji { animation: ab-wiggle .9s ease-in-out both; animation-delay: calc(var(--d) * 45ms + 500ms); transform-origin: 50% 80%; }
  .ab.is-in .ab-face { animation: ab-face 1.1s cubic-bezier(.2, .7, .1, 1) both; }
  .ab.is-in .ab-kicker { animation: ab-fade .6s ease both; }
  .ab.is-in .ab-h, .ab.is-in .ab-awards li, .ab.is-in .ab-facts { animation: ab-up .9s cubic-bezier(.2, .7, .1, 1) both; animation-delay: calc(var(--words) * 45ms + 300ms); }
  .ab.is-in .ab-awards li { animation-delay: calc(var(--words) * 45ms + 420ms); }
  .ab.is-in .ab-facts { animation-delay: calc(var(--words) * 45ms + 540ms); }
  .ab.is-in .ab-badge { animation: ab-pop .7s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--words) * 45ms + 800ms); }
  .ab-chip { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
  .ab-chip:hover { transform: rotate(-8deg) scale(1.15); }
}
@keyframes ab-rise { from { opacity: 0; transform: translateY(.6em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ab-pop { from { opacity: 0; transform: scale(.2) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes ab-wiggle { 0%, 100% { transform: none; } 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } }
@keyframes ab-face { from { opacity: 0; transform: scale(.6) rotate(12deg); } to { opacity: 1; transform: none; } }
@keyframes ab-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ab-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* thinner glass */
.p-work .slide::after { width: 6px; }
.p-work .slide::before { height: 6px; }

/* view switcher: plain text under the menu, 3D / Grid / List */
.wv, .wv[class] { position: fixed; z-index: 1600; top: calc(var(--top-h, 79px) - 8px); bottom: auto; left: 50%; right: auto; transform: translateX(-50%); display: flex; align-items: baseline; gap: 8px; font-family: var(--font); font-size: 13px; font-weight: 600; color: rgba(20, 20, 20, .3); }
.wv button { padding: 2px 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; transition: color .15s; }
.wv button:hover, .wv button[aria-current] { color: var(--fg); }
@media (max-width: 640px) { .wv, .wv[class] { top: calc(var(--top-h, 64px) - 6px); font-size: 12px; } }

/* switching views: the heading and the switcher stay put (no fade), and sit in the same place in every view */
.p-work .wl-head { view-transition-name: work-head; }
.p-work .wv { view-transition-name: work-switch; }
::view-transition-group(work-head), ::view-transition-group(work-switch),
::view-transition-new(work-head), ::view-transition-new(work-switch) { animation: none; }
::view-transition-old(work-head), ::view-transition-old(work-switch) { display: none; }
.p-work .view:not([data-mode="3d"]) .wl-head { padding-top: 16px; }
@media (max-width: 640px) { .p-work .view:not([data-mode="3d"]) .wl-head { padding-top: 44px; } }
.wv, .wv[class] { font-size: 17px; gap: 10px; top: calc(var(--top-h, 79px) - 6px); }
@media (max-width: 640px) { .wv, .wv[class] { font-size: 15px; gap: 8px; top: calc(var(--top-h, 64px) - 4px); } }
/* more breathing room around the switcher */
.wv, .wv[class] { top: calc(var(--top-h, 79px) + 6px); }
@media (max-width: 640px) {
  .wv, .wv[class] { top: calc(var(--top-h, 64px) + 4px); }
  .p-work .view[data-mode="3d"] .wl-head { top: calc(var(--top-h, 64px) + 60px); }
  .p-work .view:not([data-mode="3d"]) .wl-head { padding-top: 60px; }
}

/* emoji as pictures (Tossface, toss.im/tossface/copyright), so they look the same on every device */
img.ab-emoji { display: inline-block; width: .9em; height: .9em; margin: 0 .06em; vertical-align: -.1em; font-size: inherit; }

/* opening/closing a work: only the cover morphs, everything else is one quick crossfade */
html.vt-wm .main, html.vt-wm .wl-head, html.vt-wm .wv, html.vt-wm .pill[aria-current="page"] { view-transition-name: none !important; }
html.vt-wm::view-transition-old(root) { animation: wm-root-out .16s ease-in both; }
html.vt-wm::view-transition-new(root) { animation: wm-root-in .28s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes wm-root-out { to { opacity: 0; } }
@keyframes wm-root-in { from { opacity: 0; } }

/* tab switch: the menu changes at once — the tapped pill is filled from the first frame (no blob flying over, no fade) */
.pill[aria-current="page"] { view-transition-name: none; }
/* named only while a tab switch runs: a view-transition-name makes .pills a backdrop root, which kills the pills' glass blur */
html.vt-tab .pills { view-transition-name: pills; }
::view-transition-group(pills), ::view-transition-new(pills) { animation: none; }
::view-transition-old(pills) { display: none; }

/* ── Super, lighter: the glow is one still gradient (no blurred blobs drifting every frame),
   and nothing re-blurs the page behind it (backdrop blur over a moving glow repainted constantly) ── */
.p-super .sc-glow {
  background:
    radial-gradient(45% 55% at 18% 0%, color-mix(in srgb, var(--g1) 75%, transparent), transparent 70%),
    radial-gradient(35% 40% at 32% 22%, color-mix(in srgb, var(--g2) 70%, transparent), transparent 70%),
    radial-gradient(45% 60% at 92% 4%, color-mix(in srgb, var(--g3) 70%, transparent), transparent 70%),
    radial-gradient(30% 40% at 58% 0%, color-mix(in srgb, var(--g4) 65%, transparent), transparent 70%);
}
.p-super .sc-glow i { display: none; }
.p-super .sc-form, .p-super .sc-card, .p-super .sc-bubble, .p-super .sc-playlist { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.p-super .sc-bubble, .p-super .sc-playlist:not(.sc-playlist--embed) { background: rgba(255, 255, 255, .92); }
.p-super .sc-card { background: rgba(255, 255, 255, .9); }
.p-super .sc-glow {
  background:
    radial-gradient(50% 75% at 15% 5%, var(--g1), transparent 72%),
    radial-gradient(40% 55% at 35% 30%, color-mix(in srgb, var(--g2) 85%, transparent), transparent 72%),
    radial-gradient(50% 80% at 90% 10%, var(--g3), transparent 72%),
    radial-gradient(35% 55% at 60% 0%, color-mix(in srgb, var(--g4) 85%, transparent), transparent 72%);
  opacity: .85;
}

/* phones get the frosted menu too (own compositing layer so it doesn't flicker while scrolling) */
@media (pointer: coarse) {
  .pill:not([aria-current="page"]) { -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); background: color-mix(in srgb, var(--bg) 62%, transparent); transform: translateZ(0); }
}

/* ── Notes entrance ── */
.notes-title { overflow: clip; padding-bottom: .04em; }
.nt-l { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .is-in .nt-l { animation: nt-rise 1s cubic-bezier(.2, .8, .1, 1) both; animation-delay: calc(var(--k) * 60ms + 80ms); }
  .is-in .crumb { animation: ab-fade .6s ease both; }
  .is-in .ruler::before { transform-origin: 0 50%; animation: nt-draw 1.1s cubic-bezier(.6, 0, .1, 1) .3s both; }
  .is-in .ruler span { animation: ab-up .6s cubic-bezier(.2, .7, .1, 1) both; animation-delay: calc(var(--k, 0) * 90ms + 500ms); }
  .is-in .folder { animation: nt-folder .9s cubic-bezier(.2, .8, .1, 1) both; animation-delay: calc(var(--z) * 55ms + 650ms); }
  .is-in .ftab { animation: nt-fan 1.1s cubic-bezier(.6, 0, .1, 1) both; animation-delay: calc(var(--z) * 55ms + 950ms); }
}
@keyframes nt-rise { from { transform: translateY(105%) rotate(6deg); } to { transform: none; } }
@keyframes nt-draw { from { transform: scaleX(0); } to { transform: none; } }
@keyframes nt-folder { from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nt-fan { from { translate: calc(var(--x) * var(--track) * -1) 0; } to { translate: 0 0; } }

/* Grid / List text in Wanted Sans */
.wl-title, .wl-label, .wl-no { font-family: var(--ko); }
