/* ==========================================================================
   Jo Tjepkema — Catalogue raisonné
   Design system: warm gallery palette, editorial serif + clean sans.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Palette — warm paper, ink, earth-pigment accent */
  --paper:      #f7f4ee;
  --paper-2:    #efe9df;
  --paper-3:    #e7dfd2;
  --card:       #fffdf9;
  --ink:        #262019;
  --ink-soft:   #5c5348;
  --ink-faint:  #8a8073;
  --line:       #ddd4c5;
  --line-soft:  #e8e1d5;
  --accent:     #9c5b3b;   /* burnt sienna */
  --accent-dk:  #7d4830;
  --accent-soft:#c08a5f;
  --gold:       #b08d4f;
  --sold:       #8a3b3b;
  --available:  #4a6a4a;

  --shadow-sm: 0 1px 3px rgba(38,32,25,.06), 0 1px 2px rgba(38,32,25,.04);
  --shadow-md: 0 4px 16px rgba(38,32,25,.08), 0 2px 6px rgba(38,32,25,.05);
  --shadow-lg: 0 18px 50px rgba(38,32,25,.14);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: .002em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p  { max-width: 68ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); font-weight: 300; }
.serif-quote { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo { height: 42px; width: auto; }
.brand__mark {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: .01em;
  color: var(--ink); line-height: 1;
}
.brand__sub { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-faint); }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding-block: .3rem; transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1.25rem; }

/* Language switcher */
.lang { display: flex; align-items: center; gap: .1rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.lang button {
  border: 0; background: transparent; color: var(--ink-faint);
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .32rem .6rem; border-radius: 999px; transition: all .2s var(--ease);
}
.lang button.is-active { background: var(--ink); color: var(--paper); }
.lang button:hover:not(.is-active) { color: var(--ink); }

.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; }
.nav__toggle span { display: block; height: 1.5px; width: 22px; background: var(--ink); margin: 5px auto; transition: .3s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; justify-content: center;
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .95rem 1.9rem; border-radius: var(--radius); border: 1px solid transparent;
  transition: all .25s var(--ease); cursor: pointer; line-height: 1;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { margin: .4rem 0 1.5rem; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__meta { margin-top: 2.6rem; display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero__meta .stat { }
.hero__meta .num { font-family: var(--serif); font-size: 2.3rem; color: var(--ink); line-height: 1; }
.hero__meta .lbl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-top: .35rem; }
.hero__art {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--paper-2);
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__art::after { content:''; position:absolute; inset:0; box-shadow: inset 0 0 0 1px rgba(38,32,25,.08); border-radius: var(--radius); }
.hero__frame-note {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem; padding: .8rem 1rem;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(6px);
  border-radius: 2px; font-size: .78rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 1rem;
}
.hero__frame-note b { font-family: var(--serif); font-size: 1rem; color: var(--ink); font-weight: 600; }

/* Decorative brushstroke divider */
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); border: 0; }

/* ---------- Section header ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Offerings / feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.feature {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 2.2rem 2rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.feature__num { font-family: var(--serif); font-size: 1rem; color: var(--accent); letter-spacing: .1em; }
.feature h3 { margin: .8rem 0 .7rem; }
.feature p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Periods strip ---------- */
.periods { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.period-cell { background: var(--card); padding: 1.8rem 1.6rem; transition: background .3s var(--ease); position: relative; }
.period-cell:hover { background: var(--paper-2); }
.period-cell .yr { font-size: .74rem; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.period-cell h3 { font-size: 1.35rem; margin: .5rem 0 .5rem; }
.period-cell p { font-size: .9rem; color: var(--ink-soft); }
.period-cell .count { position: absolute; top: 1.6rem; right: 1.6rem; font-size: .78rem; color: var(--ink-faint); }

/* ---------- Artwork gallery grid ---------- */
.period-block { margin-bottom: clamp(3rem, 6vw, 5rem); }
.period-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.period-block__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.period-block__head .yr { color: var(--accent); font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .12em; }
.period-block__desc { color: var(--ink-soft); max-width: 60ch; margin-top: .5rem; font-size: .98rem; }

.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }
.art-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line-soft); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.art-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.art-card__img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); }
.art-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.art-card:hover .art-card__img img { transform: scale(1.04); }
.art-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.art-card__title { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.2; }
.art-card__meta { font-size: .8rem; color: var(--ink-faint); letter-spacing: .02em; }
.art-card__foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.art-card__price { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.art-card__ref { margin-left: auto; font-size: .7rem; color: var(--ink-faint); letter-spacing: .05em; }

/* 90th-birthday keepsake block on the About page — deliberately small */
.b90-grid { display: flex; gap: 1rem; justify-content: center; align-items: stretch; flex-wrap: wrap; margin-top: 1.2rem; }
.b90-grid img { height: 235px; width: auto; max-width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
@media (max-width: 560px) { .b90-grid img { height: auto; width: 100%; } }

/* static "acquire this work" banner above the payment buttons */
.buy-banner { display: block; width: 100%; text-align: center; padding: .9rem 1rem; border-radius: var(--radius); background: var(--ink); color: var(--paper); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .7rem; }

/* uitleg-bubbels (help mode) */
body.help-on [data-help] { position: relative; }
body.help-on [data-help]:hover::after {
  content: attr(data-help); position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 400; line-height: 1.45;
  padding: .55rem .8rem; border-radius: 6px; width: max-content; max-width: 260px; white-space: normal;
  text-align: left; text-transform: none; letter-spacing: 0; z-index: 2000; pointer-events: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
body.help-on [data-help]:hover::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--ink); z-index: 2000; pointer-events: none;
}
.help-chip { border: 1px solid var(--line); background: var(--card); color: var(--ink-faint); font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: .35rem .8rem; border-radius: 999px; cursor: pointer; font-family: inherit; }
body.help-on .help-chip { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* winkelmand */
.basket-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; font-size: 1rem; color: var(--ink); padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.basket-link b { font-size: .72rem; background: var(--accent); color: #fff; border-radius: 999px; padding: .1rem .45rem; font-weight: 700; }
.basket-row { display: grid; grid-template-columns: 76px 1fr auto auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.basket-row img { width: 76px; height: 76px; object-fit: cover; border-radius: 4px; display: block; background: var(--paper-2); }
.basket-row--off { opacity: .55; }
.basket-row__title { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.basket-row__meta { font-size: .8rem; color: var(--ink-faint); }
.basket-row__price { font-family: var(--serif); font-size: 1.1rem; }
.basket-row__x { border: 0; background: transparent; color: var(--ink-faint); cursor: pointer; font-size: 1rem; padding: .4rem; }
.basket-row__x:hover { color: var(--sold); }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 0 .4rem; font-size: 1rem; }
.basket-total b { font-family: var(--serif); font-size: 1.6rem; }

/* bank-transfer pane on the artwork page */
.bank-pane { margin-top: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); display: grid; gap: .6rem; text-align: left; }
.bank-pane input { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--card, #fff); color: var(--ink); }
.bank-details { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; margin: .4rem 0; }
.bank-details dt { color: var(--ink-faint); font-size: .85rem; }
.bank-details dd { margin: 0; font-size: .95rem; }

/* Availability tags */
.tag { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .32rem .6rem; border-radius: 2px; }
.tag--sold { background: var(--sold); color: #fff; }
.tag--res { background: #a3722d; color: #fff; }
.tag--avail { background: color-mix(in srgb, var(--available) 12%, transparent); color: var(--available); border: 1px solid color-mix(in srgb, var(--available) 30%, transparent); }
.art-card__ribbon { position: absolute; top: .9rem; left: .9rem; z-index: 2; }

/* ---------- Artwork detail ---------- */
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail__figure { position: sticky; top: 100px; background: var(--card); padding: clamp(1rem, 3vw, 2.2rem); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.detail__figure img { width: 100%; height: auto; border-radius: 2px; box-shadow: var(--shadow-sm); }
.detail__figcaption { margin-top: 1rem; font-size: .82rem; color: var(--ink-faint); text-align: center; font-style: italic; font-family: var(--serif); }
.detail h1 { font-size: clamp(2rem, 4vw, 3rem); margin: .6rem 0 1rem; }
.detail__specs { list-style: none; padding: 0; margin: 1.8rem 0; border-top: 1px solid var(--line); }
.detail__specs li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.detail__specs .k { color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; font-size: .74rem; font-weight: 600; }
.detail__specs .v { color: var(--ink); text-align: right; }
.detail__price { display: flex; align-items: baseline; gap: 1rem; margin: 1.5rem 0; }
.detail__price .amount { font-family: var(--serif); font-size: 2.6rem; color: var(--ink); }
.buybox { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-top: 1.5rem; }
.buybox p { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.paypal-slot { min-height: 20px; }

/* ---------- Story / About ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--paper-2); max-width: 420px; justify-self: center; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.prose p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.prose p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.4rem; line-height: .8; float: left; margin: .15rem .6rem 0 0; color: var(--accent); font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.8rem 1.8rem; }
.timeline li::before { content:''; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
.timeline .yr { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-weight: 600; }
.timeline p { font-size: .95rem; color: var(--ink-soft); margin-top: .2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 2.4rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-item:last-child { border-bottom: 0; }
.contact-item svg { color: var(--accent); flex-shrink: 0; margin-top: .2rem; }
.contact-item .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.contact-item .v { font-size: 1.05rem; color: var(--ink); }
.contact-item a.v:hover { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, var(--ink) 0%, #332a20 100%); color: var(--paper);
  border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden;
}
.cta::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 20% 20%, rgba(192,138,95,.18), transparent 55%); }
.cta > * { position: relative; }
.cta h2 { color: var(--paper); }
.cta p { color: color-mix(in srgb, var(--paper) 78%, transparent); margin: 1rem auto 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 4rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__brand .brand__mark { font-size: 1.5rem; }
.footer__brand p { font-size: .92rem; color: var(--ink-soft); margin-top: 1rem; max-width: 40ch; }
.footer__col h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.1rem; font-weight: 600; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer__col a { font-size: .92rem; color: var(--ink-soft); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-faint); flex-wrap: wrap; }

/* ---------- Empty / loading states ---------- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--ink-faint); }
.empty-state svg { margin: 0 auto 1.2rem; color: var(--line); }
.skeleton { background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 50%, var(--paper-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Reveal on scroll (progressive enhancement) ----------
   Content is visible by default. It only starts hidden once JS has confirmed
   it can reveal it again — so a script/observer failure never hides content. */
html.reveal-enabled .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.reveal-enabled .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Filters (gallery) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; align-items: center; }
.chip {
  font-size: .78rem; font-weight: 500; letter-spacing: .04em; padding: .5rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--accent-soft); color: var(--ink); }
.gallery-search { margin-left: auto; padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .85rem; background: var(--card); color: var(--ink); min-width: 210px; }
.gallery-search:focus { outline: none; border-color: var(--accent); }
@media (max-width: 700px) { .gallery-search { margin-left: 0; width: 100%; } }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
[data-i18n] { }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .story, .detail, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin-inline: auto; }
  .detail__figure { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav__links, .nav__right .lang { display: none; }
  .nav__toggle { display: block; }
  .site-header.nav-open .nav__links {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 1.5rem var(--gutter); gap: 1.2rem; box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .nav__right .lang { display: flex; }
  .story__img { max-width: 460px; margin-inline: auto; order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__meta { gap: 1.6rem; }
  .nav__right .lang { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
