/* Clash Point Games. System fonts only, no external requests. */
:root {
  --ink: #0e0e11;
  --ink-2: #16161b;
  --plate: #1c1c23;
  --plate-2: #24242d;
  --line: rgba(240, 240, 244, 0.09);
  --line-2: rgba(240, 240, 244, 0.16);
  --text: #f0f0f4;
  --muted: #a3a3ad;
  --faint: #6c6c78;
  --yellow: #ffc21a;
  --yellow-hi: #ffd650;
  --orange: #e8650a;
  --red: #ff5a4f;
  --nexus: #8b6cff;
  --margin: #d4ab52;
  --accent: var(--yellow);

  --display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Impact, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
}
.theme-nexus { --accent: var(--nexus); }
.theme-margin { --accent: var(--margin); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; background: currentColor; transform: skewX(-20deg); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: .08em; font-size: 13px; white-space: nowrap; }
.brand-mark { width: 26px; height: 14px; background: var(--yellow); clip-path: polygon(0 18%, 100% 0, 92% 100%, 4% 86%); }
.brand b { color: var(--muted); font-weight: 700; }
.nav nav { display: flex; gap: 6px; }
.nav nav a {
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 8px 12px; border-radius: 8px;
}
.nav nav a:hover { color: var(--text); background: var(--plate); }
.nav nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 560px) { .brand { font-size: 11.5px; gap: 8px; } .brand-mark { width: 18px; } .nav nav { gap: 0; } .nav nav a { padding: 8px 7px; font-size: 13px; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer;
  font-weight: 800; font-size: 16px; letter-spacing: .02em; border-radius: 12px; padding: 16px 26px;
  border: 1px solid transparent; transition: transform .12s ease, background .12s ease; white-space: nowrap;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 6px 0 rgba(0,0,0,.45); }
.btn-primary:hover { background: var(--yellow-hi); transform: translateY(-1px); }
.theme-nexus .btn-primary { color: #fff; }
.theme-nexus .btn-primary:hover { background: #9e84ff; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.45); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--plate); }
.btn small { display: block; font-weight: 600; font-size: 12px; opacity: .7; letter-spacing: .04em; }
.btn .two { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }

/* store badge, deliberately inert until there is a store page */
.store {
  position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 14px;
  border-radius: 12px; background: #101317; border: 1px solid var(--line-2); color: #c7d5e0; cursor: default; user-select: none;
}
.store svg { width: 34px; height: 34px; flex: none; }
.store .two { display: flex; flex-direction: column; line-height: 1.1; }
.store .two small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.store .two strong { font-size: 19px; letter-spacing: .02em; color: #dfe6ec; }
.store .ribbon {
  position: absolute; top: -17px; right: -12px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; transform: rotate(4deg);
  box-shadow: 0 3px 0 rgba(0,0,0,.4);
}

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; }
.fine { color: var(--faint); font-size: 13.5px; }
.fine a { color: var(--muted); }
.textlink { color: var(--accent); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- misfire hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(255,194,26,.13), transparent 70%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.018) 0 14px, transparent 14px 28px);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.wordmark { position: relative; display: inline-block; padding: 18px 46px 22px 30px; margin-left: -30px; }
.wordmark::before {
  content: ""; position: absolute; inset: 0; background: var(--yellow); z-index: 0;
  clip-path: polygon(0 14%, 97% 0, 100% 84%, 2% 100%);
}
.wordmark::after {
  content: ""; position: absolute; inset: 10% 6% 12% 3%; z-index: 0; opacity: .32;
  background: repeating-linear-gradient(-2deg, transparent 0 12px, rgba(160,90,0,.7) 12px 14px);
}
.wordmark h1 {
  position: relative; z-index: 1; font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: clamp(56px, 10vw, 128px); letter-spacing: -.02em; color: var(--ink); line-height: .95;
  text-shadow: 5px 5px 0 rgba(0,0,0,.18);
}
.tagline { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: clamp(17px, 2.2vw, 22px); letter-spacing: .02em; }
.tagline span { color: var(--yellow); }
.lede { color: #c9c9d1; font-size: 18.5px; max-width: 34em; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero-art img { position: relative; width: min(380px, 80%); height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); transform: rotate(3deg); }
.hero-art .ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(255,194,26,.22); width: 470px; height: 470px; max-width: 110%; aspect-ratio: 1; height: auto; animation: spin 60s linear infinite; }
.hero-art .spark { position: absolute; width: 8px; height: 8px; background: var(--yellow); border-radius: 2px; transform: rotate(45deg); opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .ring { animation: none; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; }
  .hero-art { order: -1; min-height: 0; }
  .hero-art img { width: 180px; }
  .hero-art .ring { width: 260px; }
}
@media (max-width: 560px) {
  .wordmark { margin-left: -16px; padding: 14px 30px 16px 16px; }
  .cta .btn, .cta .store { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- modes strip */
.modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.mode { background: var(--ink-2); padding: 26px 22px 28px; display: grid; gap: 8px; align-content: start; }
.mode h3 { font-family: var(--display); font-style: italic; font-size: 17px; letter-spacing: .01em; text-transform: uppercase; }
.mode .line { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.mode p { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .modes { grid-template-columns: repeat(2, 1fr); } .mode:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .modes { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- sections */
.section { padding: 88px 0; }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 46em; }
.section-head h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 42px); letter-spacing: -.01em; }
.section-head p { color: var(--muted); }
@media (max-width: 720px) { .section { padding: 60px 0; } }

/* project cards on the home page */
.projects { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }
@media (max-width: 860px) { .projects { grid-template-columns: 1fr; } }
.project {
  --c: var(--accent); position: relative; overflow: hidden; display: grid; gap: 16px; align-content: start;
  padding: 34px 32px 32px; border-radius: 20px; background: var(--plate); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.project:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.project::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c);
}
.project::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent); pointer-events: none;
}
.project.nexus { --c: var(--nexus); }
.project.margin { --c: var(--margin); }
.project .top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 50%, transparent);
  color: var(--c, var(--accent));
}
.project h3 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.project .kicker { font-size: 19px; font-weight: 700; }
.project p { color: var(--muted); }
.project .go { color: var(--c); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; }
.project .go::after { content: "→"; transition: transform .15s ease; }
.project:hover .go::after { transform: translateX(4px); }
.project .glyph { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.project .glyph svg { width: 28px; height: 28px; }
.more {
  margin-top: 22px; padding: 22px 28px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--faint);
  display: flex; gap: 12px; align-items: center; font-size: 15px;
}

/* generic card grid used on project pages */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--plate); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 20px; font-weight: 800; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .role { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card.mode-card h3 { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 19px; }
.card ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { list-style: none; background: var(--plate); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; display: grid; gap: 8px; }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--display); font-style: italic; font-size: 30px; color: var(--accent); line-height: 1; }
.steps strong { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
ol.steps { padding: 0; margin: 0; }

/* project page header */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 80% at 85% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.page-head .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; display: grid; gap: 22px; justify-items: start; }
.page-head h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 900; letter-spacing: -.02em; }
.page-head h1 em { font-style: normal; color: var(--accent); }
.page-head .lede { max-width: 38em; }

.callout { background: var(--plate); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 26px 28px; display: grid; gap: 10px; max-width: 52em; }
.callout h3 { font-size: 18px; }
.callout p { color: var(--muted); }

.band { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.band h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; }

/* prose (privacy) */
.prose { max-width: 44em; display: grid; gap: 18px; }
.prose h2 { font-size: 22px; margin-top: 14px; }
.prose p, .prose li { color: #c9c9d1; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-top: 34px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; color: var(--faint); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.cards.modes-5 { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
