/* =========================================================================
   Nadiia Averchenko — site styles
   Palette: cream, rusty gold, dusty rose, cocoa. Fonts: Cormorant Garamond + Manrope.
   ========================================================================= */

:root {
  --cream: #F7F1EA;
  --paper: #FFFCF8;
  --sand: rgba(239, 229, 218, 0.45);
  --blush: rgba(241, 227, 220, 0.45);
  --ink: #2E2826;
  --ink-soft: #4E433E;
  --muted: #6B5E57;
  --gold-text: #7E5F32;
  --rose-text: #9A5B4A;
  --gold: #B8935A;
  --rose-gold: #C9967F;
  --gold-light: #E2B86B;
  --blush-light: #E9B9A8;
  --line: #DCCFC2;
  --cocoa: #3A2A26;
  --night: #2E2826;
  --on-dark: #F7F1EA;
  --on-dark-soft: #E6DACE;
  --on-dark-muted: #CFC3B5;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --shadow-soft: 0 22px 40px -26px rgba(46, 40, 38, 0.5);
  --pad-x: 5%;
  --max: 1280px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p, blockquote, figure, dl, dd, ol, ul { margin: 0; }
[hidden] { display: none !important; }
em { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px;
  background: var(--ink); color: var(--cream); border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--cream); }

.page { position: relative; overflow: hidden; }
main { position: relative; z-index: 1; display: block; }

/* ---------- background that changes colour while scrolling ---------- */
.bg-shift {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background-color: var(--cream);
}
.bg-shift span { position: absolute; border-radius: 50%; }
.bg-a { left: 0; top: 0; width: 80vmax; height: 80vmax; background: radial-gradient(closest-side, rgba(201, 140, 130, 0.36), rgba(201, 140, 130, 0)); translate: 5vw 0vh; }
.bg-b { left: 0; top: 0; width: 70vmax; height: 70vmax; background: radial-gradient(closest-side, rgba(196, 144, 82, 0.34), rgba(196, 144, 82, 0)); translate: 50vw 40vh; }
.bg-c { right: -15vmax; bottom: -15vmax; width: 65vmax; height: 65vmax; background: radial-gradient(closest-side, rgba(236, 206, 176, 0.6), rgba(236, 206, 176, 0)); }

/* soft lights inside sections; colour comes from --c */
.orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, var(--c, rgba(196, 144, 82, 0.3)), transparent);
}
.top-orbs { position: absolute; left: 0; right: 0; top: 0; height: 1100px; overflow: hidden; pointer-events: none; z-index: 0; }

/* ---------- animations ---------- */
@keyframes drift1 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(90px, -60px) scale(1.15); } 100% { transform: translate(-40px, 50px) scale(.95); } }
@keyframes drift2 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-110px, 40px) scale(1.2); } 100% { transform: translate(60px, -30px) scale(1); } }
@keyframes drift3 { 0% { transform: translate(0, 0) scale(1.05); } 50% { transform: translate(50px, 80px) scale(.9); } 100% { transform: translate(-70px, -40px) scale(1.1); } }
@keyframes draw { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }
@keyframes draw-sm { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes pulse { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.o1 { animation: drift1 22s ease-in-out infinite alternate; }
.o2 { animation: drift2 26s ease-in-out infinite alternate; }
.o3 { animation: drift3 30s ease-in-out infinite alternate; }
.glow { animation: pulse 6s ease-in-out infinite; }
.draw { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 3.2s ease-out .3s forwards; }
.draw-late { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 3.6s ease-out 1s forwards; }
.sign { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw-sm 2.4s ease-out .2s forwards; }
.shine {
  background: linear-gradient(90deg, #9A5B4A, #C9967F, #B8935A, #E2B86B, #C9967F, #9A5B4A);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
.shine-dark {
  background: linear-gradient(90deg, #E9B9A8, #E2B86B, #F7F1EA, #E2B86B, #E9B9A8);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
.rise { animation: rise 1.1s ease-out both; }
.rise-2 { animation: rise 1.1s ease-out .25s both; }
.rise-3 { animation: rise 1.1s ease-out .5s both; }
.spin { animation: spin 40s linear infinite; }

/* Scroll-driven effects (Chrome, Edge, Safari 26+). Other browsers simply show the page without them. */
@supports (animation-timeline: scroll()) {
  @keyframes bg-shift { 0% { background-color: #F7F1EA; } 20% { background-color: #F5E1D9; } 40% { background-color: #F0D9BC; } 60% { background-color: #EDD0C6; } 80% { background-color: #F3E3D2; } 100% { background-color: #EBD8C6; } }
  @keyframes bg-a { 0% { translate: -10vw -20vh; scale: 1; } 35% { translate: 45vw 25vh; scale: 1.5; } 70% { translate: 5vw 60vh; scale: 1.1; } 100% { translate: 55vw 85vh; scale: 1.6; } }
  @keyframes bg-b { 0% { translate: 60vw 50vh; scale: 1.2; } 40% { translate: 0vw 10vh; scale: .9; } 75% { translate: 50vw -10vh; scale: 1.5; } 100% { translate: -10vw 40vh; scale: 1; } }
  @keyframes bg-c { 0% { opacity: .25; scale: 1; } 50% { opacity: .85; scale: 1.3; } 100% { opacity: .4; scale: 1; } }
  @keyframes par { from { translate: 0 -90px; } to { translate: 0 90px; } }
  @keyframes float { from { translate: 0 34px; } to { translate: 0 -34px; } }
  @keyframes draw-scroll { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }

  .bg-shift { animation: bg-shift linear both; animation-timeline: scroll(root); }
  .bg-a { animation: bg-a linear both; animation-timeline: scroll(root); }
  .bg-b { animation: bg-b linear both; animation-timeline: scroll(root); }
  .bg-c { animation: bg-c linear both; animation-timeline: scroll(root); }

  .par { animation: par linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .o1.par { animation: drift1 22s ease-in-out infinite alternate, par linear both; animation-timeline: auto, view(); animation-range: normal, cover 0% cover 100%; }
  .o2.par { animation: drift2 26s ease-in-out infinite alternate, par linear both; animation-timeline: auto, view(); animation-range: normal, cover 0% cover 100%; }
  .o3.par { animation: drift3 30s ease-in-out infinite alternate, par linear both; animation-timeline: auto, view(); animation-range: normal, cover 0% cover 100%; }

  .float { animation: float linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .draw-scroll { stroke-dasharray: 1600; animation: draw-scroll linear both; animation-timeline: view(); animation-range: entry 10% cover 55%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .o1, .o2, .o3, .glow, .shine, .shine-dark, .rise, .rise-2, .rise-3, .spin,
  .bg-shift, .bg-a, .bg-b, .bg-c, .par, .float { animation: none !important; }
  .draw, .draw-late, .sign, .draw-scroll { animation: none !important; stroke-dashoffset: 0 !important; }
  .tilt, .frame--shadow3d { transform: none !important; }
}

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 5; max-width: var(--max); margin: 0 auto; padding: 26px var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; flex-direction: column; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__small { font-size: 11px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 5px; }
.logo__name { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: .01em; line-height: 1; }
.logo svg { margin-top: 4px; max-width: 200px; }

.nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 30px;
  font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 24px 14px 28px; border-radius: 14px;
  background: rgba(255, 252, 248, .55); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav a[aria-current="page"] { color: var(--gold-text); }
.lang { display: flex; gap: 8px; align-items: center; padding-left: 18px; border-left: 1px solid rgba(46, 40, 38, .2); color: #9A8B7E; }
.lang a { color: var(--muted); }
.lang a[aria-current="true"] { color: var(--gold-text); font-weight: 600; }

.menu-toggle { display: none; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; content: "";
}
.menu-toggle__bars::before { position: absolute; top: -6px; }
.menu-toggle__bars::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 18px;
    border-radius: var(--radius); border: 1px solid rgba(46, 40, 38, .25); background: rgba(255, 252, 248, .6);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); cursor: pointer;
  }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 24px; }
  .js .nav.is-open { display: flex; }
  .nav .lang { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid rgba(46, 40, 38, .15); width: 100%; }
  .logo__name { font-size: 28px; }
  .logo svg { width: 170px; }
}

/* ---------- typography ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow--rose { color: var(--rose-text); }
.eyebrow--muted { color: var(--muted); }
.eyebrow--light { color: var(--gold-light); }
.eyebrow--icon { display: inline-flex; align-items: center; gap: 12px; }

.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6vw, 6.2rem); line-height: .98; letter-spacing: -.015em; }
.display--page { font-size: clamp(2.8rem, 6vw, 6rem); line-height: 1; letter-spacing: 0; }
.display--sm { font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: 1; letter-spacing: 0; }
.display--contact { font-size: clamp(2.8rem, 5.4vw, 5.4rem); line-height: 1; letter-spacing: 0; }
.display--about { font-size: clamp(2.8rem, 5.6vw, 5.6rem); line-height: 1; letter-spacing: 0; font-style: italic; color: var(--gold-text); }
.display--about em { font-style: italic; font-weight: 400; }
.accent { font-style: italic; color: var(--rose-text); }
.accent-dark { font-style: italic; color: var(--blush-light); }

.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.08; }
.h2--xl { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.05; }
.h2--md { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.1; }
.h2--rose { color: var(--rose-text); }
.h2--rose em { font-weight: 400; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; }
.h3--lg { font-size: 32px; }

.lead { font-size: 18px; line-height: 1.75; color: var(--ink-soft); max-width: 560px; }
.text { font-size: 16px; line-height: 1.75; color: var(--muted); }
.text--lg { font-size: 17px; line-height: 1.8; color: var(--ink-soft); }
.text--ink { color: var(--ink-soft); }
.text-dark { font-size: 18px; line-height: 1.8; color: var(--on-dark-soft); }
.small { font-size: 15px; line-height: 1.7; }
.hook { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.4; color: var(--ink-soft); }
.hook--lg { font-size: 28px; }
.narrow { max-width: 680px; }
.narrow-s { max-width: 480px; }
.meta-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: 10px 30px; border-radius: var(--radius);
  background: var(--ink); color: var(--cream); border: 1px solid var(--ink);
  font: 600 14px/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: box-shadow .3s ease, background .3s ease, color .3s ease;
  align-self: flex-start;
}
.btn:hover { color: var(--cream); box-shadow: 0 10px 30px -10px rgba(184, 147, 90, .8); }
.btn--ghost { background: rgba(255, 252, 248, .4); color: var(--ink); }
.btn--ghost:hover { color: var(--ink); }
.btn--light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--light:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.link-arrow {
  align-self: flex-start; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--gold); padding-bottom: 6px;
}
.link-light { color: var(--on-dark); font-size: 14px; border-bottom: 1px solid var(--gold-light); padding-bottom: 4px; align-self: flex-start; position: relative; }
.link-light:hover { color: var(--gold-light); }

/* ---------- layout helpers ---------- */
.section { position: relative; padding: 120px var(--pad-x); overflow: hidden; }
.section--tall { padding-top: 140px; padding-bottom: 140px; }
.section--flush-top { padding-top: 0; }
.section--sand { background: var(--sand); }
.section--blush { background: var(--blush); }
.section--dark { background: var(--cocoa); color: var(--on-dark); }
.section--dark a.card, .section--dark .card { color: var(--on-dark); }
.inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.stack { display: flex; flex-direction: column; }
.stack-xxs { gap: 4px; }
.stack-xs { gap: 6px; }
.stack-s { gap: 14px; }
.stack-m { gap: 24px; }
.stack-l { gap: 44px; }
.stack-xl { gap: 56px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.head-row--center { align-items: center; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.split > * { flex: 1 1 400px; min-width: 0; position: relative; }
.split--wide { gap: 80px; }
.split--top { align-items: flex-start; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.grid-cards--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-cards--rooms { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; }

@media (max-width: 700px) {
  .section { padding: 84px var(--pad-x); }
  .section--flush-top { padding-top: 0; }
  .split { gap: 48px; }
  .split > * { flex-basis: 100%; }
}

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; }
.hero__body {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 40px var(--pad-x) 140px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
}
.hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__art { flex: 1 1 460px; min-width: 0; position: relative; padding: 50px 0 80px; }
.lines { position: absolute; left: -12%; top: -4%; width: 124%; height: 108%; overflow: visible; pointer-events: none; }
.lines-fill { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lines--back { z-index: 0; }
.lines--front { z-index: 3; }
.hero__main-link { display: block; position: relative; z-index: 1; width: 88%; max-width: 560px; }
.hero__main { display: block; width: 100%; height: auto; box-shadow: 20px 20px 64px 2px #6B5E57; }
.hero__small-link { position: absolute; z-index: 2; right: 0; bottom: 0; width: 34%; }
.hero__small { display: block; width: 100%; height: auto; box-shadow: 20px 20px 64px 2px #6B5E57; }

.hero--page .page-intro, .hero--short .page-intro {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 40px var(--pad-x) 70px;
  display: flex; flex-direction: column; gap: 22px;
}
.hero--page .lead { max-width: 620px; }
.hero--short .page-intro { padding-bottom: 90px; }
.thanks-line { margin-bottom: 6px; }

@media (max-width: 700px) {
  .hero__body { padding-bottom: 90px; gap: 40px; }
  .hero__art { padding: 20px 0 60px; }
  .hero__main, .hero__small { box-shadow: 10px 10px 36px 0 rgba(107, 94, 87, .85); }
}

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; gap: 18px; color: var(--ink); }
.card:hover { color: var(--ink); }
.card__media { overflow: hidden; box-shadow: var(--shadow-soft); }
.card__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s ease; }
.card__media--wide img { aspect-ratio: 4 / 3; }
.card:hover .card__media img { transform: scale(1.05); }
.card__title { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; }
.card__title--sm { font-size: 26px; }
.card__text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.card__caption { font-size: 14px; color: var(--muted); }

/* ---------- home: featured story ---------- */
.feature__art { padding: 30px; }
.feature__img { position: relative; z-index: 1; display: block; width: 100%; height: auto; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8); }

/* ---------- quotes ---------- */
.section--quote { padding-top: 150px; padding-bottom: 150px; text-align: center; }
.quote { max-width: 1000px; margin: 0 auto; }
.quote p { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1.15; }
.quote--about p { font-size: clamp(2.2rem, 4.4vw, 4.2rem); }
.quote__signature {
  margin-top: 32px; font-family: var(--serif); font-size: 24px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text);
}

/* ---------- steps & rings ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; }
.step { display: flex; flex-direction: column; gap: 16px; }
.ring { position: relative; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 28px; color: var(--gold-text); }
.ring--lg { width: 76px; height: 76px; font-size: 30px; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring span { position: relative; }
.steps--cards { gap: 44px; }
.info-card { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--gold-light); }

/* ---------- rows (exhibition lists) ---------- */
.rows { display: flex; flex-direction: column; border-bottom: 1px solid rgba(46, 40, 38, .18); }
.row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 22px 0; border-top: 1px solid rgba(46, 40, 38, .18); color: var(--ink);
}
.row__title { font-family: var(--serif); font-size: 24px; }
.rows--lg .row { padding: 24px 0; }
.rows--lg .row__title { font-size: 28px; }
.row__meta { font-size: 14px; color: var(--muted); }

/* ---------- dark panel ---------- */
.panel-dark {
  position: relative; overflow: hidden; align-self: flex-start;
  display: flex; flex-direction: column; gap: 20px;
  background: var(--night); color: var(--on-dark); padding: 56px 48px; box-shadow: var(--shadow-soft);
}
.panel-dark > * { position: relative; }
.panel-dark > .orb { position: absolute; }
.panel-dark__lines { position: absolute !important; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.panel-dark__title { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.15; }
.panel-dark--wide { flex-basis: 100%; }
@media (max-width: 700px) { .panel-dark { padding: 40px 28px; } .panel-dark__title { font-size: 32px; } }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--night); color: #F1E3DC; padding: 72px var(--pad-x) 44px; overflow: hidden; }
.site-footer a { color: #F1E3DC; }
.site-footer a:hover { color: var(--gold-light); }
.footer__row { position: relative; max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer__name { display: flex; flex-direction: column; gap: 12px; }
.footer__small { font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light); }
.footer__big { font-family: var(--serif); font-size: 44px; line-height: 1; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; }
.footer__bottom {
  position: relative; max-width: var(--max); margin: 48px auto 0; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px 28px; font-size: 13px; color: var(--on-dark-muted);
}
.footer__bottom a { color: var(--on-dark-muted); }
.footer__legal { display: flex; gap: 22px; }

/* ---------- gallery ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; }
.chip {
  min-height: 46px; padding: 0 24px; border-radius: var(--radius); cursor: pointer;
  font: 600 14px/1 var(--sans); letter-spacing: .04em; color: var(--ink);
  background: rgba(255, 252, 248, .6); border: 1px solid rgba(46, 40, 38, .25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .3s ease, color .3s ease;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 72px 40px; align-items: end; }
.gallery-card { display: flex; flex-direction: column; gap: 18px; color: var(--ink); }
.gallery-card:hover { color: var(--ink); }
.tilt { transform: perspective(1400px) rotateY(-6deg) rotateX(1deg); transition: transform .9s ease; }
.gallery-card:hover .tilt { transform: none; }
.tilt img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 6px 6px 0 -1px #CDBDAE, 0 26px 34px -14px rgba(46, 40, 38, .45), 0 70px 90px -45px rgba(46, 40, 38, .6);
}
.gallery-card__title { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; }
.gallery-card__teaser { font-size: 15px; color: var(--muted); }
.gallery-card__status { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-text); }
.gallery-card__more { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding-top: 8px; }

/* ---------- painting page ---------- */
.breadcrumb {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 4px var(--pad-x) 0;
  font-size: 13px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 10px;
}
.breadcrumb a { color: var(--ink-soft); }
.painting-hero {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 40px var(--pad-x) 130px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 72px;
}
.painting-hero__art { flex: 1.3 1 480px; min-width: 0; position: relative; padding: 36px; }
.painting-hero__info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.frame { position: relative; z-index: 1; display: block; width: fit-content; max-width: 100%; margin: 0 auto; }
.frame img { display: block; max-width: 100%; max-height: 720px; width: auto; height: auto; }
.frame--shadow3d { transform: perspective(1400px) rotateY(-7deg) rotateX(1.5deg); transition: transform .9s ease; }
.frame--shadow3d:hover { transform: none; }
.frame--shadow3d img { box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 7px 7px 0 -1px #CDBDAE, 0 30px 40px -15px rgba(46, 40, 38, .45), 0 90px 110px -50px rgba(46, 40, 38, .65); }
.frame--glow img { box-shadow: 0 2px 6px rgba(46, 40, 38, .15), 0 30px 60px -10px color-mix(in srgb, var(--glow, #B8935A) 70%, transparent), 0 70px 120px -30px color-mix(in srgb, var(--glow, #B8935A) 60%, transparent); }
.frame--white { padding: 14px; background: #FFF; box-shadow: 0 0 0 1px #EDE4DA, 0 2px 4px rgba(46, 40, 38, .08), 0 40px 70px -30px rgba(46, 40, 38, .45); }
.frame--white img { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 2px 6px rgba(46, 40, 38, .25); }
.frame--oak { padding: 10px; background: #F3EBE1; box-shadow: 0 0 0 6px #D8BC93, 0 0 0 7px #B89A70, 0 2px 4px rgba(46, 40, 38, .1), 0 50px 80px -35px rgba(46, 40, 38, .5); }
.frame--oak img { box-shadow: 0 4px 10px rgba(46, 40, 38, .3); }
.frame--mat { padding: 34px; background: var(--paper); box-shadow: 0 0 0 1px #E6DACE, 0 0 0 5px #E9D6CB, 0 0 0 6px var(--rose-gold), 0 50px 80px -40px rgba(46, 40, 38, .5); }
.frame--mat img { box-shadow: 0 0 0 1px rgba(46, 40, 38, .12), 0 3px 8px rgba(46, 40, 38, .2); }
.frame--none img { box-shadow: 0 50px 80px -50px rgba(46, 40, 38, .65); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6E8B5A; flex: none; }
.status-dot--reserved { background: var(--rose-gold); }
.status-dot--sold { background: var(--rose-text); }
.status-dot--private { background: var(--muted); }
.price { font-family: var(--serif); font-size: 28px; font-variant-numeric: lining-nums; }

.section--story { background: var(--story-bg, var(--cocoa)); color: var(--on-dark); padding-top: 140px; padding-bottom: 140px; }
.story { max-width: 980px; display: flex; flex-direction: column; gap: 32px; }
.story__title { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.05; }
.story__text { display: flex; flex-direction: column; gap: 22px; }
.story__text p { max-width: 760px; font-size: 19px; line-height: 1.85; color: var(--on-dark-soft); }
.num-label { display: flex; align-items: center; gap: 18px; }
.num-label__n { font-family: var(--serif); font-size: 22px; }

.process { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.process--1, .process--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }
.process__step { display: flex; flex-direction: column; gap: 16px; }
.process__media { overflow: hidden; box-shadow: var(--shadow-soft); }
.process__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s ease; }
.process__step:hover .process__media img { transform: scale(1.04); }

.closeup { position: relative; }
.closeup img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: var(--shadow-soft); }
.closeup__outline { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; pointer-events: none; }

.room__media { overflow: hidden; box-shadow: 0 40px 70px -40px rgba(46, 40, 38, .6); }
.room__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(46, 40, 38, .18); }
.pager__link { display: flex; flex-direction: column; gap: 4px; }
.pager__link--next { text-align: right; margin-left: auto; }
.pager__dir { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.pager__title { font-family: var(--serif); font-size: 24px; }

@media (max-width: 700px) {
  .painting-hero { padding-bottom: 90px; gap: 40px; }
  .painting-hero__art { padding: 16px; }
  .frame img { max-height: none; }
  .frame--shadow3d { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
  .frame--mat { padding: 18px; }
  .section--story { padding-top: 96px; padding-bottom: 96px; }
  .story__text p { font-size: 17px; }
}

/* ---------- about ---------- */
.hero--about .split--hero, .hero--contact .split--contact {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 40px var(--pad-x) 130px;
}
.hero--about .split--hero { gap: 80px; }
.hero--about .split--hero > .portrait { flex: 1 1 360px; }
.hero--about .split--hero > .about-intro { flex: 1.2 1 420px; }
.portrait { padding: 30px; }
.portrait__media { position: relative; z-index: 1; overflow: hidden; box-shadow: var(--shadow-soft); }
.portrait__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; }
.prose--intro p { font-size: 17px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- exhibitions ---------- */
.event {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch;
  background: rgba(255, 252, 248, .6); border: 1px solid rgba(255, 255, 255, .8); border-radius: 14px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 44px; box-shadow: 0 40px 80px -50px rgba(46, 40, 38, .5);
}
.event--empty { flex-direction: column; gap: 18px; }
.event__date {
  flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-width: 150px; padding: 20px 28px; border-right: 1px solid rgba(46, 40, 38, .15);
}
.event__day { font-family: var(--serif); font-size: 64px; line-height: 1; font-variant-numeric: lining-nums; }
.event__month { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.event__year { font-size: 13px; color: var(--muted); margin-top: 4px; }
.event__body { flex: 1 1 380px; min-width: 0; }
.event__media { flex: 0 1 320px; }
.event__media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
@media (max-width: 700px) {
  .event { padding: 28px; gap: 24px; }
  .event__date { border-right: 0; border-bottom: 1px solid rgba(46, 40, 38, .15); align-items: flex-start; padding: 0 0 18px; min-width: 0; width: 100%; }
}

/* ---------- contact ---------- */
.hero--contact .split--contact > .contact-intro { flex: 1 1 360px; }
.hero--contact .split--contact > .form-card { flex: 1.3 1 460px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; padding-top: 10px; }
.contact-list dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { font-family: var(--serif); font-size: 28px; word-break: break-word; font-variant-numeric: lining-nums; }
.form-card {
  background: rgba(255, 252, 248, .72); border: 1px solid rgba(255, 255, 255, .85); border-radius: 14px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 48px; box-shadow: 0 40px 80px -50px rgba(46, 40, 38, .5);
}
.form-card form { display: flex; flex-direction: column; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.field__hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 50px; padding: 0 16px; border: 1px solid #CDBDAE; border-radius: 8px; background: #FFF;
  font: 400 16px/1.4 var(--sans); color: var(--ink); width: 100%;
}
.field textarea { padding: 14px 16px; line-height: 1.6; resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold-text); flex: none; }
.consent a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
@media (max-width: 700px) { .form-card { padding: 28px 22px; } .contact-list dd { font-size: 24px; } }

/* ---------- text pages (privacy, legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.2; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 17px; line-height: 1.8; color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
