/* loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gr) 20px var(--gl);
}
.loader .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.loader .count {
  font-family: var(--f-display);
  font-size: clamp(120px, 28vw, 420px);
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}
.loader .ld-note {
  align-self: flex-end;
  padding-bottom: 1.2em;
}
.loader .sig {
  font-family: var(--f-sig);
  font-size: clamp(48px, 8vw, 110px);
  line-height: 1;
}
.reduced .loader {
  display: none;
}

/* nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  padding-bottom: 14px;
  color: #f4e7d7;
  transition:
    background 0.35s,
    border-color 0.35s,
    backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: color-mix(in srgb, #130b07 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: #33231a;
}
.nav .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  color: #f4e7d7;
}
.lg-mark {
  width: 46px;
  height: 46px;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo:hover .lg-mark {
  transform: rotate(-12deg) scale(1.06);
}
.lg-word {
  font-family: var(--f-name);
  font-size: 24px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 2px;
}
@media (max-width: 400px) {
  .lg-word {
    display: none;
  }
}
.nav-mid {
  display: flex;
  gap: 28px;
}
.nav-mid a {
  position: relative;
}
.nav-mid a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transition: right 0.35s cubic-bezier(0.7, 0, 0.2, 1);
}
.nav-mid a:hover::after {
  right: 0;
}
.menu-btn {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 10px 18px;
  background: none;
  color: inherit;
  cursor: pointer;
}
@media (max-width: 820px) {
  .nav-mid {
    display: none;
  }
}
.nav-act {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 10px 14px;
  background: none;
  color: inherit;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}
.pill:hover {
  background: #f4e7d7;
  color: #130b07;
}
@media (max-width: 820px) {
  .nav-act [data-email] {
    display: none;
  }
}
@media (max-width: 380px) {
  .pill,
  .menu-btn {
    padding: 9px 11px;
  }
}
.ov-act {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.ov-act .f-btn {
  --c: var(--accent);
}
.rmodal {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) max(16px, env(safe-area-inset-right, 0px))
    calc(env(safe-area-inset-bottom, 0px) + 16px) max(16px, env(safe-area-inset-left, 0px));
}
.rmodal[hidden] {
  display: none;
}
.rm-back {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #0a0604 82%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rm-card {
  --c: var(--accent);
  position: relative;
  width: min(860px, 100%);
  max-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: rmIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes rmIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}
.rm-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.rm-act {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rm-act .f-btn {
  padding: 9px 14px;
}
.rm-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  background: #2a1b12;
  padding: 14px;
}
.rm-scroll img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  transform: translate(-50%, 20px);
  z-index: 98;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  .rm-card {
    animation: none;
  }
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--bg-3);
  clip-path: circle(0% at calc(100% - 60px) 40px);
  transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.overlay.open {
  clip-path: circle(150% at calc(100% - 60px) 40px);
}
.overlay a.big {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(56px, 11vw, 150px);
  line-height: 0.95;
  display: flex;
  align-items: baseline;
  gap: 20px;
  transition:
    color 0.3s,
    transform 0.4s;
}
.overlay a.big span {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--muted);
}
.overlay a.big:hover {
  color: var(--accent);
  transform: translateX(16px);
}
.overlay .close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  right: var(--gr);
}
