/* ==========================================================================
   Fadelle Institut — main stylesheet (mobile-first)
   Layers: reset → tokens → base → layout → components → sections → utilities
   ========================================================================== */
@layer reset, tokens, base, layout, components, sections, utilities;

/* ---------- Fonts (self-hosted, variable, swap) ---------- */
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
/* Metric-matched fallbacks to limit layout shift while fonts load */
@font-face { font-family: "Bodoni Fallback"; src: local("Georgia"); size-adjust: 96%; ascent-override: 92%; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 98%; }

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-height: 100svh; }
  img, picture, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  a { color: inherit; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  [hidden] { display: none !important; }
  p, h1, h2, h3, h4 { overflow-wrap: break-word; }
  dialog { padding: 0; border: 0; max-width: none; max-height: none; }
}

/* ---------- Design tokens ---------- */
@layer tokens {
  :root {
    /* Brand — sampled from the FMG ART logo */
    --indigo: #211b63;
    --indigo-deep: #110e33;
    --indigo-night: #0b0a22;
    --gold: #b8862e;
    --gold-ink: #845c18;          /* gold for text on ivory — 5.1:1 */
    --gold-light: #e0bd78;        /* gold for text on indigo — 8.9:1 */

    /* Neutrals */
    --paper: #f6f1e7;             /* ivory */
    --paper-2: #efe8da;           /* warm surface */
    --paper-3: #e4dbc8;
    --ink: #17141f;               /* near-black charcoal */
    --ink-2: #4b4757;             /* secondary text — 8.2:1 on ivory */
    --ink-3: #6e6979;             /* tertiary — 4.9:1 on ivory */
    --line: #d8cfbd;
    --line-strong: #b9ae98;
    --on-dark: #f6f1e7;
    --on-dark-2: #c9c3d9;
    --line-dark: rgb(246 241 231 / .16);

    /* Status */
    --ok: #2f6b4f;
    --warn: #9a5b12;
    --err: #a23a2c;

    /* Typography */
    --f-display: "Bodoni Moda", "Bodoni Fallback", Georgia, serif;
    --f-body: "Manrope", "Manrope Fallback", system-ui, sans-serif;
    --fs-xs: .75rem;
    --fs-sm: .875rem;
    --fs-base: 1rem;
    --fs-md: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
    --fs-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
    --fs-xl: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
    --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
    --fs-3xl: clamp(2.5rem, 1.5rem + 4.6vw, 5.5rem);
    --fs-hero: clamp(3rem, 1.4rem + 7.4vw, 8.5rem);

    /* Space (8pt based, fluid at section scale) */
    --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
    --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
    --section: clamp(4.5rem, 3rem + 7vw, 10rem);
    --gutter: clamp(1.25rem, .6rem + 3.2vw, 4rem);
    --max: 90rem;
    --measure: 38rem;

    /* Motion — restrained */
    --ease: cubic-bezier(.2, .7, .1, 1);
    --dur: .5s;
    --dur-fast: .2s;

    --header-h: 4.25rem;
    --radius: 2px;
    color-scheme: light;
  }
  @media (min-width: 64em) { :root { --header-h: 5.25rem; } }
  @media (prefers-reduced-motion: reduce) { :root { --dur: 0s; --dur-fast: 0s; } }
}

/* ---------- Base ---------- */
@layer base {
  html { scroll-padding-top: calc(var(--header-h) + 1rem); }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    font-feature-settings: "kern", "liga";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }
  h1, h2, h3, .display {
    font-family: var(--f-display);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.015em;
    font-optical-sizing: auto;
    text-wrap: balance;
  }
  h4 { font-size: var(--fs-base); font-weight: 600; }
  em, .italic { font-style: italic; }
  h1 em, h2 em, h3 em, .display em { color: var(--gold-ink); }
  p { text-wrap: pretty; }
  a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
  ::selection { background: var(--indigo); color: var(--paper); }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  hr { border: 0; border-top: 1px solid var(--line); }
  .on-dark h1 em, .on-dark h2 em, .on-dark h3 em, .on-dark .display em { color: var(--gold-light); }
}

/* ---------- Layout primitives ---------- */
@layer layout {
  .wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
  .wrap--narrow { max-width: 62rem; }
  .section { padding-block: var(--section); }
  .section--tight { padding-block: calc(var(--section) * .6); }
  .stack > * + * { margin-top: var(--stack, var(--s-4)); }
  .cluster { display: flex; flex-wrap: wrap; gap: var(--gap, var(--s-3)); align-items: center; }
  .grid { display: grid; gap: var(--gap, var(--s-6)); }
  @media (min-width: 48em) {
    .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (min-width: 64em) {
    .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  .on-dark { background: var(--indigo-deep); color: var(--on-dark); --line: var(--line-dark); }
  .on-indigo { background: var(--indigo); color: var(--on-dark); --line: var(--line-dark); }
  .on-paper-2 { background: var(--paper-2); }
  main { display: block; }
}

/* ---------- Components ---------- */
@layer components {
  /* Skip link */
  .skip { position: absolute; left: var(--s-4); top: -4rem; z-index: 100; background: var(--ink); color: var(--paper);
    padding: var(--s-3) var(--s-4); text-decoration: none; transition: top var(--dur-fast); }
  .skip:focus { top: var(--s-4); }

  /* Eyebrow / overline */
  .eyebrow { display: inline-flex; align-items: center; gap: var(--s-3); font-size: var(--fs-xs); font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
  .eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: .6; }
  .eyebrow .num { font-family: var(--f-display); font-style: italic; letter-spacing: 0; font-size: var(--fs-sm); text-transform: none; color: var(--gold-ink); }
  .on-dark .eyebrow, .on-indigo .eyebrow { color: var(--on-dark-2); }
  .on-dark .eyebrow .num, .on-indigo .eyebrow .num { color: var(--gold-light); }

  .lead { font-size: var(--fs-md); line-height: 1.65; color: var(--ink-2); max-width: var(--measure); }
  .on-dark .lead, .on-indigo .lead { color: var(--on-dark-2); }
  .prose { max-width: var(--measure); color: var(--ink-2); }
  .prose > * + * { margin-top: 1.1em; }
  .prose h2 { font-size: var(--fs-xl); color: var(--ink); margin-top: 1.8em; }
  .prose blockquote { font-family: var(--f-display); font-style: italic; font-size: var(--fs-lg); line-height: 1.35;
    color: var(--ink); border-left: 2px solid var(--gold); padding-left: var(--s-5); margin-block: 2em; }

  /* Section heading block */
  .head { display: grid; gap: var(--s-5); margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 5rem); }
  .head h2 { font-size: var(--fs-2xl); max-width: 18ch; }
  @media (min-width: 64em) {
    .head--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: var(--s-7); }
  }

  /* Buttons */
  .btn { --bg: var(--ink); --fg: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
    min-height: 3rem; padding: .75rem 1.5rem; background: var(--bg); color: var(--fg); border: 1px solid var(--bg);
    font-size: var(--fs-sm); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
    border-radius: var(--radius); transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
  .btn:hover { --bg: var(--indigo); }
  .btn--gold { --bg: var(--gold); --fg: var(--indigo-night); }
  .btn--gold:hover { --bg: var(--gold-light); }
  .btn--light { --bg: var(--paper); --fg: var(--ink); }
  .btn--light:hover { --bg: var(--gold-light); }
  .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
  .btn--ghost:hover { border-color: var(--ink); background: transparent; }
  .on-dark .btn--ghost, .on-indigo .btn--ghost, .btn--ghost-light { color: var(--on-dark); border-color: rgb(246 241 231 / .35); background: transparent; }
  .on-dark .btn--ghost:hover, .on-indigo .btn--ghost:hover, .btn--ghost-light:hover { border-color: var(--on-dark); }
  .btn--block { width: 100%; }
  .btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
  .btn svg { width: 1.1em; height: 1.1em; flex: none; }

  .link-arrow { display: inline-flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding-block: .5rem; min-height: 2.75rem; }
  .link-arrow::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; transition: width var(--dur) var(--ease); }
  .link-arrow:hover::after { width: 3.5rem; }

  .icon { width: 1.25rem; height: 1.25rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

  /* ---------- Header ---------- */
  .site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgb(246 241 231 / .94);
    border-bottom: 1px solid transparent; transition: background var(--dur) var(--ease), border-color var(--dur), color var(--dur);
    backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
  .site-header.is-scrolled { border-bottom-color: var(--line); }
  .site-header__inner { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
  .brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; margin-right: auto; min-height: 2.75rem; }
  .brand img { height: 2.6rem; width: auto; }
  .brand__name { display: grid; line-height: 1; }
  .brand__name b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; letter-spacing: .01em; }
  .brand__name small { font-size: .625rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); margin-top: .3rem; }
  .brand .logo-light { display: none; }

  /* Transparent header over immersive heroes */
  .has-immersive .site-header:not(.is-scrolled):not(.menu-open) { background: transparent; color: var(--on-dark); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .has-immersive .site-header:not(.is-scrolled):not(.menu-open) .logo-ink { display: none; }
  .has-immersive .site-header:not(.is-scrolled):not(.menu-open) .logo-light { display: block; }
  .has-immersive .site-header:not(.is-scrolled):not(.menu-open) .brand__name small { color: var(--on-dark-2); }
  .has-immersive .site-header { position: fixed; inset-inline: 0; }

  .nav-primary { display: none; }
  .nav-primary ul { display: flex; gap: clamp(1rem, .2rem + 1.4vw, 2rem); }
  .nav-primary a { font-size: var(--fs-sm); font-weight: 500; text-decoration: none; padding-block: .5rem; position: relative; white-space: nowrap; }
  .nav-primary a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
  .nav-primary a:hover::after, .nav-primary a[aria-current="page"]::after { transform: scaleX(1); }

  .header-tools { display: flex; align-items: center; gap: var(--s-2); }
  .lang-switch { display: inline-flex; align-items: center; border: 1px solid currentColor; border-radius: 999px; padding: 2px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; opacity: .9; }
  .lang-switch a, .lang-switch span { display: grid; place-items: center; min-width: 2.25rem; height: 2rem; border-radius: 999px; text-decoration: none; }
  .lang-switch [aria-current="true"] { background: currentColor; }
  .lang-switch [aria-current="true"] b { color: var(--paper); }
  .has-immersive .site-header:not(.is-scrolled):not(.menu-open) .lang-switch [aria-current="true"] b { color: var(--indigo-deep); }
  .icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; text-decoration: none; }
  .icon-btn:hover { background: rgb(23 20 31 / .06); }
  .header-cta { display: none; }

  .menu-toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; }
  .menu-toggle span { display: block; width: 1.5rem; height: 1px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    transition: box-shadow var(--dur-fast), transform var(--dur-fast); }
  .menu-open .menu-toggle span { box-shadow: none; transform: rotate(45deg); }
  .menu-open .menu-toggle span::after { content: ""; display: block; width: 1.5rem; height: 1px; background: currentColor; transform: rotate(-90deg); }

  @media (min-width: 75em) {
    .nav-primary { display: block; }
    .menu-toggle { display: none; }
    .header-cta { display: inline-flex; min-height: 2.5rem; padding: .5rem 1.1rem; }
  }

  /* Mobile menu — full-screen immersive panel */
  .mobile-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--indigo-deep); color: var(--on-dark);
    display: flex; flex-direction: column; padding: var(--s-6) var(--gutter) var(--s-6); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-1rem); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s var(--dur); }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .mobile-menu ol { list-style: none; padding: 0; counter-reset: m; }
  .mobile-menu li { counter-increment: m; border-bottom: 1px solid var(--line-dark); }
  .mobile-menu li a { display: flex; align-items: baseline; gap: var(--s-4); padding-block: .85rem; font-family: var(--f-display);
    font-size: clamp(1.75rem, 1.2rem + 3vw, 2.75rem); line-height: 1.1; text-decoration: none; }
  .mobile-menu li a::before { content: "0" counter(m); font-family: var(--f-body); font-size: var(--fs-xs); letter-spacing: .1em; color: var(--gold-light); }
  .mobile-menu li:nth-child(n+10) a::before { content: counter(m); }
  .mobile-menu li a[aria-current="page"] { color: var(--gold-light); font-style: italic; }
  .mobile-menu__foot { margin-top: auto; padding-top: var(--s-6); display: grid; gap: var(--s-4); font-size: var(--fs-sm); color: var(--on-dark-2); }
  body.no-scroll { overflow: hidden; }

  /* ---------- Artwork image frame ---------- */
  .art { position: relative; overflow: hidden; background: var(--tone, var(--paper-3)); }
  .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
  .art--contain img { object-fit: contain; }
  a:hover .art img, .art-card:hover .art img { transform: scale(1.035); }

  /* Artwork card — museum label caption */
  .art-card { display: block; text-decoration: none; position: relative; }
  .art-card .art { aspect-ratio: var(--ratio, 4 / 5); }
  .art-card__label { display: grid; grid-template-columns: 1fr auto; gap: .15rem var(--s-4); padding-top: var(--s-4); }
  .art-card__title { font-family: var(--f-display); font-style: italic; font-size: var(--fs-lg); line-height: 1.2; }
  .art-card__artist { grid-column: 1; font-size: var(--fs-sm); font-weight: 600; }
  .art-card__meta { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .02em; }
  .art-card__price { grid-row: 1; grid-column: 2; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; align-self: center; }
  .on-dark .art-card__meta { color: var(--on-dark-2); }
  .status { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; }
  .status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
  .status--available { color: var(--ok); }
  .status--reserved { color: var(--warn); }
  .status--sold { color: var(--err); }
  .status--collection { color: var(--ink-3); }
  .on-dark .status--available { color: #8fd1ae; }
  .on-dark .status--reserved { color: #f0b46a; }
  .on-dark .status--sold { color: #f1a197; }
  .on-dark .status--collection { color: var(--on-dark-2); }
  .art-card__badge { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 1; background: var(--paper); padding: .3rem .6rem; }

  /* Artist card */
  .artist-card { display: grid; gap: var(--s-4); text-decoration: none; }
  .artist-card .art { aspect-ratio: 3 / 4; }
  .artist-card__name { font-family: var(--f-display); font-size: var(--fs-xl); line-height: 1.1; }
  .artist-card__meta { font-size: var(--fs-sm); color: var(--ink-3); }
  .on-dark .artist-card__meta { color: var(--on-dark-2); }

  /* Event row (editorial list) */
  .event-row { display: grid; gap: var(--s-4); padding-block: var(--s-6); border-top: 1px solid var(--line); text-decoration: none; }
  .event-row:last-child { border-bottom: 1px solid var(--line); }
  .event-row__date { font-family: var(--f-display); font-size: var(--fs-xl); line-height: 1; }
  .event-row__date small { display: block; font-family: var(--f-body); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: .5rem; }
  .on-dark .event-row__date small { color: var(--on-dark-2); }
  .event-row__title { font-family: var(--f-display); font-size: var(--fs-xl); line-height: 1.1; }
  .event-row__meta { font-size: var(--fs-sm); color: var(--ink-3); }
  .on-dark .event-row__meta { color: var(--on-dark-2); }
  .event-row .art { aspect-ratio: 16 / 10; }
  @media (min-width: 48em) {
    .event-row { grid-template-columns: 9rem minmax(0, 1fr) 14rem; align-items: center; gap: var(--s-6); }
  }
  @media (min-width: 64em) { .event-row { grid-template-columns: 11rem minmax(0, 1fr) 20rem; } }
  .event-row:hover .event-row__title { font-style: italic; }

  .tag { display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
  .on-dark .tag, .on-indigo .tag { color: var(--gold-light); }

  /* Post card */
  .post-card { display: grid; gap: var(--s-4); text-decoration: none; align-content: start; }
  .post-card .art { aspect-ratio: 3 / 2; }
  .post-card h3 { font-size: var(--fs-lg); line-height: 1.2; }
  .post-card p { font-size: var(--fs-sm); color: var(--ink-2); }
  .post-card__meta { font-size: var(--fs-xs); color: var(--ink-3); display: flex; gap: var(--s-3); }

  /* Filter chips */
  .chips { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; min-height: 2.75rem; padding: .5rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 999px;
    font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
  .chip:hover { border-color: var(--ink); }
  .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .chip .count { font-size: var(--fs-xs); opacity: .6; margin-left: .3rem; }
  @media (min-width: 64em) { .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }

  /* Forms — editorial underline style */
  .field { display: grid; gap: var(--s-2); }
  .field label, .field .label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
  .field .hint { font-size: var(--fs-xs); color: var(--ink-3); }
  .input, .select, .textarea { width: 100%; min-height: 3rem; padding: .75rem 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
    border-radius: 0; font-size: 1rem; transition: border-color var(--dur-fast); appearance: none; }
  .textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
  .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317141f' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right center; background-size: 1.1rem; padding-right: 1.75rem; }
  .input:focus, .select:focus, .textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
  .input::placeholder, .textarea::placeholder { color: var(--ink-3); }
  .field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-bottom-color: var(--err); box-shadow: 0 1px 0 var(--err); }
  .field__error { display: none; font-size: var(--fs-xs); color: var(--err); font-weight: 600; }
  .field.is-invalid .field__error { display: block; }
  .on-dark .input, .on-indigo .input { border-bottom-color: rgb(246 241 231 / .4); }
  .on-dark .input:focus, .on-indigo .input:focus { border-bottom-color: var(--on-dark); box-shadow: 0 1px 0 var(--on-dark); }
  .on-dark .input::placeholder, .on-indigo .input::placeholder { color: var(--on-dark-2); }
  .on-dark .field label, .on-indigo .field label { color: var(--on-dark-2); }

  .check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; min-height: 2.75rem; padding-top: .55rem; }
  .check input { appearance: none; flex: none; width: 1.25rem; height: 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--radius); margin-top: .1rem; display: grid; place-items: center; background: var(--paper); }
  .check input[type="radio"] { border-radius: 50%; }
  .check input:checked { background: var(--ink); border-color: var(--ink); }
  .check input:checked::after { content: ""; width: .35rem; height: .65rem; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
  .check input[type="radio"]:checked::after { width: .45rem; height: .45rem; border: 0; border-radius: 50%; background: var(--paper); transform: none; }
  .on-dark .check { color: var(--on-dark-2); }

  .form-grid { display: grid; gap: var(--s-6) var(--s-5); }
  @media (min-width: 48em) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }

  .notice { display: none; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-left: 2px solid var(--ok); background: rgb(47 107 79 / .08); font-size: var(--fs-sm); }
  .notice.is-visible { display: grid; }
  .notice--info { border-left-color: var(--gold); background: rgb(184 134 46 / .1); }
  .notice--error { border-left-color: var(--err); background: rgb(162 58 44 / .08); }
  .notice strong { font-weight: 700; }
  .on-dark .notice { background: rgb(246 241 231 / .06); }

  /* Rail (horizontal scroll gallery) */
  .rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  @media (min-width: 48em) { .rail { grid-auto-columns: 42%; } }
  @media (min-width: 75em) { .rail { grid-auto-columns: 27%; gap: var(--s-6); } }
  .rail-nav { display: flex; align-items: center; gap: var(--s-4); }
  .rail-progress { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
  .rail-progress span { position: absolute; inset: 0 auto 0 0; width: var(--p, 20%); background: currentColor; transition: width .2s linear; }
  .round-btn { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--line-strong); border-radius: 50%; transition: background var(--dur-fast), color var(--dur-fast); }
  .round-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .on-dark .round-btn { border-color: rgb(246 241 231 / .3); }
  .on-dark .round-btn:hover { background: var(--paper); color: var(--ink); }

  /* Page hero (inner pages) */
  .page-hero { padding-top: clamp(3rem, 2rem + 5vw, 7rem); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
  .page-hero h1 { font-size: var(--fs-3xl); max-width: 14ch; }
  .page-hero .lead { margin-top: var(--s-5); }
  .breadcrumb { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: var(--s-5); letter-spacing: .04em; }
  .breadcrumb a { text-decoration: none; }
  .breadcrumb a:hover { text-decoration: underline; }
  .breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); opacity: .6; }
  .on-dark .breadcrumb { color: var(--on-dark-2); }

  /* Dialog / lightbox */
  .dialog { background: var(--indigo-night); color: var(--on-dark); width: 100%; height: 100%; inset: 0; }
  .dialog::backdrop { background: rgb(11 10 34 / .92); }
  .dialog[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade var(--dur) var(--ease); }
  .dialog__bar { display: flex; justify-content: space-between; align-items: center; padding: var(--s-3) var(--gutter); gap: var(--s-4); }
  .dialog__close { width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid rgb(246 241 231 / .3); border-radius: 50%; }
  @keyframes fade { from { opacity: 0; } }

  /* Newsletter */
  .newsletter-form { display: grid; gap: var(--s-4); }
  @media (min-width: 40em) { .newsletter-form__row { display: flex; gap: var(--s-4); align-items: end; } .newsletter-form__row .field { flex: 1; } }

  /* WhatsApp floating shortcut */
  .wa-fab { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
    display: inline-flex; align-items: center; gap: var(--s-2); height: 3.25rem; padding-inline: 1rem; border-radius: 999px;
    background: var(--indigo); color: var(--paper); text-decoration: none; font-size: var(--fs-sm); font-weight: 600;
    box-shadow: 0 10px 30px -10px rgb(17 14 51 / .55); transition: transform var(--dur-fast); }
  .wa-fab:hover { transform: translateY(-2px); }
  .wa-fab svg { width: 1.35rem; height: 1.35rem; }
  .wa-fab span { display: none; }
  @media (min-width: 48em) { .wa-fab span { display: inline; } }

  /* Tabs (segmented) */
  .tabs { display: flex; gap: var(--s-5); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .tabs [role="tab"] { min-height: 3rem; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-3); }
  .tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

  /* Accordion (FAQ) */
  .faq details { border-top: 1px solid var(--line); }
  .faq details:last-child { border-bottom: 1px solid var(--line); }
  .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center;
    padding-block: var(--s-5); font-family: var(--f-display); font-size: var(--fs-lg); line-height: 1.25; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-family: var(--f-body); font-weight: 300; font-size: 1.75rem; line-height: 1; transition: transform var(--dur-fast); }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq details > div { padding-bottom: var(--s-5); max-width: var(--measure); color: var(--ink-2); }

  /* Empty state */
  .empty { display: none; padding: var(--s-8) 0; text-align: center; border-top: 1px solid var(--line); }
  .empty.is-visible { display: block; }
  .empty h3 { font-size: var(--fs-xl); font-style: italic; }
  .empty p { color: var(--ink-3); margin: var(--s-3) auto var(--s-5); max-width: 30rem; }
}

/* ---------- Sections ---------- */
@layer sections {
  /* ===== Home hero — immersive ===== */
  .hero { position: relative; min-height: 100svh; background: var(--indigo-night); color: var(--on-dark); overflow: hidden; isolation: isolate;
    display: grid; align-items: end; padding-top: calc(var(--header-h) + 2rem); }
  .hero__media { position: absolute; inset: 0; z-index: -2; }
  .hero__media .art { position: absolute; inset: 0; background: var(--indigo-night); }
  .hero__media img { opacity: .78; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgb(11 10 34 / .55) 0%, rgb(11 10 34 / 0) 30%, rgb(11 10 34 / .35) 55%, rgb(11 10 34 / .92) 100%); }
  .hero__content { padding-bottom: clamp(2rem, 1rem + 4vw, 4.5rem); display: grid; gap: var(--s-6); }
  .hero h1 { font-size: var(--fs-hero); line-height: .95; letter-spacing: -.03em; max-width: 11ch; }
  .hero h1 em { color: var(--gold-light); }
  .hero__lead { font-size: var(--fs-md); color: var(--on-dark-2); max-width: 30rem; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
  .hero__caption { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); border-top: 1px solid var(--line-dark); padding-top: var(--s-4); font-size: var(--fs-xs); color: var(--on-dark-2); }
  .hero__caption cite { font-family: var(--f-display); font-size: var(--fs-sm); color: var(--on-dark); }
  .scroll-cue { display: none; }

  @media (min-width: 64em) {
    .hero { align-items: stretch; }
    .hero__media { left: auto; width: 46%; inset-block: 0; }
    .hero__media img { opacity: 1; }
    .hero::before { background: linear-gradient(90deg, var(--indigo-night) 54%, rgb(11 10 34 / .55) 62%, rgb(11 10 34 / 0) 80%), linear-gradient(0deg, rgb(11 10 34 / .6), transparent 30%); }
    .hero__content { align-content: end; grid-template-columns: minmax(0, 1fr); padding-bottom: 3rem; }
    .hero h1 { max-width: 12ch; position: relative; z-index: 1; }
    .scroll-cue { display: inline-flex; align-items: center; gap: var(--s-3); font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2); text-decoration: none; }
    .scroll-cue i { width: 1px; height: 3rem; background: linear-gradient(var(--gold-light), transparent); }
  }

  /* Scroll-driven hero image drift (progressive enhancement) */
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      .hero__media img { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
      @keyframes hero-drift { to { transform: scale(1.12) translateY(4%); opacity: .45; } }
    }
  }

  /* ===== Manifesto / intro ===== */
  .manifesto { display: grid; gap: var(--s-7); }
  .manifesto__statement { font-family: var(--f-display); font-size: var(--fs-2xl); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
  .manifesto__statement em { color: var(--gold-ink); }
  .manifesto__aside { display: grid; gap: var(--s-6); align-content: start; }
  .figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-5); }
  .figures dt { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .04em; order: 2; }
  .figures div { display: flex; flex-direction: column; }
  .figures dd { font-family: var(--f-display); font-size: var(--fs-2xl); line-height: 1; }
  @media (min-width: 64em) {
    .manifesto { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--s-8); align-items: end; }
  }

  /* ===== Editorial gallery (asymmetric) ===== */
  .editorial { display: grid; gap: var(--s-7) var(--s-5); }
  @media (min-width: 48em) {
    .editorial { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .editorial > :nth-child(1) { grid-column: 1 / 5; }
    .editorial > :nth-child(2) { grid-column: 5 / 7; align-self: end; }
    .editorial > :nth-child(3) { grid-column: 1 / 3; }
    .editorial > :nth-child(4) { grid-column: 3 / 7; margin-top: var(--s-8); }
  }
  @media (min-width: 64em) {
    .editorial { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); }
    .editorial > :nth-child(1) { grid-column: 1 / 7; }
    .editorial > :nth-child(2) { grid-column: 8 / 12; align-self: center; }
    .editorial > :nth-child(3) { grid-column: 2 / 6; margin-top: 0; }
    .editorial > :nth-child(4) { grid-column: 7 / 13; margin-top: calc(var(--s-8) * 1.5); }
  }

  /* ===== Immersion — sticky artwork storytelling ===== */
  .immersion { position: relative; background: var(--indigo-night); color: var(--on-dark); }
  .immersion__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .immersion__stage .art { position: absolute; inset: 0; background: var(--indigo-night); }
  .immersion__stage img { opacity: .5; }
  .immersion__stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgb(11 10 34 / .75) 100%); }
  .immersion__chapters { position: relative; margin-top: -100svh; z-index: 1; }
  .chapter { min-height: 100svh; display: grid; align-items: center; padding-block: var(--section); }
  .chapter__card { max-width: 34rem; padding: clamp(1.5rem, 1rem + 2vw, 3rem); background: rgb(11 10 34 / .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--line-dark); }
  .chapter__card h3 { font-size: var(--fs-2xl); margin-block: var(--s-4); }
  .chapter__card p { color: var(--on-dark-2); }
  .chapter:nth-child(even) .chapter__card { margin-left: auto; }
  .chapter--quote .chapter__card { background: none; border: 0; backdrop-filter: none; max-width: 52rem; margin-inline: auto; text-align: center; }
  .chapter--quote blockquote { font-family: var(--f-display); font-style: italic; font-size: var(--fs-2xl); line-height: 1.15; }
  .chapter--quote figcaption { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--on-dark-2); letter-spacing: .08em; }

  /* ===== Disciplines list (hover reveals artwork) ===== */
  .disciplines { counter-reset: d; }
  .discipline { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-4); padding-block: var(--s-5);
    border-top: 1px solid var(--line); text-decoration: none; position: relative; counter-increment: d; }
  .disciplines > :last-child { border-bottom: 1px solid var(--line); }
  .discipline::before { content: "0" counter(d); font-size: var(--fs-xs); letter-spacing: .1em; color: var(--ink-3); width: 2rem; }
  .discipline h3 { font-size: var(--fs-2xl); transition: transform var(--dur) var(--ease), color var(--dur); }
  .discipline__count { font-size: var(--fs-sm); color: var(--ink-3); }
  .discipline__thumb { display: none; }
  .discipline:hover h3 { font-style: italic; transform: translateX(.5rem); color: var(--indigo); }
  @media (min-width: 64em) and (hover: hover) {
    .discipline__thumb { display: block; position: absolute; right: 18%; top: 50%; width: 13rem; aspect-ratio: 4/5; z-index: 2; pointer-events: none;
      opacity: 0; transform: translateY(-50%) rotate(-3deg) scale(.92); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
    .discipline:hover .discipline__thumb { opacity: 1; transform: translateY(-50%) rotate(2deg) scale(1); }
  }

  /* ===== Split feature (image + text) ===== */
  .split { display: grid; gap: var(--s-7); align-items: center; }
  .split .art { aspect-ratio: 4 / 5; }
  @media (min-width: 64em) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
    .split--reverse > :first-child { order: 2; }
    .split--wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  }

  /* ===== Services list ===== */
  .service-list { display: grid; }
  .service { display: grid; gap: var(--s-3); padding-block: var(--s-6); border-top: 1px solid var(--line); }
  .service:last-child { border-bottom: 1px solid var(--line); }
  .service__num { font-family: var(--f-display); font-style: italic; color: var(--gold-ink); font-size: var(--fs-lg); }
  .on-dark .service__num, .on-indigo .service__num { color: var(--gold-light); }
  .service h3 { font-size: var(--fs-xl); }
  .service p { color: var(--ink-2); max-width: 36rem; }
  .on-dark .service p, .on-indigo .service p { color: var(--on-dark-2); }
  @media (min-width: 64em) { .service { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: baseline; gap: var(--s-6); } }

  /* ===== Exhibitor CTA band ===== */
  .cta-band { position: relative; overflow: hidden; isolation: isolate; }
  .cta-band .art { position: absolute; inset: 0; z-index: -1; }
  .cta-band .art img { opacity: .35; }
  .cta-band__inner { display: grid; gap: var(--s-6); padding-block: var(--section); }
  .cta-band h2 { font-size: var(--fs-3xl); max-width: 14ch; }
  .steps { display: grid; gap: var(--s-5); counter-reset: s; list-style: none; padding: 0; }
  .steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line-dark); }
  .steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-display); font-style: italic; color: var(--gold-light); }
  .steps strong { display: block; font-weight: 600; }
  .steps span { color: var(--on-dark-2); font-size: var(--fs-sm); }
  @media (min-width: 64em) { .cta-band__inner { grid-template-columns: 1.2fr 1fr; align-items: end; gap: var(--s-8); } }

  /* ===== Footer ===== */
  .site-footer { background: var(--indigo-night); color: var(--on-dark); --line: var(--line-dark); padding-top: var(--section); padding-bottom: calc(var(--s-7) + 3rem); }
  .footer-top { display: grid; gap: var(--s-7); padding-bottom: var(--s-7); border-bottom: 1px solid var(--line-dark); }
  .footer-top h2 { font-size: var(--fs-2xl); max-width: 16ch; }
  .footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); padding-block: var(--s-7); }
  .footer-cols h3 { font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--s-4); }
  .footer-cols ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
  .footer-cols a { text-decoration: none; color: var(--on-dark-2); font-size: var(--fs-sm); display: inline-block; padding-block: .3rem; }
  .footer-cols a:hover { color: var(--on-dark); }
  .footer-cols address { font-style: normal; color: var(--on-dark-2); font-size: var(--fs-sm); line-height: 1.8; }
  .footer-brand img { width: 9rem; height: auto; }
  .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); color: var(--on-dark-2); }
  .footer-bottom a { color: inherit; }
  .socials { display: flex; gap: var(--s-2); }
  .socials a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--on-dark); }
  .socials a:hover { background: var(--paper); color: var(--ink); }
  .footer-wordmark { font-family: var(--f-display); font-size: clamp(3rem, 1rem + 11vw, 12rem); line-height: .85; letter-spacing: -.04em; color: transparent;
    -webkit-text-stroke: 1px rgb(246 241 231 / .22); white-space: nowrap; overflow: hidden; padding-bottom: var(--s-6); user-select: none; }
  @media (min-width: 48em) { .footer-cols { grid-template-columns: 1.4fr repeat(3, 1fr); } }
  @media (min-width: 64em) { .footer-top { grid-template-columns: 1fr 1fr; align-items: end; } }

  /* ===== Gallery page ===== */
  .gallery-toolbar { position: sticky; top: var(--header-h); z-index: 20; background: rgb(246 241 231 / .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-block: 1px solid var(--line); padding-block: var(--s-3); }
  .gallery-toolbar__row { display: grid; gap: var(--s-3); }
  .gallery-toolbar__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); font-size: var(--fs-sm); color: var(--ink-3); }
  .gallery-toolbar .select { min-height: 2.75rem; width: auto; font-size: var(--fs-sm); padding-block: .4rem; }
  @media (min-width: 64em) { .gallery-toolbar__row { grid-template-columns: 1fr auto; align-items: center; } }
  .masonry { columns: 1; column-gap: var(--s-5); }
  .masonry > * { break-inside: avoid; margin-bottom: var(--s-7); }
  .masonry .art-card .art { aspect-ratio: var(--ratio); }
  @media (min-width: 40em) { .masonry { columns: 2; } }
  @media (min-width: 64em) { .masonry { columns: 3; column-gap: var(--s-6); } }
  .art-card[hidden] { display: none; }

  /* ===== Artwork detail — "salle" ===== */
  .salle { background: var(--indigo-night); color: var(--on-dark); --line: var(--line-dark); padding-top: var(--s-5); }
  .salle__grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-7); }
  .salle__stage { position: relative; display: grid; place-items: center; min-height: 60svh; padding: clamp(1rem, 4vw, 4rem);
    background: radial-gradient(ellipse 60% 55% at 50% 42%, rgb(246 241 231 / .09), transparent 75%); }
  .salle__stage .art { background: transparent; max-height: 72svh; box-shadow: 0 30px 60px -25px rgb(0 0 0 / .8); }
  .salle__stage img { max-height: 72svh; width: auto; object-fit: contain; }
  .salle__zoom { position: absolute; right: var(--s-3); bottom: var(--s-3); }
  .salle__info { display: grid; gap: var(--s-5); align-content: start; }
  .salle__info h1 { font-size: var(--fs-2xl); font-style: italic; }
  .salle__artist { font-size: var(--fs-md); }
  .salle__artist a { text-decoration: none; border-bottom: 1px solid var(--gold); }
  .spec { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); padding-block: var(--s-4); border-block: 1px solid var(--line); }
  .spec dt { color: var(--on-dark-2); }
  .price { font-family: var(--f-display); font-size: var(--fs-xl); }
  .price small { display: block; font-family: var(--f-body); font-size: var(--fs-xs); color: var(--on-dark-2); margin-top: .25rem; }
  .salle__actions { display: grid; gap: var(--s-3); }
  .thumbs { display: flex; gap: var(--s-3); }
  .thumbs button { width: 4rem; aspect-ratio: 1; overflow: hidden; border: 1px solid transparent; opacity: .6; }
  .thumbs button[aria-pressed="true"] { border-color: var(--gold-light); opacity: 1; }
  .thumbs img { width: 100%; height: 100%; object-fit: cover; }
  @media (min-width: 64em) {
    .salle__grid { grid-template-columns: minmax(0, 1.7fr) minmax(20rem, 1fr); gap: var(--s-8); align-items: start; }
    .salle__info { position: sticky; top: calc(var(--header-h) + 1.5rem); padding-top: var(--s-6); }
    .salle__stage { min-height: calc(100svh - var(--header-h) - 3rem); }
  }

  /* View in room */
  .room { position: relative; height: 100%; display: grid; place-items: end center; overflow: hidden;
    background: linear-gradient(180deg, #ebe4d6 0%, #e2d9c7 72%, #b9a888 72%, #a7967a 100%); }
  .room__wall { position: absolute; inset: 0 0 28% 0; display: grid; place-items: center; }
  .room__art { box-shadow: 0 18px 30px -12px rgb(0 0 0 / .45); }
  .room__art img { width: 100%; height: 100%; object-fit: cover; }
  .room__bench { position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%); }
  .room__scale { position: absolute; left: 8%; bottom: 28%; display: grid; justify-items: center; gap: .25rem; font-size: var(--fs-xs); color: var(--ink-2); }
  .lightbox-img { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; cursor: zoom-in; touch-action: pan-x pan-y pinch-zoom; }
  .lightbox-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s var(--ease); }
  .lightbox-img.is-zoomed { cursor: zoom-out; place-items: start; }
  .lightbox-img.is-zoomed img { max-width: none; max-height: none; width: 220%; }

  /* ===== Artist profile ===== */
  .profile-hero { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--section); }
  .profile-hero h1 { font-size: var(--fs-hero); line-height: .92; letter-spacing: -.03em; }
  .profile-hero .art { aspect-ratio: 4 / 5; }
  .profile-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); font-size: var(--fs-sm); padding-top: var(--s-5); border-top: 1px solid var(--line); }
  .profile-meta dt { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  @media (min-width: 64em) { .profile-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: var(--s-8); } }
  .cv { display: grid; }
  .cv li { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--s-4); padding-block: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
  .cv time { font-family: var(--f-display); font-style: italic; color: var(--gold-ink); }

  /* ===== Pricing / offers ===== */
  .offers { display: grid; gap: var(--s-5); }
  .offer { display: grid; gap: var(--s-5); align-content: start; padding: var(--s-6) var(--s-5); border: 1px solid var(--line); background: var(--paper); }
  .offer--featured { background: var(--indigo-deep); color: var(--on-dark); border-color: var(--indigo-deep); --line: var(--line-dark); }
  .offer h3 { font-size: var(--fs-xl); }
  .offer__price { font-family: var(--f-display); font-size: var(--fs-2xl); line-height: 1; }
  .offer__price small { font-family: var(--f-body); font-size: var(--fs-sm); color: var(--ink-3); }
  .offer--featured .offer__price small, .offer--featured p { color: var(--on-dark-2); }
  .offer ul { list-style: none; padding: 0; display: grid; gap: var(--s-3); font-size: var(--fs-sm); border-top: 1px solid var(--line); padding-top: var(--s-5); }
  .offer li { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--s-2); }
  .offer li::before { content: ""; width: .7rem; height: .4rem; border: solid var(--gold); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); margin-top: .45rem; }
  .offer .btn { margin-top: auto; }
  @media (min-width: 64em) { .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

  /* Testimonial */
  .testimonial { display: grid; gap: var(--s-5); }
  .testimonial blockquote { font-family: var(--f-display); font-size: var(--fs-xl); line-height: 1.25; }
  .testimonial figcaption { font-size: var(--fs-sm); color: var(--ink-3); }
  .testimonial figcaption b { color: var(--ink); font-weight: 600; display: block; }
  .on-dark .testimonial figcaption, .on-indigo .testimonial figcaption { color: var(--on-dark-2); }
  .on-dark .testimonial figcaption b, .on-indigo .testimonial figcaption b { color: var(--on-dark); }

  /* Article */
  .article-hero { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--s-7); }
  .article-hero h1 { font-size: var(--fs-3xl); max-width: 18ch; }
  .article-hero .art { aspect-ratio: 16 / 9; }
  .article-body { padding-bottom: var(--section); display: grid; gap: var(--s-7); }
  @media (min-width: 64em) { .article-body { grid-template-columns: 14rem minmax(0, 1fr); } }
  .article-aside { font-size: var(--fs-sm); color: var(--ink-3); display: grid; gap: var(--s-3); align-content: start; }

  /* Contact */
  .contact-grid { display: grid; gap: var(--s-8); }
  .contact-card { display: grid; gap: var(--s-5); align-content: start; }
  .contact-card dl { display: grid; gap: var(--s-4); }
  .contact-card dt { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .contact-card dd { font-family: var(--f-display); font-size: var(--fs-lg); }
  .contact-card dd a { text-decoration: none; }
  @media (min-width: 64em) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
}

/* ---------- Utilities ---------- */
@layer utilities {
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
  .muted { color: var(--ink-3); }
  .center { text-align: center; }
  .full-bleed { margin-inline: calc(var(--gutter) * -1); }
  .hide-mobile { display: none; }
  @media (min-width: 64em) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }

  /* Scroll reveal — only when JS is active and motion allowed */
  @media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
    .js [data-reveal].is-in { opacity: 1; transform: none; }
    .js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
    .js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
  }
}

/* ---------- Cross-document view transitions (Chromium) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Artwork detail additions */
.art-zoom { display: block; }
.salle .art-zoom:focus-visible { outline-offset: 6px; }
.btn[aria-pressed="true"] .icon { fill: currentColor; }
.check.is-invalid span { color: var(--err); }
.check.is-invalid input { border-color: var(--err); }

/* Mobile refinements */
span.stack { display: block; }
span.stack > * { display: block; }
span.stack > .cluster { display: flex; }
.brand__name b { white-space: nowrap; }
@media (max-width: 29.99em) {
  .brand__name small { display: none; }
  .brand img { height: 2.25rem; }
  .brand__name b { font-size: 1.05rem; }
  .header-tools { gap: 0; }
}
@media (max-width: 63.99em) {
  .hero::before { background: linear-gradient(180deg, rgb(11 10 34 / .6) 0%, rgb(11 10 34 / .25) 28%, rgb(11 10 34 / .55) 50%, rgb(11 10 34 / .95) 82%); }
}
.hero .eyebrow { color: var(--on-dark); text-shadow: 0 1px 12px rgb(11 10 34 / .8); }
