:root {
  --bg: #050506;
  --panel: #0d0d10;
  --line: #1b1b20;
  --text: #dcdde1;
  --muted: #80828b;
  --silver: #c2c4ca;
  --accent: #d4a72c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
a { color: var(--silver); }
img { display: block; max-width: 100%; height: auto; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(5, 5, 6, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top nav a { margin-left: 22px; color: var(--muted); text-decoration: none; font-size: 15px; letter-spacing: .04em; }
.top nav a:hover { color: var(--text); }

/* Apps drop-down */
.top nav { display: flex; align-items: center; }
.dropdown { position: relative; margin-left: 22px; }
.dropdown summary {
  list-style: none; cursor: pointer; color: var(--muted); font-size: 15px; letter-spacing: .04em;
  display: flex; align-items: center; gap: 6px;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.dropdown[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.dropdown summary:hover, .dropdown[open] summary { color: var(--text); }
.menu {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 230px;
  padding: 8px; background: #101014; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}
.top nav .menu a { display: flex; align-items: center; gap: 12px; margin: 0; padding: 9px 10px; border-radius: 2px; color: var(--text); text-decoration: none; font-size: 15px; letter-spacing: 0; }
.top nav .menu a:hover { background: #1a1a20; }
.menu img { border-radius: 6px; }
.top nav .menu .all { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; color: var(--muted); }

/* hero */
.hero {
  min-height: 72vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(36, 36, 46, .4) 0%, rgba(5, 5, 6, 0) 68%);
}
.hero-logo { width: min(320px, 70vw); filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.18)); }
.tagline { margin: 28px 0 30px; color: var(--muted); font-size: 14px; letter-spacing: .22em; text-transform: uppercase; }

/* sections */
section, .section { padding: 72px 20px; }
.page-head { padding-bottom: 0; }
.page-head h1, .page-head .lead { max-width: 1080px; margin-left: auto; margin-right: auto; }
.page-head h1 { margin-top: 0; margin-bottom: 10px; font-size: 30px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.lead { color: var(--muted); margin-top: 0; }

/* game panels: one wide panel per game, with cut corners that echo the hexagon */
.app-grid { max-width: 1080px; margin: 0 auto; display: grid; gap: 22px; }
.app-card, .app-card::before, .app-shots {
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}
.app-card {
  position: relative; min-height: 300px;
  display: flex; gap: 24px; align-items: center; padding: 38px;
  background: var(--line); color: var(--text); text-decoration: none; transition: background-color .5s;
}
.app-card::before { content: ""; position: absolute; inset: 1px; background: var(--panel); }
.app-card:hover { background: #4a4a54; }
.app-shots {
  position: absolute; inset: 1px; left: 38%; display: flex;
  opacity: .5; filter: saturate(.55); transition: opacity .9s, filter .9s;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0), #000 55%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0), #000 55%);
}
.app-shots i { flex: 1; background: center 62% / cover no-repeat; border-left: 1px solid var(--bg); }
.app-card:hover .app-shots { opacity: .85; filter: saturate(.9); }
.app-card .app-icon, .app-text { position: relative; }
.app-text { max-width: 30em; }
.app-card h3 { margin: 6px 0 8px; font-size: 26px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2; }
.app-card p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.platform { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.more { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--silver); }
.more::after { content: ""; display: inline-block; width: 22px; height: 1px; margin-left: 10px; vertical-align: middle; background: currentColor; transition: width .5s; }
.app-card:hover .more::after { width: 44px; }
/* a game that isn't out yet: no link, its date where "View game" would be */
.app-card.soon .app-shots { opacity: .42; filter: saturate(.35) brightness(.8); }
div.app-card.soon:hover { background: var(--line); }
.app-card.no-shots { min-height: 0; }
.menu .no-icon { flex: none; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; }
.app-card.soon .more { display: block; margin-top: 18px; }
.app-card.soon:hover .app-shots { opacity: .6; filter: saturate(.6) brightness(.9); }
.release { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--silver); }
.release time { color: var(--accent); margin-left: 6px; }
.top nav .menu a em { margin-left: auto; font-style: normal; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.top nav .menu .soon-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; color: var(--muted); font-size: 15px; }
.menu .soon-item em { margin-left: auto; font-style: normal; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
h2 {
  max-width: 1080px; margin: 0 auto 28px;
  font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}

/* game card */
.game {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
  padding: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.game-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.app-icon { border-radius: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.game h1, .game h3 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2; }
.features { margin: 18px 0 0; padding-left: 20px; color: #b2b4bb; }
.features li { margin: 6px 0; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.game p { color: #b2b4bb; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.button {
  display: inline-block; padding: 13px 24px; border-radius: 2px;
  background: var(--accent); color: #1b1410; font-weight: 700; text-decoration: none;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
}
.button:hover { filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--silver); border: 1px solid #3a3a42; font-weight: 600; }
.button.ghost:hover { border-color: var(--silver); }
.link { color: var(--muted); font-size: 15px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots img { border-radius: 4px; border: 1px solid var(--line); }

/* contact + footer */
.contact { text-align: center; }
.contact h2 { text-align: center; }
.contact p { color: #b2b4bb; }
footer { padding: 32px 20px 48px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* a game's page before launch: icon, title, date and the back-cover blurb */
.soon-page { display: block; max-width: 760px; }
.soon-page .game-head { margin-bottom: 30px; }
.soon-page .platform { display: block; margin-bottom: 8px; }
.blurb { padding-top: 28px; border-top: 1px solid var(--line); }
.blurb p { margin: 0 0 18px; color: #b2b4bb; font-size: 18px; line-height: 1.75; }
.blurb .hook { color: var(--text); font-size: 20px; }
.blurb .close { margin: 26px 0 0; color: var(--text); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.soon-page.has-cover { display: grid; max-width: 1000px; grid-template-columns: 300px 1fr; column-gap: 44px; align-items: center; }
.soon-page .cover { width: 100%; height: auto; border: 1px solid var(--line); }
@media (max-width: 800px) {
  .soon-page.has-cover { display: block; }
  .soon-page .cover { max-width: 320px; margin: 0 auto 28px; }
}
.release-line { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }

@media (max-width: 800px) {
  .game { grid-template-columns: 1fr; padding: 24px; }
  .top { padding: 12px 16px; }
  .top nav a, .dropdown { margin-left: 16px; }
  .page-head h1 { font-size: 24px; }
  .app-card { min-height: 340px; padding: 24px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 16px; }
  .app-shots { left: 1px; opacity: .38; -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, 0) 78%); mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, 0) 78%); }
  .app-card h3, .game h1 { font-size: 21px; letter-spacing: .16em; }
  section { padding: 56px 16px; }
}

/* ============================================================
   Motion. Everything below is switched on by site.js, which adds
   the class "fx" to <html> unless the visitor has asked their
   device to reduce motion. Without "fx" the site is static.
   ============================================================ */

/* animated logo (built by site.js in place of the hero image) */
.logo { width: min(320px, 70vw); margin: 0 auto; perspective: 900px; }
.logo-mark {
  position: relative; width: 45.8%; aspect-ratio: 1; margin: 0 auto;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.ring {
  position: absolute; inset: 0;
  transform: translateZ(calc(var(--spread, 0) * (1.5 - var(--i)) * 14px));
  transition: transform 1.4s cubic-bezier(.2, .8, .2, 1);
}
.ring svg { display: block; width: 100%; height: 100%; overflow: visible; filter: blur(0) drop-shadow(0 0 7px rgba(255, 255, 255, .2)); }
.ring path { fill: none; stroke: #f1f2f4; stroke-width: 9.5; }
.logo-word { position: relative; aspect-ratio: 690 / 68; margin-top: 4.06%; }
.logo-word i { position: absolute; inset: 0; }
.logo-word i { background: url(/assets/anthrax-wordmark.png) center / 100% 100% no-repeat; }
.logo-sub { aspect-ratio: 690 / 36; margin-top: 3.77%; background: url(/assets/anthrax-digital.png) center / 100% 100% no-repeat; }

/* film grain over the whole page */
body::after {
  content: ""; position: fixed; inset: -120px; z-index: 40; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx body::after { animation: grain 1s steps(8) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 12% { transform: translate(-60px, 40px); } 25% { transform: translate(50px, -70px); }
  37% { transform: translate(-90px, -30px); } 50% { transform: translate(70px, 80px); } 62% { transform: translate(-40px, 100px); }
  75% { transform: translate(100px, -20px); } 87% { transform: translate(-80px, 60px); } 100% { transform: translate(0, 0); }
}

/* background canvas: drifting spores and a hex grid that shows near the pointer */
.fx-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* the edges of the page fall away into black */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, .82) 100%);
}

/* logo: it surfaces slowly out of the dark, one ring at a time */
.fx .hero:hover .logo { --spread: 1; }
.fx .ring svg { animation: ring-in 2.4s ease calc(.2s + var(--i) * .32s) both; }
.fx .ring path { stroke-dasharray: 1; animation: ring-draw 2.4s cubic-bezier(.6, 0, .2, 1) calc(.2s + var(--i) * .32s) both; }
@keyframes ring-in {
  from { opacity: 0; filter: blur(7px) drop-shadow(0 0 7px rgba(255, 255, 255, 0)); }
  to   { opacity: 1; filter: blur(0) drop-shadow(0 0 7px rgba(255, 255, 255, .2)); }
}
@keyframes ring-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* at rest: a slow breath through the rings, and now and then the light falters */
.fx .ring { animation: ring-pulse 9s ease-in-out calc(5s + var(--i) * .6s) infinite; }
@keyframes ring-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
.fx .logo { animation: falter 14s linear 7s infinite; }
@keyframes falter {
  0%, 40% { opacity: 1; } 40.3% { opacity: .5; } 40.7% { opacity: 1; } 41.5% { opacity: .68; } 41.9% { opacity: 1; }
  73% { opacity: 1; } 73.25% { opacity: .78; } 73.5%, 100% { opacity: 1; }
}
.fx .logo-word i { animation: word-in 2.2s ease 1.7s both; }
@keyframes word-in {
  0%   { opacity: 0; filter: blur(12px); }
  52%  { opacity: .85; filter: blur(2px); }
  55%  { opacity: .2; filter: blur(2px); }
  59%  { opacity: .9; filter: blur(1px); }
  62%  { opacity: .45; filter: blur(1px); }
  67%, 100% { opacity: 1; filter: blur(0); }
}
.fx .logo-sub { animation: fade-in 1.8s ease 2.9s both; }
.fx .hero .tagline { animation: fade-in 1.8s ease 3.3s both; }
.fx .hero .button { animation: fade-in 1.8s ease 3.7s both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* header logo */
.fx .brand img { transition: filter .6s; }
.fx .brand:hover img { filter: drop-shadow(0 0 8px rgba(255, 255, 255, .4)); }

/* things come up out of the dark as they scroll into view (site.js adds data-reveal, then "in") */
.fx [data-reveal] {
  opacity: 0; translate: 0 12px; filter: blur(4px);
  transition: opacity 1.5s ease, translate 1.5s cubic-bezier(.2, .7, .1, 1), filter 1.5s ease, border-color .3s, background-color .5s;
}
.fx [data-reveal].in { opacity: 1; translate: none; filter: none; }

/* a faint light follows the pointer across the cards */
.fx .game { position: relative; overflow: hidden; }
.fx .app-card::after, .fx .game::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 55%);
}
.fx .app-card:hover::after, .fx .game:hover::after { opacity: 1; }
.fx .shots img:hover { border-color: #4a4a54; }
