/* =========================================================
   Yeongju Yang — site stylesheet
   Two surfaces:
   - paper  : painting, text pages (ink soaks into paper)
   - screen : media art pages (pigment glows like light)
   Set on <html data-surface="paper|screen">
   ========================================================= */

:root {
  /* palette — sampled from the paintings */
  --paper: #eceeec;
  --sumi: #16181d;      /* blue-black ink */
  --rose: #c95d74;
  --teal: #3b7f93;
  --mist: #9fc6cf;
  --void: #040506;      /* projection room */

  --f-display: "Unbounded", "IBM Plex Sans KR", system-ui, sans-serif;
  --f-text: "IBM Plex Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;

  /* type scale (1.333) */
  --t-xs: 0.8125rem;   /* 13 */
  --t-sm: 0.9375rem;   /* 15 */
  --t-md: 1.0625rem;   /* 17 */
  --t-lg: 1.375rem;    /* 22 */
  --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-2xl: clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem);
  --t-3xl: clamp(2.75rem, 0.8rem + 8vw, 8.25rem);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

html[data-surface="paper"] {
  --bg: var(--paper);
  --fg: var(--sumi);
  --muted: #586064;
  --line: rgba(22, 24, 29, .16);
  --dot: rgba(22, 24, 29, .10);
  --accent: var(--rose);
}
html[data-surface="screen"] {
  --bg: var(--void);
  --fg: #e4eae9;
  --muted: #8f9a9c;
  --line: rgba(228, 234, 233, .14);
  --dot: rgba(228, 234, 233, .05);
  --accent: var(--mist);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  /* faint registration grid: the paper is also a cutting mat */
  background-image: radial-gradient(circle at center, var(--dot) 0.7px, transparent 1.1px);
  background-size: 28px 28px;
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--f-text);
  font-size: var(--t-md);
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color .7s var(--ease), color .7s var(--ease);
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 300; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--fg); color: var(--bg); padding: 8px 14px;
}
.skip:focus { top: 12px; }

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

/* ---------- ink layer ---------- */
.ink-layer {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: -1;   /* above the page colour, below everything else */
}
html[data-surface="paper"] .ink-layer { mix-blend-mode: multiply; }
html[data-surface="screen"] .ink-layer { mix-blend-mode: screen; }


/* ---------- navigation ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  color: #fff;
  mix-blend-mode: difference;   /* stays legible over paper, screen and images */
}
.brand { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand-en { font-family: var(--f-display); font-weight: 400; font-size: var(--t-sm); letter-spacing: .01em; }
.brand-ko { font-size: var(--t-xs); opacity: .7; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 34px); font-size: var(--t-sm); }
.nav-links a { position: relative; padding: 4px 0; opacity: .78; transition: opacity .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]::before {
  content: ""; position: absolute; left: -11px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: currentColor;
}
.nav-links .ext::after { content: "↗"; font-size: .8em; margin-left: 3px; opacity: .6; }

@media (max-width: 640px) {
  .site-nav { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px var(--gutter); }
  .nav-links { gap: 16px; font-size: var(--t-xs); }
  .nav-links a[aria-current="page"]::before { left: -9px; width: 5px; height: 5px; margin-top: -2.5px; }
  :root { --nav-h: 84px; }
}

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--f-display); font-weight: 300; letter-spacing: -0.025em; line-height: .98; }
.muted { color: var(--muted); }
.page-head { padding-top: calc(var(--nav-h) + clamp(48px, 9vw, 140px)); padding-bottom: clamp(32px, 5vw, 72px); }
.page-head h1 { font-size: var(--t-3xl); }

.text-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .45s var(--ease);
  padding-bottom: 2px;
}
.text-link:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* =========================================================
   HOME
   ========================================================= */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  column-gap: 16px;
  padding-top: var(--nav-h);
  padding-bottom: 40px;
}
.hero-title {
  grid-column: 1 / span 8; grid-row: 1;
  position: relative; z-index: 2;
  font-size: var(--t-3xl);
}
.hero-title span { display: block; }
.hero-title .l2 { padding-left: 1.1em; }
.hero-text { grid-column: 1 / span 6; grid-row: 2; margin-top: 36px; position: relative; z-index: 2; }
.hero-intro {
  font-size: var(--t-lg); line-height: 1.5; font-weight: 300;
  max-width: 34ch; margin: 0;
}
.hero-now {
  display: flex; gap: 14px; align-items: baseline;
  margin: 22px 0 0; max-width: 46ch;
  font-size: var(--t-sm); line-height: 1.5; color: var(--muted);
  text-shadow: 0 0 .5em var(--bg), 0 0 .18em var(--bg);
}
.hero-now span {
  flex: none; color: var(--fg); font-family: var(--f-display); font-size: var(--t-xs);
  padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px;
}
.hero-figure {
  grid-column: 7 / span 6; grid-row: 1 / span 2;
  justify-self: end; margin: 0;
  width: min(100%, 560px);
}
.hero-figure video, .hero-figure img { width: 100%; mix-blend-mode: multiply; }
.hero-figure figcaption { font-size: var(--t-xs); color: var(--muted); margin-top: 8px; text-align: right; }
.hero-hint { grid-column: 1 / -1; grid-row: 3; font-size: var(--t-xs); color: var(--muted); margin-top: 48px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-content: center; padding-top: calc(var(--nav-h) + 20px); }
  .hero-figure { grid-column: 1; grid-row: 1; justify-self: center; width: min(72vw, 400px); margin-bottom: 8px; }
  .hero-title { grid-column: 1; grid-row: 2; }
  .hero-text { grid-column: 1; grid-row: 3; margin-top: 24px; }
  .hero-hint { grid-row: 4; margin-top: 28px; }
}

.statement {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px;
  padding-top: clamp(80px, 12vw, 180px); padding-bottom: clamp(80px, 12vw, 180px);
  border-top: 1px solid var(--line);
}
.statement h2 {
  grid-column: 1 / span 3;
  font-family: var(--f-display); font-size: var(--t-sm); font-weight: 400;
  position: sticky; top: calc(var(--nav-h) + 24px); align-self: start;
}
.statement-body {
  grid-column: 5 / span 7;
  font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem); line-height: 1.75; font-weight: 300;
  max-width: 40em;
}
.statement-body p { margin-bottom: 1.6em; }
.statement-body .lead { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.4; font-weight: 300; margin-bottom: 1.4em; }
@media (max-width: 860px) {
  .statement { grid-template-columns: 1fr; }
  .statement h2 { grid-column: 1; position: static; margin-bottom: 24px; }
  .statement-body { grid-column: 1; }
}

/* entry to the two bodies of work */
.doors { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: min(82vh, 760px); padding: clamp(24px, 3vw, 44px);
  overflow: hidden; isolation: isolate;
}
.door img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  transition: transform 1.4s var(--ease), filter 1.4s var(--ease);
}
.door:hover img { transform: scale(1.035); }
.door--screen { background: var(--void); color: #e4eae9; }
.door--screen img { opacity: .62; }
.door--paper { background: #f4f5f3; color: var(--sumi); }
.door--paper img { object-fit: contain; padding: 12% 10%; mix-blend-mode: multiply; }
.door h3 { font-family: var(--f-display); font-size: var(--t-2xl); line-height: 1; }
.door p { margin: 0; font-size: var(--t-sm); max-width: 32ch; }
.door .door-count { font-size: var(--t-sm); opacity: .75; }
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 70vh; }
}

/* ---------- footer ---------- */
.site-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
}
.site-foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.site-foot .muted { font-size: var(--t-xs); }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.tabs { display: flex; gap: clamp(20px, 4vw, 56px); margin-top: clamp(28px, 4vw, 48px); }
.tab {
  position: relative; display: flex; align-items: baseline; gap: 10px;
  font-family: var(--f-display); font-size: var(--t-xl); font-weight: 300;
  padding-bottom: 14px; opacity: .42; transition: opacity .3s;
}
.tab sup { font-family: var(--f-text); font-size: var(--t-xs); top: -1em; }
.tab:hover { opacity: .75; }
.tab[aria-selected="true"] { opacity: 1; }
.tab svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 12px; overflow: visible; }
.tab svg path {
  fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .8s var(--ease);
}
.tab[aria-selected="true"] svg path { stroke-dashoffset: 0; }

.panel { padding-bottom: clamp(80px, 10vw, 160px); }
.panel[hidden] { display: none; }

/* media list */
.work-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.work-row a {
  display: grid; grid-template-columns: 7rem 1fr minmax(14rem, 22rem); gap: 16px;
  align-items: baseline;
  padding: clamp(22px, 2.6vw, 38px) 0;
  border-top: 1px solid var(--line);
}
.work-row .yr { font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.work-row .ttl {
  font-family: var(--f-display); font-weight: 300; font-size: var(--t-2xl); line-height: 1.02;
  letter-spacing: -0.02em;
  transition: transform .6s var(--ease), color .4s;
}
.work-row .info { font-size: var(--t-sm); color: var(--muted); line-height: 1.5; }
.work-row .info b { display: block; color: var(--fg); font-weight: 400; }
.work-row a:hover .ttl, .work-row a:focus-visible .ttl { transform: translateX(14px); }
.work-row .thumb { display: none; }

@media (max-width: 860px) {
  .work-row a { grid-template-columns: 1fr; gap: 6px; }
  .work-row .thumb { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 14px; }
}
@media (hover: none) {
  .work-row .thumb { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 14px; grid-column: 1 / -1; }
}

/* floating preview (fine pointer only) */
.preview {
  position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none;
  width: clamp(260px, 26vw, 420px); aspect-ratio: 4 / 3;
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path .55s var(--ease);
  will-change: transform;
}
.preview.on { clip-path: inset(0 0 0 0); }
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* painting grid */
/* justified rows: reads left to right, newest first; each item grows by its image ratio */
.paint-grid { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 52px) clamp(16px, 2.4vw, 32px); }
.paint-grid::after { content: ""; flex-grow: 999; }
.paint-item { margin: 0; flex: var(--r) 1 calc(var(--r) * 330px); min-width: 0; }
.paint-item img { aspect-ratio: var(--r); object-fit: cover; }
@media (max-width: 640px) { .paint-item { flex-basis: 100%; } }
.paint-item button { display: block; width: 100%; text-align: left; }
.paint-item img { width: 100%; transition: transform .9s var(--ease); }
.paint-item button:hover img { transform: translateY(-4px); }
.paint-item .cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: var(--t-sm); }
.paint-item .cap span:last-child { color: var(--muted); }

/* lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(236, 238, 236, .97); color: var(--sumi);
}
.lightbox::backdrop { background: rgba(236, 238, 236, .6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; padding: 72px var(--gutter) 12px; min-height: 0; }
.lb-stage img { max-height: calc(100vh - 170px); width: auto; max-width: 100%; mix-blend-mode: multiply; }
.lb-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px var(--gutter) 26px; font-size: var(--t-sm);
}
.lb-bar .lb-title { font-family: var(--f-display); font-weight: 400; }
.lb-ctrl { display: flex; gap: 22px; }
.lb-ctrl button { padding: 6px 2px; }
.lb-close { position: absolute; top: 20px; right: var(--gutter); font-size: var(--t-sm); padding: 6px 2px; }

/* =========================================================
   WORK DETAIL
   ========================================================= */
.work-head { padding-top: calc(var(--nav-h) + clamp(32px, 4vw, 64px)); }
.back { font-size: var(--t-sm); color: var(--muted); display: inline-block; margin-bottom: clamp(24px, 3vw, 40px); }
.back:hover { color: var(--fg); }
.work-head h1 { font-size: clamp(2.5rem, 1rem + 5.4vw, 6.25rem); max-width: 16ch; }
.work-head .sub { font-size: var(--t-lg); font-weight: 300; margin-top: 18px; color: var(--muted); }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px;
  margin: clamp(28px, 3.5vw, 48px) 0 0; padding: 20px 0 0; border-top: 1px solid var(--line);
  font-size: var(--t-sm); line-height: 1.55;
}
.facts dt { color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; }

.work-cover { margin: clamp(36px, 4vw, 64px) 0 0; }
.work-cover img { width: 100%; height: min(86vh, 62vw); object-fit: cover; }

.work-body {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px;
  padding: clamp(64px, 9vw, 140px) 0;
}
.work-body .copy { grid-column: 4 / span 7; font-size: clamp(1.0625rem, .95rem + .4vw, 1.25rem); font-weight: 300; line-height: 1.75; max-width: 38em; }
.work-body .copy em { font-style: italic; }
.work-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 2.2em; font-size: var(--t-md); font-weight: 400; }
@media (max-width: 860px) { .work-body .copy { grid-column: 1 / -1; } }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); }
.gallery figure { margin: 0; }
.gallery .wide { grid-column: 1 / -1; }
.gallery img { width: 100%; }
.gallery figure.small img { max-width: 720px; margin: 0 auto; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

.next-work {
  display: block; margin-top: clamp(80px, 10vw, 160px);
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 100px);
  border-top: 1px solid var(--line);
}
.next-work span { display: block; font-size: var(--t-sm); color: var(--muted); margin-bottom: 14px; }
.next-work strong { font-family: var(--f-display); font-weight: 300; font-size: var(--t-2xl); line-height: 1.05; letter-spacing: -0.02em; display: inline-block; transition: transform .6s var(--ease); }
.next-work:hover strong { transform: translateX(14px); }

/* =========================================================
   CV
   ========================================================= */
.cv-section { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.cv-section h2 { grid-column: 1 / span 3; font-family: var(--f-display); font-size: var(--t-sm); font-weight: 400; }
.cv-list { grid-column: 4 / -1; list-style: none; margin: 0; padding: 0; }
.cv-list li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); line-height: 1.55; }
.cv-list li:last-child { border-bottom: 0; }
.cv-list .yr { color: var(--muted); font-variant-numeric: tabular-nums; }
.cv-list b { font-weight: 500; }
@media (max-width: 760px) {
  .cv-section { grid-template-columns: 1fr; }
  .cv-section h2 { grid-column: 1; margin-bottom: 16px; }
  .cv-list { grid-column: 1; }
  .cv-list li { grid-template-columns: 1fr; gap: 2px; }
}
.cv-intro { max-width: 46em; font-size: var(--t-lg); font-weight: 300; line-height: 1.55; margin-top: 28px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; align-items: end; padding-bottom: clamp(80px, 10vw, 160px); }
.contact-list { grid-column: 1 / span 7; list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list .k { display: block; font-size: var(--t-sm); color: var(--muted); margin-bottom: 6px; }
.contact-list .v { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.0625rem, .9rem + .7vw, 1.375rem); line-height: 1.3; overflow-wrap: anywhere; }
.contact-figure { grid-column: 9 / span 4; margin: 0; }
.contact-figure img { mix-blend-mode: multiply; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact-list, .contact-figure { grid-column: 1; }
  .contact-figure { order: -1; width: 70%; margin-bottom: 24px; }
}

/* =========================================================
   CUSTOM CURSOR (fine pointers only)
   ========================================================= */
.cursor, .cursor-ring { display: none; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [role="tab"] { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }
html.has-cursor .cursor, html.has-cursor .cursor-ring {
  display: block; position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  mix-blend-mode: difference; color: #fff;
}
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .9);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s;
  display: grid; place-items: center;
}
.cursor-ring span { font-size: 11px; letter-spacing: .02em; opacity: 0; transition: opacity .2s; white-space: nowrap; }
html.has-cursor .cursor-ring.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
html.has-cursor .cursor-ring.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(255,255,255,.08); }
.cursor-ring.is-label span { opacity: 1; }
html.has-cursor .cursor-ring.is-down { width: 22px; height: 22px; margin: -11px 0 0 -11px; }

/* =========================================================
   ARCHIVE — Wish Tower
   ========================================================= */
.wish { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 24px) var(--gutter) 48px; position: relative; z-index: 2; }
.wish h1 { font-size: var(--t-2xl); }
.wish img { width: min(240px, 50vw); margin: 32px auto; opacity: .9; mix-blend-mode: screen; }
.wish p { color: var(--muted); font-size: var(--t-sm); }
.wish-form { display: flex; gap: 8px; width: min(520px, 100%); margin: 8px auto 0; }
.wish-form input {
  flex: 1; min-width: 0; padding: 14px 16px; font: inherit; font-size: var(--t-md);
  background: rgba(255,255,255,.06); color: var(--fg); border: 1px solid var(--line); border-radius: 999px;
}
.wish-form input::placeholder { color: var(--muted); }
.wish-form button { padding: 0 22px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: var(--t-sm); }
.wish-status { min-height: 1.6em; margin-top: 12px; font-size: var(--t-xs); color: var(--muted); }
#floating-text-container { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.float-text {
  position: absolute; font-size: var(--t-sm); white-space: nowrap;
  animation: drift 8s ease-in-out infinite alternate, flicker .08s steps(2) infinite alternate;
}
@keyframes drift { to { transform: translate(var(--move-x), var(--move-y)); } }
@keyframes flicker { from { opacity: .16; } to { opacity: .26; } }
@media (prefers-reduced-motion: reduce) { .float-text { animation: none; opacity: .22; } }
.gallery { grid-auto-flow: row dense; }
.gallery .solo { grid-column: 1 / -1; }
.gallery .solo img { width: min(100%, 760px); margin: 0 auto; }

/* text keeps a thin halo of paper so it stays readable when ink runs underneath */
.hero-intro, .statement-body, .work-body .copy, .cv-list, .cv-intro, .contact-list, .facts, .work-row {
  text-shadow: 0 0 .5em var(--bg), 0 0 .18em var(--bg);
}

.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-mouse { display: none; } }

.work-head .note { font-size: var(--t-sm); color: var(--muted); margin: 10px 0 0; }
.cv-note { font-size: var(--t-sm); margin-top: 14px; }
.lb-label { font-size: var(--t-xs); color: var(--muted); margin-left: 10px; }

.paint-item .cap span:last-child { white-space: nowrap; }

/* Media Art is the main body of work: wider door, larger tab */
.doors { grid-template-columns: 2fr 1fr; }
.door--paper h3 { font-size: var(--t-xl); }
.door--screen h3 { font-size: clamp(2.75rem, 1.2rem + 5vw, 5.5rem); }
.tab#tab-media { font-size: var(--t-2xl); }
.tab#tab-painting { font-size: var(--t-lg); }
.tabs { align-items: flex-end; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door--paper { min-height: 50vh; } }
.door--paper img { padding: 16% 12% 34%; }

/* small thumbnails under the main images */
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: clamp(16px, 2vw, 28px); }
.thumb-item { margin: 0; }
.thumb-item button { display: block; width: 100%; }
.thumb-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .85; transition: opacity .3s; }
.thumb-item button:hover img, .thumb-item button:focus-visible img { opacity: 1; }
/* the viewer sits above the custom cursor, so show the normal cursor inside it */
html.has-cursor .lightbox, html.has-cursor .lightbox * { cursor: auto !important; }
html.has-cursor .lightbox button { cursor: pointer !important; }

/* early works: folded at the bottom of Material Works */
.early { margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.early summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 300; font-size: var(--t-lg); }
.early summary::-webkit-details-marker { display: none; }
.early summary::after { content: "+"; font-family: var(--f-text); font-size: var(--t-lg); margin-left: auto; padding-left: 16px; }
.early[open] summary::after { content: "–"; }
.early summary .muted { font-family: var(--f-text); font-size: var(--t-sm); }
.early-text { font-size: var(--t-sm); margin: 0 0 28px; max-width: 52ch; }
.early-grid .paint-item { flex-basis: calc(var(--r) * 200px); }
.early-grid .paint-item .cap { font-size: var(--t-xs); }
