/* Director of Realms — sales site foundation.
   Identity follows the approved brand guideline 1.2 (docs/design/brand-guidelines on the
   codex/brand-guideline-licence branch): black and gold, Fraunces headings, Manrope text,
   one antique-gold companion and a supporting hue per product area. */

/* ---------------------------------------------------------------------------------------------
   Fonts (Latin subsets shipped with the brand guideline, SIL OFL — licences beside the files) */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/manrope.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------------------------------
   Tokens */

:root {
  color-scheme: dark;
  --black: #080a0e;
  --ink: #0c0f14;
  --charcoal: #151820;
  --charcoal-2: #1b1f29;
  --text: #f2f3f5;
  --muted: #abb0bc;
  --faint: #7d8494;
  --divider: #3b414e;
  --line: rgba(59, 65, 78, 0.7);

  --gold: #eac96f;
  --gold-body: #cba54a;
  --gold-shoulder: #e9ca78;
  --gold-peak: #fff0b0;
  --antique: #c8ad76;

  --studio: #b0bccb;
  --gm: #b3b1fc;
  --maps: #93cb9e;
  --campaigns: #8ac2e9;
  --worlds: #e7a5ba;

  --area: var(--studio);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', Arial, sans-serif;

  --r-control: 8px;
  --r-panel: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --header-h: 72px;
  --stage-h: 36px;
  --top-h: calc(var(--header-h) + var(--stage-h));
  --section: clamp(64px, 7vw, 104px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-area='studio'] { --area: var(--studio); }
[data-area='gm'] { --area: var(--gm); }
[data-area='maps'] { --area: var(--maps); }
[data-area='campaigns'] { --area: var(--campaigns); }
[data-area='worlds'] { --area: var(--worlds); }

/* ---------------------------------------------------------------------------------------------
   Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 16px);
  background: var(--black);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* A whisper of grain keeps large black fields from looking flat. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-control);
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

html {
  scrollbar-color: #3b414e var(--black);
  scrollbar-width: thin;
}

/* ---------------------------------------------------------------------------------------------
   Typography */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  color: var(--text);
  text-wrap: balance;
}

h1,
.h1 {
  font-size: clamp(2.6rem, 1.5rem + 4.3vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
}

h2,
.h2 {
  font-size: clamp(2.05rem, 1.35rem + 2.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}

h3,
.h3 {
  font-size: clamp(1.3rem, 1.12rem + 0.7vw, 1.75rem);
  line-height: 1.2;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.3;
}

h1 em,
h2 em,
h3 em {
  font-style: normal;
  color: var(--gold);
}

p {
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.32rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--area);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.eyebrow--plain::before {
  display: none;
}

.prose p + p {
  margin-top: 1em;
}

.prose {
  max-width: 68ch;
  color: var(--muted);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.text-link {
  color: var(--antique);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--gold);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--area);
  text-decoration: none;
}

.arrow-link::after {
  content: '→';
  transition: transform 0.25s var(--ease-out);
}

.arrow-link:hover::after {
  transform: translateX(5px);
}

/* ---------------------------------------------------------------------------------------------
   Layout */

.container {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  width: min(100%, 1360px);
}

.container--narrow {
  width: min(100%, 860px);
}

.section {
  position: relative;
  padding-block: var(--section);
}

.section--tight {
  padding-block: calc(var(--section) * 0.6);
}

.section--flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head .lede {
  margin-top: 22px;
}

.section-head--center .lede {
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.split {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--divider) 20%, var(--divider) 80%, transparent);
}

/* ---------------------------------------------------------------------------------------------
   Logo — approved satin reflection (brand guideline "Satin material and website motion").
   Copyright (c) 2026 Joel Bondoux. DoR-specific shimmer implementation for official DoR surfaces.
   The masks are the approved white PNG exports of the full and compact marks. */

.dor-logo-stage {
  display: inline-block;
  position: relative;
  line-height: 0;
  view-timeline-name: --dor-logo-pass;
  view-timeline-axis: block;
}

.dor-logo {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: #cba54a;
}

.dor-logo--compact {
  width: var(--dor-logo-width, 160px);
  aspect-ratio: 1140 / 408;
  --reflection-from: -35%;
  --reflection-to: 65%;
  -webkit-mask: url('/assets/brand/dor-compact-white-512.png') center / contain no-repeat;
  mask: url('/assets/brand/dor-compact-white-512.png') center / contain no-repeat;
}

.dor-logo--full {
  width: var(--dor-logo-width, 440px);
  max-width: 100%;
  aspect-ratio: 792 / 904;
  --reflection-from: -65%;
  --reflection-to: 35%;
  -webkit-mask: url('/assets/brand/dor-full-white-792.png') center / contain no-repeat;
  mask: url('/assets/brand/dor-full-white-792.png') center / contain no-repeat;
}

.dor-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateY(0);
}

.dor-logo--compact::before {
  background: linear-gradient(172deg, transparent 22.5%, #e9ca78 28.5%, #fff0b0 32.5%, #e9ca78 36.5%, transparent 42.5%);
}

.dor-logo--full::before {
  background: linear-gradient(172deg, transparent 38%, #e9ca78 46%, #fff0b0 54%, #e9ca78 62%, transparent 70%);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .dor-logo::before {
      animation: dor-reflection 1s linear both;
      animation-timeline: --dor-logo-pass;
      animation-range: entry 0% exit 100%;
    }
  }
}

@keyframes dor-reflection {
  from {
    transform: translateY(var(--reflection-from));
  }
  to {
    transform: translateY(var(--reflection-to));
  }
}

[data-reflection='static'] .dor-logo::before {
  animation: none;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .dor-logo::before {
    animation: none;
    transform: translateY(0);
  }
}

@media print {
  .dor-logo::before {
    animation: none;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------------------------------------
   Header and navigation */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
  view-transition-name: site-header;
}

.site-header.is-scrolled {
  background: rgba(8, 10, 14, 0.8);
  border-bottom-color: rgba(59, 65, 78, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(100%, 1360px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  --dor-logo-width: 104px;
  border-radius: 6px;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: clamp(14px, 1.8vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.site-nav a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, var(--antique));
  opacity: 0.75;
  transition: transform 0.25s var(--ease-spring), opacity 0.2s;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--dot, var(--antique));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

.site-nav a:hover::before,
.site-nav a[aria-current='page']::before {
  opacity: 1;
  transform: scale(1.35);
}

.site-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.site-header__cta {
  flex: none;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(200, 173, 118, 0.45);
  border-radius: var(--r-control);
  background: rgba(21, 24, 32, 0.6);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.menu-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.menu-toggle__bars::before {
  top: 1px;
}

.menu-toggle__bars::after {
  top: 7px;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  align-content: center;
  padding: calc(var(--top-h) + 24px) var(--gutter) 40px;
  background: rgba(8, 10, 14, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mobile-menu a:not(.button) {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  line-height: 1.15;
  text-decoration: none;
  color: var(--text);
}

.mobile-menu a:not(.button)::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, var(--antique));
}

.mobile-menu a[aria-current='page'] {
  color: var(--gold);
}

@media (max-width: 1080px) {
  .site-header .site-nav {
    display: none;
  }

  .site-header .site-header__cta {
    margin-left: auto;
  }

  .site-header .menu-toggle {
    display: inline-flex;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .site-header .site-header__cta {
    display: none;
  }

  .site-header .menu-toggle {
    margin-left: auto;
  }
}

/* ---------------------------------------------------------------------------------------------
   Release-stage notice (alpha today) — on every page, above the navigation, never dismissed */

.stage-bar {
  height: var(--stage-h);
  border-bottom: 1px solid rgba(234, 201, 111, 0.4);
  background:
    linear-gradient(90deg, rgba(234, 201, 111, 0.18), rgba(234, 201, 111, 0.07) 50%, rgba(234, 201, 111, 0.18)),
    #0e0d0a;
  font-size: 0.84rem;
  line-height: 1.2;
}

.stage-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  width: min(100%, 1360px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.stage-bar__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #ece1c6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-bar__short {
  display: none;
}

.stage-bar__build {
  flex: none;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.stage-bar__build:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .stage-bar__long {
    display: none;
  }

  .stage-bar__short {
    display: inline;
  }
}

@media (max-width: 560px) {
  .stage-bar__build-label {
    display: none;
  }
}

@media (max-width: 420px) {
  .stage-bar {
    font-size: 0.78rem;
  }

  .stage-bar__inner {
    gap: 8px;
  }
}

.mobile-menu__stage {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.stage-card {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(234, 201, 111, 0.45);
  border-radius: var(--r-panel);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(234, 201, 111, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(27, 31, 41, 0.92), rgba(14, 16, 22, 0.95));
}

.stage-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 22px;
}

.stage-pill--large {
  padding: 5px 14px;
  font-size: 0.78rem;
}

.stage-card__build {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.stage-card__build strong {
  color: var(--gold);
  font-weight: 700;
}

.stage-card .lede {
  margin-top: 18px;
}

.stage-card .ticks {
  margin-top: 26px;
}

.sticky-head {
  position: sticky;
  top: calc(var(--top-h) + 40px);
}

@media (max-width: 900px) {
  .sticky-head {
    position: static;
  }
}

/* ---------------------------------------------------------------------------------------------
   Buttons, chips */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
}

.button--primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 14px 34px -16px rgba(234, 201, 111, 0.7);
}

.button--primary:hover {
  background: #f2d688;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(234, 201, 111, 0.85);
}

.button--ghost {
  background: rgba(21, 24, 32, 0.55);
  color: var(--text);
  border-color: rgba(200, 173, 118, 0.5);
}

.button--ghost:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.button--small {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.92rem;
}

.button--primary .die-art path {
  stroke: var(--black);
}

.check > .button,
.check-demo .button {
  justify-self: start;
}

.button--dice .button__die {
  width: 20px;
  height: 20px;
  transition: transform 0.6s var(--ease-spring);
}

.button--dice:hover .button__die,
.button--dice:hover .die-art {
  transform: rotate(144deg) scale(1.08);
}

.button--dice .die-art {
  transition: transform 0.6s var(--ease-spring);
}

.button[disabled],
.button[aria-disabled='true'] {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 24, 32, 0.6);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--area);
}

.chip--plain::before {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--area) 45%, transparent);
  color: var(--area);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------------------------------
   Cards and panels */

.card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, rgba(27, 31, 41, 0.92), rgba(16, 19, 26, 0.92));
  transition: border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
}

.card p + p {
  margin-top: 0.8em;
}

.card--hover:hover {
  border-color: color-mix(in srgb, var(--area) 55%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--area) 60%, transparent);
}

.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--area);
}

.card__kicker {
  display: block;
  margin-bottom: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--area);
}

.card ul.ticks {
  margin-top: 18px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--area);
  transform: rotate(45deg);
}

.ticks strong {
  color: var(--text);
  font-weight: 600;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: rgba(21, 24, 32, 0.75);
}

.note {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(200, 173, 118, 0.35);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.note b {
  margin-right: 8px;
  color: var(--antique);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------------------------
   Feature rows: alternating text and illustration */

.feature {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.feature + .feature {
  margin-top: clamp(80px, 11vw, 150px);
}

.feature--flip > :first-child {
  order: 2;
}

@media (max-width: 900px) {
  .feature--flip > :first-child {
    order: 0;
  }
}

.feature__copy h2,
.feature__copy h3 {
  margin-bottom: 18px;
}

.feature__copy .lede,
.feature__copy > p {
  color: var(--muted);
}

.feature__copy .ticks {
  margin-top: 26px;
}

.feature__art {
  position: relative;
  min-height: 320px;
}

/* ---------------------------------------------------------------------------------------------
   Stat strip */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-block: 1px solid var(--line);
}

.stat {
  padding: 30px 24px;
  border-inline-start: 1px solid var(--line);
}

.stat:first-child {
  border-inline-start: 0;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.3rem);
  line-height: 1;
  color: var(--gold);
}

.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 26ch;
}

@media (max-width: 640px) {
  .stat {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .stat:first-child {
    border-top: 0;
  }
}

/* ---------------------------------------------------------------------------------------------
   Tabs */

.tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 15, 20, 0.8);
}

.tabs__tab {
  padding: 11px 18px;
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.tabs__tab:hover {
  color: var(--text);
}

.tabs__tab[aria-selected='true'] {
  background: var(--gold);
  color: var(--black);
}

.tabs__panel[hidden] {
  display: none;
}

/* ---------------------------------------------------------------------------------------------
   FAQ */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 24px 56px 24px 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq details > div {
  padding: 0 0 26px;
  max-width: 72ch;
  color: var(--muted);
}

.faq details > div p + p {
  margin-top: 0.8em;
}

/* ---------------------------------------------------------------------------------------------
   Call to action band */

.cta-band {
  position: relative;
  overflow: clip;
  isolation: isolate;
  text-align: center;
}

.cta-band .lede {
  margin: 22px auto 0;
}

.cta-band .actions {
  justify-content: center;
  margin-top: 36px;
}

.cta-band__glow {
  position: absolute;
  inset: 10% 15%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(234, 201, 111, 0.16), transparent);
  filter: blur(20px);
}

/* ---------------------------------------------------------------------------------------------
   Footer */

.site-footer {
  position: relative;
  padding: clamp(64px, 9vw, 110px) 0 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--black), #06070a);
}

.site-footer__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(200px, 1.2fr) repeat(auto-fit, minmax(160px, 1fr));
}

.site-footer__brand img {
  width: 180px;
}

.site-footer__brand p {
  margin-top: 20px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--antique);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  overflow-wrap: break-word;
}

.site-footer a small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer__legal {
  display: grid;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.84rem;
}

.site-footer__stage {
  max-width: 96ch;
  color: var(--muted);
}

.site-footer__stage strong {
  color: var(--gold);
  font-weight: 600;
}

.site-footer__build {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer__build strong {
  margin-left: 4px;
  color: var(--gold);
  font-weight: 700;
}

.site-footer__build small {
  color: var(--faint);
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------------------------------------------
   Floating progress die (back to top) */

.progress-die {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 50;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid rgba(200, 173, 118, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(27, 31, 41, 0.95), rgba(8, 10, 14, 0.95));
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.35s, visibility 0.35s, transform 0.4s var(--ease-spring), border-color 0.2s;
}

.progress-die.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.progress-die:hover {
  border-color: var(--gold);
}

.progress-die canvas {
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------------------------------------------
   Cookie notice — says once that the site tracks nothing. Bottom right, over the heroes' artwork
   rather than their copy and calls to action; it takes the progress die's corner, so the die
   steps aside while it shows. Below the mobile menu. */

.cookie-notice {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 52;
  width: min(540px, calc(100% - 2 * clamp(12px, 2vw, 24px)));
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 18px;
  align-items: start;
  padding: 20px 22px 18px;
  border: 1px solid rgba(234, 201, 111, 0.45);
  border-radius: var(--r-panel);
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(234, 201, 111, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(27, 31, 41, 0.97), rgba(12, 14, 19, 0.98));
  box-shadow: 0 28px 70px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.cookie-notice__die svg {
  display: block;
  width: 44px;
  height: 44px;
}

.cookie-notice__title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--text);
}

.cookie-notice__text {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-notice__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-notice.is-showing .cookie-notice__card {
  animation: cookie-pop 0.6s var(--ease-spring) both;
}

.cookie-notice.is-showing .cookie-notice__die svg {
  animation: cookie-roll 1.1s var(--ease-out) both;
}

.cookie-notice.is-leaving .cookie-notice__card {
  animation: cookie-out 0.26s ease-in both;
}

@keyframes cookie-pop {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
}

@keyframes cookie-roll {
  from {
    opacity: 0;
    transform: translateX(-36px) rotate(-600deg);
  }
}

@keyframes cookie-out {
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
}

.has-cookie-notice .progress-die {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 560px) {
  .cookie-notice {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .cookie-notice__card {
    padding: 16px 16px 14px;
  }

  .cookie-notice__actions .button {
    flex: 1;
  }
}

/* ---------------------------------------------------------------------------------------------
   Legal pages — the plain-English version first, then the legal text */

.hero--legal {
  min-height: max(460px, 60svh);
}

.legal-updated {
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.legal-updated time {
  color: var(--antique);
  font-weight: 600;
}

.legal {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: var(--section);
}

.legal__toc {
  font-size: 0.92rem;
}

.legal__toc-title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--antique);
}

.legal__toc ol,
.legal__toc ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal__toc ol ol {
  gap: 6px;
  margin: 10px 0 4px 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 0.88rem;
}

.legal__toc-list + .legal__toc-title {
  margin-top: 28px;
}

.legal__toc a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.legal__toc a:hover,
.legal__toc a[aria-current='page'] {
  color: var(--gold);
}

@media (min-width: 1024px) {
  .legal {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }

  .legal__toc {
    position: sticky;
    top: calc(var(--top-h) + 28px);
    max-height: calc(100vh - var(--top-h) - 56px);
    overflow-y: auto;
    padding-right: 8px;
  }
}

@media (max-width: 1023px) {
  .legal__toc {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    background: rgba(21, 24, 32, 0.6);
  }

  .legal__toc ol ol {
    display: none;
  }
}

.legal__body {
  min-width: 0;
  max-width: 860px;
}

.legal__kicker {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--antique);
}

.plain {
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(234, 201, 111, 0.45);
  border-radius: var(--r-panel);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(234, 201, 111, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(27, 31, 41, 0.92), rgba(14, 16, 22, 0.95));
}

.plain__points {
  display: grid;
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.plain__points li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* A die pip, turned on its point. */
.plain__points li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0.42em;
  width: 11px;
  height: 11px;
  border: 2px solid var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}

.plain__points strong,
.clause strong {
  color: var(--text);
  font-weight: 600;
}

.legal-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  color: var(--faint);
  font-size: 0.9rem;
}

.legal-text {
  margin-top: clamp(48px, 6vw, 84px);
}

.clause {
  margin-top: 40px;
}

.clause h3 {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.clause h3 .clause__no {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.clause p {
  position: relative;
  max-width: 74ch;
  margin-top: 12px;
  padding-left: 3.2em;
  color: var(--muted);
  line-height: 1.75;
}

.clause p > .clause__no {
  position: absolute;
  left: 0;
  color: var(--antique);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.clause .clause__sub {
  margin-top: 8px;
  padding-left: 5.4em;
}

.clause .clause__sub > .clause__no {
  left: 3.2em;
  font-weight: 600;
}

.legal code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.9em;
  color: var(--gold);
  overflow-wrap: anywhere;
}

.legal-table-wrap {
  margin: 18px 0 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.legal-table tbody tr:last-child > * {
  border-bottom: 0;
}

.legal-table thead th {
  background: rgba(21, 24, 32, 0.7);
  color: var(--antique);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-table tbody th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.legal-table small {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Phones: each row becomes a card, its cells labelled from data-label. */
@media (max-width: 640px) {
  .legal-table-wrap {
    overflow: visible;
  }

  .legal-table {
    min-width: 0;
  }

  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
  }

  .legal-table tr {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .legal-table tbody tr:last-child {
    border-bottom: 0;
  }

  .legal-table th,
  .legal-table td {
    padding: 0;
    border: 0;
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    margin: 12px 0 2px;
    color: var(--antique);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}

.cookie-status {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 10, 14, 0.55);
}

.cookie-status [hidden] {
  display: none;
}

.cookie-status__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--antique);
}

.cookie-status__text {
  margin: 0;
  color: var(--text);
}

/* ---------------------------------------------------------------------------------------------
   Scroll reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js [data-reveal='left'] {
  transform: translate3d(-40px, 0, 0);
}

.js [data-reveal='right'] {
  transform: translate3d(40px, 0, 0);
}

.js [data-reveal='zoom'] {
  transform: scale(0.94);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Sideways reveals would widen the page on phones (and make mobile browsers zoom out), so they
   rise instead, and nothing inside main may scroll the page horizontally. */
@media (max-width: 760px) {
  .js [data-reveal='left'],
  .js [data-reveal='right'] {
    transform: translate3d(0, 30px, 0);
  }
}

main,
.site-footer {
  overflow-x: clip;
}

/* ---------------------------------------------------------------------------------------------
   Page transitions (cross-document view transitions where supported) */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 0.28s ease both vt-out;
}

::view-transition-new(root) {
  animation: 0.42s var(--ease-out) both vt-in;
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------------------------------------------------------------------------------------------
   Reduced motion: every scroll and pointer effect has a still, legible state. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ---------------------------------------------------------------------------------------------
   Printing a policy: the text alone, black on white */

@media print {
  .page-legal .skip-link,
  .page-legal .site-header,
  .page-legal .mobile-menu,
  .page-legal .cookie-notice,
  .page-legal .progress-die,
  .page-legal .scene,
  .page-legal .hero .actions,
  .page-legal .legal__toc,
  .page-legal .cookie-status,
  .page-legal .site-footer__grid {
    display: none !important;
  }

  .page-legal,
  .page-legal * {
    background: none !important;
    box-shadow: none !important;
    color: #111 !important;
    text-shadow: none !important;
  }

  .page-legal .hero {
    min-height: 0;
    padding: 0 0 12pt;
  }

  .page-legal .legal {
    display: block;
  }

  .page-legal .plain {
    border: 1pt solid #888;
  }

  .page-legal .legal-table {
    min-width: 0;
  }

  .page-legal .site-footer {
    padding: 12pt 0 0;
    border: 0;
  }
}

/* Screenshots from the real build */

.shot {
  margin: clamp(28px, 4vw, 48px) auto 0;
  max-width: 1100px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
