/* Pixelcius — base styles (v2: tighter symmetry, no overflow, mobile-first responsive) */
:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --ink: #f5f3ee;
  --ink-dim: #8a8a92;
  --ink-faint: #4a4a52;
  --line: rgba(245, 243, 238, 0.08);
  --line-strong: rgba(245, 243, 238, 0.18);

  --c1: #3a7afe;
  --c2: #ff2bd6;
  --c3: #c4ff3a;
  --c4: #ffaa2b;

  --display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 32px;
  --maxw: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Subtle film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ───────────── NAV ───────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand { display: flex; align-items: center; gap: 10px; justify-self: start; white-space: nowrap; }
.nav__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 12px var(--c1); flex-shrink: 0; }
.nav__brand-name { font-weight: 600; letter-spacing: 0.18em; }
.nav__brand-tag { opacity: 0.4; margin-left: 4px; }
.nav__links { display: flex; gap: 28px; justify-self: center; }
.nav__links a { opacity: 0.7; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__lang { display: flex; gap: 4px; align-items: center; justify-self: end; }
.nav__lang button { opacity: 0.5; padding: 4px 6px; transition: opacity .2s; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; }
.nav__lang button.is-active { opacity: 1; color: var(--c3); }
.nav__lang span { opacity: 0.3; }

/* ───────────── HERO ───────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero__content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}
.hero__tagline {
  position: absolute;
  top: 110px; left: var(--gutter);
  pointer-events: auto;
  max-width: 360px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  z-index: 3;
}
.hero__tagline strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 6px; font-size: 13px; }

.hero__center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero__corner-mark {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.hero__bottom {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 40px;
  display: flex; flex-direction: column; gap: 24px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(10,10,12,0.6) 85%, var(--bg) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__wordmark {
  font-family: var(--display);
  font-weight: 700;
  /* fits even at 320px width: 9 chars at ~0.85em each = ~7.65em ≈ container width */
  font-size: clamp(48px, 13.5vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 65%, rgba(245,243,238,0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__wordmark .glyph-i {
  color: var(--c2);
  -webkit-text-fill-color: var(--c2);
  background: none;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  pointer-events: auto;
}
.hero__meta .label { display: block; opacity: 0.5; margin-bottom: 6px; font-size: 10px; }
.hero__meta .value { color: var(--ink); font-size: 12px; }

/* ───────────── MARQUEE ───────────── */
.manifesto {
  border-block: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: var(--bg);
}
.marquee {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 56px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  width: max-content;
}
.marquee > span { display: inline-flex; align-items: center; gap: 64px; }
.marquee .accent-1 { color: var(--c1); }
.marquee .accent-2 { color: var(--c2); }
.marquee .accent-3 { color: var(--c3); }
.marquee .accent-4 { color: var(--c4); }
.marquee .star { color: var(--ink-faint); font-size: 0.65em; }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ───────────── SECTION ───────────── */
.section {
  padding: 120px var(--gutter);
  border-bottom: 1px solid var(--line);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section__head {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 64px;
}
.section__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  padding-top: 10px;
}
.section__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-top: 10px;
}
.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

/* ───────────── GAMES (uniform grid) ───────────── */
.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.game-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  transition: border-color .3s, transform .4s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}
.game-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }

.game-card__art {
  position: absolute; inset: 0;
  background: var(--bg-2);
  overflow: hidden;
}
.game-card__art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .4s;
  filter: saturate(1.05);
}
.game-card:hover .game-card__art img {
  transform: scale(1.06);
  filter: saturate(1.2);
}
.game-card__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 28%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.92) 100%);
  z-index: 1;
  pointer-events: none;
}

.game-card__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.game-card__overlay {
  position: absolute; inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  gap: 12px;
}
.game-card__top {
  display: flex; justify-content: space-between; align-items: start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.game-card__badge {
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.game-card__badge--live { color: var(--c3); border-color: color-mix(in oklab, var(--c3) 50%, transparent); }
.game-card__badge--demo { color: var(--c1); border-color: color-mix(in oklab, var(--c1) 50%, transparent); }
.game-card__badge--soon { color: var(--c4); border-color: color-mix(in oklab, var(--c4) 50%, transparent); }
.game-card__id { color: var(--ink-faint); }
.game-card__bottom {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px 14px;
  margin: 0 -20px -20px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.95) 100%);
}
.game-card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.game-card__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ───────────── CONTACT ───────────── */
.contact {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact__big {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.contact__big .small { display: block; font-size: 0.42em; color: var(--ink-dim); font-weight: 500; margin-bottom: 16px; letter-spacing: -0.01em; }
.contact__big a { display: inline-block; position: relative; transition: color .3s; word-break: break-word; }
.contact__big a:hover { color: var(--c2); }
.contact__big a::after {
  content: "↗"; font-size: 0.55em; vertical-align: super;
  margin-left: 0.15em; color: var(--c3);
}
.contact__side { display: flex; flex-direction: column; gap: 28px; padding-top: 12px; }
.contact__block .contact__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 8px;
}
.contact__block .contact__val { font-family: var(--mono); font-size: 13px; color: var(--ink); word-break: break-word; }
.contact__roles { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.contact__role {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
.contact__role .role-status { color: var(--c3); white-space: nowrap; }

/* ───────────── FOOTER ───────────── */
.footer {
  padding: 80px var(--gutter) 32px;
  background: var(--bg);
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer__mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 32px;
  overflow: hidden;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.footer__social { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__social a { transition: color .2s; }
.footer__social a:hover { color: var(--c2); }

/* Powered by Uğur Bilgiç credit, sits above the big PIXELCIUS wordmark */
.footer__credit {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.footer__credit-pre {
  color: var(--ink-faint);
}
.footer__credit-name {
  display: inline-flex;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 32px);
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
}
.footer__credit-name::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c1), var(--c2), var(--c3), transparent);
  background-size: 200% 100%;
  animation: credit-underline 6s linear infinite;
}
.footer__credit-char {
  display: inline-block;
  animation: credit-char 4.5s cubic-bezier(.4,.1,.2,1) infinite;
  will-change: transform, color, filter;
}
@keyframes credit-char {
  /* Each character does a sleek pulse + accent flash */
  0%, 60%, 100% {
    transform: translateY(0);
    color: var(--ink);
    filter: drop-shadow(0 0 0 transparent);
  }
  20% {
    transform: translateY(-3px);
    color: var(--c1);
    filter: drop-shadow(0 0 8px color-mix(in oklab, var(--c1) 60%, transparent));
  }
  35% {
    transform: translateY(0);
    color: var(--c2);
    filter: drop-shadow(0 0 6px color-mix(in oklab, var(--c2) 50%, transparent));
  }
  50% {
    transform: translateY(0);
    color: var(--ink);
  }
}
@keyframes credit-underline {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.footer__credit-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.footer__credit-line::after {
  content: "";
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--c1), transparent);
  animation: credit-line-sweep 4.5s ease-in-out infinite;
}
@keyframes credit-line-sweep {
  0%   { left: -30%; }
  60%  { left: 100%; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .footer__credit-char,
  .footer__credit-name::after,
  .footer__credit-line::after { animation: none !important; }
}
/* ───────────── SWORDSMAN HERO SCENE ─────────────
   12s loop, all phases keyed off animation-delay against shared duration.
   Phases (s):
     0.0–0.8  cut1     first slash carves \
     0.8–1.4  cut2     second slash carves /  → X rift
     1.4–2.0  open     rift opens, glow flares
     2.0–3.6  enter    swordsman emerges
     3.6–5.4  comboX   two huge X-arc slashes
     5.4–7.2  comboI   two vertical I slashes
     7.2–8.8  exit     pivots back into rift
     8.8–10.0 close    rift edges retract + fade
    10.0–12.0 rest
*/
.sword-scene {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}
.sword-scene__void,
.sword-scene__rift,
.sword-scene__slashes {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.sword-scene__void  { z-index: 6; }
.sword-scene__rift  { z-index: 7; }
.sword-scene__slashes { z-index: 9; mix-blend-mode: screen; }

/* ─── DEPTH VOID inside the rift ─── */
.rift-void {
  opacity: 0;
  animation: void-reveal 12s linear infinite;
  transform-origin: 50% 50%;
  will-change: opacity, transform;
}
.rift-void__abyss {
  animation: void-abyss 12s linear infinite;
  transform-origin: 500px 350px;
}
.rift-void__haze {
  animation: void-haze 12s linear infinite;
  transform-origin: 500px 350px;
  mix-blend-mode: screen;
}
@keyframes void-reveal {
  0%, 11.6%   { opacity: 0; }                     /* before second cut completes */
  13%         { opacity: 0.6; }
  16.6%       { opacity: 1; }                     /* fully open at 2.0s */
  66.6%       { opacity: 1; }                     /* hold open during combat */
  70%         { opacity: 0.95; }
  76.6%       { opacity: 0.4; }                   /* shrinking as rift closes */
  83.3%, 100% { opacity: 0; }
}
@keyframes void-abyss {
  0%, 11.6% { transform: scale(0.05, 0.05); }
  16.6%     { transform: scale(1, 1); }
  60%       { transform: scale(1, 1); }
  73.3%     { transform: scale(0.9, 0.9); }
  83.3%     { transform: scale(0.05, 0.05); }
  100%      { transform: scale(0.05, 0.05); }
}
@keyframes void-haze {
  0%, 11.6% { transform: scale(0.1, 0.1); opacity: 0; }
  14%       { opacity: 0.4; }
  18%       { transform: scale(1.2, 1.2); opacity: 0.9; }   /* small flare on open */
  24%       { transform: scale(1, 1); opacity: 0.55; }      /* settle */
  60%       { transform: scale(1, 1); opacity: 0.55; }
  73.3%     { transform: scale(0.95, 0.95); opacity: 0.5; }
  83.3%     { transform: scale(0.1, 0.1); opacity: 0; }
  100%      { transform: scale(0.1, 0.1); opacity: 0; }
}

/* sparks removed — looked like fireworks */
.rift-spark { display: none !important; }

/* Rift cuts — start as nothing, then a thin razor line is drawn, then opens */
.rift line {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.rift__core {
  stroke: #000;
  stroke-width: 0;
  filter: blur(0.4px);
}
.rift__edge {
  stroke: #fff;
  stroke-width: 0;
  opacity: 0;
}
.rift__glow {
  stroke-width: 0;
  opacity: 0;
  filter: blur(6px);
}
/* Remove the old burst circle styles (replaced by void/sparks system) */
.rift__burst { display: none; }

/* Sword tip glow when slashing the rift */
.rift--a .rift__core    { animation: rift-core   12s linear infinite; }
.rift--a .rift__edge    { animation: rift-edge-a 12s linear infinite; }
.rift--a .rift__glow    { animation: rift-glow-a 12s linear infinite; }
.rift--b .rift__core    { animation: rift-core   12s linear infinite; animation-delay: -11.4s; /* +0.6s offset */ }
.rift--b .rift__edge    { animation: rift-edge-b 12s linear infinite; }
.rift--b .rift__glow    { animation: rift-glow-b 12s linear infinite; }

/* Stroke draw uses scale via stroke-width itself (no need for dash math because both lines run full segment length).
   We animate stroke-width 0→14 to "open", then back to 0 to close. */
@keyframes rift-edge-a {
  /* 0–0.8s = 0–6.66% : draw line razor-thin */
  0%   { stroke-width: 0;  opacity: 0; }
  1%   { stroke-width: 0.6; opacity: 1; }
  6.6% { stroke-width: 1.2; opacity: 1; }
  /* 1.4–2.0s = 11.6–16.6% : open */
  11.6% { stroke-width: 1.5; opacity: 1; }
  16.6% { stroke-width: 9;   opacity: 1; }
  /* hold open 16.6–66.6% (2–8s) */
  66.6% { stroke-width: 9;   opacity: 1; }
  /* 8.8–10.0s = 73.3–83.3% : close */
  73.3% { stroke-width: 9;   opacity: 1; }
  83.3% { stroke-width: 0;   opacity: 0; }
  100%  { stroke-width: 0;   opacity: 0; }
}
@keyframes rift-edge-b {
  /* second cut starts at 0.8s = 6.6% */
  0%, 6.6% { stroke-width: 0;  opacity: 0; }
  7.6%     { stroke-width: 0.6; opacity: 1; }
  11.6%    { stroke-width: 1.2; opacity: 1; }
  16.6%    { stroke-width: 9;   opacity: 1; }
  66.6%    { stroke-width: 9;   opacity: 1; }
  73.3%    { stroke-width: 9;   opacity: 1; }
  83.3%    { stroke-width: 0;   opacity: 0; }
  100%     { stroke-width: 0;   opacity: 0; }
}
@keyframes rift-core {
  0%   { stroke-width: 0; }
  6.6% { stroke-width: 0; }
  11.6%{ stroke-width: 1; }
  16.6%{ stroke-width: 18; }
  66.6%{ stroke-width: 18; }
  73.3%{ stroke-width: 18; }
  83.3%{ stroke-width: 0; }
  100% { stroke-width: 0; }
}
@keyframes rift-glow-a {
  0%, 6.6% { stroke-width: 0; opacity: 0; }
  11.6%    { stroke-width: 8;  opacity: 0.5; }
  16.6%    { stroke-width: 26; opacity: 0.85; }
  20%      { stroke-width: 38; opacity: 1; }
  60%      { stroke-width: 26; opacity: 0.7; }
  73.3%    { stroke-width: 22; opacity: 0.55; }
  83.3%    { stroke-width: 0;  opacity: 0; }
  100%     { stroke-width: 0;  opacity: 0; }
}
@keyframes rift-glow-b {
  0%, 13.3% { stroke-width: 0; opacity: 0; }
  16.6%    { stroke-width: 22; opacity: 0.85; }
  20%      { stroke-width: 38; opacity: 1; }
  60%      { stroke-width: 26; opacity: 0.7; }
  73.3%    { stroke-width: 22; opacity: 0.55; }
  83.3%    { stroke-width: 0;  opacity: 0; }
  100%     { stroke-width: 0;  opacity: 0; }
}
/* rift-burst removed; replaced by void + sparks */

/* Big X / I screen slashes — drawn by stroke-dasharray */
.slash {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.6)) drop-shadow(0 0 22px var(--c1));
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  opacity: 0;
}
.slash--x1 { stroke: url(#slash-x1); animation: slash-arc 12s linear infinite; animation-delay: 0s;     }
.slash--x2 { stroke: url(#slash-x2); animation: slash-arc 12s linear infinite; animation-delay: -11.4s;  /* +0.6s */ }
.slash--i1 { stroke: url(#slash-i);  animation: slash-arc-i1 12s linear infinite; }
.slash--i2 { stroke: url(#slash-i);  animation: slash-arc-i2 12s linear infinite; }

/* X arcs run during 3.6–5.4s window (30%–45%).
   First arc 30–37%, second 33.5–40.5% so they overlap into an X. */
@keyframes slash-arc {
  0%, 30%   { stroke-dashoffset: 1500; opacity: 0; stroke-width: 6; }
  31%       { stroke-dashoffset: 1500; opacity: 1; stroke-width: 14; }
  37%       { stroke-dashoffset: 0;    opacity: 1; stroke-width: 12; }
  40%       { stroke-dashoffset: 0;    opacity: 0.65; stroke-width: 8; }
  44%       { stroke-dashoffset: 0;    opacity: 0; stroke-width: 4; }
  100%      { stroke-dashoffset: 1500; opacity: 0; }
}
/* I slashes 5.4–7.2s = 45%–60%. i1 (downward) 45–52%, i2 (upward) 52–59%. */
@keyframes slash-arc-i1 {
  0%, 45%   { stroke-dashoffset: 1500; opacity: 0; stroke-width: 6; }
  46%       { stroke-dashoffset: 1500; opacity: 1; stroke-width: 14; }
  52%       { stroke-dashoffset: 0;    opacity: 1; stroke-width: 12; }
  56%       { stroke-dashoffset: 0;    opacity: 0; stroke-width: 6; }
  100%      { stroke-dashoffset: 1500; opacity: 0; }
}
@keyframes slash-arc-i2 {
  0%, 52%   { stroke-dashoffset: 1500; opacity: 0; stroke-width: 6; }
  53%       { stroke-dashoffset: 1500; opacity: 1; stroke-width: 14; }
  59%       { stroke-dashoffset: 0;    opacity: 1; stroke-width: 12; }
  63%       { stroke-dashoffset: 0;    opacity: 0; stroke-width: 6; }
  100%      { stroke-dashoffset: 1500; opacity: 0; }
}

/* ─── SWORDSMAN CHARACTER LAYERED EMERGENCE ───
   Two stacked SVGs in .sword-scene__hero-wrap:
     1) .sword-scene__hero--silhouette: dark version, visible only INSIDE rift area
     2) .sword-scene__hero--main: full-color version, masked by an animated clip-path
        that reveals from the rift outward (top-right of the X first — sword tip,
        then arm, then body, then legs).
*/
.sword-scene__hero-wrap {
  position: absolute;
  z-index: 8;
  width: 220px;
  height: 360px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%) scale(0.85);
  pointer-events: none;
  animation: hero-pose 12s cubic-bezier(.25,.6,.2,1) infinite;
  will-change: transform;
}
.sword-scene__hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,0.5));
  will-change: opacity, clip-path;
}
.sword-scene__hero svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Silhouette layer disabled — was causing visible bbox/shadow rectangle */
.sword-scene__hero--silhouette { display: none !important; }

/* Main character: simple opacity fade-in/out, no clip-path masking (was cutting off the sword). */
.sword-scene__hero--main {
  opacity: 0;
  animation: main-reveal 12s linear infinite;
}
@keyframes main-reveal {
  0%, 16.6%   { opacity: 0; }
  /* 17–24% (2.0–2.9s): emerge */
  18%         { opacity: 0.4; }
  22%         { opacity: 0.85; }
  26%         { opacity: 1; }
  /* hold */
  60%         { opacity: 1; }
  /* 60–73% exit */
  66%         { opacity: 0.85; }
  70%         { opacity: 0.4; }
  73%         { opacity: 0; }
  100%        { opacity: 0; }
}
/* main-glow removed — character no longer has the blue aura */

/* Body posing animation — tiny shifts during combos, exit step-back, etc.
   Runs on the wrap so transform doesn't fight clip-path. */
@keyframes hero-pose {
  0%, 16.6%   { transform: translate(-50%, -38%) scale(0.78); }    /* slightly back, smaller — depth illusion */
  20%         { transform: translate(-50%, -40%) scale(0.85); }    /* moving forward */
  24%         { transform: translate(-50%, -41%) scale(0.92); }
  30%         { transform: translate(-50%, -42%) scale(1); }       /* settled stance */
  /* X combo — slight forward lunge with each slash */
  31%         { transform: translate(-46%, -42%) scale(1.02) rotate(-2deg); }
  35%         { transform: translate(-50%, -42%) scale(1) rotate(0deg); }
  37%         { transform: translate(-54%, -42%) scale(1.02) rotate(2deg); }
  41%         { transform: translate(-50%, -42%) scale(1) rotate(0deg); }
  /* I combo */
  46%         { transform: translate(-50%, -45%) scale(1.04); }
  52%         { transform: translate(-50%, -39%) scale(1); }
  53%         { transform: translate(-50%, -39%) scale(1.04); }
  59%         { transform: translate(-50%, -45%) scale(1); }
  /* exit */
  62%         { transform: translate(-50%, -42%) scale(1) rotate(0deg); }
  66%         { transform: translate(-50%, -41%) scale(0.95) rotate(4deg); }
  70%         { transform: translate(-50%, -39%) scale(0.82) rotate(12deg); }
  73.3%       { transform: translate(-50%, -38%) scale(0.7); }
  83.3%, 100% { transform: translate(-50%, -38%) scale(0.78); }
}

/* rim-flash halo removed */
.sword-scene__rimflash { display: none; }

/* Subtle screen flash on emerge — only on actual sword impacts, not emergence */
.sword-scene__flash {
  position: absolute; inset: 0;
  z-index: 10;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18) 0%, transparent 40%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: screen-flash 12s linear infinite;
}
@keyframes screen-flash {
  0%, 30% { opacity: 0; }
  /* X combo flashes */
  31%     { opacity: 0.4; }
  33%     { opacity: 0; }
  37%     { opacity: 0.4; }
  39%     { opacity: 0; }
  /* I combo flashes */
  46%     { opacity: 0.4; }
  48%     { opacity: 0; }
  53%     { opacity: 0.4; }
  55%     { opacity: 0; }
  100%    { opacity: 0; }
}

/* Sword pivots from hand (192,205) — rotate around it for slashes */
.char__sword {
  transform-origin: 197px 205px;
  animation: sword-swing 12s linear infinite;
}
@keyframes sword-swing {
  0%, 16.6% { transform: rotate(-25deg); }   /* sheathed/back, while rift forms */
  /* During enter: sword held diagonally back */
  25%       { transform: rotate(-50deg); }   /* drawn back, ready */
  30%       { transform: rotate(-65deg); }   /* full wind-up */
  /* X1 swing: -65 → +50 */
  31%       { transform: rotate(-65deg); }
  34%       { transform: rotate(45deg); }
  37%       { transform: rotate(50deg); }
  /* X2 swing: +50 → -55 */
  37.5%     { transform: rotate(50deg); }
  40%       { transform: rotate(-50deg); }
  41%       { transform: rotate(-55deg); }
  /* I1 swing: vertical down (raise overhead, chop) */
  45%       { transform: rotate(-110deg); }
  46%       { transform: rotate(-130deg); }
  50%       { transform: rotate(-30deg); }
  52%       { transform: rotate(-15deg); }
  /* I2 swing: upward (down → up sweep) */
  53%       { transform: rotate(40deg); }
  56%       { transform: rotate(-90deg); }
  59%       { transform: rotate(-100deg); }
  /* exit: lower sword */
  62%       { transform: rotate(-40deg); }
  73.3%     { transform: rotate(-20deg); }
  83.3%, 100%{ transform: rotate(-25deg); }
}

/* Sword tip flash on each impact */
.char__sword-tip {
  animation: tip-flash 12s linear infinite;
  filter: drop-shadow(0 0 8px var(--c1));
}
@keyframes tip-flash {
  0%, 30%, 36%, 39%, 45%, 51%, 54%, 60% { opacity: 0.7; r: 2.2; }
  31%, 37%, 46%, 52%, 53%, 59% { opacity: 1; r: 6; }
  100% { opacity: 0.7; r: 2.2; }
}

/* Cloak sway */
.char__cloak {
  transform-origin: 110px 130px;
  animation: cloak-sway 4s ease-in-out infinite;
}
.char__cloak--r {
  animation-delay: -0.2s;
}
@keyframes cloak-sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50%      { transform: rotate(1.5deg); }
}
.char__eye { animation: eye-pulse 2s ease-in-out infinite; }
@keyframes eye-pulse {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.6) drop-shadow(0 0 4px var(--c1)); }
}

/* speedlines removed — they looked amateur */
.sword-scene__speedlines { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .sword-scene__hero, .sword-scene__hero-wrap, .char__sword, .char__sword-tip,
  .rift line, .rift-spark, .rift-void, .slash, .sword-scene__speedlines,
  .sword-scene__rimflash, .sword-scene__flash {
    animation: none !important;
    opacity: 0.6;
  }
}

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .nav__links { display: none; }
  .hero__wordmark { font-size: clamp(72px, 16vw, 140px); }
  .footer__mark { font-size: clamp(80px, 16vw, 180px); }
  .marquee { font-size: 36px; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .section__head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 40px; }
  .section__num, .section__label { padding-top: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }

  /* Nav */
  .nav {
    padding: 14px var(--gutter);
    grid-template-columns: 1fr auto;
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .nav__brand-name { font-size: 11px; letter-spacing: 0.14em; }
  .nav__brand-tag { display: none; }
  .nav__lang { margin-left: auto; font-size: 10px; gap: 4px; }
  .nav__lang span { margin: 0 2px; }

  /* Hero: stacked, smaller ball, content below */
  .hero {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-top: 70px;
  }
  .hero__canvas {
    position: relative;
    height: 320px;
    width: 100%;
  }
  .hero__content {
    position: relative;
    height: auto;
    inset: auto;
    pointer-events: auto;
  }
  .hero__tagline {
    position: relative;
    top: auto; left: auto;
    padding: 20px var(--gutter) 0;
    font-size: 11px;
    max-width: 100%;
    z-index: 4;
  }
  .hero__center { display: none; }
  .hero__bottom {
    position: relative;
    left: auto; right: auto; bottom: auto;
    padding: 24px var(--gutter) 32px;
  }
  .hero__wordmark { font-size: 56px !important; letter-spacing: -0.04em; }
  .hero::after { display: none; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 14px; font-size: 9px; }
  .hero__meta .value { font-size: 10px; }

  /* Manifesto */
  .marquee { font-size: 28px; gap: 32px; }
  .marquee > span { gap: 32px; }
  .manifesto { padding: 20px 0; }

  /* Sections */
  .section { padding: 64px var(--gutter); }
  .section__head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 32px; }
  .section__num, .section__label { padding-top: 0; }
  .section__title { font-size: 36px; line-height: 1.05; }

  /* Contact */
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .contact__big { font-size: 28px; line-height: 1.1; word-break: break-word; overflow-wrap: anywhere; }
  .contact__big .small { font-size: 12px; margin-bottom: 10px; }
  .contact__big a::after { font-size: 0.5em; }

  /* Games */
  .games { grid-template-columns: 1fr; gap: 16px; }
  .game__title { font-size: 22px; }

  /* Footer */
  .footer { padding: 40px var(--gutter) 24px; }
  .footer__credit { font-size: 9px; gap: 10px; margin-bottom: 20px; padding-bottom: 16px; flex-wrap: wrap; }
  .footer__credit-line { display: none; }
  .footer__mark { font-size: 56px; margin-bottom: 20px; }
  .footer__row { flex-direction: column; align-items: flex-start; gap: 16px; font-size: 10px; }
  .footer__social { flex-wrap: wrap; gap: 14px; }

  /* Openings */
  .openings__row { grid-template-columns: 1fr auto; font-size: 11px; gap: 8px; }
  .openings__role { font-size: 12px; }

  /* Swordsman: scale down on mobile */
  .sword-scene__hero-wrap { width: 140px; height: 230px; transform: translate(-50%, -42%) scale(0.7); }

}
