/* RP Digital LLC — "The Board"
   Layout: full-bleed 3D circuit board hero, then a single 1120px column of sections. */
:root {
  --bg: #0a1415;
  --bg-2: #0f1b1c;
  --ink: #dbe6e5;
  --muted: #86a0a0;
  --line: #213536;
  --accent: #0bb4aa;
  --copper: #c9804f;
  --panel: rgba(10, 20, 21, 0.88);
  --on-accent: #021f1d;
  --display: 'Chakra Petch', 'Arial', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --clip: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --clip-sm: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #4fd0c7; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(10, 20, 21, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: 6px; }
.logo b { color: var(--accent); font-weight: 700; }
.logo small { font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.1em; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 7px 11px; border: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--line); background: var(--panel); }

/* Hero (home) */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-canvas { position: absolute; inset: 0; }
.hero-canvas canvas { display: block; width: 100%; height: 100%; }
.hero-canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10,20,21,0.92) 0%, rgba(10,20,21,0.55) 38%, rgba(10,20,21,0) 62%); }
.chip-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.chip-label { position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink); background: var(--panel); border: 1px solid var(--line); padding: 5px 9px; text-decoration: none; display: flex; align-items: center; gap: 7px; clip-path: var(--clip-sm); }
.chip-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chip-label.core { color: var(--muted); pointer-events: none; }
.chip-label.core i { background: var(--copper); }
.chip-label:hover { border-color: var(--accent); color: var(--ink); }
.hero .wrap { position: relative; z-index: 3; width: 100%; padding-block: 72px; pointer-events: none; }
.hero-copy { max-width: 500px; display: grid; gap: 20px; pointer-events: auto; }

.eyebrow { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 0.98; text-transform: uppercase; letter-spacing: 0.005em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; text-transform: uppercase; }
h3 { font-size: 24px; line-height: 1.1; }
.lede { margin: 0; font-size: 19px; color: var(--muted); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 12px 18px; border: 1px solid var(--line); color: var(--ink); background: var(--panel); display: inline-flex; gap: 8px; align-items: center; clip-path: var(--clip-sm); }
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: #2fc6bc; color: var(--on-accent); }

/* Page header (inner pages) */
.page-head { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; background-color: var(--bg-2); }
.page-head::before { content: ""; position: absolute; inset: 0; opacity: 0.55; background-image: url("traces.svg"); background-size: 520px auto; background-position: right -40px center; background-repeat: no-repeat; }
.page-head .wrap { position: relative; padding-block: 64px 52px; display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }

/* Sections */
section.block { padding-block: 72px; border-bottom: 1px solid var(--line); }
.block-head { display: grid; gap: 10px; margin-bottom: 32px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--bg-2); border: 1px solid var(--line); padding: 26px; display: grid; gap: 12px; align-content: start; clip-path: var(--clip); position: relative; }
.card.live { border-left: 2px solid var(--accent); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); }
.tag.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.card p { margin: 0; color: var(--muted); }
.card .actions { margin-top: 6px; }

.prose { max-width: 68ch; display: grid; gap: 18px; }
.prose p, .prose ul { margin: 0; }
.prose h2 { font-size: 26px; margin-top: 18px; }
.prose li + li { margin-top: 6px; }

/* Company facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border: 1px solid var(--line); }
.fact { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; margin: 0 -1px -1px 0; }
.fact dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 0; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
dl.facts { margin: 0; }

/* Embed */
.embed { border: 1px solid var(--line); background: #05060c; clip-path: var(--clip); }
.embed-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg-2); }
.embed-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed iframe { display: block; width: 100%; height: min(78vh, 860px); min-height: 520px; border: 0; background: #05060c; }

/* Game */
.game-card { padding: 40px 32px; display: grid; gap: 8px; background: linear-gradient(160deg, #3c5a1f 0%, #6f7d22 55%, #c79a2b 100%); color: #fff9e6; position: relative; overflow: hidden; clip-path: var(--clip); }
.game-card .wm { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 60px); line-height: 0.92; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0,0,0,0.25); position: relative; }
.game-card .rows { position: absolute; right: -10px; bottom: -6px; width: 50%; height: 80%; opacity: 0.32; background: repeating-linear-gradient(-18deg, transparent 0 11px, rgba(255,249,230,0.65) 11px 13px); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }

/* Contact */
.contact-list { display: grid; gap: 0; border: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-row dd { margin: 0; overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding-block: 44px 56px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer address { font-style: normal; display: grid; gap: 2px; }
.legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .hero { display: block; min-height: 0; }
  .hero-canvas { position: relative; height: 320px; }
  .hero-canvas::after { background: linear-gradient(0deg, rgba(10,20,21,1) 0%, rgba(10,20,21,0) 30%); }
  .hero .wrap { padding-block: 8px 48px; }
  .nav a { padding: 6px 8px; font-size: 11px; }
  section.block { padding-block: 52px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .page-head .wrap { padding-block: 44px 36px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
