:root {
  --night: #000000;
  --deep: #070B0C;
  --panel: #0B1112;
  --teal: #4FA3A5;
  --teal-deep: #1C5A5E;
  --foam: #A9D8D3;
  --gold: #D9A86C;
  --gold-hi: #F2D3A0;
  --pearl: #ECE6DA;
  --muted: #8E9C9A;
  --line: rgba(236, 230, 218, .13);
  --goldline: rgba(217, 168, 108, .45);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--pearl);
  font: 400 16px/1.55 var(--sans);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 3px; }
::selection { background: var(--teal-deep); color: var(--pearl); }

.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }

/* ---------- hero: the logo in its smoke ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 0 clamp(56px, 9vw, 96px);
  isolation: isolate;
}
.smoke { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.smoke i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: drift 26s ease-in-out infinite alternate;
}
.smoke i:nth-child(1) { width: 60vw; height: 34vw; left: -12vw; top: 30%; background: radial-gradient(closest-side, rgba(79,163,165,.55), transparent); }
.smoke i:nth-child(2) { width: 52vw; height: 30vw; right: -14vw; top: 52%; background: radial-gradient(closest-side, rgba(28,90,94,.7), transparent); animation-duration: 32s; animation-direction: alternate-reverse; }
.smoke i:nth-child(3) { width: 36vw; height: 20vw; left: 30%; top: 70%; background: radial-gradient(closest-side, rgba(217,168,108,.22), transparent); animation-duration: 38s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, -2vw) scale(1.12); }
  100% { transform: translate(-3vw, 1.5vw) scale(.95); }
}

.top {
  display: flex;
  justify-content: flex-end;
  font-size: 14.5px;
  color: var(--muted);
}
.top a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.top a:hover { color: var(--gold-hi); }
.top svg { width: 17px; height: 17px; }

.mark {
  width: min(340px, 72vw);
  margin: clamp(8px, 3vw, 24px) auto 0;
  position: relative;
}
.mark::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79,163,165,.22), transparent);
  filter: blur(20px);
}
.mark img {
  position: relative;
  width: 100%;
  mix-blend-mode: screen; /* the logo's black melts into the page */
  -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}

.hero h1 {
  margin: clamp(4px, 1.5vw, 14px) 0 0;
  font: italic 500 clamp(46px, 8.4vw, 108px)/1 var(--serif);
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, var(--gold-hi) 10%, var(--gold) 55%, #A8733F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(217,168,108,.22));
  padding: 0 .08em .08em;
}
.hero p {
  font: 400 clamp(19px, 2.2vw, 23px)/1.5 var(--serif);
  color: var(--foam);
  max-width: 40ch;
  margin: 14px auto 30px;
  padding: 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 28px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #140D06;
  font: 500 15px/1 var(--sans);
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.btn:hover { background: var(--gold-hi); box-shadow: 0 0 24px rgba(217,168,108,.3); }
.btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--gold-hi); border-color: var(--goldline); }
.btn.ghost:hover { border-color: var(--gold); background: rgba(217,168,108,.08); }

/* ---------- tabs ---------- */

.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.tabs .wrap { display: flex; justify-content: center; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  border: 1px solid transparent;
  background: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
}
.tab b { font-weight: 400; }
.tab span { margin-left: 6px; font-size: 13px; opacity: .7; }
.tab[aria-selected="true"] { border-color: var(--goldline); color: var(--gold-hi); }
.tab:not([aria-selected="true"]):hover { color: var(--pearl); }

/* ---------- grid: each item seen through an arch ---------- */

.shop { padding: 44px 0 120px; scroll-margin-top: 70px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 44px 24px;
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 30px 12px; }
}
.card { display: flex; flex-direction: column; gap: 10px; }
.card .shot {
  position: relative;
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px;
  overflow: hidden;
  background: var(--panel);
  transition: border-color .2s, box-shadow .2s;
}
.card .shot:hover { border-color: var(--goldline); box-shadow: 0 0 30px rgba(79,163,165,.18); }
.card .shot img, .card .shot .fake { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.badge {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  border: 1px solid rgba(236,230,218,.14);
  color: var(--pearl);
  font-size: 12.5px;
  white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.card .info { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px; }
.card h3 {
  margin: 0;
  font: 500 21px/1.15 var(--serif);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.price { font-weight: 400; white-space: nowrap; color: var(--gold-hi); }
.add {
  align-self: flex-start;
  margin-left: 4px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--pearl);
}
.add:hover { border-color: var(--goldline); color: var(--gold-hi); }
.add[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal); color: var(--pearl); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font: italic 400 24px/1.5 var(--serif);
  color: var(--muted);
}
.empty a { color: var(--gold-hi); }

/* ---------- bag button + drawer + detail ---------- */

.bagbtn {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .6), 0 0 24px rgba(217,168,108,.25);
}
.bagbtn .n {
  min-width: 22px; height: 22px; border-radius: 11px;
  background: #140D06; color: var(--gold-hi);
  display: inline-grid; place-items: center; font-size: 13px; padding: 0 6px;
}

.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0, 0, 0, .7);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.scrim.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 100%);
  background: var(--deep);
  border-left: 1px solid var(--goldline);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer.on { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer h2 { margin: 0; font: italic 500 32px/1 var(--serif); color: var(--gold-hi); }
.x { border: 0; background: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--pearl); }
.x:hover { background: rgba(236,230,218,.08); }
.x svg { width: 20px; height: 20px; }
.lines { flex: 1; overflow: auto; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .th { width: 64px; height: 80px; border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px; overflow: hidden; background: var(--panel); }
.line .th img, .line .th .fake { width: 100%; height: 100%; object-fit: cover; }
.line b { display: block; font: 500 19px/1.2 var(--serif); }
.line small { color: var(--muted); }
.line .rm { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; margin-top: 4px; }
.drawer footer { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.sum { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 14px; }
.sum b { font-weight: 400; color: var(--gold-hi); }
.drawer .btn { width: 100%; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.fine a { color: var(--gold-hi); }
.err { color: #E58A8A; font-size: 14px; margin: 10px 0 0; min-height: 1em; }

.detail {
  position: fixed; z-index: 50;
  left: 50%; top: 50%;
  width: min(880px, 100% - 28px);
  max-height: calc(100% - 28px);
  overflow: auto;
  transform: translate(-50%, -48%) scale(.98);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s;
  background: var(--deep);
  border: 1px solid var(--goldline);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.detail.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.detail .pic { position: relative; background: var(--panel); min-height: 340px; overflow: hidden; }
.detail .pic img, .detail .pic .fake { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.detail .body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.detail .body .x { align-self: flex-end; margin: -8px -10px 0 0; }
.detail h2 { margin: 0; font: italic 500 40px/1.05 var(--serif); color: var(--gold-hi); }
.detail .kind { color: var(--muted); font-size: 15px; }
.detail .desc { font: 400 20px/1.55 var(--serif); white-space: pre-line; margin: 0; color: var(--pearl); }
.detail .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 10px; }
.detail .row .price { font-size: 22px; }
.lockline { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--foam); }
.lockline svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 700px) {
  .detail { grid-template-columns: 1fr; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-height: 92%; transform: translateY(20px); border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .detail.on { transform: none; }
  .detail .pic { aspect-ratio: 4 / 4.4; min-height: 0; }
  .detail .body .x { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); margin: 0; }
}

.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--panel); color: var(--pearl);
  border: 1px solid var(--goldline);
  padding: 12px 20px; border-radius: 999px; font-size: 15px;
  transition: opacity .2s, transform .2s;
  max-width: calc(100% - 40px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 calc(110px + env(safe-area-inset-bottom, 0px));
  font-size: 14.5px;
  color: var(--muted);
}
.foot .wrap { display: grid; grid-template-columns: 88px 1.4fr 1fr; gap: 28px; align-items: start; }
.foot img { width: 88px; mix-blend-mode: screen; }
.foot b { display: block; font: italic 500 28px/1.1 var(--serif); color: var(--gold-hi); margin-bottom: 8px; }
.foot p { margin: 0 0 8px; max-width: 52ch; }
.foot a:hover { color: var(--gold-hi); }
@media (max-width: 700px) { .foot .wrap { grid-template-columns: 1fr; } .foot img { width: 72px; } }

/* ---------- download page ---------- */

.dlhead { padding: 34px 0 30px; text-align: center; }
.dlhead img { width: 150px; margin: 0 auto 6px; mix-blend-mode: screen; }
.dlhead h1 {
  margin: 0 0 10px;
  font: italic 500 clamp(46px, 9vw, 80px)/1 var(--serif);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #A8733F);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dlhead p { margin: 0 auto; font: 400 20px/1.5 var(--serif); max-width: 46ch; color: var(--foam); }
.dlitem { background: var(--deep); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin-bottom: 16px; }
.dlitem h2 { margin: 0 0 4px; font: 500 26px/1.15 var(--serif); }
.dlitem .kind { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.files { display: grid; gap: 8px; }
.file { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file small { color: var(--muted); margin-left: 8px; }
.file a { flex: none; padding: 9px 16px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- checkout page ---------- */

.cohead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 0 16px;
  border-bottom: 1px solid var(--line);
}
.cohead a.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.cohead a.brand img { width: 46px; height: 46px; mix-blend-mode: screen; }
.cohead a.brand b { font: italic 500 26px/1 var(--serif); color: var(--gold-hi); }
.cohead .back { font-size: 14px; color: var(--muted); }
.cohead .back:hover { color: var(--gold-hi); }
.secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.secure svg { width: 14px; height: 14px; }

.co {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  padding: 38px 0 90px;
  align-items: start;
}
.co h1 { margin: 0 0 22px; font: italic 500 clamp(38px, 5vw, 52px)/1 var(--serif); color: var(--gold-hi); }
.co h2 { margin: 0 0 14px; font: 500 22px/1.2 var(--serif); color: var(--pearl); }
.co .step { margin-bottom: 28px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 13.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#payBtn { width: 100%; padding: 17px; font-size: 16px; margin-top: 22px; }
.co .fine { text-align: left; }
.skeleton { height: 48px; border-radius: 12px; background: linear-gradient(90deg, var(--panel), #121a1b, var(--panel)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.summary {
  position: sticky; top: 24px;
  background: var(--deep);
  border: 1px solid var(--goldline);
  border-radius: 22px;
  padding: 22px;
}
.summary h2 { color: var(--gold-hi); font-style: italic; }
.summary .line { grid-template-columns: 56px 1fr auto; }
.summary .line .th { width: 56px; height: 70px; }
.summary .line:last-of-type { border-bottom: 0; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 18px; }
.summary .total b { font: 500 30px/1 var(--serif); color: var(--gold-hi); }
.summary .perks { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: var(--foam); }
.summary .perks li { display: flex; gap: 8px; align-items: flex-start; }
.summary .perks svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--gold); }
.sumtoggle { display: none; }

@media (max-width: 860px) {
  .co { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .summary { position: static; order: -1; border-radius: 0; border-width: 0 0 1px; margin: 0 -20px 28px; padding: 16px 20px; background: var(--deep); }
  .sumtoggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--gold-hi); font-size: 15px; }
  .sumtoggle b { font: 500 22px/1 var(--serif); }
  .summary:not(.open) .sumbody { display: none; }
  .summary .sumbody { margin-top: 12px; }
  .summary h2 { display: none; }
  .co h1 { margin-top: 4px; }
}
.cohead a.brand b, .secure { white-space: nowrap; }
@media (max-width: 420px) {
  .cohead a.brand img { width: 38px; height: 38px; }
  .cohead a.brand b { font-size: 21px; }
}
