/* Preloader, drawers, auth modal, My Drawer, transformation theater. */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.gone {
  opacity: 0;
  visibility: hidden;
}

.pre-inner {
  text-align: center;
}

.pre-mark {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.55em;
  color: var(--gold);
  margin-bottom: 28px;
}

.pre-bar {
  width: 220px;
  height: 1px;
  background: rgba(244, 232, 220, 0.12);
  overflow: hidden;
}

.pre-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  animation: load 1.6s ease forwards;
}

@keyframes load {
  to {
    width: 100%;
  }
}

.drawer-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.drawer-back.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100%;
  background: var(--ink-2);
  z-index: 61;
  transform: translateX(100%);
  transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: auto;
  border-left: 1px solid var(--line);
}

.drawer.open {
  transform: none;
}

.drawer img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.drawer-body {
  padding: 28px;
}

.drawer-body .last-words p {
  font-size: 20px;
}

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(10, 7, 8, 0.6);
  color: var(--ivory);
  cursor: pointer;
}

.live-xform {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  margin: 48px 0 56px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.live-photo {
  position: relative;
  min-height: 460px;
}

.live-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 460px;
  transition: opacity 0.4s;
}

.live-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(10, 7, 8, 0.58);
  padding: 8px 12px;
}

.live-panel {
  padding: 32px 28px;
}

.live-heading {
  margin-bottom: 10px;
}

.live-intro {
  font-size: 14px;
  margin-bottom: 22px;
}

.live-steps {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
}

.live-step {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  padding: 12px 12px 14px;
  transition: 0.2s;
}

.live-step:hover,
.live-step.on {
  border-color: var(--gold);
  background: rgba(201, 163, 106, 0.07);
}

.live-step b {
  display: block;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 4px;
}

.live-step span {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ivory);
}

.live-step em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--ivory-dim);
  margin-top: 4px;
}

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 72;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.modal-back.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 36px 28px 28px;
}

.modal-copy {
  margin: 8px 0 22px;
  font-size: 14px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}

.auth-tabs button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ivory-dim);
  padding: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}

.auth-tabs button.on {
  border-color: var(--gold);
  color: var(--gold);
}

.account-view {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--ink);
  overflow: auto;
  transform: translateY(12px);
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
}

.account-view.open {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.account-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 36px;
  background: rgba(10, 7, 8, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.account-body {
  padding: 48px 0 80px;
}

.account-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.order-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid transparent;
  color: inherit;
  text-align: left;
  overflow: hidden;
  transition: 0.25s;
}

.order-card:hover,
.order-card:focus {
  border-color: var(--gold);
}

.order-card img {
  width: 140px;
  height: 180px;
  object-fit: cover;
}

.order-card div {
  padding: 18px 18px 16px;
}

.order-card h3 {
  font-size: 22px;
  margin: 6px 0;
}

.empty-drawer {
  border: 1px dashed var(--line);
  padding: 48px 28px;
  text-align: center;
}

.order-detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.order-detail img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.theater {
  position: fixed;
  inset: 0;
  z-index: 75;
  color: var(--ivory);
}

.theater img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theater-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 7, 8, 0.88) 0%, rgba(10, 7, 8, 0.45) 55%, rgba(10, 7, 8, 0.2) 100%);
}

.theater-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 12vh 48px 48px;
}

.theater-copy h2 {
  color: var(--ivory);
}

.theater-copy p {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ivory-dim);
  max-width: 520px;
}

.theater-quote {
  margin: 18px 0 22px;
  max-width: 520px;
}

.theater-bar {
  width: min(360px, 100%);
  height: 1px;
  background: rgba(244, 232, 220, 0.18);
  margin: 28px 0;
  overflow: hidden;
}

.theater-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.35s ease;
}

.theater-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
