:root {
  --bg: #1C1C1E;
  --fg: #F4F4F5;
  --muted: #8E8E93;
  --accent: #FF5A1F;
  --pad: clamp(20px, 3.2vw, 44px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

p, ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

#book {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 2.4s var(--ease);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

#book.ready { opacity: 1; }

/* darken the bottom edge so text sits on calm ground */
body::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(to bottom, rgba(28, 28, 30, 0), rgba(28, 28, 30, .92) 70%);
  pointer-events: none;
}

.corner {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  opacity: 0;
  animation: in 1.8s var(--ease) .6s forwards;
}

.top { top: 0; padding-top: max(var(--pad), env(safe-area-inset-top)); }

.bottom {
  bottom: 0;
  padding-bottom: max(var(--pad), calc(env(safe-area-inset-bottom) + 12px));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  animation-delay: 1.2s;
}

.name {
  font-size: 13px;
  letter-spacing: .38em;
  text-transform: uppercase;
}

.line {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.reports { text-align: right; min-width: 120px; }

.label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.reports ul { list-style: none; display: grid; gap: 6px; }

.reports li { font-size: 15px; }

.reports a {
  color: var(--accent);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}

.reports a::after { content: " \2192"; }

.reports a:hover { background-size: 100% 1px; }

.reports .empty { color: var(--muted); font-size: 13px; }

@keyframes in { to { opacity: 1; } }

@media (max-width: 600px) {
  .bottom { flex-direction: column; align-items: stretch; gap: 22px; }
  .line { font-size: 12px; }
  .line br { display: none; }
  .reports {
    text-align: left;
    padding-top: 18px;
    border-top: .5px solid rgba(255, 255, 255, .14);
  }
  .reports li { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .corner { animation-duration: .01s; animation-delay: 0s; }
}
