/* ═══════════════════════════════════════════════════════════════
   Fenris Labs — compact link board
   Everything reachable without hunting: sticky icon bar, short hero,
   one screen of art tiles + link rail.
   ─────────────────────────────────────────────────────────────── */

:root {
  --ink:       #08090b;
  --ink-2:     #0c0e12;
  --panel:     #12151b;
  --panel-2:   #171b23;
  --line:      #232935;
  --line-2:    #333b4a;

  --text:      #eceef4;
  --muted:     #97a0af;

  --gold:      #d9a441;
  --gold-soft: #f0c479;
  --accent:    var(--gold);

  --wrap:      1180px;
  --bar-h:     54px;
  --gap:       13px;
  --r:         13px;

  --ease:      cubic-bezier(.22,.68,.32,1);
  --font-d:    'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-b:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-d); margin: 0; font-weight: 600; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
/* height:auto is load-bearing — the imgs carry width/height attributes for
   layout stability, and without it those attributes fight the CSS width. */
img { display: block; max-width: 100%; height: auto; }

::selection { background: rgba(217,164,65,.3); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--gold); color: #14110a; font-weight: 600;
  padding: 9px 15px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 10px; }

/* ═══════════ sticky bar ═══════════ */
.bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center;
  background: rgba(8,9,11,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.bar.is-stuck { background: rgba(8,9,11,.92); border-bottom-color: var(--line); }

.bar__inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-inline: 20px;
  display: flex; align-items: center; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 30px; height: 30px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.07); }
.brand span {
  font-family: var(--font-d); font-weight: 700; font-size: 15.5px;
  letter-spacing: .13em; text-transform: uppercase; white-space: nowrap;
}
.brand .dim { color: var(--muted); font-weight: 500; }

.bar__icons { display: flex; align-items: center; gap: 3px; }
.bar__icons a {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  color: var(--muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.bar__icons a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.bar__icons svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.bar__kofi {
  width: auto !important; padding: 0 14px; gap: 7px;
  grid-auto-flow: column;
  background: rgba(217,164,65,.12); color: var(--gold-soft) !important;
  border: 1px solid rgba(217,164,65,.3);
  font-size: 13.5px; font-weight: 600;
  margin-left: 6px;
}
.bar__kofi:hover { background: rgba(217,164,65,.2) !important; }

/* Companions link in the sticky bar. Sits between the wordmark and the social
   icons -- it is a destination, not an "elsewhere" link, so it reads as text
   rather than joining the icon row. */
.bar__cta {
  display: inline-flex; align-items: center; height: 34px;
  padding: 0 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  color: var(--gold-soft);
  background: rgba(200,162,74,.12);
  border: 1px solid rgba(200,162,74,.32);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.bar__cta:hover {
  background: rgba(200,162,74,.22);
  border-color: rgba(200,162,74,.55);
}
/* Below the icon row it would wrap the bar onto two lines; the tile and the
   hero both still lead there. */
@media (max-width: 560px) { .bar__cta { display: none; } }

/* ═══════════ hero (short on purpose) ═══════════ */
.hero {
  position: relative;
  padding: 40px 20px 34px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(115% 130% at 50% -30%, #1a2130 0%, #0d1016 45%, var(--ink) 76%);
  border-bottom: 1px solid var(--line);
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; top: -110%; left: 50%; transform: translateX(-50%);
  width: min(620px, 120vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(159,182,216,.16), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__mark {
  width: clamp(58px, 8vw, 76px); margin: 0 auto;
  filter: drop-shadow(0 0 30px rgba(159,182,216,.35));
}
.hero h1 {
  margin: 12px 0 0;
  font-size: clamp(1.85rem, 5.4vw, 3rem);
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 20%, #b4becf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  margin: 10px auto 0; max-width: 520px;
  color: var(--muted); font-size: clamp(.88rem, 1.7vw, .98rem);
}

/* ═══════════ board ═══════════ */
.board {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: var(--gap) 20px 26px;
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr) 264px;
  align-items: start;
}

/* ── games: wide showcase on top, three capsules under it ── */
.games {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tile--lg { grid-column: 1 / -1; }

.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--ink-2);
  isolation: isolate;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--accent) 60%, #000);
}

.tile__art {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .5s var(--ease);
}
.tile:hover .tile__art { transform: scale(1.035); }

/* Big tile: gameplay screenshot with the caption laid over a scrim. */
.tile--lg .tile__art { aspect-ratio: 2.55 / 1; object-position: center 46%; }
.tile--lg::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(6,7,10,.97) 0%, rgba(6,7,10,.86) 26%, rgba(6,7,10,.34) 54%, transparent 74%);
}
.tile--lg .tile__info {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: grid; gap: 7px; padding: 16px 18px 15px;
}

/* Small tiles: the Steam capsule is designed to be seen whole, so the
   caption sits in a bar under it rather than on top of the artwork. */
/* auto + 1fr rows: the capsule keeps its exact ratio (no crop) and the bar
   absorbs the leftover height, so pills line up across all three tiles. */
.tile--sm { display: grid; grid-template-rows: auto 1fr; }
.tile--sm .tile__art { height: auto; aspect-ratio: 460 / 215; }
.tile--sm .tile__info {
  display: grid; gap: 7px; align-content: space-between;
  padding: 10px 12px 11px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.tile__name { font-family: var(--font-d); font-weight: 600; font-size: 1.34rem; letter-spacing: -.01em; }
.tile__hook { font-size: .845rem; color: #c6cdda; line-height: 1.4; }
/* the big tile's caption sits on photography — keep it legible over any frame */
.tile--lg .tile__name, .tile--lg .tile__hook { text-shadow: 0 1px 12px rgba(0,0,0,.9); }
.tile__pills { display: flex; flex-wrap: wrap; gap: 5px; }
.tile--lg .tile__hook { font-size: .92rem; max-width: 52ch; color: #cbd2de; }

.tile__flag {
  position: absolute; z-index: 2; top: 11px; left: 11px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #17130a;
  box-shadow: 0 6px 18px -6px rgba(217,164,65,.8);
}

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  font-style: normal;
  border: 1px solid rgba(255,255,255,.17);
  background: rgba(10,12,16,.6);
  color: #d3d9e4;
  backdrop-filter: blur(4px);
}
.pill--live  { border-color: rgba(127,209,143,.55); color: #93dda3; }
.pill--good  { border-color: rgba(102,192,244,.5);  color: #8ed3f7; }
.pill--soon  { border-color: rgba(217,164,65,.55);  color: var(--gold-soft); }
.pill--steam { border-color: rgba(102,192,244,.35); color: #9dcdea; }
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #7ede95;
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0%      { box-shadow: 0 0 0 0 rgba(126,222,149,.6); }
  70%,100%{ box-shadow: 0 0 0 6px rgba(126,222,149,0); }
}

/* ═══════════ rail ═══════════ */
.rail { display: grid; gap: var(--gap); align-content: start; }

.rail__music {
  position: relative; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, #1c2331, #0b0d12 72%);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.rail__music:hover {
  transform: translateY(-3px);
  border-color: rgba(217,164,65,.55);
  box-shadow: 0 18px 40px -24px rgba(217,164,65,.8);
}

.eq {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  opacity: .38;
}
.eq i {
  display: block; width: 5px; height: 26%; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-soft), rgba(217,164,65,.1));
  animation: bounce 1.5s var(--ease) infinite;
}
.eq i:nth-child(2n)   { animation-duration: 1.15s; }
.eq i:nth-child(3n)   { animation-duration: 1.9s;  }
.eq i:nth-child(4n)   { animation-duration: 1.4s;  }
.eq i:nth-child(odd)  { animation-delay: .22s; }
.eq i:nth-child(3n+1) { animation-delay: .55s; }
@keyframes bounce { 0%, 100% { height: 18%; } 50% { height: 74%; } }

.rail__play {
  position: absolute; z-index: 2; top: 44%; left: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(217,164,65,.96);
  box-shadow: 0 8px 24px -8px rgba(217,164,65,.9);
  transition: transform .25s var(--ease);
}
.rail__music:hover .rail__play { transform: translate(-50%,-50%) scale(1.1); }
.rail__play svg { width: 18px; height: 18px; fill: #17130a; margin-left: 2px; }
.rail__music-txt {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: grid; gap: 1px; padding: 24px 13px 11px;
  background: linear-gradient(to top, rgba(6,7,10,.94), rgba(6,7,10,.6) 55%, transparent);
}
.rail__music-txt b { font-family: var(--font-d); font-size: .98rem; font-weight: 600; }
.rail__music-txt small { font-size: .74rem; color: var(--muted); }

.chip {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-areas: 'ico name' 'ico sub';
  column-gap: 12px; align-items: center;
  padding: 10px 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.chip:hover {
  transform: translateY(-2px);
  background: var(--panel-2);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.chip svg {
  grid-area: ico; width: 34px; height: 34px; padding: 8px;
  border-radius: 9px; box-sizing: border-box;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.chip b     { grid-area: name; font-family: var(--font-d); font-weight: 600; font-size: .93rem; }
.chip small { grid-area: sub;  font-size: .735rem; color: var(--muted); line-height: 1.35; }

/* ═══════════ footer ═══════════ */
.foot {
  border-top: 1px solid var(--line);
  padding: 16px 20px 22px;
  text-align: center;
}
.foot p { margin: 0; font-size: .78rem; color: #6d7684; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold); }

/* ═══════════ responsive ═══════════ */
@media (max-width: 1000px) {
  .board { grid-template-columns: 1fr; }
  .rail {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    grid-auto-flow: row dense;
  }
  .rail__music { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
  .rail__play { top: 50%; }
}

@media (max-width: 720px) {
  .games { grid-template-columns: 1fr; }
  .tile--lg .tile__art { aspect-ratio: 16 / 9; }
  .hero { padding: 30px 18px 28px; }
  .brand span { font-size: 13.5px; letter-spacing: .09em; }
  .brand img { width: 26px; height: 26px; }
  .bar__icons a { width: 32px; height: 32px; }
  .bar__kofi span { display: none; }
  .bar__kofi { width: 32px !important; padding: 0; margin-left: 3px; }
}

@media (max-width: 460px) {
  .board, .bar__inner { padding-inline: 15px; }
  .rail { grid-template-columns: 1fr 1fr; }
  .chip { grid-template-columns: 1fr; grid-template-areas: 'ico' 'name' 'sub'; gap: 6px; padding: 12px; }
  .chip svg { width: 30px; height: 30px; }
}

/* ═══════════ motion ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__stars { display: none; }
}

/* ═══════════ companions promo ═══════════
   Discord Companions was one tile in a grid of five, which put the only thing
   here that takes a subscription on equal footing with a free browser game.
   Its own band, above the board: room for what it actually is, three faces to
   make it concrete, and somewhere to click. */
.promo {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 4px 20px 0;
}
.promo__inner {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background:
    radial-gradient(120% 150% at 12% -30%, rgba(217,164,65,.13), transparent 58%),
    linear-gradient(180deg, var(--panel) 0%, var(--ink-2) 100%);
  padding: clamp(20px, 3.4vw, 34px);
  display: grid; gap: clamp(20px, 3vw, 38px); align-items: center;
}
@media (min-width: 900px) {
  .promo__inner { grid-template-columns: minmax(0, 1fr) auto; }
}

.promo__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-d); font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(217,164,65,.32); background: rgba(217,164,65,.1);
  border-radius: 999px; padding: 4px 11px;
}
.promo__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #58d68d;
  box-shadow: 0 0 0 3px rgba(88,214,141,.18);
}
.promo h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.05rem); letter-spacing: -.02em;
  margin-top: 12px;
}
.promo__lead {
  color: #c6cdda; font-size: clamp(.94rem, 1.8vw, 1.05rem);
  line-height: 1.55; margin: 9px 0 0; max-width: 46ch;
}
.promo__pts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
/* NOT flex. A flex li turns "<b>lead-in.</b> rest of sentence" into two
   side-by-side columns, because the bold tag and the loose text each become
   their own flex item -- so the lead-in wrapped into a narrow stub with the
   sentence stranded beside it. Absolute bullet, normal text flow. */
.promo__pts li {
  position: relative; padding-left: 15px;
  color: var(--muted); font-size: .885rem; line-height: 1.5; max-width: 52ch;
}
.promo__pts li::before {
  content: ''; position: absolute; left: 0; top: .58em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
/* Block, not inline: at this column width an inline lead-in wrapped after two
   words and left the rest of the sentence hanging beside a ragged stub. */
.promo__pts b { display: block; color: #dfe5ee; font-weight: 600; margin-bottom: 1px; }

.promo__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-d); font-weight: 600; font-size: .9rem;
  padding: 11px 19px; border-radius: 10px;
  border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease),
              transform .18s var(--ease);
}
.btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-color: transparent; color: #17130a;
  box-shadow: 0 10px 26px -12px rgba(217,164,65,.85);
}
.btn--gold:hover { border-color: transparent; filter: brightness(1.05); }

/* Three faces in a row. They were staggered, which sounds nicer than it looks:
   the captions are different lengths, so offsetting the middle one just made
   three ragged baselines. */
.promo__cast { display: flex; gap: 12px; justify-content: center; align-items: start; }
.promo__face { width: 132px; text-align: center; }
.promo__face img {
  width: 132px; height: 132px; border-radius: 16px; object-fit: cover;
  border: 1px solid var(--line-2);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.promo__inner:hover .promo__face img { border-color: rgba(217,164,65,.4); }
.promo__face:hover img { transform: translateY(-4px); }
.promo__face b {
  display: block; font-family: var(--font-d); font-size: .82rem;
  font-weight: 600; margin-top: 9px;
}
.promo__face small {
  display: block; color: var(--muted); font-size: .72rem; line-height: 1.35;
  margin-top: 2px; min-height: 2.7em;   /* two lines, so the row stays level */
}

@media (max-width: 899px) {
  .promo__cast { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .promo__face { width: 100px; }
  .promo__face img { width: 100px; height: 100px; }
  .promo__cast { gap: 8px; }
}
