:root {
  --font-display: Georgia, "Times New Roman";
  --font-sans: Arial, Helvetica;
  --ink: #fff9e9;
  --muted: #b5aabf;
  --violet: #180b27;
  --violet-deep: #0d0617;
  --lilac: #b79cff;
  --acid: #e6ff9a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 9%, rgba(115, 66, 151, 0.18), transparent 34rem),
    radial-gradient(circle at 13% 52%, rgba(65, 38, 96, 0.25), transparent 42rem),
    linear-gradient(155deg, #1b0d2b 0%, #11091d 54%, #090510 100%);
  background-attachment: fixed;
  font-family: var(--font-sans), sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  opacity: 0.16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.9'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: soft-light;
}

.site-header,
.hero,
.works,
.about,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: #1b0b2b;
  background: var(--acid);
}

.atmosphere {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 14% 13%, rgba(255, 250, 218, 0.9) 0 1px, transparent 1.4px),
    radial-gradient(circle at 79% 18%, rgba(198, 174, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 33%, rgba(255, 250, 218, 0.68) 0 0.7px, transparent 1px),
    radial-gradient(circle at 91% 45%, rgba(255, 250, 218, 0.65) 0 0.8px, transparent 1.2px),
    radial-gradient(circle at 18% 67%, rgba(191, 159, 255, 0.7) 0 1px, transparent 1.5px);
  background-size: 41rem 37rem, 53rem 47rem, 31rem 43rem, 59rem 61rem, 47rem 53rem;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 249, 233, 0.16);
}

.artist-name {
  font-family: var(--font-display), serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: clamp(18px, 3vw, 48px);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav a,
.about a {
  transition: color 220ms ease, text-shadow 220ms ease;
}

nav a:hover,
nav a:focus-visible,
.about a:hover,
.about a:focus-visible {
  color: var(--ink);
  text-shadow: 0 0 18px rgba(230, 255, 154, 0.5);
}

.hero {
  display: grid;
  align-content: center;
  min-height: min(820px, 88vh);
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 10vh 4vw 12vh;
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--acid);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1020px;
  margin: 0 auto;
  font-family: var(--font-display), serif;
  font-size: clamp(4.6rem, 10.5vw, 10.5rem);
  font-weight: 400;
  line-height: 0.77;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  margin-left: 0.45em;
  color: var(--lilac);
  font-style: italic;
  text-shadow: 0 0 52px rgba(167, 119, 255, 0.28);
}

.hero-note {
  width: min(440px, 82vw);
  margin: 40px auto 0;
  color: var(--muted);
  font-family: var(--font-display), serif;
  font-size: 1.18rem;
  line-height: 1.55;
}

.scroll-cue {
  display: inline-flex;
  gap: 10px;
  justify-self: center;
  align-items: center;
  margin-top: 52px;
  color: #ddd3e6;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue span {
  font-size: 1rem;
  animation: float 2.4s ease-in-out infinite;
}

.works {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(68px, 7vw, 104px) 2vw;
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 7vh 0 12vh;
}

.constellation-line {
  position: absolute;
  z-index: -1;
  height: 1px;
  opacity: 0.22;
  background: linear-gradient(90deg, transparent, var(--lilac), transparent);
  transform-origin: left center;
}

.constellation-line--one {
  top: 24%;
  left: 17%;
  width: 62%;
  transform: rotate(24deg);
}

.constellation-line--two {
  top: 63%;
  left: 8%;
  width: 80%;
  transform: rotate(-16deg);
}

.work {
  position: relative;
  min-width: 0;
}

.work--garden {
  grid-column: 2 / span 4;
}

.work--water {
  grid-column: 8 / span 3;
  margin-top: 7vh;
}

.work--orbit {
  grid-column: 6 / span 4;
}

.work--mineral {
  grid-column: 2 / span 3;
  margin-top: 4vh;
}

.work--sky {
  grid-column: 8 / span 5;
}

.star-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 88px;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  cursor: pointer;
}

.star-marker span {
  color: var(--acid);
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1;
  filter: drop-shadow(0 0 9px rgba(230, 255, 154, 0.75)) drop-shadow(0 0 28px rgba(183, 156, 255, 0.4));
  transition: color 220ms ease, filter 220ms ease, transform 220ms ease;
}

.star-marker:hover span,
.star-marker:focus span {
  animation: star-sway 1.65s ease-in-out infinite alternate;
}

.star-marker i {
  flex: 1;
  width: 1px;
  margin-top: 12px;
  background: linear-gradient(rgba(230, 255, 154, 0.8), rgba(183, 156, 255, 0));
  transition: filter 260ms ease, opacity 260ms ease;
}

.star-marker:hover i,
.star-marker:focus i {
  opacity: 0.9;
  filter: drop-shadow(0 0 7px rgba(214, 194, 255, 0.75));
}

.artwork {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #2e1643;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
  transform: translateZ(0);
  cursor: zoom-in;
}

.artwork:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 5px;
}

.artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.2,.8,.2,1), filter 500ms ease;
}

.work:hover .artwork img,
.work:focus-within .artwork img {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.025);
}

.artwork::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image:
    repeating-radial-gradient(circle at 30% 20%, transparent 0 2px, rgba(255,255,255,.16) 2.6px 3px),
    linear-gradient(110deg, transparent 40%, rgba(255,255,255,.14) 52%, transparent 64%);
  background-size: 9px 11px, 100% 100%;
}

.paint {
  position: absolute;
  display: block;
  border-radius: 48% 52% 67% 33% / 33% 48% 52% 67%;
  filter: blur(2px);
  transition: transform 900ms cubic-bezier(.2,.8,.2,1);
}

.work:hover .paint--one { transform: rotate(8deg) scale(1.07); }
.work:hover .paint--two { transform: rotate(-9deg) scale(1.11); }
.work:hover .paint--three { transform: translateY(-4%) rotate(7deg); }

.paint--one { inset: 8% -16% 28% 9%; }
.paint--two { inset: 37% 28% -12% -14%; }
.paint--three { inset: 51% -12% -20% 35%; }

.work--garden .artwork { background: linear-gradient(150deg, #151126, #405142 52%, #e07f60); }
.work--garden .paint--one { background: #d7e0a1; transform: rotate(-16deg); }
.work--garden .paint--two { background: #0e5a4c; transform: rotate(17deg); }
.work--garden .paint--three { background: #ee9f70; transform: rotate(-8deg); }

.work--water .artwork { background: linear-gradient(170deg, #102f4f, #809cab 51%, #e5b4a0); }
.work--water .paint--one { background: rgba(129, 213, 214, .75); transform: rotate(25deg); }
.work--water .paint--two { background: #183a70; transform: rotate(-14deg); }
.work--water .paint--three { background: #e7cabd; transform: rotate(13deg); }

.work--orbit .artwork { background: radial-gradient(circle at 52% 43%, #f6cf8d 0 5%, #c2748d 6% 14%, transparent 15%), linear-gradient(145deg, #120c2e, #573078 61%, #ce7b95); }
.work--orbit .paint--one { background: rgba(121, 85, 179, .72); transform: rotate(-21deg); }
.work--orbit .paint--two { background: #201453; transform: rotate(27deg); }
.work--orbit .paint--three { background: rgba(230, 135, 150, .67); transform: rotate(-4deg); }

.work--mineral .artwork { background: linear-gradient(35deg, #d7bd9b, #8c5963 47%, #2c2238); }
.work--mineral .paint--one { background: #d9b8a1; transform: rotate(17deg); }
.work--mineral .paint--two { background: #6c374d; transform: rotate(-21deg); }
.work--mineral .paint--three { background: rgba(229, 207, 177, .58); transform: rotate(18deg); }

.work--sky .artwork { background: linear-gradient(170deg, #241544, #933d64 55%, #e47c5d); }
.work--sky .paint--one { background: #db6d7f; transform: rotate(-13deg); }
.work--sky .paint--two { background: #35215f; transform: rotate(29deg); }
.work--sky .paint--three { background: #efaa77; transform: rotate(-13deg); }

.work-meta {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 12px;
  margin-top: 18px;
}

.work-number,
.work-details {
  margin: 0;
  color: #9a8ca7;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-title {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--font-display), serif;
  font-size: clamp(1.5rem, 2.25vw, 2.35rem);
  line-height: 1;
  text-align: left;
  cursor: default;
}

.work-details {
  margin-top: 8px;
}

.magic-note {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  width: min(320px, calc(100vw - 40px));
  margin: 0;
  padding: 18px 20px 18px 42px;
  border: 1px solid rgba(227, 211, 255, 0.28);
  color: #f7efff;
  background: rgba(35, 15, 57, 0.77);
  box-shadow: 0 0 45px rgba(152, 94, 226, 0.22), inset 0 0 25px rgba(190, 151, 255, 0.08);
  backdrop-filter: blur(14px);
  font-family: var(--font-display), serif;
  font-size: 1.04rem;
  line-height: 1.38;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% + 8px)) scale(.96);
  transform-origin: 50% 100%;
  transition: opacity 320ms ease, transform 520ms cubic-bezier(.18,.89,.32,1.28);
}

.magic-note span {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--acid);
  text-shadow: 0 0 12px var(--acid);
}

.work:has(.star-marker:hover) .magic-note,
.work:has(.star-marker:focus) .magic-note {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 18px)) scale(1);
}

.about {
  width: min(100% - 48px, 950px);
  margin: 0 auto;
  padding: 20vh 0;
  border-top: 1px solid rgba(255, 249, 233, 0.16);
  text-align: center;
}

.about h2 {
  margin: 0;
  font-family: var(--font-display), serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -0.04em;
}

.about > p:not(.eyebrow) {
  width: min(600px, 100%);
  margin: 34px auto;
  color: var(--muted);
  font-family: var(--font-display), serif;
  font-size: 1.2rem;
  line-height: 1.65;
}

.about a {
  color: var(--acid);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid rgba(255, 249, 233, 0.16);
  color: #92849e;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.gallery-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(54px, 1fr) minmax(0, 1160px) minmax(54px, 1fr);
  align-items: center;
  padding: clamp(20px, 4vw, 58px);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 46%, rgba(82, 46, 113, 0.26), transparent 44rem),
    rgba(7, 3, 13, 0.96);
  backdrop-filter: blur(18px);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-stage {
  display: grid;
  grid-column: 2;
  justify-items: center;
  min-width: 0;
  margin: 0;
}

.gallery-stage img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 1040px);
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.58);
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 28px;
  width: 100%;
  margin-top: 16px;
}

.gallery-caption span {
  color: #9f91aa;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.gallery-caption strong {
  font-family: var(--font-display), serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
}

.gallery-close,
.gallery-nav {
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.gallery-close:hover,
.gallery-close:focus-visible,
.gallery-nav:hover,
.gallery-nav:focus-visible {
  color: var(--acid);
  text-shadow: 0 0 18px rgba(230, 255, 154, 0.72);
}

.gallery-close {
  position: absolute;
  top: clamp(18px, 3vw, 38px);
  right: clamp(20px, 3.5vw, 48px);
  padding: 6px 10px;
  font-family: var(--font-display), serif;
  font-size: 2.4rem;
  line-height: 1;
}

.gallery-nav {
  padding: 18px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  transform: scale(1.12);
}

.gallery-nav--prev {
  grid-column: 1;
  justify-self: start;
}

.gallery-nav--next {
  grid-column: 3;
  justify-self: end;
}

@keyframes float {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(5px); }
}

@keyframes star-sway {
  0% {
    color: #efffae;
    filter: drop-shadow(0 0 10px rgba(230, 255, 154, 0.92)) drop-shadow(0 0 24px rgba(183, 156, 255, 0.38));
    transform: scale(1.07) rotate(-5deg);
  }
  50% {
    color: #fffbd7;
    filter: drop-shadow(0 0 15px rgba(255, 251, 215, 1)) drop-shadow(0 0 38px rgba(183, 156, 255, 0.68));
    transform: scale(1.14) rotate(2deg);
  }
  100% {
    color: #d8c7ff;
    filter: drop-shadow(0 0 12px rgba(216, 199, 255, 0.95)) drop-shadow(0 0 34px rgba(230, 255, 154, 0.52));
    transform: scale(1.1) rotate(7deg);
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 30px, 1440px);
    align-items: flex-start;
  }

  nav { gap: 12px; }
  nav a:nth-child(2) { display: none; }

  .hero {
    width: min(100% - 30px, 1440px);
    min-height: 760px;
    padding-inline: 0;
  }

  .hero h1 { font-size: clamp(4rem, 20vw, 7.4rem); }
  .hero h1 span { margin: .12em 0 0; }

  .works {
    display: block;
    width: min(100% - 38px, 560px);
    padding: 4vh 0 7vh;
  }

  .work,
  .work--water,
  .work--mineral {
    width: 76%;
    margin: 0 0 9vh;
  }

  .star-marker {
    height: 78px;
  }

  .work:nth-of-type(even) { margin-left: auto; }
  .constellation-line { display: none; }

  .gallery-lightbox {
    grid-template-columns: 1fr 1fr;
    align-content: center;
    padding: 58px 18px 22px;
  }

  .gallery-stage {
    grid-column: 1 / -1;
  }

  .gallery-stage img {
    max-height: 70vh;
  }

  .gallery-caption {
    gap: 16px;
  }

  .gallery-nav {
    grid-row: 2;
    margin-top: 10px;
    padding: 12px 4px;
  }

  .gallery-nav--prev { grid-column: 1; }
  .gallery-nav--next { grid-column: 2; }

  .about { width: min(100% - 38px, 950px); padding-block: 14vh; }
  footer { width: min(100% - 30px, 1440px); gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
