/* R5Rust site. Colours, type and radii are the launcher's (r5rust-launcher/src/main.rs) so the two read as one brand. */

@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0b0c0e;
  --rail: #08090b;
  --panel: #141619;
  --raised: #1f2227;
  --hover: #2c3037;
  --border: #2d3138;
  --border-soft: #1f2227;
  --text: #f3f4f6;
  --secondary: #bcc0c7;
  --muted: #80868f;
  --red: #e22c34;
  --red-hi: #f64a50;
  --red-tint: #3a1216;
  --good: #62d08e;
  --amber: #f2b44c;

  --faint: #5f646c;
  --strong: #ffffff;
  --section-panel: linear-gradient(180deg, rgba(20, 22, 25, .92), rgba(15, 16, 19, .92));
  --card: rgba(11, 12, 14, .6);
  --nav-solid: rgba(8, 9, 11, .92);
  --grunge: url("assets/img/grunge.webp");

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --r: 4px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--secondary);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* the launcher's grunge backdrop, pinned to the viewport so it never tiles (its own layer: no repaint on scroll) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--grunge) center / cover no-repeat; pointer-events: none; }
.nowrap { white-space: nowrap; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; flex: none; }
b { color: var(--text); font-weight: 600; }
code { font: 500 .88em var(--mono); color: var(--text); background: var(--raised); padding: 1px 6px; border-radius: 3px; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; }

/* type */
.h2 {
  font: 700 clamp(44px, 6.2vw, 80px)/.92 var(--display);
  text-transform: uppercase; color: var(--text); margin: 0; letter-spacing: .005em;
}
.h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--red); margin-top: 22px; }
.h3 { font: 700 26px/1.05 var(--display); text-transform: uppercase; color: var(--text); margin: 0 0 10px; letter-spacing: .01em; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red-hi); margin: 0 0 18px; }
.eyebrow--light { color: #fff; opacity: .7; }
.lead { font-size: 21px; line-height: 1.45; color: var(--text); margin: 0 0 16px; }
p { margin: 0 0 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: var(--r);
  font: 700 19px/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s var(--ease);
  white-space: nowrap; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hi); }
.btn--ghost { background: rgba(11, 12, 14, .55); color: var(--text); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(31, 34, 39, .8); }
.btn--lg { height: 54px; padding: 0 26px; font-size: 21px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 16px; gap: 8px; }
.btn--sm svg { width: 15px; height: 15px; }
.textlink { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--red); padding-bottom: 4px; margin-top: 6px; }
.textlink svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: var(--nav-solid); backdrop-filter: blur(10px); border-bottom-color: var(--border-soft); }
.nav__in { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 30px; height: auto; }
.brand__word { font: 700 27px/1 var(--display); color: var(--text); letter-spacing: .02em; }
.nav__links { display: flex; gap: 28px; margin-left: 12px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--secondary); position: relative; padding: 6px 0; transition: color .15s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-link { display: grid; place-items: center; width: 36px; height: 36px; color: var(--secondary); border-radius: var(--r); transition: color .15s, background .15s; }
.icon-link:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav__end .btn { margin-left: 8px; }
.nav__burger { display: none; width: 40px; height: 40px; background: none; border: 0; padding: 0 8px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .2s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { background: var(--rail); border-top: 1px solid var(--border-soft); padding: 8px var(--gutter) 20px; }
.nav__mobile a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border-soft); font: 700 22px/1 var(--display); text-transform: uppercase; color: var(--text); }

/* hero */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--rail); }
.hero__img {
  position: absolute; inset: 0;
  background: url("assets/img/range.webp") 62% 40% / cover no-repeat;
  animation: heroIn 1.6s var(--ease) both;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, .94) 0%, rgba(8, 9, 11, .8) 40%, rgba(8, 9, 11, .25) 72%, rgba(8, 9, 11, .05) 100%),
    linear-gradient(0deg, rgba(8, 9, 11, .95) 0%, rgba(8, 9, 11, 0) 38%),
    linear-gradient(180deg, rgba(8, 9, 11, .7) 0%, rgba(8, 9, 11, 0) 18%);
}
.hero__in { position: relative; width: 100%; padding-top: 140px; padding-bottom: 110px; }
.kicker { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); margin: 0 0 22px; }
.kicker__bar { width: 28px; height: 3px; background: var(--red); }
.hero__title {
  font: 700 clamp(52px, 8.4vw, 116px)/.86 var(--display);
  text-transform: uppercase; color: var(--text); margin: 0 0 26px; letter-spacing: -.005em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero__lede { max-width: 520px; font-size: 18px; line-height: 1.55; color: #d6d9de; margin: 0 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero__meta li + li::before { content: "/"; margin: 0 12px; color: #4a4f57; }
.hero__meta span { color: var(--secondary); text-transform: none; }
.hero__foot { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.hero__foot-in { display: flex; justify-content: space-between; align-items: center; height: 52px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero__foot-in b { color: var(--red-hi); font-weight: 600; }
.hero__foot-in a { color: var(--secondary); }
.hero__foot-in a:hover { color: var(--text); }
.hero__in > * { animation: rise .9s var(--ease) both; }
.hero__in > :nth-child(2) { animation-delay: .06s; }
.hero__in > :nth-child(3) { animation-delay: .14s; }
.hero__in > :nth-child(4) { animation-delay: .2s; }
.hero__in > :nth-child(5) { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes heroIn { from { opacity: 0; transform: scale(1.06); } }

/* ticker */
.ticker { background: var(--red); color: #fff; overflow: hidden; height: 46px; display: flex; align-items: center; }
.ticker__track { display: flex; align-items: center; gap: 36px; white-space: nowrap; animation: tick 38s linear infinite; padding-left: 36px; }
.ticker span { font: 700 20px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.ticker i { width: 9px; height: 9px; background: #fff; transform: rotate(45deg); flex: none; opacity: .85; }
@keyframes tick { to { transform: translateX(-50%); } }

/* latest build strip */
.patch {
  display: flex; align-items: center; gap: 18px; margin-top: 28px;
  padding: 16px 22px; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: var(--r);
  transition: border-color .15s, background .15s;
}
.patch:hover { background: var(--raised); border-color: var(--hover); border-left-color: var(--red-hi); }
.patch__tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red-hi); white-space: nowrap; }
.patch__ver { font: 700 22px/1 var(--display); color: var(--text); white-space: nowrap; }
.patch__text { color: var(--secondary); font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.patch__date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.patch__arrow { color: var(--muted); transition: transform .2s var(--ease), color .15s; }
.patch:hover .patch__arrow { transform: translateX(4px); color: var(--text); }

/* sections */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--panel { background: var(--section-panel); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split__body { padding-top: 34px; max-width: 520px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.head-row__note { max-width: 340px; color: var(--muted); font-size: 15px; margin: 0 0 6px; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 88px; border-top: 1px solid var(--border); }
.pillar { padding: 30px 36px 8px 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--border); }
.pillar__n { display: block; font-size: 12px; color: var(--red-hi); letter-spacing: .1em; margin-bottom: 16px; }
.pillar p { font-size: 15px; color: var(--muted); margin: 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, auto); gap: 10px; }
.shot { position: relative; display: block; padding: 0; border: 0; background: var(--raised); border-radius: var(--r); overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 9; }
.shot--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; filter: saturate(.92); }
.shot:hover img { transform: scale(1.035); filter: saturate(1.05); }
.shot::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r); pointer-events: none; transition: border-color .2s; }
.shot:hover::after { border-color: rgba(246, 74, 80, .7); }
.shot__cap {
  position: absolute; left: 12px; bottom: 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); background: rgba(8, 9, 11, .78); padding: 6px 9px; border-radius: 3px;
}

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { display: flex; gap: 20px; border-top: 1px solid var(--border); padding-top: 28px; }
.step__n { font: 700 56px/.8 var(--display); color: var(--red); flex: none; width: 58px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

/* status board */
.board { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; align-items: start; }
.board__col { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 26px 28px 24px; }
.board__h { display: flex; align-items: center; gap: 10px; font: 700 22px/1 var(--display); text-transform: uppercase; color: var(--text); margin: 0 0 18px; letter-spacing: .02em; }
.board ul { list-style: none; margin: 0; padding: 0; }
.board li { padding: 11px 0; border-top: 1px solid var(--border-soft); font-size: 15px; color: var(--secondary); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot--good { background: var(--good); box-shadow: 0 0 0 4px rgba(98, 208, 142, .14); }
.dot--amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 180, 76, .14); }
.dot--muted { background: var(--muted); box-shadow: 0 0 0 4px rgba(128, 134, 143, .14); }

/* community */
.community { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 560px; background: var(--red-tint); }
.community__img { background: url("assets/img/town.webp") 30% 50% / cover no-repeat; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.community__body { padding: clamp(56px, 8vw, 100px) var(--gutter); padding-left: clamp(24px, 4vw, 56px); align-self: center; max-width: 560px; }
.community__body .h2::after { background: #fff; }
.community__body > p { color: #e6c9cb; font-size: 17px; margin-top: 26px; }
.community__live { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff !important; }
.community__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.community .btn--ghost { background: rgba(0, 0, 0, .25); }

/* faq */
.split--faq { grid-template-columns: 1fr 1.4fr; }
.split--faq .muted { margin-top: 24px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer;
  padding: 22px 0; font-weight: 600; font-size: 17px; color: var(--text); transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--strong); }
.faq summary svg { color: var(--red-hi); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15.5px; max-width: 60ch; padding: 0 40px 22px 0; margin: 0; }

/* footer */
.footer { background: var(--rail); border-top: 1px solid var(--border-soft); padding: 56px 0 40px; }
.footer__top { display: flex; align-items: center; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border-soft); }
.footer__tag { margin: 0; color: var(--muted); font-size: 14px; }
.footer__links { margin-left: auto; display: flex; gap: 26px; }
.footer__links a { font-size: 14px; font-weight: 500; color: var(--secondary); }
.footer__links a:hover { color: var(--text); }
.footer__legal { margin: 26px 0 0; font-size: 12px; line-height: 1.7; color: var(--faint); max-width: 900px; }
.footer__legal b { color: var(--muted); font-weight: 600; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 6, 7, .94); display: grid; place-items: center; padding: 24px; animation: fade .2s both; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1600px, 100%); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: var(--r); }
.lightbox figcaption { margin-top: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lightbox__close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; background: none; border: 0; color: var(--text); font-size: 34px; line-height: 1; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot--big { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
  .shot:last-child { display: none; }
}
@media (max-width: 860px) {
  .split, .split--faq { grid-template-columns: 1fr; gap: 28px; }
  .split__body { padding-top: 0; }
  .pillars, .steps, .board { grid-template-columns: 1fr; }
  .pillars { margin-top: 56px; }
  .pillar, .pillar + .pillar { padding: 26px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--border); }
  .head-row { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
  .community { grid-template-columns: 1fr; }
  .community__img { min-height: 260px; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .community__body { padding-left: var(--gutter); }
  .footer__top { flex-wrap: wrap; gap: 18px 32px; }
  .footer__links { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 14px 24px; }
  .patch__date { display: none; }
}
@media (max-width: 560px) {
  .nav__end .icon-link { display: none; }
  .hero__shade { background: linear-gradient(0deg, rgba(8, 9, 11, .97) 0%, rgba(8, 9, 11, .82) 48%, rgba(8, 9, 11, .35) 100%); }
  .hero__img { background-position: 70% 30%; }
  .hero__cta .btn { width: 100%; }
  .hero__title .nowrap { white-space: normal; }
  .hero__meta li:first-child { display: none; }
  .hero__meta li:nth-child(2)::before { content: none; }
  .hide-sm { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .shot--big { grid-column: auto; }
  .shot:last-child { display: block; }
  .patch { flex-wrap: wrap; gap: 6px 14px; padding: 14px 16px; }
  .patch__text { flex-basis: 100%; order: 5; white-space: normal; }
  .patch__arrow { margin-left: auto; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
