:root {
  --ink: #111b2c;
  --ink-soft: #253249;
  --paper: #f4efe6;
  --paper-light: #fbf8f1;
  --gold: #c8994e;
  --gold-light: #e4c58c;
  --line: rgba(17, 27, 44, 0.16);
  --white: #fffdf8;
  --shadow: 0 30px 80px rgba(17, 27, 44, 0.13);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-light);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 4vw, 68px);
  color: var(--white);
  transition: background .35s ease, padding .35s ease, color .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--ink);
  background: rgba(251, 248, 241, .94);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 500 15px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
}
.brand-copy { display: grid; line-height: 1.05; gap: 5px; }
.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}
.brand-copy small { font-size: 9px; text-transform: uppercase; letter-spacing: .24em; opacity: .75; }

.site-nav { display: flex; gap: 34px; align-items: center; }
.site-nav a {
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { right: 0; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 1px;
  margin: 7px auto;
  background: currentColor;
  transition: transform .25s ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}
.hero-image {
  background-image: url("assets/hero-live-painting.webp");
  background-size: cover;
  background-position: 50% 50%;
  transform: scale(1.02);
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 14, 25, .84) 0%, rgba(7, 14, 25, .5) 42%, rgba(7, 14, 25, .08) 75%),
    linear-gradient(0deg, rgba(7, 14, 25, .58) 0%, transparent 52%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 78vw);
  padding: 180px clamp(24px, 7vw, 112px) 100px;
}
.eyebrow {
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: .27em;
  font-size: 11px;
  font-weight: 650;
}
.eyebrow.dark { color: #796846; }
.hero h1,
.section h2,
.quote-section blockquote,
.exhibition-card h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .93;
}
.hero h1 { font-size: clamp(64px, 9vw, 138px); }
.hero h1 em { color: var(--gold-light); font-weight: 400; }
.hero-intro {
  max-width: 600px;
  margin: 30px 0 0;
  font-size: clamp(17px, 1.6vw, 23px);
  color: rgba(255,255,255,.84);
}
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid currentColor;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 700;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--ink); background: var(--white); border-color: var(--white); }
.button-light:hover { background: var(--gold-light); border-color: var(--gold-light); }
.text-link { text-decoration: none; font-size: 13px; }
.text-link span { display: inline-block; margin-left: 7px; transition: transform .25s ease; }
.text-link:hover span { transform: translate(3px, 3px); }
.text-link-light { color: var(--white); }
.hero-signature {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 80px);
  bottom: 90px;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(34px, 5vw, 70px);
  color: rgba(255,255,255,.9);
  transform: rotate(-5deg);
}
.scroll-cue {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 4vw, 68px);
  bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.68);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.intro-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 21px 24px;
  color: #665738;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
}
.intro-strip p { margin: 0; }
.intro-strip span { color: var(--gold); }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 160px) clamp(24px, 4vw, 56px);
}
.section-heading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 64px;
}
.section h2 { font-size: clamp(54px, 7vw, 96px); }
.section-copy {
  max-width: 520px;
  margin: 0 0 9px auto;
  font-size: 18px;
  color: #596071;
}

.gallery-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 26px;
  align-items: start;
}
.art-card {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.art-card:hover img { transform: scale(1.025); }
.art-card-tall { grid-row: span 2; aspect-ratio: 4 / 6.15; }
.art-card-wide { aspect-ratio: 16 / 10; }
.art-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  padding: 15px 17px;
  text-align: left;
  color: var(--white);
  background: rgba(12, 22, 37, .72);
  backdrop-filter: blur(10px);
}
.art-meta b { font: 400 17px/1.2 Georgia, "Times New Roman", serif; }
.art-meta small { text-transform: uppercase; letter-spacing: .17em; font-size: 8px; opacity: .7; }

.quote-section {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 14vw, 190px) clamp(24px, 8vw, 120px);
  text-align: center;
  color: var(--white);
  background: var(--ink);
}
.quote-section::before,
.quote-section::after {
  content: "";
  position: absolute;
  width: 34vw;
  height: 34vw;
  border: 1px solid rgba(228,197,140,.22);
  border-radius: 50%;
}
.quote-section::before { top: -22vw; left: -8vw; }
.quote-section::after { bottom: -22vw; right: -8vw; }
.quote-mark {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  color: rgba(228,197,140,.12);
  font: 280px/1 Georgia, serif;
}
.quote-section blockquote {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(54px, 7vw, 104px);
  color: var(--gold-light);
}
.quote-section p {
  position: relative;
  max-width: 620px;
  margin: 30px auto 0;
  color: rgba(255,255,255,.68);
  font-size: 17px;
}

.story-section {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}
.story-image { position: relative; }
.story-image::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 1px solid var(--gold);
  z-index: -1;
}
.story-image img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; box-shadow: var(--shadow); }
.story-copy h2 { margin-bottom: 30px; }
.story-copy p { color: #565d6b; font-size: 17px; }
.story-copy .lede { font-size: clamp(20px, 2vw, 27px); color: var(--ink); line-height: 1.5; }
.story-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}
.story-facts div { display: grid; gap: 4px; padding: 20px 18px; background: var(--paper-light); }
.story-facts strong { font: 400 22px/1 Georgia, "Times New Roman", serif; }
.story-facts span { color: #777d89; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }

.exhibition-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
  color: var(--white);
  background: #17263c;
}
.exhibition-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(70px, 8vw, 120px);
}
.exhibition-card h2 { max-width: 720px; font-size: clamp(48px, 6vw, 88px); }
.exhibition-card p:not(.eyebrow) { max-width: 560px; margin: 28px 0 34px; color: rgba(255,255,255,.7); font-size: 17px; }
.exhibition-image {
  min-height: 540px;
  background:
    linear-gradient(0deg, rgba(17,27,44,.12), rgba(17,27,44,.12)),
    url("assets/exhibition-malta.webp") center 28%/cover no-repeat;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  align-items: end;
}
.contact-section h2 { font-size: clamp(54px, 7vw, 96px); }
.contact-panel { padding-bottom: 6px; }
.contact-panel > p { margin: 0 0 28px; color: #5f6674; font-size: 17px; }
.contact-placeholder {
  display: grid;
  gap: 5px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-placeholder span { color: #8d7651; text-transform: uppercase; letter-spacing: .18em; font-size: 9px; }
.contact-placeholder strong { font: 400 25px/1.25 Georgia, "Times New Roman", serif; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: end;
  padding: 38px clamp(24px, 4vw, 68px);
  color: rgba(255,255,255,.72);
  background: #0b1321;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer > div { display: grid; gap: 4px; }
.site-footer strong { color: var(--white); font: 400 19px/1.1 Georgia, "Times New Roman", serif; }
.site-footer span,
.site-footer p,
.site-footer small { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.site-footer p { margin: 0; text-align: center; color: var(--gold-light); }
.site-footer small { justify-self: end; }

.lightbox {
  width: min(92vw, 1250px);
  max-height: 92vh;
  padding: 14px;
  border: 0;
  color: var(--white);
  background: #0b1321;
  box-shadow: 0 40px 100px rgba(0,0,0,.4);
}
.lightbox::backdrop { background: rgba(4,8,14,.84); backdrop-filter: blur(6px); }
.lightbox img { max-height: 78vh; object-fit: contain; }
.lightbox p { margin: 12px 4px 2px; color: rgba(255,255,255,.7); font-size: 13px; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: var(--white);
  background: rgba(11,19,33,.75);
  cursor: pointer;
  font-size: 24px;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .menu-toggle { display: block; position: relative; z-index: 102; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 80px 36px;
    color: var(--white);
    background: rgba(11,19,33,.98);
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .site-nav a { font: 400 clamp(36px, 8vw, 62px)/1 Georgia, serif; text-transform: none; letter-spacing: -.03em; }
  .site-nav.open { transform: none; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .site-header.scrolled .menu-toggle[aria-expanded="true"] { color: var(--white); }

  .hero-content { width: min(780px, 92vw); }
  .hero-signature { display: none; }
  .section-heading,
  .story-section,
  .contact-section { grid-template-columns: 1fr; }
  .section-heading { gap: 24px; }
  .section-copy { margin-left: 0; }
  .story-image { max-width: 680px; }
  .exhibition-section { grid-template-columns: 1fr; }
  .exhibition-image { min-height: 56vw; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer p { grid-column: 1 / -1; grid-row: 1; text-align: left; }
}

@media (max-width: 720px) {
  .site-header { padding: 18px 20px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy small { display: none; }
  .hero-image { background-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,14,25,.86) 0%, rgba(7,14,25,.62) 70%, rgba(7,14,25,.35) 100%); }
  .hero-content { padding: 145px 24px 82px; }
  .scroll-cue { display: none; }
  .intro-strip { justify-content: flex-start; }
  .section { padding-left: 22px; padding-right: 22px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .art-card-tall { grid-row: auto; aspect-ratio: 4 / 5.3; }
  .art-card-wide { aspect-ratio: 16 / 11; }
  .story-image::before { inset: -10px 10px 10px -10px; }
  .story-facts { grid-template-columns: 1fr; }
  .exhibition-card { padding: 80px 24px; }
  .exhibition-image { min-height: 70vw; }
  .contact-section { gap: 42px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .site-footer p { grid-column: auto; grid-row: auto; }
  .site-footer small { justify-self: start; }
}

/* Collection catalog */
.collection-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: -24px 0 34px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #777d89;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.collection-toolbar p { margin: 0; }
.collection-toolbar span { color: var(--ink); font-weight: 700; }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 58px 28px;
  align-items: start;
}
.collection-card-featured { grid-column: span 2; }
.collection-card { min-width: 0; }
.collection-image {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--paper);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.collection-card-featured .collection-image { aspect-ratio: 16 / 10; }
.collection-card:not(.collection-card-featured) .collection-image { aspect-ratio: 4 / 5.2; }
.collection-image img {
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}
.collection-image:hover img,
.collection-image:focus-visible img { transform: scale(1.025); filter: brightness(.86); }
.collection-index,
.collection-view {
  position: absolute;
  z-index: 2;
  color: var(--white);
  background: rgba(11,19,33,.74);
  backdrop-filter: blur(10px);
}
.collection-index {
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 9px;
  letter-spacing: .12em;
}
.collection-view {
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.collection-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  padding-top: 18px;
}
.collection-meta p { margin: 0; }
.collection-meta > div > p,
.collection-status {
  color: #8d7651;
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.collection-meta h3 {
  margin: 7px 0 0;
  font: 400 clamp(23px, 2.2vw, 34px)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
.collection-status { padding-top: 3px; white-space: nowrap; }
.collection-status.muted { color: #858b96; }

.artwork-dialog {
  width: min(94vw, 1180px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  color: var(--white);
  background: #0b1321;
  box-shadow: 0 40px 100px rgba(0,0,0,.48);
}
.artwork-dialog::backdrop { background: rgba(4,8,14,.86); backdrop-filter: blur(8px); }
.artwork-dialog-grid { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 620px; }
.artwork-dialog-media { min-height: 500px; background: #101827; }
.artwork-dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.artwork-dialog-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(42px, 6vw, 82px);
}
.artwork-dialog-copy h2 {
  margin: 0;
  font: 400 clamp(44px, 5vw, 72px)/.95 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}
.artwork-dialog-description { margin: 26px 0 30px; color: rgba(255,255,255,.7); font-size: 16px; }
.artwork-specs { width: 100%; margin: 0 0 32px; }
.artwork-specs div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.13);
}
.artwork-specs div:last-child { border-bottom: 1px solid rgba(255,255,255,.13); }
.artwork-specs dt { color: var(--gold-light); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.artwork-specs dd { margin: 0; color: rgba(255,255,255,.76); font-size: 13px; }
.artwork-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: var(--white);
  background: rgba(11,19,33,.75);
  cursor: pointer;
  font-size: 24px;
}
@media (max-width: 980px) {
  .collection-grid { grid-template-columns: 1fr 1fr; }
  .collection-card-featured { grid-row: auto; grid-column: 1 / -1; }
  .collection-card-featured .collection-image { aspect-ratio: 16 / 10; }
  .artwork-dialog-grid { grid-template-columns: 1fr; }
  .artwork-dialog-media { min-height: 46vh; max-height: 58vh; }
  .artwork-dialog-copy { padding: 42px 34px 48px; }
}

@media (max-width: 720px) {
  .collection-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .collection-grid { grid-template-columns: 1fr; gap: 42px; }
  .collection-card-featured { grid-column: auto; }
  .collection-card-featured .collection-image,
  .collection-card:not(.collection-card-featured) .collection-image { aspect-ratio: 4 / 4.5; }
  .collection-meta { gap: 12px; }
  .collection-status { display: none; }
  .artwork-dialog { width: 100vw; max-width: none; max-height: 100dvh; height: 100dvh; }
  .artwork-dialog-grid { min-height: 100%; }
  .artwork-dialog-media { min-height: 43vh; max-height: 43vh; }
  .artwork-dialog-copy { justify-content: flex-start; padding: 34px 22px 50px; overflow-y: auto; }
  .artwork-specs div { grid-template-columns: 92px 1fr; }
}

.collection-card-details { margin-top: 7px !important; color: #666d79 !important; font-size: 11px !important; letter-spacing: .06em !important; text-transform: none !important; }
.contact-placeholder a, .site-footer a { color: inherit; text-decoration: none; }
.contact-placeholder a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-placeholder small { color: #777d89; font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
