:root {
  color-scheme: light;
  --ivory: #f7f4ec;
  --paper: #fffdf8;
  --ink: #211e1b;
  --muted: #555049;
  --accent: #803828;
  --line: #ddd5ca;
  --sans: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.shell { width: min(calc(100% - clamp(38px, 10vw, 160px)), 1280px); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: -8rem auto auto 1rem; padding: .55rem 1rem; background: var(--paper); }
.skip:focus { top: .5rem; }

.header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  color: white;
}
.header-layout { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.navigation, .languages { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.navigation a, .languages a { font-size: .94rem; text-decoration: none; font-weight: 560; }
.navigation a { display: flex; align-items: center; min-height: 44px; }
.navigation a:hover, .languages a:hover, .languages [aria-current] { text-decoration: underline; }
.languages { gap: .1rem; }
.languages a { display: grid; place-items: center; min-width: 40px; min-height: 44px; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: white;
  isolation: isolate;
  background: #2a2623;
}
.hero-media, .hero-media::after { position: absolute; inset: 0; }
.hero-media { z-index: -1; overflow: hidden; user-select: none; }
.hero-media img, .hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  display: block;
  object-fit: cover;
  object-position: 47% 50%;
}
.hero-video { opacity: 0; transition: opacity .38s ease-out; }
.hero-video.is-ready { opacity: 1; }
.hero-media::after {
  content: "";
  background: linear-gradient(180deg, rgb(19 17 15 / .64), transparent 24%, transparent 52%, rgb(19 17 15 / .83)),
              linear-gradient(70deg, rgb(19 17 15 / .29), transparent 56%);
}
.hero-content { position: relative; padding-block: 100px clamp(52px, 9vh, 105px); }
.role { font-size: .86rem; font-weight: 580; margin: 0 0 .36rem; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.04em; }
h1 { font-size: clamp(3.8rem, 8vw, 8rem); font-weight: 610; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .72rem 1.5rem; margin-top: 1.35rem; }
.gallery-link, .film-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  gap: .65rem;
  font-size: .97rem;
  font-weight: 570;
}
.gallery-link {
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  padding: .45rem 1.13rem;
  border-radius: 999px;
}
.gallery-link:hover { background: #e8ded1; }
.film-link:hover { text-decoration-thickness: 2px; }
.motion-control {
  position: absolute;
  bottom: 1rem;
  right: -2px;
  color: white;
  background: rgb(23 20 17 / .7);
  border: 1px solid rgb(255 255 255 / .65);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.motion-control[aria-pressed="true"] span { font-size: .85rem; }

.film-dialog {
  width: min(900px, calc(100% - 2rem));
  max-width: none;
  max-height: 94svh;
  padding: 1rem clamp(15px, 3vw, 28px) 1.12rem;
  background: #171615;
  color: white;
  border: 1px solid #514b43;
}
.film-dialog::backdrop { background: rgb(19 18 16 / .82); }
.film-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.film-header h2 { font-size: clamp(1.1rem, 3vw, 1.45rem); font-weight: 620; }
.film-header button { min-height: 44px; color: inherit; background: transparent; border: 0; cursor: pointer; }
.film-dialog video { display: block; width: 100%; height: auto; aspect-ratio: 854 / 480; background: var(--ink); }
.transcript { margin-top: .4rem; font-size: .92rem; }
.transcript summary { cursor: pointer; width: fit-content; padding-block: .65rem; }
.transcript p { max-width: 68ch; margin: 0 0 .7rem; color: #e3ded7; }

.biography { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(62px, 8vw, 112px); }
.bio-layout { display: grid; grid-template-columns: minmax(235px, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(38px, 7.6vw, 108px); max-width: 1050px; }
.bio-copy h2, .collection h2 { font-size: clamp(2.75rem, 6vw, 5.5rem); font-weight: 605; margin-bottom: 1.35rem; }
.bio-copy p { color: var(--muted); max-width: 57ch; font-size: clamp(1rem, 1.4vw, 1.16rem); margin: 0 0 1rem; }
.bio-copy p:last-child { margin-bottom: 0; }
figure { margin: 0; }
figure img { width: 100%; height: auto; display: block; }
.portrait { max-width: 385px; }
.work { max-width: 1050px; margin-top: clamp(52px, 7vw, 92px); }
.work h2 { font-size: clamp(1.95rem, 4vw, 3.6rem); font-weight: 605; margin-bottom: 1.25rem; }
.work-images { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.53fr); gap: clamp(18px, 2vw, 34px); align-items: start; }
figcaption { margin-top: .65rem; color: var(--muted); font-size: .9rem; }

.collection { padding-block: clamp(60px, 8vw, 112px); }
.pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 44px); }
.piece { min-width: 0; }
.piece figure { background: var(--paper); }
.piece h3 { margin-top: 1.1rem; font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 620; }
.piece a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; margin-top: .35rem; font-size: .93rem; color: var(--accent); }

footer { background: var(--ink); color: var(--ivory); }
.footer-layout { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font-size: 1.35rem; letter-spacing: -.05em; font-weight: 620; margin: 0; }
.footer-layout a { display: inline-flex; min-height: 44px; align-items: center; font-size: .95rem; }

@media (max-width: 850px) {
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .header-layout { min-height: 62px; }
  .navigation { gap: .8rem; }
  .navigation a, .languages a { font-size: .85rem; }
  .languages a { min-width: 34px; }
  .hero-content { padding-bottom: 62px; }
  .hero-actions { gap: .3rem 1rem; }
  .gallery-link, .film-link { font-size: .92rem; }
  .hero-media::after { background: linear-gradient(180deg, rgb(19 17 15 / .66), transparent 24%, transparent 40%, rgb(19 17 15 / .88)); }
  .bio-layout { grid-template-columns: 1fr; gap: 2rem; align-items: start; }
  .portrait { width: min(75vw, 345px); }
  .work-images { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-layout { min-height: 94px; }
}
@media (max-width: 570px) {
  .pieces { grid-template-columns: 1fr; gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { transition: none; }
}

.work { max-width: none; margin-top: 0; padding-block: clamp(58px, 7vw, 92px); background: var(--paper); border-top: 1px solid var(--line); }
.work-layout { max-width: 1050px; }
.pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(35px, 7vw, 94px); }
.art-trigger {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  line-height: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: zoom-in;
}
.art-trigger img { display: block; width: 100%; height: 100%; object-fit: contain; }
.art-trigger:hover img { opacity: .9; }
.price { font-size: .95rem; color: var(--muted); margin: .42rem 0 0; }
.piece-spec { font-size: .93rem; color: var(--muted); margin: .5rem 0 0; }
.art-contact { min-height: 44px; }
.art-dialog {
  width: min(1080px, calc(100% - 2rem));
  max-width: none;
  max-height: min(92svh, 100%);
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}
.art-dialog::backdrop { background: rgb(19 18 16 / .8); }
.art-dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.art-dialog-header h2 { font-size: clamp(1.5rem, 5vw, 2.55rem); margin: 0; }
.art-dialog-header button { min-height: 44px; padding-inline: .7rem; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.art-photos { display: grid; grid-template-columns: 1.65fr 1fr 1fr; gap: clamp(10px, 1.7vw, 22px); align-items: start; }
.art-photos img { background: var(--ivory); object-fit: contain; }
.art-pagination { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.art-pagination button { min-height: 44px; padding: .5rem .95rem; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); border-radius: 999px; cursor: pointer; }
.art-pagination button:last-child { margin-left: auto; }
.art-pagination button:hover { background: #e8ded1; }

@media (max-width: 640px) {
  .pieces { grid-template-columns: 1fr; }
  .art-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-full { grid-column: 1 / -1; }
}

.contact { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.28fr; align-items: start; gap: clamp(24px, 6vw, 94px); max-width: 1050px; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 4.15rem); font-weight: 605; }
.contact-form { display: grid; gap: 1rem; }
.contact-piece { margin: 0; color: var(--accent); font-weight: 620; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .94rem; font-weight: 570; }
.contact-form input, .contact-form textarea { width: 100%; padding: .65rem .72rem; border: 1px solid #c8bcad; background: var(--paper); color: var(--ink); border-radius: 4px; font: inherit; }
.contact-form input { min-height: 44px; }
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; min-height: 44px; border: 0; padding: .65rem 1.05rem; border-radius: 999px; background: var(--ink); color: white; cursor: pointer; }
.contact-form button:hover { background: var(--accent); }
.contact-hint { margin: -.45rem 0 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 720px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .contact-fields { grid-template-columns: 1fr; } }

.art-pagination { margin: 0 0 1rem; }
.mobile-contact { display: none; }
@media (max-width: 720px) {
  .mobile-contact {
    position: fixed;
    z-index: 3;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .55rem 1.05rem;
    border: 1px solid rgb(255 255 255 / .8);
    border-radius: 999px;
    background: var(--ink);
    color: white;
    box-shadow: 0 2px 12px rgb(33 30 27 / .2);
    font-size: .94rem;
    font-weight: 600;
    text-decoration: none;
  }
}
