/* ------------------------------------------------------------------
   Anne Severyns – site styles
   Gallery-white, the paintings carry the colour.
   ------------------------------------------------------------------ */

:root {
  --bg: #faf8f4;
  --bg-alt: #f1ece4;
  --ink: #1e1b18;
  --ink-soft: #625b54;
  --ink-faint: #8f877f;
  --line: #e2dbd1;
  --accent: #8a2433;
  --accent-dark: #6d1b28;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 10vw, 128px);
  --radius: 2px;
  --shadow: 0 20px 50px -20px rgba(30, 27, 24, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
figure { margin: 0; }
figcaption { font-size: 0.8rem; color: var(--ink-faint); margin-top: 10px; letter-spacing: 0.02em; }
figcaption em { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-soft); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 0.4em; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__intro { color: var(--ink-soft); font-size: 1.05rem; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }

.nav { display: flex; gap: clamp(18px, 2.5vw, 36px); }
.nav a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__tools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; letter-spacing: 0.1em; }
.lang__btn { padding: 4px 2px; color: var(--ink-faint); transition: color 0.2s; }
.lang__btn[aria-pressed="true"] { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--accent); }
.lang__btn:hover { color: var(--ink); }
.lang__sep { color: var(--line); }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute; left: 10px; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(48px, 8vw, 112px);
  min-height: calc(100vh - 72px);
}
.hero__title {
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 400;
  margin-bottom: 0.35em;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 30ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__art img {
  width: 100%;
  box-shadow: var(--shadow);
  animation: heroIn 1.2s var(--ease) both;
}
.hero__text > * { animation: heroIn 0.9s var(--ease) both; }
.hero__text > *:nth-child(2) { animation-delay: 0.08s; }
.hero__text > *:nth-child(3) { animation-delay: 0.16s; }
.hero__text > *:nth-child(4) { animation-delay: 0.24s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------------- Facts ---------------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 32px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__num { font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--accent); }
.fact__label { font-size: 0.85rem; color: var(--ink-soft); max-width: 22ch; }

/* ---------------- Gallery ---------------- */
.grid {
  columns: 3 280px;
  column-gap: 28px;
}
.card {
  break-inside: avoid;
  margin-bottom: 28px;
}
.card__btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
}
.card__img {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.card__img img {
  width: 100%;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.card__btn:hover .card__img img { transform: scale(1.03); }
.card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: var(--white);
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 9px;
}
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 2px 0; }
.card__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.card__size { font-size: 0.8rem; color: var(--ink-faint); white-space: nowrap; }
.card__price { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding: 4px 2px 0; }

/* ---------------- Quote band ---------------- */
.quote-band { background: var(--ink); color: var(--bg); padding-block: clamp(64px, 9vw, 112px); }
.quote { margin: 0; max-width: 900px; margin-inline: auto; text-align: center; }
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 28px;
}
.quote footer { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250, 248, 244, 0.6); }

/* ---------------- About ---------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about__art { position: sticky; top: 100px; }
.about__art img { box-shadow: var(--shadow); }
.about__text p { color: var(--ink-soft); font-size: 1.02rem; }
.about__text > div > p:first-child { color: var(--ink); font-size: 1.12rem; }
.about__sub { margin-top: 40px; margin-bottom: 14px; }
.about__words p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--ink); font-style: italic; }
.about__critic { border-left: 2px solid var(--accent); padding-left: 20px; margin-top: 36px; }
.about__critic-src { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); padding-left: 22px; }

/* ---------------- Exhibitions ---------------- */
.exhibitions { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exhibitions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 64px); }
.list-title { font-size: 1.25rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.timeline, .venues { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 9px 0; font-size: 0.95rem; color: var(--ink-soft); }
.timeline__year { font-family: var(--serif); font-size: 1.15rem; color: var(--accent); }
.venues li { padding: 9px 0; font-size: 0.95rem; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.venues li:last-child { border-bottom: 0; }

/* ---------------- Classes ---------------- */
.classes {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.classes__text p { color: var(--ink-soft); font-size: 1.02rem; }
.classes__text .btn { margin-top: 12px; }
.classes__art img { box-shadow: var(--shadow); }

/* ---------------- Contact ---------------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.contact__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); padding-top: 4px; }
.contact__list a { color: var(--ink); transition: color 0.2s; }
.contact__list a:hover { color: var(--accent); }

.form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--white); border: 1px solid var(--line); }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--accent); }
.form .btn { justify-self: start; }
.form__hint { font-size: 0.8rem; color: var(--ink-faint); margin: 0; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.82rem; color: var(--ink-faint); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__inner p { margin: 0; }
.footer__inner a:hover { color: var(--accent); }

/* ---------------- Lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(30, 27, 24, 0.92); animation: fadeIn 0.3s both; }
.lightbox__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  animation: panelIn 0.45s var(--ease) both;
}
.lightbox__figure { display: grid; place-items: center; min-height: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 96px); width: auto; height: auto; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__info { color: var(--bg); align-self: center; }
.lightbox__info .eyebrow { color: rgba(250, 248, 244, 0.55); }
.lightbox__title { font-size: 2.4rem; font-weight: 400; margin-bottom: 8px; }
.lightbox__size { color: rgba(250, 248, 244, 0.7); margin-bottom: 4px; }
.lightbox__price { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250, 248, 244, 0.7); margin-bottom: 28px; }
.lightbox__info .btn--primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.lightbox__info .btn--primary:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.lightbox__hint { font-size: 0.75rem; color: rgba(250, 248, 244, 0.4); margin-top: 24px; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  color: var(--bg);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 2rem; line-height: 1;
  border-radius: 50%;
  transition: background 0.2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.1); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2.6rem; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
body.no-scroll { overflow: hidden; }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__text > *, .hero__art img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__art { order: -1; }
  .lead { max-width: none; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 24px 20px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about, .classes, .contact__grid { grid-template-columns: 1fr; }
  .about__art { position: static; max-width: 420px; }
  .classes__art { max-width: 480px; }
  .exhibitions__grid { grid-template-columns: 1fr 1fr; }
  .lightbox__panel { grid-template-columns: 1fr; gap: 20px; overflow-y: auto; }
  .lightbox__figure img { max-height: 60vh; }
  .lightbox__info { text-align: center; }
  .lightbox__nav { top: auto; bottom: 8px; transform: none; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .burger { display: block; }
  .brand { font-size: 1.3rem; }
  .exhibitions__grid { grid-template-columns: 1fr; }
  .grid { columns: 2 160px; column-gap: 16px; }
  .card { margin-bottom: 16px; }
  .card__meta { flex-direction: column; gap: 2px; }
  .card__title { font-size: 1.15rem; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .lightbox { padding: 12px; }
  .lightbox__title { font-size: 1.8rem; }
}
