/* ───────── Tokens ─────────
   Night indigo and lit-window amber come from the renders themselves
   (blue-hour museum, glowing ceramic façade, Corallium's violet).
   Plaster is the unglazed ceramic of the tiles. */
:root {
  --night: #ffffff;
  --night-2: #f4f2ee;
  --night-3: #dedad2;
  --plaster: #1a1833;
  --mute: #6a6680;
  --ink: #1a1833;
  --ink-mute: #5b5776;
  --amber: #d17a00;
  --line: rgba(26, 24, 51, .14);

  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; background: var(--night); }
html.pv-open { overflow: hidden; }
body {
  background: var(--night);
  color: var(--plaster);
  font-family: var(--text);
  font-size: clamp(1.125rem, .3vw + 1.05rem, 1.3rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 300; background: var(--amber); color: var(--night); padding: .6rem 1rem; font-family: var(--display); font-weight: 600; transition: top .2s; }
.skip:focus { top: 1rem; }

/* ───────── Header ───────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  font-family: var(--display);
  transition: background .35s ease, backdrop-filter .35s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.main-nav { display: flex; gap: 2rem; font-size: 1.05rem; font-weight: 500; }
.main-nav a { position: relative; padding: .25rem 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover::after { transform: scaleX(1); }
.scroll-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--plaster); transition: transform .3s ease, top .3s ease; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ───────── Hero ───────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--night); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-scrim { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to top, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .55) 28%, rgba(255, 255, 255, 0) 58%),
  linear-gradient(to bottom, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 18%); }
.hero-copy { z-index: 2; position: absolute; left: var(--pad); bottom: clamp(1.25rem, 4vh, 3rem); right: var(--pad); pointer-events: none; }
.hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-line { display: block; overflow: hidden; padding: .02em 0 .1em; }
.hero-line > span { display: block; }
.hero-sub { max-width: 20ch; font-family: var(--display); font-style: normal; font-weight: 500; font-size: clamp(2rem, 4.2vw, 4.2rem); line-height: 1.05; letter-spacing: -.035em; color: var(--ink); }
.hero-hint { position: absolute; left: var(--pad); top: 5.5rem; font-family: var(--display); font-size: .95rem; color: var(--mute); pointer-events: none; }

.hero-side { position: absolute; right: var(--pad); bottom: clamp(1.25rem, 4vh, 3rem); display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; }
.hero-now { display: grid; gap: .15rem; width: min(19rem, 100%); text-align: right; justify-items: end; padding: 0; background: none; border: 0; font-family: var(--display); }
.hero-now:hover .hero-now-cta { color: var(--ink); }
.hero-now-label { font-size: .85rem; color: var(--mute); }
.hero-now-title { font-size: 1.5rem; font-weight: 650; line-height: 1.15; }
.hero-now-meta { font-size: .95rem; color: var(--mute); }
.hero-now-cta { margin-top: .5rem; font-size: .95rem; font-weight: 600; color: var(--amber); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hero-dots { display: flex; }
.hero-dots button { width: 28px; height: 28px; display: grid; place-items: center; }
.hero-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(26, 24, 51, .4); transition: background .3s, transform .3s; }
.hero-dots button:hover::before { background: var(--plaster); }
.hero-dots button[aria-current="true"]::before { background: var(--amber); transform: scale(1.5); }

/* ───────── Work ───────── */
.work { position: relative; padding: clamp(5rem, 10vw, 9rem) var(--pad) clamp(5rem, 9vw, 8rem); background: var(--night); }
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.work-title { font-family: var(--display); font-weight: 600; font-size: clamp(3.4rem, 9vw, 8rem); line-height: .9; letter-spacing: -.035em; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; font-family: var(--display); }
.filter { padding: .6rem 1.05rem; border: 1px solid rgba(26, 24, 51, .3); border-radius: 999px; font-size: 1rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.filter:hover { border-color: var(--plaster); }
.filter.is-active { background: var(--plaster); color: var(--night); border-color: var(--plaster); }
.filter .count { margin-left: .25rem; opacity: .6; font-weight: 400; }

.index { margin-top: clamp(2rem, 5vw, 4rem); }
.group-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: .9rem; font-family: var(--display); font-size: 1rem; color: var(--mute); }
.group-head:first-child { margin-top: 0; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr) 8rem; align-items: baseline; gap: 0 2rem; padding: .35rem 0 .55rem; border-top: 1px solid var(--line); transition: opacity .35s ease; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row-title { display: block; overflow: hidden; overflow-x: visible; overflow-y: clip; padding: .04em 0 .12em; font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4.3vw, 4.6rem); line-height: 1; letter-spacing: -.035em; transition: font-weight .45s var(--ease), color .3s; }
.row-title-inner { display: block; }
.row-sub { font-style: italic; font-weight: 300; font-size: 1.1rem; line-height: 1.35; color: var(--mute); }
.row-meta { justify-self: end; font-family: var(--display); font-size: 1rem; color: var(--mute); text-align: right; }
.row-thumb { display: none; }
.index-empty { padding: 3rem 0; max-width: 34rem; font-size: 1.3rem; color: var(--mute); border-top: 1px solid var(--line); }

@media (hover: hover) and (pointer: fine) {
  .index:hover .row { opacity: .32; }
  .index:hover .row:hover { opacity: 1; }
  .row:hover .row-title { font-weight: 600; color: var(--amber); }
}

.preview { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(260px, 25vw, 420px); aspect-ratio: 3 / 2; pointer-events: none; opacity: 0; background: var(--night-2);
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); transition: clip-path .6s var(--ease), opacity .2s; will-change: transform; }
.preview.is-on { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* ───────── About ───────── */
.about { background: var(--night-2); color: var(--ink); padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; max-width: 1500px; margin: 0 auto; }
.about-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-fig figcaption { margin-top: .7rem; font-family: var(--display); font-size: .95rem; color: var(--ink-mute); }
.statement { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 3.5vw, 3.3rem); line-height: 1.16; letter-spacing: -.012em; }
.statement.is-split .w { opacity: .2; transition: opacity .3s ease; }
.statement.is-split .w.is-lit { opacity: 1; }
.about-facts { margin-top: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid rgba(26, 24, 51, .2); }
.about-facts > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid rgba(26, 24, 51, .2); }
.about-facts dt { font-family: var(--display); font-size: 1rem; color: var(--ink-mute); }
.about-facts dd { font-size: 1.2rem; line-height: 1.5; max-width: 38rem; }

/* ───────── Contact ───────── */
.contact { background: var(--night); color: var(--ink); border-top: 1px solid var(--line); padding: clamp(5rem, 11vw, 10rem) var(--pad) clamp(4rem, 8vw, 7rem); }
.contact-title { max-width: 14ch; font-family: var(--display); font-weight: 600; font-size: clamp(3.4rem, 10vw, 9.5rem); line-height: .9; letter-spacing: -.035em; }
.mail { display: inline-block; margin-top: clamp(2rem, 4vw, 3.5rem); font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3.2vw, 2.7rem); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; }
.mail:hover { text-decoration-thickness: 5px; }
.socials { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 2rem; font-family: var(--display); font-size: 1.1rem; font-weight: 500; }
.socials a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.socials a:hover { text-decoration-thickness: 2px; }

.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem var(--pad); background: var(--night); color: var(--mute); font-family: var(--display); font-size: .95rem; }
.site-footer a:hover { color: var(--plaster); }

/* ───────── Project view ───────── */
.project { position: fixed; inset: 0; z-index: 100; background: var(--night); color: var(--plaster); }
.pv-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; }
.pv-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem var(--pad); background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-family: var(--display); }
.pv-bar-nav { display: flex; align-items: center; gap: .6rem; }
.pv-count { min-width: 3.5rem; text-align: center; font-size: .95rem; color: var(--mute); }
.pv-close, .pv-prev, .pv-nextbtn, .lb-prev, .lb-next, .lb-close { padding: .55rem 1.05rem; border: 1px solid rgba(26, 24, 51, .32); border-radius: 999px; font-family: var(--display); font-size: 1rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.pv-prev:hover, .pv-nextbtn:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--plaster); }
.pv-close, .lb-close { background: var(--plaster); color: var(--night); border-color: var(--plaster); font-weight: 600; }
.pv-close:hover, .lb-close:hover { background: var(--amber); border-color: var(--amber); }

.pv-hero { position: relative; height: min(86vh, 920px); min-height: 440px; overflow: hidden; background: var(--night-2); }
.pv-hero-btn { position: absolute; inset: 0; cursor: zoom-in; }
.pv-hero-img { width: 100%; height: 100%; object-fit: cover; }
.pv-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(255, 255, 255, .88), rgba(255, 255, 255, 0) 62%); }
.pv-hero-text { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(1.25rem, 4vw, 3rem); pointer-events: none; }
.pv-sub { font-style: italic; font-weight: 300; font-size: clamp(1.1rem, 1.6vw, 1.5rem); color: var(--plaster); }
.pv-title { font-family: var(--display); font-weight: 600; font-size: clamp(3.2rem, 11vw, 11rem); line-height: .9; letter-spacing: -.04em; }
.pv-meta { margin-top: .6rem; font-family: var(--display); font-size: 1.05rem; color: var(--plaster); }

.pv-info { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 7vw, 6rem) var(--pad); max-width: 1500px; margin: 0 auto; }
.pv-desc p { max-width: 36rem; font-size: clamp(1.25rem, 1.5vw, 1.5rem); line-height: 1.6; }
.pv-desc p + p { margin-top: 1.25rem; color: var(--mute); }
.pv-facts > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.pv-facts > div:last-child { border-bottom: 1px solid var(--line); }
.pv-facts dt { font-family: var(--display); font-size: .98rem; color: var(--mute); }
.pv-facts dd { font-size: 1.12rem; line-height: 1.5; }

.pv-body { padding-bottom: clamp(2rem, 5vw, 4rem); }
.sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 7rem) var(--pad); max-width: 1700px; margin: 0 auto; border-top: 1px solid var(--line); }
.sec-head { align-self: start; position: sticky; top: 5rem; }
.sec-title { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 4.2vw, 4.4rem); line-height: .95; letter-spacing: -.035em; margin-bottom: 1.4rem; }
.sec-copy p { font-size: clamp(1.08rem, 1.2vw, 1.25rem); line-height: 1.65; max-width: 34rem; }
.sec-copy p + p { margin-top: 1rem; color: var(--mute); }
.sec-figs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.5rem); align-items: start; }
.fig { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.fig-full { grid-column: span 6; }
.fig-half { grid-column: span 3; }
.fig-third { grid-column: span 2; }
.fig-block { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(1rem, 2vw, 2rem); align-items: stretch; }
.fig-block > .fig { height: 100%; }
.fig-block .fig-btn { flex: none; }
.fig-block figcaption { margin-top: auto; }
.fig-stack { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(.75rem, 1.4vw, 1.25rem); min-width: 0; }
.fig-stack > .fig { flex: none; }
.fig-row { grid-column: span 6; display: flex; gap: clamp(.75rem, 1.6vw, 1.5rem); align-items: stretch; }
.fig-row > .fig { height: auto; }
.fig-row > .fig { grid-column: auto; min-width: 0; }
.fig-btn { display: block; width: 100%; overflow: hidden; cursor: zoom-in; background: var(--night-2); }
.art { position: relative; width: 100%; container-type: inline-size; }
.art > img { display: block; width: 100%; height: 100%; transition: transform .7s var(--ease); }
.fig-btn:hover .art > img { transform: scale(1.02); }
.art-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.art-labels span { position: absolute; white-space: nowrap; line-height: 1; transform-origin: 0 0; font-family: "Helvetica Neue", Arial, sans-serif; color: #4d4a58; }
.art-light .art-labels span { color: #ece8df; }
.fig-draw .fig-btn { background: #fff; border: 0; padding: clamp(.6rem, 1.4vw, 1.4rem); }
.fig-draw .fig-btn .art { background: #fff; }
.fig-draw .fig-btn .art > img { mix-blend-mode: normal; }
.fig figcaption { font-family: var(--display); font-size: .95rem; line-height: 1.4; color: var(--mute); }

.pv-next { position: relative; display: block; height: min(60vh, 520px); min-height: 300px; overflow: hidden; margin-top: clamp(1rem, 3vw, 3rem); }
.pv-next-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1s var(--ease); }
.pv-next::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(255, 255, 255, .92), rgba(255, 255, 255, .35)); }
.pv-next:hover .pv-next-img { transform: scale(1.05); }
.pv-next-text { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(1.25rem, 4vw, 3rem); display: grid; gap: .2rem; font-family: var(--display); }
.pv-next-label { font-size: 1.05rem; color: var(--plaster); }
.pv-next-title { font-weight: 600; font-size: clamp(2.8rem, 9vw, 8.5rem); line-height: .92; letter-spacing: -.035em; transition: color .3s; }
.pv-next:hover .pv-next-title { color: var(--amber); }

/* ───────── Image viewer ───────── */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto minmax(0, 1fr); background: rgba(255, 255, 255, .99); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem var(--pad); font-family: var(--display); }
.lb-cap { font-size: 1rem; color: var(--plaster); }
.lb-ctrl { display: flex; gap: .6rem; }
.lb-stage { overflow: auto; display: grid; padding: 0 var(--pad) 1.25rem; }
.lb-art { margin: auto; cursor: zoom-in; flex: none; }
.lb-stage.is-zoom .lb-art { cursor: zoom-out; }
.lb-art > img { width: 100%; height: 100%; display: block; }
.lb-stage { align-content: center; }

/* ───────── Motion starting states (removed if Motion can't load) ───────── */
.motion-ok .hero-line > span { transform: translateY(112%); }
.motion-ok .hero-sub, .motion-ok .hero-side, .motion-ok .hero-hint { opacity: 0; }
.motion-ok .row-title-inner { transform: translateY(110%); }

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  .about-grid, .pv-info, .sec { grid-template-columns: 1fr; }
  .sec-head { position: static; }
  .about-fig img { aspect-ratio: 4 / 3; }
  .row { grid-template-columns: minmax(0, 1fr) 84px; grid-template-areas: "title thumb" "sub thumb" "meta thumb"; gap: .15rem 1.25rem; padding: 1.1rem 0; align-items: start; }
  .row-title { grid-area: title; font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .row-sub { grid-area: sub; }
  .row-meta { grid-area: meta; justify-self: start; text-align: left; }
  .row-thumb { grid-area: thumb; display: block; width: 84px; height: 84px; object-fit: cover; align-self: center; }
  .preview { display: none; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--night); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .4s ease, visibility 0s .4s; }
  .main-nav.open { max-height: 280px; visibility: visible; transition: max-height .4s ease; }
  .main-nav a { padding: 1.1rem var(--pad); font-size: 1.3rem; border-top: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .hero-copy { bottom: 10.5rem; }
  .hero-side { left: var(--pad); right: var(--pad); bottom: 1.1rem; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: .5rem; }
  .hero-now { display: grid; gap: .15rem; width: min(19rem, 100%); text-align: right; justify-items: end; padding: 0; background: none; border: 0; font-family: var(--display); }
  .hero-now-cta { display: none; }
  .hero-dots { flex-wrap: wrap; justify-content: flex-end; max-width: 7rem; }
  .hero-hint { top: 4.8rem; }
  .about-facts > div, .pv-facts > div { grid-template-columns: 1fr; gap: .2rem; }
  .filters { gap: .45rem; }
  .filter { padding: .5rem .85rem; font-size: .95rem; }
  .pv-bar { padding: .7rem var(--pad); }
  .fig-half, .fig-third { grid-column: span 6; }
  .fig-block { grid-template-columns: 1fr; }
  .fig-row { flex-direction: column; }
  .fig-row > .fig { flex: none !important; width: 100%; }
  .pv-hero { height: 70vh; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Small additions */
.link-btn { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; color: var(--amber); }
.link-btn:hover { text-decoration-thickness: 2px; }
.hero-canvas { touch-action: pan-y; }
.sec-figs > .fig { align-self: start; }
.fig-solo { width: min(100%, 62%); justify-self: center; }
@media (max-width: 900px) { .fig-solo { width: 100%; } }
.fig-cc figcaption { text-align: center; width: 75%; margin-left: 10%; }
@media (max-width: 900px) { .fig-cc figcaption { width: 80%; } }

/* ───────── Mobile refinements ───────── */
.about-fig img { height: auto; }
@media (max-width: 720px) {
  /* small source images stay modest instead of being stretched to the full width */
  .sec-figs > .fig, .fig-row > .fig { max-width: min(100%, calc(var(--w, 4000) * .5px)); margin-inline: auto; width: 100%; }
  .fig-row { gap: 1.5rem; }
  .sec-figs > .fig, .fig-row > .fig { margin-inline: 0; }
  .fig-draw .fig-btn { padding: 0; }
  .sec { padding-block: 2.5rem; gap: 1.5rem; }
  .sec-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .fig-cc figcaption { width: 100%; margin-left: 0; }
  .fig-solo { width: min(100%, 80%); }
  /* lightbox bar: caption on its own line, controls underneath */
  .lb-bar { flex-direction: column; align-items: stretch; gap: .6rem; padding: .7rem var(--pad); }
  .lb-cap { font-size: .9rem; line-height: 1.35; }
  .lb-ctrl { justify-content: space-between; }
  .lb-stage { padding: 0 .5rem 1rem; }
}

/* rows of three small figures stay side by side on every screen size */
@media (max-width: 900px) {
  .fig-row.row-keep { flex-direction: row; gap: .6rem; align-items: flex-start; }
  .sec-figs > .fig-row.row-keep > .fig, .fig-row.row-keep > .fig { flex: 1 1 0 !important; width: auto; max-width: none; min-width: 0; margin: 0; }
  .fig-row.row-keep figcaption { font-size: .72rem; line-height: 1.3; }
}
@media (max-width: 900px) { .sec-figs .fig-row.row-keep .fig figcaption { font-size: .72rem; line-height: 1.3; } }
/* mobile: everything outside the three-up rows is centred */
@media (max-width: 720px) {
  .sec-figs > .fig, .fig-row:not(.row-keep) > .fig { margin-inline: auto; }
  .sec-figs .fig figcaption { text-align: center; }
  .fig-solo { margin-inline: auto; }
}

/* Hero reveal: drawing | render */
.rv { position: absolute; inset: 0; background: #fff; transition: opacity .45s ease; touch-action: pan-y; }
.rv-out { opacity: 0; }
.rv-img, .rv-sk, .rv-sk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-sk { background: #fff; will-change: clip-path; }
.rv-sk img { opacity: .55; }
.rv-line { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--ink); will-change: transform; pointer-events: none; }
.rv-line span { position: absolute; top: 5.5rem; font-family: var(--display); font-size: .8rem; letter-spacing: .02em; color: var(--ink); white-space: nowrap; transition: opacity .25s; }
.rv-line .rv-l { right: .8rem; } .rv-line .rv-r { left: .8rem; }
.rv-line.rv-hide-l .rv-l, .rv-line.rv-hide-r .rv-r { opacity: 0; }
.rv-line::after { content: ""; position: absolute; top: 50%; left: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.hero-hint { top: 7.5rem; }

/* Hero gallery: 3D wall of projects */
.gl { position: absolute; inset: 0; background: #fff; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gl:active { cursor: grabbing; }
.gl-floor { position: absolute; left: -50%; right: -50%; bottom: -8%; height: 58%; transform-origin: 50% 0; transform: perspective(520px) rotateX(62deg);
  background-image: linear-gradient(90deg, rgba(26,24,51,.09) 1px, transparent 1px), linear-gradient(0deg, rgba(26,24,51,.09) 1px, transparent 1px);
  background-size: 90px 90px, 90px 90px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 45%); mask-image: linear-gradient(to bottom, transparent 0, #000 45%); }
.gl-stage { position: absolute; left: 0; right: 0; top: 13vh; height: 50vh; perspective: 1500px; perspective-origin: 50% 50%; transform-style: preserve-3d; }
.gl-card { position: absolute; left: 50%; top: 0; width: var(--cw); height: 100%; margin-left: calc(var(--cw) / -2); border-radius: 10px; overflow: hidden; background: #ddd; box-shadow: 0 30px 60px -28px rgba(26,24,51,.45); will-change: transform; cursor: pointer; }
.gl-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gl-name { position: absolute; left: .9rem; bottom: .8rem; font-family: var(--display); font-weight: 600; font-size: 1rem; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.gl-go { position: absolute; right: .8rem; bottom: .7rem; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: .9rem; opacity: 0; transform: scale(.7); transition: .3s; }
.gl-on .gl-go { opacity: 1; transform: none; }
.gl-nav { position: absolute; top: calc(13vh + 25vh - 20px); width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid rgba(26,24,51,.2); z-index: 300; display: grid; place-items: center; }
.gl-prev { left: var(--pad); } .gl-next { right: var(--pad); }
.gl-prev::before, .gl-next::before { content: ""; width: 9px; height: 9px; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); transform: rotate(-45deg); margin-left: 3px; }
.gl-next::before { transform: rotate(135deg); margin-left: -3px; }
@media (max-width: 720px) { .gl-stage { top: 11vh; height: 38vh; } .gl-nav { display: none; } .hero-sub { font-size: clamp(1.7rem, 7vw, 2.4rem); } }
.hero-copy, .hero-side { z-index: 5; }

/* Hero WebGL wall */
.hero.gw { background: #fff; }
.gw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.hero.gw .hero-copy, .hero.gw .hero-side { z-index: 5; }
.hero.gw .hero-sub { font-size: clamp(.85rem, 1vw, 1rem); font-weight: 500; letter-spacing: .02em; text-transform: uppercase; max-width: 26ch; line-height: 1.35; }
.hero.gw .hero-now-label { text-transform: uppercase; font-size: .7rem; letter-spacing: .04em; }
.hero.gw .hero-now-title { font-size: 1rem; font-weight: 600; }
.hero.gw .hero-now-meta { font-size: .8rem; }
.hero.gw .hero-now-cta { margin-top: .3rem; font-size: .8rem; }
.gw-track { position: relative; }
.hero.gw { position: sticky; top: 0; cursor: default; }

/* Work index: compact rows, fixed line icon at the left, no hover image */
.preview { display: none !important; }
.row { grid-template-columns: 3.4rem minmax(0, 2.2fr) minmax(0, 1fr) 8rem; align-items: center; gap: 0 1.5rem; padding: .55rem 0; }
.row-ico { width: 3.1rem; height: 3.1rem; object-fit: contain; display: block; opacity: .9; transition: opacity .3s; }
.row-title { font-size: clamp(1.6rem, 2.7vw, 2.8rem); padding: .02em 0 .08em; }
.row-sub { font-size: 1rem; }
.row:hover .row-ico { opacity: 1; }
@media (max-width: 900px) {
  .row { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "ico title" "ico sub" "ico meta"; gap: .1rem 1rem; padding: .8rem 0; align-items: start; }
  .row-ico { grid-area: ico; width: 44px; height: 44px; align-self: center; }
  .row-title { grid-area: title; font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .row-sub { grid-area: sub; font-size: .95rem; }
  .row-meta { grid-area: meta; font-size: .9rem; }
}

.sec.sec-video{display:block;border-top:0;padding-top:clamp(2rem,5vw,4rem);padding-bottom:0}
.pv-video{margin:0}
.pv-video video{display:block;width:100%;height:auto;background:#f3f3f3}
.pv-video .cap{margin-top:.6rem}

.sec-figs > .fig.fig-fw, .fig-row > .fig.fig-fw { max-width: 100% !important; margin-inline: 0 !important; width: 100%; }

.about-fig img { aspect-ratio: 1 / 1; object-fit: cover; }
.about-text { margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 40rem; }
.about-text p { font-size: 1.15rem; line-height: 1.6; color: var(--ink); }
.about-text p + p { margin-top: 1.1em; }
@media (max-width: 900px) { .about-fig img { aspect-ratio: 1 / 1; } }

.about-label { font-family: var(--display); font-size: 1rem; font-weight: 500; color: var(--ink-mute); margin-bottom: 1rem; }

.about-more[hidden] { display: none; }
.about-more p { margin-top: 1.1em; }
.read-more { margin-top: 1.4rem; padding: 0; background: none; border: 0; border-bottom: 1px solid currentColor; color: var(--ink); font: inherit; font-size: 1.05rem; font-weight: 500; cursor: pointer; line-height: 1.4; }
.read-more:hover { opacity: .65; }
.read-more:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.about-facts ul { list-style: none; padding: 0; margin: 0; }
.about-facts li { position: relative; padding-left: 1.1em; font-size: 1.15rem; line-height: 1.45; margin: .2rem 0; }
.about-facts li::before { content: ''; position: absolute; left: 0; top: .65em; width: .38em; height: .38em; border-radius: 50%; background: var(--ink); }
.about-facts ul.cols { columns: 2; column-gap: 2rem; }
.about-facts ul.cols li { break-inside: avoid; }
@media (max-width: 720px) { .about-facts ul.cols { columns: 1; } }

.pv-facts a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.pv-dark { background: #05050a; }
.pv-dark::after { background: linear-gradient(to top, rgba(5, 5, 10, .9), rgba(5, 5, 10, 0) 62%); }
.pv-dark .pv-title, .pv-dark .pv-sub, .pv-dark .pv-meta { color: #fff; }

.pv-nohero { height: auto; min-height: 0; background: transparent; padding-top: clamp(6rem, 14vw, 10rem); }
.pv-nohero::after, .pv-nohero .pv-hero-btn { display: none; }
.pv-nohero .pv-hero-text { position: relative; left: auto; right: auto; bottom: auto; margin: 0 var(--pad); }
