:root {
  color-scheme: dark;
  --ink: #07050d;
  --surface: rgba(18, 13, 28, 0.78);
  --surface-solid: #120d1c;
  --text: #f7f2e8;
  --muted: #aca4b6;
  --gold: #ffd500;
  --violet: #8557ff;
  --line: rgba(255, 255, 255, 0.13);
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(80, 30, 151, 0.22), transparent 28rem),
    radial-gradient(circle at 85% 35%, rgba(15, 104, 81, 0.13), transparent 27rem),
    linear-gradient(180deg, #090610 0%, #050407 55%, #0a0710 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(115deg, transparent 46%, rgba(255,255,255,.035) 49%, transparent 52%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.15) 0 1px, transparent 1px);
  background-size: 74px 74px, 31px 31px;
  mix-blend-mode: soft-light;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient__orb {
  position: absolute;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
}

.ambient__orb--violet { top: 18%; left: -150px; background: var(--violet); }
.ambient__orb--gold { right: -170px; bottom: 14%; background: var(--gold); opacity: .08; }

.ambient__branch {
  position: absolute;
  width: 300px;
  height: 18px;
  border-radius: 100%;
  background: #050307;
  box-shadow: 0 0 32px rgba(0,0,0,.9);
  opacity: .86;
}

.ambient__branch::before,
.ambient__branch::after {
  position: absolute;
  width: 110px;
  height: 8px;
  border-radius: 100%;
  background: inherit;
  content: "";
  transform-origin: 0 50%;
}

.ambient__branch::before { left: 38%; top: -3px; transform: rotate(-34deg); }
.ambient__branch::after { left: 61%; top: 8px; transform: rotate(28deg); }
.ambient__branch--left { top: 24%; left: -180px; transform: rotate(18deg); }
.ambient__branch--right { right: -205px; bottom: 22%; transform: rotate(-14deg); }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 5, 13, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand__sigil {
  display: grid;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,213,0,.48);
  color: var(--gold);
  box-shadow: inset 0 0 12px rgba(133,87,255,.32), 0 0 14px rgba(133,87,255,.2);
  transform: rotate(45deg);
}

.brand__sigil::first-letter { transform: rotate(-45deg); }

.brand__name {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .03em;
}

.site-header__link {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 64px);
  align-items: end;
  padding: 68px 20px 44px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(87, 40, 156, .34), transparent 43%),
    #06040a;
}

.hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 3, 9, .18) 0%, rgba(5, 3, 9, .28) 36%, rgba(5, 3, 9, .92) 84%, #07050d 100%),
    linear-gradient(90deg, rgba(7, 5, 13, .44), transparent 54%, rgba(7, 5, 13, .2));
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: brightness(.72) contrast(1.08) saturate(.86);
  transform: scale(1.02);
}

.hero__content {
  position: relative;
  z-index: 3;
}

.hero::before {
  position: absolute;
  inset: 8% -42% auto;
  height: 68%;
  z-index: 2;
  content: "";
  border: 1px solid rgba(133,87,255,.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 100px rgba(133,87,255,.13),
    0 0 80px rgba(42, 12, 91, .15);
  transform: rotate(-12deg);
}

.hero__kicker,
.section-kicker,
.detail__eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 12ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(60px, 18vw, 106px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .83;
  text-shadow: 0 0 30px rgba(133,87,255,.34);
}

.hero__title span {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .27em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero__title--long {
  max-width: 11ch;
  font-size: clamp(53px, 15vw, 96px);
  line-height: .82;
}

.hero__intro {
  max-width: 31rem;
  margin: 28px 0 0;
  color: #d7d0dc;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
}

.hero__meta {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero__meta::-webkit-scrollbar { display: none; }

.hero__pill {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  color: #8f8799;
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero__scroll::before {
  display: block;
  width: 44px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--violet), var(--gold));
}

.catalog {
  padding: 72px 14px 80px;
}

.section-head {
  padding: 0 6px 30px;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 12vw, 62px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .95;
}

.section-note {
  max-width: 33rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.art-grid {
  display: grid;
  gap: 14px;
}

.art-card {
  --accent: var(--violet);
  position: relative;
  min-height: 65svh;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px;
  background: #050408;
  isolation: isolate;
}

.art-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.art-card__image {
  width: 100%;
  height: 100%;
  min-height: 65svh;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}

.art-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(0,0,0,.02) 30%, rgba(5,3,9,.15) 48%, rgba(5,3,9,.96) 100%),
    linear-gradient(110deg, transparent 55%, color-mix(in srgb, var(--accent) 16%, transparent));
  pointer-events: none;
}

.art-card__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 26px 22px 24px;
}

.art-card__number {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.art-card__title {
  margin: 9px 0 8px;
  font-family: var(--serif);
  font-size: clamp(35px, 11vw, 54px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .94;
  text-shadow: 0 2px 22px #000;
}

.art-card__hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
  color: #d0c9d7;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.art-card__arrow { color: var(--accent); font-size: 24px; }
.art-card:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }

.detail {
  --accent: var(--violet);
  padding-bottom: 98px;
}

.detail__visual {
  position: relative;
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #030205;
}

.detail__visual::before {
  position: absolute;
  inset: -25%;
  content: "";
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 23%, transparent), transparent 55%);
  filter: blur(38px);
}

.detail__image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: calc(100svh - 64px);
  object-fit: contain;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 22%, transparent));
}

.detail__back {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: white;
  background: rgba(4,3,7,.55);
  backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.detail__counter {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 20px;
  color: rgba(255,255,255,.72);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .12em;
}

.detail__content { padding: 48px 20px 0; }

.detail__title {
  max-width: 10ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(50px, 15vw, 94px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .86;
}

.detail__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.detail__status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  content: "";
}

.legend {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legend__label {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.legend__text {
  margin: 0;
  color: #ede5ef;
  font-family: var(--serif);
  font-size: clamp(22px, 6.3vw, 30px);
  line-height: 1.48;
}

.legend__draft {
  display: block;
  margin-top: 22px;
  color: #766f7d;
  font-size: 11px;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.specs {
  display: grid;
  margin: 54px 0 0;
  border-top: 1px solid var(--line);
}

.specs__row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
}

.specs dt { color: #837c89; }
.specs dd { margin: 0; color: #e7e0e9; }

.purchase {
  margin-top: 46px;
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(255,255,255,.025));
  box-shadow: inset 0 0 45px rgba(0,0,0,.35);
}

.purchase__label {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.purchase__price {
  margin: 8px 0 22px;
  font-family: var(--serif);
  font-size: 34px;
}

.purchase__note {
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.order-form {
  display: grid;
  gap: 17px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  color: #9c94a3;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  outline: none;
  color: var(--text);
  background: rgba(5,3,8,.62);
  font: 15px/1.4 var(--sans);
}

.field__input::placeholder { color: #655e6d; }
.field__input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field__input--area { min-height: 88px; resize: vertical; }

.order-form__success {
  margin: 0;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  color: #eee8f0;
  font-size: 13px;
  line-height: 1.5;
}

.order-form__error {
  margin: 18px 0 0;
  color: #ff8da1;
  font-size: 13px;
  line-height: 1.5;
}

.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button:disabled {
  cursor: wait;
  opacity: .62;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--gold);
  color: #100c16;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(255,213,0,.15);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

.art-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
}

.art-nav__link {
  min-width: 0;
  padding: 20px 16px;
  background: var(--ink);
  text-decoration: none;
}

.art-nav__link--next { text-align: right; }
.art-nav__caption { display: block; color: #766f7d; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.art-nav__name { display: block; overflow: hidden; margin-top: 8px; font-family: var(--serif); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }

.sticky-buy {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 12px var(--safe-bottom);
  border-top: 1px solid rgba(255,255,255,.11);
  background: rgba(7,5,13,.86);
  backdrop-filter: blur(18px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: #716a77;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .art-card:hover .art-card__image { transform: scale(1.025); filter: saturate(1.09); }
  .site-header__link:hover, .detail__back:hover { color: var(--gold); }
  .button:hover { color: var(--gold); background: transparent; }
}

@media (min-width: 700px) {
  .site-header { padding-inline: 32px; }
  .hero { min-height: 760px; padding: 100px 7vw 70px; }
  .catalog { padding: 110px 3vw 120px; }
  .section-head { max-width: 1280px; margin: 0 auto; padding-bottom: 48px; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1280px; margin: 0 auto; }
  .art-card, .art-card__image { min-height: 680px; }
  .detail__content { max-width: 760px; margin: 0 auto; padding-top: 76px; }
  .sticky-buy { display: none; }
  .detail { padding-bottom: 80px; }
}

@media (min-width: 1080px) {
  .hero__content { max-width: 980px; }
  .hero__intro { margin-left: 33%; }
  .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .art-card, .art-card__image { min-height: 640px; }
  .detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); align-items: start; }
  .detail__visual { position: sticky; top: 0; min-height: 100vh; }
  .detail__image { max-height: 100vh; }
  .detail__content { padding: 100px 7vw 80px; }
}

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