/* Écran Noir — studio page.
   Deliberately separate from the SpaceWord marketing site's stylesheet: this is
   the company front door, not a game page, and the two should be able to change
   without breaking each other. Dark, chrome-and-neon, matching the logo. */

:root {
  --bg: #06060a;
  --bg-2: #0c0c14;
  --ink: #e9e9f2;
  --ink-dim: #9a9ab0;
  --line: #1e1e2c;
  --cyan: #55d8ff;
  --magenta: #ff5ad0;
  --radius: 16px;
  --wrap: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); }

/* ── header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(6, 6, 10, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Both marks are drawn artwork on a transparent background, so they're sized by
   height and left to keep their own aspect ratio — no cropping, no radius. */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark { height: 34px; width: auto; }

.lang-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-dim);
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
}

.lang-toggle:hover { border-color: var(--cyan); }
.lang-toggle .on { color: var(--ink); }
.lang-toggle .sep { opacity: .35; margin: 0 3px; }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(56px, 10vw, 110px) 20px clamp(40px, 7vw, 76px);
  overflow: hidden;
}

/* The soft bloom behind the mark — echoes the four-point star in the logo
   without needing a second image. */
.hero .glow {
  position: absolute;
  inset: -40% 0 auto;
  height: 520px;
  background:
    radial-gradient(46% 52% at 50% 46%, rgba(85, 216, 255, .17), transparent 70%),
    radial-gradient(38% 44% at 62% 40%, rgba(255, 90, 208, .14), transparent 72%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  margin: 0 0 14px;
  font-size: 0;   /* the name IS the image; nothing here should reserve line-height */
  line-height: 0;
}

/* Sole mark in the hero — the EN monogram deliberately stays out of this block
   so the two logos are never read together. */
.hero-word {
  width: min(520px, 84vw);
  height: auto;
}

.tagline {
  position: relative;
  margin: 0 0 22px;
  color: var(--cyan);
  font-weight: 600;
  font-size: clamp(.95rem, 2.4vw, 1.1rem);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lede {
  position: relative;
  max-width: 46ch;
  margin: 0 auto;
  color: var(--ink-dim);
  font-size: clamp(1rem, 2.6vw, 1.18rem);
}

/* ── sections ───────────────────────────────────────────────────────── */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 64px) clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

.section p { margin: 0 0 14px; color: var(--ink-dim); max-width: 62ch; }

/* ── project card ───────────────────────────────────────────────────── */
.project {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px 22px;
  align-items: start;
  padding: 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.project-icon { border-radius: 20px; }
.project-body { min-width: 0; }
.project-body h3 { margin: 0; font-size: 1.35rem; font-weight: 700; }

.project-meta {
  margin: 2px 0 12px !important;
  color: var(--magenta) !important;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* The game shot is a PORTRAIT phone capture (800x1422). Spanning it full-width
   would make it taller than the viewport, so it's height-capped and centred —
   it reads as a phone held up next to the description. */
.project-shot {
  grid-column: 1 / -1;
  justify-self: center;
  max-height: 440px;
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.btn {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--cyan), var(--magenta));
  color: #07070c;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover { filter: brightness(1.12); }

.soon { margin-top: 18px !important; font-style: italic; }

.mail {
  font-size: 1.1rem;
  font-weight: 600;
  word-break: break-word;
}

footer {
  padding: 26px 20px 40px;
  border-top: 1px solid var(--line);
  color: #62627a;
  font-size: .84rem;
  text-align: center;
}

footer p { margin: 0; }

@media (max-width: 620px) {
  .project { grid-template-columns: 1fr; padding: 18px; }
  .project-icon { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
