:root {
  --paper: #ffffff;
  --ink: #171714;
  --coral: #f28c28;
  --blue: #2d50e6;
  --acid: #d9ef53;
  --muted: #77766f;
  --line: rgba(23, 23, 20, 0.22);
  --composition: #d9d3c4;
  --dark-panel: #171714;
  --light-on-dark: #f2efe6;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #171714;
  --ink: #f2efe6;
  --muted: #aaa89f;
  --line: rgba(242, 239, 230, .22);
  --composition: #292925;
  --dark-panel: #242421;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #171714;
    --ink: #f2efe6;
    --muted: #aaa89f;
    --line: rgba(242, 239, 230, .22);
    --composition: #292925;
    --dark-panel: #242421;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.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; }

.site-header {
  align-items: center;
  display: flex;
  height: 84px;
  justify-content: space-between;
  padding: 0 var(--gutter);
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}
.wordmark { align-items: center; display: flex; line-height: 0; }
.wordmark-logo { display: block; height: 54px; width: auto; }
.site-nav { display: flex; font-size: .78rem; font-weight: 600; gap: clamp(1.25rem, 3vw, 3rem); letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { position: relative; }
.site-nav a::after { background: var(--ink); bottom: -.4rem; content: ""; height: 1px; left: 0; position: absolute; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; width: 100%; }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.language-switch { border-left: 1px solid currentColor; display: flex; gap: .65rem; margin-left: .5rem; padding-left: 1.25rem; }
.language-switch a { opacity: .48; }
.language-switch a[aria-current="true"], .language-switch a:hover { opacity: 1; }
.language-switch a::after { display: none; }
.theme-toggle { align-items: center; background: transparent; border: 1px solid currentColor; border-radius: 50%; cursor: pointer; display: flex; font-size: 1rem; height: 2.2rem; justify-content: center; margin: -.7rem 0; padding: 0; width: 2.2rem; }
.theme-toggle:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { background: transparent; border: 0; display: none; padding: .5rem; }

.hero { display: grid; grid-template-columns: 52% 48%; min-height: min(900px, 100vh); padding-top: 84px; }
.hero-copy { align-self: center; padding: 5rem var(--gutter); }
.eyebrow, .section-number { font-size: .68rem; font-weight: 600; letter-spacing: .16em; margin: 0 0 2.5rem; text-transform: uppercase; }
h1, h2 { font-family: "Manrope", sans-serif; font-weight: 500; letter-spacing: -.07em; line-height: .93; margin: 0; }
h1 { font-size: clamp(4rem, 8.2vw, 8.5rem); }
h1 em, h2 em { color: var(--coral); font-family: Georgia, serif; font-weight: 400; }
.hero-intro { font-size: clamp(1rem, 1.25vw, 1.25rem); line-height: 1.55; margin: 3rem 0 2.5rem; max-width: 35rem; }
.text-link { border-bottom: 1px solid currentColor; display: inline-flex; font-size: .76rem; font-weight: 600; justify-content: space-between; letter-spacing: .08em; padding-bottom: .65rem; text-transform: uppercase; width: min(100%, 17rem); }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(4px, 4px); }

.hero-composition { background: var(--composition); min-height: 570px; overflow: hidden; position: relative; }
.hero-photo { background: var(--paper); }
.hero-photo img { display: block; height: 100%; min-height: 570px; object-fit: cover; object-position: center; width: 100%; }
.shape { position: absolute; }
.shape-coral { background: var(--coral); height: 65%; left: 9%; top: 12%; transform: rotate(8deg); width: 49%; }
.shape-blue { background: var(--blue); border-radius: 50%; height: 42%; right: -7%; top: 32%; width: 54%; }
.shape-cream { background: var(--paper); bottom: -13%; height: 58%; left: 31%; transform: rotate(38deg); width: 35%; }
.shape-ink { background: var(--ink); height: 29%; left: 16%; top: 50%; transform: rotate(-18deg); width: 20%; }

.section { padding: clamp(6rem, 11vw, 11rem) var(--gutter); }
.section-heading { align-items: end; border-top: 1px solid var(--line); display: grid; gap: 3rem; grid-template-columns: 1.5fr 1fr; padding-top: 1.4rem; }
.section-heading h2 { font-size: clamp(3.2rem, 6.2vw, 6.5rem); }
.section-heading > p, .section-heading-copy > p { font-size: .95rem; line-height: 1.65; margin: 0 0 .5rem; max-width: 32rem; }
.section-heading-copy { align-self: end; }
.section-link { margin-top: 2rem; width: min(100%, 15rem); }
.section-number { margin-bottom: 4rem; }

.painting-grid { display: grid; gap: clamp(4rem, 8vw, 9rem) clamp(1.5rem, 6vw, 7rem); grid-template-columns: 1.1fr .9fr; margin-top: 8rem; }
.artwork { margin: 0; }
.artwork-wide { padding-top: 12rem; }
.artwork-offset { margin-top: clamp(-38rem, calc(152rem - 152vw), 0rem); }
.artwork-image { overflow: hidden; position: relative; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.real-artwork-image { background: #f4f4f4; }
.real-artwork-image img { display: block; height: 100%; object-fit: cover; object-position: center; width: 100%; }
.artwork-badge { background: rgba(255, 255, 255, .88); color: #171714; font-size: .6rem; font-weight: 600; left: 1rem; letter-spacing: .12em; padding: .45rem .65rem; position: absolute; text-transform: uppercase; top: 1rem; }
.artwork:hover .artwork-image { transform: scale(.985); }
.artwork-tall .artwork-image { aspect-ratio: 4 / 5; }
.artwork-wide .artwork-image { aspect-ratio: 5 / 4; }
.artwork-square .artwork-image { aspect-ratio: 1; }
.placeholder-a { background: linear-gradient(141deg, transparent 0 33%, #e45639 33% 63%, transparent 63%), linear-gradient(30deg, #2448c9 0 43%, #e7ddc8 43%); }
.placeholder-b { background: radial-gradient(circle at 70% 28%, var(--acid) 0 20%, transparent 20%), linear-gradient(135deg, #232320 0 50%, #c6a1ba 50%); }
.placeholder-c { background: linear-gradient(90deg, transparent 0 22%, #3155d5 22% 46%, transparent 46%), linear-gradient(18deg, #ddd4bf 0 54%, #e96447 54%); }
.placeholder-d { background: radial-gradient(ellipse at 25% 65%, #e75e42 0 26%, transparent 26%), linear-gradient(112deg, #d2ec56 0 48%, #252521 48%); }
.placeholder-e { background: linear-gradient(155deg, transparent 0 38%, #292925 38% 61%, transparent 61%), radial-gradient(circle at 28% 30%, #e66249 0 19%, transparent 19%), #d7e957; }
.placeholder-f { background: linear-gradient(65deg, #d9d0bd 0 42%, transparent 42%), linear-gradient(150deg, #3458d5 0 55%, #e56a51 55%); }
.placeholder-g { background: radial-gradient(circle at 68% 64%, #e7e45e 0 25%, transparent 25%), linear-gradient(105deg, #c7a8bb 0 47%, #242421 47%); }
.placeholder-h { background: linear-gradient(90deg, transparent 0 19%, #ef684e 19% 38%, transparent 38% 68%, #2d51d4 68%), #e4dbc8; }
.placeholder-note { background: rgba(242,239,230,.86); bottom: 1rem; color: #171714; font-size: .6rem; font-weight: 600; left: 1rem; letter-spacing: .12em; padding: .45rem .65rem; position: absolute; text-transform: uppercase; }
.artwork-meta { align-items: start; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 1rem; padding-top: .8rem; }
.artwork-meta h3, .print-meta h3 { font-size: .95rem; font-weight: 600; margin: 0; }
.artwork-meta p, .print-meta p { color: var(--muted); font-size: .7rem; margin: .2rem 0 0; text-align: right; }

.prints-section { background: var(--dark-panel); color: var(--light-on-dark); }
.section-heading-light { border-color: rgba(242,239,230,.25); }
.print-grid { display: grid; gap: clamp(1.25rem, 3vw, 3rem); grid-template-columns: repeat(3, 1fr); margin-top: 7rem; }
.print-image { align-items: flex-end; aspect-ratio: 4 / 5; display: flex; overflow: hidden; padding: 1rem; transition: transform .35s ease; }
.print-card:hover .print-image { transform: translateY(-.6rem); }
.print-image span { background: var(--paper); color: var(--ink); font-size: .6rem; font-weight: 600; letter-spacing: .1em; padding: .45rem .6rem; text-transform: uppercase; }
.print-one { background: linear-gradient(90deg, transparent 0 60%, #f17157 60%), linear-gradient(32deg, #4769e5 0 50%, #eee7d6 50%); }
.print-two { background: radial-gradient(circle at 50% 35%, #242421 0 22%, transparent 22%), linear-gradient(125deg, #e7e25f 0 48%, #c8a8b9 48%); }
.print-three { background: linear-gradient(35deg, transparent 0 40%, #3156d6 40% 64%, transparent 64%), #eee4d0; }
.print-four { background: radial-gradient(ellipse at 28% 66%, #2c50d5 0 23%, transparent 23%), linear-gradient(145deg, #e9654c 0 48%, #dfd7c4 48%); }
.print-five { background: linear-gradient(115deg, transparent 0 34%, #262622 34% 55%, transparent 55%), linear-gradient(25deg, #dcea5e 0 51%, #c7a5b7 51%); }
.print-six { background: radial-gradient(circle at 69% 29%, #ef6c50 0 18%, transparent 18%), linear-gradient(65deg, #e9e0cc 0 58%, #3458d7 58%); }
.print-seven { background: linear-gradient(40deg, transparent 0 46%, #e5df5d 46% 67%, transparent 67%), #2b2b27; }
.print-eight { background: radial-gradient(ellipse at 38% 50%, #c5a5b9 0 26%, transparent 26%), linear-gradient(135deg, #3356d3 0 44%, #eee4d1 44%); }
.print-meta { border-top: 1px solid rgba(242,239,230,.3); display: flex; justify-content: space-between; margin-top: 1rem; padding-top: .8rem; }
.print-meta p { color: rgba(242,239,230,.65); }

.about-section { background: var(--paper); color: var(--ink); }
.about-grid { display: grid; gap: clamp(2rem, 5vw, 6rem); grid-template-columns: .9fr 1.1fr; margin-top: 7rem; }
.collection-section .about-grid { margin-top: 0; }
.about-page { padding-top: clamp(5rem, 8vw, 7rem); }
.about-portrait {
  aspect-ratio: 4 / 5;
  background: #f4f4f4;
  margin: 0;
  overflow: hidden;
}
.about-portrait img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}
.about-copy { align-self: end; max-width: 42rem; }
.about-page .about-copy { align-self: start; }
.about-copy p { font-size: clamp(1.05rem, 1.6vw, 1.45rem); line-height: 1.6; margin: 0; }
.about-copy p + p { margin-top: 1.5rem; }
.about-page .about-copy p,
.about-page .about-copy li {
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
}
.about-copy h2 {
  font-family: "DM Sans", sans-serif;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.2;
  margin: 3rem 0 1rem;
  text-transform: uppercase;
}
.about-copy ul {
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.6;
  margin: 0;
  padding-left: 1.2rem;
}
.about-copy li + li { margin-top: 1rem; }

.contact-section { padding-bottom: clamp(7rem, 12vw, 12rem); }
.contact-grid { align-items: end; display: grid; gap: 5rem; grid-template-columns: 1.5fr 1fr; }
.contact-grid h2 { font-size: clamp(4rem, 8vw, 8.5rem); }
.contact-copy > p { font-size: 1rem; line-height: 1.65; margin: 0 0 3rem; max-width: 32rem; }
.contact-link { border-bottom: 1px solid currentColor; display: flex; font-size: clamp(1.1rem, 2vw, 1.6rem); justify-content: space-between; padding-bottom: .8rem; }
.social-links { display: flex; font-size: .7rem; font-weight: 600; gap: 2rem; letter-spacing: .1em; margin-top: 2.5rem; text-transform: uppercase; }
.social-links a:hover { color: var(--coral); }
.site-footer { align-items: center; border-top: 1px solid var(--line); display: flex; font-size: .65rem; justify-content: space-between; letter-spacing: .08em; margin: 0 var(--gutter); padding: 1.5rem 0; text-transform: uppercase; }

.collection-main { padding-top: 84px; }
.collection-hero { display: grid; gap: 3rem; grid-template-columns: 1.5fr 1fr; padding: clamp(6rem, 10vw, 10rem) var(--gutter) clamp(5rem, 8vw, 8rem); }
.collection-hero h1 { font-size: clamp(4.5rem, 10vw, 10.5rem); }
.collection-intro { align-self: end; }
.collection-intro p { font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.6; margin: 0 0 2rem; max-width: 34rem; }
.collection-count { color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.collection-section { border-top: 1px solid var(--line); margin: 0 var(--gutter); padding: clamp(4rem, 7vw, 7rem) 0 clamp(7rem, 11vw, 11rem); }
.collection-grid { display: grid; gap: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 3vw, 3rem); grid-template-columns: repeat(3, 1fr); }
.collection-grid .artwork:nth-child(3n + 2) { margin-top: 7rem; }
.collection-grid .artwork-image { aspect-ratio: 4 / 5; }
.collection-prints { background: var(--dark-panel); color: var(--light-on-dark); }
.collection-prints .site-header { color: var(--light-on-dark); }
.collection-prints .site-nav a::after { background: var(--light-on-dark); }
.collection-prints .collection-section { border-color: rgba(242,239,230,.25); }
.collection-prints .collection-count { color: rgba(242,239,230,.65); }
.collection-prints .site-footer { border-color: rgba(242,239,230,.25); }
.collection-prints .print-grid { margin-top: 0; }

.is-clickable { cursor: pointer; }
.is-clickable:focus-visible { outline: 2px solid var(--coral); outline-offset: .55rem; }
.dialog-open { overflow: hidden; }
.artwork-dialog {
  background: var(--paper);
  border: 0;
  color: var(--ink);
  height: min(90vh, 860px);
  margin: auto;
  max-height: none;
  max-width: 1360px;
  padding: 0;
  width: min(96vw, 1360px);
}
.artwork-dialog::backdrop { background: rgba(15, 15, 13, .78); backdrop-filter: blur(5px); }
.dialog-shell { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(24rem, .7fr); height: 100%; position: relative; }
.dialog-close { align-items: center; background: transparent; border: 0; cursor: pointer; display: flex; font-size: .65rem; font-weight: 600; gap: .6rem; letter-spacing: .12em; padding: 1.5rem; position: absolute; right: 0; text-transform: uppercase; top: 0; z-index: 2; }
.dialog-close span { font-size: 1.4rem; font-weight: 400; line-height: .7; }
.dialog-gallery { background: var(--composition); display: grid; gap: 1rem; grid-template-columns: 4.5rem minmax(0, 1fr); min-height: 0; padding: 1.5rem; }
.dialog-main-image { background-position: center; background-repeat: no-repeat; min-height: 0; order: 2; }
.dialog-thumbnails { align-content: start; display: grid; gap: .75rem; order: 1; }
.dialog-thumbnail { aspect-ratio: 1; border: 0; cursor: pointer; padding: 0; }
.dialog-thumbnail[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }
.dialog-main-image.has-real-image, .dialog-thumbnail.has-real-image { background-color: #f4f4f4; background-position: center; background-repeat: no-repeat; background-size: cover; }
.modal-view-1 { background-position: center; background-repeat: no-repeat; background-size: 100% 100%; }
.modal-view-2 { background-position: 20% 50%; background-repeat: no-repeat; background-size: 180% 180%; }
.modal-view-3 { background-position: 78% 30%; background-repeat: no-repeat; background-size: 220% 220%; }
.dialog-copy { align-self: end; padding: clamp(2rem, 4vw, 4rem); }
.dialog-label { font-size: .65rem; font-weight: 600; letter-spacing: .15em; margin: 0 0 2rem; text-transform: uppercase; }
.dialog-copy h2 { font-size: clamp(2.4rem, 3.4vw, 4.1rem); overflow-wrap: normal; word-break: normal; }
.dialog-meta { color: var(--muted); font-size: .72rem; line-height: 1.5; margin: 1.3rem 0 2.5rem; }
.dialog-contact { margin-top: 2.5rem; width: 100%; }
.dialog-contact.is-disabled { cursor: default; justify-content: flex-start; opacity: .58; pointer-events: none; }

.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .site-header { height: 72px; }
  .wordmark-logo { height: 54px; }
  .menu-toggle { display: block; height: 40px; position: relative; width: 40px; z-index: 2; }
  .menu-toggle span:not(.sr-only) { background: currentColor; height: 1px; left: 8px; position: absolute; transition: transform .25s ease, top .25s ease; width: 24px; }
  .menu-toggle span:nth-child(2) { top: 15px; }
  .menu-toggle span:nth-child(3) { top: 23px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
  .site-nav { background: var(--paper); flex-direction: column; font-size: 2rem; inset: 0; justify-content: center; opacity: 0; padding: var(--gutter); pointer-events: none; position: fixed; transition: opacity .25s ease; }
  .language-switch { border-left: 0; border-top: 1px solid currentColor; font-size: .85rem; margin: 1rem 0 0; padding: 1.5rem 0 0; }
  .site-nav.is-open { opacity: 1; pointer-events: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .hero-copy { padding-bottom: 5rem; padding-top: 5rem; }
  .hero-composition { min-height: 72vh; }
  .section-heading, .contact-grid { align-items: start; grid-template-columns: 1fr; }
  .section-heading { gap: 2.5rem; }
  .section-number { margin-bottom: 2.5rem; }
  .painting-grid { gap: 5rem 1rem; margin-top: 5rem; }
  .artwork-wide { padding-top: 6rem; }
  .artwork-offset { margin-top: 0; }
  .print-grid { gap: 4rem; grid-template-columns: 1fr; }
  .print-image { aspect-ratio: 5 / 4; }
  .about-grid { grid-template-columns: 1fr; margin-top: 5rem; }
  .collection-main { padding-top: 72px; }
  .collection-hero { grid-template-columns: 1fr; }
  .collection-intro { margin-top: 2rem; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-grid .artwork:nth-child(3n + 2) { margin-top: 0; }
  .collection-grid .artwork:nth-child(even) { margin-top: 5rem; }
  .collection-prints .site-nav { background: var(--dark-panel); }
  .artwork-dialog { height: 92vh; overflow-y: auto; }
  .dialog-shell { display: block; height: auto; min-height: 100%; }
  .dialog-gallery { grid-template-columns: 1fr; grid-template-rows: min(58vh, 32rem) auto; }
  .dialog-main-image { grid-row: 1; order: 1; }
  .dialog-thumbnails { display: grid; grid-template-columns: repeat(3, 4rem); order: 2; }
  .dialog-close { background: var(--paper); }
  .dialog-copy { padding-top: 3rem; }
}

@media (max-width: 540px) {
  .painting-grid { grid-template-columns: 1fr; }
  .artwork-wide, .artwork-offset { margin-top: 0; padding-top: 0; }
  .artwork-meta { display: block; }
  .artwork-meta p { text-align: left; }
  .contact-grid { gap: 3rem; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-grid .artwork:nth-child(even) { margin-top: 0; }
  .artwork-dialog { width: calc(100vw - 1rem); }
  .dialog-gallery { grid-template-rows: min(52vh, 26rem) auto; padding: .75rem; }
}

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