/* NEW REPUBLIC site. Minimal and professional, close to the reference layout.
   Layout: fixed nav over a centered key-art hero, then a 1180px column of alternating
   image/text rows, a support box, image bands, a two-column FAQ and a plain footer. */
:root {
  --bg: #0a0a0b;
  --bg-band: #0f0f11;
  --bg-deep: #070708;
  --panel: #141416;
  --panel-2: #1b1b1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: #f5f6f7;
  --muted: #a9adb3;
  --dim: #74787f;
  --accent: #fb0021;   /* Quisqueya Games red, from the studio logo */
  --heart: #fb0021;
  --pill: #f5f6f7;
  --pill-fg: #0a0a0b;
  --ok: #3fcf5a;
  --wip: #f3b323;
  --todo: #74787f;
  --lvl0: #e0262b;
  --lvl1: #f0561c;
  --lvl2: #f38a1a;
  --lvl3: #f3c623;
  --lvl4: #c4e83a;
  --lvl5: #3fcf5a;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --head-h: 72px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--head-h) + 24px + env(safe-area-inset-top, 0px)); }

.wrap {
  max-width: calc(var(--wrap) + 32px);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pill); color: var(--pill-fg);
  border: 0; border-radius: 80px;
  padding: 14px 40px;
  font: 600 15px/1.25 var(--font);
  text-align: center; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #ffffff; }
.btn .heart { color: var(--heart); }
.btn-wide { padding: 16px 40px; max-width: 360px; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }

/* Heading with the short vertical rule */
.ruled { display: flex; align-items: flex-start; gap: 16px; font-size: clamp(28px, 3.2vw, 40px); }
.ruled::before {
  content: ""; flex: none; width: 3px; height: 0.9em; margin-top: 0.14em;
  background: var(--accent); border-radius: 2px;
}

/* Small label */
.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: 1320px; margin: 0 auto; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: stretch; height: var(--head-h); }
.nav a {
  position: relative; display: flex; align-items: center;
  padding: 0 18px; font-size: 14px; font-weight: 500; color: var(--fg);
  opacity: .78; transition: opacity .2s;
}
.nav a:hover, .nav a.active { opacity: 1; }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--accent);
}
.head-right { display: flex; align-items: center; gap: 14px; }
.btn-contact { padding: 10px 22px; font-size: 13px; }
.flag { width: 22px; height: 15px; border-radius: 2px; overflow: hidden; flex: none; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--fg);
  cursor: pointer; padding: 10px; border-radius: 8px;
}
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(620px, 58vw, 840px);
  display: flex; align-items: flex-end; justify-content: center; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -4;
  background: url("hero_monumento.jpg") center 35% / cover no-repeat;
  filter: brightness(.45) saturate(.8);
  transform: scale(1.04);
  animation: drift 24s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 30% 62% at 50% 55%, rgba(0,0,0,.85), rgba(0,0,0,0) 72%),
    linear-gradient(to bottom, rgba(10,10,11,.6), rgba(10,10,11,0) 22%);
}
.hero-trey {
  position: absolute; left: 50%; bottom: -2%; z-index: -2;
  height: 104%; width: auto; max-width: none; transform: translateX(-50%);
  mix-blend-mode: lighten; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1;
  background: linear-gradient(to bottom, rgba(10,10,11,0), rgba(10,10,11,.82) 55%, var(--bg));
}
.hero-content {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding-block: 0 clamp(44px, 6vw, 84px);
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  animation: rise .9s ease-out both;
}
.hero-logo { width: clamp(150px, 14vw, 210px); filter: drop-shadow(0 6px 24px rgba(0,0,0,.7)); }
.hero-eyebrow { font-variant-numeric: tabular-nums; }
.hero h1 { font-size: clamp(42px, 5.6vw, 68px); font-weight: 500; letter-spacing: -0.01em; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero-sub { font-size: 15px; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero-actions .btn { min-width: 160px; }
.platform-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  padding: 9px 20px 9px 14px; border-radius: 8px;
  background: #ffffff; color: #0a0a0b;
  text-align: left; line-height: 1.1;
}
.platform-badge .pb-icon { display: flex; flex: none; }
.platform-badge svg { width: 28px; height: 28px; }
.platform-badge small { display: block; font-size: 11px; font-weight: 500; color: #4a4d52; }
.platform-badge b { display: block; font-size: 20px; font-weight: 800; letter-spacing: .04em; margin-top: 1px; }
@keyframes drift { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.09) translateX(1%); } }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }

/* ---------- Media strip ---------- */
.media-strip { padding-block: 34px; border-bottom: 1px solid var(--line); }
.media-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.media-strip .label { font-size: 13px; color: var(--muted); }
.media-strip a, .media-strip .partner { display: block; opacity: .6; transition: opacity .2s; }
.media-strip a:hover, .media-strip .partner:hover { opacity: .95; }
.media-strip img { height: 30px; width: auto; }
.media-strip .tall img { height: 46px; }

/* ---------- Scroll reveal (only when the script turns it on) ---------- */
.reveal-on .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--d, 0ms);
}
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* ---------- Sliders ---------- */
.band { background: linear-gradient(to bottom, var(--bg-band), var(--bg)); padding-block: 64px 56px; }
.section-title { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 26px; }
.slider {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain;
}
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: start; flex: none; }
.news-card { width: calc((100% - 3 * 18px) / 3.55); min-width: 0; }
.news-card .thumb { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--panel); }
.news-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover img { transform: scale(1.04); }
.news-card h3 { font-size: 15px; font-weight: 600; margin-top: 12px; line-height: 1.35; }
.news-card .tag { display: block; font-size: 11px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.dots button {
  width: 22px; height: 3px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255,255,255,.22); transition: width .25s, background-color .25s;
}
.dots button[aria-current="true"] { width: 36px; background: var(--fg); }

/* ---------- About (home) ---------- */
.about { padding-block: 96px 40px; }
.about .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 28px; margin-top: 34px; }
.about p { color: var(--muted); font-size: 14px; }

/* ---------- Projects ---------- */
.works { padding-block: 70px 30px; }
.work-card {
  position: relative; display: block; width: calc((100% - 18px) / 2.15); aspect-ratio: 16 / 10;
  border-radius: 14px; overflow: hidden; background: var(--panel);
}
.work-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card:hover > img { transform: scale(1.04); }

/* ---------- Feature rows ---------- */
.features {
  padding-block: 60px 40px;
  background:
    radial-gradient(900px 640px at 12% 6%, rgba(255,255,255,.03), transparent 62%),
    radial-gradient(900px 700px at 88% 40%, rgba(255,255,255,.025), transparent 62%),
    radial-gradient(900px 700px at 14% 78%, rgba(255,255,255,.025), transparent 62%);
}
.features-intro { font-size: 20px; font-weight: 600; margin-bottom: 30px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(36px, 5vw, 70px);
}
.feature.flip { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.feature.flip .media { order: 2; }
.media {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel);
}
.feature .media { box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.feature:hover .media img { transform: scale(1.03); }
.copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.copy p { color: var(--muted); max-width: 44ch; }
.copy .btn { margin-top: 8px; max-width: 320px; }

/* ---------- Support box ---------- */
.support { padding-block: 60px 90px; }
.support-box {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
  min-height: 430px; display: flex; align-items: center;
}
.support-box .art {
  position: absolute; inset: 0 0 0 38%; z-index: -2;
  background: url("cta_bg.jpg") center / cover no-repeat;
  filter: brightness(.75);
}
.support-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--panel) 0%, var(--panel) 38%, rgba(20,20,22,.55) 62%, rgba(20,20,22,.1) 100%);
}
.support-copy { padding: clamp(28px, 5vw, 56px); max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.support-copy img { width: 110px; }
.support-copy h2 { font-size: clamp(30px, 3.4vw, 42px); }
.support-copy p { color: var(--muted); font-size: 14px; }
.support-copy p b { color: var(--fg); font-weight: 600; }

/* ---------- Image band (progress, promo) ---------- */
.img-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(90px, 11vw, 150px);
}
.img-band .art {
  position: absolute; inset: 0; z-index: -2;
  background-position: center 60%; background-size: cover; background-repeat: no-repeat;
  filter: brightness(.55) saturate(.85);
}
.img-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.55) 45%, rgba(10,10,11,.2) 100%),
    linear-gradient(to bottom, var(--bg) 0%, rgba(10,10,11,0) 22%, rgba(10,10,11,0) 78%, var(--bg-deep) 100%);
}
.img-band .copy { max-width: 520px; }
.img-band h2 { font-size: clamp(30px, 3.4vw, 42px); }
.img-band p { color: var(--muted); }

.promo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.promo-pair .img-band { padding-block: clamp(70px, 8vw, 110px); }
.promo-pair .img-band .wrap { max-width: 620px; margin: 0; padding-left: max(var(--gutter-l), calc((100vw - var(--wrap)) / 2)); }
.promo-pair .img-band + .img-band .wrap { padding-left: clamp(24px, 4vw, 56px); }

/* ---------- FAQ: heading left, questions right ---------- */
.faq { background: var(--bg-deep); padding-block: 80px 96px; }
.faq > .wrap {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: 28px 72px; align-items: start;
}
.faq > .wrap > h2 { grid-column: 1; grid-row: 1; font-size: clamp(26px, 2.8vw, 34px); }
.faq > .wrap > .faq-list { grid-column: 2; grid-row: 1 / span 2; }
.faq > .wrap > .more { grid-column: 1; grid-row: 2; }
.faq-list { display: grid; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-size: 15px; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat;
  transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p, .faq-list details ul { color: var(--muted); font-size: 14px; padding: 0 0 20px; max-width: 68ch; margin: 0; }
.faq-list details ul { padding-left: 20px; }
.faq-list details a { text-decoration: underline; color: var(--fg); }
.faq .more { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.faq .more h3 { font-size: 18px; color: var(--muted); font-weight: 500; }
.faq.faq-full { background: transparent; }
.faq.faq-full > .wrap { display: block; }
.faq-group { margin-top: 44px; }
.faq-group h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }

/* ---------- Inner page top ---------- */
.page-top { padding-top: calc(var(--head-h) + env(safe-area-inset-top, 0px) + clamp(36px, 5vw, 64px)); padding-bottom: clamp(30px, 4vw, 50px); }
.intro-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.intro-grid .media { aspect-ratio: 16 / 10; }
.intro-grid h1 { font-size: clamp(32px, 4vw, 48px); }
.intro-grid .copy p { max-width: 54ch; font-size: 14px; }
.intro-grid .copy p b { color: var(--fg); font-weight: 600; }
.page-title { font-size: clamp(32px, 4vw, 48px); }
.page-lead { color: var(--muted); max-width: 64ch; margin-top: 14px; }

/* ---------- Prose sections (feature pages) ---------- */
.prose-section { padding-block: clamp(30px, 4vw, 54px); }
.prose { max-width: 780px; display: flex; flex-direction: column; gap: 16px; }
.prose p, .prose li { color: var(--muted); }
.prose p b, .prose li b { color: var(--fg); font-weight: 600; }
.prose a { text-decoration: underline; color: var(--fg); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.figure-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.figure-row figure, figure.wide { margin: 0; }
.figure-row .media, figure.wide .media { aspect-ratio: 16 / 9; }
figcaption { font-size: 12px; color: var(--dim); margin-top: 8px; }
figure.wide { margin-top: 26px; }
.note { font-size: 12px; color: var(--dim); margin-top: 14px; }

.explore { padding-block: 40px 70px; }
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.explore-card { display: block; }
.explore-card .media { aspect-ratio: 16 / 10; border-radius: 12px; }
.explore-card h3 { font-size: 15px; margin-top: 10px; }
.explore-card:hover .media img { transform: scale(1.04); }

/* ---------- Roadmap ---------- */
.disclaimers { display: flex; flex-direction: column; gap: 12px; }
.sys-section { padding-block: 40px 30px; }
.sys-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.sys-head h2 { font-size: clamp(24px, 2.4vw, 30px); }
.legend { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.legend-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.legend-bar {
  height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, var(--lvl0), var(--lvl1), var(--lvl2), var(--lvl3), var(--lvl4), var(--lvl5));
}
.legend-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); }
.sys-group { margin-top: 30px; }
.sys-group h3 { font-size: clamp(18px, 1.8vw, 22px); margin-bottom: 14px; }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sys-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  min-height: 104px; padding: 12px 12px 11px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--lvl); color: #111111; text-align: left;
  font: 500 13px/1.3 var(--font);
  transition: transform .15s ease, filter .15s ease;
}
.sys-card:hover { transform: translateY(-2px); filter: brightness(1.06); }
.sys-card .name { font-weight: 600; }
.sys-card .count { display: block; font-size: 11px; font-weight: 500; opacity: .7; margin-top: 3px; }
.sys-card .see {
  align-self: flex-end; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(0,0,0,.18); padding: 4px 9px; border-radius: 20px;
}
.lv0 { --lvl: var(--lvl0); } .lv1 { --lvl: var(--lvl1); } .lv2 { --lvl: var(--lvl2); }
.lv3 { --lvl: var(--lvl3); } .lv4 { --lvl: var(--lvl4); } .lv5 { --lvl: var(--lvl5); }

dialog.sys-dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px);
  padding: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); color: var(--fg);
}
dialog.sys-dialog::backdrop { background: rgba(0,0,0,.7); }
.sys-dialog .dlg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.sys-dialog .dlg-head h3 { font-size: 20px; display: flex; align-items: center; }
.sys-dialog .dlg-level { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--lvl); margin-right: 10px; flex: none; }
.dlg-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg);
  cursor: pointer; font-size: 18px; line-height: 1;
}
.dlg-body { padding: 8px 20px 20px; }
.dlg-body .back { font-size: 12px; color: var(--dim); margin: 10px 0 6px; }
.item-list { list-style: none; margin: 0; padding: 0; }
.item-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.item-list li:last-child { border-bottom: 0; }
.item-list li > span:first-child { flex: 1; min-width: 0; }
.item-list .when { font-size: 12px; color: var(--dim); white-space: nowrap; }
.status {
  flex: none; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 20px;
  border: 1px solid currentColor;
}
.status.done { color: var(--ok); }
.status.wip { color: var(--wip); }
.status.todo { color: var(--todo); }
.sys-details { display: none; }

.timeline-section { padding-block: 50px 70px; }
.timeline-section .lead { color: var(--muted); max-width: 70ch; margin: 10px 0 24px; font-size: 14px; }
.gantt-scroll {
  overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #0c0c0e;
  scrollbar-color: #3a3a3a transparent;
}
.gantt {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(150px, 1fr));
  min-width: calc(var(--cols) * 150px); position: relative; padding-bottom: 10px;
}
.g-head {
  background: #262628; padding: 12px 8px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.25;
  border-left: 1px solid rgba(255,255,255,.07);
}
.g-head:first-child { border-left: 0; }
.g-head small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.g-head.now { background: #303033; }
.g-cell { border-left: 1px solid rgba(255,255,255,.07); min-height: 30px; }
.g-cell.first { border-left: 0; }
.g-cell.now { background: rgba(255, 255, 255, .025); }
.g-group { align-self: end; z-index: 1; padding: 14px 0 2px; pointer-events: none; }
.g-group span {
  position: sticky; left: 12px; display: inline-flex; align-items: center; gap: 8px;
  padding-left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.g-group i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.g-bar {
  align-self: center; margin: 0 6px; height: 20px; border-radius: 999px;
  background: var(--c); color: var(--t, #0a0a0b); font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; padding: 0 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1;
}

/* ---------- News list ---------- */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; padding-block: 10px 80px; }
.post-list { display: grid; gap: 34px; }
.post { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 26px; align-items: start; }
.post .media { aspect-ratio: 16 / 9; border-radius: 12px; }
.post time { font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.post h2 { font-size: 22px; margin: 6px 0 10px; }
.post p { color: var(--muted); font-size: 14px; }
.post p + p { margin-top: 10px; }
.side-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 12px; align-self: start; }
.side-box h3 { font-size: 16px; }
.side-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-box li a { color: var(--muted); font-size: 14px; }
.side-box li a:hover { color: var(--fg); }

/* ---------- Downloads ---------- */
.dl-section { padding-block: 20px 50px; }
.dl-section h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 18px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dl-grid.vertical { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dl-card .media { border-radius: 0; aspect-ratio: 16 / 9; }
.dl-grid.vertical .dl-card .media { aspect-ratio: 4 / 5; }
.dl-card .dl-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.dl-card h3 { font-size: 15px; }
.dl-card small { display: block; font-size: 11px; color: var(--dim); }
.dl-card .btn { padding: 8px 16px; font-size: 12px; flex: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #121214; color: var(--fg); font: 14px var(--font);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-msg { display: block; font-size: 13px; color: var(--muted); min-height: 1.2em; }

/* Cards (support rewards, jobs, press kit) */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.info-card h3 { font-size: 18px; }
.info-card p, .info-card li { color: var(--muted); font-size: 14px; }
.info-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.tag-chip { justify-self: start; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: #050506; padding-block: 64px calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.25fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
.foot-logo img { width: 140px; }
.foot-grid h4 { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid li a { font-size: 13px; color: var(--muted); transition: color .2s; }
.foot-grid li a:hover { color: var(--accent); }
.news-form p { font-size: 13px; color: var(--fg); margin-bottom: 12px; }
.news-form label { display: block; font-size: 13px; margin-bottom: 6px; }
.news-form input {
  width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #121214; color: var(--fg); font: 13px var(--font);
}
.news-form input::placeholder { color: var(--dim); }
.news-form .btn { padding: 9px 22px; font-size: 13px; margin-top: 12px; }
.news-form .fine { font-size: 11px; color: var(--dim); margin-top: 12px; }
.news-form .fine a { text-decoration: underline; color: var(--muted); }
.news-form output { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 1em; }
.copyright { margin-top: 48px; font-size: 12px; color: var(--dim); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--panel-2); color: var(--fg); border: 1px solid var(--line);
  padding: 12px 20px; border-radius: 10px; font-size: 13px; box-shadow: 0 16px 40px rgba(0,0,0,.6);
  transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 0 12px; }
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid.vertical { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: auto;
    flex-direction: column; background: rgba(10,10,11,.97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 16px var(--gutter-l);
    display: none;
  }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a.active::after { display: none; }
  .btn-contact { display: none; }
  .news-card { width: calc((100% - 18px) / 2.2); }
  .work-card { width: 82%; }
  .feature, .feature.flip, .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature.flip .media { order: 0; }
  .faq > .wrap { grid-template-columns: minmax(0, 1fr); }
  .faq > .wrap > h2, .faq > .wrap > .faq-list, .faq > .wrap > .more { grid-column: 1; grid-row: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-logo { grid-column: 1 / -1; }
  .news-form { grid-column: 1 / -1; }
  .support-box .art { inset: 0; opacity: .45; }
  .support-box::before { background: linear-gradient(90deg, rgba(20,20,22,.95), rgba(20,20,22,.7)); }
  .promo-pair { grid-template-columns: minmax(0, 1fr); }
  .promo-pair .img-band .wrap, .promo-pair .img-band + .img-band .wrap { padding-left: var(--gutter-l); }
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .card-grid, .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  :root { --head-h: 64px; }
  .brand img { height: 42px; }
  .hero { height: 640px; }
  .hero-actions .btn { min-width: 140px; padding: 13px 24px; }
  .news-card { width: 80%; }
  .about .cols, .figure-row, .post, .form-grid, .card-grid, .dl-grid, .explore-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-grid.vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .hero-content { animation: none; }
  * { transition: none !important; }
}
