:root {
  --ink: #040707;
  --muted: #999999;
  --sidebar: #f3f3f3;
  --artwork-background: #f3f3f3;
  --drawer: #202020;
  --sidebar-width: 275px;
  --mobile-header-height: 48px;
  --drawer-width: 78vw;
  color-scheme: light;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: auto;
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 26px;
  overflow-x: hidden;
}
body.drawer-open { overflow: hidden; }
body.lightbox-open { overflow: hidden; }
button, a { color: inherit; }
a { text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#site-shell {
  min-height: 100vh;
  background: #fff;
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.site-header {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  width: var(--sidebar-width);
  height: 100dvh;
  overflow: hidden;
  background: var(--sidebar);
}
.brand {
  position: absolute;
  top: 26px;
  left: 30px;
  font-family: "Lora", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
.brand:hover { color: #777; }
.desktop-nav {
  position: absolute;
  top: 32.3%;
  left: 30px;
  display: flex;
  flex-direction: column;
}
.desktop-nav a {
  display: block;
  width: max-content;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 34px;
  transition: color 0.3s ease;
}
.desktop-nav a:hover { color: #888; }
.sidebar-social {
  position: absolute;
  left: 30px;
  bottom: 44px;
  display: block;
  width: 24px;
  height: 24px;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.21, 0.6, 0.35, 1);
}
.sidebar-social:hover {
  color: #777;
  transform: translateY(-2px);
}
.sidebar-social svg,
.drawer-social svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-social .instagram-dot,
.drawer-social .instagram-dot {
  fill: currentColor;
  stroke: none;
}
.menu-toggle { display: none; }

#app {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  opacity: 1;
  transition: opacity 0.18s ease;
}
#app:focus { outline: none; }
#app.route-leaving { opacity: 0; }
#app.route-entering { opacity: 0; }
#app.route-entered { opacity: 1; transition-duration: 0.5s; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding: 20px;
  overflow: hidden;
}
.portfolio-card {
  min-width: 0;
  padding: 20px;
  opacity: 0;
}
.portfolio-card.is-visible {
  animation: tile-fade 0.5s ease-out var(--tile-delay, 0ms) forwards;
}
@keyframes tile-fade { to { opacity: 1; } }
.scroll-reveal { opacity: 0; }
.scroll-reveal.is-visible {
  animation: content-fade 1s ease var(--content-delay, 0ms) forwards;
}
@keyframes content-fade { to { opacity: 1; } }
.portfolio-card__link { display: block; }
.portfolio-card__image {
  aspect-ratio: 600 / 403;
  margin-bottom: 25px;
  overflow: hidden;
  background: transparent;
  transition: background-color 0.25s ease;
}
body.artwork-background-visible .portfolio-card__image { background: var(--artwork-background); }
.portfolio-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.21, 0.6, 0.35, 1);
  will-change: transform;
}
.portfolio-card__link:hover img { transform: translateY(-5px); }
.portfolio-card h2 {
  margin: 0;
  font-family: "Lora", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
}
.portfolio-card p {
  margin: 0;
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 26px;
}

.content-page,
.art-detail {
  width: 100%;
  max-width: 1005px;
  padding: 110px 60px 80px;
}
.content-page h1,
.art-detail h1 {
  margin: 0 0 60px;
  font-family: "Lora", serif;
  font-size: 54px;
  font-weight: 600;
  line-height: 60px;
}
.content-copy {
  max-width: 690px;
  font-size: 15px;
  line-height: 27px;
}
.content-copy p { margin: 0 0 24px; }
.content-copy h2 {
  margin: 50px 0 22px;
  font-family: "Lora", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 34px;
}
.content-copy ul { margin: 0 0 28px; padding-left: 20px; }
.content-copy li { margin-bottom: 8px; }
.biography-portrait,
.contact-photo {
  width: min(460px, 100%);
  margin: 0 0 48px;
}
.biography-portrait img,
.contact-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.contact-form {
  display: grid;
  width: min(100%, 580px);
  margin-top: 46px;
  gap: 9px;
}
.contact-form label {
  margin-top: 9px;
  color: #666;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 18px;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: 14px/24px "Open Sans", sans-serif;
}
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form select {
  min-height: 50px;
  padding: 12px 46px 12px 16px;
  border: 1px solid #d4d4d4;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fafafa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23111111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.contact-form select:hover { border-color: #999; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-bottom-color: var(--ink);
}
.contact-form select:focus {
  outline: 2px solid transparent;
  border-color: var(--ink);
  background-color: #fff;
}
.contact-form select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.contact-form button {
  width: max-content;
  min-height: 42px;
  margin-top: 18px;
  padding: 8px 18px;
  border: 0;
  color: #fff;
  background: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.21, 0.6, 0.35, 1);
}
.contact-form button:hover {
  background: #555;
  transform: translateY(-2px);
}
.page-cross-link {
  max-width: 690px;
  margin: 40px 0 0;
  font-size: 15px;
  line-height: 27px;
}
.page-cross-link a {
  border-bottom: 1px solid currentColor;
  transition: color 0.3s ease;
}
.page-cross-link a:hover { color: var(--muted); }
.contact-course-card {
  display: block;
  width: min(300px, 100%);
  margin-top: 38px;
}
.contact-course-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s cubic-bezier(0.21, 0.6, 0.35, 1);
}
.contact-course-card span {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid currentColor;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
}
.contact-course-card:hover img { transform: translateY(-4px); }
.course-poster {
  width: min(340px, 100%);
  margin: 44px 0 0;
}
.course-poster__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.course-poster__zoom:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 7px;
}
.course-poster img {
  display: block;
  width: 100%;
  height: auto;
}
.course-location,
.course-signup {
  max-width: 690px;
  margin-top: 50px;
  color: #555;
}
.course-location h2,
.course-signup h2 {
  margin: 0 0 22px;
  font-family: "Lora", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 34px;
}
.course-location p { margin: 0; }
.course-facts {
  margin: 0 0 28px;
  padding-left: 20px;
}
.course-facts li { margin-bottom: 7px; }
.course-signup p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 27px;
}
.course-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.course-cta {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 17px;
  align-items: center;
  color: #fff;
  background: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.21, 0.6, 0.35, 1);
}
.course-cta:hover {
  background: #555;
  transform: translateY(-2px);
}
.course-cta--secondary {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.course-cta--secondary:hover {
  color: #fff;
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  line-height: 20px;
  transition: color 0.3s ease;
}
.map-link:hover { color: var(--ink); }
.map-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-detail__visual { margin: 0; }
.art-detail__zoom {
  position: relative;
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.art-detail__zoom:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 8px;
}
.art-detail__visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(580px, 100%);
  max-height: 72vh;
  object-fit: contain;
}
.art-detail__meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  line-height: 24px;
}
.art-detail__copyright { white-space: nowrap; }
.art-detail__description {
  max-width: 580px;
  margin-top: 42px;
  font-size: 15px;
  line-height: 28px;
}
.art-detail__description p { margin: 0 0 24px; }
.art-detail__inquiry {
  display: inline-block;
  margin-top: 32px;
  border-bottom: 1px solid currentColor;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  transition: color 0.3s ease;
}
.art-detail__inquiry:hover { color: var(--muted); }
.work-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 90px -60px 0;
}
.adjacent-work {
  position: relative;
  display: block;
  height: 310px;
  overflow: hidden;
  color: #fff;
  background: #222;
}
.adjacent-work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.45s cubic-bezier(0.21, 0.6, 0.35, 1), opacity 0.3s ease;
}
.adjacent-work:hover img { transform: scale(1.02); opacity: 0.78; }
.adjacent-work span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: "Lora", serif;
  font-size: 22px;
  font-weight: 600;
}
.adjacent-work small {
  display: block;
  margin-bottom: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer {
  margin-top: 80px;
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
}
.art-detail > .site-footer {
  width: calc(100% + 120px);
  margin: 0 -60px -80px;
  padding: 34px 60px 40px;
  background: #fff;
  font-size: 13px;
  line-height: 20px;
}
.site-footer a {
  border-bottom: 1px solid transparent;
  color: inherit;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.site-footer a:hover {
  border-color: currentColor;
  color: var(--ink);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 56px 72px 38px;
  border: 0;
  overflow: hidden;
  color: #fff;
  background: rgba(9, 10, 10, 0.96);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox::backdrop { background: transparent; }
.lightbox.is-visible { opacity: 1; }
.lightbox__figure {
  display: grid;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  place-items: center;
}
.lightbox__image {
  display: block;
  width: auto;
  max-width: min(92vw, 1500px);
  height: auto;
  max-height: calc(100dvh - 122px);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.24s ease, transform 0.38s cubic-bezier(0.2, 1, 0.3, 1);
}
.lightbox.is-visible .lightbox__image {
  opacity: 1;
  transform: scale(1);
}
.lightbox__caption {
  max-width: min(760px, 90vw);
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.lightbox__close {
  position: fixed;
  top: 26px;
  right: 30px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.lightbox__close span {
  position: absolute;
  top: 15px;
  left: 4px;
  width: 24px;
  height: 1.5px;
  background: currentColor;
}
.lightbox__close span:first-child { transform: rotate(45deg); }
.lightbox__close span:last-child { transform: rotate(-45deg); }
.lightbox__close:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.mobile-drawer { display: none; }
.loading-state {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
}

@media (min-width: 1600px) {
  .portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .content-page, .art-detail { max-width: 1180px; }
}
@media (min-width: 1000px) and (max-width: 1160px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 999px) {
  #site-shell { will-change: transform; }
  .site-header {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--mobile-header-height);
    padding: 12px 35px;
  }
  .brand {
    position: static;
    display: inline-block;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 0;
  }
  .desktop-nav, .sidebar-social { display: none; }
  .menu-toggle {
    position: absolute;
    top: 12px;
    right: 35px;
    display: flex;
    width: 32px;
    height: 24px;
    padding: 3px 0;
    flex-direction: column;
    justify-content: space-between;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle:focus { outline: none; }
  .menu-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); }
  #app { margin-left: 0; padding-top: var(--mobile-header-height); }
  .portfolio-grid { grid-template-columns: 1fr; padding: 20px; }
  .portfolio-card { padding: 20px; }
  .portfolio-card h2 { font-size: 18px; line-height: 21.6px; }

  .mobile-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 20;
    display: block;
    width: var(--drawer-width);
    height: 100vh;
    padding-left: 50px;
    color: #eefbfa;
    background: var(--drawer);
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform;
  }
  body.drawer-open #site-shell { transform: translateX(calc(-1 * var(--drawer-width))); }
  body.drawer-open .mobile-drawer { transform: translateX(0); }
  .mobile-drawer nav {
    position: absolute;
    top: 44%;
    display: flex;
    flex-direction: column;
    transform: translateY(-50%);
  }
  .mobile-drawer nav a {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 42px;
  }
  .drawer-close {
    position: absolute;
    top: 28px;
    right: 42px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .drawer-close span { position: absolute; top: 10px; left: 1px; width: 20px; height: 1.5px; background: #fff; }
  .drawer-close span:first-child { transform: rotate(45deg); }
  .drawer-close span:last-child { transform: rotate(-45deg); }
  .drawer-social {
    position: absolute;
    left: 50px;
    bottom: 31.5%;
    width: 24px;
    height: 24px;
    color: #eefbfa;
    transition: opacity 0.3s ease;
  }
  .drawer-social:hover { opacity: 0.65; }

  .content-page,
  .art-detail {
    max-width: none;
    padding: 64px 40px 80px;
  }
  .content-page h1,
  .art-detail h1 {
    margin-bottom: 42px;
    font-size: 32px;
    line-height: 38px;
  }
  .content-copy { font-size: 15px; line-height: 27px; }
  .biography-portrait,
  .contact-photo { margin-bottom: 36px; }
  .art-detail__visual img { width: auto; max-width: 100%; max-height: 66vh; }
  .work-navigation {
    grid-template-columns: 1fr;
    margin: 70px -40px 0;
  }
  .adjacent-work { height: 250px; }
  .art-detail > .site-footer {
    width: calc(100% + 80px);
    margin: 0 -40px -80px;
    padding: 32px 28px 38px;
  }
  .lightbox { padding: 58px 20px 28px; }
  .lightbox__image {
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 118px);
  }
  .lightbox__caption { margin-top: 12px; font-size: 11px; line-height: 18px; }
  .lightbox__close { top: 16px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .portfolio-card,
  .scroll-reveal { opacity: 1; }
}
