/* Martin Kwon — portfolio */

:root {
  --paper: #ffffff;
  --paper-2: #f2f2f2;
  --ink: #141414;
  --ink-2: #474747;
  --muted: #8a8a8a;
  --title-muted: var(--ink);
  --title-font: var(--serif-display);
  --title-weight: 400;
  --title-case: uppercase;
  --title-track: -0.01em;
  --rule: rgba(20, 20, 20, 0.12);
  --accent: #c8102e;           /* red hover accent */
  --serif-display: 'Libre Baskerville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  --serif: 'Source Serif 4', 'Minion Pro', Georgia, serif;
  --mono: 'IBM Plex Mono', Consolas, 'Courier New', monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1560px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 350;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.28) 100%);
  -webkit-backdrop-filter: saturate(2) blur(28px) brightness(1.04);
  backdrop-filter: saturate(2) blur(28px) brightness(1.04);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(20, 20, 20, 0.06), 0 10px 30px rgba(0, 0, 0, 0.06); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: auto; height: 64px; }
.brand span { font-family: var(--serif-display); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.site-nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; position: relative; padding: 6px 0; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.site-nav a:hover::after { transform: scaleX(1); }

main { display: block; }
section, .project-head, .project-text, .block, .project-nav { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ intro */
.intro {
  padding: clamp(32px, 7vh, 96px) var(--gutter) clamp(32px, 6vh, 72px);
  display: grid; gap: 28px;
}
.intro-name-wrap { position: relative; isolation: isolate; padding: clamp(28px, 5vw, 72px) 0; }
.intro-name {
  position: relative;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(30px, 5.6vw, 92px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.intro-mark {
  position: absolute; z-index: -1;
  top: 50%; left: clamp(120px, 30vw, 520px);
  height: 190%; width: auto; max-height: 560px;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  pointer-events: none; user-select: none;
}
.intro-sub { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 1100px; }
.intro-sub p { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.intro-quote { font-family: var(--serif-display); font-style: italic; color: var(--ink) !important; }
@media (min-width: 900px) { .intro-sub { grid-template-columns: 1fr 1fr; align-items: end; } }

/* ------------------------------------------------------------ sections */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--rule);
}
.section-head-index { margin-top: clamp(48px, 8vw, 110px); }

/* ------------------------------------------------------------ work rows */
/* One project per row: medium image, title and details beside it. */
.features { display: grid; padding: 0 var(--gutter); }
.feature { display: grid; gap: 14px; padding: clamp(20px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--rule); text-decoration: none; min-width: 0; }
.feature:first-child { padding-top: 8px; }
.feature-media { overflow: hidden; width: 100%; }
.feature-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: var(--cover-pos, 50% 50%); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature-media img { transform: scale(1.07); }
.feature-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: baseline; align-content: start; }
.feature-meta h3 { font-family: var(--title-font); font-weight: var(--title-weight); font-size: clamp(22px, 5.4vw, 28px); line-height: 1.1; letter-spacing: var(--title-track); text-transform: var(--title-case); color: var(--title-muted); transition: color .5s ease; }
.feature-meta p { grid-column: 2; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.feature-meta .feature-course { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: start; }

  .feature-meta { padding-top: 4px; }
  .feature-meta h3 { font-size: clamp(26px, 2.3vw, 38px); }
  .feature-meta p { font-size: 17px; }
  .feature:hover .feature-meta h3 { color: var(--ink); }
}

.section-link { text-decoration: none; color: var(--ink-2); }
.section-link:hover { color: var(--ink); }

/* ------------------------------------------------------------ work page (list) */
.work-page { padding-bottom: clamp(64px, 10vw, 140px); }
.work-head { display: grid; gap: 14px; padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(28px, 4vw, 48px); }
.page-title { font-family: var(--serif-display); font-weight: 400; font-size: clamp(40px, 6vw, 96px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.index-head { display: none; }
.index.index-list a { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "thumb title" "thumb program"; column-gap: 16px; padding: 14px 0; }
.index.index-list .row-num { display: none; }
.index.index-list .row-thumb { display: block; width: 112px; height: 75px; object-fit: cover; object-position: var(--cover-pos, 50% 50%); transition: transform .5s ease; }
.index.index-list .row-title { align-self: end; }
.index.index-list .row-program { align-self: start; }
@media (min-width: 900px) {
  .index-head, .index.index-list a { grid-template-columns: 48px 168px minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.1fr) 110px; column-gap: 28px; }
  .index-head {
    display: grid; padding: 0 var(--gutter) 10px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  }
  .index-head span:last-child { text-align: right; }
  .index.index-list a { grid-template-areas: "num thumb title program course term"; padding: 14px 0; }
  .index.index-list .row-num { display: block; }
  .index.index-list .row-thumb { width: 168px; height: 112px; }
  .index.index-list .row-title, .index.index-list .row-program { align-self: center; }
  .index.index-list a:hover .row-thumb { transform: scale(1.04); }
}

/* Draft-only layout switcher */
.draft-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: var(--ink); color: #fff; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.draft-switch span { padding: 0 8px 0 10px; color: #aaa; }
.draft-switch button { border: 0; background: transparent; color: #fff; padding: 8px 12px; border-radius: 999px; cursor: var(--cursor); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.draft-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* ------------------------------------------------------------ index list */
.index { padding: 0 var(--gutter); }
.index li { border-top: 1px solid var(--rule); }
.index li:last-child { border-bottom: 1px solid var(--rule); }
.index a {
  display: grid; align-items: center; gap: 4px 16px;
  grid-template-columns: 36px 1fr 96px;
  grid-template-areas: "num title thumb" "num program thumb";
  padding: 16px 0; text-decoration: none;
  transition: padding .35s ease, color .25s ease;
}
.row-num { grid-area: num; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.row-title { grid-area: title; font-family: var(--title-font); font-weight: var(--title-weight); font-size: clamp(20px, 1.8vw, 28px); line-height: 1.15; text-transform: var(--title-case); letter-spacing: var(--title-track); color: var(--title-muted); transition: color .4s ease; }
.row-program { grid-area: program; color: var(--ink-2); font-size: 15px; }
.row-course, .row-term { display: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.row-thumb { grid-area: thumb; width: 96px; height: 64px; object-fit: cover; }
@media (min-width: 900px) {
  .index a {
    grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1.1fr) 120px;
    grid-template-areas: "num title program course term";
    padding: 22px 0;
  }
  .row-course, .row-term { display: block; }
  .row-term { text-align: right; }
  .row-thumb { display: none; }
}
@media (hover: hover) and (min-width: 900px) {
  .index a:hover .row-title { color: var(--ink); }
  .index a:hover { color: var(--ink); padding-left: 12px; }
}
.preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: 340px; pointer-events: none;
  opacity: 0; transform: translate3d(-9999px, 0, 0);
  transition: opacity .25s ease;
}
.preview.on { opacity: 1; }
.preview img { width: 100%; height: auto; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
@media (hover: none), (max-width: 899px) { .preview { display: none; } }

/* ------------------------------------------------------------ about */
.about { margin-top: clamp(80px, 12vw, 160px); }
.about-grid { display: grid; gap: clamp(32px, 5vw, 72px); padding: 24px var(--gutter) 0; }
.about-title { font-family: var(--serif-display); font-weight: 400; font-size: clamp(32px, 4vw, 56px); line-height: 1; text-transform: uppercase; margin-bottom: 28px; }
.about-statement p { max-width: 62ch; margin-bottom: 1.1em; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.about-photo img { width: 100%; }
.about-photo figcaption, .fig figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } .about-photo { position: sticky; top: calc(var(--header-h) + 24px); } }

.cv { display: grid; gap: 40px; padding: clamp(48px, 7vw, 96px) var(--gutter) 0; }
.cv-col > .eyebrow { display: block; padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.cv-col > .eyebrow:not(:first-child) { margin-top: 40px; }
.cv-list { display: grid; gap: 18px; }
.cv-list > li { display: grid; gap: 2px; font-size: 16px; line-height: 1.45; }
.cv-list strong { font-weight: 500; }
.cv-list span { color: var(--ink-2); }
.cv-list .dates { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cv-list .points { margin-top: 6px; display: grid; gap: 4px; }
.cv-list .points li { font-size: 14.5px; color: var(--ink-2); padding-left: 14px; position: relative; }
.cv-list .points li::before { content: '–'; position: absolute; left: 0; color: var(--muted); }
.cv-note { font-size: 15px; color: var(--ink-2); }
@media (min-width: 900px) { .cv { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }

/* ------------------------------------------------------------ contact */
.contact { margin-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(64px, 10vw, 140px); }
.contact-grid { display: grid; gap: 36px; padding: 28px var(--gutter) 0; }
.contact-main { display: grid; gap: 10px; align-content: start; }
.contact-phone { font-family: var(--serif-display); font-size: clamp(36px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.contact-phone:hover { color: var(--accent); }
.contact-links { display: grid; gap: 0; align-content: start; margin: 28px var(--gutter) 0; max-width: 760px; }
.contact-links li { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.contact-links li:last-child { border-bottom: 1px solid var(--rule); }
.contact-links a, .contact-links li > span:not(.eyebrow) { font-size: clamp(17px, 1.5vw, 20px); overflow-wrap: anywhere; }
.contact-links a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s ease; }
.contact-links a:hover { background-size: 100% 1px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; } }

/* ------------------------------------------------------------ footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 22px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* ------------------------------------------------------------ project page */
.project-hero { padding: clamp(16px, 3vw, 40px) var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
.project-hero .fig-btn { display: block; width: 100%; }
.project-hero img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: var(--cover-pos, 50% 50%); }


.project-head { display: grid; gap: 36px; padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(32px, 4vw, 56px); }
.project-title h1 { font-family: var(--title-font); font-weight: var(--title-weight); font-size: clamp(32px, 6.4vw, 96px); line-height: 1; letter-spacing: var(--title-track); text-transform: var(--title-case); margin-top: 14px; }
.definition { margin-top: 22px; font-family: var(--serif-display); font-style: italic; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 44ch; }
.facts { display: grid; gap: 0; align-self: end; }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { font-size: 16px; line-height: 1.45; }
.project-title h1 { overflow-wrap: break-word; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } .facts > div:last-child { border-bottom: 0; } .facts { border-bottom: 1px solid var(--rule); } }
@media (min-width: 1200px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.project-text { padding: 0 var(--gutter) clamp(56px, 8vw, 120px); display: grid; row-gap: 1.1em; }
.project-text p { max-width: 64ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.65; color: var(--ink-2); }
.project-text p:first-child { color: var(--ink); }

/* Narrative blocks: heading + text, then images. On desktop the text sits in a narrow sticky column. */
.block { padding: 0 var(--gutter); margin-bottom: clamp(20px, 3vw, 36px); }
.block.has-head { margin-top: clamp(48px, 7vw, 112px); }
.block-head { display: grid; gap: 14px; padding: clamp(28px, 4vw, 48px) 0 28px; border-top: 1px solid var(--rule); }
.block-title { font-family: var(--serif-display); font-weight: 400; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; text-transform: uppercase; letter-spacing: 0; max-width: 20ch; }
.block-text { max-width: 46ch; color: var(--ink-2); font-size: 16px; line-height: 1.65; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2.2vw, 32px); align-items: start; }
.fig, .feature, .feature-media, .about-grid > *, .cv-col { min-width: 0; }
.grid-full { gap: clamp(36px, 5vw, 72px); }
@media (min-width: 600px) { .grid-three, .grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 1000px) {
  .project-text, .block { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); column-gap: clamp(40px, 5vw, 96px); }
  .project-text > p { grid-column: 2; }
  .block { display: grid; }
  .block.has-head { border-top: 1px solid var(--rule); padding-top: clamp(32px, 4vw, 56px); }
  .block-head { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: calc(var(--header-h) + 28px); padding: 0; border-top: 0; }
  .block > .grid { grid-column: 2; grid-row: 1; }
  .grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.fig-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: var(--cursor); overflow: hidden; }
.fig img { width: 100%; }
.grid-full .fig img { display: block; width: auto; max-width: 100%; height: auto; max-height: 82vh; margin: 0; }
.grid-full .fig-btn { width: 100%; }
.img-missing { padding: 40px 16px; border: 1px dashed var(--accent); color: var(--accent); font-size: 12px; }

.project-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
  margin-top: clamp(64px, 10vw, 140px);
  padding: 28px var(--gutter) clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--rule);
}
.project-nav a { text-decoration: none; display: grid; gap: 6px; }
.pn-next { text-align: right; }
.pn-all { align-self: center; }
.pn-title { font-family: var(--title-font); font-weight: var(--title-weight); font-size: clamp(18px, 2.2vw, 30px); line-height: 1.1; text-transform: var(--title-case); letter-spacing: var(--title-track); color: var(--title-muted); transition: color .25s ease; }
.project-nav a:hover .pn-title { color: var(--ink); }

/* ------------------------------------------------------------ lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(16, 15, 14, 0.96); color: #f4f2ed;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #b9b4ab; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-caption { padding: 14px var(--gutter) 20px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #b9b4ab; min-height: 48px; }
.lb-btn { background: none; border: 0; color: inherit; cursor: var(--cursor); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 4px; }
.lb-btn:hover { color: #fff; }
.lb-prev, .lb-next { position: absolute; top: 0; bottom: 0; width: 22%; display: flex; align-items: center; font-size: 26px; padding: 0 clamp(8px, 2vw, 28px); color: rgba(255,255,255,.55); }
.lb-prev { left: 0; justify-content: flex-start; }
.lb-next { right: 0; justify-content: flex-end; }
.lb-prev:hover, .lb-next:hover { color: #fff; }
body.lb-lock { overflow: hidden; }

/* ------------------------------------------------------------ image hover */
.feature-media, .fig-btn { position: relative; }
.feature-media img, .fig-btn img, .index.index-list .row-thumb { transition: transform 1.8s cubic-bezier(.16, 1, .3, 1); }
.feature:hover .feature-meta .eyebrow { color: var(--accent); }
/* ------------------------------------------------------------ motion */
.reveal { opacity: 1; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature-media img, .index a, .site-nav a::after { transition: none; }
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .project-nav { grid-template-columns: 1fr 1fr; }
  .pn-all { display: none; }
  .facts > div { grid-template-columns: 100px 1fr; }
}/* ------------------------------------------------------------ name interaction: photo lens */
@property --lens-r { syntax: '<length>'; inherits: true; initial-value: 0px; }
.lens-host { position: relative; display: inline-block; --mx: 50%; --my: 50%; --lens-r: 0px; transition: --lens-r .7s cubic-bezier(.16, 1, .3, 1); }
.intro-name.lens-on { --lens-r: clamp(90px, 9vw, 170px); }
.lens-host.lens-on:not(.intro-name) { --lens-r: clamp(46px, 4vw, 80px); }
.lens-host .name-lens {
  position: absolute; inset: 0; pointer-events: none; white-space: nowrap;
  color: transparent;
  background-size: cover; background-position: 50% 45%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-mask-image: radial-gradient(circle var(--lens-r) at var(--mx) var(--my), #000 55%, transparent 100%);
  mask-image: radial-gradient(circle var(--lens-r) at var(--mx) var(--my), #000 55%, transparent 100%);
}/* Project-page images: gentler zoom on hover */
@media (hover: hover) { .fig-btn:hover img { transform: scale(1.06); } }
/* Lead + stack: first image on the left spanning the full height, the rest stacked on the right */
@media (min-width: 760px) {
  .grid-lead-stack { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: row dense; align-items: start; }
  .grid-lead-stack .fig:first-child { grid-column: 1; grid-row: 1 / span 3; }
  .grid-lead-stack .fig:not(:first-child) { grid-column: 2; }
}
/* Site-wide drafting cursor: thin ring, outer ticks, centre dot */
:root { --cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 25 25'><g fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='square'><circle cx='12.5' cy='12.5' r='5'/><path d='M12.5 1.5v3.5M12.5 20v3.5M1.5 12.5h3.5M20 12.5h3.5'/></g><g fill='none' stroke='%23141414' stroke-width='1' stroke-linecap='square'><circle cx='12.5' cy='12.5' r='5'/><path d='M12.5 1.5v3.5M12.5 20v3.5M1.5 12.5h3.5M20 12.5h3.5'/></g><circle cx='12.5' cy='12.5' r='1' fill='%23141414'/></svg>") 12 12, crosshair; }
html, body, a, button, .fig-btn, .feature, .intro-name, .index a, label { cursor: var(--cursor); }
.intro-name { -webkit-user-select: none; user-select: none; }
/* Menu: bold on hover (monospace, so the width does not change) */
.site-nav a:hover, .site-nav a:focus-visible { font-weight: 700; }
/* Bold on hover for every other interactive word */
.section-link:hover, .section-link:focus-visible,
.pn-all:hover .eyebrow, .pn-all:focus-visible .eyebrow,
.project-nav a:hover .eyebrow, .project-nav a:focus-visible .eyebrow,
.lb-btn:hover, .lb-btn:focus-visible { font-weight: 700; }

.contact-links a:hover, .contact-links a:focus-visible { font-weight: 600; }
/* Light echo of the name, slightly shifted, sitting underneath */
.intro-name { isolation: isolate; }
.intro-name .name-base { position: relative; z-index: 1; }
.lens-host .name-lens { z-index: 2; }
.intro-name .name-echo {
  position: absolute; left: 0; top: 0; z-index: 0; white-space: nowrap; pointer-events: none;
  color: #e3e3e3;
  transform: translate(0.045em, 0.06em);
}
/* Per-section options: imageWidth caps figure width; wide sections give images the full page width */
.grid .fig { max-width: var(--img-max, 100%); }
@media (min-width: 1000px) {
  .block.block-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
  .block.block-wide .block-head { position: static; grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); column-gap: clamp(40px, 5vw, 96px); margin-bottom: clamp(28px, 3vw, 44px); }
  .block.block-wide .block-head .block-text { max-width: 64ch; }
  .block.block-wide > .grid { grid-column: 1 / -1; grid-row: 2; }
  .block.block-wide .grid-lead-stack { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: clamp(24px, 3vw, 56px); }
}
/* Drawing legend, set like the portfolio: numbered lines in two columns, small mono */
.block-legend { display: grid; grid-template-columns: repeat(2, max-content); column-gap: clamp(28px, 4vw, 64px); row-gap: 0; align-self: start; }
.block-legend ol { display: grid; gap: 4px; }
.block-legend li { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 520px) { .block-legend { grid-template-columns: 1fr; row-gap: 4px; } }
.draft-switch-2 { bottom: 72px; }

/* Legend placed below the drawings */
.block-legend.legend-below { margin-top: 18px; }

.grid-lead-stack .fig:first-child img { max-height: none; }

/* Project names: lens host sizing */
.feature-meta h3.lens-host, .index .row-title.lens-host { justify-self: start; }
.lens-host .name-base { position: relative; z-index: 1; }
.lens-host .name-lens { z-index: 2; }
/* Lead + pair: a smaller drawing on the left, two images beside it, bottoms aligned */
@media (min-width: 760px) {
  .grid-lead-pair { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
}
@media (min-width: 1000px) { .block.block-wide > .grid-lead-pair { grid-row: 1; } }
/* Wide two-up photo grids: same shape for every photo */
.block.block-wide .grid-two .fig img { aspect-ratio: 3 / 2; object-fit: cover; }
