:root {
  --ink: #18232a;
  --blue: #536f82;
  --blue-dark: #344b5b;
  --paper: #f3f0e8;
  --cream: #e8e0d2;
  --white: #fffdf8;
  --accent: #d35840;
  --line: rgba(24, 35, 42, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.site-header {
  align-items: center;
  background: rgba(243, 240, 232, .92);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 92px;
  padding: 0 3.5vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  z-index: 20;
}
.wordmark { display: inline-flex; flex-direction: column; font-family: "Italiana", serif; font-size: 21px; line-height: .82; text-transform: uppercase; width: fit-content; }
.wordmark span:last-child { margin-left: 22px; }
nav { display: flex; gap: 42px; font-size: 13px; }
nav a, footer a { position: relative; }
nav a::after, footer div a::after { background: currentColor; bottom: -5px; content: ""; height: 1px; left: 0; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform .25s; width: 100%; }
nav a:hover::after, footer div a:hover::after { transform: scaleX(1); }
.immersive-link { background: var(--ink); color: white; font-size: 10px; font-weight: 600; justify-self: end; letter-spacing: .08em; padding: 13px 16px; text-transform: uppercase; transition: background .25s; }
.immersive-link:hover { background: var(--blue); }
.immersive-link span { margin-left: 8px; }

.hero { color: white; height: calc(100vh - 92px); min-height: 650px; overflow: hidden; position: relative; }
.hero-art, .portrait-one {
  background-image: url("art/blue-reverie.jpg");
  background-position: center 51%;
  background-size: cover;
}
.hero-art { inset: 0; position: absolute; transform: scale(1.01); }
.hero-shade { background: linear-gradient(90deg, rgba(8, 15, 20, .78) 0%, rgba(8, 15, 20, .3) 47%, rgba(8, 15, 20, .08) 75%), linear-gradient(0deg, rgba(8,15,20,.35), transparent 45%); inset: 0; position: absolute; }
.hero-copy { left: 7vw; max-width: 650px; position: absolute; top: 50%; transform: translateY(-50%); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .2em; margin: 0 0 26px; text-transform: uppercase; }
h1, h2, blockquote { font-family: "Italiana", serif; font-weight: 400; }
h1 { font-size: clamp(72px, 8.2vw, 138px); letter-spacing: -.045em; line-height: .8; margin: 0; }
h1 em, .commission-visual em { font-weight: 400; }
.hero-intro { font-size: 17px; line-height: 1.6; margin: 38px 0 32px; max-width: 510px; }
.hero-actions { align-items: center; display: flex; gap: 30px; }
.button { border: 1px solid transparent; cursor: pointer; display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 18px 25px; text-align: center; text-transform: uppercase; transition: .25s; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: transparent; border-color: var(--white); color: var(--white); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--blue); }
.text-link { border-bottom: 1px solid currentColor; display: inline-flex; font-size: 13px; gap: 25px; padding-bottom: 6px; width: fit-content; }
.text-link span { transition: transform .25s; }
.text-link:hover span { transform: translate(4px, -4px); }
.light { color: white; }
.hero-note, .hero-index { bottom: 28px; font-size: 10px; letter-spacing: .16em; margin: 0; position: absolute; text-transform: uppercase; }
.hero-note { left: 3.5vw; }.hero-note span { margin: 0 12px; }
.hero-index { right: 3.5vw; }

.manifesto { background: var(--blue); color: white; padding: 110px 8vw; text-align: center; }
.manifesto blockquote { font-size: clamp(42px, 5.2vw, 80px); letter-spacing: -.025em; line-height: 1.08; margin: 0 auto; max-width: 1100px; }
.attribution { font-size: 12px; letter-spacing: .15em; margin-top: 30px; text-transform: uppercase; }
.section-pad { padding: 140px 6vw; }
.section-heading { align-items: end; display: grid; grid-template-columns: 1.25fr .75fr; margin-bottom: 90px; }
h2 { font-size: clamp(56px, 6vw, 96px); letter-spacing: -.035em; line-height: .9; margin: 0; }
.collection-tools { justify-self: end; max-width: 450px; }
.collection-tools > p { font-size: 15px; line-height: 1.7; margin: 0 0 35px; }
.filters { display: flex; gap: 11px; }
.filter { background: transparent; border: 1px solid var(--line); border-radius: 30px; cursor: pointer; font-size: 11px; padding: 10px 16px; }
.filter.active, .filter:hover { background: var(--ink); color: white; }
.art-grid { align-items: start; columns: 3; column-gap: 2.2vw; }
.art-card { break-inside: avoid; display: inline-block; margin: 0 0 65px; width: 100%; }
.art-card[hidden] { display: none; }
.art-card:nth-child(3n + 2) { margin-top: 65px; }
.art-image { background-color: #ddd7cb; background-position: center; background-repeat: no-repeat; background-size: cover; border: 0; cursor: pointer; display: block; overflow: hidden; padding: 0; position: relative; width: 100%; }
.art-image img { display: block; height: auto; transition: transform .6s ease; width: 100%; }
.art-image:hover img { transform: scale(1.025); }
.art-card-featured .art-image { min-height: 0; }
.art-image::after { background: rgba(17, 29, 36, .25); content: ""; inset: 0; opacity: 0; position: absolute; transition: opacity .3s; }
.art-image:hover::after { opacity: 1; }
.piece-tag { background: var(--paper); font-size: 10px; left: 18px; letter-spacing: .1em; padding: 9px 12px; position: absolute; text-transform: uppercase; top: 18px; z-index: 2; }
.view-cue { bottom: 20px; color: white; font-size: 12px; opacity: 0; position: absolute; right: 20px; transform: translateY(5px); transition: .3s; z-index: 2; }
.art-image:hover .view-cue { opacity: 1; transform: translateY(0); }
.art-meta { align-items: start; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 18px; padding-top: 15px; }
.art-meta h3 { font-family: "Italiana", serif; font-size: 24px; font-weight: 400; margin: 0 0 7px; }
.art-meta p { font-size: 11px; margin: 0; }
.availability { font-weight: 600; }
.inquiry-wrap { text-align: right; }
.card-add { background: transparent; border: 0; border-bottom: 1px solid var(--ink); cursor: pointer; font-size: 9px; margin-top: 13px; padding: 0 0 3px; text-transform: uppercase; }
.card-add:disabled { border-color: transparent; color: #8c9295; cursor: default; }
.inventory-note { border-top: 1px solid var(--line); font-size: 12px; margin: 85px 0 0; padding-top: 18px; text-align: right; }

.commission { background: var(--cream); display: grid; grid-template-columns: 1fr 1fr; min-height: 850px; }
.commission-visual { align-items: center; background: var(--blue-dark); color: white; display: flex; justify-content: center; overflow: hidden; position: relative; }
.commission-visual > p { font-family: "Italiana", serif; font-size: clamp(52px, 5vw, 84px); line-height: .95; position: relative; text-align: center; z-index: 2; }
.swatch { filter: blur(1px); opacity: .9; position: absolute; transform: rotate(-12deg); }
.swatch-one { background: var(--accent); height: 115%; left: 10%; width: 23%; }
.swatch-two { background: #d5a33a; height: 125%; right: 8%; transform: rotate(17deg); width: 17%; }
.commission-copy { align-self: center; max-width: 650px; padding: 10vw; }
.commission-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.75; margin: 45px 0; }
.commission-copy ol { list-style: none; margin: 0 0 45px; padding: 0; }
.commission-copy li { border-top: 1px solid var(--line); font-size: 13px; padding: 17px 0; }
.commission-copy li:last-child { border-bottom: 1px solid var(--line); }
.commission-copy li span { color: var(--blue); display: inline-block; font-size: 10px; width: 48px; }

.story { display: grid; gap: 5vw; grid-template-columns: .8fr .8fr 1.2fr; }
.artist-portrait-wrap { margin: 0; }
.artist-portrait { aspect-ratio: 3 / 4; display: block; height: auto; object-fit: cover; object-position: 50% 32%; width: 100%; }
.portrait-caption { border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .12em; line-height: 1.6; margin: 14px 0 0; padding-top: 12px; text-transform: uppercase; }
.story-title { align-self: center; }
.story-copy { padding-top: 45px; }
.story-copy p { line-height: 1.8; max-width: 600px; }
.story-lead { font-family: "Italiana", serif; font-size: 28px; line-height: 1.4 !important; margin-top: 0; }
.story-copy .text-link { margin-top: 30px; }
.contact-band { background: var(--accent); color: white; padding: 120px 6vw; text-align: center; }
.contact-band h2 { margin-bottom: 50px; }
.contact-links { align-items: center; display: flex; flex-direction: column; gap: 18px; }
.contact-links a { border-bottom: 1px solid rgba(255,255,255,.45); font-size: 13px; padding-bottom: 5px; }
.contact-links .contact-primary { font-size: clamp(18px, 2.2vw, 30px); padding-bottom: 7px; }
.contact-band a span { display: inline-block; margin-left: 20px; transition: .25s; }
.contact-band a:hover span { transform: translate(5px,-5px); }
footer { align-items: end; background: var(--ink); color: white; display: grid; font-size: 11px; grid-template-columns: 1fr 1fr 1fr 1fr; padding: 70px 3.5vw; }
.footer-mark { font-size: 27px; }
footer > p { margin: 0; }
footer > div { display: flex; gap: 25px; }
footer > p:last-child { justify-self: end; }

.art-dialog { background: var(--paper); border: 0; height: min(86vh, 780px); max-width: 1080px; padding: 0; width: 86vw; }
.art-dialog::backdrop { background: rgba(14, 23, 28, .78); backdrop-filter: blur(4px); }
.art-dialog[open] { display: grid; grid-template-columns: 1.15fr .85fr; }
.dialog-close { background: var(--paper); border: 0; cursor: pointer; font-size: 30px; height: 46px; position: absolute; right: 0; top: 0; width: 46px; z-index: 2; }
.dialog-art { background-position: center; background-repeat: no-repeat; background-size: contain; min-height: 550px; }
.dialog-copy { align-self: center; padding: 60px; }
.dialog-copy h2 { font-size: 64px; }
.dialog-details, .dialog-description { font-size: 13px; line-height: 1.7; }
.dialog-description { margin: 30px 0; }
.dialog-buy { align-items: end; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin: 30px 0; padding: 20px 0; }
.dialog-buy strong { font-size: 22px; }.dialog-buy span { font-size: 10px; }
.dialog-copy .button { display: block; margin-bottom: 25px; width: 100%; }

.commission-dialog { background: var(--paper); border: 0; max-height: 90vh; max-width: 760px; padding: 0; width: min(92vw, 760px); }
.commission-dialog::backdrop { background: rgba(14, 23, 28, .78); backdrop-filter: blur(4px); }
.commission-dialog-copy { padding: 65px; }
.commission-dialog h2 { font-size: clamp(52px, 7vw, 82px); }
.commission-dialog-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.7; margin: 28px 0; max-width: 560px; }
.commission-dialog form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.commission-dialog label { display: grid; font-size: 10px; font-weight: 600; gap: 8px; letter-spacing: .08em; text-transform: uppercase; }
.commission-dialog input, .commission-dialog select, .commission-dialog textarea { background: var(--white); border: 1px solid var(--line); border-radius: 0; color: var(--ink); font: inherit; font-size: 13px; padding: 13px 14px; text-transform: none; width: 100%; }
.commission-dialog textarea { line-height: 1.6; resize: vertical; }
.commission-dialog form .button { margin-top: 6px; width: 100%; }
.modal-note { color: var(--blue); font-size: 10px !important; margin-bottom: 0 !important; }

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr 1fr; height: 76px; }
  nav { display: none; }
  .immersive-link { font-size: 8px; padding: 11px 12px; }
  .hero { height: calc(100svh - 76px); min-height: 620px; }
  .hero-art { background-position: 55% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,15,20,.72), rgba(8,15,20,.05)), linear-gradient(0deg, rgba(8,15,20,.45), transparent 60%); }
  .hero-copy { left: 7vw; right: 7vw; top: 46%; }
  h1 { font-size: clamp(62px, 19vw, 92px); }
  .hero-intro { font-size: 14px; max-width: 390px; }
  .hero-actions { align-items: start; flex-direction: column; gap: 22px; }
  .hero-index { display: none; }
  .manifesto { padding: 90px 7vw; }
  .section-pad { padding: 90px 6vw; }
  .section-heading { grid-template-columns: 1fr; }
  .story { grid-template-columns: .7fr 1fr; }
  .story-copy { grid-column: 1 / -1; }
  .collection-tools { justify-self: auto; margin-top: 40px; }
  .filters { flex-wrap: wrap; }
  .art-grid { columns: 2; }
  .art-card:nth-child(3n + 2) { margin-top: 0; }
  .commission { grid-template-columns: 1fr; }
  .commission-visual { min-height: 630px; }
  .commission-copy { max-width: none; padding: 90px 8vw; }
  .story-copy { padding-top: 15px; }
  footer { gap: 35px; grid-template-columns: 1fr 1fr; }
  footer > p:last-child { justify-self: auto; }
  .art-dialog { height: 90vh; overflow-y: auto; }
  .art-dialog[open] { grid-template-columns: 1fr; }
  .dialog-art { min-height: 50vh; }
  .commission-dialog-copy { padding: 50px 35px; }
}

@media (max-width: 520px) {
  .wordmark { font-size: 17px; }
  .hero-copy { top: 44%; }
  .hero-note { font-size: 8px; }
  .section-heading { margin-bottom: 55px; }
  h2 { font-size: 52px; }
  .art-grid { columns: 1; }
  .art-card { margin-bottom: 48px; }
  .commission-visual { min-height: 520px; }
  .commission-copy { padding: 75px 7vw; }
  .story { gap: 35px; grid-template-columns: 1fr; }
  .artist-portrait { max-height: 560px; }
  .story-copy { grid-column: auto; }
  .contact-band { padding: 90px 6vw; }
  footer { grid-template-columns: 1fr; }
  footer > div { flex-wrap: wrap; }
  .dialog-copy { padding: 45px 25px; }
  .dialog-copy h2 { font-size: 50px; }
  .commission-dialog-copy { padding: 45px 24px; }
  .field-row { grid-template-columns: 1fr; }
}

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