/* SentinelGrid Studios. Black and minimal, like the cover art; the tilted tile
   is the Roblox nod, the S is the SentinelGrid mark, sage ties it to the parent
   brand. Russo One is served from here, not Google, so no player's IP goes to a
   third party (same reason Rally relays its fonts). */
@font-face {
  font-family: "Russo One";
  src: url("/assets/RussoOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #060707;
  --bg-2: #0d0f0e;
  --panel: #121514;
  --line: #222826;
  --fg: #f4f4f2;
  --muted: #9aa19d;
  --sage: #7ea894;
  --sage-hi: #a6cdb9;
  --bad: #e7877a;
  --display: "Russo One", "Arial Black", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
a, button, summary, .tile, input, select, textarea { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { overflow-x: clip; margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sage-hi); outline-offset: 3px; border-radius: 4px; }

/* the tilted tile */
.tile { display: inline-grid; place-items: center; border: 2px solid var(--fg); border-radius: 22%; transform: rotate(12deg); flex: none; }
.tile img { transform: rotate(-12deg); }
.tile-sm { width: 34px; height: 34px; border-width: 2px; }
.tile-sm img { width: 15px; height: auto; }
.tile-xl { width: 300px; height: 300px; border-width: 5px; background: radial-gradient(circle at 50% 40%, rgba(126,168,148,.14), transparent 70%); box-shadow: 0 0 120px rgba(126,168,148,.18); }
.tile-xl img { width: 46%; height: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(6,7,7,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
/* with JS: clear over the hero, then glass with a soft edge once content
   scrolls under it, instead of a hard divider */
.motion .top { background: rgba(6,7,7,0); border-bottom-color: transparent; backdrop-filter: blur(0) saturate(100%); -webkit-backdrop-filter: blur(0) saturate(100%); transition: background .35s ease, backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease, box-shadow .35s ease; }
.motion .top.scrolled { background: rgba(10,12,11,.62); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px -12px rgba(0,0,0,.8); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-txt { font-family: var(--display); font-size: 17px; letter-spacing: .02em; color: var(--muted); }
.brand-txt b { font-weight: 400; color: var(--fg); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--fg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 400 15px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--bg); background: var(--fg); border: 2px solid var(--fg); padding: 14px 22px; border-radius: 10px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; box-shadow: 0 4px 0 var(--sage); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sage); } }
.btn:active { transform: translateY(3px) scale(.97); box-shadow: 0 1px 0 var(--sage); transition-duration: 80ms; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: 0 4px 0 var(--line); }
@media (hover: hover) { .btn-ghost:hover { box-shadow: 0 6px 0 var(--line); } }
.btn-sm { padding: 10px 14px; font-size: 13px; box-shadow: 0 3px 0 var(--sage); }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 88px 96px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 75% 45%, rgba(70,110,92,.16), transparent 70%), var(--bg); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-art { display: grid; place-items: center; gap: 28px; will-change: transform, opacity; }
.motion .tile-xl { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; }
.motion .tile-xl.held { cursor: grabbing; box-shadow: 0 0 160px rgba(126,168,148,.32), 0 30px 60px -20px rgba(0,0,0,.9); }
.tile-xl img { pointer-events: none; }
.grab-hint { display: none; margin: 0; font: 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: opacity .5s ease, transform .5s ease; }
.motion .grab-hint { display: block; }
.grab-hint.gone { opacity: 0; transform: translateY(6px); }
.hero-art .tile-xl { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: rotate(12deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-14px); } }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font: 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-hi); background: var(--bg-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-hi); box-shadow: 0 0 0 0 rgba(166,205,185,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(166,205,185,0); } 100% { box-shadow: 0 0 0 0 rgba(166,205,185,0); } }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.02em; }
h1 .w { display: inline-block; will-change: transform, opacity, filter; }
.lede { font-size: 18px; color: var(--muted); max-width: 54ch; margin: 22px 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.byline-k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.byline-v { font-family: var(--display); font-size: 17px; color: var(--fg); text-decoration: none; }
a.byline-v:hover { color: var(--sage-hi); }
.byline-sep { width: 1px; height: 14px; background: var(--line); margin: 0 6px; align-self: center; }

/* floating bricks */
.bricks i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border: 1.5px solid rgba(166,205,185,.16); border-radius: 18%; transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--r)); animation: drift 12s ease-in-out infinite; animation-delay: var(--d); }
.bricks i::after { content: ""; position: absolute; inset: 32%; border: 1.5px solid rgba(166,205,185,.16); border-radius: 50%; }
.bricks i:nth-child(1) { --x: 6%; --y: 18%; --s: 84px; --r: 18deg; --d: 0s; }
.bricks i:nth-child(2) { --x: 88%; --y: 12%; --s: 110px; --r: -20deg; --d: -3s; }
.bricks i:nth-child(3) { --x: 92%; --y: 72%; --s: 70px; --r: 15deg; --d: -6s; }
.bricks i:nth-child(4) { --x: 12%; --y: 80%; --s: 60px; --r: -12deg; --d: -2s; }
.bricks i:nth-child(5) { --x: 48%; --y: 6%; --s: 46px; --r: 24deg; --d: -5s; }
@keyframes drift { 50% { translate: 0 -18px; } }

/* sections */
.band { padding-block: 88px; border-bottom: 1px solid var(--line); }
.band-alt { background: var(--bg-2); }
.eyebrow { margin: 0 0 12px; font: 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 36px; }
.sub { color: var(--muted); max-width: 46ch; margin: -18px 0 24px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: transform .2s ease, border-color .2s ease; }
.card:hover { border-color: #34403b; }
.card { overflow: hidden; will-change: transform; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--glow, 0); background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(166,205,185,.13), transparent 60%); }
.card > * { position: relative; }
.card h3 { font-size: 20px; margin: 18px 0 8px; }
.card p { margin: 0; color: var(--muted); }
.stud { display: block; width: 30px; height: 30px; border: 2px solid var(--sage); border-radius: 50%; box-shadow: inset 0 0 0 6px var(--panel), inset 0 0 0 30px rgba(126,168,148,.25); }

.road-track { height: 4px; border-radius: 4px; background: var(--line); margin: 0 0 22px; overflow: hidden; }
.road-track span { display: block; height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--sage), var(--sage-hi)); transform-origin: left center; transform: scaleX(.375); }
.motion .road-track span { transform: scaleX(0); }
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.road li { position: relative; padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); counter-increment: step; }
.road li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 8px; border: 1.5px solid var(--line); font: 14px/1 var(--display); color: var(--muted); }
.road b { display: block; font: 400 17px/1.25 var(--display); margin-bottom: 6px; }
.road span { color: var(--muted); font-size: 14.5px; }
.road .done::before { content: "\2713"; color: var(--bg); background: var(--sage); border-color: var(--sage); }
.road .now { border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage), 0 0 40px rgba(126,168,148,.14); }
.road .now::before { color: var(--sage-hi); border-color: var(--sage); }

/* forms */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split > * { min-width: 0; }
.form { display: grid; gap: 16px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
input, select, textarea { width: 100%; font: 16px/1.4 var(--body); color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .15s ease; }
input::placeholder, textarea::placeholder { color: #5f6662; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); }
textarea { resize: vertical; }
.field.err input, .field.err select, .check.err { border-color: var(--bad); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--sage); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { margin: 0; min-height: 1.4em; font-size: 15px; color: var(--muted); }
.status.ok { color: var(--sage-hi); }
.status.bad { color: var(--bad); }
.form.sent .field, .form.sent .row, .form.sent .check, .form.sent .btn { display: none; }
.form.sent .status { font: 18px/1.4 var(--display); }
.roles { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--muted); background: var(--bg); }

/* faq */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 18px/1.35 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--sage); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); max-width: 64ch; }
.mono { font-family: var(--mono); color: var(--fg); user-select: all; }

/* footer */
.foot { padding-block: 40px 48px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.foot-brand a { color: var(--fg); }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 10px 0; }
.foot-links a:hover { color: var(--fg); }
.fine { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: #6c7370; }

@media (max-width: 900px) {
  .hero { padding-block: 56px 64px; }
  .hero-in, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; justify-items: start; }
  .tile-xl { width: 150px; height: 150px; border-width: 4px; }
  .cards { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr 1fr; }
  .band { padding-block: 64px; }
}
@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
  .top-in { height: 58px; }
  .hero { padding-block: 36px 52px; }
  .tile-xl { width: 128px; height: 128px; }
  .lede { font-size: 17px; margin: 18px 0 26px; }
  .cta .btn { flex: 1 1 100%; padding-block: 16px; }
  .byline { margin-top: 30px; }
  .band { padding-block: 56px; }
  h2 { margin-bottom: 28px; }
  .card { padding: 22px; }
  .split { gap: 28px; }
  .check { padding-block: 14px; }
  .foot-links { flex-wrap: wrap; gap: 4px 20px; }
  .brand-txt { font-size: 15px; }
  .road, .row { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .foot-in { grid-template-columns: 1fr; }
  .bricks i:nth-child(n+3) { display: none; }
}
@media (max-width: 480px) {
  .hide-sm { display: none; }
}
@media (max-width: 380px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .brand { gap: 10px; }
  .brand-txt { font-size: 14px; }
}
@media (prefers-reduced-transparency: reduce) {
  .top, .motion .top, .motion .top.scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); }
}
@media (prefers-contrast: more) {
  :root { --line: #4a524e; --muted: #c4cac6; }
  .bricks { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
