/* ==========================================================================
   Gicé — Catalogue · test8
   The white Kunsthalle catalogue: paper, ink, one red. Plates sit on the page
   with their numbers in the margin; the only ornament is the rule.
   ========================================================================== */

:root {
  --white: #f7f5ef;
  --white-2: #efece3;
  --ink: #141414;
  --ink-soft: #2b2b2b;
  --grey: #5f5d58;
  --grey-2: #6b6963;
  --red: #b5362a;
  --line: rgba(20, 20, 20, 0.16);
  --line-strong: rgba(20, 20, 20, 0.32);
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", "Times New Roman", serif;
  --text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 5vw, 72px);
  --max: 1500px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--text); font-weight: 400; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
* { scrollbar-color: var(--ink) var(--white); scrollbar-width: thin; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: #c9c4b8; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--white); font-size: 12px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.grain { display: none; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--red); z-index: 80; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter); background: var(--white);
  border-bottom: 1px solid transparent; transition: padding 0.4s var(--ease), border-color 0.4s;
}
.nav.is-stuck { padding-block: 12px; border-bottom-color: var(--ink); }
.nav__brand { display: flex; align-items: baseline; gap: 14px; }
.nav__mark { font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: -0.04em; line-height: 1; }
.nav__full { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; padding-block: 5px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { color: var(--ink); }
.nav__cta { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger i { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform 0.4s var(--ease); }
.nav__burger i:nth-child(1) { top: 17px; }
.nav__burger i:nth-child(2) { top: 26px; }
.nav.is-open .nav__burger i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__burger i:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.nav__menu-foot { display: none; }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate; background: var(--white);
}
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__scene.is-live { opacity: 1; }
.hero__fallback { position: absolute; inset: 0; z-index: 0; display: none; background: var(--white); }
.hero.no-scene .hero__fallback { display: block; }
.hero.no-scene .hero__scene { display: none; }
.hero__fallback::after {
  content: ""; position: absolute; right: 8%; top: 16%; width: min(30vw, 380px); aspect-ratio: 1140 / 2025;
  background: url("../media/chouette-effraie-sm.webp") center / contain no-repeat; filter: grayscale(0.1);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.4);
}
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--white) 0%, var(--white) 48%, rgba(247, 245, 239, 0.92) 60%, rgba(247, 245, 239, 0) 78%); }
.hero__plate-label {
  position: absolute; right: calc(var(--gutter) * 0.5); top: 24%; z-index: 2; display: none; margin: 0;
  writing-mode: vertical-rl; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey);
}
.hero__plate-label span { color: var(--red); }
.hero__plate-label::before { content: ""; display: block; width: 1px; height: 40px; margin: 0 auto 14px; background: var(--line-strong); }
@media (min-width: 1180px) { .hero__plate-label { display: block; } }

.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(46px, 8vh, 84px); display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: end; gap: 40px; }
.hero__copy { max-width: 560px; }
.hero__name { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(58px, 10.5vw, 96px); line-height: 0.9; letter-spacing: -0.045em; }
.hero__id { margin: clamp(18px, 3vh, 26px) 0 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); line-height: 1.9; }
.hero__id b { font-weight: 600; color: var(--ink); }
.hero__lede { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--ink); max-width: 44ch; font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.62; color: var(--ink-soft); }
.hero__cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.hero__cue svg line, .hero__cue svg path { stroke: var(--red); stroke-width: 1.2; fill: none; }
.hero__label {
  position: relative; z-index: 2; border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 20px;
  padding-block: 16px clamp(18px, 3vh, 28px);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey);
}
.hero__label b { font-weight: 700; color: var(--ink); }
.hero__label .hero__label-right { text-align: right; color: var(--red); }

/* -------------------------------------------------------------- sections */
main section[id] { scroll-margin-top: 80px; }
.section { position: relative; padding-block: clamp(72px, 11vh, 150px); background: var(--white); }
.section--tight { padding-block: clamp(50px, 7vh, 100px); }
.section__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: end; gap: 22px 48px;
  padding-top: 16px; border-top: 1px solid var(--ink); margin-bottom: clamp(32px, 5vw, 62px);
}
.section__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.6vw, 62px); line-height: 0.98; letter-spacing: -0.04em; max-width: 18ch; }
.section__title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); letter-spacing: -0.01em; }
.section__title .accent { color: var(--red); }
.section__note { margin: 0; font-size: 14px; line-height: 1.65; color: var(--grey); max-width: 44ch; }
.section__note b { color: var(--ink); font-weight: 600; }
.spine { position: absolute; left: calc(var(--gutter) * 0.42); top: clamp(120px, 18vh, 220px); writing-mode: vertical-rl; font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--grey-2); display: none; }
@media (min-width: 1280px) { .spine { display: block; } }

/* ------------------------------------------------------------- practices */
.practices__lede { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 64px; margin-bottom: clamp(38px, 6vw, 80px); }
.practices__lede p { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(21px, 2.1vw, 30px); line-height: 1.28; letter-spacing: -0.02em; max-width: 30ch; }
.practices__lede p + p { font-weight: 400; font-size: 15px; line-height: 1.7; color: var(--grey); max-width: 40ch; justify-self: end; align-self: end; }

.practice {
  display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(18px, 3vw, 52px);
  align-items: start; padding-block: clamp(24px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
}
.practice:last-child { border-bottom: 1px solid var(--line); }
.practice__idx { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--red); padding-top: 4px; }
.practice__body h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.8vw, 38px); line-height: 1; letter-spacing: -0.03em; }
.practice__body p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--grey); max-width: 46ch; }
.practice__meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-2); }
.practice__meta span::before { content: ""; display: inline-block; width: 12px; height: 1px; margin-right: 8px; vertical-align: middle; background: var(--red); }
.practice__plate { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--white-2); }
.practice__plate img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.98); transition: transform 1.2s var(--ease); }
.practice:hover .practice__plate img { transform: scale(1.03); }

/* ----------------------------------------------------------------- works */
.works__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; margin-bottom: clamp(24px, 4vw, 40px); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.filters button { position: relative; padding: 6px 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); cursor: pointer; }
.filters button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::after { transform: scaleX(1); }
.filters .count { margin-left: 6px; font-size: 10px; color: var(--grey-2); }
.works__count { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); font-variant-numeric: tabular-nums; }

.wall-blocks { position: relative; }
.wall { column-count: 2; column-gap: clamp(24px, 4vw, 72px); }
.wall[hidden] { display: none; }
.plate { break-inside: avoid; margin: 0 0 clamp(34px, 5vw, 76px); }
.plate[hidden] { display: none; }
.plate__btn { display: block; width: 100%; padding: 0; cursor: zoom-in; text-align: left; }
.plate__frame { position: relative; display: block; overflow: hidden; background: var(--white-2) !important; }
.plate__img { width: 100%; height: auto; transition: transform 1.1s var(--ease), opacity 0.6s; }
.plate__btn:hover .plate__img { transform: scale(1.012); opacity: 0.94; }

.plate__cap { position: relative; overflow: hidden; height: 58px; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.plate__front, .plate__back { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) auto; align-items: baseline; gap: 8px; transition: transform 0.5s var(--ease), opacity 0.3s; }
.plate__back { position: absolute; inset: 9px 0 auto; transform: translateY(130%); opacity: 0; border-top: 0; }
.plate__num { font-size: 10px; letter-spacing: 0.06em; color: var(--red); font-variant-numeric: tabular-nums; }
.plate__name { font-family: var(--serif); font-size: 18px; line-height: 1.15; letter-spacing: -0.01em; }
.plate__tech { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-2); white-space: nowrap; }
.plate__back span:nth-child(2) { grid-column: 2 / -1; font-size: 11.5px; line-height: 1.45; color: var(--grey); }
.plate__btn:hover + .plate__cap .plate__front, .plate__btn:focus-visible + .plate__cap .plate__front { transform: translateY(-130%); opacity: 0; }
.plate__btn:hover + .plate__cap .plate__back, .plate__btn:focus-visible + .plate__cap .plate__back { transform: none; opacity: 1; }

.plate--wide { margin: clamp(30px, 4.5vw, 64px) 0 clamp(44px, 6vw, 92px); }
.plate--wide .plate__frame { clip-path: inset(0 0 0 0); }
.plate--wide[data-reveal] .plate__frame { clip-path: inset(0 0 100% 0); }
.plate--wide.is-in .plate__frame { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease); }
.plate--wide .plate__img { width: 100%; height: auto; }

/* ----------------------------------------------------------------- ronde */
.ronde { overflow: hidden; border-block: 1px solid var(--ink); background: var(--white); }
.ronde__stage { position: relative; height: clamp(360px, 50vw, 540px); perspective: 1400px; perspective-origin: 50% 45%; touch-action: pan-y; cursor: grab; user-select: none; margin-top: 6px; }
.ronde__stage.is-dragging { cursor: grabbing; }
.ronde__ring { --radius: 330px; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.ronde__item {
  position: absolute; left: -128px; top: -172px; width: 256px; height: 344px;
  transform-style: preserve-3d; backface-visibility: hidden;
  display: grid; place-items: center; padding: 18px;
  background: #fff; border: 1px solid var(--line-strong);
  will-change: transform, filter, opacity;
}
.ronde__item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ronde__shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at 50% 50%, transparent 46%, rgba(247, 245, 239, 0.85) 100%); }
.ronde__foot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--ink); }
.ronde__caption { margin: 0; display: flex; align-items: baseline; gap: 16px; }
.ronde__caption strong { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 26px); }
.ronde__caption span { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.ronde__nav { display: flex; gap: 8px; }
.ronde__nav button { width: 42px; height: 42px; border: 1px solid var(--ink); display: grid; place-items: center; cursor: pointer; }
.ronde__nav button:hover { background: var(--ink); }
.ronde__nav button:hover svg { stroke: var(--white); }
.ronde__nav svg { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.ronde__hint { grid-column: 1 / -1; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }

/* ----------------------------------------------------------------- quote */
.quote { position: relative; overflow: hidden; padding-block: clamp(80px, 13vh, 160px); background: var(--white); border-top: 1px solid var(--ink); }
.quote__img { position: absolute; inset: 0; z-index: 0; }
.quote__img img { width: 100%; height: 120%; object-fit: cover; opacity: 0.9; filter: saturate(0.9); }
.quote__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--white) 4%, rgba(247, 245, 239, 0.94) 42%, rgba(247, 245, 239, 0.45) 100%); }
.quote__inner { position: relative; z-index: 1; max-width: min(900px, 70ch); }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 50px); line-height: 1.12; letter-spacing: -0.035em; max-width: 26ch; }
.quote blockquote em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); letter-spacing: -0.01em; }
.quote figcaption { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--ink); font-size: 11px; letter-spacing: 0.06em; color: var(--grey); max-width: 38ch; line-height: 1.75; }

/* ----------------------------------------------------------------- paper */
.section.paper { background: var(--white-2); color: var(--ink); }
.paper::before { display: none; }
.paper .section__head { border-top-color: var(--ink); }
.paper .section__title em, .paper .section__title .accent { color: var(--red); }
.paper .section__note { color: var(--grey); }
.bio { position: relative; display: grid; grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.bio__portrait { position: sticky; top: 100px; }
.bio__portrait img { width: 100%; max-width: 340px; filter: grayscale(1) contrast(1.05); }
.bio__portrait figcaption { margin-top: 10px; max-width: 340px; padding-top: 8px; border-top: 1px solid var(--line-strong); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); line-height: 1.7; }
.bio__text p { margin: 0 0 1.1em; font-size: clamp(15px, 1.25vw, 17.5px); line-height: 1.7; max-width: 62ch; }
.bio__lead::first-line { font-weight: 700; }
.bio__text .bio__big { font-family: var(--serif); font-size: clamp(21px, 2vw, 28px); line-height: 1.36; max-width: 34ch; margin: 1.4em 0 1.3em; }
.timeline__title { margin: clamp(40px, 6vw, 74px) 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.timeline { margin: 0; border-top: 1px solid var(--ink); }
.timeline div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 18px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; }
.timeline dt { font-size: 11px; letter-spacing: 0.06em; color: var(--red); font-variant-numeric: tabular-nums; padding-top: 3px; }
.timeline dd { margin: 0; max-width: 58ch; }
.works-cite { margin-top: clamp(38px, 6vw, 64px); padding-top: 20px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px 40px; }
.works-cite h3 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.works-cite p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--grey); }

/* ------------------------------------------------------------ expositions */
.expo { margin: 0; padding: 0; list-style: none; }
.expo__row { display: grid; grid-template-columns: 5.5rem minmax(0, 1.7fr) minmax(0, 1fr) 7rem; gap: 20px; align-items: baseline; padding-block: clamp(12px, 1.4vw, 17px); border-top: 1px solid var(--line); transition: background 0.3s, padding-left 0.35s var(--ease); }
.expo__row:last-child { border-bottom: 1px solid var(--line); }
.expo__row:hover { background: var(--white-2); padding-left: 10px; }
.expo__year { font-size: 11.5px; color: var(--red); font-variant-numeric: tabular-nums; }
.expo__title { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.45; }
.expo__title b { font-weight: 700; }
.expo__place { font-size: 12.5px; color: var(--grey); }
.expo__city { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-2); text-align: right; }
.expo__group { margin: clamp(28px, 4vw, 44px) 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------------------------------------------------------------- atelier */
.atelier { border-top: 1px solid var(--ink); background: var(--white); }
.atelier__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 96px); align-items: end; }
.atelier__title { margin: 0 0 22px; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5.4vw, 76px); line-height: 0.94; letter-spacing: -0.045em; max-width: 14ch; }
.atelier__title .accent { color: var(--red); }
.atelier__p { margin: 0 0 1em; font-size: 15.5px; line-height: 1.7; color: var(--grey); max-width: 46ch; }
.atelier__mail { display: inline-block; margin-top: 8px; font-family: var(--display); font-weight: 500; font-size: clamp(19px, 2.2vw, 30px); letter-spacing: -0.02em; border-bottom: 2px solid var(--red); padding-bottom: 3px; }
.atelier__mail:hover { color: var(--red); }
.atelier__note { margin-top: 18px; max-width: 38ch; font-size: 12px; color: var(--grey-2); line-height: 1.65; }
.atelier__card { border-top: 1px solid var(--ink); padding-top: 14px; }
.atelier__card div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.atelier__card dt { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-2); padding-top: 3px; }
.atelier__card dd { margin: 0; }

/* ------------------------------------------------------------------ foot */
.foot { border-top: 1px solid var(--ink); padding-block: 28px 34px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; align-items: baseline; }
.foot__mark { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.04em; text-transform: none; color: var(--ink); }
.foot__note { margin-top: 18px; max-width: 78ch; font-size: 11.5px; line-height: 1.8; letter-spacing: 0.02em; text-transform: none; color: var(--grey-2); }
.foot a { border-bottom: 1px solid var(--line-strong); }
.foot a:hover { color: var(--red); border-color: var(--red); }

/* ---------------------------------------------------------------- viewer */
.viewer { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--white); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s; }
.viewer.is-open { opacity: 1; visibility: visible; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px var(--gutter); border-bottom: 1px solid var(--ink); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.viewer__counter { color: var(--red); font-variant-numeric: tabular-nums; }
.viewer__close { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ink); cursor: pointer; }
.viewer__close svg { stroke: var(--ink); stroke-width: 1.2; }
.viewer__stage { position: relative; min-height: 0; display: grid; place-items: center; padding: clamp(12px, 3vh, 30px) var(--gutter); }
.viewer__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 70px -50px rgba(0, 0, 0, 0.5); }
.viewer__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 16px var(--gutter) 20px; border-top: 1px solid var(--ink); }
.viewer__meta h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.2vw, 28px); }
.viewer__meta p { margin: 0; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.viewer__nav { display: flex; gap: 8px; }
.viewer__nav button { width: 44px; height: 44px; border: 1px solid var(--ink); display: grid; place-items: center; cursor: pointer; }
.viewer__nav button:hover { background: var(--ink); }
.viewer__nav button:hover svg { stroke: var(--white); }
.viewer__nav svg { stroke: var(--ink); stroke-width: 1.2; fill: none; }

/* ---------------------------------------------------------------- repères */
.guide { display: none; }
@media (min-width: 1180px) {
  .guide { display: block; position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 64; background: var(--white); border: 1px solid var(--ink); opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none; }
  .guide.is-on { opacity: 1; pointer-events: auto; }
  .guide__list { list-style: none; margin: 0; padding: 0; display: flex; }
  .guide a { display: flex; align-items: center; gap: 7px; padding: 10px 14px; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); border-left: 1px solid var(--line); transition: color 0.3s; }
  .guide li:first-child a { border-left: 0; }
  .guide a i { width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; }
  .guide a:hover, .guide a:focus-visible { color: var(--ink); }
  .guide a[aria-current="true"] { color: var(--red); }
  .guide a[aria-current="true"] i { background: var(--red); border-color: var(--red); }
  .guide__bar { display: none; }
}
@media (max-width: 1179px) {
  .guide { display: block; position: fixed; left: 0; right: 0; top: var(--navh, 70px); z-index: 64; height: 30px; background: var(--white); border-bottom: 1px solid var(--ink); opacity: 0; transform: translateY(-100%); transition: opacity 0.4s, transform 0.4s var(--ease); pointer-events: none; }
  .guide.is-on { opacity: 1; transform: none; }
  .guide__list { display: none; }
  .guide__bar { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
  .guide__now { color: var(--red); }
  .guide__count { color: var(--grey-2); font-variant-numeric: tabular-nums; }
  .guide__fill { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
}

/* -------------------------------------------------------------- animation */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav__full { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .section__head { grid-template-columns: minmax(0, 1fr); }
  .practices__lede { grid-template-columns: minmax(0, 1fr); }
  .practices__lede p + p { justify-self: start; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__links { display: flex; position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 0 var(--gutter); background: var(--white); z-index: -1; }
  .nav.is-open .nav__link { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; text-transform: none; padding-block: 6px; }
  .nav.is-open .nav__link::after { display: none; }
  .nav.is-open .nav__menu-foot { display: block; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); line-height: 2; }
  .nav.is-open .nav__menu-foot a { color: var(--red); display: block; margin-bottom: 6px; font-size: 12px; }
  .hero { min-height: 92svh; }
  .hero__label { grid-template-columns: 1fr; gap: 6px; }
  .hero__label .hero__label-right { text-align: left; }
  .hero__fallback::after { width: 48vw; right: 4%; top: 10%; }
  .hero__scrim { background: linear-gradient(180deg, rgba(247, 245, 239, 0.35), rgba(247, 245, 239, 0) 26%, var(--white) 62%, var(--white) 100%); }
  .practice { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .practice__plate { grid-column: 1 / -1; margin-top: 16px; }
  .bio { grid-template-columns: minmax(0, 1fr); }
  .bio__portrait { position: relative; top: 0; }
  .bio__portrait img { max-width: 220px; }
  .works-cite { grid-template-columns: minmax(0, 1fr); }
  .expo__row { grid-template-columns: 4rem minmax(0, 1fr); gap: 4px 14px; }
  .expo__place, .expo__city { grid-column: 2; text-align: left; }
  .atelier__grid { grid-template-columns: minmax(0, 1fr); }
  .ronde__item { left: -94px; top: -126px; width: 188px; height: 252px; padding: 12px; }
  .ronde__foot { grid-template-columns: 1fr; }
  .viewer__foot { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .viewer__nav { justify-content: flex-end; }
  main section[id] { scroll-margin-top: 116px; }
}
@media (max-width: 620px) {
  .wall { column-count: 1; }
  .works__count { display: none; }
  .filters { gap: 4px 16px; }
  .ronde__stage { height: 400px; }
  .plate__cap { height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__scene { display: none; }
  .hero__fallback { display: block; }
  .plate__btn:hover + .plate__cap .plate__front { transform: none; opacity: 1; }
  .plate__btn:hover + .plate__cap .plate__back { transform: translateY(130%); opacity: 0; }
}
