/* Rook Solutions — one-screen, referral-only  v=13
   Palette from Checkmate Government Relations: red #B8171D, near-black #080808.
   Wordmark: Fairplex Wide OT Med (from the Checkmate site, licensed).
   Small type: Poppins.
   Background: very faint pre-rendered crimson volumetric haze (Dune-like shafts
   and bloom at 20% of v9 visibility; no horizontal flare) behind the v2 ghost
   watermark (pre-blurred raster, no live filter), the v6 static red glow,
   v6 grain, and v6 vignette. No live CSS filters or SVG turbulence on the
   atmosphere. No motion except a one-time entrance fade. */

@font-face {
  font-family: "Fairplex Wide OT";
  src:
    url("assets/fonts/FairplexWideOT-Med.woff2?v=13") format("woff2"),
    url("assets/fonts/FairplexWideOT-Med.woff?v=13") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080808;
  --ink: #f4f1ee;
  --muted: rgba(244, 241, 238, 0.58);
  --faint: rgba(244, 241, 238, 0.32);
  --red: #b8171d;
  --red-muted: rgba(184, 23, 29, 0.78);
  --serif: "Fairplex Wide OT", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

img { display: block; max-width: 100%; height: auto; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem var(--pad) 5.5rem;
  overflow: hidden;
}

.atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.haze {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.haze img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 46%;
}

.haze {
  /* 20% of the v9 atmosphere (was 0.72; v10 was 12% / 0.086). */
  opacity: 0.144;
  z-index: 1;
}


.watermark {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 0;
  display: block;
  width: min(calc(70vh * 111 / 95), calc(760px * 111 / 95));
  max-width: calc(100% * 111 / 95);
  height: auto;
  opacity: 0.04;
  transform: translate(-50%, -50%);
}

.watermark img {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 46%,
      transparent 22%,
      rgba(0, 0, 0, 0.28) 68%,
      rgba(0, 0, 0, 0.62) 100%);
}

.center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
  min-width: 0;
}

.mark-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.85rem;
}

.glow-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(14rem, 36vw, 24rem);
  height: clamp(14rem, 36vw, 24rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  animation: fade-in 2s var(--ease-out) 0.12s forwards;
}

.glow {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("assets/smoke/glow.png?v=13");
  background-image: image-set(
    url("assets/smoke/glow.webp?v=13") type("image/webp"),
    url("assets/smoke/glow.png?v=13") type("image/png")
  );
}

.mark-fade {
  position: relative;
  z-index: 1;
}

.mark {
  width: clamp(4rem, 8.5vw, 6.5rem);
  height: auto;
  margin: 0;
  filter: drop-shadow(0 0 26px rgba(184, 23, 29, 0.4));
}

h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.86;
}

.h-rook {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 7vw, 4.85rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.86;
}

.h-sol {
  display: block;
  margin-top: 0.28em;
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(0.72rem, 1.7vw, 1.28rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.rule {
  width: 40px;
  height: 1px;
  margin: 2.15rem 0 0;
  background: var(--red);
  opacity: 0.9;
  flex-shrink: 0;
}

.referral {
  margin: 1.7rem 0 0;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-muted);
}

.email {
  margin: 1rem 0 0;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.email a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.08rem;
  transition: color 0.35s ease, border-color 0.35s ease;
}

.email a:hover,
.email a:focus-visible {
  color: var(--muted);
  border-bottom-color: rgba(244, 241, 238, 0.38);
}

.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 var(--pad) calc(1.35rem + env(safe-area-inset-bottom));
  text-align: center;
  pointer-events: none;
}

.site-footer p {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.fade {
  opacity: 0;
  transform: translate3d(0, 0.55rem, 0);
  animation: fade-rise 1.9s var(--ease-out) forwards;
}

.mark-fade.fade   { animation-delay: 0.85s; }
.h-rook.fade,
.h-sol.fade       { animation-delay: 1.5s; }
.rule.fade,
.referral.fade,
.email.fade       { animation-delay: 2.15s; }
.site-footer.fade { animation-delay: 2.55s; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 0.55rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fade,
  .glow-wrap {
    animation: none !important;
    opacity: 1;
  }

  .fade {
    transform: none;
  }
}

@media (max-width: 560px) {
  .stage {
    padding: 3.75rem var(--pad) 7.25rem;
  }

  .mark-wrap { margin-bottom: 1.55rem; }

  .h-rook {
    font-size: clamp(2rem, 12.5vw, 3.15rem);
    letter-spacing: 0.07em;
  }

  .h-sol {
    font-size: clamp(0.7rem, 3.6vw, 0.95rem);
    letter-spacing: 0.3em;
  }

  .referral {
    letter-spacing: 0.2em;
    font-size: 0.58rem;
  }

  .site-footer {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }

  .site-footer p {
    letter-spacing: 0.1em;
  }
}

@media (max-height: 700px) {
  .mark { width: clamp(3.25rem, 7vw, 5rem); }
  .mark-wrap { margin-bottom: 1.2rem; }
  .rule { margin-top: 1.55rem; }
  .referral { margin-top: 1.3rem; }
  .glow-wrap {
    width: clamp(11rem, 30vw, 18rem);
    height: clamp(11rem, 30vw, 18rem);
  }
}