/* ── Design System ─────────────────────────────────────────────────────
   Shared variables, resets, background video, wordmark, cards, media,
   meta, footer — extracted from the landing page inline styles.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --bg: #1a1d23;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.64);
  --card-border: rgba(255, 255, 255, 0.14);
  --panel-bg: rgba(10, 15, 20, 0.74);
  --panel-bg-2: rgba(10, 15, 20, 0.62);
  --shadow: 0 40px 140px rgba(0, 0, 0, 0.46), 0 14px 34px rgba(0, 0, 0, 0.30);
  --shadow-hover: 0 54px 180px rgba(0, 0, 0, 0.56), 0 18px 46px rgba(0, 0, 0, 0.34);
  --glow-sky: rgba(14, 165, 233, 0.55);
  --glow-violet: rgba(168, 85, 247, 0.48);
  --glow-pink: rgba(244, 61, 155, 0.42);
  --radius: 22px;
  --font-title: "niveau-grotesk", "Figtree", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
h1, h2 { margin: 0; font-weight: inherit; font-size: inherit; }
html, body { height: 100%; }

/* ── Visually hidden (screen-reader only) ─────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body {
  margin: 0;
  font-family: "DM Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* ── Background video ─────────────────────────────────────────────── */

.bgVideoLayer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #0b1220;
}
.bgVideoLayer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: blur(28px) saturate(130%) brightness(0.80) contrast(1.05);
  opacity: 0.88;
}
.bgVideoTint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(0, 0, 0, 0.14), transparent 60%),
    radial-gradient(1000px 520px at 78% 30%, rgba(0, 0, 0, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.34));
}

@media (prefers-reduced-motion: reduce) {
  .bgVideoLayer { display: none; }
}

/* ── Corner wordmark ──────────────────────────────────────────────── */

/* ── Site header (black bar behind all content) ──────────────────── */

.siteHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(48px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: #000;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
}

.headerBack {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 180ms ease;
}
.headerBack:hover {
  color: rgba(255, 255, 255, 1);
}
.headerBack svg {
  width: 20px;
  height: 20px;
}

.cornerWordmark {
  position: relative;
  z-index: 4;
  pointer-events: auto;
  display: inline-block;
  text-align: left;
  text-decoration: none;
  font-weight: 200;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-size: clamp(14px, 1.8vw, 22px);
  line-height: 1.0;
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-stroke: 0;
  text-shadow: none;
  font-family: var(--font-title);
}

/* ── Card ──────────────────────────────────────────────────────────── */

.card {
  position: relative;
  display: grid;
  grid-template-rows: 2fr 1fr;
  aspect-ratio: 10 / 16;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.00)),
    linear-gradient(180deg, var(--panel-bg), var(--panel-bg-2));
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transform: translateZ(0);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 180ms ease;
  --rx: 0deg;
  --ry: 0deg;
  --thumbX: 0px;
  --thumbY: 0px;
  --scale: 1;
  transform:
    rotateX(var(--rx))
    rotateY(var(--ry))
    scale(var(--scale));
}

@keyframes cardGlowDrift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%; }
  50%  { background-position: 100% 30%, 0% 60%, 60% 0%; }
  100% { background-position: 0% 0%, 100% 0%, 50% 100%; }
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: scale(1.02);
  filter: blur(18px);
  background:
    radial-gradient(420px 240px at 15% 20%, var(--glow-sky), transparent 70%),
    radial-gradient(420px 240px at 85% 30%, var(--glow-violet), transparent 72%),
    radial-gradient(520px 260px at 60% 90%, var(--glow-pink), transparent 74%);
  background-size: 200% 200%, 200% 200%, 220% 220%;
  transition:
    opacity 260ms ease,
    transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: opacity, transform;
}
.card::after {
  display: none;
}

.card:hover,
.card:focus-visible {
  box-shadow: var(--shadow-hover);
  --rx: 0deg;
  --ry: 0deg;
  --scale: 1;
}
.card:hover::before,
.card:focus-visible::before {
  opacity: 1;
  transform: scale(1);
  animation: cardGlowDrift 2.2s ease-in-out infinite;
}
.card:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.55);
  outline-offset: 4px;
}

/* ── Card — mobile ────────────────────────────────────────────────── */

@media (max-width: 740px) {
  .card { aspect-ratio: 1 / 1; }
}
@media (max-width: 740px) {
  .card {
    --rx: 0deg;
    --ry: 0deg;
  }
  .card:hover,
  .card:focus-visible {
    --rx: 0deg;
    --ry: 0deg;
    box-shadow: var(--shadow);
  }
  .card:hover::before,
  .card:focus-visible::before {
    opacity: 0;
    transform: scale(1.02);
    animation: none;
  }
}

/* ── Card — reduced motion ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
    transform: none !important;
  }
  .card::before,
  .card::after {
    display: none;
  }
}

/* ── Media (card thumbnail area) ──────────────────────────────────── */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 1;
  background:
    radial-gradient(900px 360px at 25% 20%, rgba(14, 165, 233, 0.18), transparent 58%),
    radial-gradient(700px 320px at 78% 35%, rgba(168, 85, 247, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.00));
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.95;
  transform: translate3d(var(--thumbX, 0px), var(--thumbY, 0px), 0) scale(1.05);
  will-change: transform;
  transition: transform 180ms ease;
}
.media::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, #0f1317, transparent);
  z-index: 2;
  pointer-events: none;
}
.media[data-img]::after { background-image: var(--img); }
.media[data-signin-thumb] {
  background: transparent;
}
.media[data-signin-thumb]::after {
  display: none;
}
.media[data-video-thumb] {
  background: #000;
}
.media[data-video-thumb]::after {
  display: none;
}
.mediaVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translate3d(var(--thumbX, 0px), var(--thumbY, 0px), 0) scale(1.06);
  will-change: transform;
  transition: transform 180ms ease;
}
.media[data-signin-thumb] canvas {
  transform: translate3d(var(--thumbX, 0px), var(--thumbY, 0px), 0) scale(1.06);
  will-change: transform;
  transition: transform 180ms ease;
}

/* ── Meta (card text area) ────────────────────────────────────────── */

.meta {
  padding: 10px 18px 18px;
  display: grid;
  gap: 6px;
  align-content: start;
  font-family: "DM Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
}
.title {
  margin: 0 0 4px;
  text-transform: uppercase;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-family: var(--font-title);
  color: rgba(255, 255, 255, 0.96);
  transform: translate3d(var(--titleX, 0px), var(--titleY, 0px), 34px);
  transition: transform 180ms ease;
  will-change: transform;
}
.desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  transform: translate3d(var(--descX, 0px), var(--descY, 0px), 18px);
  transition: transform 180ms ease;
  will-change: transform;
}

/* ── Footer ───────────────────────────────────────────────────────── */

.siteFooter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}
.siteFooterInner {
  pointer-events: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "DM Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
}
.siteFooterInner a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.siteFooterInner a:hover {
  color: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.32);
}
.footerLegal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  vertical-align: middle;
}
.footerSocials {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.footerSocials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.44);
  border-bottom: none;
  transition: color 180ms ease;
}
.footerSocials a:hover {
  color: rgba(255, 255, 255, 0.82);
  border-bottom: none;
}
.footerSocials svg {
  width: 14px;
  height: 14px;
}
