/* Equilibrarium — site styles.
   Monochrome by design: black and white plus neutral greys.
   The only colour on the site belongs to the two game logos (--fin, --tog). */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", system-ui, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --bg: #fff;
  --ink: #000;
  --ink-2: #2e2e2e;
  --muted: #6b6b6b;
  --line: #d2d2d2;
  --hair: #e6e6e6;
  --surface: #f5f5f5;
  --raised: #fff;
  --on-ink: #fff;
  --glass: rgba(255, 255, 255, .78);
  --fin: #6631d7;
  --tog: #0b6e6d;
  --w: 1180px;
  --gut: 24px;
  --r: 28px;
  --r-sm: 20px;
  --nav-h: 52px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000;
    --ink: #fff;
    --ink-2: #d6d6d6;
    --muted: #9c9c9c;
    --line: #3b3b3b;
    --hair: #232323;
    --surface: #111;
    --raised: #1a1a1a;
    --on-ink: #000;
    --glass: rgba(0, 0, 0, .72);
    --fin: #b9a6ff;
    --tog: #5ed3cf;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #000;
  --ink: #fff;
  --ink-2: #d6d6d6;
  --muted: #9c9c9c;
  --line: #3b3b3b;
  --hair: #232323;
  --surface: #111;
  --raised: #1a1a1a;
  --on-ink: #000;
  --glass: rgba(0, 0, 0, .72);
  --fin: #b9a6ff;
  --tog: #5ed3cf;
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
::selection { background: var(--ink); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 10px; }

.wrap {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ---------- Type ---------- */

.eyebrow {
  display: block;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--muted);
}

.h2 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -.032em;
  margin: 0 0 20px;
  max-width: 16ch;
}

.h2.multi { max-width: 24ch; }
.h2 .ln { display: block; text-wrap: balance; }
.lead.lines { max-width: none; }
.lead.lines .ln { display: block; text-wrap: balance; }
.nw { white-space: nowrap; }
:lang(el) .h2 { max-width: 19ch; }
:lang(el) .h2.multi { max-width: 28ch; }

.lead {
  font-size: clamp(19px, 1.85vw, 23px);
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--muted);
  font-weight: 400;
  max-width: 40ch;
  margin: 0;
}

.sec-head { margin: 0 0 64px; }

/* ---------- Sections ---------- */

.sec { padding: 152px 0; position: relative; }
.band { background: var(--surface); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { opacity: .84; }
.btn:active { transform: scale(.98); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.more::after {
  content: "\203A";
  content: "\203A" / "";
  font-size: 1.25em;
  line-height: 1;
  transform: translateY(-.04em);
  transition: transform .25s var(--ease);
}
.more:hover { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.more:hover::after { transform: translate(3px, -.04em); }

.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--hair); }

.nav-in {
  position: relative;
  height: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
/* The official horizontal logo: outlined wordmark, height = the mark's diameter. */
.brand-logo { display: block; height: 22px; width: auto; aspect-ratio: 8149.384 / 1181.807; fill: currentColor; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }

.nav-tools { display: flex; align-items: center; gap: 6px; }

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s, color .2s;
}
.lang:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; }

/* The switch shows the mode it switches to: a moon in light mode, a sun in dark mode. */
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}

.menu-btn { display: none; }
.menu-btn .bars { position: relative; width: 18px; height: 12px; }
.menu-btn .bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn .bars span:first-child { top: 2px; }
.menu-btn .bars span:last-child { top: 9px; }
.menu-btn[aria-expanded="true"] .bars span:first-child { top: 5.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span:last-child { top: 5.5px; transform: rotate(-45deg); }

.sheet {
  position: fixed;
  left: 0; right: 0;
  top: var(--nav-h);
  bottom: 0;
  z-index: 99;
  padding: 16px var(--gut) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
}
.sheet[hidden] { display: none; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li a {
  display: block;
  padding: 10px 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
  text-decoration: none;
}
.sheet .sheet-foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  display: flex;
  gap: 12px;
  align-items: center;
}
body.menu-open { overflow: hidden; }

body:not(.menu-open) .nav.on-dark {
  --bg: #000;
  --ink: #fff;
  --ink-2: #d6d6d6;
  --muted: #9c9c9c;
  --line: #3b3b3b;
  --hair: #232323;
  --surface: #111;
  --raised: #1a1a1a;
  --glass: rgba(0, 0, 0, .72);
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 72px 0 96px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  gap: 24px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { color: var(--ink); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; }
.hero-copy .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink);
}
.hero h1 {
  font-size: clamp(50px, 7.2vw, 100px);
  line-height: 1;
  letter-spacing: -.045em;
  margin: 0 0 28px;
  max-width: 11ch;
}
.hero .lead { margin: 0 0 40px; max-width: 34ch; }

.hero-art {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  width: 128%;
  margin-right: -28%;
  justify-self: end;
}
.hero-art svg { width: 100%; height: 100%; overflow: visible; }

.orbit-line { stroke: var(--ink); fill: none; }
.o-faint { opacity: .26; }
.o-mid { opacity: .5; }
.o-dash { stroke-dasharray: 2 9; stroke-linecap: round; }
.o-dash-2 { stroke-dasharray: 1 6; stroke-linecap: round; }
.o-axis { stroke-dasharray: 5 7; }
.o-dot { fill: var(--ink); }
.o-glow-a { stop-color: var(--ink); stop-opacity: .07; }
.o-glow-b { stop-color: var(--ink); stop-opacity: 0; }
.o-fade-a { stop-color: var(--ink); stop-opacity: 0; }
.o-fade-b { stop-color: var(--ink); stop-opacity: .55; }

.mk-shape { fill: currentColor; }
.mk-bg { fill: var(--bg); }

.spin-mark { transform-box: view-box; transform-origin: 500px 500px; animation: turn 18s linear infinite; }
.spin-orbit { transform-box: view-box; transform-origin: 500px 500px; animation: turn 90s linear infinite reverse; }
@keyframes turn { to { transform: rotate(360deg); } }

.paused .spin-orbit,
.paused .globe .g-mer { animation-play-state: paused; }
.paused .spin-mark { animation: none; }

.pause-btn {
  /* The art bleeds 28% past the column; 22% of its width puts the button on the content edge. */
  position: absolute;
  right: 22%;
  bottom: 4%;
  z-index: 3;
  width: 36px;
  height: 36px;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--bg);
}
.pause-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); background: var(--bg); }
.pause-btn svg { width: 14px; height: 14px; }
.pause-btn .i-play { display: none; }
.paused .pause-btn .i-play { display: block; }
.paused .pause-btn .i-pause { display: none; }
html:not(.js) .pause-btn,
html:not(.js) .theme-btn,
html:not(.js) .menu-btn { display: none; }

@media (prefers-reduced-motion: reduce) {
  .spin-mark, .spin-orbit { animation: none; }
  .pause-btn { display: none; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 1px;
  height: 44px;
  background: var(--line);
}

/* Greek words run longer: a wider text column and slightly smaller display type keep the H1 to three lines. */
:lang(el) .hero h1 { font-size: clamp(42px, 5.6vw, 80px); max-width: none; }
@media (min-width: 901px) {
  :lang(el) .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
/* On desktop the hero also scales with the window height, so the headline, the button and the mark
   fit the first screen of a laptop. The art bleeds 22% of its width past the column. */
@supports (height: 1svh) {
  @media (min-width: 901px) {
    .hero { padding: clamp(24px, 5vh, 72px) 0 clamp(40px, 7vh, 96px); }
    .hero h1 { font-size: clamp(50px, min(7.2vw, 11.5svh), 100px); }
    :lang(el) .hero h1 { font-size: clamp(42px, min(5.6vw, 9svh), 80px); }
    .hero-art { width: min(128%, calc(100svh - var(--nav-h) - 96px)); margin-right: 0; transform: translateX(22%); }
  }
}

/* ---------- Cards ---------- */

.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 36px 32px 34px;
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.band .card { background: var(--raised); }
.card h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.022em;
  margin: 0 0 12px;
}
.card p { margin: 0; color: var(--ink-2); }
.card h3 { overflow-wrap: break-word; }
@media (min-width: 901px) { .g3 .card h3 { min-height: 2.4em; } }
@media (min-width: 735px) { .g4 .card h3 { min-height: 2.4em; } }
@media (min-width: 1069px) and (max-width: 1180px) { :lang(el) .g4 .card h3 { min-height: 3.6em; } }
.card .num {
  display: block;
  margin: 0 0 64px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.card .ic {
  width: 44px;
  height: 44px;
  margin: 0 0 40px;
  color: var(--ink);
}
.card.tall { min-height: 340px; }
.card.tall .num { margin-bottom: 120px; }

/* ---------- Approach ---------- */

.quote {
  margin: 0 0 112px;
  padding: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 600;
}
.quote span { display: block; color: var(--muted); text-wrap: balance; }
.quote span:last-child { color: var(--ink); }
.quote span + span { margin-top: .12em; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding: 40px 32px 0 0;
}
.step + .step { padding-left: 32px; border-left: 1px solid var(--hair); }
.step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 0 48px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ink);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 26px; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 12px; }
.step p { color: var(--ink-2); margin: 0; max-width: 32ch; }

/* ---------- Vision ---------- */

.vision {
  /* Always a black band: an inverted moment in light mode, a deep stage in dark mode. */
  position: relative;
  overflow: hidden;
  padding: 176px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  --bg: #000;
  --ink: #fff;
  --ink-2: #d6d6d6;
  --muted: #9c9c9c;
  --line: #3b3b3b;
  --hair: #232323;
  --surface: #111;
  --raised: #1a1a1a;
  background: var(--bg);
  color: var(--ink);
}
.pause-btn.on-band {
  right: max(var(--gut), calc((100% - var(--w)) / 2 + var(--gut)));
  bottom: 40px;
}
.vision .eyebrow { color: var(--muted); }
.vision .statement {
  position: relative;
  z-index: 2;
  font-size: clamp(42px, 6.6vw, 92px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0 0 36px;
  max-width: 13ch;
}
.vision .lead { position: relative; z-index: 2; color: var(--muted); max-width: 36ch; }
:lang(el) .vision .statement { font-size: clamp(38px, 5.6vw, 80px); max-width: 17ch; }
.globe {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -12%;
  width: min(820px, 78vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  color: var(--ink);
  opacity: .5;
  pointer-events: none;
}
.globe svg { width: 100%; height: 100%; }
.globe .g-line { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .45; }
.globe .g-edge { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .8; }
.globe .g-mer { animation: meridian 14s infinite; transform-box: fill-box; transform-origin: center; }
.globe .g-mer:nth-child(2) { animation-delay: -1.1667s; }
.globe .g-mer:nth-child(3) { animation-delay: -2.3333s; }
.globe .g-mer:nth-child(4) { animation-delay: -3.5s; }
.globe .g-mer:nth-child(5) { animation-delay: -4.6667s; }
.globe .g-mer:nth-child(6) { animation-delay: -5.8333s; }
@keyframes meridian {
  0% { transform: scaleX(1); animation-timing-function: ease-in-out; }
  50% { transform: scaleX(-1); animation-timing-function: ease-in-out; }
  100% { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .globe .g-mer { animation: none; }
  .globe .g-mer:nth-child(2) { transform: scaleX(.866); }
  .globe .g-mer:nth-child(3) { transform: scaleX(.5); }
  .globe .g-mer:nth-child(4) { transform: scaleX(.17); }
  .globe .g-mer:nth-child(5) { transform: scaleX(.707); }
  .globe .g-mer:nth-child(6) { transform: scaleX(.34); }
}

/* ---------- Goals ---------- */

.goal .ic { margin-bottom: 56px; }
.goal h3 { font-size: 22px; }

/* ---------- Name ---------- */

.eq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}
.eq .card { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 240px; }
.eq .card p { min-height: 4.5em; max-width: 30ch; text-wrap: balance; }
.eq .card h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; }
.eq .op {
  align-self: center;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}

/* ---------- Studio ---------- */

.statement-line {
  margin: 72px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 600;
  max-width: 26ch;
}

/* ---------- Team ---------- */

.disc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 20px; }
.disc .card { min-height: 300px; display: flex; flex-direction: column; }
@media (min-width: 1069px) { :lang(el) .disc { grid-template-columns: repeat(2, minmax(0, 1fr)); } :lang(el) .disc .card { min-height: 240px; } }
.disc .card h3 { font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -.03em; }
.disc .card .ix { display: block; margin: 0 0 72px; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tags li.etc { padding: 0 8px; letter-spacing: .05em; }
.tags li.etc span[aria-hidden] { position: relative; top: -.3em; }
/* Narrowest four-column widths: keep each card's tags on one line. */
@media (min-width: 1069px) and (max-width: 1179px) {
  .disc .card { padding-left: 26px; padding-right: 26px; }
  .card .tags { gap: 5px; }
  .tags li { padding: 0 7px; }
}
/* .card .tags beats the generic ul[role="list"] reset, so the tags keep their gap and sit at the card's foot. */
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 24px 0 0; list-style: none; }
.tags li {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
  white-space: nowrap;
}
.sec-note {
  margin: 64px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 46ch;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.35;
  letter-spacing: -.02em;
  font-weight: 400;
  color: var(--ink);
}



/* ---------- Games ---------- */

.game-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.game-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding: 56px 40px 44px;
  border-radius: 32px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.band .game-tile { background: var(--raised); }
.game-tile .logo { width: min(220px, 52%); aspect-ratio: 1; margin: 0 0 48px; transition: transform .8s var(--ease); }
.game-tile .logo svg { width: 100%; height: 100%; }
.game-tile h3 { display: inline-flex; align-items: center; align-items: last baseline; gap: 6px; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.035em; margin: 0; }
.game-tile h3::after { content: "\203A"; content: "\203A" / ""; font-weight: 400; color: var(--muted); transition: transform .3s var(--ease); }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .game-tile:hover { transform: translateY(-4px); }
  .game-tile:hover .logo { transform: scale(1.04); }
  .game-tile:hover h3::after { transform: translateX(4px); }
  /* visual-11: the reveal rules must not cancel the hover lift */
  .js .game-tile.reveal { transition: opacity .9s var(--ease), transform .5s var(--ease); }
  .js .game-tile.reveal.in:hover { transform: translateY(-4px); transition-delay: 0s; }
}

/* Game logos: the only colour on the site. */
.logo-fin { color: var(--fin); }
.logo-tog { color: var(--tog); }
/* App names: "Equilibrarium" on the first line, the descriptor on the second. */
.nms { display: block; }
.nm { display: block; text-wrap: balance; }

/* ---------- Milestones ---------- */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 11px;
  height: 1px;
  background: var(--line);
}
.timeline li { position: relative; padding-top: 52px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.band .timeline li::before { background: var(--surface); }
.timeline li.done::before { background: var(--ink); }
.timeline .when { display: block; margin: 0 0 10px; font-size: 15px; line-height: 1.4; letter-spacing: normal; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .tt { display: block; }
.timeline h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 10px; }
@media (min-width: 901px) and (max-width: 940px) { :lang(el) .timeline .tt { min-height: 2.4em; } }
.timeline p { color: var(--ink-2); margin: 0; max-width: 30ch; }

/* ---------- Contact ---------- */


/* The email line reads as part of the lead above it: same type, same colour, no underline. */
/* Set like .sec-note: hairline rule above, regular weight, ink colour. */
.contact-line {
  margin: 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 46ch;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.35;
  letter-spacing: -.02em;
  font-weight: 400;
  color: var(--ink);
}
.contact-line p { margin: 0; }
.contact-line a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.contact-line a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* ---------- Game pages ---------- */

.game-page {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 72px 0 120px;
  text-align: center;
}
.crumbs { margin: 0 0 56px; font-size: 13px; color: var(--muted); }
.crumbs ol { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li:not(:last-child)::after { content: "\203A"; content: "\203A" / ""; margin-left: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.game-page .logo { width: clamp(160px, 24vw, 260px); aspect-ratio: 1; margin: 0 auto 48px; }
.game-page .logo svg { width: 100%; height: 100%; }
.game-page h1 { font-size: clamp(min(40px, 9.4vw), 6.6vw, 92px); line-height: 1; letter-spacing: -.05em; margin: 0 0 28px; }
.game-page .tag { min-height: 34px; font-size: 14px; padding: 0 16px; margin: 0 0 40px; }
.game-page .desc {
  max-width: 34em;
  margin: 0 auto 28px;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.5;
  letter-spacing: -.015em;
  color: var(--ink-2);
  text-align: left;
}
.game-page .fine { max-width: 40em; margin: 0 auto 44px; font-size: 13px; color: var(--muted); }
.game-page .ctas { justify-content: center; }

.draw > * { animation: seg .7s var(--ease) both; }
.draw > *:nth-child(1) { animation-delay: .10s; }
.draw > *:nth-child(2) { animation-delay: .18s; }
.draw > *:nth-child(3) { animation-delay: .26s; }
.draw > *:nth-child(4) { animation-delay: .34s; }
.draw > *:nth-child(5) { animation-delay: .42s; }
.draw > *:nth-child(6) { animation-delay: .50s; }
.draw > *:nth-child(7) { animation-delay: .58s; }
.draw > *:nth-child(8) { animation-delay: .66s; }
@keyframes seg { from { opacity: 0; } to { opacity: 1; } }
.js .game-tile:not(.in) .draw > * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .draw > * { animation: none; } }


/* ---------- Document pages (privacy, 404) ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: 96px var(--gut) 128px; }
.doc h1 { font-size: clamp(42px, 6vw, 64px); line-height: 1.04; letter-spacing: -.04em; margin: 0 0 16px; }
.doc .updated { margin: 0 0 40px; font-size: 15px; color: var(--muted); }
.doc .intro { font-size: 21px; line-height: 1.45; letter-spacing: -.016em; color: var(--ink-2); margin: 0 0 24px; }
.doc h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.022em; margin: 56px 0 14px; padding-top: 32px; border-top: 1px solid var(--hair); }
.doc p { color: var(--ink-2); }
.doc strong { font-weight: 600; color: var(--ink); }
.doc a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.doc address { color: var(--ink-2); line-height: 1.6; margin: 0 0 1em; }
.doc ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-2); }
.doc li { margin: 0 0 .45em; padding-left: .2em; }
.doc h2 .no { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .15em; }
.doc .summary { margin: 8px 0 40px; padding: 28px 32px; border-radius: var(--r-sm); background: var(--surface); }
.doc .summary-title { margin: 0 0 12px; padding: 0; border: 0; font-size: 17px; letter-spacing: -.01em; }
.doc .summary ul { margin: 0; }
.doc .toc { margin: 0 0 16px; padding: 24px 0 8px; border-top: 1px solid var(--hair); }
.doc .toc-title { margin: 0 0 12px; padding: 0; border: 0; font-size: 15px; color: var(--muted); letter-spacing: 0; }
.doc .toc ol { columns: 2; column-gap: 40px; margin: 0; padding-left: 1.4em; font-size: 15px; color: var(--muted); }
.doc .toc li { margin: 0 0 6px; break-inside: avoid; }
.doc .toc a { color: var(--ink); text-decoration: none; }
.doc .toc a:hover { text-decoration: underline; }
.doc .see-also { margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--hair); }
.doc .see-also a { text-decoration: none; }

.nf-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.nf { flex: 1 0 auto; display: flex; align-items: center; text-align: center; padding: 96px 0; }
.nf .wrap > * { margin-left: auto; margin-right: auto; }
.nf .mk { width: 72px; height: 72px; margin-bottom: 40px; }
.nf h1 { font-size: clamp(42px, 6vw, 64px); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 16px; }
.nf p { color: var(--muted); font-size: 19px; }
.nf .ctas { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */

.foot {
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 56px 0 44px;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.foot .brand { margin-bottom: 14px; }
.foot .brand-logo { height: 20px; }
.foot-tag { margin: 0; max-width: 30ch; color: var(--muted); font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-cols h2 { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0; margin: 0 0 12px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols a { display: inline-block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding-top: 24px;
}
.foot-legal p { margin: 0 0 4px; }
.foot-legal .co { color: var(--ink-2); }
.foot-tools { display: flex; align-items: center; gap: 8px; }
.foot-tools .icon-btn { width: 34px; height: 34px; box-shadow: inset 0 0 0 1px var(--line); }
.foot-tools .icon-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); background: transparent; }
.foot-tools .icon-btn svg { width: 16px; height: 16px; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1068px) {
  :root { --gut: 22px; }
  .nav-links a { padding: 8px 9px; font-size: 13px; }
  .g4, .disc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .eq .card { min-height: 0; }
  .eq .card p { min-height: 3em; }
  .eq .op { justify-self: center; font-size: 32px; }
  .sec { padding: 128px 0; }
}

@media (max-width: 900px) {
  .nav-main { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-tools .lang { display: none; }
  html:not(.js) .nav-tools .lang { display: inline-flex; }
  .nf-page .nav-tools .lang { display: inline-flex; }
  .hero-copy .eyebrow::before { display: none; }
  .hero { min-height: 0; padding: 40px 0 88px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; text-align: center; }
  .hero-art { order: -1; width: min(520px, 100%); width: min(520px, 100%, 46svh); margin: 0 auto 8px; justify-self: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .ctas { justify-content: center; }
  .pause-btn { right: 4px; bottom: 6%; }
  .scroll-cue { display: none; }
  .g3 { grid-template-columns: minmax(0, 1fr); }
  .card.tall { min-height: 0; }
  .card.tall .num { margin-bottom: 56px; }
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .step, .step + .step { padding: 32px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step .n { margin-bottom: 24px; }
  .game-tiles { grid-template-columns: minmax(0, 1fr); }
  .game-tile { min-height: 480px; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .timeline li { padding: 0 0 40px 44px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 4px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .globe { right: -40%; width: 110vw; opacity: .32; }
}

@media (max-width: 734px) {
  :root { --gut: 16px; --r: 22px; }
  body { font-size: 16px; }
  .sec { padding: 96px 0; }
  .vision { padding: 120px 0; }
  .sec-head { margin-bottom: 44px; }
  .card { padding: 28px 24px; }
  .card .num { margin-bottom: 40px; }
  .card .ic { margin-bottom: 28px; }
  .g4, .disc { grid-template-columns: minmax(0, 1fr); }
  .disc .card { min-height: 0; }
  .disc .card .ix { margin-bottom: 40px; }
  .disc .card p { min-height: 4.5em; }
  .quote { margin-bottom: 72px; }
  .game-tile { min-height: 0; padding: 48px 24px 36px; border-radius: 26px; }
  .game-tile .logo { width: 150px; margin-bottom: 36px; }
  .game-tile h3 { font-size: clamp(22px, 6.6vw, 30px); }
  .contact-line { padding-top: 32px; }
  .sec-note { margin-top: 48px; padding-top: 32px; }
  .hero { padding-top: 16px; }
  .hero-art { width: min(300px, 76%); width: min(300px, 76%, 40svh); margin-bottom: 0; }
  .hero .lead { margin-bottom: 28px; }
  :lang(el) .hero h1 { font-size: min(42px, 11.5vw); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .foot-cols a { padding: 7px 0; }
  .doc { padding-top: 64px; }
  .doc .toc ol { columns: 1; }
  .doc .summary { padding: 22px 20px; }
  .game-page { padding-top: 48px; }
  .crumbs { margin-bottom: 40px; }
  .game-page h1 .nm { white-space: nowrap; }
}

@media (forced-colors: active) {
  .lang, .tag, .tags li, .icon-btn, .step .n, .timeline li::before { border: 1px solid CanvasText; }
  .timeline::before, .timeline li.done::before { forced-color-adjust: none; background: CanvasText; }
  .menu-btn .bars span { forced-color-adjust: none; background: ButtonText; }
}

@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --bg: #fff; --ink: #000; --ink-2: #2e2e2e; --muted: #6b6b6b; --line: #d2d2d2; --hair: #e6e6e6; --surface: #f5f5f5;
    --raised: #fff; --on-ink: #fff; --glass: rgba(255, 255, 255, .78); --fin: #6631d7; --tog: #0b6e6d;
    color-scheme: light;
  }
  .nav, .sheet, .skip, .pause-btn, .scroll-cue, .foot-tools, .globe { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .sec, .vision { padding: 48px 0; }
  .vision { background: none; color: #000; }
  .hero { min-height: 0; }
}
