/* Ruingate Studios — ruingatestudios.com
   Dark stone, ember red, forged silver. Fonts: Cinzel (display) + Barlow (body). */

:root {
  --ink: #070608;
  --bg: #0c0b0e;
  --bg-2: #121016;
  --panel: #16141b;
  --raised: #1d1a23;
  --raised-2: #26222e;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #ece8e4;
  --muted: #a39d9a;
  --faint: #8b8582;
  --silver: #c9c6cc;
  --silver-2: #ebe9ee;
  --ember: #d7402f;
  --ember-2: #ff6a4a;
  --ember-deep: #8c2218;
  --ember-rgb: 215, 64, 47;
  --ember-soft: rgba(215, 64, 47, 0.12);
  --ember-line: rgba(215, 64, 47, 0.38);
  --gold: #d6b26a;
  --good: #5fd08a;
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 18px;
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* stone grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-2); text-decoration: none; }
a:hover { color: #ff8a6e; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; line-height: 1.12; margin: 0 0 0.5em; color: var(--silver-2); }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ember-2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--ember); }
section { padding: 92px 0; position: relative; }
section.tight { padding: 56px 0; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.01em; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff; background: linear-gradient(180deg, #e8513d, var(--ember) 60%, #b5301f);
  box-shadow: 0 10px 30px rgba(var(--ember-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(var(--ember-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { color: var(--silver-2); background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }
.btn-sm { padding: 10px 16px; font-size: 0.92rem; }
.btn-lg { padding: 17px 30px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(12, 11, 14, 0.72); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--silver-2); font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; }
.brand:hover { color: #fff; }
.brand .mark { height: 44px; width: auto; flex: none; mix-blend-mode: screen; filter: drop-shadow(0 0 10px rgba(215, 64, 47, 0.25)); }
.site-footer .brand .mark { height: 52px; }
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.28em; color: var(--ember-2); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); padding: 10px 12px; border-radius: 8px; font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--silver-2); background: rgba(255, 255, 255, 0.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--silver-2); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform 0.2s, opacity 0.2s; }
@media (max-width: 1420px) {
  .nav-links a { padding: 10px 9px; font-size: 0.9rem; }
  .nav-search span, .nav-search kbd { display: none; }
  .nav-search { width: 38px; padding: 0; justify-content: center; }
}
@media (max-width: 1200px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 72px;
    background: rgba(12, 11, 14, 0.97); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
  }
  .site-header.open .nav-links a { padding: 14px; font-size: 1.05rem; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; padding: 80px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0.55; filter: saturate(1.05) contrast(1.05); transform: scale(1.04); animation: heroDrift 24s ease-in-out infinite alternate; }
@keyframes heroDrift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.1) translateY(-14px); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 25% 50%, rgba(12, 11, 14, 0.78), rgba(12, 11, 14, 0.35) 60%, rgba(12, 11, 14, 0.1)),
    linear-gradient(180deg, rgba(12, 11, 14, 0.55), rgba(12, 11, 14, 0.15) 30%, rgba(12, 11, 14, 0.2) 70%, var(--bg));
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero h1 { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7); }
.hero h1 em { font-style: normal; color: var(--ember-2); }
.hero .lead { color: #cfc9c5; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8); }
.hero-side { justify-self: end; width: 100%; max-width: 440px; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero-side { justify-self: start; max-width: none; } }
.hero-note { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--good); }

/* embers */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #ff8a5c; box-shadow: 0 0 8px 2px rgba(255, 120, 70, 0.6); opacity: 0; animation: ember linear infinite; }
@keyframes ember { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 10% { opacity: 0.9; } 100% { transform: translate(var(--dx), -110vh) scale(0.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .embers, .hero-bg img { animation: none !important; } .embers { display: none; } }

/* status card in hero */
.card {
  background: linear-gradient(180deg, rgba(29, 26, 35, 0.92), rgba(22, 20, 27, 0.92)); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 22px;
}
.console { font-size: 0.93rem; }
.console-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.console-head b { font-family: var(--display); letter-spacing: 0.12em; font-size: 0.78rem; color: var(--silver); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); margin-right: 8px; vertical-align: 1px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); }
.pill.red { color: #ff8f7c; border-color: var(--ember-line); background: var(--ember-soft); }
.pill.gold { color: var(--gold); border-color: rgba(214, 178, 106, 0.4); background: rgba(214, 178, 106, 0.1); }
.pill.green { color: var(--good); border-color: rgba(95, 208, 138, 0.35); background: rgba(95, 208, 138, 0.1); }
.call { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.call:last-child { border-bottom: 0; }
.call .code { font-family: var(--display); font-size: 0.8rem; color: var(--ember-2); letter-spacing: 0.06em; }
.call .what { color: var(--silver-2); font-weight: 600; }
.call .where { color: var(--faint); font-size: 0.85rem; }
.call .unit { font-size: 0.8rem; color: var(--muted); text-align: right; }
.console-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--faint); font-size: 0.82rem; }
.typing::after { content: "▍"; animation: blink 1s steps(2) infinite; color: var(--ember-2); }
@keyframes blink { 50% { opacity: 0; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--bg-2); padding: 26px 22px; }
.stat b { display: block; font-family: var(--display); font-size: 2rem; color: var(--silver-2); letter-spacing: 0.02em; }
.stat span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* features */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.feature {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--ember-line); background: var(--raised); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ember-soft); border: 1px solid var(--ember-line); color: var(--ember-2); margin-bottom: 18px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.feature .tag { position: absolute; top: 18px; right: 18px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding-left: 28px; margin: 10px 0; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 14px; border-radius: 50%; background: var(--ember-soft); border: 1px solid var(--ember-line); }
.list li::after { content: ""; position: absolute; left: 4px; top: calc(0.55em + 4px); width: 6px; height: 6px; border-radius: 50%; background: var(--ember-2); }
.list li b { color: var(--silver-2); }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }
.frame { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--ink); }
.frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); pointer-events: none; border-radius: inherit; }
.frame img { width: 100%; height: auto; }
.frame .bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #19161f; border-bottom: 1px solid var(--line); }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b3642; }
.frame .bar i:first-child { background: #d7402f; }
.frame .bar i:nth-child(2) { background: #d6b26a; }
.frame .bar i:nth-child(3) { background: #5fd08a; }
.frame .bar span { margin-left: auto; font-size: 0.72rem; color: var(--faint); letter-spacing: 0.08em; }
.caption { font-size: 0.86rem; color: var(--faint); margin-top: 10px; }

/* dark band */
.band { background: linear-gradient(180deg, rgba(18, 16, 22, 0.86), rgba(12, 11, 14, 0.86)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ember { background: radial-gradient(70% 90% at 50% 100%, rgba(var(--ember-rgb), 0.16), transparent 70%), var(--bg-2); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 860px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan.hot { border-color: var(--ember-line); background: linear-gradient(180deg, rgba(var(--ember-rgb), 0.1), var(--panel) 40%); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.plan .ribbon { position: absolute; top: -13px; left: 24px; }
.plan h3 { font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); margin-bottom: 6px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.plan .price b { font-family: var(--display); font-size: 2.3rem; color: var(--silver-2); letter-spacing: -0.01em; }
.plan .price span { color: var(--faint); }
.plan .who { color: var(--muted); font-size: 0.95rem; min-height: 3em; margin-bottom: 18px; }
.plan .list { flex: 1; margin-bottom: 22px; }
.plan .list li { font-size: 0.95rem; margin: 8px 0; }
.plan .incl { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 4px 0 10px; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare th { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); background: var(--bg-2); position: sticky; top: 72px; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--text); }
.compare td.group { text-align: left; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember-2); background: rgba(255, 255, 255, 0.02); padding-top: 22px; }
.compare .y { color: var(--good); font-weight: 700; }
.compare .n { color: var(--faint); }
.compare .sub { display: block; color: var(--faint); font-size: 0.82rem; font-weight: 400; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.table-wrap .compare th { top: 0; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin: 10px 0; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; color: var(--silver-2); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--ember-2); line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details div { padding: 0 22px 20px; color: var(--muted); }

/* scripts */
.shot { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease); }
.product:hover .shot img { transform: scale(1.04); }
.product { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.product:hover { transform: translateY(-4px); border-color: var(--ember-line); }
.product .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product h3 { margin-bottom: 6px; }
.product p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.product .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--faint); }
.product .meta b { color: var(--silver-2); font-family: var(--display); letter-spacing: 0.04em; }
.product.no-shot .body { padding-top: 26px; }

/* timeline / steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--display); color: var(--ember-2); letter-spacing: 0.1em; margin-bottom: 10px; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* quotes */
.quote { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: var(--r); padding: 22px 24px; color: var(--silver); font-size: 1.05rem; }
.quote cite { display: block; margin-top: 12px; font-style: normal; color: var(--faint); font-size: 0.88rem; }

/* CTA */
.cta { text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 100%, rgba(var(--ember-rgb), 0.22), transparent 70%); pointer-events: none; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.cta .actions { justify-content: center; margin-top: 28px; }

/* form */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(var(--ember-rgb), 0.2); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form .fine { font-size: 0.82rem; color: var(--faint); }
.notice { background: var(--ember-soft); border: 1px solid var(--ember-line); border-radius: var(--r); padding: 14px 18px; color: #f3c2b8; font-size: 0.95rem; }
.notice.gold { background: rgba(214, 178, 106, 0.08); border-color: rgba(214, 178, 106, 0.35); color: #e9d6a8; }

/* page header */
.page-head { padding: 84px 0 48px; background: radial-gradient(60% 80% at 50% 0%, rgba(var(--ember-rgb), 0.14), transparent 70%); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }

/* prose (legal) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.3em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 36px; background: var(--ink); color: var(--muted); font-size: 0.95rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }
.foot h3 { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 8px 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--silver-2); }
.foot-brand p { max-width: 36ch; margin-top: 14px; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--faint); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* badges row */
.logos { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; align-items: center; color: var(--faint); font-family: var(--display); letter-spacing: 0.18em; font-size: 0.78rem; text-transform: uppercase; }
.logos span { display: inline-flex; align-items: center; gap: 10px; }
.logos svg { width: 18px; height: 18px; color: var(--ember-2); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ember); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* games in development */
.games { display: grid; gap: 26px; }
.game { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.game:hover { transform: translateY(-3px); border-color: var(--ember-line); }
.game.compact { grid-template-columns: 1fr; }
@media (max-width: 860px) { .game { grid-template-columns: 1fr; } }
.game-art { position: relative; min-height: 240px; background: var(--ink); }
.game.compact .game-art { min-height: 0; aspect-ratio: 16 / 9; }
.game-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.game-stone { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(70% 80% at 50% 110%, rgba(var(--ember-rgb), 0.32), transparent 65%), linear-gradient(160deg, #1a171f, #0b0a0d); }
.game-stone::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 4px 4px; }
.game-stone span { font-family: var(--display); font-size: 4.2rem; color: rgba(201, 198, 204, 0.18); letter-spacing: 0.08em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8); }
.game.compact .game-stone span { font-size: 3rem; }
.game-art .stage { position: absolute; top: 16px; left: 16px; }
.game-body { padding: 28px 28px 26px; display: flex; flex-direction: column; }
.game.compact .game-body { padding: 22px 22px 20px; }
.game-head h3 { font-size: 1.5rem; margin-bottom: 4px; }
.game.compact .game-head h3 { font-size: 1.2rem; }
.working { display: inline-block; font-family: var(--font); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); vertical-align: middle; margin-left: 6px; }
.game-meta { color: var(--ember-2); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.game-blurb { color: var(--muted); }
.game .list { margin: 4px 0 18px; }
.game .list li { font-size: 0.95rem; margin: 6px 0; }
.meter { margin-top: auto; }
.meter-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ember-deep), var(--ember), var(--ember-2)); box-shadow: 0 0 12px rgba(var(--ember-rgb), 0.5); transition: width 1.2s var(--ease); }
.meter-stages { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.meter-stages span.on { color: var(--silver); }
.game.compact .meter-stages span:nth-child(even) { display: none; }
@media (max-width: 560px) { .meter-stages span:nth-child(even) { display: none; } }

/* team */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }
.person { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.person:hover { transform: translateY(-3px); border-color: var(--ember-line); }
.avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 40%, #2a2531, #14121a); border: 2px solid var(--ember-line); box-shadow: 0 0 0 6px rgba(var(--ember-rgb), 0.08), 0 10px 30px rgba(0, 0, 0, 0.5); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-family: var(--display); font-size: 1.9rem; color: var(--silver-2); letter-spacing: 0.04em; }
.person h3 { font-size: 1.3rem; margin-bottom: 2px; }
.person .role { color: var(--ember-2); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.person .bio { color: var(--muted); font-size: 0.98rem; margin: 0; }
.person .plinks { margin: 12px 0 0; font-size: 0.9rem; }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; } }
.feature .tag + h3 { padding-right: 64px; }

/* keyboard focus */
:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 2px; }
.nav-links a:focus-visible { outline-offset: -2px; }


/* gallery */
.gtabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.gtab { background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--muted); padding: 9px 14px; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s var(--ease); }
.gtab:hover { color: var(--silver-2); border-color: rgba(255,255,255,0.25); }
.gtab.on { color: #fff; background: linear-gradient(180deg, #e8513d, var(--ember) 60%, #b5301f); border-color: transparent; box-shadow: 0 8px 24px rgba(var(--ember-rgb), 0.35); }
.gstage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); gap: 28px; align-items: center; }
@media (max-width: 960px) { .gstage { grid-template-columns: 1fr; } }
.gimg { transition: opacity 0.18s ease; }
.gimg.fade { opacity: 0; }
.gcap h3 { font-size: 1.5rem; }
.gcap p { color: var(--muted); }
.gdots { display: flex; gap: 6px; margin-top: 16px; }
.gdots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.12); transition: background 0.2s; }
.gdots i.on { background: var(--ember-2); }

/* help center */
.help-search input { width: 100%; max-width: 720px; margin-top: 26px; padding: 15px 18px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 1.02rem; }
.help-search input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(var(--ember-rgb), 0.2); }
.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; gap: 24px; } }
.help-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 900px) { .help-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; } }
.help-nav a { color: var(--muted); padding: 9px 12px; border-radius: 8px; font-size: 0.95rem; border-left: 2px solid transparent; }
.help-nav a:hover { color: var(--silver-2); background: rgba(255,255,255,0.04); }
.help-nav a.on { color: var(--silver-2); border-left-color: var(--ember); background: rgba(255,255,255,0.04); }
.help-body h2 { font-size: 1.5rem; margin: 2.2em 0 0.6em; scroll-margin-top: 96px; }
.help-body h2:first-child { margin-top: 0; }
details.h { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin: 8px 0; }
details.h summary { cursor: pointer; list-style: none; padding: 15px 18px; font-weight: 600; color: var(--silver-2); display: flex; justify-content: space-between; gap: 16px; }
details.h summary::-webkit-details-marker { display: none; }
details.h summary::after { content: "+"; color: var(--ember-2); font-size: 1.3rem; line-height: 1; }
details.h[open] summary::after { content: "–"; }
details.h > div { padding: 0 18px 18px; color: var(--muted); }
details.h ol, details.h ul { padding-left: 1.3em; }
details.h li { margin: 6px 0; }
details.h code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; color: var(--silver-2); }
.compare.small th, .compare.small td { padding: 10px; text-align: left; font-size: 0.92rem; }
.compare.small th { position: static; }

/* updates timeline */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 148px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, var(--ember-line), var(--line) 40%, var(--line)); }
@media (max-width: 720px) { .timeline::before { left: 10px; } }
.rel { display: grid; grid-template-columns: 120px 1fr; gap: 56px; padding: 0 0 44px; position: relative; }
@media (max-width: 720px) { .rel { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; } }
.rel::before { content: ""; position: absolute; left: 143px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(var(--ember-rgb), 0.18), 0 0 14px rgba(var(--ember-rgb), 0.6); }
@media (max-width: 720px) { .rel::before { left: 5px; } }
.rel-when { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 720px) { .rel-when { flex-direction: row; align-items: center; } }
.rel-when time { font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.06em; color: var(--silver); }
.rel-body { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; }
.rel-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.rel-body .list li { font-size: 0.97rem; }

/* brand never wraps; smaller on phones */
.brand > span { white-space: nowrap; line-height: 1.05; }
@media (max-width: 480px) {
  .brand > span { font-size: 0.92rem; }
  .brand > span small { font-size: 0.6rem; letter-spacing: 0.22em; }
  .brand .mark { height: 38px; }
  .nav-cta .btn-primary.btn-sm { padding: 9px 12px; font-size: 0.86rem; }
}

/* roadmap lanes */
.lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lanes { grid-template-columns: 1fr; } }
.lane { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.lane-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.lane-head p { margin: 8px 0 0; color: var(--faint); font-size: 0.86rem; }
.lane-head b { font-family: var(--display); font-size: 1.4rem; color: var(--silver); line-height: 1; }
.rm { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 14px; margin: 8px 0; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.rm:hover { transform: translateY(-2px); border-color: var(--ember-line); }
.rm-top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.rm-tag { color: var(--ember-2); font-weight: 600; }
.rm time { color: var(--faint); }
.rm h3 { font-size: 1.02rem; margin-bottom: 6px; }
.rm p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.lane-shipped .rm { border-left: 3px solid var(--good); }
.lane-building .rm { border-left: 3px solid var(--ember); }
.lane-planned .rm { border-left: 3px solid var(--gold); }
.lane-considering .rm { border-left: 3px solid rgba(255,255,255,0.18); }

/* get started */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .paths { grid-template-columns: 1fr; } }
.path { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.path:hover { transform: translateY(-4px); border-color: var(--line-2); }
.path.hot { border-color: var(--ember-line); background: linear-gradient(180deg, rgba(var(--ember-rgb), 0.1), var(--panel) 40%); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.path .pill { align-self: flex-start; margin-bottom: 14px; }
.path h3 { font-size: 1.3rem; }
.path p { color: var(--muted); font-size: 0.97rem; }
.path .list { flex: 1; margin-bottom: 22px; }
.path .list li { font-size: 0.93rem; margin: 7px 0; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 38px; margin: 12px 0; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--ember-line); background: var(--ember-soft); }
.checks li::after { content: ""; position: absolute; left: 8px; top: calc(0.2em + 4px); width: 5px; height: 10px; border: solid var(--ember-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks li b { color: var(--silver-2); }
.clock-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.clock-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; background: var(--panel); padding: 14px 18px; }
.clock-list b { font-family: var(--display); color: var(--ember-2); font-size: 1rem; letter-spacing: 0.04em; }
.clock-list span { color: var(--muted); font-size: 0.95rem; }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .steps-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .steps-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-5 { grid-template-columns: 1fr; } }

/* sign-in */
.hero-signin { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }
.hero-signin a { font-weight: 600; }
.login-wrap { align-items: start !important; }
.login-card .form { margin-top: 8px; }
.login-card .fine { margin: 0; }
.how { counter-reset: h; list-style: none; margin: 22px 0 14px; padding: 0; }
.how li { counter-increment: h; position: relative; padding-left: 46px; margin: 14px 0; color: var(--muted); }
.how li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--ember-2); background: var(--ember-soft); border: 1px solid var(--ember-line); }
.how li b { color: var(--silver-2); }
.how code, .faq code { background: rgba(255,255,255,0.07); padding: 2px 7px; border-radius: 5px; font-size: 0.92em; color: var(--silver-2); }

/* catalogue stones */
.shot.stone { position: relative; display: grid; place-items: center; background: radial-gradient(70% 80% at 50% 110%, rgba(var(--ember-rgb), 0.32), transparent 65%), linear-gradient(160deg, #1a171f, #0b0a0d); }
.shot.stone::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 4px 4px; }
.shot.stone span { font-family: var(--display); font-size: 3.4rem; color: rgba(201, 198, 204, 0.2); letter-spacing: 0.08em; position: relative; }
.shot.stone small { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--faint); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.shot.stone.tall { aspect-ratio: 16 / 9; }
.shot-link { display: block; }
.product h3 a { color: inherit; }
.product h3 a:hover { color: var(--ember-2); }
.crumbs { display: flex; gap: 10px; font-size: 0.9rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.facts { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--muted); align-items: start; }
.facts > div:first-child { border-top: 0; }
.facts b { color: var(--silver); font-family: var(--display); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }
.facts .pill { margin: 2px 4px 2px 0; }

/* plan picker */
.picker { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .picker { grid-template-columns: 1fr; } }
.picker fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.picker legend { color: var(--silver-2); font-weight: 600; margin-bottom: 10px; display: flex; gap: 10px; align-items: baseline; }
.picker legend span { font-family: var(--display); color: var(--ember-2); font-size: 0.8rem; letter-spacing: 0.1em; }
.picker-a { display: flex; gap: 8px; flex-wrap: wrap; }
.picker-a button { background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--muted); padding: 9px 14px; border-radius: 999px; font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer; transition: all 0.2s var(--ease); }
.picker-a button:hover { color: var(--silver-2); border-color: rgba(255,255,255,0.25); }
.picker-a button.on { color: #fff; background: linear-gradient(180deg, #e8513d, var(--ember) 60%, #b5301f); border-color: transparent; box-shadow: 0 8px 24px rgba(var(--ember-rgb), 0.35); }
.picker-r { position: sticky; top: 92px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; min-height: 160px; transition: border-color 0.3s; }
.picker-r.ready { border-color: var(--ember-line); background: linear-gradient(180deg, rgba(var(--ember-rgb), 0.1), var(--panel) 45%); }
.picker-r h3 { font-size: 1.8rem; margin: 6px 0 8px; }
.picker-r h3 small { font-family: var(--font); font-weight: 500; font-size: 1rem; color: var(--ember-2); margin-left: 8px; }
.picker-r .actions { margin-top: 16px; }
.picker-r .fine { font-size: 0.84rem; color: var(--faint); margin: 14px 0 0; }
.plan.picked { border-color: var(--ember-2); box-shadow: 0 0 0 3px rgba(var(--ember-rgb), 0.25), 0 30px 60px rgba(0, 0, 0, 0.5); }

/* brand kit */
.logo-tile { display: flex; flex-direction: column; }
.logo-tile p { flex: 1; }
.logo-tile .actions { margin-top: 16px; }
.logo-stage { display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; min-height: 180px; }
.logo-stage img { max-height: 160px; width: auto; mix-blend-mode: screen; }
.logo-stage.light { background: #f1ece6; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
@media (max-width: 560px) { .swatches { grid-template-columns: repeat(2, 1fr); } }
.swatches > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; font-size: 0.85rem; }
.swatches i { display: block; height: 54px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); margin-bottom: 8px; }
.swatches b { display: block; color: var(--silver-2); }
.swatches span { color: var(--faint); font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; }
.type-sample { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.type-sample .t1 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: var(--silver-2); letter-spacing: 0.02em; line-height: 1.15; }
.type-sample .t2 { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* round 5 */
.nav-mobile-only { display: none; }
@media (max-width: 1200px) { .site-header.open .nav-mobile-only { display: block; } .site-header.open li:not(.nav-mobile-only) + .nav-mobile-only { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; } .site-header.open li:not(.nav-mobile-only) ~ .nav-mobile-only a { color: var(--ember-2); } }
.form-copy { margin-top: 10px; display: grid; gap: 10px; }
.form-copy textarea { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--silver); font: inherit; font-size: 0.92rem; line-height: 1.5; resize: vertical; }
.form-copy .fine { margin: 0; }
.form-copy .fine b { color: var(--silver-2); }
.foot-bottom span + span::before { content: ""; }

@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  body::before, .embers, .hero-bg, .hero-shade, .site-header, .site-footer, .nav-toggle, .btn, .actions, .skip, .form, .gtabs, .gdots { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  h1, h2, h3, h4 { color: #000; }
  .lead, .muted, .faint, p, li, .feature p, .step p { color: #222 !important; }
  .hero, .page-head, .band, .band-ember, .cta { background: none !important; border: 0 !important; padding: 12pt 0 !important; min-height: 0 !important; }
  .card, .feature, .plan, .step, .product, .rm, .lane, .path, details.h, .rel-body { border: 1px solid #bbb !important; background: none !important; box-shadow: none !important; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  .split, .grid, .plans, .lanes, .paths, .steps { display: block !important; }
  .split > *, .grid > *, .plans > *, .lanes > *, .paths > *, .steps > * { margin-bottom: 10pt; }
  img { max-width: 60% !important; }
  details.h > div, .faq details div { display: block !important; }
}

/* round 7 */
.filters { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-bottom: 26px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.fgroup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fgroup > span { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.fgroup button { background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--muted); padding: 7px 12px; border-radius: 999px; font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: all 0.2s var(--ease); }
.fgroup button:hover { color: var(--silver-2); border-color: rgba(255,255,255,0.25); }
.fgroup button.on { color: #fff; background: linear-gradient(180deg, #e8513d, var(--ember) 60%, #b5301f); border-color: transparent; }
.fcount { margin-left: auto; color: var(--faint); font-size: 0.9rem; }
.fcount b { color: var(--silver-2); font-family: var(--display); }
.latest-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.latest-head h2 { margin-bottom: 0; }
.latest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .latest { grid-template-columns: 1fr; } }
.latest-item { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 22px 20px; color: var(--muted); transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.latest-item:hover { transform: translateY(-3px); border-color: var(--ember-line); color: var(--muted); }
.latest-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.latest-meta time { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--silver); }
.latest-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.latest-item p { font-size: 0.93rem; margin: 0; }

/* round 8 */
#site-header { min-height: 72px; }
#site-footer { min-height: 320px; }
#live-calls { min-height: 248px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
p a:not(.btn), li a:not(.btn), .faq div a, details.h div a { text-decoration: underline; text-decoration-color: rgba(255, 106, 74, 0.45); text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:not(.btn):hover, li a:not(.btn):hover { text-decoration-color: currentColor; }
.foot li a, .nav-links a, .help-nav a, .crumbs a { text-decoration: none; }

/* round 10 */
#forge, #forge-soft { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
#forge-soft { image-rendering: auto; }
main { position: relative; z-index: 1; }
.site-footer { position: relative; z-index: 1; }
.site-header { z-index: 50; }
.nav-user { display: inline-flex; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); color: var(--silver-2); font-weight: 600; font-size: 0.9rem; max-width: 180px; }
.user-chip:hover { border-color: var(--ember-line); color: #fff; }
.user-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.user-pic { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ember-soft); border: 1px solid var(--ember-line); color: var(--ember-2); font-style: normal; font-size: 0.85rem; flex: none; }
.user-pic img { width: 100%; height: 100%; object-fit: cover; }
.acct-wrap { align-items: start !important; }
.acct-intro .feature { display: block; color: inherit; }
.acct-intro .feature h3 { font-size: 1.05rem; }
.acct-card .form { margin-top: 4px; }
.oauth { display: grid; gap: 10px; margin: 14px 0 6px; }
.btn-oauth { justify-content: center; gap: 10px; width: 100%; position: relative; }
.btn-oauth svg { width: 20px; height: 20px; flex: none; }
.btn-oauth.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-oauth.discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }
.btn-oauth.google { background: #fff; border-color: #fff; color: #1f1f1f; }
.btn-oauth.google:hover { background: #ececec; border-color: #ececec; color: #000; }
.btn-oauth.off { opacity: 0.55; filter: saturate(0.4); cursor: not-allowed; }
.btn-oauth .soon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 14px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 9px; border-radius: 7px; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--raised-2); color: var(--silver-2); }
.acct-profile { display: flex; gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.acct-profile .avatar { width: 64px; height: 64px; flex: none; }
.acct-profile .avatar span { font-size: 1.3rem; }
.acct-profile h3 { margin-bottom: 2px; font-size: 1.25rem; }
.acct-profile p { margin: 0; font-size: 0.92rem; }
.acct-h { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); margin: 14px 0 8px; }
.linked { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.linked li { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.linked li:first-child { border-top: 0; }
.linked li b { color: var(--silver-2); }
.linked li a { font-weight: 600; }
.acct-card details.h { margin: 8px 0; }
.acct-card details.h .form { padding-top: 6px; }

/* round 11 */
.requests { display: grid; gap: 14px; }
.rq { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: var(--r-lg); padding: 16px 18px; }
.rq.done { border-left-color: var(--good); opacity: 0.8; }
.rq header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.rq header b { font-family: var(--display); letter-spacing: 0.04em; color: var(--silver-2); }
.rq-who { color: var(--muted); font-size: 0.92rem; }
.rq-who em { color: var(--faint); font-style: normal; }
.rq header time { margin-left: auto; color: var(--faint); font-size: 0.85rem; }
.rq-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; }
.rq-field span { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.rq-field div { color: var(--silver); white-space: pre-wrap; word-break: break-word; }
.rq footer { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.rq-note { flex: 1; min-width: 200px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 0.92rem; }
.hero h1 em { background: linear-gradient(90deg, var(--ember-2), #ffb199 45%, var(--ember-2) 60%, #ff8a6e); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: emberSweep 6s ease-in-out infinite; }
@keyframes emberSweep { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .hero h1 em { animation: none; color: var(--ember-2); background: none; } }

/* round 12 */
.cities-box { margin-top: 22px; padding: 18px 20px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: var(--r-lg); }
.city-list { list-style: none; margin: 0; padding: 0; }
.city-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.city-list li:first-child { border-top: 0; padding-top: 0; }
.city-list b { color: var(--silver-2); }
.city-right { display: flex; align-items: center; gap: 10px; }
#city-form.card { padding: 18px; }
.desk-tabs { grid-template-columns: repeat(3, 1fr); }
label.inline { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); }
label.inline select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 0.9rem; }

/* the hidden attribute must win over display rules such as .form { display: grid } */
[hidden] { display: none !important; }

/* round 13 */
.rm-foot { margin-top: 10px; display: flex; justify-content: flex-end; }
.vote { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--muted); padding: 5px 10px; border-radius: 999px; font: inherit; font-size: 0.8rem; cursor: pointer; transition: all 0.2s var(--ease); }
.vote:hover { color: var(--silver-2); border-color: rgba(255,255,255,0.25); }
.vote b { color: var(--silver-2); font-family: var(--display); font-size: 0.85rem; }
.vote.on { color: #fff; background: linear-gradient(180deg, #e8513d, var(--ember) 60%, #b5301f); border-color: transparent; }
.vote.on b { color: #fff; }
.vote:disabled { opacity: 0.6; cursor: wait; }
.rm:target { border-color: var(--ember-2); box-shadow: 0 0 0 3px rgba(var(--ember-rgb), 0.25); }

/* round 14: staff showcase */
.person.founder { grid-column: 1 / -1; grid-template-columns: 320px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; align-items: stretch; background: linear-gradient(135deg, rgba(var(--ember-rgb), 0.08), var(--panel) 45%); border-color: var(--ember-line); }
.person.founder:hover { transform: none; }
.lead-portrait { position: relative; min-height: 340px; background: var(--ink); }
.lead-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.lead-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 70%, rgba(22,20,27,0.9)); pointer-events: none; }
.lead-portrait .pill { position: absolute; left: 16px; top: 16px; z-index: 1; }
.lead-stone { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(70% 80% at 50% 110%, rgba(var(--ember-rgb), 0.32), transparent 65%), linear-gradient(160deg, #1a171f, #0b0a0d); }
.lead-stone span { font-family: var(--display); font-size: 4rem; color: rgba(201, 198, 204, 0.2); letter-spacing: 0.08em; }
.lead-body { padding: 32px 34px 30px; display: flex; flex-direction: column; }
.lead-body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 6px; }
.lead-tag { font-family: var(--display); color: var(--ember-2); letter-spacing: 0.04em; font-size: 1.05rem; margin-bottom: 14px; }
.lead-body .bio { max-width: 62ch; }
.lead-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 20px 0 16px; }
.lead-facts > div { background: var(--bg-2); padding: 12px 14px; }
.lead-facts span { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.lead-facts b { color: var(--silver-2); font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ember-line); background: var(--ember-soft); color: #ffb3a3; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em; }
.lead-links { margin-top: auto; }
@media (max-width: 860px) {
  .person.founder { grid-template-columns: 1fr; }
  .lead-portrait { min-height: 0; aspect-ratio: 4 / 3; }
  .lead-portrait::after { background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(22,20,27,0.95)); }
  .lead-facts { grid-template-columns: 1fr; }
}
.person.join { grid-column: 1 / -1; grid-template-columns: 120px 1fr; border-style: dashed; border-color: rgba(214, 178, 106, 0.4); background: rgba(214, 178, 106, 0.04); }
.join-art { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 40%, #2a2531, #14121a); border: 2px dashed rgba(214, 178, 106, 0.5); }
.join-art span { font-family: var(--display); font-size: 2.4rem; color: var(--gold); }
.person.join h3 { margin: 10px 0 6px; }
@media (max-width: 560px) { .person.join { grid-template-columns: 1fr; } }

/* round 15 */
.top-votes { margin: 0; padding-left: 1.3em; color: var(--muted); columns: 2; column-gap: 28px; }
.top-votes li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.top-votes li b { color: var(--silver-2); font-family: var(--display); }
@media (max-width: 700px) { .top-votes { columns: 1; } }

/* round 16: live badge */
.live-badge { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); color: var(--muted); font-size: 0.92rem; }
.live-badge b { color: var(--silver-2); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; display: inline-block; }
.live-on .live-dot { background: var(--good); box-shadow: 0 0 0 0 rgba(95, 208, 138, 0.6); animation: livePulse 2s ease-out infinite; }
.live-off .live-dot { background: var(--gold); }
.live-badge.live-on { border-color: rgba(95, 208, 138, 0.35); }
.live-badge.live-off { border-color: rgba(214, 178, 106, 0.35); }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(95, 208, 138, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(95, 208, 138, 0); } }
.live-pill { display: inline-flex; align-items: center; gap: 6px; }
.live-pill .live-dot { width: 7px; height: 7px; margin-right: 0; }
.live-pill.live-on { color: var(--good); border-color: rgba(95, 208, 138, 0.35); background: rgba(95, 208, 138, 0.1); }
.live-pill b { color: inherit; }
@media (prefers-reduced-motion: reduce) { .live-on .live-dot { animation: none; } }

/* round 17: spotlight banner */
.spotlight { position: relative; min-height: min(70vh, 640px); display: flex; align-items: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spot-art { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.spot-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.04); animation: heroDrift 28s ease-in-out infinite alternate; }
.spot-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,11,14,0.92) 0%, rgba(12,11,14,0.7) 40%, rgba(12,11,14,0.15) 75%, rgba(12,11,14,0.4) 100%), linear-gradient(180deg, rgba(12,11,14,0.6), rgba(12,11,14,0) 30%, rgba(12,11,14,0) 70%, rgba(12,11,14,0.8)); }
.spot-body { padding: 80px 0; max-width: 1180px; }
.spot-body h2 { font-size: clamp(2.2rem, 5vw, 4rem); text-shadow: 0 4px 30px rgba(0,0,0,0.7); }
.spot-body .lead { color: #d8d2cd; text-shadow: 0 2px 14px rgba(0,0,0,0.8); max-width: 52ch; }
.spot-body .actions { margin-top: 26px; }
@media (max-width: 760px) { .spotlight { min-height: 0; } .spot-body { padding: 60px 0; } .spot-shade { background: linear-gradient(180deg, rgba(12,11,14,0.55), rgba(12,11,14,0.85)); } }
@media (prefers-reduced-motion: reduce) { .spot-art img { animation: none; } }
.pill.interest { color: var(--good); border-color: rgba(95, 208, 138, 0.35); background: rgba(95, 208, 138, 0.1); }

/* round 18: status page */
.status-list { display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.status-row h3 { font-size: 1.05rem; margin-bottom: 2px; }
.status-row p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.status-light { width: 14px; height: 14px; border-radius: 50%; background: var(--faint); justify-self: center; }
.status-word { font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.status-row.is-ok .status-light { background: var(--good); box-shadow: 0 0 12px rgba(95, 208, 138, 0.6); }
.status-row.is-ok .status-word { color: var(--good); }
.status-row.is-warn .status-light { background: var(--gold); box-shadow: 0 0 12px rgba(214, 178, 106, 0.5); }
.status-row.is-warn .status-word { color: var(--gold); }
.status-row.is-down .status-light { background: var(--ember-2); box-shadow: 0 0 12px rgba(255, 106, 74, 0.6); }
.status-row.is-down .status-word { color: var(--ember-2); }
@media (max-width: 560px) { .status-row { grid-template-columns: 18px 1fr; } .status-word { grid-column: 2; } }

/* round 19: community codes */
.code-chip { display: inline-block; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.14em; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--ember-line); background: var(--ember-soft); color: #ffb3a3; margin-left: 8px; vertical-align: middle; }
.login-preview { margin: -2px 0 6px; padding: 10px 12px; border-radius: 8px; font-size: 0.92rem; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); color: var(--muted); }
.login-preview.is-ok { border-color: rgba(95, 208, 138, 0.4); color: #cfeedb; }
.login-preview.is-wait { border-color: rgba(214, 178, 106, 0.4); color: #e9d6a8; }
.login-preview.is-bad { border-color: var(--ember-line); color: #f3c2b8; }
.login-preview b { color: #fff; }
.login-alt { margin: 4px 0 10px; }
.login-alt summary { font-size: 0.92rem; padding: 10px 14px; }
.login-alt > div { padding: 0 14px 12px; display: grid; gap: 10px; }
#login-code::placeholder { letter-spacing: 0.08em; text-transform: none; font-family: var(--font); font-size: 1rem; }


/* ── site search (header button + palette) ───────────────────────────────── */
.nav-search { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--muted); font: 500 0.9rem var(--font); cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.nav-search:hover { color: var(--silver-2); border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.07); }
.nav-search svg { width: 16px; height: 16px; }
.nav-search kbd { font: 600 0.68rem var(--font); letter-spacing: 0.06em; color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.rgs { position: fixed; inset: 0; z-index: 200; }
.rgs-back { position: absolute; inset: 0; background: rgba(5, 4, 7, 0.72); backdrop-filter: blur(6px); }
.rgs-panel { position: relative; width: min(680px, calc(100% - 32px)); margin: 9vh auto 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; animation: rgs-in 0.18s var(--ease); }
@keyframes rgs-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }
.rgs-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--faint); }
.rgs-head svg { width: 20px; height: 20px; flex: none; color: var(--ember-2); }
.rgs-input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 1.08rem var(--font); }
.rgs-input::placeholder { color: var(--faint); }
.rgs-head kbd, .rgs-foot kbd { font: 600 0.68rem var(--font); letter-spacing: 0.06em; color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 6px; margin-right: 4px; }
.rgs-list { max-height: min(56vh, 520px); overflow: auto; padding: 8px; }
.rgs-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; padding: 10px 12px; border-radius: 10px; color: var(--text); border: 1px solid transparent; }
.rgs-item.on { background: var(--raised); border-color: var(--ember-line); }
.rgs-page { font: 600 0.72rem var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.rgs-sec { font-weight: 600; color: var(--silver-2); }
.rgs-item:not(:has(.rgs-sec)) .rgs-page { font: 600 1rem var(--font); letter-spacing: 0; text-transform: none; color: var(--silver-2); }
.rgs-x { grid-column: 2; color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rgs-item:not(:has(.rgs-sec)) .rgs-x { grid-column: 1 / -1; }
.rgs-item mark { background: none; color: var(--ember-2); font-weight: 700; }
.rgs-empty { padding: 26px 16px; color: var(--muted); text-align: center; margin: 0; }
.rgs-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.8rem; }
.rgs-count { margin-left: auto; }
body.rgs-open { overflow: hidden; }

/* ── footer: keep me posted ──────────────────────────────────────────────── */
.foot-sub { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 34px 0; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.foot-sub h3 { font-size: 1.3rem; margin-bottom: 6px; }
.foot-sub p { margin: 0; font-size: 0.95rem; }
.sub-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.sub-form input { padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--raised); color: var(--text); font: 500 1rem var(--font); min-width: 0; }
.sub-form input:focus { outline: 0; border-color: var(--ember-line); box-shadow: 0 0 0 3px var(--ember-soft); }
.sub-form .sub-msg { grid-column: 1 / -1; margin: 0; min-height: 1.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 820px) { .foot-sub { grid-template-columns: 1fr; } .sub-form { grid-template-columns: 1fr; } }

/* ── try.html: the live demo frame ───────────────────────────────────────── */
.wrap-wide { max-width: 1400px; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 14px; }
.demo-dept { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.demo-dept .faint { font-size: 0.85rem; margin-right: 4px; }
.demo-dept button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--muted); font: 600 0.82rem var(--font); cursor: pointer; }
.demo-dept button:hover { color: var(--silver-2); border-color: rgba(255, 255, 255, 0.25); }
.demo-dept button.on { color: #fff; background: var(--ember-soft); border-color: var(--ember-line); }
.demo-bar [data-reload] { margin-left: auto; }
.demo-frame iframe { display: block; width: 100%; height: min(78vh, 860px); min-height: 560px; border: 0; background: #02060c; }
@media (max-width: 700px) { .demo-frame iframe { height: 70vh; min-height: 420px; } .demo-bar [data-reload] { margin-left: 0; } }
.linkish { background: none; border: 0; padding: 0; color: var(--ember-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: #ff8a6e; }
kbd.k { font: 600 0.72rem var(--font); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; color: var(--faint); }
