/* Image-led original-work index. Loaded after spatial-layout.css on this page only. */

body.spatial-art-theme .spatial-hero.spatial-hero-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #111517;
}

body.spatial-art-theme .spatial-hero-media {
  position: absolute;
  z-index: -2;
  inset: -3% 0;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  pointer-events: none;
}

body.spatial-art-theme .spatial-hero-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 11, .1), rgba(5, 9, 11, .02) 28%, rgba(5, 9, 11, .16) 54%, rgba(5, 9, 11, .77) 100%);
}

body.spatial-art-theme .spatial-hero-scene {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

body.spatial-art-theme .spatial-hero-scene.is-active { opacity: 1; }

body.spatial-art-theme .spatial-hero-scene > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.spatial-art-theme .spatial-hero-scene--brainwave > img { object-position: center 12%; }

body.spatial-art-theme.has-motion .spatial-hero-scene.is-active > img {
  animation: spatial-scene-breathe 10s linear both;
}

body.spatial-art-theme .spatial-hero-visual.is-paused .spatial-hero-scene > img {
  animation-play-state: paused;
}

@keyframes spatial-scene-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

body.spatial-art-theme .spatial-hero-visual > .spatial-hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(600px, calc(100svh - 78px));
  padding-block: 36px 29px;
  color: #f2f0e9;
}

body.spatial-art-theme .spatial-hero-visual .spatial-hero-content > .eyebrow {
  margin: 0 0 auto;
  color: #d1d7d0;
  font-size: .65rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .15em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .25);
}

body.spatial-art-theme .spatial-hero-title {
  margin-top: 120px;
  margin-bottom: clamp(43px, 5vw, 66px);
}

body.spatial-art-theme .spatial-hero-visual h1 {
  max-width: 1000px;
  font-size: clamp(2.8rem, 4.55vw, 4.5rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -.045em;
  color: #f8f7f2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .14);
}

body.spatial-art-theme .spatial-hero-visual h1 .reading-character {
  transition-duration: 1.2s, .75s;
  transition-timing-function: cubic-bezier(.22, .9, .3, 1), ease;
}

/* A short reading sequence gives the imagery its meaning. Text remains in HTML. */
body.spatial-art-theme .spatial-statement {
  padding-block: clamp(115px, 14vw, 205px) clamp(105px, 12vw, 175px);
  background: #0e1113;
  text-align: center;
}

body.spatial-art-theme .spatial-statement > .wrap {
  max-width: 1050px;
}

body.spatial-art-theme .spatial-statement .eyebrow {
  margin: 0 0 clamp(40px, 5.5vw, 78px);
  color: #98a49b;
}

body.spatial-art-theme .spatial-statement-lines {
  margin: 0;
  color: #f2f0e9;
  font-size: clamp(2rem, 3.55vw, 3.4rem);
  font-weight: 500;
  line-height: 2.2;
  letter-spacing: -.045em;
}

body.spatial-art-theme .spatial-statement-lines > [data-reading-line] { display: block; }

body.spatial-art-theme.has-motion [data-reading-style="spatial"] .reading-character {
  opacity: 1;
  transform: none;
  color: rgb(
    calc(97 + (145 * var(--spatial-character-light, 0)))
    calc(105 + (135 * var(--spatial-character-light, 0)))
    calc(104 + (129 * var(--spatial-character-light, 0)))
  );
  transition: color .15s linear;
  transition-delay: 0ms;
}

body.spatial-art-theme .spatial-statement-context {
  max-width: 620px;
  margin: clamp(38px, 5vw, 65px) auto 0;
  color: #aeb9af;
  font-size: clamp(.98rem, 1.23vw, 1.12rem);
  font-weight: 400;
  line-height: 2.1;
  text-wrap: pretty;
}

body.spatial-art-theme .spatial-statement-credit {
  max-width: 600px;
  margin: 24px auto 0;
  color: #78877b;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.95;
  text-wrap: pretty;
}

/* Natural photograph proportions: a portrait beside a wider installation view. */
body.spatial-art-theme .spatial-selected {
  padding-top: clamp(58px, 6vw, 90px);
}

body.spatial-art-theme .spatial-work-gallery {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
  column-gap: clamp(40px, 5vw, 66px);
}

body.spatial-art-theme .spatial-work-gallery .spatial-work-item:nth-child(2) {
  padding-top: clamp(110px, 12vw, 170px);
}

body.spatial-art-theme .spatial-work-gallery .spatial-work-media {
  aspect-ratio: auto;
  background: transparent;
}

body.spatial-art-theme .spatial-work-gallery .spatial-work-media > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

body.spatial-art-theme .spatial-work-gallery .spatial-work-caption {
  margin-top: 19px;
  padding-top: 24px;
}

@media (max-width: 900px) {
  body.spatial-art-theme .spatial-hero-visual > .spatial-hero-content {
    min-height: max(570px, calc(100svh - 66px));
    padding-block: 29px 25px;
  }
  body.spatial-art-theme .spatial-hero-visual h1 { font-size: clamp(2.4rem, 4.8vw, 3.25rem); }
  body.spatial-art-theme .spatial-hero-title { margin-bottom: 44px; }
  body.spatial-art-theme .spatial-work-gallery { column-gap: 35px; }
  body.spatial-art-theme .spatial-work-gallery .spatial-work-item:nth-child(2) { padding-top: 95px; }
  body.spatial-art-theme .spatial-statement-lines { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
}

@media (max-width: 700px) {
  body.spatial-art-theme .spatial-hero-visual > .spatial-hero-content {
    min-height: max(560px, calc(100svh - 66px));
    padding-block: 27px 24px;
  }
  body.spatial-art-theme .spatial-hero-media { inset: -2.5% -12%; }
  body.spatial-art-theme .spatial-hero-scene--ensou > img { object-position: 52% center; }
  body.spatial-art-theme .spatial-hero-scene--brainwave > img { object-position: center 10%; }
  body.spatial-art-theme .spatial-hero-visual .spatial-hero-content > .eyebrow { font-size: .59rem; }
  body.spatial-art-theme .spatial-hero-visual h1 {
    font-size: clamp(1.9rem, 7.1vw, 2.8rem);
    line-height: 1.65;
    letter-spacing: -.05em;
  }
  body.spatial-art-theme .spatial-hero-title { margin-top: 140px; margin-bottom: 32px; }
  body.spatial-art-theme .spatial-statement { padding-block: 103px 96px; }
  body.spatial-art-theme .spatial-statement .eyebrow { margin-bottom: 36px; }
  body.spatial-art-theme .spatial-statement-lines {
    font-size: clamp(1.25rem, 4.85vw, 1.8rem);
    line-height: 2.3;
    letter-spacing: -.045em;
  }
  body.spatial-art-theme .spatial-statement-context { max-width: 33em; margin-top: 32px; font-size: .95rem; line-height: 2.05; text-align: left; }
  body.spatial-art-theme .spatial-statement-credit { margin-top: 20px; font-size: .71rem; text-align: left; }
  body.spatial-art-theme .spatial-selected { padding-top: 45px; }
  body.spatial-art-theme .spatial-work-gallery { grid-template-columns: minmax(0, 1fr); row-gap: 59px; }
  body.spatial-art-theme .spatial-work-gallery .spatial-work-item:nth-child(2) { padding-top: 0; }
  body.spatial-art-theme .spatial-work-gallery .spatial-work-caption { margin-top: 17px; padding-top: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  body.spatial-art-theme .spatial-hero-media { transform: none; }
  body.spatial-art-theme .spatial-hero-scene { transition: none; }
  body.spatial-art-theme.has-motion .spatial-hero-scene.is-active > img { animation: none; transform: none; }
  body.spatial-art-theme.has-motion [data-reading-style="spatial"] .reading-character {
    color: #f2f0e9;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
