/* ==========================================================================
   Blue Orbit Labs - main stylesheet
   Plain CSS, no build step. Colors and fonts are set in :root below.
   ========================================================================== */

:root {
  --paper: #F6F8FC;
  --white: #FFFFFF;
  --ink: #0F1B33;
  --ink-2: #46536E;
  --line: #DCE3F0;
  --orbit: #2A4FE0;
  --orbit-2: #1B348F;
  --sky: #E3EAFF;
  --sun: #FFB23E;
  --night: #0C1633;
  --night-2: #142250;
  --error: #B42318;
  --ok: #067647;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }

a { color: var(--orbit); text-underline-offset: 3px; }
a:hover { color: var(--orbit-2); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  color: inherit;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.muted { color: var(--ink-2); }

.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-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--orbit); color: var(--white); }
.btn-primary:hover { background: var(--orbit-2); color: var(--white); }

.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #FFC56B; color: var(--ink); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); color: var(--white); }

.btn-disabled,
.btn-disabled:hover {
  background: var(--paper);
  color: var(--ink-2);
  border: 2px dashed var(--line);
  cursor: default;
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--sky); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.site-nav .nav-contact { background: var(--ink); color: var(--white); margin-left: 0.4rem; }
.site-nav .nav-contact:hover { background: var(--orbit); color: var(--white); }
.site-nav .nav-contact[aria-current="page"] { background: var(--orbit); color: var(--white); box-shadow: none; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(15, 27, 51, 0.08);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.25rem;
  }
  .js .site-nav a { padding: 0.85rem 1rem; font-size: 1.05rem; border-radius: var(--r-md); }
  .js .site-nav .nav-contact { margin: 0.4rem 0 0; text-align: center; }

  /* Without JavaScript the menu simply wraps under the logo */
  .no-js .header-inner { height: auto; flex-wrap: wrap; padding: 0.75rem 0; }
  .no-js .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 12%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 84%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 30%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 74%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 88%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(900px 520px at 78% 40%, rgba(42, 79, 224, 0.35), transparent 70%),
    var(--night);
  color: #DCE4FA;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4.5rem, 9vw, 7.5rem);
}

.hero h1 { color: var(--white); max-width: 12ch; }
.hero .lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: #B7C4EA;
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.2rem;
  font-size: 0.95rem;
  color: #93A3D1;
}
.hero-note svg { width: 20px; height: 20px; flex: none; }

/* Orbit illustration (pure CSS) */
.orbit-system {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.orbit-system .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(160, 185, 255, 0.24);
  animation: spin linear infinite;
}
.ring-1 { inset: 21%; animation-duration: 22s; }
.ring-2 { inset: 10%; animation-duration: 38s; animation-direction: reverse; border-style: dashed; }
.ring-3 { inset: 0;   animation-duration: 60s; }

.planet {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #A9C2FF 0%, #4B6EF0 26%, #2A4FE0 46%, #152A80 78%, #0E1C5C 100%);
  box-shadow: 0 0 90px rgba(42, 79, 224, 0.6), inset -14px -18px 40px rgba(6, 12, 40, 0.55);
}
.planet::before {
  /* the planet's ring */
  content: "";
  position: absolute;
  left: -34%;
  right: -34%;
  top: 41%;
  height: 18%;
  border: 3px solid var(--sun);
  border-radius: 50%;
  transform: rotate(-16deg);
  opacity: 0.9;
}

.sat {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
.sat-bottom { top: 100%; }
.sat-left { top: 50%; left: 0; }
.sat > span {
  display: block;
  animation: spin linear infinite reverse;
}
.ring-1 .sat > span { animation-duration: 22s; }
.ring-2 .sat > span { animation-duration: 38s; animation-direction: normal; }
.ring-3 .sat > span { animation-duration: 60s; }

/* Satellite tiles */
.tile-play, .tile-pad, .tile-code, .moon { display: block; }

/* A play-button tile */
.tile-play {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--sun);
  position: relative;
  box-shadow: 0 10px 24px rgba(255, 178, 62, 0.35);
}
.tile-play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 20px;
  background: var(--night);
  clip-path: polygon(15% 0, 100% 50%, 15% 100%);
  transform: translateX(2px);
}
/* A d-pad tile */
.tile-pad {
  width: 46px; height: 46px;
  border-radius: 12px;
  background:
    linear-gradient(#fff, #fff) center / 28% 70% no-repeat,
    linear-gradient(#fff, #fff) center / 70% 28% no-repeat,
    var(--orbit);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}
/* A small code-bracket tile for "software" */
.tile-code {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  position: relative;
}
.tile-code::before,
.tile-code::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px; height: 10px;
  border: solid var(--orbit);
  border-width: 0 0 3px 3px;
}
.tile-code::before { left: 12px; transform: translateY(-50%) rotate(45deg); }
.tile-code::after  { right: 12px; transform: translateY(-50%) rotate(-135deg); }
.moon {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #93A3D1;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* The one orchestrated load moment */
.hero-copy > * { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-visual { animation: settle 1.2s cubic-bezier(.2,.7,.2,1) 0.1s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes settle {
  from { opacity: 0; transform: scale(0.92) rotate(-8deg); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.page-hero::after {
  /* faint orbit lines in the corner */
  content: "";
  position: absolute;
  right: -160px;
  top: -200px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 70px var(--white), 0 0 0 71px var(--line), 0 0 0 140px var(--white), 0 0 0 141px var(--line);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 18ch; }
.page-hero .lede { font-size: 1.2rem; color: var(--ink-2); max-width: 58ch; margin: 0; }
.page-hero .updated { margin-top: 1rem; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head p { font-size: 1.12rem; color: var(--ink-2); margin: 0; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}
.section-head-row .section-head { margin-bottom: 0; }

/* What we do */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.service { padding: 2rem 2rem 0.5rem 0; }
.service + .service { padding-left: 2rem; border-left: 1px solid var(--line); }
.service-icon { width: 44px; height: 44px; margin-bottom: 1.2rem; color: var(--orbit); }
.service p { color: var(--ink-2); margin: 0; }

/* Project cards (home) */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.project {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.project-body { padding: 1.4rem 1.5rem 1.6rem; }
.project-body h3 { margin: 0.9rem 0 0.4rem; }
.project-body p { color: var(--ink-2); margin: 0; font-size: 1rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--orbit-2);
  font-size: 0.85rem;
  font-weight: 700;
}
.status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-planned { background: #FFF1D6; color: #7A4F00; }
.status-live { background: #DCFAE6; color: var(--ok); }

/* CSS-only cover art (replace with real images later) */
.art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.art span { position: absolute; display: block; }
.art .c { border-radius: 50%; }
.art .s { border-radius: 22%; }
.art .t { clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.art-nova  { background: linear-gradient(160deg, #FFE6B8, #FFC56B); }
.art-comet { background: linear-gradient(160deg, #1A2B6B, #0C1633); }
.art-drift { background: linear-gradient(160deg, #D7F2EC, #8FD9C7); }
.art-halo  { background: linear-gradient(160deg, #E3EAFF, #B6C7FF); }

.art img { width: 100%; height: 100%; object-fit: cover; }

/* How we build (a real sequence, so it is numbered) */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 4.2rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  background: var(--orbit);
}
.steps li:not(:last-child)::after {
  /* the track between steps */
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 3.6rem;
  right: -1.4rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.steps p { color: var(--ink-2); margin: 0; }

/* Call to action band */
.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  border-radius: var(--r-xl);
  background: var(--orbit);
  color: var(--white);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 0.3em; max-width: 20ch; }
.cta-band p { margin: 0; color: #D6DFFF; max-width: 48ch; }

/* ---------- About ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split .big-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}
.split .body-text p { color: var(--ink-2); max-width: 62ch; }

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}
.principle {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.principle svg { width: 44px; height: 44px; color: var(--orbit); }
.principle h3 { margin-bottom: 0.35rem; }
.principle p { margin: 0; color: var(--ink-2); }

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) 1.4fr;
  border-top: 2px solid var(--ink);
}
.facts dt,
.facts dd {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-weight: 700; padding-right: 1rem; }
.facts dd { color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- Games page ---------- */
.notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  margin-bottom: 2.5rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sun);
  color: var(--ink-2);
  max-width: 760px;
}
.notice svg { width: 22px; height: 22px; flex: none; color: #C98A12; margin-top: 2px; }
.notice p { margin: 0; }

.game-list { display: grid; gap: 1.5rem; }
.game {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.game .art { aspect-ratio: auto; min-height: 240px; height: 100%; }
.game-body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; }
.game-body h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 0.9rem 0 0.45rem; }
.game-body > p { color: var(--ink-2); max-width: 62ch; }
.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0.25rem 0 1.5rem;
  padding: 0;
}
.game-meta div { min-width: 120px; }
.game-meta dt { font-size: 0.85rem; color: var(--ink-2); }
.game-meta dd { margin: 0; font-weight: 700; }
.game-actions { margin-top: auto; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-panel h2 { font-size: 1.6rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}
.field { display: grid; gap: 0.4rem; margin-bottom: 1.2rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.98rem; }
.field .optional { font-weight: 500; color: var(--ink-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  min-height: 50px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 21px) 52%, calc(100% - 15px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orbit);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(42, 79, 224, 0.15);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.9rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  font-size: 0.98rem;
  color: var(--ink-2);
}
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--orbit); flex: none; }

.form-note { font-size: 0.92rem; color: var(--ink-2); margin: 1rem 0 0; }
.form-status {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-status.is-ok { background: #DCFAE6; color: var(--ok); }
.form-status.is-error { background: #FEE4E2; color: var(--error); }

.contact-aside { display: grid; gap: 1.25rem; }
.contact-card {
  border-radius: var(--r-lg);
  padding: 1.75rem;
  background: var(--night);
  color: #C9D4F5;
}
.contact-card h2 { color: var(--white); font-size: 1.35rem; margin-bottom: 0.6rem; }
.contact-card a { color: var(--sun); font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-card a:hover { color: #FFC56B; }
.contact-card p:last-child { margin-bottom: 0; }

.info-card {
  border-radius: var(--r-lg);
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.info-card h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.info-card ul { padding-left: 1.2rem; color: var(--ink-2); margin-bottom: 0; }
.info-card li + li { margin-top: 0.3rem; }
.info-card p { color: var(--ink-2); }
.info-card p:last-child { margin-bottom: 0; }

/* ---------- Legal pages ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  font-size: 0.95rem;
}
.toc h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 0.75rem; }
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--line);
}
.toc li + li { margin-top: 0.45rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--orbit); text-decoration: underline; }

.prose { max-width: 72ch; }
.prose h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  margin: 2.75rem 0 0.8rem;
  padding-top: 0.25rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
.prose p, .prose li { color: #2A3753; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.4rem; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: clamp(5rem, 12vw, 9rem) 0; }
.not-found .lost-orbit {
  width: 140px; height: 140px; margin: 0 auto 2rem;
  border-radius: 50%;
  border: 2px dashed var(--line);
  position: relative;
}
.not-found .lost-orbit::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: var(--orbit);
}
.not-found h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.not-found p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: #A9B6DC;
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
  font-size: 0.98rem;
}
.site-footer a { color: #DDE5FF; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin: 1rem 0 0; max-width: 34ch; }
.footer-col h2 {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--white);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 0.55rem; }
.footer-col a { overflow-wrap: anywhere; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(169, 182, 220, 0.2);
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.75rem; }
  .steps li:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .toc {
    position: static;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.25rem 1.5rem;
  }
  .toc ol { columns: 2; column-gap: 2rem; border-left: 0; padding-left: 0; }
  .toc li { break-inside: avoid; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-visual { order: -1; }
  .orbit-system { width: min(78%, 340px); }
  .projects { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .game { grid-template-columns: 1fr; }
  .game .art { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
}

@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .service,
  .service + .service { padding: 1.75rem 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .projects { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 0.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .hero-actions .btn,
  .cta-band .btn { width: 100%; }
  .brand { font-size: 1.1rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; }
  .page-hero::after { display: none; }
}
