@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

.exhibit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #102e23;
  background: #e4eee0;
}
.exhibit::before {
  position: absolute;
  z-index: -1;
  inset: 0 19% 0 0;
  content: "";
  background:
    linear-gradient(125deg, rgb(244 248 240 / 90%) 0%, rgb(237 246 234 / 80%) 31%, rgb(235 245 233 / 16%) 76%),
    url("../img/vetro-verde-1774.webp") 62% center / cover;
  mask-image: linear-gradient(to right, #000 86%, transparent);
}
.exhibit__layout {
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(22px, 3.1vw, 52px);
  width: min(100% - var(--gutter) * 2, 1460px);
  padding-block: clamp(28px, 3.6vw, 62px);
}
.exhibit__intro { min-width: 0; padding-block: 1.2rem; }
.exhibit__kicker, .exhibit__caption > span {
  font: 400 .75rem/1.4 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.exhibit__kicker { display: flex; align-items: center; gap: .75em; color: #254a38; }
.exhibit__kicker::before { content: ""; width: 2.8em; height: 1px; background: #49705a; }
.exhibit__kicker span { color: #56775f; }
.exhibit h1 {
  margin: clamp(22px, 2.7vw, 44px) 0 clamp(23px, 2.7vw, 42px) -.04em;
  font-size: clamp(2.85rem, 4.3vw, 4.9rem);
  text-wrap: balance;
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -.08em;
}
.exhibit h1 em { font: italic 400 1.19em/.95 "EB Garamond", Georgia, serif; color: #286141; letter-spacing: -.062em; }
.exhibit__lead { max-width: 38ch; color: #263f31; text-wrap: pretty; font-size: clamp(1rem, 1.19vw, 1.18rem); line-height: 1.52; }
.exhibit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: clamp(20px, 2.4vw, 35px); }
.exhibit__contact, .exhibit__services { display: inline-flex; align-items: center; min-height: 47px; font-size: .94rem; font-weight: 650; }
.exhibit__contact { padding: .72rem 1.35rem; border-radius: 999px; background: #173e2e; color: #fff; text-decoration: none; }
.exhibit__contact:hover { background: #285a40; }
.exhibit__services { color: #183b2a; text-underline-offset: .35em; }
.exhibit__services:hover { text-decoration-thickness: 2px; }
.exhibit__plate {
  position: relative;
  isolation: isolate;
  min-height: clamp(460px, 65svh, 740px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: clamp(16px, 2.1vw, 34px);
  background: #34483a;
  box-shadow: 0 15px 48px -20px rgb(19 57 34 / 37%), 0 0 0 4px rgb(252 255 245 / 30%);
}
.exhibit__scene, .exhibit__photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.exhibit__scene { z-index: -2; }
.exhibit__photo { object-fit: cover; object-position: 55% 53%; }
.exhibit__plate::before { content: ""; pointer-events: none; position: absolute; z-index: -1; inset: 40% 0 0; background: linear-gradient(transparent 27%, rgb(12 30 20 / 48%)); }
.exhibit__dock {
  position: absolute;
  inset: auto clamp(12px, 1.45vw, 24px) clamp(12px, 1.45vw, 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: clamp(9px, 1vw, 15px) clamp(12px, 1.4vw, 22px);
  border: 1px solid rgb(250 255 241 / 49%);
  border-radius: 12px;
  background: #263b2f;
  color: white;
}
@supports ((backdrop-filter: blur(17px)) or (-webkit-backdrop-filter: blur(17px))) {
  .exhibit__dock { background: linear-gradient(110deg, rgb(17 48 34 / 83%), rgb(33 58 39 / 65%)); -webkit-backdrop-filter: blur(17px); backdrop-filter: blur(17px) saturate(125%); }
}
.exhibit__project { display: flex; align-items: center; min-height: 44px; gap: 12px; text-decoration: none; }
.exhibit__caption { display: grid; gap: 3px; }
.exhibit__caption > span { color: #e2efd6; font-size: .72rem; }
.exhibit__caption strong { font-size: clamp(1.13rem, 1.7vw, 1.65rem); font-weight: 560; letter-spacing: -.05em; line-height: 1.08; }
.exhibit__project svg { width: 15px; }
.exhibit__project:hover strong { text-decoration: underline; }
.exhibit__choices { display: flex; gap: 3px; }
.exhibit__choices button { width: clamp(44px, 4vw, 61px); height: 44px; padding: 2px; border: 2px solid transparent; border-radius: 5px; background: transparent; }
.exhibit__choices button img { width: 100%; height: 100%; border-radius: 2px; object-fit: cover; }
.exhibit__choices button[aria-pressed="true"] { border-color: #daf1ad; }
.exhibit__choices button:hover { background: #ffffff4a; }
.exhibit__plate :focus-visible { outline: 3px solid #f7ffdc; outline-offset: 2px; }

.studio-facts { background: #f5f6ef; border-block: 1px solid #d1dacd; }
.studio-facts__inner { display: grid; grid-template-columns: 1.4fr 1fr .85fr; align-items: center; gap: 20px; padding-block: clamp(16px, 1.65vw, 24px); }
.studio-facts__person { display: flex; align-items: center; gap: .85rem; width: fit-content; text-decoration: none; }
.studio-facts__person:hover strong { text-decoration: underline; }
.studio-facts__person img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.studio-facts strong, .studio-facts small { display: block; line-height: 1.4; }
.studio-facts strong { font-size: 1rem; font-weight: 660; letter-spacing: -.025em; }
.studio-facts small { font-size: .83rem; color: #495c50; }
.studio-facts p { padding-left: clamp(16px, 3vw, 46px); border-left: 1px solid #c3d0bf; }
.exhibit-visible .mobile-bar { visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .hero-enter .exhibit__intro, .hero-enter .exhibit__plate { animation: rise-into-view .64s ease-out backwards; }
  .hero-enter .exhibit__plate { animation-delay: 65ms; }
  @media (min-width: 900px) and (pointer: fine) {
    .exhibit__scene { transform: translateY(var(--hero-drift, 0)) scale(1.09); }
  }
}
@media (min-width: 781px) and (max-width: 1080px) {
  .exhibit__layout { width: calc(100% - 48px); gap: 20px; }
  .exhibit h1 { font-size: clamp(2.55rem, 4.65vw, 3.2rem); }
  .exhibit__dock { inset-inline: 8px; bottom: 8px; padding: 8px; }
  .exhibit__actions { gap: .8rem; }
  .exhibit__caption > span { text-transform: none; letter-spacing: 0; }
}
@media (max-width: 780px) {
  .exhibit::before { inset: 0; mask-image: linear-gradient(#000 60%, transparent); background-position: center, 65% top; }
  .exhibit__layout { width: min(calc(100% - 32px), 620px); grid-template-columns: 1fr; gap: 22px; padding-block: 26px 16px; }
  .exhibit__intro { padding: 0 4px; }
  .exhibit__kicker { font-size: .72rem; }
  .exhibit h1 { font-size: clamp(2.35rem, 8.5vw, 3.75rem); margin-block: 17px 15px; }
  .exhibit__lead { max-width: 42ch; line-height: 1.43; }
  .exhibit__actions { margin-top: 16px; gap: 1.1rem; }
  .exhibit__contact, .exhibit__services { min-height: 44px; font-size: .88rem; }
  .exhibit__contact { padding-inline: 1rem; }
  .exhibit__plate { min-height: 0; aspect-ratio: 1.26; border-radius: 18px; }
  .exhibit__dock { inset: auto 6px 6px; padding: 6px 7px 6px 10px; border-radius: 10px; }
  .exhibit__caption > span { font-size: .72rem; text-transform: none; letter-spacing: 0; }
  .exhibit__project { gap: 6px; }
  .exhibit__project svg { display: none; }
  .exhibit__choices { gap: 0; }
  .exhibit__choices button { width: 44px; }
  .studio-facts__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 15px; }
  .studio-facts__person { grid-column: 1 / -1; }
  .studio-facts__inner > p { padding: 0; border: 0; }
  .studio-facts__inner > p:last-child { padding-left: 12px; border-left: 1px solid #c3d0bf; }
}
@media (max-width: 359px) {
  .exhibit__layout { width: calc(100% - 24px); }
  .exhibit__actions { gap: .8rem; }
  .exhibit__contact { padding-inline: .85rem; }
}
@media (forced-colors: active) {
  .exhibit__contact { border: 1px solid ButtonText; }
  .exhibit__choices button[aria-pressed="true"] { outline: 2px solid Highlight; }
}
