:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #77746d;
  --paper: #f6f5f1;
  --line: #d9d7d0;
  --white: #ffffff;
  --header: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.home-shell {
  min-height: 100svh;
  padding: clamp(18px, 3vw, 42px);
  background:
    linear-gradient(180deg, #080808, #141414 48%, #090909),
    #101010;
}

.curtain-stage {
  --mx: 0;
  --my: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: calc(100svh - clamp(36px, 6vw, 84px));
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
  border: 0;
  background: #0f0f0f;
  cursor: pointer;
  isolation: isolate;
}

.curtain-stage::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at calc(50% + (var(--mx) * 36%)) calc(48% + (var(--my) * 22%)), rgb(255 255 255 / 0.16), transparent 30%),
    linear-gradient(90deg, rgb(255 255 255 / 0.08), transparent 18%, transparent 82%, rgb(255 255 255 / 0.06)),
    linear-gradient(180deg, rgb(255 255 255 / 0.08), transparent 34%, rgb(0 0 0 / 0.34));
  mix-blend-mode: screen;
  opacity: 0.7;
  transition: opacity 520ms ease;
}

.curtain-stage::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(
      90deg,
      rgb(255 255 255 / 0.035) 0,
      rgb(255 255 255 / 0.004) 8px,
      rgb(0 0 0 / 0.11) 18px,
      rgb(255 255 255 / 0.018) 32px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      rgb(255 255 255 / 0.018) 1px,
      transparent 3px,
      transparent 7px
    );
  opacity: 0.46;
}

.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 51%;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.02) 18%, rgb(0 0 0 / 0.22) 74%),
    repeating-linear-gradient(
      90deg,
      #292929 0,
      #141414 15px,
      #353535 38px,
      #111 68px
    );
  box-shadow:
    inset 0 0 120px rgb(0 0 0 / 0.58),
    inset 0 0 28px rgb(255 255 255 / 0.06);
  transition: transform 900ms cubic-bezier(0.72, 0, 0.14, 1), filter 900ms ease;
}

.curtain-left {
  left: 0;
  transform: translateX(calc(var(--mx) * 30px)) skewY(calc(var(--my) * -2deg));
  transform-origin: left center;
}

.curtain-right {
  right: 0;
  transform: translateX(calc(var(--mx) * -30px)) scaleX(-1) skewY(calc(var(--my) * 2deg));
  transform-origin: right center;
}

.curtain-light {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, rgb(255 255 255 / 0.12) calc(50% + (var(--mx) * 18%)), transparent 100%);
  opacity: 0.34;
  transform: translateX(calc(var(--mx) * 18px));
  transition: opacity 380ms ease, transform 380ms ease;
}

.curtain-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 5;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgb(255 255 255 / 0.42), transparent);
  opacity: 0.46;
  transform: translateX(calc(-50% + (var(--mx) * 18px)));
  transition: opacity 420ms ease, transform 420ms ease;
}

.curtain-stage:hover .curtain-seam,
.curtain-stage:focus-visible .curtain-seam {
  opacity: 0.85;
}

.home-line {
  position: relative;
  z-index: 6;
  max-width: 680px;
  color: rgb(247 246 241 / 0.9);
  font-family: Didot, "Bodoni 72", Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: 3.1rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: lowercase;
  transition: opacity 520ms ease, transform 740ms ease, filter 740ms ease;
}

.cover-meta {
  position: absolute;
  right: clamp(22px, 4vw, 58px);
  bottom: clamp(22px, 4vw, 54px);
  z-index: 6;
  color: rgb(255 255 255 / 0.84);
  font-size: 0.78rem;
  line-height: 1.3;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.curtain-stage:hover .cover-meta,
.curtain-stage:focus-visible .cover-meta {
  opacity: 1;
  transform: translateY(0);
}

.curtain-stage.is-opening .curtain-left {
  transform: translateX(-98%) scaleX(1.08);
  filter: brightness(0.82);
}

.curtain-stage.is-opening .curtain-right {
  transform: translateX(98%) scaleX(-1.08);
  filter: brightness(0.82);
}

.curtain-stage.is-opening .home-line,
.curtain-stage.is-opening .cover-meta,
.curtain-stage.is-opening .curtain-seam {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(5px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgb(246 245 241 / 0.88);
  border-bottom: 1px solid rgb(22 22 22 / 0.08);
  backdrop-filter: blur(18px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand {
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
  width: min(760px, 70vw);
}

.nav-link,
.step-back,
.back-link,
.section-label,
.collection-meta,
.card-meta {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.nav-link {
  transition: color 180ms ease;
}

.step-back {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.step-back::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.nav-about {
  margin-left: auto;
}

.nav-link:hover,
.nav-link.is-active,
.step-back:hover,
.back-link:hover {
  color: var(--ink);
}

.step-back:hover {
  transform: translateX(-2px);
}

.section-shell {
  min-height: calc(100svh - var(--header));
  padding: 72px 28px 96px;
}

.section-intro {
  max-width: 1120px;
  margin: 0 auto 56px;
}

.section-intro h1,
.about-layout h1 {
  max-width: 760px;
  margin: 14px 0 0;
  font-family: Didot, "Bodoni 72", Baskerville, Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.05;
}

.section-intro p:last-child {
  max-width: 460px;
  margin: 18px 0 0;
  color: #4a4945;
  font-size: 0.98rem;
  line-height: 1.8;
}

.message-intro .section-note {
  display: inline-block;
  max-width: none;
  padding: 10px 14px;
  color: var(--ink);
  border-left: 1px solid var(--ink);
  background: rgb(255 255 255 / 0.44);
  font-size: 0.8rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.work-grid,
.painting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 320px));
  justify-content: center;
  gap: 46px;
  max-width: 1160px;
  margin: 0 auto;
}

.collection-card,
.painting-card {
  position: relative;
  overflow: hidden;
  background: #191919;
}

.collection-card {
  display: block;
  aspect-ratio: 4 / 5;
}

.collection-card img,
.painting-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: filter 700ms ease, transform 700ms ease, opacity 500ms ease;
}

.collection-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.5));
  opacity: 0;
  transition: opacity 420ms ease;
}

.collection-card:hover img,
.collection-card:focus-visible img {
  filter: contrast(1.04) saturate(1.02);
  transform: scale(1.018);
}

.collection-card:hover::after,
.collection-card:focus-visible::after {
  opacity: 1;
}

.card-title,
.card-meta {
  position: absolute;
  z-index: 2;
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 380ms ease, transform 380ms ease;
}

.card-title {
  left: 20px;
  bottom: 20px;
  font-size: 1.25rem;
  font-weight: 450;
}

.card-meta {
  top: 20px;
  left: 20px;
  color: rgb(255 255 255 / 0.78);
}

.collection-card:hover .card-title,
.collection-card:focus-visible .card-title,
.collection-card:hover .card-meta,
.collection-card:focus-visible .card-meta {
  opacity: 1;
  transform: translateY(0);
}

.text-list {
  display: grid;
  max-width: 840px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.text-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px 36px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.text-card p,
.painting-card p,
.painting-card span {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.text-card h2,
.painting-card h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 470;
}

.text-card span {
  grid-column: 2;
  color: #484743;
  font-size: 0.96rem;
  line-height: 1.8;
}

.article-actions {
  grid-column: 2;
  display: flex;
  justify-content: flex-start;
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.28);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.like-button:hover {
  color: var(--ink);
  border-color: rgb(22 22 22 / 0.32);
  background: rgb(255 255 255 / 0.52);
}

.like-button strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
}

.like-button.is-liked {
  color: var(--ink);
  background: rgb(255 255 255 / 0.45);
}

.like-button:disabled {
  cursor: default;
}

.painting-card {
  background: transparent;
  color: inherit;
}

.painting-card img {
  aspect-ratio: 4 / 5;
  background: #191919;
}

.painting-card div {
  padding-top: 16px;
}

.painting-card h2 {
  margin-bottom: 8px;
}

a.painting-card img {
  transition: filter 520ms ease, opacity 520ms ease, transform 520ms ease;
}

a.painting-card:hover img,
a.painting-card:focus-visible img {
  filter: contrast(1.04) saturate(1.02);
  opacity: 0.86;
  transform: scale(1.01);
}

.painting-card span {
  display: block;
  margin-top: 6px;
  color: #484743;
}

.artwork-grid {
  justify-content: center;
}

.artwork-card {
  max-width: 320px;
}

.video-stage {
  max-width: 980px;
  margin: 0 auto;
}

.video-stage video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72svh;
  background: #111;
  object-fit: cover;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 72px;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.about-copy {
  color: #3f3e3a;
  font-size: 1.08rem;
  line-height: 1.9;
}

.about-copy p {
  margin: 0 0 24px;
}

.about-copy span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.collection-shell {
  padding: 56px 28px 96px;
}

.collection-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 56px;
  align-items: end;
  max-width: 1040px;
  margin: 0 auto 64px;
}

.collection-intro .back-link {
  grid-column: 1 / -1;
}

.collection-intro h1 {
  margin: 0;
  font-family: Didot, "Bodoni 72", Baskerville, Georgia, serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.05;
}

.collection-meta {
  margin: 0;
}

.memory {
  max-width: 420px;
  margin: 0;
  color: #3f3e3a;
  font-size: 1rem;
  line-height: 1.8;
}

.layout-switcher {
  display: inline-flex;
  gap: 8px;
  justify-self: end;
  align-self: start;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.42);
}

.layout-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.layout-button:hover,
.layout-button.is-active {
  color: var(--ink);
  background: var(--white);
}

.layout-icon {
  width: 18px;
  height: 16px;
  display: grid;
  gap: 3px;
}

.layout-icon::before,
.layout-icon::after {
  content: "";
  display: block;
  border: 1px solid currentColor;
}

.layout-single::before,
.layout-single::after {
  grid-column: 1 / -1;
}

.layout-single::before {
  height: 10px;
}

.layout-single::after {
  height: 3px;
  opacity: 0.45;
}

.layout-grid {
  grid-template-columns: repeat(2, 1fr);
}

.layout-mixed {
  grid-template-columns: 1.35fr 0.75fr;
}

.layout-mixed::before {
  height: 16px;
}

.layout-mixed::after {
  height: 10px;
  align-self: end;
}

.photo-flow {
  max-width: 1040px;
  margin: 0 auto;
}

.photo-flow figure {
  margin: 0;
}

.photo-flow img {
  width: 100%;
  height: auto;
  background: #171717;
}

.photo-flow.single {
  display: grid;
  gap: 64px;
}

.photo-flow.single figure {
  width: min(100%, 680px);
  margin: 0 auto;
}

.photo-flow.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.photo-flow.grid figure:nth-child(even) {
  margin-top: 54px;
}

.photo-flow.mixed {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.photo-flow.mixed figure:nth-child(6n + 1) {
  grid-column: 1 / 7;
}

.photo-flow.mixed figure:nth-child(6n + 2) {
  grid-column: 8 / 12;
  margin-top: 54px;
}

.photo-flow.mixed figure:nth-child(6n + 3) {
  grid-column: 2 / 6;
}

.photo-flow.mixed figure:nth-child(6n + 4) {
  grid-column: 7 / 13;
  margin-top: 38px;
}

.photo-flow.mixed figure:nth-child(6n + 5) {
  grid-column: 1 / 5;
  margin-top: 26px;
}

.photo-flow.mixed figure:nth-child(6n) {
  grid-column: 6 / 11;
}

@media (hover: none) {
  .cover-meta,
  .card-meta,
  .card-title {
    opacity: 1;
    transform: translateY(0);
  }

  .collection-card::after {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .nav-cluster {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-about {
    margin-left: 0;
  }

  .section-shell,
  .collection-shell {
    padding: 42px 18px 72px;
  }

  .section-intro h1,
  .about-layout h1,
  .collection-intro h1 {
    font-size: 2.35rem;
  }

  .collection-intro,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .layout-switcher {
    justify-self: start;
  }

  .photo-flow.grid,
  .photo-flow.mixed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .photo-flow.grid figure:nth-child(even),
  .photo-flow.mixed figure {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --header: 62px;
  }

  .home-shell {
    padding: 12px;
  }

  .curtain-stage {
    min-height: calc(100svh - 24px);
  }

  .home-line {
    max-width: 260px;
    font-size: 2rem;
  }

  .work-grid,
  .painting-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .text-card {
    grid-template-columns: 1fr;
  }

  .text-card span {
    grid-column: 1;
  }
}

.curtain-stage {
  transform: translateZ(0);
}

.curtain-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.18), transparent 32%),
    linear-gradient(180deg, #1a1a1a, #080808);
  opacity: 0;
  transition: opacity 800ms ease 360ms;
}

.curtain-panel {
  width: 50.5%;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 1120ms cubic-bezier(0.76, 0, 0.18, 1), filter 1120ms ease;
}

.curtain-left {
  transform: translate3d(calc(var(--mx) * 18px), 0, 0);
}

.curtain-right {
  transform: translate3d(calc(var(--mx) * -18px), 0, 0) scaleX(-1);
}

.curtain-stage.is-opening {
  pointer-events: none;
}

.curtain-stage.is-opening .curtain-backdrop {
  opacity: 1;
}

.curtain-stage.is-opening .curtain-left {
  transform: translate3d(-102%, 0, 0);
  filter: brightness(0.82);
}

.curtain-stage.is-opening .curtain-right {
  transform: translate3d(102%, 0, 0) scaleX(-1);
  filter: brightness(0.82);
}

.curtain-stage.is-opening::before,
.curtain-stage.is-opening::after,
.curtain-stage.is-opening .curtain-light {
  opacity: 0;
  transition-duration: 680ms;
}

.page-enter {
  animation: pageFadeIn 760ms ease both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-shell,
.collection-shell {
  padding-bottom: 154px;
}

.ambient-player {
  position: fixed;
  right: clamp(14px, 3vw, 36px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 30;
  display: grid;
  grid-template-columns: 34px minmax(120px, 210px) 96px auto;
  gap: 12px;
  align-items: center;
  max-width: calc(100vw - 28px);
  padding: 10px 12px;
  color: #efede8;
  background: rgb(18 18 18 / 0.82);
  border: 1px solid rgb(255 255 255 / 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgb(0 0 0 / 0.22);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms ease, transform 300ms ease;
}

.ambient-player.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
}

.player-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: inherit;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.play-mark {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.ambient-player.is-playing .play-mark {
  width: 10px;
  height: 12px;
  margin-left: 0;
  border: 0;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.player-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.player-copy span,
.player-copy small,
.player-state {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-copy span {
  font-size: 0.86rem;
}

.player-copy small,
.player-state {
  color: rgb(239 237 232 / 0.58);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.player-progress {
  height: 1px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.2);
}

.player-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #efede8;
}

.ambient-player.is-unavailable {
  color: rgb(239 237 232 / 0.62);
}

.message-sky {
  position: relative;
  max-width: 1160px;
  min-height: min(680px, 70svh);
  margin: 0 auto;
  overflow: hidden;
  cursor: crosshair;
  contain: layout paint;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 22%, rgb(255 255 255 / 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 18%, rgb(255 255 255 / 0.52) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 72%, rgb(255 255 255 / 0.48) 0 1px, transparent 2px),
    radial-gradient(circle at 33% 66%, rgb(255 255 255 / 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 42%, rgb(120 133 154 / 0.2), transparent 42%),
    linear-gradient(180deg, #080a11, #111520 58%, #07080d);
  border: 1px solid rgb(255 255 255 / 0.08);
}

.message-sky::before,
.message-sky::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.message-sky::before {
  background-image:
    radial-gradient(circle, rgb(255 255 255 / 0.38) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgb(255 255 255 / 0.24) 0 1px, transparent 1.6px);
  background-position: 0 0, 38px 72px;
  background-size: 116px 98px, 174px 152px;
  opacity: 0.58;
}

.message-sky::after {
  background: linear-gradient(180deg, transparent 62%, rgb(255 255 255 / 0.05));
}

.meteor-layer {
  position: absolute;
  inset: 0;
  contain: layout paint;
  pointer-events: none;
  z-index: 2;
}

.meteor {
  position: absolute;
  top: var(--top);
  right: -36%;
  display: inline-flex;
  align-items: center;
  max-width: 260px;
  color: rgb(255 255 255 / 0.94);
  font-family: Didot, "Bodoni 72", Baskerville, Georgia, serif;
  font-size: 1rem;
  white-space: nowrap;
  text-shadow: 0 0 16px rgb(255 255 255 / 0.5);
  animation: meteorFly var(--duration) linear var(--delay) forwards;
}

.meteor::before {
  display: block;
  width: 130px;
  height: 1px;
  margin-right: 12px;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.82));
  box-shadow: 0 0 14px rgb(255 255 255 / 0.42);
}

@keyframes meteorFly {
  from {
    transform: translate3d(0, 0, 0) rotate(-11deg);
    opacity: 0;
  }

  8%,
  84% {
    opacity: 1;
  }

  to {
    transform: translate3d(var(--travel), var(--drift), 0) rotate(-11deg);
    opacity: 0;
  }
}

.message-composer {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(170px, 250px) auto;
  gap: 8px;
  padding: 8px;
  background: rgb(246 245 241 / 0.92);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.message-composer.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.message-composer input,
.message-composer button {
  height: 34px;
  border: 0;
  background: transparent;
}

.message-composer input {
  min-width: 0;
  padding: 0 8px;
  color: var(--ink);
  outline: 0;
}

.message-composer button {
  padding: 0 12px;
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
}

.message-composer button:disabled,
.article-form button:disabled,
.managed-article button:disabled {
  cursor: wait;
  opacity: 0.42;
}

@media (max-width: 700px) {
  .ambient-player {
    left: 12px;
    right: 12px;
    grid-template-columns: 40px auto 34px minmax(0, 1fr) auto;
  }

  .vinyl-disc {
    width: 40px;
    height: 40px;
  }

  .player-state {
    display: none;
  }

  .message-sky {
    min-height: 64svh;
  }

  .meteor {
    max-width: min(72vw, 280px);
    font-size: 0.9rem;
  }

  .meteor::before {
    width: calc(148px * var(--size));
    margin-right: 9px;
  }
}

.home-shell {
  position: relative;
  overflow: hidden;
  transition: background 680ms ease;
}

.home-shell.is-opening {
  background: var(--paper);
}

.home-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
  opacity: 1;
  transform: scale(0.988);
  filter: brightness(0.45) saturate(0.7);
  transition: filter 1180ms cubic-bezier(0.2, 0.72, 0.18, 1), transform 1180ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.home-preview::after {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 42%, rgb(255 255 255 / 0.08), transparent 30%),
    linear-gradient(180deg, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.7));
  opacity: 1;
  transition: opacity 1160ms cubic-bezier(0.22, 0.7, 0.2, 1);
}

.home-shell.is-opening .home-preview {
  transform: scale(1);
  filter: brightness(1) saturate(1);
}

.home-shell.is-opening .home-preview::after {
  opacity: 0;
}

.home-preview .site-header {
  position: relative;
}

.home-preview-content {
  max-height: calc(100svh - var(--header));
  overflow: hidden;
}

.curtain-stage {
  z-index: 2;
  perspective: 1200px;
  transition: background 520ms ease, opacity 720ms ease 1120ms;
}

.curtain-stage.is-opening {
  background: transparent;
  opacity: 0;
}

.curtain-stage.is-opening .curtain-backdrop {
  opacity: 0;
}

.curtain-stage.is-opening .curtain-left {
  transform: translate3d(-112%, 0, 0) rotateY(9deg) scaleX(1.04);
  filter: brightness(1.08) contrast(1.08);
}

.curtain-stage.is-opening .curtain-right {
  transform: translate3d(112%, 0, 0) scaleX(-1) rotateY(9deg) scaleX(1.04);
  filter: brightness(1.08) contrast(1.08);
}

.curtain-stage.is-opening .curtain-seam {
  opacity: 0;
  transform: translateX(-50%) scaleY(1.18);
}

.curtain-stage.is-opening::before {
  opacity: 0.38;
  background:
    radial-gradient(circle at 50% 46%, rgb(255 255 255 / 0.72), transparent 18%),
    linear-gradient(90deg, transparent 18%, rgb(255 255 255 / 0.22), transparent 82%);
  mix-blend-mode: screen;
  transition-duration: 920ms;
}

.curtain-stage.is-opening::after,
.curtain-stage.is-opening .curtain-light {
  opacity: 0;
}

.ambient-player {
  grid-template-columns: 46px auto 34px minmax(128px, 220px) 96px auto auto;
  gap: 10px;
  padding-left: 10px;
}

.vinyl-disc {
  position: relative;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #101010 0 7px, transparent 7.5px),
    repeating-radial-gradient(circle at center, #111 0 2px, #252525 2px 3px, #0d0d0d 3px 5px);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.14),
    inset 0 0 18px rgb(0 0 0 / 0.68),
    0 8px 20px rgb(0 0 0 / 0.28);
}

.vinyl-disc::before {
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  content: "";
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.14), transparent 30%),
    radial-gradient(circle at center, transparent 0 16px, rgb(0 0 0 / 0.32) 17px 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.vinyl-disc::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: #efede8;
  box-shadow: 0 0 0 3px rgb(0 0 0 / 0.78);
  content: "";
  transform: translate(-50%, -50%);
}

.vinyl-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transform: scale(0.72);
  transform-origin: center;
}

.ambient-player.is-playing .vinyl-disc {
  animation: vinylSpin 4.8s linear infinite;
}

@keyframes vinylSpin {
  to {
    transform: rotate(360deg);
  }
}

.player-skip {
  height: 28px;
  padding: 0 4px;
  color: rgb(239 237 232 / 0.66);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.player-skip:hover {
  color: #efede8;
}

.note-layer {
  position: fixed;
  inset: 0;
  z-index: 29;
  pointer-events: none;
  overflow: hidden;
}

.music-note {
  position: fixed;
  color: rgb(239 237 232 / 0.82);
  font-family: Didot, "Bodoni 72", Baskerville, Georgia, serif;
  font-size: calc(1.05rem * var(--scale));
  line-height: 1;
  text-shadow:
    0 0 10px rgb(255 255 255 / 0.32),
    0 0 22px rgb(255 255 255 / 0.18);
  animation: noteRise var(--duration) cubic-bezier(0.18, 0.72, 0.22, 1) forwards;
}

@keyframes noteRise {
  from {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(0.72);
  }

  18% {
    opacity: 0.86;
  }

  to {
    opacity: 0;
    transform: translate3d(var(--drift), calc(var(--rise) * -1), 0) rotate(13deg) scale(1.18);
  }
}

.message-sky {
  background:
    radial-gradient(circle at 58% 36%, rgb(71 88 122 / 0.24), transparent 38%),
    radial-gradient(circle at 20% 88%, rgb(37 42 65 / 0.36), transparent 34%),
    linear-gradient(180deg, #050711, #0d1220 48%, #06070d);
}

.message-sky::before {
  background: radial-gradient(circle at 50% 62%, rgb(255 255 255 / 0.035), transparent 36%);
  opacity: 1;
}

.stars-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 10px rgb(255 255 255 / 0.8);
  animation: starTwinkle var(--twinkle) ease-in-out var(--delay) infinite alternate;
}

@keyframes starTwinkle {
  from {
    filter: blur(0);
    transform: scale(0.72);
  }

  to {
    filter: blur(0.2px);
    transform: scale(1.22);
  }
}

.meteor {
  top: var(--top);
  right: auto;
  left: var(--start);
  z-index: 3;
  overflow: visible;
  color: rgb(255 255 255 / 0.96);
  font-size: calc(1rem * var(--size));
  filter: drop-shadow(0 0 16px rgb(168 202 255 / 0.45));
  animation: meteorFly var(--duration) cubic-bezier(0.12, 0.02, 0.18, 1) forwards;
}

.meteor::before {
  width: calc(190px * var(--size));
  height: 2px;
  background:
    linear-gradient(90deg, transparent, rgb(125 168 255 / 0.24) 22%, rgb(255 255 255 / 0.92)),
    linear-gradient(90deg, transparent, rgb(255 255 255 / 0.22));
  box-shadow:
    0 0 18px rgb(125 168 255 / 0.5),
    0 0 34px rgb(255 255 255 / 0.26);
}

.meteor::after {
  display: block;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  content: "";
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 14px #fff,
    0 0 34px rgb(150 188 255 / 0.9),
    0 0 62px rgb(255 255 255 / 0.34);
}

@keyframes meteorFly {
  from {
    transform: translate3d(0, 0, 0) rotate(-13deg);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  74% {
    opacity: 1;
  }

  to {
    transform: translate3d(-146vw, var(--drift), 0) rotate(-13deg);
    opacity: 0;
  }
}

@media (max-width: 700px) {
  .ambient-player {
    grid-template-columns: 40px auto 34px minmax(0, 1fr) auto;
  }

  .player-progress,
  .player-state {
    display: none;
  }
}

/* Final motion tuning */
.home-shell {
  padding: 0;
  background: #050505;
}

.home-preview {
  opacity: 0;
  transform: scale(0.984);
  filter: brightness(0.2) saturate(0.5);
  transition:
    opacity 360ms ease 140ms,
    filter 1500ms cubic-bezier(0.18, 0.72, 0.16, 1),
    transform 1500ms cubic-bezier(0.18, 0.72, 0.16, 1);
}

.home-shell.is-opening .home-preview {
  opacity: 1;
  filter: brightness(1) saturate(1);
  transform: scale(1);
}

.curtain-stage {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  perspective: 1600px;
  background: #080808;
  transition: opacity 540ms ease 1420ms, background 520ms ease;
}

.curtain-stage::before {
  background:
    radial-gradient(circle at calc(50% + (var(--mx) * 72%)) calc(48% + (var(--my) * 48%)), rgb(255 255 255 / 0.3), transparent 32%),
    linear-gradient(90deg, rgb(255 255 255 / 0.08), transparent 14%, transparent 86%, rgb(255 255 255 / 0.06)),
    linear-gradient(180deg, rgb(255 255 255 / 0.08), transparent 34%, rgb(0 0 0 / 0.34));
}

.curtain-panel {
  width: 52.5%;
  transition:
    transform 1520ms cubic-bezier(0.78, 0, 0.16, 1),
    filter 1520ms ease,
    box-shadow 1520ms ease;
}

.curtain-left {
  left: -2%;
  transform: translate3d(calc(var(--mx) * 28px), 0, 0) rotateY(calc(var(--mx) * -2deg));
}

.curtain-right {
  right: -2%;
  transform: translate3d(calc(var(--mx) * -28px), 0, 0) scaleX(-1) rotateY(calc(var(--mx) * -2deg));
}

.curtain-stage.is-opening {
  opacity: 0;
}

.curtain-stage.is-opening .curtain-left {
  transform: translate3d(-118%, 0, 0) rotateY(18deg) scaleX(1.12);
  filter: brightness(1.18) contrast(1.12);
  box-shadow:
    inset -80px 0 130px rgb(255 255 255 / 0.08),
    inset 0 0 150px rgb(0 0 0 / 0.7);
}

.curtain-stage.is-opening .curtain-right {
  transform: translate3d(118%, 0, 0) scaleX(-1) rotateY(18deg) scaleX(1.12);
  filter: brightness(1.18) contrast(1.12);
  box-shadow:
    inset -80px 0 130px rgb(255 255 255 / 0.08),
    inset 0 0 150px rgb(0 0 0 / 0.7);
}

.curtain-stage.is-opening::before {
  opacity: 0.54;
  background:
    radial-gradient(circle at 50% 44%, rgb(255 255 255 / 0.82), transparent 24%),
    linear-gradient(90deg, transparent 12%, rgb(255 255 255 / 0.28), transparent 88%);
}

.music-note {
  color: rgb(12 12 12 / var(--alpha));
  text-shadow:
    0 0 8px rgb(255 255 255 / 0.9),
    0 0 18px rgb(0 0 0 / 0.18);
}

.curtain-stage.is-opening .curtain-panel,
.home-shell.is-opening .home-preview,
.music-note,
.meteor {
  will-change: transform, opacity;
}

.collection-card,
.text-card,
.photo-flow figure {
  content-visibility: auto;
  contain-intrinsic-size: 320px 420px;
}

.collection-card img,
.photo-flow img,
.video-stage video {
  backface-visibility: hidden;
}

.article-studio {
  display: grid;
  grid-template-columns: minmax(200px, 0.55fr) minmax(280px, 1fr);
  gap: 28px 42px;
  max-width: 1160px;
  margin: 52px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-studio h2 {
  margin: 10px 0 0;
  font-family: Didot, "Bodoni 72", Baskerville, Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.article-form {
  display: grid;
  gap: 10px;
}

.article-form input,
.article-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.45);
  color: var(--ink);
  font: inherit;
  outline: 0;
}

.article-form input {
  height: 38px;
  padding: 0 12px;
}

.article-form textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

.article-form button,
.managed-article button {
  justify-self: start;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
}

.article-manager {
  grid-column: 2;
  display: grid;
  gap: 12px;
}

.managed-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.managed-article p,
.empty-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.managed-article h3 {
  margin: 5px 0;
  font-size: 1rem;
  font-weight: 500;
}

.managed-article span {
  color: #484743;
  font-size: 0.92rem;
  line-height: 1.7;
}

.meteor {
  max-width: 360px;
}

.meteor::before {
  width: calc(260px * var(--size));
}

@media (max-width: 760px) {
  .article-actions {
    grid-column: auto;
  }

  .article-studio,
  .article-manager {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}
