/* Identity tokens: swap this block to rebrand. */
:root {
  --bg: #0A090E; --surface: rgba(19, 18, 25, .82); --line: #25232E;
  --text: #EEEBE4; --muted: #9C98A6; --accent: #B69CFF;
  --games: #4CC9F0; --media: #F26CCB; --studio: #FFCA6C;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sheen: linear-gradient(100deg, var(--text) 38%, #CFE8FF 46%, #F3D6FF 50%, #FFE9C7 54%, var(--text) 62%);
}

/* Layout */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); }
a { color: inherit; }
main { overflow-wrap: anywhere; }
header.site, main, footer.site { max-width: 1100px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
header.site { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 300 20px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; flex-wrap: wrap; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
nav a:hover, nav a:focus-visible { color: var(--text); }
/* Thin rail type keeps its look; the tap area grows to 24px+ without moving the layout. */
.brand, nav a { padding: 8px 0; margin: -8px 0; }
.kicker a, .links a, .credits a, a.xlink { padding: 5px 0; }  /* vertical padding on inline links widens the hit box, not the line */
/* Skip link: off-screen until a keyboard lands on it */
.skip { position: absolute; left: 16px; top: -100px; z-index: 2; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--bg); font-size: 14px; text-decoration: none; }
.skip:focus { top: 16px; }
footer.site { color: var(--muted); font-size: 14px; padding-top: 56px; padding-bottom: 32px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6vw, 64px); margin: 24px 0 12px; font-weight: 200; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.4vw, 36px); }
h3 { font-size: 24px; }
section { margin: 56px 0; }
.lede { color: var(--muted); max-width: 40em; font-size: 18px; }
.kicker a { color: var(--muted); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; font-weight: 500; }
.meta { color: var(--muted); margin: 4px 0; font-size: 15px; }

/* Hero: the wordmark leads, the symbol supports */
.hero { text-align: center; padding: 72px 0 24px; }
.hero .symbol { width: clamp(44px, 7vw, 64px); height: auto; }
.hero .lede { margin: 0 auto; }
.word { font: 200 clamp(64px, 14vw, 148px)/1 var(--sans); margin: 18px 0 20px; letter-spacing: -.035em;
  background: var(--sheen); background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s ease-in-out infinite; }
@keyframes sheen { 0%, 20% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .word { animation: none; background-position: 50% 0; } }

/* Cards */
.divisions, .paths { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }  /* auto-fill: one tile stays tile-sized */
.division, .paths a, .tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.division, .paths a { padding: 22px; }
.division { border-top: 3px solid var(--line); }
.d-games { border-top-color: var(--games); } .d-media { border-top-color: var(--media); } .d-studio { border-top-color: var(--studio); }
.division h2 { font-size: 26px; margin: 0 0 8px; font-weight: 300; }
.paths h3 { margin: 0 0 6px; }
.division p, .paths p { color: var(--muted); margin: 0; font-size: 15px; }
.division:hover, .paths a:hover, .tile:hover, .division:focus-visible, .paths a:focus-visible, .tile:focus-visible { border-color: var(--accent); }
.tile { overflow: hidden; padding-bottom: 14px; }
.tile h3, .tile .meta, .tile .badges { margin-left: 16px; margin-right: 16px; }
.tile h3 { margin-top: 14px; margin-bottom: 2px; }
.tile-art { aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; overflow: hidden; }
.tile-art img, .tile-art video { width: 100%; height: 100%; object-fit: cover; }
.hero-videos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 360px)); margin: 24px 0; }
.hero-videos video { width: 100%; border-radius: 8px; }
.art-soon, .art-blank { color: var(--muted); padding: 24px; text-align: center; }
.art-soon { font: 300 20px/1.2 var(--sans); letter-spacing: .04em; }
.badges { margin: 8px 0; }
.badge { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; margin-right: 6px; color: var(--muted); }
.badge.lineage { border-color: var(--studio); color: var(--studio); }
.empty { color: var(--muted); font: 300 22px/1.3 var(--sans); }

/* Work page */
.pitch { font: 300 24px/1.35 var(--sans); margin: 8px 0 12px; color: var(--text); }
.tile-pitch { color: var(--muted); font-size: 14px; margin: 4px 16px 0; }
.blurb { max-width: 42em; font-size: 18px; }
.embed { width: 100%; height: clamp(420px, 56.25vw, 620px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 24px 0; }
.gallery picture { display: block; }
.gallery img { width: 100%; height: auto; border-radius: 8px; }  /* height: auto beats the height= attribute, which otherwise pins the natural height */
.links, .credits { list-style: none; padding-left: 0; margin: 0 0 14px; }
.links li, .credits li { margin: 0 0 4px; }
.credits span { color: var(--muted); }

/* Work page dossier: background, where it stands, what's next */
.dossier { max-width: 42em; margin: 40px 0; }
.dossier h2 { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 8px; }
.dossier p { margin: 0 0 14px; font-size: 17px; }
.dossier.status p { color: var(--text); }
.gallery.one { grid-template-columns: minmax(0, 760px); }
/* #edit mode (edit.js) */
.editable { outline: 1px dashed rgba(255, 255, 255, .25); outline-offset: 4px; border-radius: 2px; }
.editable:focus { outline: 1px solid #5cc8ff; }
.edit-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10; display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 10px; background: #15141c; border: 1px solid #2e2c3a; color: #ddd; font-size: 14px; }
.edit-bar button { font: inherit; padding: 8px 14px; border-radius: 6px; border: 0; background: #5cc8ff; color: #0a090e; cursor: pointer; }
/* Background particle stream (flow.js): faint and blurred so it reads as gossamer. */
#flow { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .4; image-rendering: pixelated; pointer-events: none; }
header.site, main, footer.site { position: relative; z-index: 1; }
/* Featured title in the game's own wordmark (JETSAM!: Anton italic, bone, hard teal offset) */
@font-face { font-family: "Anton"; src: url("/assets/site/anton.woff2") format("woff2"); font-display: swap; }
.featured h2 a:has(.wordmark) { text-decoration: none; }
.wm-jetsam { font-family: "Anton", sans-serif; font-style: italic; font-weight: 400; letter-spacing: .06em;
  color: #E8E6DF; text-shadow: .07em .07em 0 #177A9E; -webkit-text-stroke: .02em #E8E6DF; }
.feature-video { display: block; border-radius: 12px; overflow: hidden; background: #000; }
.feature-video video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* Cross-links: another title named in copy links to it, in its own wordmark where it has one */
@font-face { font-family: "VT323"; src: url("/assets/site/vt323.ttf") format("truetype"); font-display: swap; }
a.xlink { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a.xlink.wordmark { text-decoration: none; }
a.xlink:hover { text-decoration-color: currentColor; }
.wm-anamnesis { font-family: "VT323", monospace; font-size: 1.2em; line-height: 1; color: #9DFFB0; text-shadow: 0 0 8px rgba(55, 240, 82, .55); }
.wm-human-value-index { font-family: Georgia, serif; font-style: italic; font-weight: 700; color: #E8E6DF; }
.wm-human-value-index span { color: #4ADE80; }
