:root {
  --ink: #16130f;
  --ink-2: #1e1a15;
  --ink-3: #24201b;
  --line-dark: #2e281f;
  --line-dark-2: #3a332a;
  --on-dark: #efe9df;
  --on-dark-2: #cfc8bb;
  --on-dark-3: #a39a8b;
  --gold-bright: #e3c27a;
  --gold-soft: #d9c08a;

  --paper: #f3f0ea;
  --paper-2: #e8e3d9;
  --on-paper: #1a1917;
  --on-paper-2: #4a443b;
  --line-paper: rgba(26, 25, 23, .18);
  --gold-deep: #8a6a2c;

  --serif: "Fraunces", Georgia, "Noto Serif SC", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans SC", sans-serif;

  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body[data-theme="dark"] { background: var(--ink); color: var(--on-dark); }
body[data-theme="paper"] { background: var(--paper); color: var(--on-paper); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
body[data-theme="dark"] a:hover { color: var(--gold-bright); }
body[data-theme="paper"] a:hover { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
body[data-theme="paper"] :focus-visible { outline-color: var(--gold-deep); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.serif { font-family: var(--serif); }
.accent { font-family: var(--serif); font-style: italic; font-weight: 300; }
body[data-theme="dark"] .accent { color: var(--gold-bright); }
body[data-theme="paper"] .accent { color: var(--gold-deep); }
.muted { color: var(--on-dark-3); }
body[data-theme="paper"] .muted { color: var(--on-paper-2); }
.label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 22px; position: relative; z-index: 3;
}
.site-header.over { position: absolute; left: 0; right: 0; top: 0; margin: 0 auto; }
body[data-theme="paper"] .site-header { border-bottom: 1px solid var(--line-paper); }
.logo { font-family: var(--serif); font-weight: 400; font-size: 22px; text-decoration: none; letter-spacing: .005em; white-space: nowrap; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 15px; }
.nav a { text-decoration: none; padding: 12px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  padding-block: 40px; font-size: 14px; margin-top: 40px;
}
body[data-theme="dark"] .site-footer { border-top: 1px solid var(--line-dark); color: var(--on-dark-3); }
body[data-theme="paper"] .site-footer { border-top: 1px solid var(--line-paper); color: var(--on-paper-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Media placeholders (shown until an image is added in content.js) */
.media-empty {
  background: var(--ink-3); color: #8f887c; display: flex; align-items: flex-end;
  padding: 16px; font-family: var(--serif); font-style: italic; font-size: 18px;
}
body[data-theme="paper"] .media-empty { background: var(--paper-2); color: var(--on-paper-2); }

/* ---------- Home ---------- */
.hero { position: relative; min-height: max(620px, 100svh); background: #24211d; overflow: hidden; display: flex; flex-direction: column; }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade { position: absolute; inset: 0; background: rgba(18, 16, 13, .3); }
.hero .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(22,19,15,0), var(--ink)); }
.hero-inner { position: relative; z-index: 2; margin-top: auto; padding-bottom: clamp(40px, 8vh, 80px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero h1 { margin: 0 0 22px; font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 6.2vw, 92px); line-height: 1.02; letter-spacing: -.02em; max-width: 12ch; }
.hero .sub { margin: 0; max-width: 520px; font-size: 18px; color: #e4dfd5; }
.now { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.now a { font-family: var(--serif); font-size: 24px; text-decoration: none; }
.now .label { color: var(--on-dark-2); }
.hero-controls { display: flex; align-items: center; gap: 4px; }
.dot { width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; }
.dot span { display: block; height: 3px; width: 16px; background: var(--on-dark-2); transition: width .2s; }
.dot[aria-pressed="true"] span { width: 32px; background: var(--gold-bright); }
.sound { margin-left: 10px; min-height: 44px; padding: 0 14px; background: none; border: 1px solid #8f887c; color: var(--on-dark); font: inherit; font-size: 13px; cursor: pointer; }

.statement { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; padding-block: clamp(64px, 9vw, 112px) 56px; }
.statement p { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.38; max-width: 36em; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.card .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card .media img, .card .media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .media img { transform: scale(1.03); }
.card .media video { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.card:hover .media video.ready { opacity: 1; }
.card .media .media-empty { width: 100%; height: 100%; }
.card .t { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.card .title { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.card .year, .card .medium { font-size: 14px; color: var(--on-dark-3); }
.card .research { font-size: 14px; line-height: 1.5; color: var(--gold-soft); border-top: 1px solid var(--line-dark-2); padding-top: 10px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 40px); }
.section-head a { font-size: 14px; }

.band { background: var(--ink-2); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); margin-top: clamp(72px, 9vw, 120px); }
.band .wrap { padding-block: 64px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; }
.list-row { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line-dark-2); text-decoration: none; }
.list-row:last-child { border-bottom: 1px solid var(--line-dark-2); }
.list-row .serif { font-size: 22px; line-height: 1.3; }

/* ---------- Works index ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px 48px; align-items: end; padding-block: clamp(48px, 7vw, 96px) 40px; }
.page-head h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 7vw, 100px); line-height: 1; letter-spacing: -.02em; }
.page-head p { margin: 0; font-size: 18px; max-width: 34em; }
body[data-theme="dark"] .page-head p { color: var(--on-dark-2); }
body[data-theme="paper"] .page-head p { color: var(--on-paper-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 48px; }
.chip { min-height: 44px; padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; background: none; color: var(--on-dark); border: 1px solid #4a4237; }
.chip[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.works-grid .media { aspect-ratio: 1 / 1; }
.empty-note { color: var(--on-dark-3); padding-block: 24px 64px; }

/* ---------- Project ---------- */
.lead { position: relative; height: min(78vh, 760px); min-height: 420px; background: #24211d; overflow: hidden; }
.lead video, .lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead .media-empty { position: absolute; inset: 0; }
.lead .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(22,19,15,0), var(--ink)); }
.crumbs { display: flex; justify-content: space-between; gap: 16px; padding-block: 32px 8px; font-size: 13px; color: var(--on-dark-3); }
.crumbs a { text-decoration: none; }
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); gap: 32px 24px; padding-block: 24px 72px; }
.intro .meta { grid-column: 1; display: flex; flex-direction: column; gap: 24px; }
.intro .text { grid-column: 3; display: flex; flex-direction: column; gap: 20px; }
.intro h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 72px); line-height: 1.02; letter-spacing: -.02em; }
.facts { margin: 0; display: grid; grid-template-columns: 100px 1fr; gap: 10px 16px; font-size: 15px; }
.facts dt { color: var(--on-dark-3); }
.facts dd { margin: 0; }
.concept { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; }
.desc { margin: 0; color: var(--on-dark-2); line-height: 1.65; }
.doc-link { font-size: 15px; color: var(--gold-bright); }
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 80px; }
.parts figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.parts .media-empty, .parts img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.parts .name { font-family: var(--serif); font-size: 24px; }
.parts .ptext { font-size: 15px; line-height: 1.55; color: var(--on-dark-3); }

.research { background: var(--ink-2); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.research .wrap { padding-block: 80px; display: flex; flex-direction: column; gap: 48px; }
.research h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 3.6vw, 52px); }
.rgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; font-size: 15px; line-height: 1.6; }
.rgrid > div { border-top: 1px solid #4a4237; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.rgrid .label { color: var(--on-dark-3); }
.rgrid p { margin: 0; }
.rgrid ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.boards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.board { display: flex; flex-direction: column; gap: 8px; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; font-size: 14px; }
.board .media-empty, .board img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; background: #2a251f; border: 1px solid var(--line-dark-2); }
button.board { cursor: zoom-in; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; font-size: 14px; text-decoration: none; border: 1px solid currentColor; background: none; color: inherit; font-family: inherit; cursor: pointer; }
.btn.solid { background: var(--on-paper); color: var(--paper); border-color: var(--on-paper); }
body[data-theme="paper"] .btn.solid:hover { color: var(--paper); background: #000; }

.pager { display: flex; justify-content: space-between; gap: 24px; padding-block: 48px; }
.pager a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.pager a:last-child { text-align: right; }
.pager .serif { font-size: 22px; }

.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(10, 9, 7, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; width: auto; }
.lightbox button { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; background: none; border: 0; color: var(--on-dark); font-size: 28px; cursor: pointer; }

/* ---------- Writing ---------- */
.wtable { padding-bottom: 96px; }
.wrow { display: grid; grid-template-columns: 110px 170px minmax(0, 1fr) 260px; column-gap: 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line-paper); }
.wrow.head { border-top: 0; padding-top: 0; color: var(--on-paper-2); }
.wrow .y, .wrow .ty { font-size: 14px; color: var(--on-paper-2); }
.wrow .ti { font-family: var(--serif); font-size: 25px; line-height: 1.25; }
.wrow .ti a { text-decoration: none; }
.wrow .gr { font-size: 15px; }
.wrow .gr a { text-decoration: none; }

/* ---------- About ---------- */
.about-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); gap: 32px 24px; padding-block: clamp(48px, 7vw, 96px) 0; }
.about-top.no-portrait { grid-template-columns: minmax(0, 1fr); max-width: 920px; }
.about-top .portrait img, .about-top .portrait .media-empty { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-top .text { grid-column: 3; display: flex; flex-direction: column; gap: 24px; }
.about-top.no-portrait .text { grid-column: 1; }
.about-top h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 7vw, 100px); line-height: 1; letter-spacing: -.02em; }
.about-top .lede { margin: 0; font-size: 21px; line-height: 1.55; }
.about-top .more { margin: 0; color: var(--on-paper-2); line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; border: 1px solid rgba(26,25,23,.3); border-radius: 999px; padding: 6px 14px; color: var(--on-paper-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cv { display: flex; flex-direction: column; gap: 40px; padding-block: 120px 0; }
.cv > h2, .contact h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4vw, 56px); line-height: 1; }
.cv-group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 12px 24px; border-top: 1px solid var(--line-paper); padding-top: 18px; }
.cv-group h3 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-paper-2); }
.cv-rows { display: flex; flex-direction: column; gap: 12px; }
.cv-row { display: grid; grid-template-columns: 110px 1fr; gap: 24px; line-height: 1.5; }
.cv-row .y { font-size: 14px; color: var(--on-paper-2); padding-top: 2px; }

.short-bio { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 24px; margin-top: 64px; background: var(--paper-2); padding: 32px; }
.short-bio p { margin: 0 0 18px; font-size: 18px; line-height: 1.6; }

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); gap: 32px 24px; margin-top: 96px; border-top: 1px solid var(--on-paper); padding-top: 32px; padding-bottom: 64px; }
.contact .info { display: flex; flex-direction: column; gap: 14px; }
.contact .info p { margin: 0; color: var(--on-paper-2); }
.contact .big { font-family: var(--serif); font-size: 24px; }
.contact form { grid-column: 3; display: flex; flex-direction: column; gap: 18px; }
.contact label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--on-paper-2); }
.contact input, .contact textarea { min-height: 48px; border: 0; border-bottom: 1px solid var(--on-paper); background: transparent; font: inherit; font-size: 17px; color: var(--on-paper); padding: 6px 0; border-radius: 0; }
.contact textarea { resize: vertical; }
.contact .sent { color: var(--gold-deep); }

/* Cursor trail */
#trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 10; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgrid, .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrow { grid-template-columns: 90px minmax(0, 1fr); row-gap: 6px; }
  .wrow .ty { grid-column: 2; grid-row: 1; }
  .wrow .ti, .wrow .gr { grid-column: 2; }
  .wrow.head { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .logo { font-size: 20px; }
  .nav { gap: 18px; font-size: 14px; }
  .statement, .band .wrap, .page-head, .cv-group, .short-bio { grid-template-columns: minmax(0, 1fr); }
  .cards, .parts { grid-template-columns: minmax(0, 1fr); }
  .intro, .about-top, .contact { grid-template-columns: minmax(0, 1fr); }
  .intro .meta, .intro .text, .about-top .text, .contact form { grid-column: 1; }
  .rgrid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .now { align-items: flex-start; text-align: left; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .cv-row { grid-template-columns: 80px 1fr; gap: 14px; }
  .short-bio { padding: 22px; }
  .research .wrap { padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Project: longer text, context, gallery */
.intro .text .desc + .desc { margin-top: -4px; }
.research .context { max-width: 820px; display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.7; color: var(--on-dark-2); }
.research .context p { margin: 0; }
.gallery { padding-bottom: 80px; display: flex; flex-direction: column; gap: 18px; }
.gallery .label { margin: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gallery-grid figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery-grid img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.gallery-grid figcaption { font-size: 14px; color: var(--on-dark-3); line-height: 1.45; }
@media (max-width: 1000px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Article (research notes) */
.article { max-width: 720px; margin: 0 auto; padding-block: clamp(48px, 7vw, 96px) 96px; font-size: 18px; line-height: 1.75; }
.article-head { margin-bottom: 48px; }
.article-head .label a { text-decoration: none; }
.article h1 { margin: 18px 0 20px; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.5vw, 68px); line-height: 1.05; letter-spacing: -.02em; }
.article .dek { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 23px; line-height: 1.45; color: var(--on-paper-2); }
.article h2 { margin: 56px 0 14px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; }
.article h3 { margin: 32px 0 8px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-paper-2); }
.article p { margin: 0 0 18px; }
.article ul { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line-paper); font-size: 14px; }
.gallery-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .gallery-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.parts img[src*="cb-app-"] { object-fit: contain; background: #efe9df; }
.parts img[src$=".png"] { object-fit: contain; background: none; }
.gallery { gap: 40px; }
.gallery-block { display: flex; flex-direction: column; gap: 18px; }
.gallery-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .gallery-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Vertical process video (memori) */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); gap: 32px 24px; align-items: center; margin-bottom: 72px; }
.process-video { grid-column: 1; justify-self: center; width: min(100%, 380px); aspect-ratio: 9 / 16; background: #24211d; overflow: hidden; }
.process-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.process-text { grid-column: 3; }
.process-text h2 { margin: 8px 0 28px; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; letter-spacing: -.01em; }
.process-text ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.process-text li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(243,240,234,.16); }
.process-text li .name { font-family: var(--serif); font-size: 19px; color: var(--gold-bright); }
.process-text li .ptext { opacity: .82; line-height: 1.55; }
@media (max-width: 860px) {
  .process { grid-template-columns: minmax(0, 1fr); }
  .process-video, .process-text { grid-column: 1; }
  .process-video { width: min(100%, 320px); }
}
.gallery-grid img[src*="memori-"] { aspect-ratio: 4 / 5; }

/* Notes chart */
.article-fig { margin: 40px 0; }
.article-fig img { width: 100%; height: auto; display: block; background: #fff; }
.article-fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--on-paper-2); }

/* About: beyond the studio */
.studio { display: flex; flex-direction: column; gap: 18px; padding-top: 96px; }
.studio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.studio-grid figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.studio-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.studio-grid figcaption { font-size: 14px; line-height: 1.45; color: var(--on-paper-2); }
@media (max-width: 860px) { .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-top .portrait img { aspect-ratio: auto; height: auto; object-fit: initial; }
.about-top { align-items: start; }
.article .refs { list-style: none; padding-left: 0; font-size: 15px; color: var(--on-paper-2); }
.article .refs li { padding-left: 2em; text-indent: -2em; }
.gallery-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-grid.two img { aspect-ratio: 4 / 3; }
.gallery-grid.one { grid-template-columns: minmax(0, 1fr); }
.gallery-grid.one img { aspect-ratio: auto; height: auto; }

/* About top: heading above portrait, text aligned to photo */
.about-top { align-items: start; }
.about-top .left { grid-column: 1; display: flex; flex-direction: column; gap: 32px; }
.about-top .left .portrait img { width: 100%; height: auto; aspect-ratio: auto; display: block; }
@media (min-width: 761px) {
  .about-top:not(.no-portrait) .text { padding-top: calc(clamp(56px, 7vw, 100px) + 32px); }
}
.lead.lead-tall { height: min(88vh, 900px); }
.lead.lead-tall img { padding: 24px 0 0; }
.lead.lead-tall img { padding: 0; object-fit: cover !important; object-position: 50% 50%; }
@media (max-width: 760px) { .lead.lead-tall { height: 440px; min-height: 0; } }

/* About v3: full-width photo, short text */
.about-top { grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); row-gap: 56px; padding-top: 0; }
.about-top .portrait { grid-column: 1 / -1; width: 100vw; margin-left: calc(50% - 50vw); }
.about-top .portrait figure { margin: 0; }
.about-top .portrait img, .about-top .left .portrait img { width: 100%; height: min(80vh, 820px); aspect-ratio: auto; object-fit: cover; object-position: 50% 42%; display: block; }
.about-top .portrait figcaption { width: min(100% - 2 * var(--gutter, 64px), 1312px); margin: 10px auto 0 !important; }
.about-top .left { grid-column: 1; }
.about-top:not(.no-portrait) .text { padding-top: 14px; grid-column: 3; }
.about-top .lede { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -.005em; }
@media (max-width: 760px) {
  .about-top { row-gap: 28px; }
  .about-top .portrait img { height: 62vh; object-position: 45% 40%; }
  .about-top .left, .about-top:not(.no-portrait) .text { grid-column: 1; padding-top: 0; }
  .about-top .portrait figcaption { width: auto; padding: 0 16px; }
}
.about-top .portrait img { object-position: 50% 12%; }
.about-top .left { display: flex; flex-direction: column; gap: 28px; }
.about-meta { display: flex; flex-direction: column; gap: 18px; max-width: 420px; }
@media (max-width: 760px) { .about-top .portrait img { object-position: 45% 15%; } .about-meta { order: 2; } }
.about-top .portrait img { object-position: 50% 28%; }
@media (max-width: 760px) {
  .about-top { grid-template-columns: minmax(0, 1fr); }
  .about-top .portrait img { object-position: 45% 15%; }
  .about-meta .tags { flex-direction: row; }
}

/* ================= About v4: resume layout ================= */
.ab-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px clamp(32px, 5vw, 96px); align-items: center; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.ab-intro { display: flex; flex-direction: column; gap: 22px; }
.ab-intro .label { margin: 0; }
.ab-intro h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 8.4vw, 132px); line-height: .92; letter-spacing: -.03em; }
.ab-lede { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.35; max-width: 30ch; }
.ab-more { margin: 0; color: var(--on-paper-2); line-height: 1.65; max-width: 58ch; }
.ab-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.ab-visual { position: relative; padding-bottom: 120px; }
.ab-photo { position: relative; background: var(--ink); aspect-ratio: 4 / 5; overflow: visible; }
.ab-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.ab-sun { position: absolute; z-index: 0; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--gold-bright); left: -14%; top: -8%; }
.ab-pill { position: absolute; z-index: 2; background: var(--gold-bright); color: var(--ink); font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.ab-pill.p0 { left: -28px; top: 18%; }
.ab-pill.p1 { right: -20px; top: 52%; }
.ab-card { position: absolute; z-index: 3; left: 12%; right: -4%; bottom: 0; background: var(--ink); color: var(--on-dark); padding: 26px 28px; }
.ab-card h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.ab-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.ab-card li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.ab-card li span { color: var(--on-dark-3); font-size: 13px; padding-top: 2px; }
.ab-card a { color: var(--on-dark); text-decoration-color: var(--gold-bright); }

.ab-h2 { margin: 0 0 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; color: inherit; }
.ab-h2 + * { margin-top: 0; }
.ab-tl { list-style: none; margin: 0 0 44px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ab-tl li { display: grid; grid-template-columns: 22px 92px 1fr; gap: 10px; align-items: baseline; line-height: 1.5; }
.ab-tl .y { font-family: var(--serif); font-size: 18px; }
.ab-tl .what small { display: block; font-size: 14px; opacity: .78; margin-top: 2px; }
.ab-tl .what b { font-weight: 500; }
.ab-star { color: var(--gold-bright); font-size: 16px; }

.ab-band { background: var(--ink); color: var(--on-dark); }
.ab-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 112px); padding-block: clamp(56px, 7vw, 104px); }
.ab-band .ab-tl .what { color: var(--on-dark-2); }
.ab-band .ab-h2 { color: var(--gold-bright); }
.ab-skill { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-dark-2); }
.ab-skill .k { font-size: 13px; color: var(--on-dark-3); padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line-dark-2); background: var(--ink-3); color: var(--on-dark); font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.chips.gold span { background: transparent; border-color: var(--gold-bright); color: var(--gold-bright); }

.ab-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px clamp(40px, 6vw, 112px); align-items: start; padding-bottom: 24px; }
.ab-exp { background: var(--gold-bright); color: var(--ink); padding: clamp(28px, 3.5vw, 48px); margin-top: -48px; position: relative; z-index: 2; }
.ab-exp .ab-tl { margin-bottom: 0; }
.ab-exp .ab-star { color: var(--ink); }
.ab-side { padding-top: clamp(40px, 5vw, 72px); }
.ab-side .ab-tl .what { color: var(--on-paper-2); }
.ab-side .ab-star { color: var(--gold-deep); }
.ab-side .ab-h2 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 16px; }
.studio .ab-h2 { margin-bottom: 4px; }

@media (max-width: 900px) {
  .ab-hero, .ab-band-grid, .ab-split { grid-template-columns: minmax(0, 1fr); }
  .ab-visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .ab-exp { margin-top: 0; }
  .ab-split { padding-top: 48px; }
  .ab-side { padding-top: 0; }
}
@media (max-width: 520px) {
  .ab-pill.p0 { left: 8px; } .ab-pill.p1 { right: 8px; }
  .ab-card { left: 6%; right: 6%; padding: 22px; }
  .ab-card li { grid-template-columns: 80px 1fr; font-size: 14px; }
  .ab-tl li { grid-template-columns: 18px 70px 1fr; }
  .ab-skill { grid-template-columns: 1fr; gap: 8px; }
  .ab-sun { left: -6%; }
}
.studio-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ab-photo img { object-position: 50% 30%; }
#ab-bio { display: flex; flex-direction: column; gap: 18px; }
/* contact card: sits below the photo, only overlapping the bottom edge */
.ab-visual { padding-bottom: 0; }
.ab-card { position: relative; left: auto; right: auto; bottom: auto; margin: -36px -4% 0 18%; }
@media (max-width: 520px) { .ab-card { margin: -28px 4% 0 10%; } }
@media (max-width: 520px) { .ab-pill.p1 { top: 70%; } .ab-pill.p0 { top: 14%; } }
/* cut-out portrait on ink block */
.ab-photo.cut { overflow: hidden; }
.ab-photo.cut img { object-fit: contain; object-position: 50% 100%; padding-top: 8%; }
.ab-photo.cut .ab-sun { left: 50%; top: 9%; width: 62%; transform: translateX(-50%); }
.ab-photo.cut .ab-pill.p0 { left: 6%; } .ab-photo.cut .ab-pill.p1 { right: 6%; }
.ab-photo.cut { overflow: visible; }
.ab-photo.cut::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.gallery-text { margin: -8px 0 6px; max-width: 62ch; color: var(--on-dark-2); line-height: 1.6; }
.parts:has(> figure:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.parts img[src$="-cut.png"] { aspect-ratio: 4 / 3; object-fit: contain; padding: 6% 12%; background: radial-gradient(closest-side, rgba(227,194,122,.16), transparent); }
@media (max-width: 760px) { .parts:has(> figure:nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); } }
/* Home statement: heading left, lead + body right */
.statement { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 96px); align-items: start; }
.st-head { display: flex; flex-direction: column; gap: 14px; }
.st-head h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: -.02em; }
.st-body { display: flex; flex-direction: column; gap: 20px; padding-top: 30px; }
.statement .st-lead { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.38; max-width: 34em; }
.statement .st-rest { font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.7; color: var(--on-dark-2); max-width: 44em; }
@media (max-width: 760px) { .statement { grid-template-columns: minmax(0, 1fr); } .st-body { padding-top: 0; } }

/* About: cut-out breaks out of a shorter block; wave into the dark band */
.ab-hero { position: relative; z-index: 2; padding-bottom: 24px; }
.ab-photo.cut { aspect-ratio: 1 / 1; margin-top: 22%; overflow: visible; }
.ab-photo.cut img { position: absolute; left: 0; bottom: 0; width: 100%; height: 128%; object-fit: contain; object-position: 50% 100%; padding: 0; }
.ab-photo.cut .ab-sun { top: 8%; width: 66%; }
.ab-photo.cut .ab-pill.p0 { left: -32px; top: 30%; }
.ab-photo.cut .ab-pill.p1 { right: -28px; top: 64%; }
.ab-card { margin-bottom: -110px; }
.ab-band { position: relative; margin-top: 60px; }
.ab-wave { position: absolute; left: 0; bottom: 100%; width: 100%; height: clamp(70px, 9vw, 150px); display: block; margin-bottom: -1px; }
.ab-wave .fill { fill: var(--ink); }
.ab-wave .line { fill: none; stroke: var(--gold-bright); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .9; }
.ab-band-grid { padding-top: clamp(150px, 12vw, 190px); }
@media (max-width: 900px) {
  .ab-card { margin-bottom: -70px; }
  .ab-band-grid { padding-top: 120px; }
}
@media (max-width: 520px) {
  .ab-photo.cut .ab-pill.p0 { left: 4px; } .ab-photo.cut .ab-pill.p1 { right: 4px; }
}
.ab-hero { padding-bottom: 110px; }
.ab-card { margin-bottom: -190px; }
.ab-photo.cut img { object-fit: cover; object-position: 50% 0%; }
@media (max-width: 900px) {
  .ab-hero { padding-bottom: 0; }
  .ab-card { margin-bottom: 0; }
  .ab-band { margin-top: 70px; }
  .ab-band-grid { padding-top: 56px; }
}
#selected.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
@media (max-width: 760px) { #selected.cards { grid-template-columns: minmax(0, 1fr); } }
.st-body { padding-top: 0; }
.st-head h2 { margin-top: -0.12em; }
.st-head h2 { margin-top: -0.04em; }

/* Portrait screens: show the full 16:9 video instead of a centre crop */
@media (max-width: 760px), (max-aspect-ratio: 3/4) {
  .hero { min-height: 0; padding-top: 76px; }
  #hero-media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
  #hero-media video, #hero-media .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero .shade { display: none; }
  .hero .fade { top: calc(76px + 56.25vw - 70px); bottom: auto; height: 70px; z-index: 1; }
  .hero-inner { margin-top: 0; padding-top: 28px; }
  .lead:not(.lead-tall) { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px), (max-aspect-ratio: 3/4) { .hero { background: var(--ink); } .hero-inner { padding-bottom: 48px; } }

/* touch: show card video once it plays (no hover on phones) */
@media (hover: none) { .card .media video.ready { opacity: 1; } }

/* Home: Ongoing */
.ongoing { padding-block: 24px 96px; }
.ongoing .section-head { align-items: baseline; }
.og-note { font-size: 14px; color: var(--on-dark-3); }
.og-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.og { display: flex; flex-direction: column; text-decoration: none; color: var(--on-dark); background: var(--ink-2); border: 1px solid var(--line-dark); transition: border-color .25s, transform .25s; }
.og:hover { border-color: var(--gold-bright); transform: translateY(-3px); }
.og-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.og-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.og:hover .og-media img { transform: scale(1.04); }
.og-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.og-stage { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-bright); border: 1px solid rgba(227,194,122,.45); border-radius: 999px; padding: 5px 12px; }
.og-stage i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); animation: ogpulse 1.8s ease-in-out infinite; }
@keyframes ogpulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.og-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.og-next { font-size: 15px; line-height: 1.5; color: var(--on-dark-2); }
.og-go { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--gold-bright); }
.all-works { display: flex; flex-direction: column; gap: 8px; margin-top: 48px; padding: 32px 0; border-top: 1px solid var(--line-dark-2); border-bottom: 1px solid var(--line-dark-2); text-decoration: none; color: var(--on-dark); }
.aw-k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }
.aw-t { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 44px); line-height: 1.15; transition: color .25s; }
.all-works:hover .aw-t { color: var(--gold-bright); }
@media (max-width: 900px) { .og-list { grid-template-columns: minmax(0, 1fr); } .ongoing .section-head { flex-wrap: wrap; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .og-stage i { animation: none; } }
/* centered "See all works" */
.ongoing { padding-bottom: 72px; }
.all-works { flex-direction: row; align-items: center; justify-content: center; align-self: center; width: max-content; margin: 48px auto 0; padding: 16px 34px; border: 1px solid var(--gold-bright); border-radius: 999px; font-size: 15px; letter-spacing: .04em; color: var(--gold-bright); gap: 10px; transition: background .25s, color .25s; }
.all-works:hover { background: var(--gold-bright); color: var(--ink); }
.ongoing { padding-bottom: 56px; } .all-works { margin-top: 40px; }
.ongoing { padding-bottom: 0; } .all-works { margin-top: 56px; } .ongoing + .band { margin-top: 56px; }
