/* Jacques Ousson — v2
   Paper-white gallery wall (light) / archival charcoal (dark), one accent: Loire ochre.
   Fraunces for display, Instrument Sans for text. */

:root {
  --wall: #f4f1ea;
  --ink: #191816;
  --muted: #6f6a60;
  --rule: #dcd6ca;
  --accent: #9a6a1c;          /* Loire ochre, AA on --wall */
  --frame: rgba(25, 24, 22, .10);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));   /* left edge of .wrap content */
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #161513; --ink: #ece7dc; --muted: #a29b8d; --rule: #34312b;
    --accent: #d4a24c; --frame: rgba(236, 231, 220, .08); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #161513; --ink: #ece7dc; --muted: #a29b8d; --rule: #34312b;
  --accent: #d4a24c; --frame: rgba(236, 231, 220, .08); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font: 400 16px/1.65 var(--text); -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--wall); }

/* Language: show only the blocks of the current language */
html[lang="fr"] [data-l="en"], html[lang="en"] [data-l="fr"] { display: none !important; }

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

/* Header: solid wall colour, hairline once scrolled */
.site-header { --h-ink: var(--ink); --h-muted: var(--muted); position: sticky; top: 0; z-index: 20; background: var(--wall); color: var(--h-ink); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .5s var(--ease), color .5s var(--ease); }
.home .site-header { position: fixed; left: 0; right: 0; }
.home .site-header:not(.solid) { --h-ink: #f4efe4; --h-muted: rgba(244, 239, 228, .74); background: transparent; }
.home .site-header.solid { border-bottom-color: var(--rule); }
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 14px 32px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 18px; }
.brand { font: 400 26px/1 var(--display); font-variation-settings: "opsz" 72; letter-spacing: -.01em; text-decoration: none; }
.brand:hover { color: var(--h-ink); }
.nav { display: flex; align-items: baseline; gap: 6px 26px; flex-wrap: wrap; }
.nav a { font-size: 13px; font-weight: 500; letter-spacing: .02em; text-decoration: none; color: var(--h-muted); padding: 2px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--h-ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.tools { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; }
.lang { display: inline-flex; gap: 2px; }
.lang button, .theme-btn { font: 500 12px/1 var(--text); letter-spacing: .06em; color: var(--h-muted); background: none; border: 0; padding: 6px 5px; cursor: pointer; }
.lang button.active { color: var(--h-ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.theme-btn { font-size: 15px; padding: 4px 6px; }
.theme-btn:hover, .lang button:hover { color: var(--h-ink); }

/* Type */
main { padding: 40px 0 112px; }
main.flush { padding: 0; }
.page-title { font: 300 clamp(56px, 11vw, 168px)/.9 var(--display); font-variation-settings: "opsz" 144; letter-spacing: -.035em; margin: 32px 0 18px; }
.lede { font: 400 clamp(19px, 2vw, 24px)/1.45 var(--display); font-variation-settings: "opsz" 24; color: var(--muted); max-width: 42ch; margin: 0 0 56px; }
.eyebrow { font: 500 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
h2.section { font: 300 clamp(32px, 4vw, 52px)/1.05 var(--display); font-variation-settings: "opsz" 120; letter-spacing: -.025em; margin: 0 0 36px; }

/* Home hero: asymmetric, painting dominant */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-top: 12px; }
.hero figure { margin: 0; }
.hero figure img { width: 100%; outline: 1px solid var(--frame); outline-offset: -1px; }
.hero h1 { font: 300 clamp(60px, 9vw, 136px)/.86 var(--display); font-variation-settings: "opsz" 144; letter-spacing: -.045em; margin: 0 0 28px; }
.hero h1 em { font-style: italic; font-weight: 300; }
.hero p:not(.eyebrow) { font: 400 clamp(18px, 1.7vw, 21px)/1.5 var(--display); font-variation-settings: "opsz" 24; color: var(--muted); margin: 0 0 32px; max-width: 30ch; }
.hero .credit { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.btn { display: inline-flex; gap: 10px; align-items: center; font: 500 13px/1 var(--text); letter-spacing: .02em; text-decoration: none; color: var(--ink); padding: 0 0 6px; border-bottom: 1px solid var(--ink); transition: color .25s, border-color .25s, gap .35s var(--ease); }
.btn:hover { color: var(--accent); border-color: var(--accent); gap: 16px; }

.band { margin-top: clamp(96px, 12vw, 168px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.split figure { margin: 0; }
.split img { outline: 1px solid var(--frame); outline-offset: -1px; }
.split blockquote { margin: 0; font: 300 clamp(24px, 2.8vw, 38px)/1.3 var(--display); font-style: italic; font-variation-settings: "opsz" 72; letter-spacing: -.01em; }
.split cite { display: block; margin-top: 22px; font: 500 12px/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.more { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 48px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.filters button { font: 500 14px/1.2 var(--text); color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; position: relative; }
.filters button sup { font-size: 10px; margin-left: 3px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 2px; background: var(--accent); }

/* Works grid: varied rhythm, bottoms aligned like a hang line */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 6vw, 88px) clamp(20px, 3vw, 44px); align-items: end; }
.work { margin: 0; }
.work[hidden] { display: none; }
.work button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.work img { width: 100%; outline: 1px solid var(--frame); outline-offset: -1px; transition: transform .9s var(--ease), filter .6s var(--ease); }
.work button:hover img { transform: scale(1.025); }
.grid:has(.work button:hover) .work button:not(:hover) img { filter: saturate(.75) brightness(.97); }
.work figcaption { margin-top: 16px; display: grid; gap: 2px; }
.work .t { font: 400 18px/1.3 var(--display); font-style: italic; font-variation-settings: "opsz" 24; }
.work .m { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Works page: justified rows. Each work's width follows its shape (--r = width / height),
   so every painting in a row has the same height and the row fills the width. */
.grid.rows { display: flex; flex-wrap: wrap; align-items: flex-start; --row: 330px; gap: clamp(44px, 5vw, 72px) clamp(18px, 2.4vw, 36px); }
.grid.rows .work { flex: var(--r) 1 calc(var(--r) * var(--row)); min-width: 0; }
.grid.rows::after { content: ""; flex: 999 1 0; }   /* keeps the last row from stretching */
@media (max-width: 900px) { .grid.rows { --row: 230px; } }
@media (max-width: 560px) { .grid.rows { --row: 250px; gap: 36px 14px; } }

/* Biography / lists: tabular, chronological */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 880px; border-top: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.timeline .y { font: 400 22px/1.3 var(--display); font-variation-settings: "opsz" 48; font-variant-numeric: lining-nums tabular-nums; }
.timeline p { margin: 0; font-size: 17px; max-width: 60ch; }
.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 104px); align-items: start; }
h3.sub { font: 500 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 16px; transition: background-color .2s; }
.list li:hover { background: linear-gradient(var(--frame), var(--frame)); }
.list .y { color: var(--muted); font-variant-numeric: tabular-nums; }
.list.plain li { grid-template-columns: minmax(0, 1fr); }

/* Press */
.quotes { display: grid; gap: clamp(64px, 9vw, 120px); max-width: 900px; }
.quote { margin: 0; padding-left: clamp(0px, 4vw, 48px); border-left: 1px solid var(--rule); }
.quote blockquote { margin: 0; font: 300 clamp(22px, 2.6vw, 32px)/1.4 var(--display); font-variation-settings: "opsz" 48; letter-spacing: -.01em; }
.quote blockquote::before { content: "«\00a0"; color: var(--accent); }
.quote blockquote::after { content: "\00a0»"; color: var(--accent); }
.quote.long blockquote { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; }
.quote figcaption { margin-top: 20px; font: 500 12px/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quote figcaption a { letter-spacing: .06em; }
.quote .tr { margin: 18px 0 0; font-size: 15px; color: var(--muted); max-width: 68ch; }
.quote .tr b { display: block; font: 500 10.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }

/* Contact */
.contact { font: 300 clamp(30px, 5vw, 64px)/1.15 var(--display); font-variation-settings: "opsz" 144; letter-spacing: -.02em; margin: 0 0 18px; }
.contact a { text-decoration-color: var(--accent); text-underline-offset: 10px; }

/* Contact form: hairline fields on the wall, no boxes */
.contact-form { max-width: 820px; display: grid; gap: 28px; }
.f-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(20px, 4vw, 48px); }
.f { display: grid; gap: 8px; }
.f > span { font: 500 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.f > span em { font-style: normal; letter-spacing: .04em; text-transform: none; opacity: .8; }
.f input, .f textarea {
  font: 400 clamp(19px, 1.8vw, 22px)/1.45 var(--display); font-variation-settings: "opsz" 24; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 8px 0 10px; width: 100%;
  transition: border-color .3s var(--ease);
}
.f textarea { resize: vertical; min-height: 9em; }
.f input:focus, .f textarea:focus { outline: 0; border-bottom-color: var(--accent); }
.f input:focus-visible, .f textarea:focus-visible { box-shadow: 0 1px 0 0 var(--accent); }
.f [aria-invalid="true"] { border-bottom-color: #b3412e; }
.f-reveal { margin: 0; color: var(--muted); font-size: 15px; }
.linkish { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.f-reveal .addr { margin-left: 8px; font: 400 19px/1.4 var(--display); color: var(--ink); user-select: all; }
.f-foot { display: flex; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; margin-top: 8px; }
.btn.send { font-size: 15px; background: none; border: 0; border-bottom: 1px solid var(--ink); cursor: pointer; padding: 0 0 6px; }
.btn.send[disabled] { opacity: .5; cursor: progress; }
.f-status { margin: 0; font: 400 18px/1.4 var(--display); font-style: italic; color: var(--muted); }
.f-status.ok { color: var(--accent); }
.f-status.err { color: #b3412e; }
:root[data-theme="dark"] .f-status.err { color: #e07a64; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .f-status.err { color: #e07a64; } }
@media (max-width: 560px) { .f-row { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 44px; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Motion: entry + scroll reveals (transform/opacity only). Hidden states only
   apply when JS runs (html.js), so the page never stays blank without it. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.js .enter { animation: rise .9s var(--ease) both; }
.js .hero figure.enter { animation: unveil 1.3s var(--ease) both; }
.js .e2 { animation-delay: .25s; } .js .e3 { animation-delay: .35s; } .js .e4 { animation-delay: .5s; } .js .e5 { animation-delay: .65s; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Lightbox */
dialog.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #11100e; color: #ece7dc; overflow: hidden; }
dialog.lb::backdrop { background: #11100e; }
dialog.lb:focus { outline: 0; }
dialog.lb[open] { animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { position: absolute; inset: 64px 80px 104px; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .3s; }
.lb-stage img.loading { opacity: .2; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; padding: 0 16px; }
.lb-cap .t { font: 400 22px/1.3 var(--display); font-style: italic; }
.lb-cap .m { font-size: 13px; color: #a29b8d; margin-top: 4px; }
.lb button { position: absolute; background: none; border: 0; color: #ece7dc; cursor: pointer; font: 300 30px/1 var(--text); padding: 14px; opacity: .7; }
.lb button:hover, .lb button:focus-visible { opacity: 1; color: #d4a24c; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 26px; left: 26px; font-size: 12.5px; letter-spacing: .08em; color: #a29b8d; font-variant-numeric: tabular-nums; }

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .split, .cols { grid-template-columns: minmax(0, 1fr); }
  .hero { align-items: start; }
}
@media (max-width: 560px) {
  main { padding: 24px 0 80px; }
  .brand { font-size: 23px; }
  .site-header .wrap { padding-top: 16px; padding-bottom: 12px; }
  .nav { gap: 4px 16px; }
  .tools { margin-left: 0; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .list li { grid-template-columns: 84px minmax(0, 1fr); }
  .quote { padding-left: 16px; }
  .lb-stage { inset: 56px 8px 120px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; }
}
@media print {
  .js .reveal, .js .enter { opacity: 1 !important; transform: none !important; animation: none !important; }
  .site-header { position: static; }
  .tools, .filters { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* ================= v2 "wow" layer ================= */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* Masked line reveal (hero name, page titles) */
.ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.ln > span { display: block; }
.js .ln > span { animation: lineup 1.25s var(--ease) both; }
.js .ln + .ln > span { animation-delay: .12s; }
@keyframes lineup { from { transform: translateY(108%); } to { transform: none; } }

/* ---- Full-screen hero: slow-moving paintings, giant name */
.hero-full { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0f0e0c; color: #f4efe4; }
.slides { position: absolute; inset: -8% 0; will-change: transform; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 2s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.slide.kb img { animation: kb 11s linear both; }
.slide.kb:nth-child(even) img { animation-name: kb2; }
@keyframes kb { from { transform: scale(1.05) translate3d(0, 0, 0); } to { transform: scale(1.17) translate3d(-1.6%, -1%, 0); } }
@keyframes kb2 { from { transform: scale(1.17) translate3d(1.6%, .8%, 0); } to { transform: scale(1.05) translate3d(0, 0, 0); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 9, 8, .82) 0%, rgba(10, 9, 8, .28) 42%, rgba(10, 9, 8, 0) 62%), linear-gradient(to bottom, rgba(10, 9, 8, .5), rgba(10, 9, 8, 0) 22%); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-body { position: absolute; left: var(--edge); right: var(--edge); bottom: clamp(84px, 13svh, 150px); will-change: transform, opacity; }
.hero-body .eyebrow { color: #e0b563; margin-bottom: clamp(14px, 2.4vw, 30px); }
.js .hero-body .eyebrow { animation: rise 1s var(--ease) .5s both; }
.mega { margin: 0; font: 300 clamp(68px, 17.2vw, 330px)/.8 var(--display); font-variation-settings: "opsz" 144; letter-spacing: -.055em; margin-left: -.04em; }
.mega .ln:nth-child(2) { padding-left: .52em; font-style: italic; }
.hero-meta { position: absolute; left: var(--edge); right: var(--edge); bottom: 26px; display: flex; align-items: center; gap: 20px; font-size: 13px; color: rgba(244, 239, 228, .82); }
.js .hero-meta { animation: rise 1s var(--ease) .9s both; }
.hero-cap { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-cap .n { font-variant-numeric: tabular-nums; letter-spacing: .08em; margin-right: 14px; color: #e0b563; }
.hero-bar { flex: 1; height: 1px; background: rgba(244, 239, 228, .25); position: relative; overflow: hidden; min-width: 40px; }
.hero-bar i { position: absolute; inset: 0; background: #e0b563; transform: scaleX(0); transform-origin: left; }
.hero-bar.run i { animation: fill 7s linear both; }
@keyframes fill { to { transform: scaleX(1); } }
.scroll-cue { color: inherit; text-decoration: none; letter-spacing: .08em; white-space: nowrap; }
.scroll-cue span { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---- Statement: words light up with the scroll */
.statement { padding: clamp(110px, 20vh, 240px) 0; }
.statement .big { font: 300 clamp(30px, 5vw, 78px)/1.1 var(--display); font-variation-settings: "opsz" 144; letter-spacing: -.03em; margin: 0 0 48px; max-width: 19em; text-wrap: balance; }
.js .statement .w { opacity: .14; transition: opacity .5s var(--ease); }
.js .statement .w.lit { opacity: 1; }

/* ---- The room: pinned horizontal gallery; the wall takes each painting's colour */
.hs { position: relative; background: var(--amb, #17150f); color: #f1ecdf; transition: background-color 1.1s var(--ease); }
.hs-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; padding-top: 34px; }
.hs-track { display: flex; align-items: center; gap: clamp(48px, 6vw, 120px); padding: 0 max(var(--edge), 9vw); will-change: transform; }
.hs-intro, .hs-outro { flex: 0 0 auto; }
.hs-intro .eyebrow { color: #e0b563; }
.hs-intro h2, .hs-outro a { font: 300 clamp(56px, 9vw, 150px)/.88 var(--display); font-variation-settings: "opsz" 144; letter-spacing: -.045em; margin: 0; white-space: nowrap; }
.hs-intro .hint { margin: 32px 0 0; font-size: 13px; letter-spacing: .08em; color: rgba(241, 236, 223, .7); }
.hs-outro a { display: block; text-decoration: none; color: inherit; font-style: italic; padding-right: 6vw; }
.hs-outro a:hover { color: #e0b563; }
.hs .work { flex: 0 0 auto; position: relative; }
.hs .work button { overflow: visible; }
.hs .work img { height: min(52svh, 540px); width: auto; max-width: 82vw; object-fit: contain; outline: 0; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); transition: transform .9s var(--ease); }
.hs .work button:hover img { transform: scale(1.02); }
.hs .work .num { position: absolute; top: -.5em; left: -.34em; z-index: -1; font: 300 clamp(80px, 10vw, 160px)/1 var(--display); font-variation-settings: "opsz" 144; letter-spacing: -.05em; color: var(--amb, #17150f); -webkit-text-stroke: 2px rgba(241, 236, 223, .3); paint-order: stroke fill; transition: color 1.1s var(--ease); pointer-events: none; }
.hs .work { isolation: isolate; }
.hs .work .m { color: rgba(241, 236, 223, .62); }
.hs-ui { position: absolute; left: var(--edge); right: var(--edge); bottom: 26px; display: flex; align-items: center; gap: 20px; font-size: 13px; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: rgba(241, 236, 223, .8); }
.hs-bar { flex: 1; height: 1px; background: rgba(241, 236, 223, .22); position: relative; }
.hs-skip { color: inherit; text-decoration: none; letter-spacing: .08em; white-space: nowrap; padding: 6px 0; }
.hs-skip:hover { color: #e0b563; }
.hs.native .hs-skip { display: none; }
.hs-bar i { position: absolute; inset: 0; background: #e0b563; transform: scaleX(var(--p, 0)); transform-origin: left; }
/* Native mode (phones, reduced motion): a swipeable row */
.hs.native .hs-sticky { position: static; height: auto; display: block; padding: 88px 0 72px; }
.hs.native .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 56px var(--gutter) 28px; gap: 44px; align-items: end; }
.hs.native .hs-track::-webkit-scrollbar { display: none; }
.hs.native .work, .hs.native .hs-intro, .hs.native .hs-outro { scroll-snap-align: center; }
.hs.native .work img { height: auto; max-height: 56svh; max-width: 78vw; }
.hs.native .hs-ui { position: static; margin: 0 var(--gutter); }

/* ---- Atelier + quote */
.atelier { padding: clamp(110px, 18vh, 220px) 0; }
.par-frame { overflow: hidden; }
.par-frame img { width: 100%; transform: scale(1.18); will-change: transform; }
.par-frame .credit, .credit { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* ---- Marquee of exhibition cities */
.marquee { display: block; overflow: hidden; white-space: nowrap; border-block: 1px solid var(--rule); padding: .12em 0 .2em; text-decoration: none; font: 300 clamp(60px, 11vw, 170px)/1.1 var(--display); font-variation-settings: "opsz" 144; letter-spacing: -.04em; color: var(--wall); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; transition: color .5s var(--ease); }
.marquee:hover { color: var(--ink); }
.marquee > div { display: inline-block; animation: mq 46s linear infinite; }
.marquee:hover > div { animation-play-state: paused; }
.marquee i { font-style: normal; color: var(--accent); -webkit-text-stroke: 0; margin: 0 .28em; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---- Contact call */
.cta { padding: clamp(110px, 18vh, 220px) 0 clamp(90px, 14vh, 170px); }
.giant { display: inline-block; font: 300 clamp(40px, 9.6vw, 170px)/.95 var(--display); font-variation-settings: "opsz" 144; letter-spacing: -.05em; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .7s var(--ease), color .3s; padding-bottom: .06em; }
.giant:hover { background-size: 100% 2px; color: var(--ink); }

/* ---- Biography: sticky self-portrait */
.bio { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.bio .portrait { margin: 0; position: sticky; top: 110px; }
.bio .portrait img { width: 100%; outline: 1px solid var(--frame); outline-offset: -1px; }
.pano img { width: 100%; outline: 1px solid var(--frame); outline-offset: -1px; }

/* ---- Cursor label over artworks (mouse only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--accent); color: var(--wall); display: grid; place-items: center; font: 600 12px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; scale: 0; transition: scale .4s var(--ease); }
.cursor.on { scale: 1; }
.has-cursor .work button { cursor: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---- Lightbox: ambient glow of the painting behind it */
.lb-amb { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(90px) saturate(1.5); opacity: .5; transform: scale(1.1); transition: background-image .6s; pointer-events: none; }
.lb-stage, .lb-cap, .lb-count { z-index: 1; }
.lb button { z-index: 2; }
.lb-stage img { box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9); }

@media (max-width: 900px) {
  .bio { grid-template-columns: minmax(0, 1fr); }
  .bio .portrait { position: static; max-width: 340px; }
  .mega .ln:nth-child(2) { padding-left: .3em; }
}
@media (max-width: 560px) {
  .mega { font-size: 22.5vw; }
  .hs.native .work img { max-width: 84vw; }
  .hs.native .hs-sticky { padding-top: 64px; }
  .hero-meta .scroll-cue { display: none; }
  .hs .work .num { left: -.1em; }
}
@media (prefers-reduced-motion: reduce) {
  .js .statement .w { opacity: 1; }
  .par-frame img { transform: none; }
  .marquee > div { animation: none; }
}
