/* Homepage art preview: four works on the left, a zero-gap mosaic on the right. */

.art-section.home-portal {
  width: calc(100% - clamp(28px, 3vw, 58px)) !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin-inline: auto;
  padding-block: clamp(30px, 3.4vw, 56px) !important;
  overflow: hidden !important;
}

.art-section.home-portal .art-overview.art-overview-shadow {
  width: 100% !important;
  max-width: none !important;
  height: clamp(620px, 49vw, 760px) !important;
  min-height: 620px !important;
  display: grid !important;
  grid-template-columns: clamp(330px, 27vw, 470px) minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: clamp(14px, 1.5vw, 26px) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.art-section.home-portal .art-overview.art-overview-shadow::before,
.art-section.home-portal .art-overview.art-overview-shadow::after {
  display: none !important;
}

.art-copy-stack {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(16px, 1.5vw, 24px);
  align-self: stretch;
}

.art-overview-shadow .art-heading {
  position: relative !important;
  inset: auto !important;
  z-index: 4;
  width: 100%;
  max-width: 470px;
  align-self: start !important;
  margin: 0;
  padding: clamp(4px, 0.7vw, 12px) 0 0 !important;
}

.art-overview-shadow .art-heading h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(3rem, 5.4vw, 5.8rem) !important;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.art-overview-shadow .art-heading > p:not(.eyebrow) {
  max-width: 29ch;
  margin: 20px 0 0;
  color: rgba(236, 230, 218, 0.7);
  font-size: clamp(0.9rem, 1.05vw, 1.02rem);
  line-height: 1.55;
}

.art-overview-shadow .art-heading .entry-link {
  display: inline-block;
  margin-top: 24px;
}

.art-side-features {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(8px, 0.75vw, 13px);
  align-self: stretch;
  overflow: hidden;
}

.art-shadow-gallery {
  grid-column: 2 !important;
  grid-row: 1 !important;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: dense;
  gap: clamp(8px, 0.7vw, 13px) !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  overflow: hidden !important;
  isolation: isolate;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.art-shadow-gallery::before,
.art-shadow-gallery::after {
  display: none !important;
}

.art-side-feature,
.art-shadow-work {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  margin: 0 !important;
  overflow: visible;
  color: inherit;
  text-decoration: none;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transform-origin: center;
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 300ms cubic-bezier(.2,.8,.2,1);
}

/* Exact desktop coverage: every one of the 28 grid cells is occupied. */
.art-shadow-work:nth-child(1)  { grid-column: 1 / span 2; grid-row: 1 / span 3; }
.art-shadow-work:nth-child(2)  { grid-column: 3; grid-row: 1; }
.art-shadow-work:nth-child(3)  { grid-column: 4; grid-row: 1; }
.art-shadow-work:nth-child(4)  { grid-column: 5 / span 3; grid-row: 1; }
.art-shadow-work:nth-child(5)  { grid-column: 3; grid-row: 2 / span 2; }
.art-shadow-work:nth-child(6)  { grid-column: 4 / span 3; grid-row: 2 / span 2; }
.art-shadow-work:nth-child(7)  { grid-column: 7; grid-row: 2 / span 2; }
.art-shadow-work:nth-child(8)  { grid-column: 1; grid-row: 4; }
.art-shadow-work:nth-child(9)  { grid-column: 2; grid-row: 4; }
.art-shadow-work:nth-child(10) { grid-column: 3 / span 2; grid-row: 4; }
.art-shadow-work:nth-child(11) { grid-column: 5; grid-row: 4; }
.art-shadow-work:nth-child(12) { grid-column: 6 / span 2; grid-row: 4; }

.art-side-feature figure,
.art-shadow-work figure {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(111, 234, 255, 0.12);
  background: #020202;
  box-shadow:
    inset 0 0 44px rgba(0, 0, 0, 0.78),
    0 14px 34px rgba(0, 0, 0, 0.62),
    0 0 0 rgba(111, 234, 255, 0);
  animation: art-rest-pulse 5.8s ease-in-out infinite;
  transition:
    border-color 240ms ease,
    box-shadow 320ms ease,
    filter 240ms ease;
}

.art-side-feature figure::before,
.art-side-feature figure::after,
.art-shadow-work figure::before,
.art-shadow-work figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.art-side-feature figure::before,
.art-shadow-work figure::before {
  opacity: 0.68;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.5)),
    radial-gradient(circle at 50% 42%, transparent 18%, rgba(0,0,0,0.42) 100%);
}

.art-side-feature figure::after,
.art-shadow-work figure::after {
  opacity: 0.52;
  background:
    radial-gradient(circle at 48% 42%, transparent 24%, rgba(0,0,0,0.62) 100%),
    linear-gradient(115deg, transparent 10%, rgba(0,0,0,0.28) 48%, transparent 78%);
  box-shadow:
    inset 0 0 0 1px rgba(239,210,140,0.08),
    inset 0 0 38px rgba(0,0,0,0.72);
  animation: art-shadow-breathe 5.8s ease-in-out infinite;
}

.art-side-feature img,
.art-shadow-work img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.84;
  filter: brightness(0.46) saturate(0.76) contrast(1.12) sepia(0.06);
  transform: scale(1.02);
  transition:
    opacity 260ms ease,
    filter 320ms ease,
    transform 500ms cubic-bezier(.2,.8,.2,1);
}

.art-side-feature figcaption,
.art-shadow-work figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  color: rgba(239, 210, 140, 0.86);
  background: linear-gradient(180deg, transparent, rgba(3,2,1,0.96));
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.48;
  transform: translateY(2px);
  transition: opacity 180ms ease, transform 200ms ease;
}

/* Stagger the idle pulse so the whole wall breathes rather than blinking together. */
.art-side-feature:nth-child(2n),
.art-shadow-work:nth-child(3n + 1) { --pulse-delay: -1.6s; }
.art-side-feature:nth-child(3n),
.art-shadow-work:nth-child(3n + 2) { --pulse-delay: -3.2s; }
.art-side-feature figure,
.art-shadow-work figure,
.art-side-feature figure::after,
.art-shadow-work figure::after { animation-delay: var(--pulse-delay, 0s); }

.art-side-feature:hover,
.art-side-feature:focus-visible,
.art-shadow-work:hover,
.art-shadow-work:focus-visible {
  z-index: 20;
  outline: none;
  transform: translateY(-5px) scale(1.026) !important;
}

.art-side-feature:hover figure,
.art-side-feature:focus-visible figure,
.art-shadow-work:hover figure,
.art-shadow-work:focus-visible figure {
  animation-play-state: paused;
  border-color: rgba(111,234,255,0.88);
  box-shadow:
    0 0 0 1px rgba(239,210,140,0.46),
    0 0 24px rgba(111,234,255,0.4),
    0 0 58px rgba(111,234,255,0.18),
    0 28px 72px rgba(0,0,0,0.82);
}

.art-side-feature:hover figure::before,
.art-side-feature:focus-visible figure::before,
.art-side-feature:hover figure::after,
.art-side-feature:focus-visible figure::after,
.art-shadow-work:hover figure::before,
.art-shadow-work:focus-visible figure::before,
.art-shadow-work:hover figure::after,
.art-shadow-work:focus-visible figure::after {
  animation-play-state: paused;
  opacity: 0.08;
}

.art-side-feature:hover img,
.art-side-feature:focus-visible img,
.art-shadow-work:hover img,
.art-shadow-work:focus-visible img {
  opacity: 1;
  filter: brightness(0.98) saturate(1.08) contrast(1.03) sepia(0.01);
  transform: scale(1.065);
}

.art-side-feature:hover figcaption,
.art-side-feature:focus-visible figcaption,
.art-shadow-work:hover figcaption,
.art-shadow-work:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

@supports selector(:has(*)) {
  .art-side-features:has(.art-side-feature:hover) .art-side-feature:not(:hover),
  .art-side-features:has(.art-side-feature:focus-visible) .art-side-feature:not(:focus-visible),
  .art-shadow-gallery:has(.art-shadow-work:hover) .art-shadow-work:not(:hover),
  .art-shadow-gallery:has(.art-shadow-work:focus-visible) .art-shadow-work:not(:focus-visible) {
    opacity: 0.54 !important;
    filter: brightness(0.54);
  }
}

@keyframes art-rest-pulse {
  0%, 100% {
    box-shadow:
      inset 0 0 44px rgba(0,0,0,0.8),
      0 14px 34px rgba(0,0,0,0.64),
      0 0 0 rgba(111,234,255,0);
  }
  50% {
    box-shadow:
      inset 0 0 58px rgba(0,0,0,0.9),
      0 18px 46px rgba(0,0,0,0.76),
      0 0 18px rgba(111,234,255,0.08);
  }
}

@keyframes art-shadow-breathe {
  0%, 100% { opacity: 0.44; transform: scale(1); }
  50% { opacity: 0.68; transform: scale(1.018); }
}

@media (max-width: 1100px) {
  .art-section.home-portal .art-overview.art-overview-shadow {
    height: clamp(620px, 67vw, 760px) !important;
    min-height: 620px !important;
    grid-template-columns: minmax(280px, 34vw) minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .art-shadow-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  }

  .art-shadow-work {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 760px) {
  .art-section.home-portal {
    width: calc(100% - 28px) !important;
    padding-block: 28px 36px !important;
  }

  .art-section.home-portal .art-overview.art-overview-shadow {
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 18px !important;
  }

  .art-copy-stack {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .art-side-features {
    min-height: 520px;
  }

  .art-shadow-gallery {
    grid-column: 1 !important;
    grid-row: 2 !important;
    height: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: clamp(130px, 30vw, 190px) !important;
  }

  .art-shadow-work {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 520px) {
  .art-side-features {
    min-height: 440px;
    gap: 8px;
  }

  .art-shadow-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 160px !important;
    gap: 8px !important;
  }
}

@media (hover: none) {
  .art-side-feature img,
  .art-shadow-work img {
    opacity: 0.94;
    filter: brightness(0.68) saturate(0.9) contrast(1.05) sepia(0.03);
  }

  .art-side-feature figcaption,
  .art-shadow-work figcaption {
    opacity: 0.82;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .art-side-feature,
  .art-side-feature figure,
  .art-side-feature figure::after,
  .art-side-feature img,
  .art-side-feature figcaption,
  .art-shadow-work,
  .art-shadow-work figure,
  .art-shadow-work figure::after,
  .art-shadow-work img,
  .art-shadow-work figcaption {
    animation: none !important;
    transition: none;
  }

  .art-side-feature:hover,
  .art-side-feature:focus-visible,
  .art-shadow-work:hover,
  .art-shadow-work:focus-visible {
    transform: none !important;
  }
}