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

:root {
  color-scheme: dark;
  --bg: #08090b;
  --card-bg: #131416;
  --text: #dcdddf;
  --text-dim: #7d8085;
  --mono: #8e9196;
  --hint: #3a3e43;
  --plus: #5d6064;
  --plus-dim: #3a3d41;
  --sans: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --mono-font: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

html,
body {
  height: 100%;
  background: transparent;
}

body {
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  touch-action: none;
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.card-wrap {
  width: min(400px, calc(100vw - 32px), calc((100svh - 120px) * 0.703));
  aspect-ratio: 510 / 725;
  container-type: inline-size;
  transform-style: preserve-3d;
}

.card {
  --reveal: 0;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4.4cqw;
  background: var(--card-bg);
  overflow: hidden;
  transform: rotateX(0deg) rotateY(0deg);
  will-change: transform;
  box-shadow:
    0 30px 60px -10px rgba(0, 0, 0, 0.75),
    0 12px 24px rgba(0, 0, 0, 0.45);
}

/* hairline border drawn above the canvas */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 2;
}

.card-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.card-content {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brand {
  position: absolute;
  left: 7.3%;
  top: 7.4%;
  transform: translateY(-50%);
  font-size: 5.9cqw;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* plus markers drawn with two 1px bars */
.plus {
  position: absolute;
  translate: -50% -50%;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  translate: -50% -50%;
}

.plus::before {
  width: 100%;
  height: 1px;
}

.plus::after {
  width: 1px;
  height: 100%;
}

.plus--corner {
  left: 89.4%;
  top: 7.9%;
  width: 4.2cqw;
  height: 4.2cqw;
  color: var(--plus);
}

/* the small registration marks only show while the hologram is revealed */
.plus--sm {
  width: 2.6cqw;
  height: 2.6cqw;
  color: var(--plus-dim);
  opacity: var(--reveal);
}

.title-block {
  position: absolute;
  left: 7.3%;
  top: 76.4%;
}

.title {
  font-size: 6.6cqw;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--text);
}

.subtitle {
  margin-top: 0.7cqw;
  font-size: 2.9cqw;
  letter-spacing: -0.005em;
  color: var(--text-dim);
}

.meta {
  position: absolute;
  top: 92.8%;
  transform: translateY(-50%);
  font-family: var(--mono-font);
  font-size: 2.1cqw;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mono);
}

.meta--left {
  left: 7.3%;
}

.meta--right {
  right: 8%;
  margin-right: -0.26em;
}

.hint {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hint);
  white-space: nowrap;
  pointer-events: none;
}

.motion-cta {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  appearance: none;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3;
}

.motion-cta[hidden] { display: none; }

/* Hide the CTA when the iframe is small (tile preview). */
@media (max-height: 500px), (max-width: 360px) {
  .motion-cta { display: none; }
}
