:root {
  --bg: #050507;
  --bg-2: #0a0a0e;
  --panel: #101015;
  --text: #f7f7f9;
  --muted: #9a9aa5;
  --line: rgba(255,255,255,.13);
  --line-strong: rgba(255,255,255,.24);
  --cyan: #08c8f4;
  --violet: #7957ff;
  --pink: #f407b7;
  --gradient: #f1f1f3;
  --max: 1500px;
  --radius: 14px;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; touch-action: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { background: rgba(255,255,255,.86); color: #08080a; }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; }
.section--compact { padding: 78px 0; }
.section--flush-top { padding-top: 0; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { font-size: clamp(4rem, 10vw, 10rem); line-height: .82; }
h2 { margin-bottom: 0; font-size: clamp(2.6rem, 5.5vw, 6rem); line-height: .9; }
h3 { font-size: clamp(1.45rem, 2.2vw, 2.25rem); line-height: 1; }
.lede { max-width: 760px; color: #d1d1d7; font-size: clamp(1.1rem, 1.75vw, 1.42rem); }
.muted { color: var(--muted); }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header);
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(3,3,5,.82), rgba(3,3,5,.22), transparent);
}
.site-header.scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,7,.84);
  backdrop-filter: blur(18px);
}
.site-header.scrolled::before { opacity: 0; }
.nav-shell { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; width: 134px; height: 58px; overflow: hidden; }
.brand img { width: 134px; height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 38px); }
.nav-links a {
  position: relative;
  color: rgba(255,255,255,.76);
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -12px;
  height: 2px;
  background: rgba(255,255,255,.9);
  transition: right .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-discord {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  align-items: center;
  justify-content: center;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: .2s ease;
}
.menu-toggle::before { transform: translateY(-5px); }
.menu-toggle::after { transform: translateY(5px); }
.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::before { transform: rotate(45deg); }
.menu-open .menu-toggle::after { transform: rotate(-45deg); }
.mobile-nav { display: none; }

/* Home hero */
.home-hero {
  position: relative;
  min-height: min(840px, 92svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #070709;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.home-hero--ui::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.52), transparent 82%);
  opacity: .35;
}
.home-hero-ui {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: clamp(54px, 8vw, 130px);
  align-items: center;
  padding-top: calc(var(--header) + 70px);
  padding-bottom: 88px;
}
.home-hero-copy { max-width: 820px; }
.home-hero-kicker {
  margin: 0 0 22px;
  color: #b4b4bd;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.home-hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.8rem, 7.2vw, 8rem);
  line-height: .9;
  letter-spacing: -.065em;
}
.home-hero-lede {
  margin: 30px 0 0;
  color: #b8b8c1;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}
.home-hero-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: #f4f4f6;
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .18s ease, border-color .18s ease;
}
.home-hero-button:hover {
  border-color: rgba(255,255,255,.34);
  background: rgba(255,255,255,.055);
}
.home-hero-button--primary {
  border-color: #f2f2f3;
  background: #f2f2f3;
  color: #09090b;
}
.home-hero-button--primary:hover {
  border-color: #fff;
  background: #fff;
}
.home-product-panel {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: #0d0d11;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.home-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 25px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.home-product-label {
  display: block;
  margin-bottom: 8px;
  color: #b9b9c2;
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.home-product-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.home-product-platform {
  padding-top: 3px;
  color: #868690;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.home-product-list span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 30px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #d3d3d9;
  font-size: .84rem;
  font-weight: 700;
}
.home-product-list span:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
.home-product-link {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 30px;
  color: #f3f3f5;
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .18s ease;
}
.home-product-link:hover { background: rgba(255,255,255,.04); }

/* Page heroes */
.page-hero {
  position: relative;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.page-hero--plain { min-height: 53svh; background: #070709; }
.page-hero-media { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, var(--bg), rgba(5,5,7,.12) 45%, rgba(0,0,0,.24)), linear-gradient(90deg, rgba(0,0,0,.55), transparent 60%); }
.page-hero-content { width: 100%; padding: calc(var(--header) + 40px) 0 70px; }
.page-title { margin: 0; }
.page-sub { max-width: 630px; margin: 26px 0 0; color: #d1d1d8; font-size: clamp(1rem, 1.7vw, 1.32rem); }

/* Section labels */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.text-link { color: #d5d5db; font-size: .73rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.text-link:hover { color: white; }

/* Home categories */
.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.feature-card {
  position: relative;
  min-height: 500px;
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  isolation: isolate;
}
.feature-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .75s cubic-bezier(.2,.75,.2,1); }
.feature-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3,3,5,.94), rgba(3,3,5,.05) 66%); }
.feature-card:hover img { transform: scale(1.045); }
.feature-card-content { position: absolute; inset: auto 27px 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.feature-card h3 { margin: 0; font-size: clamp(2rem, 3vw, 3.5rem); }
.feature-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 1.1rem; }
.feature-card--project { background: white; }
.feature-card--project img { object-fit: contain; padding: 4%; }
.feature-card--project::after { background: linear-gradient(0deg, rgba(2,2,4,.8), transparent 54%); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card { display: flex; flex-direction: column; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.news-card-media,
.news-featured-media,
.news-article-media {
  position: relative;
  overflow: hidden;
  background: var(--panel);
}
.news-card-media { aspect-ratio: 16/9; margin-bottom: 18px; border-radius: 12px; }
.news-card-media img,
.news-featured-media img,
.news-article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.news-card-media.is-contain,
.news-featured-media.is-contain,
.news-article-media.is-contain { background: #09090d; }
.news-card-media.is-contain img,
.news-featured-media.is-contain img,
.news-article-media.is-contain img { object-fit: contain; padding: 5%; }
.news-card:hover img,
.news-featured:hover img,
.news-article-card:hover img { transform: scale(1.025); }
.news-card-meta { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 12px; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.news-card-meta span { color: #d8d8df; }
.news-card h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 2rem); }
.news-summary { max-width: 48ch; margin: 12px 0 0; color: var(--muted); font-size: .94rem; }
.news-read { display: inline-block; width: max-content; margin-top: 20px; color: #ededf2; font-size: .69rem; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.news-card .news-read { margin-top: auto; padding-top: 20px; }

.news-hub-intro { display: grid; grid-template-columns: .7fr 1.3fr; gap: 35px; align-items: end; margin-bottom: 36px; }
.news-hub-intro > p:last-child { max-width: 700px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.3rem); }
.news-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  min-height: 550px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.news-featured-media { min-height: 100%; }
.news-featured-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(30px, 4vw, 56px); }
.news-featured-copy h2 { font-size: clamp(2.7rem, 5vw, 5.5rem); }
.news-featured-copy p { max-width: 50ch; margin: 22px 0 0; color: var(--muted); }
.news-article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.news-article-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.news-article-media { aspect-ratio: 16/9; }
.news-article-copy { padding: 28px; }
.news-article-copy h3 { margin: 0; font-size: clamp(1.7rem, 2.8vw, 2.7rem); }
.news-article-copy p { margin: 16px 0 0; color: var(--muted); }

/* Individual news articles */
.article-hero { padding: calc(var(--header) + 85px) 0 54px; }
.article-kicker { display: flex; gap: 18px; margin-bottom: 22px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.article-kicker span:first-child { color: #e6e6ec; }
.article-title { max-width: 1200px; margin: 0; font-size: clamp(3.4rem, 8vw, 8.5rem); line-height: .91; }
.article-deck { max-width: 800px; margin: 30px 0 0; color: #c8c8d0; font-size: clamp(1.1rem, 1.9vw, 1.5rem); }
.article-hero-image { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.article-hero-image img { width: 100%; max-height: 780px; object-fit: cover; }
.article-body { display: grid; grid-template-columns: minmax(170px, .35fr) minmax(0, 1fr); gap: clamp(35px, 7vw, 120px); padding: 85px 0 110px; }
.article-side { color: var(--muted); font-size: .75rem; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; }
.article-side a { display: block; width: max-content; margin-top: 16px; color: white; }
.article-copy { max-width: 820px; }
.article-copy p { margin: 0 0 24px; color: #c9c9d1; font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.75; }
.article-copy h2 { margin: 58px 0 20px; font-size: clamp(2.2rem, 4vw, 4rem); }
.article-photo { margin: 48px 0; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.article-photo img { width: 100%; max-height: 620px; object-fit: cover; }
.article-photo--contain { padding: clamp(24px, 5vw, 70px); background: #09090d; }
.article-photo--contain img { max-height: 420px; object-fit: contain; }
.article-caption { margin: 12px 0 0; color: #747480; font-size: .72rem; }
.article-back { display: inline-flex; margin-top: 30px; color: #e8e8ed; font-size: .7rem; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }

/* Projects */
.project-showcase { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); min-height: 620px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.project-visual { display: grid; place-items: center; padding: 3%; background: #fff; }
.project-visual img { width: 100%; max-height: 650px; object-fit: contain; }
.project-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 45px; color: var(--text); background: var(--panel); }
.project-copy h2 { font-size: clamp(2.8rem, 5vw, 5.4rem); }
.project-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; }
.tag { display: inline-flex; align-items: center; min-height: 33px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; color: #c7c7cf; font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.project-small { min-height: 330px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; justify-content: space-between; }
.project-number { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* About / contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 8vw, 130px); align-items: start; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.value-card { min-height: 275px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.value-card strong { display: block; margin-bottom: 17px; font-size: 1.15rem; }
.value-card span { color: var(--muted); }
.discord-panel { position: relative; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden; padding: 48px; border: 1px solid var(--line); border-radius: 14px; background: #0c0c10; }
.discord-panel::after { display: none; }
.discord-panel > * { position: relative; z-index: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border: 1px solid var(--line); border-radius: 8px; color: white; background: rgba(255,255,255,.045); font-size: .72rem; font-weight: 840; letter-spacing: .11em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); background: rgba(255,255,255,.09); }
.button--gradient { border: 1px solid rgba(255,255,255,.92); background: #f1f1f3; color: #08080a; }
.button--gradient:hover { background: #ffffff; color: #08080a; }

/* Footer */
.site-footer { padding: 60px 0 26px; border-top: 1px solid var(--line); background: #030304; }
.footer-main { display: grid; grid-template-columns: 1.55fr repeat(4, 1fr); gap: 42px; }
.footer-brand img { width: 180px; max-height: 78px; object-fit: contain; object-position: left center; margin-bottom: 21px; }
.footer-brand p { max-width: 390px; color: var(--muted); }
.footer-col h4 { margin: 0 0 18px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-col a { display: block; width: max-content; margin: 9px 0; color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 50px; padding-top: 21px; border-top: 1px solid var(--line); color: #73737e; font-size: .72rem; }


/* Admin */
.admin-page { min-height: 100svh; background: #f1f1f3; color: #15151a; padding: 42px 0 90px; }
.admin-shell { width: min(calc(100% - 34px), 1100px); margin: auto; }
.admin-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 28px; }
.admin-head h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.7rem); }
.admin-note { padding: 18px; border-radius: 12px; background: #fff7d9; border: 1px solid #ead68a; }
.admin-list { display: grid; gap: 15px; margin: 24px 0; }
.admin-card { padding: 20px; border: 1px solid #d8d8dd; border-radius: 14px; background: white; }
.admin-grid { display: grid; grid-template-columns: 160px 1fr; gap: 13px; align-items: center; }
.admin-grid label { font-weight: 700; }
.admin-grid input, .admin-grid textarea { width: 100%; padding: 11px 12px; border: 1px solid #c9c9d0; border-radius: 8px; background: white; color: #15151a; }
.admin-grid textarea { min-height: 90px; resize: vertical; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 17px; }
.admin-button { min-height: 43px; padding: 0 15px; border: 0; border-radius: 999px; background: #111116; color: white; cursor: pointer; font-weight: 750; }
.admin-button--danger { background: #b42332; }

.reveal,
.reveal.visible {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 1000px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .nav-links, .nav-discord { display: none; }
  .menu-toggle { position: relative; display: flex; }
  .mobile-nav {
    position: fixed;
    z-index: 99;
    inset: var(--header) 0 0;
    height: calc(100dvh - var(--header));
    min-height: calc(100svh - var(--header));
    padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
    background: #050507;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .menu-open .site-header {
    background: #050507;
    border-bottom: 1px solid var(--line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .menu-open .site-header::before { opacity: 0; }
  .menu-open .mobile-nav { display: flex; flex-direction: column; }
  .mobile-nav a { padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: 1.55rem; font-weight: 770; letter-spacing: -.035em; }
  .mobile-nav .mobile-discord { margin-top: 24px; padding: 14px; border: 1px solid rgba(255,255,255,.85); border-radius: 8px; text-align: center; background: #f1f1f3; color:#08080a; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
  .feature-card { grid-column: span 6; }
  .feature-card:last-child { grid-column: span 12; min-height: 430px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:last-child { grid-column: span 2; }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-media { min-height: 430px; }
  .article-body { grid-template-columns: 1fr; }
  .article-side { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
  .article-side a { margin-top: 0; }
  .project-showcase { grid-template-columns: 1fr; }
  .project-copy { min-height: 390px; }
  .article-row { grid-template-columns: 110px 1fr 38px; }
  .article-row p { display: none; }
  .footer-main { grid-template-columns: 1.35fr repeat(2, 1fr); }
  .footer-col:nth-child(4), .footer-col:nth-child(5) { grid-column: auto; }
}

@media (max-width: 680px) {
  :root { --header: 69px; }
  .section { padding: 62px 0; }
  .section--compact { padding: 48px 0; }
  .brand { width: 118px; height: 52px; }
  .brand img { width: 118px; }
  .home-hero { min-height: 0; }
  .home-hero-ui {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: calc(var(--header) + 58px);
    padding-bottom: 62px;
  }
  .home-product-panel { max-width: none; justify-self: stretch; }
  .scroll-mark { display: none; }
  .home-hero-copy h1 { font-size: clamp(3.25rem, 15vw, 5rem); }
  .home-hero-lede { margin-top: 22px; }
  .home-hero-actions { margin-top: 30px; }
  .home-product-head { padding: 24px 22px 21px; }
  .home-product-list span { min-height: 58px; padding: 0 22px; }
  .home-product-link { padding: 0 22px; }
  .page-hero { min-height: 62svh; }
  .page-hero--plain { min-height: 44svh; }
  .page-hero-content { padding-bottom: 45px; }
  .section-head { align-items: flex-start; flex-direction: column; margin-bottom: 27px; }
  .feature-grid { gap: 10px; }
  .feature-card, .feature-card:last-child { grid-column: span 12; min-height: 310px; }
  .feature-card-content { inset: auto 19px 19px; }
  .news-grid { grid-template-columns: 1fr; gap: 28px; }
  .news-card:last-child { grid-column: auto; }
  .news-hub-intro { grid-template-columns: 1fr; gap: 14px; }
  .news-featured { min-height: 0; }
  .news-featured-media { min-height: 260px; }
  .news-featured-copy { padding: 28px; }
  .news-article-grid { grid-template-columns: 1fr; }
  .article-hero { padding-top: calc(var(--header) + 55px); }
  .article-hero-image { width: min(calc(100% - 32px), var(--max)); }
  .article-body { padding: 60px 0 80px; }
  .project-copy { min-height: 345px; padding: 28px; }
  .project-list { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .value-grid { grid-template-columns: 1fr; }
  .discord-panel { min-height: 430px; padding: 30px; }
  .article-row { grid-template-columns: 1fr 32px; gap: 10px 18px; }
  .article-row time { grid-column: 1; }
  .article-row h3 { grid-column: 1; }
  .article-row .arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 35px 25px; }
  .footer-brand { grid-column: span 2; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* V8: Static navigation — visible even when JavaScript is unavailable. */
.site-header {
  z-index: 1000;
  background: rgba(5,5,7,.82);
  border-bottom: 1px solid rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.site-header::before { display: none; }
.mobile-menu { display: none; }
.mobile-menu > summary { list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }

@media (max-width: 1000px) {
  .mobile-menu { display: block; }
  .mobile-menu .menu-toggle { position: relative; display: flex; cursor: pointer; }
  .mobile-menu[open] .menu-toggle span { opacity: 0; }
  .mobile-menu[open] .menu-toggle::before { transform: rotate(45deg); }
  .mobile-menu[open] .menu-toggle::after { transform: rotate(-45deg); }
  .mobile-menu .mobile-nav {
    display: none;
    position: fixed;
    z-index: 999;
    inset: var(--header) 0 0;
    width: 100%;
    height: calc(100dvh - var(--header));
    min-height: calc(100svh - var(--header));
    padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
    background: #050507;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu[open] .mobile-nav { display: flex; flex-direction: column; }
  .mobile-menu[open]::before {
    content: "";
    position: fixed;
    z-index: 998;
    inset: 0;
    background: #050507;
  }
  .mobile-menu[open] .menu-toggle { z-index: 1001; }
  body:has(.mobile-menu[open]) { overflow: hidden; touch-action: none; }
}


/* Dynamic article content */
.article-loading { min-height: 60vh; padding-top: calc(var(--header) + 110px); color: var(--muted); }
.article-hero-image--contain { padding: clamp(24px, 5vw, 70px); background: #09090d; }
.article-hero-image--contain img { max-height: 540px; object-fit: contain !important; }
.article-paragraph { white-space: pre-line; }
.article-quote { margin: 42px 0; padding: 10px 0 10px 28px; border-left: 2px solid #a753ff; color: #f0f0f5; font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.45; }
.article-divider { margin: 55px 0; border: 0; border-top: 1px solid var(--line); }

/* CMS-driven sections */
.current-showcase{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr);gap:clamp(28px,5vw,70px);align-items:center;padding:clamp(24px,4vw,48px);border:1px solid rgba(255,255,255,.1);border-radius:14px;background:#0c0c10}.current-visual{min-height:260px;overflow:hidden;border-radius:10px;background:#0a0a0d}.current-visual img{display:block;width:100%;height:100%;min-height:260px;max-height:480px;object-fit:cover}.current-visual.is-contain img{object-fit:contain;padding:22px}.current-copy h2{margin:.35rem 0 1rem;font-size:clamp(2rem,4vw,4rem);line-height:1}.project-visual.is-contain img,.news-card-media.is-contain img,.news-featured-media.is-contain img,.news-article-media.is-contain img{object-fit:contain;background:#fff}.form-panel{padding:clamp(24px,5vw,60px);border:1px solid rgba(255,255,255,.1);border-radius:14px;background:#0c0c10}.form-panel h2{margin-top:0}.form-panel iframe{width:100%;min-height:720px;border:0;border-radius:18px;background:#fff}.project-small[href]{color:inherit;text-decoration:none}.project-small[href]:hover{background:rgba(255,255,255,.035)}
@media(max-width:820px){.current-showcase{grid-template-columns:1fr}.current-visual{min-height:200px}.current-visual img{min-height:200px}}

/* V21: safer card heading sizes for wide and ultrawide displays */
.feature-card h3 {
  font-size: clamp(1.65rem, 2.15vw, 2.75rem);
  line-height: .98;
  overflow-wrap: anywhere;
}

.news-card h3 {
  font-size: clamp(1.2rem, 1.55vw, 1.7rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.news-featured-copy,
.news-article-copy,
.project-copy,
.current-copy {
  min-width: 0;
}

.news-featured-copy h2 {
  margin: 0;
  font-size: clamp(2.15rem, 3.25vw, 4.15rem);
  line-height: .94;
  overflow-wrap: anywhere;
}

.news-article-copy h3 {
  font-size: clamp(1.4rem, 1.9vw, 2.15rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.project-copy h2 {
  font-size: clamp(2.15rem, 3.25vw, 4.1rem);
  line-height: .95;
  overflow-wrap: anywhere;
}

.current-copy h2 {
  font-size: clamp(1.8rem, 3vw, 3.25rem);
  overflow-wrap: anywhere;
}

.project-small h3,
.value-card strong {
  overflow-wrap: anywhere;
}

@media (min-width: 1500px) {
  .news-featured-copy h2,
  .project-copy h2 {
    font-size: clamp(2.15rem, 2.7vw, 3.75rem);
  }

  .news-article-copy h3 {
    font-size: clamp(1.4rem, 1.55vw, 2rem);
  }
}


/* Homepage next race */
.next-race {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
  padding: clamp(30px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c0c10;
}
.next-race-copy { min-width: 0; }
.next-race-copy h2 {
  max-width: 760px;
  margin: .35rem 0 clamp(28px, 4vw, 46px);
  font-size: clamp(2.2rem, 4.5vw, 5.2rem);
  line-height: .94;
  overflow-wrap: anywhere;
}
.next-race-facts { margin: 0; }
.next-race-facts > div {
  display: grid;
  grid-template-columns: minmax(70px, .45fr) minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.next-race-facts > div:first-child { border-top: 1px solid var(--line); }
.next-race-facts dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.next-race-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: clamp(.98rem, 1.3vw, 1.18rem);
  font-weight: 650;
  overflow-wrap: anywhere;
}
@media (max-width: 860px) {
  .next-race { grid-template-columns: 1fr; gap: 34px; }
  .next-race-copy h2 { font-size: clamp(2rem, 10vw, 4rem); }
}

/* V23: commercial product layer + global polish */
:root {
  --panel-2: #0b0c11;
  --panel-3: #0e1016;
  --line-soft: rgba(255,255,255,.085);
  --shadow-soft: 0 28px 90px rgba(0,0,0,.34);
}

:focus-visible {
  outline: 2px solid rgba(71,178,255,.95);
  outline-offset: 4px;
}

.site-header {
  box-shadow: 0 1px 0 rgba(255,255,255,.015);
}

.nav-links { gap: clamp(15px, 1.75vw, 32px); }
.nav-gridcue {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}
.nav-gridcue small {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(132,91,255,.5);
  border-radius: 5px;
  background: rgba(255,255,255,.045);
  color: #ded5ff;
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.nav-gridcue.active small,
.nav-gridcue:hover small {
  border-color: rgba(255,255,255,.55);
  color: white;
}

.feature-card.is-contain { background: #f4f4f6; }
.feature-card.is-contain img {
  object-fit: contain !important;
  padding: 4%;
}
.feature-card.is-contain::after {
  background: linear-gradient(0deg, rgba(2,2,4,.82), rgba(2,2,4,.04) 58%);
}

.button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}
.button--quiet {
  background: rgba(255,255,255,.025);
}
.button--quiet:hover {
  border-color: var(--line-strong);
}

.section--product {
  padding-top: 40px;
  padding-bottom: 112px;
}
.gridcue-home-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px,.78fr) minmax(0,1.22fr);
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #0b0c10;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.gridcue-home-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
}
.gridcue-home-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px,5vw,72px);
}
.product-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 9px;
  margin-bottom: 22px;
  color: #b7b7c4;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.product-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ff0bc;
  box-shadow: none;
}
.gridcue-home-logo {
  width: min(380px, 85%);
  margin-bottom: 30px;
  border-radius: 12px;
}
.gridcue-home-copy h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.8rem,5vw,5.4rem);
  line-height: .91;
}
.gridcue-home-copy > p {
  max-width: 570px;
  margin: 25px 0 0;
  color: #b8bbc7;
  font-size: clamp(1rem,1.4vw,1.2rem);
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.product-meta span {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: #989ba7;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.gridcue-home-visual {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 70px 0 70px 28px;
}
.gridcue-home-glow {
  display: none;
  position: absolute;
  width: 65%;
  aspect-ratio: 1;
  right: 5%;
  top: 14%;
  z-index: 0;
  border-radius: 50%;
  background: transparent;
  filter: blur(100px);
  opacity: .32;
}
.app-window {
  position: relative;
  z-index: 2;
  width: min(930px, 108%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px 0 0 10px;
  background: #07090e;
  box-shadow: 0 40px 110px rgba(0,0,0,.58), 0 0 0 1px rgba(121,87,255,.05);
  transform: none;
  transform-origin: center right;
  transition: transform .45s cubic-bezier(.2,.75,.2,1), border-color .25s ease;
}
.gridcue-home-visual:hover .app-window {
  transform: translateX(-4px);
  border-color: rgba(255,255,255,.28);
}
.app-window-bar {
  height: 37px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #8b8e9b;
  font-size: .66rem;
}
.app-window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ea1ab;
}
.app-window-bar span { color: #d7d9e1; font-weight: 750; }
.app-window-bar b { margin-left: auto; color: #60636d; font-weight: 650; }
.app-window img { width: 100%; }

@media (max-width: 1050px) {
  .gridcue-home-card { grid-template-columns: 1fr; min-height: 0; }
  .gridcue-home-copy { padding-bottom: 24px; }
  .gridcue-home-visual { padding: 25px 0 55px 36px; }
  .app-window { width: 102%; }
}

@media (max-width: 680px) {
  .section--product { padding-top: 8px; padding-bottom: 72px; }
  .gridcue-home-card { border-radius: 12px; }
  .gridcue-home-copy { padding: 30px 24px 14px; }
  .gridcue-home-logo { width: min(290px,92%); margin-bottom: 22px; }
  .gridcue-home-copy h2 { font-size: clamp(2.55rem,13vw,4rem); }
  .gridcue-home-visual { padding: 28px 0 35px 20px; }
  .app-window { width: 110%; border-radius: 13px 0 0 13px; transform: none; }
  .gridcue-home-visual:hover .app-window { transform: none; }
}

@media (max-width: 1000px) {
  .mobile-nav .nav-gridcue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .mobile-nav .nav-gridcue small {
    flex: 0 0 auto;
    min-width: 42px;
    height: 22px;
    font-size: .52rem;
  }
}


/* V24: restrained product styling + legal pages */
.footer-col a:focus-visible,
.nav-links a:focus-visible,
.mobile-nav a:focus-visible { border-radius: 4px; }

.legal-page {
  min-height: 70svh;
  padding: calc(var(--header) + 72px) 0 110px;
  background: #070709;
}
.legal-shell { width: min(100%, 900px); }
.legal-head {
  padding-bottom: 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
}
.legal-head h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .92;
}
.legal-updated { margin: 18px 0 0; color: var(--muted); font-size: .82rem; }
.legal-intro { max-width: 760px; margin: 24px 0 0; color: #c7c8cf; font-size: 1.08rem; line-height: 1.7; }
.legal-content { display: grid; gap: 34px; }
.legal-content section { padding-bottom: 34px; border-bottom: 1px solid var(--line-soft); }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { margin: 0 0 15px; font-size: clamp(1.45rem, 2.3vw, 2.1rem); line-height: 1.05; letter-spacing: -.03em; }
.legal-content p, .legal-content li { color: #aeb0ba; line-height: 1.72; }
.legal-content p { margin: 0 0 13px; }
.legal-content ul { margin: 12px 0 0; padding-left: 20px; }
.legal-content a { color: #f3f3f5; text-decoration: underline; text-underline-offset: 3px; }
.legal-callout {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0c10;
  color: #c7c9d1;
}

@media (max-width: 680px) {
  .legal-page { padding-top: calc(var(--header) + 44px); padding-bottom: 72px; }
  .legal-head { margin-bottom: 32px; padding-bottom: 32px; }
}
