/* ============================================================
   MoMA-inspired · stark white/black · bold grotesque · grid
   studyForest green kept as a single interaction accent
   ============================================================ */

:root {
  --bg:        #ffffff;   /* pure white */
  --panel:     #fafafa;
  --text:      #0a0a0a;   /* near-black */
  --ink:       #000000;   /* headings */
  --muted:     #585858;   /* neutral gray */
  --faint:     #8c8c8c;
  --line:      #e4e4e4;   /* light hairline — quiet row dividers */
  --line-2:    #9a9a9a;   /* link underline — present, not loud */
  --rule:      #111111;   /* strong graphic rule */
  --accent:    #2f8f5b;   /* studyForest green — interaction only */
  --accent-ink:#1e6e43;
  --maxw: 1400px;
  --gutter: clamp(1.5rem, 7vw, 4rem);
  /* Inter carries Latin; Pretendard Variable (loaded via CDN) carries Hangul.
     Inter has no Hangul glyphs, so every Korean run falls through to Pretendard. */
  --font-sans: "Inter", "Pretendard Variable", "Pretendard", -apple-system,
               BlinkMacSystemFont, "Apple SD Gothic Neo", "Helvetica Neue",
               Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;        /* contain the hero staff's full-bleed right edge */
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
/* green text-selection — the page's signature.
   Use a literal color: var() is unreliable inside ::selection. */
::selection { background: #2f8f5b; color: #fff; }
::-moz-selection { background: #2f8f5b; color: #fff; }

/* ---------- shared ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- top inversion band ("shredder") ----------
   a fixed dark zone over the top ~1/5 of the viewport. always fully
   inverted: anything that scrolls up past this line flips to black bg /
   white text. constant — independent of scroll depth. the bottom edge is
   masked so the blade fades softly instead of a hard line.
   sits ABOVE the nav (z 60 > 50) so the banner inverts (stays black); the
   photo is clipped at the nav line (script.js) so it still slides under it.
   pointer-events: none keeps the menu clickable. */
.invert-band {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 200px;          /* between the earlier 220px (too long) and 176px (too short) */
  z-index: 60;
  pointer-events: none;
  backdrop-filter: invert(1);
  -webkit-backdrop-filter: invert(1);
  /* eased fade: small solid cap, then an ease-out tail that approaches 0
     gradually so there's no Mach-band "line" where the gradient ends */
  -webkit-mask-image: linear-gradient(to bottom,
      rgba(0,0,0,1) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,0.93) 22%,
      rgba(0,0,0,0.68) 42%, rgba(0,0,0,0.35) 62%, rgba(0,0,0,0.12) 80%,
      rgba(0,0,0,0.03) 92%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom,
      rgba(0,0,0,1) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,0.93) 22%,
      rgba(0,0,0,0.68) 42%, rgba(0,0,0,0.35) 62%, rgba(0,0,0,0.12) 80%,
      rgba(0,0,0,0.03) 92%, rgba(0,0,0,0) 100%);
}
@media (prefers-reduced-motion: reduce) { .invert-band { display: none; } }

/* labels speak through weight and color, not tracked-out uppercase */
.rail {
  font-size: 0.8rem;
  color: var(--ink);
  font-weight: 700;
}
.rail .num { color: var(--accent); }

/* ---------- navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* solid (no backdrop-filter blur): the top invert-band is the one effect
     worth its compositing cost — the nav's frosted blur was a second
     per-frame backdrop-filter and the main removable source of scroll lag */
  background: var(--bg);
}
/* inner shares the content max-width so the brand lines up with the body's
   left edge and the links with its right edge — nav and content read as one */
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav__links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.nav__links a {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* vertical only — keep .wrap's horizontal gutter so the hero
     lines up with the nav instead of hugging the window edge */
  padding-top: 6rem;
  padding-bottom: 4rem;
}
/* name + a plain 5-line staff running off to the right,
   sized to the name's height (the 5 lines stretch to fill it) */
.hero__namerow { display: flex; align-items: stretch; gap: clamp(1rem, 3vw, 2.6rem); }
.hero__staff {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.07em 0;       /* nudge top/bottom lines inside the glyph height */
  /* break out of the centered .wrap so the staff reaches the window's right edge */
  margin-right: calc(50% - 50vw);
}
.hero__staff i { display: block; height: clamp(3px, 0.5vw, 6px); background: #000; }
.hero__name {
  font-size: clamp(3rem, 13vw, 9.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;   /* Hangul: Pretendard tightens less than Inter Latin */
  margin-left: -0.04em;      /* optical: 이's left side bearing, so ink (not the
                                glyph box) lines up with the lines below */
  color: var(--ink);
}
.hero__aka {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--muted);
}
.hero__role {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: var(--text);
  max-width: 34ch;
}
.hero__meta {
  margin-top: 3.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.hero__meta a { color: var(--ink); border-bottom: 2px solid var(--line-2); padding-bottom: 1px; transition: border-color 0.2s; }
.hero__meta a:hover { border-color: var(--ink); }
.hero__meta a:hover { border-color: var(--accent); }

/* ---------- manifesto: musicking (museum wall-label) ---------- */
.statement { padding: 5.5rem 0; border-top: 2px solid var(--rule); }
.lexicon {
  margin-top: 1.6rem;
  max-width: 760px;
  border-left: 3px solid var(--accent);
  padding-left: clamp(1.2rem, 3vw, 2.4rem);
}
.lexicon__word {
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-left: -0.045em;     /* optical: m's side bearing vs the labels below */
  color: var(--ink);
}
.lexicon__pron {
  display: inline-block;
  margin-left: 0.6em;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  vertical-align: middle;
}
.lex__label {
  margin-top: 1.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-ink);
}
.lex__etym {
  margin-top: 0.5rem;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--muted);
  font-weight: 400;
}
.lex__etym em { font-style: italic; color: var(--text); font-weight: 600; }
.lex__headword {
  margin-top: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}
.lex__gram { font-style: italic; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.lexicon__def {
  margin-top: 0.6rem;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text);
}
.lexicon__by {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}
.lexicon__by .name { color: var(--ink); font-weight: 800; }

/* ---------- section scaffold ---------- */
.section { padding: 4rem 0; border-top: 2px solid var(--rule); }
.section__grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
}
/* pin the sticky head below the inversion band (200px) so the big title
   isn't sliced by the gradient seam */
.section__head { position: sticky; top: 216px; align-self: start; }
.section__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;   /* Hangul titles */
  margin-top: 0.7rem;
  color: var(--ink);
  line-height: 1;
}
/* optical alignment to the rail's ink: each title's first glyph carries a
   different left side bearing (소 0.021em · 이 0.042em · 작 0 · 연 0.031em),
   so the nudge is tuned per section, not shared */
#about   .section__title { margin-left: -0.010em; }
#cv      .section__title { margin-left: -0.031em; }
#works   .section__title { margin-left:  0.010em; }
#contact .section__title { margin-left: -0.021em; }
.section__body { min-width: 0; }
.lede {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 56ch;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.lede + .lede { margin-top: 1.1rem; }
.muted { color: var(--muted); font-weight: 400; }

/* About: reading focus — the paragraph nearest the reading line is
   emphasized, the rest recede. .active is toggled in script.js */
#about .lede { color: var(--faint); transition: color 0.5s ease; max-width: none; }
#about .lede.active { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { #about .lede { transition: none; } }

/* ---------- about: pull-quote + four fields ---------- */
.pullquote {
  margin: 2.8rem 0;
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;  /* mixed Hangul/Latin */
  line-height: 1.22;
  color: var(--ink);
}
.fourfields {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}
.fourfields span {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.fourfields span:not(:last-child)::after {
  content: "/";
  color: var(--faint);
  margin-left: 1.2rem;
  font-weight: 400;
}

/* ---------- about figure ---------- */
/* About: text and portrait sit side by side so the section reads wide,
   not tall. text takes the fluid column; the portrait caps at 340px */
/* pullquote spans full width; the portrait floats right so the first two
   paragraphs wrap beside it and the rest run full-width below it */
.about__body { display: block; }
.about__body::after { content: ""; display: block; clear: both; }
.about__body > .pullquote { margin-bottom: 1.4rem; }
.about__layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
/* portrait floats right of the opening paragraphs, natural aspect */
.figure { float: right; width: 300px; max-width: none; margin: 0.4rem 0 1.2rem 2.5rem; }
/* only the image sits above the band (z61) so it isn't color-inverted; the
   caption stays in flow and inverts like other text. a viewport-locked black
   shade darkens the image top-down to match the band; overflow clips it to
   the image. script.js clips the top at the nav line so it slides under nav. */
.figure__media { position: relative; z-index: 61; overflow: hidden; display: block; }
.figure__shade {
  position: absolute; left: 0; width: 100%;
  pointer-events: none;
  /* same eased curve as the band mask, as actual black (darkens, no invert).
     top + height are locked to the band in script.js */
  background-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,0.93) 22%,
    rgba(0,0,0,0.68) 42%, rgba(0,0,0,0.35) 62%, rgba(0,0,0,0.12) 80%,
    rgba(0,0,0,0.03) 92%, rgba(0,0,0,0) 100%);
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--panel);
  border: 1px solid var(--rule);
}
.figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--faint);
}

/* ---------- definition rows ---------- */
.deflist { border-top: 2px solid var(--rule); }
.def {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.5rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
}
.def__key {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 700;
  padding-top: 0.2rem;
}
.def__val { font-size: 1.05rem; color: var(--text); font-weight: 500; }
.def__val .sub { color: var(--muted); font-size: 0.92rem; font-weight: 400; }
.def__val ul { list-style: none; display: grid; gap: 1.3rem; }

/* name-led CV item: name + right-aligned year on one row, muted
   description below. only two roles of type — name (ink, 600) and
   everything secondary (muted, 0.9rem) — so every row reads as one unit */
.cv-item__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.2rem;
}
.cv-item__name { font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.cv-item__when {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: 0 0 auto;
}
/* reserve room on the right for the year, so a long description wraps
   before it reaches the right-aligned year column instead of running under it */
.cv-item__desc { margin-top: 0.25rem; color: var(--muted); font-size: 0.9rem; font-weight: 400; padding-right: 11rem; }

/* dense blocks (e.g. Collectives) fold into two columns so one long
   list doesn't outweigh the single-item blocks above it */
/* cap each entry's width so the name↔year pair stays tight; the empty
   space to each column's right visually separates the two columns */
.cv-list--two { grid-template-columns: 1fr 1fr; gap: 1.4rem 3rem; }
.cv-list--two > li { max-width: 30rem; }

.inline-tags { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.inline-tags span { font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.inline-tags span:not(:last-child)::after { content: "/"; color: var(--faint); margin-left: 1rem; font-weight: 400; }

/* ---------- works index ---------- */
.index { border-top: 2px solid var(--rule); }
.work {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.work:hover { background: var(--panel); }
.work__no { font-size: 0.85rem; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 0.6rem; }
.work__main { min-width: 0; }
.work__kind {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.work__title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-left: -0.012em;     /* optical: s/d/S side bearing vs the kind label */
  line-height: 1;
  color: var(--ink);
  display: inline;
  /* same as the contact email: a green underline by default that fills up
     into a solid block on hover, revealing the text in white */
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s;
}
.work__title:not(.work__title--menu):hover,
.work__title:not(.work__title--menu):focus-within { background-size: 100% 100%; color: #fff; }

/* studyForest: hover the title to choose Python / Java build */
.work__title--menu { position: relative; display: inline-block; background-image: none; }
.work__trigger {
  cursor: pointer;
  color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s;
}
.work__title--menu:hover .work__trigger,
.work__title--menu:focus-within .work__trigger { background-size: 100% 100%; color: #fff; }
.work__trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.work__launch {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  min-width: 248px;
  background: var(--bg);
  border: 1px solid var(--rule);   /* single hard frame — no internal dividers */
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 30;
}
/* invisible bridge so moving the cursor into the menu doesn't cross a dead gap */
.work__launch::before {
  content: "";
  position: absolute;
  top: -0.7rem; left: 0; right: 0; height: 0.7rem;
}
.work__title--menu:hover .work__launch,
.work__title--menu:focus-within .work__launch {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
/* items separated by whitespace only; a green underline wipes in on hover
   (same accent-line motif as the nav and the work title) */
.work__launch a {
  position: relative;
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.work__launch a::after {
  content: "↗";
  position: absolute;
  right: 1.2rem; top: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.work__launch a:hover::after, .work__launch a:focus-visible::after {
  opacity: 1; transform: translateX(0);
}
.work__launch a > span {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.28s cubic-bezier(.2,.7,.2,1);
}
.work__launch a:hover > span, .work__launch a:focus-visible > span { background-size: 100% 2px; }
.work__launch a:focus-visible { outline: none; }
.work__launch small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 4px;
}
/* museum-label eyebrow inside the launch panel: indent text to match items,
   hairline spans the full panel width as a caption/statement divider */
.work__launch .label-eyebrow {
  padding: 0.15rem 1.2rem 0.5rem;
  margin: 0.2rem 0 0.45rem;
}

.work__desc { margin-top: 0.8rem; color: var(--muted); max-width: 52ch; font-weight: 400; }
.work__year { font-size: 0.85rem; color: var(--muted); text-align: right; padding-top: 0.7rem; font-weight: 600; }
.work__desc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }

/* quiet credit line under the title: course / personal context */
.work__context {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}
/* museum caption spec: medium · materials · dimensions */
.work__spec {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 400;
}

/* shared museum-label eyebrow: a small bold header over a hairline rule,
   echoing the caption/statement divide on a gallery wall label */
.label-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 0.5rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

/* inline glossary term: hover (or focus/tap) reveals a note panel.
   reuses the green underline-wipe + single 1px frame motif */
.gloss {
  position: relative;
  cursor: help;
  color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.28s cubic-bezier(.2,.7,.2,1);
}
.gloss:hover, .gloss:focus-visible { background-size: 100% 2px; }
.gloss:focus-visible { outline: none; }
.gloss__panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.6rem;
  width: max-content;
  max-width: min(360px, 78vw);
  background: var(--bg);
  border: 1px solid var(--rule);   /* single hard frame — no shadow */
  padding: 1.1rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 30;
}
/* invisible bridge so the cursor can travel into the panel without crossing a gap */
.gloss__panel::before {
  content: "";
  position: absolute;
  top: -0.6rem; left: 0; right: 0; height: 0.6rem;
}
.gloss:hover .gloss__panel,
.gloss:focus .gloss__panel,
.gloss:focus-within .gloss__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.work__video {
  display: block;
  margin-top: 1.1rem;
  width: 100%;
  height: auto;
  max-width: 640px;
  background: #000;
  border: 1px solid var(--rule);
}

/* studyForest: description text beside the poster instead of stacked,
   so the entry reads across the page rather than running long */
.work__split {
  display: grid;
  grid-template-columns: minmax(0, 40rem) 320px;
  justify-content: start;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  margin-top: 1rem;
}
.work__copy { min-width: 0; }
.work__split .work__desc { margin-top: 0; max-width: none; }
.work__split .work__desc + .work__desc { margin-top: 0.8rem; }

/* poster / video at natural aspect, pinned to the top of the copy beside them */
.work__poster, .work__media { margin-top: 0; max-width: none; display: block; }
.work__poster-media, .work__video-wrap {
  display: block;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--rule);
  background: #000;
}
.work__poster img, .work__video {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0;
  border: none;
}
.work__poster {
  width: 100%;
  text-decoration: none;
  color: var(--muted);
}
.work__poster-cap {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.work__poster-cap strong { color: var(--ink); font-weight: 700; }
.work__poster:hover .work__poster-cap,
.work__poster:hover .work__poster-cap strong { color: var(--accent); }

/* full-version trigger: quiet text button, green wipe on interaction */
.work__fulllink {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.work__fulllink:hover,
.work__fulllink:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }

/* lightbox: darkened screening room */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox__stage {
  width: 100%;
  max-width: 1100px;
  transform: translateY(8px);
  transition: transform 0.22s ease;
}
.lightbox.open .lightbox__stage { transform: none; }
.lightbox__video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
  border: 1px solid #222;
}
.lightbox__cap {
  margin-top: 1rem;
  color: #c8c8c8;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lightbox__cap .label-eyebrow {
  display: inline-block;
  margin: 0 0.7rem 0 0;
  padding: 0;
  border: 0;
  color: #6f6f6f;
  vertical-align: middle;
}
.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  padding: 0.5rem 0.85rem;
  background: none;
  border: 1px solid #333;
  color: #e8e8e8;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.lightbox__close:hover,
.lightbox__close:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__stage { transition: none; }
}

/* ---------- contact ---------- */
.contact__big {
  font-size: clamp(1.8rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-left: -0.023em;     /* optical: q's round side bearing */
  color: var(--ink);
}
.contact__big a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.25s; }
.contact__big a:hover { background-size: 100% 100%; color: #fff; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 3rem var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav { padding: 0.85rem var(--gutter); }
  .nav__links { gap: 0.9rem; }
  .section__grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .section__head { position: static; }
  .def { grid-template-columns: 1fr; gap: 0.4rem; }
  .cv-list--two { grid-template-columns: 1fr; }
  .cv-list--two > li { max-width: none; }
  .about__body { grid-template-columns: 1fr; }
  .work__split { grid-template-columns: 1fr; }
  .cv-item__desc { padding-right: 0; }
  .figure, .work__poster, .work__media { max-width: 520px; }
  .figure { float: none; width: auto; margin: 1.6rem 0 0; }
  .work { grid-template-columns: 40px 1fr; }
  .work__year { display: none; }
}
