:root {
  --bg: #0E0B0A;
  --bg-raise: #171210;
  --ink: #F2EDE8;
  --ink-1: rgba(242, 237, 232, 0.92);
  --ink-2: rgba(242, 237, 232, 0.75);
  --ink-3: rgba(242, 237, 232, 0.60);
  --accent: #D8BC8A;
  --accent-dim: rgba(216, 188, 138, 0.15);
  --accent-border: rgba(216, 188, 138, 0.25);
  --lacquer: #D8472F;
  --font-display: "Playfair Display", "Didot", "Bodoni MT", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --track-display: 0.3em;
  --track-label: 0.2em;
  --column: 430px;
  --colw: min(100vw, var(--column));
  color-scheme: dark;
}

@media (min-width: 431px) {
  :root {
    --column: min(430px, max(320px, 100vh * 0.4615));
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100svh;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

.backdrop {
  position: fixed;
  inset: -60px;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(216, 71, 47, 0.38), transparent 70%),
    radial-gradient(50% 45% at 80% 70%, rgba(216, 188, 138, 0.26), transparent 70%),
    var(--bg-raise);
  filter: blur(50px);
  transform: translateZ(0);
}

.column {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--column);
  min-height: 100svh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.55);
}

@media (max-width: 430px) {
  .backdrop {
    display: none;
  }
  .column {
    box-shadow: none;
  }
}

.placeholder {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.placeholder h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  margin-right: calc(var(--track-display) * -1);
  font-size: clamp(1.3rem, calc(var(--colw) * 0.06), 1.9rem);
  line-height: 1.25;
}

.placeholder .by {
  margin-top: 12px;
  margin-right: -0.34em;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

.placeholder .soon {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.splash {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 10;
  width: min(100%, var(--column));
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 45% at 50% 105%, rgba(216, 71, 47, 0.34), transparent 70%);
  transform-origin: 50% 100%;
  animation: glow 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glow {
  from {
    opacity: 0.65;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.12);
  }
}

.splash-on .splash {
  display: flex;
}

.splash:not(.is-live) {
  animation: splash-failsafe 0.4s ease 6s forwards;
}

.splash:not(.is-live) [data-type] {
  visibility: hidden;
}

.splash.is-leaving {
  opacity: 0;
  transform: translateX(-50%) scale(1.05);
  pointer-events: none;
}

@keyframes splash-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.splash__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.splash__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  margin-right: calc(var(--track-display) * -1);
  font-size: clamp(1.3rem, calc(var(--colw) * 0.06), 1.9rem);
  line-height: 1.25;
}

.splash__name {
  margin-top: 14px;
  margin-right: -0.34em;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

.splash__rule {
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 28px;
  background: var(--accent-border);
  transform: scaleX(0);
  animation: rule-in 1s ease 1s forwards;
}

@keyframes rule-in {
  to {
    transform: scaleX(1);
  }
}

.splash__line {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--ink-1);
}

.splash__line--cont {
  margin-top: 0;
}

.splash__line--accent {
  margin-top: 20px;
  color: var(--accent);
}

.splash__rule + .splash__line {
  margin-top: 28px;
}

.t-off {
  visibility: hidden;
}

.ch {
  animation: ch-in 0.35s ease backwards;
}

@keyframes ch-in {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.is-typing .t-on {
  position: relative;
}

.is-typing .t-on::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: 0.15em;
  width: 1px;
  height: 1em;
  background: var(--accent);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.splash__enter {
  position: relative;
  display: block;
  width: min(296px, 100%);
  margin-top: 34px;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 14px;
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 18px 44px -16px color-mix(in srgb, var(--accent) 60%, transparent);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.splash.is-ready .splash__enter {
  opacity: 1;
  visibility: visible;
}

.splash.is-ready .splash__enter::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: inherit;
  opacity: 0;
  animation: ring 2.8s ease-out 0.8s infinite;
  pointer-events: none;
}

@keyframes ring {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.1, 1.3);
  }
}

.splash__enter:active {
  transform: scale(0.98);
}

.splash__enter:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}

.splash__eyes {
  position: relative;
  display: block;
  height: 0;
  padding-top: 30%;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  background: var(--bg) var(--hero-key) 0 40% / 100% auto no-repeat;
}

.splash__eyes::before,
.splash__eyes::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  box-sizing: border-box;
  height: 50%;
  background: var(--bg);
  transition: transform 1.6s cubic-bezier(0.22, 0.7, 0.2, 1) 0.4s;
}

.splash__eyes::before {
  top: 0;
  border-bottom: 1px solid var(--accent);
}

.splash__eyes::after {
  bottom: 0;
  border-top: 1px solid var(--accent);
}

.splash.is-ready .splash__eyes::before {
  transform: translateY(-100%);
}

.splash.is-ready .splash__eyes::after {
  transform: translateY(100%);
}

.splash__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding-left: 0.16em;
  background: var(--accent);
  border-radius: 0 0 13px 13px;
}

.splash__bar-play {
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 10px;
}

.splash__enter-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid color-mix(in srgb, var(--bg) 28%, transparent);
  color: color-mix(in srgb, var(--bg) 62%, var(--accent));
}

.splash__enter-time svg {
  width: 12px;
  height: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .splash,
  .splash__enter {
    transition: none;
  }
  .splash.is-leaving {
    transform: translateX(-50%);
  }
  .splash::before,
  .ch,
  .is-typing .t-on::after {
    animation: none;
  }
  .splash__rule {
    animation: none;
    transform: none;
  }
  .splash.is-ready .splash__enter::after,
  .splash__eyes::before,
  .splash__eyes::after {
    display: none;
  }
}

.manifesto {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, var(--column));
  padding: 56px 28px;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  touch-action: none;
  overscroll-behavior: contain;
}

.manifesto.is-in {
  opacity: 1;
}

.manifesto__card {
  position: relative;
  width: min(100%, 340px, calc((100svh - 140px) / 1.39));
  box-shadow:
    0 30px 60px -20px color-mix(in srgb, var(--bg) 90%, transparent),
    0 4px 12px color-mix(in srgb, var(--bg) 60%, transparent);
  transform: rotate(-3.2deg);
  opacity: 0;
}

.manifesto.is-in .manifesto__card {
  animation: mf-drop 0.62s cubic-bezier(0.3, 0.9, 0.35, 1.18) both;
}

.manifesto.is-landed .manifesto__card {
  animation: mf-thud 0.32s ease-out both;
}

@keyframes mf-drop {
  0% {
    opacity: 0;
    transform: translate(40%, -120%) rotate(24deg) scale(1.5);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(-3.2deg) scale(1);
  }
}

@keyframes mf-thud {
  0% {
    opacity: 1;
    transform: rotate(-3.2deg) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: rotate(-3.2deg) scale(1);
  }
}

.manifesto__card img {
  display: block;
  width: 100%;
  height: auto;
}

.manifesto__tape {
  position: absolute;
  width: 26%;
  height: 24px;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--bg) 35%, transparent);
  opacity: 0;
}

.manifesto.is-landed .manifesto__tape {
  animation: mf-tape 0.22s ease-out both;
}

.manifesto.is-landed .manifesto__tape--b {
  animation-delay: 0.14s;
}

.manifesto__tape--a {
  --tilt: -9deg;
  top: -10px;
  left: 6%;
  transform: rotate(var(--tilt));
}

.manifesto__tape--b {
  --tilt: 7deg;
  top: -8px;
  right: 8%;
  transform: rotate(var(--tilt));
}

@keyframes mf-tape {
  from {
    opacity: 0;
    transform: rotate(var(--tilt)) scale(1.6);
  }
  to {
    opacity: 1;
    transform: rotate(var(--tilt)) scale(1);
  }
}

.manifesto__close {
  position: absolute;
  top: -18px;
  right: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  cursor: pointer;
  transform: rotate(3.2deg);
  opacity: 0;
  transition: opacity 0.3s ease 0.35s;
  -webkit-tap-highlight-color: transparent;
}

.manifesto.is-landed .manifesto__close {
  opacity: 1;
}

.manifesto__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.manifesto__close:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.splash.is-hit {
  animation: mf-hit-splash 0.36s ease-out;
}

.column.is-hit {
  animation: mf-hit 0.36s ease-out;
}

@keyframes mf-hit-splash {
  0%, 100% { transform: translateX(-50%); }
  25% { transform: translate(calc(-50% + 4px), 2px); }
  50% { transform: translate(calc(-50% - 3px), -1px); }
  75% { transform: translate(calc(-50% + 2px), 1px); }
}

@keyframes mf-hit {
  0%, 100% { transform: none; }
  25% { transform: translate(4px, 2px); }
  50% { transform: translate(-3px, -1px); }
  75% { transform: translate(2px, 1px); }
}

@media (prefers-reduced-motion: reduce) {
  .manifesto {
    transition: none;
  }
  .manifesto.is-in .manifesto__card,
  .manifesto.is-landed .manifesto__card,
  .manifesto.is-landed .manifesto__tape,
  .splash.is-hit,
  .column.is-hit {
    animation: none;
  }
  .manifesto.is-in .manifesto__card,
  .manifesto.is-landed .manifesto__tape,
  .manifesto.is-landed .manifesto__close {
    opacity: 1;
    transition: none;
  }
}
