:root {
  --page: #f5f4f0;
  --text: #181918;
  --secondary: #71726e;
  --border: #d8d9d3;
  --accent: #3d403c;
  --surface: #ecece7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #080908;
    --text: #ebede7;
    --secondary: #92978f;
    --border: #292c27;
    --accent: #cfd3c9;
    --surface: #10120f;
  }
}
.nav.wrap {
  height: 84px;
  width: calc(100% - 80px);
}
.nav .logo {
  font-size: 29px;
}
.nav nav {
  font-size: 11px;
}
.gallery-hero {
  position: relative;
  height: min(780px, calc(100svh - 104px));
  min-height: 590px;
  width: calc(100% - 40px);
  margin: 0 auto;
  background: #050505;
  color: #f1f1ec;
  overflow: hidden;
}
.gallery-label {
  position: absolute;
  top: 25px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  font: 8px/1.4 var(--sans);
  letter-spacing: 1.5px;
  color: #a0a39d;
}
.gallery-art {
  position: absolute;
  height: 110%;
  width: 75%;
  object-fit: contain;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  animation: gallery-breathe 12s ease-in-out infinite;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 72%);
}
.gallery-bottom {
  position: absolute;
  bottom: 55px;
  left: 45px;
  right: 45px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  z-index: 2;
}
.gallery-bottom h1 {
  font-size: clamp(50px, 5.8vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -3px;
  margin: 0;
}
.gallery-bottom h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 0.9em;
  letter-spacing: -2.5px;
}
.gallery-cta {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 27px;
  border-bottom: 1px solid #73766f;
  padding: 12px 0;
  color: #f1f1ec;
}
.gallery-cta .custom-icon {
  width: 19px;
  height: 19px;
}
.gallery-index {
  position: absolute;
  bottom: 20px;
  left: 45px;
  font: 7px monospace;
  letter-spacing: 1px;
  color: #6c7069;
}
.work {
  padding-top: 80px;
  padding-bottom: 75px;
}
.art-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
}
.art-section-heading h2 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 400;
}
.art-section-heading > span {
  font: 8px monospace;
  letter-spacing: 1px;
  color: var(--secondary);
}
.project-grid {
  gap: 38px 30px;
}
.project-image {
  border-radius: 0;
  aspect-ratio: 1.6;
}
.project-heading {
  margin-top: 15px;
}
.project-heading h3 {
  font-size: 21px;
  font-weight: 500;
}
.project-foot {
  font-size: 9px;
  padding-top: 10px;
  margin-top: 12px;
}
.project-heading > span {
  font: 9px monospace;
}
.work-note {
  margin-top: 28px;
  max-width: 650px;
  font-size: 10px;
  color: var(--secondary);
}
.art-studio {
  display: grid;
  grid-template-columns: 0.5fr 1.3fr 0.8fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-block: 65px;
}
.art-studio .eyebrow {
  font: 9px monospace;
}
.art-studio h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
}
.art-studio p:not(.eyebrow) {
  max-width: 375px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.8;
}
.art-services {
  display: flex;
  flex-direction: column;
  gap: 17px;
  font-size: 12px;
  color: var(--secondary);
}
.art-services span {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.art-contact {
  padding-block: 75px 85px;
  border-top: 1px solid var(--border);
}
.art-contact .eyebrow {
  font: 8px monospace;
  letter-spacing: 1px;
  margin-bottom: 25px;
}
.art-contact h2 {
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -2px;
}
.art-contact h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 0.9em;
}
.art-email {
  display: inline-flex;
  gap: 35px;
  align-items: center;
  padding: 18px 0 9px;
  border-bottom: 1px solid var(--border);
  margin-top: 30px;
  font-size: 18px;
}
.art-email svg {
  width: 18px;
  height: 18px;
}
footer {
  border-top: 1px solid var(--border);
}
@keyframes gallery-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, calc(-50% - 6px)) scale(1.015);
  }
}
@media (max-width: 650px) {
  .nav.wrap {
    width: calc(100% - 40px);
    height: 72px;
  }
  .gallery-hero {
    width: calc(100% - 20px);
    height: 650px;
    min-height: 0;
  }
  .gallery-label {
    top: 22px;
    left: 20px;
    right: 20px;
    font-size: 6px;
    letter-spacing: 0.7px;
    gap: 20px;
  }
  .gallery-label span:last-child {
    text-align: right;
    max-width: 90px;
  }
  .gallery-art {
    width: 150%;
    height: 85%;
    top: 39%;
    max-width: none;
  }
  .gallery-bottom {
    left: 24px;
    right: 24px;
    bottom: 55px;
    display: block;
  }
  .gallery-bottom h1 {
    font-size: 55px;
    letter-spacing: -2px;
  }
  .gallery-cta {
    width: max-content;
    margin-top: 24px;
    font-size: 11px;
    padding-block: 8px;
  }
  .gallery-index {
    left: 24px;
    bottom: 20px;
    font-size: 6px;
  }
  .work {
    padding-block: 45px;
  }
  .art-section-heading {
    margin-bottom: 22px;
  }
  .art-section-heading h2 {
    font-size: 26px;
  }
  .art-section-heading > span {
    font-size: 7px;
  }
  .project-grid {
    gap: 30px;
  }
  .project-image {
    aspect-ratio: 1.5;
  }
  .art-studio {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 40px;
  }
  .art-studio .eyebrow {
    margin: 0;
  }
  .art-studio h2 {
    font-size: 29px;
  }
  .art-services {
    margin-top: 8px;
    gap: 12px;
    font-size: 12px;
  }
  .art-contact {
    padding-block: 50px;
  }
  .art-contact h2 {
    font-size: 43px;
  }
  .art-email {
    font-size: 17px;
    margin-top: 22px;
  }
  .work-note {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-art {
    animation: none;
  }
}
.gallery-art {
  height: 94%;
  width: 70%;
  top: 42%;
}
@media (max-width: 650px) {
  .gallery-art {
    height: 78%;
    width: 132%;
    top: 38%;
  }
}
.gallery-hero {
  perspective: 1100px;
}
.art-motion {
  position: absolute;
  inset: 0;
  transform: rotateX(var(--art-x, 0deg)) rotateY(var(--art-y, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}
.gallery-art {
  animation: art-orbit 14s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
}
.art-motion::after {
  content: '';
  position: absolute;
  inset: 15% 20%;
  background: radial-gradient(ellipse at 50% 50%, #d7e1ef0b, transparent 65%);
  mix-blend-mode: screen;
  animation: art-light 14s ease-in-out infinite;
  pointer-events: none;
}
@keyframes art-orbit {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-5deg) scale(0.97);
  }
  50% {
    transform: translate(-50%, calc(-50% - 16px)) rotate(5deg) scale(1.025);
  }
}
@keyframes art-light {
  0%,
  100% {
    transform: translateX(-8%) rotate(-15deg);
    opacity: 0.3;
  }
  50% {
    transform: translateX(8%) rotate(15deg);
    opacity: 0.8;
  }
}
@media (prefers-reduced-motion: reduce) {
  .art-motion {
    transform: none !important;
    will-change: auto;
  }
  .gallery-art {
    animation: none !important;
    transform: translate(-50%, -50%);
    will-change: auto;
  }
  .art-motion::after {
    animation: none;
    display: none;
  }
}
/* Actual vertex deformation replaces image transforms. Camera is fixed. */
.art-motion {
  transform: none !important;
  will-change: auto;
  perspective: none;
}
.art-motion::after {
  display: none;
}
.gallery-art {
  animation: none !important;
  transform: translate(-50%, -50%) !important;
  will-change: auto;
}
.sculpture-canvas {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 94%;
  display: block;
  opacity: 0;
}
.sculpture-ready .sculpture-canvas {
  opacity: 1;
}
.sculpture-ready .gallery-art {
  display: none;
}
.sculpture-toggle {
  position: absolute;
  right: 45px;
  top: 55px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  border: 1px solid #ffffff30;
  background: #ffffff05;
  color: #aaa;
  cursor: pointer;
}
.sculpture-toggle[hidden] {
  display: none;
}
.sculpture-toggle svg {
  width: 17px;
  height: 17px;
}
.sculpture-toggle .play-icon {
  display: none;
}
.sculpture-toggle[data-paused='true'] .play-icon {
  display: block;
}
.sculpture-toggle[data-paused='true'] .pause-icon {
  display: none;
}
.sculpture-toggle:hover {
  color: #fff;
  border-color: #ffffff70;
}
.sculpture-toggle:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}
@media (max-width: 650px) {
  .sculpture-canvas {
    width: 120%;
    height: 78%;
    top: 38%;
  }
  .sculpture-toggle {
    right: 20px;
    top: 46px;
  }
}
.gallery-cta {
  border: 1px solid #777c73;
  padding: 13px 18px;
  border-radius: 3px;
  background: #ffffff08;
  transition: background 0.2s;
}
.gallery-cta:hover {
  background: #ffffff19;
}
.portfolio-intro {
  padding-top: 35px;
}
.portfolio-back {
  display: inline-block;
  font-size: 11px;
  color: var(--secondary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 55px;
}
.portfolio-intro .eyebrow {
  font-size: 9px;
  margin-bottom: 20px;
}
.portfolio-intro h1 {
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 400;
  letter-spacing: -3px;
  line-height: 1.05;
  margin: 0 0 20px;
}
.portfolio-intro h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.portfolio-intro > p:last-child {
  font-size: 13px;
  color: var(--secondary);
  max-width: 370px;
}
.portfolio-intro + .work {
  padding-top: 45px;
}
.portfolio-contact {
  padding-block: 30px 65px;
  font-size: 18px;
}
.portfolio-contact a {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.gallery-hero + .art-studio {
  margin-top: 60px;
}
.nav nav a[aria-current='page'] {
  color: var(--text);
}
@media (max-width: 650px) {
  .portfolio-intro {
    padding-top: 25px;
  }
  .portfolio-back {
    margin-bottom: 35px;
  }
  .portfolio-intro h1 {
    font-size: 54px;
    letter-spacing: -2px;
  }
  .portfolio-contact {
    font-size: 15px;
    padding-bottom: 45px;
  }
  .gallery-hero + .art-studio {
    margin-top: 35px;
  }
  .gallery-cta {
    padding: 11px 14px;
  }
}
.gallery-cta {
  min-height: 64px;
  padding: 20px 27px;
  font-size: 16px;
  font-weight: 500;
  gap: 38px;
  background: #eeefe9;
  color: #151713;
  border: 1px solid #eeefe9;
  border-radius: 5px;
  box-shadow: 0 5px 25px #0002;
}
.gallery-cta .custom-icon {
  width: 23px;
  height: 23px;
}
.gallery-cta:hover {
  background: #fff;
  color: #080908;
  border-color: #fff;
}
.gallery-cta:focus-visible {
  outline: 2px solid white;
  outline-offset: 5px;
}
@media (max-width: 650px) {
  .gallery-cta {
    font-size: 15px;
    min-height: 58px;
    padding: 17px 21px;
    gap: 30px;
    max-width: 100%;
  }
  .gallery-cta .custom-icon {
    width: 21px;
    height: 21px;
  }
}
