.nova-profile {
  --nova-ink: #f5f4fb;
  --nova-muted: #b7b6c8;
  --nova-accent: #d7ccff;
  color: var(--nova-ink);
}
.nova-profile [hidden] { display: none !important; }
.nova-cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(18rem, 28vw, 23rem);
  margin-block: .6rem 0;
  border: 1px solid #554f76;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse at 79% 74%, #8658af 0%, #5d4789 19%, transparent 48%),
    linear-gradient(113deg, #151329 12%, #30294c 55%, #3b2e65 84%, #262440);
}
.nova-cover::before, .nova-cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.nova-cover::before {
  inset: -85% -13% -85% 43%;
  transform: rotate(27deg);
  border-left: 1px solid #cfb8fa59;
  background: linear-gradient(90deg, #dfc5fb20, transparent 12%, transparent 61%, #ddd1ff24 64%, transparent 71%);
}
.nova-cover::after {
  width: 42%;
  aspect-ratio: 1;
  right: 2%;
  top: -25%;
  border: 1px solid #e1ccff50;
  border-radius: 50%;
  box-shadow: 0 0 2.5rem #d3b1fa1f, 0 0 0 1.65rem #bfa7e215;
}
.nova-cover-copy {
  z-index: 1;
  width: 53%;
  padding: clamp(1.3rem, 3.8vw, 3.5rem);
  box-sizing: border-box;
}
.nova-cover-copy .nova-byline {
  margin: 0 0 .65rem;
  color: #dfd6ff;
  font: 700 .76rem/1.3 "Space Grotesk", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nova-cover h1 {
  margin: 0;
  color: #fff;
  font: 700 clamp(3.2rem, 6.8vw, 6.5rem)/.95 "Space Grotesk", sans-serif;
  letter-spacing: -.075em;
}
.nova-cover h1 em { color: #e2d4ff; font-style: normal; }
.nova-cover-copy > p:not(.nova-byline) {
  max-width: 32ch;
  margin: 1rem 0 1.4rem;
  color: #e7e2ee;
  font-size: clamp(.98rem, 1.45vw, 1.23rem);
  line-height: 1.45;
}
.nova-gallery-link, .nova-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 44px;
  padding: .6rem 1rem;
  border: 1px solid #bcaee6;
  border-radius: .45rem;
  background: #e6dcff;
  color: #231b39;
  font: 700 .9rem/1.2 "Space Grotesk", sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.nova-gallery-link:hover, .nova-more:hover { color: #171021; background: #fff; }
.nova-cover-portrait {
  position: absolute;
  inset: 0 7% 0 auto;
  width: min(42%, 27rem);
  overflow: hidden;
}
.nova-cover-portrait img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  transform: translateY(2%);
}
.nova-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  margin: clamp(1.8rem, 3.7vw, 3.4rem) auto;
  max-width: 72rem;
}
.nova-story h2, .nova-gallery-heading h2 {
  margin: 0;
  color: var(--nova-ink);
  font: 700 clamp(1.65rem, 2.75vw, 2.65rem)/1.08 "Space Grotesk", sans-serif;
  letter-spacing: -.046em;
}
.nova-story p {
  margin: .85rem 0 0;
  color: #d1d0da;
  font: 400 1rem/1.65 Arial, sans-serif;
}
.nova-gallery {
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  padding-top: clamp(1.2rem, 2.4vw, 2rem);
  border-top: 1px solid #494651;
  scroll-margin-top: .5rem;
}
.nova-gallery-heading, .nova-viewer-controls, .nova-viewer figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nova-gallery-heading { margin-bottom: 1.15rem; align-items: end; }
.nova-gallery-heading p, .nova-tile-collection, .nova-viewer-collection, .nova-viewer-position {
  color: var(--nova-muted, #c0bdcd);
  font: 400 .86rem/1.35 Arial, sans-serif;
}
.nova-gallery-heading p { margin: .38rem 0 0; }
.nova-picker { display: grid; gap: .25rem; color: var(--nova-muted); font: 600 .78rem/1.3 Arial, sans-serif; }
.nova-picker select {
  max-width: 100%;
  min-height: 44px;
  padding: .45rem .7rem;
  border: 1px solid #605c6e;
  border-radius: .4rem;
  color: var(--nova-ink);
  background: #211f29;
  font: 600 .9rem/1.3 Arial, sans-serif;
}
.nova-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem clamp(.65rem, 1.5vw, 1.2rem);
  padding: 0;
  margin: 0;
  list-style: none;
}
.nova-grid li { min-width: 0; }
.nova-tile { display: block; color: var(--nova-ink); text-decoration: none; border-radius: .45rem; }
.nova-tile-art {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: .45rem;
  background: radial-gradient(ellipse at 55% 60%, #524467, #242031 74%);
}
.nova-tile-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nova-tile-portrait img { object-position: center 17%; }
.nova-tile-title { display: block; margin-top: .5rem; font: 700 1rem/1.2 "Space Grotesk", sans-serif; }
.nova-tile-collection { display: block; margin-top: .17rem; }
.nova-tile:hover .nova-tile-title { color: var(--nova-accent); text-decoration: underline; }
.nova-more { display: flex; margin: 1.7rem auto 0; }
.nova-profile :focus-visible, .nova-viewer :focus-visible { outline: 3px solid #c9b9ff; outline-offset: 3px; }
.nova-viewer {
  position: fixed;
  width: min(66rem, calc(100vw - 1.7rem));
  max-width: none;
  max-height: 94vh;
  max-height: 94dvh;
  padding: .6rem;
  margin: auto;
  box-sizing: border-box;
  border: 1px solid #625972;
  border-radius: .75rem;
  color: #f7f5fc;
  background: #16151b;
}
.nova-viewer::backdrop { background: rgb(7 6 13 / 92%); }
html:has(.nova-viewer[open]) { overflow: hidden; }
.nova-viewer-controls { padding: 0 .15rem .4rem .55rem; }
.nova-viewer-controls form, .nova-viewer figure { margin: 0; }
.nova-icon {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #686173;
  border-radius: 50%;
  color: #fff;
  background: #27242f;
  font: 400 1.4rem/1 Arial, sans-serif;
  cursor: pointer;
}
.nova-icon:hover { background: #433c52; }
.nova-viewer-stage { display: grid; place-items: center; height: min(65vh, 39rem); height: min(65dvh, 39rem); background: #211f28; }
.nova-viewer-stage img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; touch-action: pan-y pinch-zoom; }
.nova-viewer figcaption { padding: .65rem .25rem .1rem .5rem; }
.nova-viewer-caption h2 { margin: .15rem 0 0; color: inherit; font: 700 clamp(1.02rem, 2vw, 1.4rem)/1.2 "Space Grotesk", sans-serif; }
.nova-viewer-arrows { display: flex; gap: .45rem; }
@media (prefers-reduced-motion: no-preference) {
  .nova-cover::after { animation: nova-halo 8s ease-in-out infinite alternate; }
  @keyframes nova-halo { to { transform: translate(2%, 3%); opacity: .63; } }
  .nova-tile img { transition: transform .24s ease; }
  .nova-tile:hover img { transform: scale(1.025); }
}
@media (max-width: 900px) { .nova-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .nova-cover { min-height: 15rem; }
  .nova-cover-copy { width: 58%; padding: 1.15rem; }
  .nova-cover-copy .nova-byline { max-width: 16ch; font-size: .64rem; }
  .nova-cover h1 { font-size: clamp(2.7rem, 9.5vw, 4rem); }
  .nova-cover-copy > p:not(.nova-byline) { margin: .7rem 0 .9rem; font-size: .91rem; }
  .nova-cover-portrait { right: 0; width: 44%; }
  .nova-cover-portrait img {
    position: absolute;
    top: 4%;
    left: 50%;
    width: auto;
    height: 148%;
    transform: translateX(-50%);
  }
  .nova-story { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; max-width: 39rem; }
  .nova-story p { margin-top: .7rem; }
}
@media (max-width: 575px) {
  .nova-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem .65rem; }
  .nova-gallery-heading { flex-wrap: wrap; gap: .6rem; }
  .nova-picker { max-width: 100%; }
  .nova-gallery-link { padding-inline: .7rem; gap: .4rem; font-size: .83rem; }
  .nova-viewer-stage { height: 55vh; height: 55dvh; }
}
@media (max-height: 500px) { .nova-viewer-stage { height: 48vh; height: 48dvh; } }
