/* AppScore — homepage styles.
   Concept: "Software with gravity". A dark, spatial ground; one gradient (cyan → blue → violet) for emphasis;
   four discipline colours that stay the same everywhere (hero orbits, timeline, expertise map).
   Motion is slow and purposeful, and switches off with prefers-reduced-motion. */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #05060b;
  --bg-1: #080a13;
  --bg-2: #0c1020;
  --line: rgba(160, 175, 230, 0.12);
  --line-2: rgba(160, 175, 230, 0.22);
  --ink: #eef1f8;
  --ink-2: #a9b1c9;
  --ink-3: #7a83a1;

  --cyan: #5ee7ff;
  --blue: #7c8cff;
  --violet: #b58cff;
  --amber: #ffc56b;
  --green: #6ee7a8;
  --grad: linear-gradient(92deg, var(--cyan), var(--blue) 55%, var(--violet));

  /* One colour per discipline, used by the hero orbits, the timeline and the expertise map. */
  --c-software: var(--blue);
  --c-mobile: var(--cyan);
  --c-xr: var(--violet);
  --c-ai: var(--amber);

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
button { font: inherit; }
::selection { background: rgba(124, 140, 255, 0.38); color: #fff; }
[hidden] { display: none !important; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.grad {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* keep the gradient continuous on wrapped lines */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.dim { color: var(--ink-3); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px -10px rgba(124, 140, 255, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, 0.025); }
.btn-ghost:hover { border-color: rgba(170, 185, 240, 0.5); background: rgba(255, 255, 255, 0.06); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn-primary .vh + svg, .btn svg + .vh { margin: 0; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-weight: 500; text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid var(--line-2);
  transition: border-color 0.25s, color 0.25s;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.text-link:hover { border-color: var(--cyan); }
.text-link:hover svg { transform: translate(2px, -2px); }
.text-link svg.up { transform: rotate(-90deg); }
.text-link:hover svg.up { transform: rotate(-90deg) translateX(2px); }

.chip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  background: rgba(7, 9, 18, 0.62); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer; transition: border-color 0.25s, background-color 0.25s;
}
.chip-btn:hover { border-color: rgba(94, 231, 255, 0.6); background: rgba(12, 16, 32, 0.8); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 0.4s, border-color 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled {
  background: rgba(5, 6, 11, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
/* While the menu is open the header must not have a backdrop-filter: it would become the containing
   block of the fixed menu and clip it to the header bar. The menu brings its own background. */
.site-header.is-open {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  transition: none;
}
.header-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); position: relative; z-index: 2; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); border-radius: 10px; }
.brand-mark { width: 36px; height: 36px; overflow: visible; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.brand:hover .mark-ring { filter: drop-shadow(0 0 4px rgba(124, 140, 255, 0.9)); }

.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: 9px 15px; border-radius: 999px;
  color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color 0.25s, background-color 0.25s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.045); }
.nav a[aria-current="location"] { color: var(--ink); }
.nav a[aria-current="location"]::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transform: translateX(-50%);
}
.nav a.nav-cta { margin-left: 10px; color: var(--ink); border: 1px solid var(--line-2); }
.nav a.nav-cta:hover { border-color: rgba(170, 185, 240, 0.5); }
.nav a.nav-cta[aria-current="location"]::after { bottom: -9px; }

.menu-button {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px;
  color: var(--ink); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
  font-size: 15px; font-weight: 500; cursor: pointer;
}
.menu-icon { position: relative; width: 16px; height: 10px; }
.menu-icon i { position: absolute; left: 0; width: 16px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.menu-icon i:first-child { top: 0; }
.menu-icon i:last-child { top: 8px; }
.menu-button[aria-expanded="true"] .menu-icon i:first-child { top: 4px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon i:last-child { top: 4px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 32px) max(var(--gutter), env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: rgba(5, 6, 11, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  overflow-y: auto;
}
.menu ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu ol a {
  display: flex; align-items: baseline; gap: 16px; padding: 8px 0;
  font-size: clamp(36px, 10vw, 56px); font-weight: 600; font-stretch: 88%; letter-spacing: -0.04em; line-height: 1.05;
  text-decoration: none; color: var(--ink);
}
.menu ol a[aria-current="location"] { color: var(--cyan); }
.menu-mail { color: var(--ink-2); font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--line-2); align-self: flex-start; padding-bottom: 4px; }
.menu.is-open ol li { animation: menu-in 0.5s var(--ease) both; }
.menu.is-open ol li:nth-child(2) { animation-delay: 0.04s; }
.menu.is-open ol li:nth-child(3) { animation-delay: 0.08s; }
.menu.is-open ol li:nth-child(4) { animation-delay: 0.12s; }
.menu.is-open ol li:nth-child(5) { animation-delay: 0.16s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 880px) {
  .nav { display: none; }
  .menu-button { display: inline-flex; }
}

/* ---------- section scaffolding ---------- */
.section { position: relative; padding-block: clamp(96px, 13vw, 176px); }
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--wrap), 100% - 2 * var(--gutter)); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
}
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 24px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
}
.kicker::after { content: ""; width: 44px; height: 1px; background: var(--line-2); }
h2 {
  font-size: clamp(42px, 6.6vw, 96px); line-height: 0.95; font-weight: 600; font-stretch: 86%; letter-spacing: -0.045em;
}
.section-head { margin-bottom: clamp(56px, 8vw, 104px); }
.section-intro { max-width: 40rem; margin: 30px 0 0; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--ink-2); }
/* headline left, introduction right, sharing a baseline: an editorial split on wide screens */
@media (min-width: 961px) {
  .section-head--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
  .section-head--split .section-intro { margin: 0 0 0.4em; }
  .section-head--split .section-intro + p { grid-column: 2; margin: 0; color: var(--ink-2); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(680px, 100vh); min-height: max(680px, 100svh);
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 96px;
}
.hero-sky {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 46% 52% at 70% 50%, rgba(64, 76, 210, 0.22), transparent 70%),
    radial-gradient(ellipse 30% 36% at 82% 64%, rgba(150, 100, 255, 0.15), transparent 70%),
    radial-gradient(ellipse 30% 28% at 60% 34%, rgba(70, 200, 255, 0.09), transparent 70%),
    var(--bg);
}
.hero-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-canvas.is-ready { opacity: 1; }
.hero::after {
  /* scrim under the text, so the copy never competes with the orbits */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 6, 11, 0.92) 0%, rgba(5, 6, 11, 0.78) 34%, rgba(5, 6, 11, 0.32) 50%, rgba(5, 6, 11, 0) 64%),
              linear-gradient(0deg, var(--bg) 0%, rgba(5, 6, 11, 0) 22%);
}
.hero-inner { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 500 13px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.hero-title {
  margin: 22px 0 0; max-width: 10ch;
  font-size: clamp(64px, 11.5vw, 176px); line-height: 0.86; font-weight: 600; font-stretch: 82%; letter-spacing: -0.05em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }  /* room for the descenders of g and y */
.hero-title .line > span { display: inline-block; }
.hero-lede { max-width: 33rem; margin: 30px 0 0; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.proof { display: flex; flex-wrap: wrap; gap: 18px clamp(24px, 4vw, 52px); list-style: none; margin: 60px 0 0; padding: 0; }
.proof li { display: grid; gap: 3px; padding-left: 16px; border-left: 1px solid var(--line-2); }
.proof-k { font: 500 11px/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.proof b { font-size: 32px; font-weight: 600; font-stretch: 88%; letter-spacing: -0.035em; line-height: 1.05; }
.proof-v { font-size: 14px; color: var(--ink-2); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 44px; border-radius: 14px; border: 1px solid var(--line-2);
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(18px); opacity: 0; } 100% { opacity: 0; } }

/* Entrance: short, never blocks interaction. */
.hero-in { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
.hero-title .hero-in { animation-name: rise-line; animation-duration: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes rise-line { from { transform: translateY(102%); } }

@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hero { align-items: flex-end; padding-bottom: 72px; padding-top: calc(var(--header-h) + 34vh); }
  .hero::after { background: linear-gradient(0deg, rgba(5, 6, 11, 0.96) 0%, rgba(5, 6, 11, 0.86) 48%, rgba(5, 6, 11, 0.2) 78%, rgba(5, 6, 11, 0) 100%); }
  .hero-sky { background: radial-gradient(ellipse 80% 40% at 62% 24%, rgba(64, 76, 210, 0.26), transparent 70%), var(--bg); }
  .proof { margin-top: 44px; gap: 18px 22px; }
  .proof b { font-size: 26px; }
  .scroll-cue { display: none; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .proof { margin-top: 40px; }
  .scroll-cue { display: none; }
}

/* ---------- projects (shared) ---------- */
.project { position: relative; margin-top: clamp(96px, 12vw, 168px); }
.work .section-head + .project, .work .wrap:first-child + .project { margin-top: 0; }
.project-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 20px;
  font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.project-no { color: var(--ink); }
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 13px/1.3 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink-2);
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.status-live i { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.project-title { margin: 0 0 22px; font-size: clamp(46px, 6.2vw, 88px); line-height: 0.95; font-weight: 600; font-stretch: 86%; letter-spacing: -0.045em; }
.project p { color: var(--ink-2); }
.project .project-lede { max-width: 36rem; margin-bottom: 18px; font-size: clamp(19px, 1.75vw, 24px); line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; }
.project-lede strong { font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 32px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
.stack span { padding: 7px 11px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font: 500 12px/1 var(--mono); color: var(--ink-2); }

/* ---------- project panels: every project sits in one frame of the same width, each with its own tint ---------- */
.panel {
  position: relative; overflow: hidden; isolation: isolate;
  width: calc(min(100%, var(--wrap)) - 2 * var(--gutter)); margin-inline: auto;
  border-radius: 32px; border: 1px solid var(--line);
}
.biz-panel { width: auto; }          /* already inside .wrap */
@media (max-width: 560px) { .panel { border-radius: 24px; } }

/* ---------- 01 Gravisphere ---------- */
/* Deep blue night with an orbit of the game's own stardust (gold grains, cyan ring grains) behind everything. */
.panel-gs {
  padding: clamp(12px, 1.6vw, 20px);
  border-color: rgba(77, 230, 255, 0.12);
  background: radial-gradient(ellipse 70% 60% at 72% 42%, #1a2678 0%, #0b1036 48%, #05060d 100%);
}
/* the orbit circles the playable stage and fades out before the details below */
.panel-gs::before {
  content: ""; position: absolute; left: 0; right: 0; top: 14%; height: 60%; z-index: -1; pointer-events: none; opacity: 0.75;
  background: url("../img/gravisphere-orbit.svg") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 80%, transparent 100%);
}
@media (max-width: 900px) { .panel-gs::before { top: 22%; height: 34%; } }
.gs-stage-wrap { }
.gs-stage {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 14 / 9; border-radius: 22px; width: min(100%, 1000px); margin-inline: auto;
  background: radial-gradient(ellipse 70% 80% at 50% 45%, rgba(22, 33, 90, 0.55) 0%, rgba(7, 9, 18, 0.55) 100%);
  border: 1px solid rgba(77, 230, 255, 0.16);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.gs-stage.is-live { cursor: crosshair; }
.gs-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s var(--ease); }
.gs-stage.is-live .gs-poster { opacity: 0; }
.gs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gs-logo {
  position: absolute; left: clamp(18px, 2.4vw, 32px); top: clamp(16px, 2.2vw, 28px);
  width: clamp(110px, 10vw, 140px); opacity: 0; transition: opacity 1s var(--ease) 0.3s; pointer-events: none;
}
.gs-stage.is-live .gs-logo { opacity: 0.95; }
.gs-head {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 20px clamp(32px, 5vw, 72px); align-items: end;
  padding: clamp(20px, 3vw, 40px) clamp(8px, 4vw, 52px) clamp(24px, 3vw, 36px);
}
.gs-title { margin: 6px 0 0; }
.project .gs-lede { margin: 0; max-width: 40rem; color: #c9d0ea; }
.project .gs-tagline { margin: 0 0 14px; font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; font-stretch: 88%; line-height: 1.08; letter-spacing: -0.03em; color: #f2f5ff; }
.gs-traits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.gs-traits li { display: grid; gap: 8px; align-content: start; }
.gs-traits b { font-size: 16px; font-weight: 600; color: #f2f5ff; }
.gs-traits li > span:last-child { font-size: 15px; line-height: 1.55; color: #a3abcc; }
.gs-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(77, 230, 255, 0.1); color: #4de6ff; }
.gs-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gs-side p:not(.stack) { margin: 0; color: #a3abcc; }
.gs-btn { background: #ffcc59; color: #151002; }
.gs-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 40px -10px rgba(255, 204, 89, 0.65); }
@media (max-width: 560px) { .gs-traits { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .gs-head { grid-template-columns: 1fr; } }
.gs-title-logo { width: min(420px, 88%); }
.gs-ui {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  width: min(100%, 1000px); margin: 12px auto 0;
}
.gs-hint {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 9px 14px;
  border-radius: 999px; background: rgba(7, 9, 18, 0.6); border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 12px/1.2 var(--mono); letter-spacing: 0.06em; color: rgba(246, 251, 255, 0.82);
  opacity: 0; transition: opacity 0.6s;
}
.gs-stage.is-live + .gs-ui .gs-hint { opacity: 1; }
.gs-stage.has-field + .gs-ui .gs-hint { opacity: 0.55; }
.gs-hint-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #f6fbff; box-shadow: 0 0 8px rgba(246, 251, 255, 0.7); }
.gs-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-stage:not(.is-live) + .gs-ui [data-gs-reset] { display: none; }
.gs-status {
  position: absolute; right: clamp(16px, 2.2vw, 28px); top: clamp(16px, 2.2vw, 26px); margin: 0;
  padding: 8px 14px; border-radius: 999px; background: rgba(7, 9, 18, 0.6); border: 1px solid rgba(255, 204, 89, 0.35);
  font: 500 12px/1.2 var(--mono); letter-spacing: 0.06em; color: #ffcc59;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.5s, transform 0.5s var(--ease);
}
.gs-status.is-on { opacity: 1; transform: none; }
.gs-caption { max-width: 46rem; margin: 16px auto 0; padding-inline: 8px; text-align: center; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.gs-caption b { color: var(--ink-2); font-weight: 600; }

.project-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); padding: 0 clamp(8px, 4vw, 52px) clamp(28px, 4vw, 52px); }
.traits { list-style: none; margin: 4px 0 0; padding: 0; }
.traits li { display: grid; gap: 3px; padding: 15px 0; border-top: 1px solid var(--line); }
.traits li:last-child { border-bottom: 1px solid var(--line); }
.traits b { font-size: 16px; font-weight: 600; color: var(--ink); }
.traits span { font-size: 15px; color: var(--ink-2); }

@media (max-width: 900px) {
  .project-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gs-stage { border-radius: 16px; }
  .gs-hint { font-size: 11px; }
  .gs-status { right: auto; left: 16px; top: 56px; }
}

/* ---------- 02 Colorball: its own warm panel, a tilted collage, balls in the air ---------- */
.cb-panel {
  border-color: rgba(255, 255, 255, 0.06); background: #0e0c12;
}
.cb-glow { position: absolute; z-index: -1; width: 70%; height: 70%; pointer-events: none; }
.cb-glow-a { left: -10%; top: -20%; background: radial-gradient(closest-side, rgba(255, 159, 28, 0.16), transparent); }
.cb-glow-b { right: -10%; bottom: -10%; background: radial-gradient(closest-side, rgba(47, 155, 255, 0.14), transparent); }
.cb-inner { padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px); }
.cb-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.cb-collage { position: relative; aspect-ratio: 6 / 5; }
.cb-shot {
  position: absolute; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  transition: transform 0.8s var(--ease);
}
.cb-shot-1 { left: 0; top: 5%; width: 74%; border-radius: 18px; transform: rotate(-4deg); }
.cb-video { display: block; overflow: hidden; color: #fff; text-decoration: none; }
.cb-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-shot-2 { right: 0; top: 36%; width: 62%; border-radius: 18px; transform: rotate(3.5deg); }
.cb-shot-3 { left: 6%; bottom: 0; width: 46%; border-radius: 16px; transform: rotate(-2deg); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.cb-collage:hover .cb-shot-1 { transform: rotate(-5deg) translateY(-6px); }
.cb-collage:hover .cb-shot-2 { transform: rotate(4.5deg) translateY(-4px); }
.cb-collage:hover .cb-shot-3 { transform: rotate(-3deg) translateY(-8px); }
.cb-ball { position: absolute; border-radius: 50%; animation: cb-float 6s ease-in-out infinite; }
.cb-ball-orange { right: 9%; top: -1%; width: 104px; height: 104px; background: radial-gradient(circle at 34% 30%, #ffe3b0 0%, #ff9f1c 36%, #b65800 100%); box-shadow: 0 24px 50px rgba(255, 140, 0, 0.35); }
.cb-ball-blue { left: 40%; top: 0; width: 40px; height: 40px; background: radial-gradient(circle at 34% 30%, #cde9ff 0%, #2f9bff 38%, #0f4e9c 100%); box-shadow: 0 14px 30px rgba(47, 155, 255, 0.35); animation-delay: -1.5s; }
.cb-ball-green { left: -2%; top: 52%; width: 70px; height: 70px; background: radial-gradient(circle at 34% 30%, #c8ffd0 0%, #3ccb55 38%, #157a2a 100%); box-shadow: 0 20px 40px rgba(60, 203, 85, 0.3); animation-delay: -3s; }
.cb-ball-purple { left: 62%; bottom: 4%; width: 54px; height: 54px; background: radial-gradient(circle at 34% 30%, #f6c8ff 0%, #c64bf0 38%, #6e1c92 100%); box-shadow: 0 18px 36px rgba(198, 75, 240, 0.35); animation-delay: -4.2s; }
.cb-ball-yellow { right: 1%; bottom: 22%; width: 28px; height: 28px; background: radial-gradient(circle at 34% 30%, #fff6c2 0%, #ffd23f 38%, #b88a00 100%); animation-delay: -2.4s; }
@keyframes cb-float { 50% { transform: translateY(-10px); } }

.cb-text { max-width: 480px; }
/* Release tags: a tinted pill with a glowing dot, in the project's own colour. */
.pill, .project .pill {
  --pc: 107, 227, 138;
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(var(--pc), 0.4); background: rgba(var(--pc), 0.08); color: rgb(var(--pc));
  font: 600 12px/1.2 var(--font); letter-spacing: 0.16em; text-transform: uppercase;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--pc)); box-shadow: 0 0 10px rgb(var(--pc)); }
.pill-gold, .project .pill-gold { --pc: 255, 204, 89; }
.pill-gold i { animation: pulse 2.4s ease-in-out infinite; }
.pill-red, .project .pill-red { --pc: 255, 92, 122; }
.gs-head .pill { margin: 2px 0 26px; }
.cb-title { margin: 28px 0 0; }
.cb-logo { width: min(300px, 80%); }
.project .cb-tagline { margin: 24px 0 0; font-size: clamp(30px, 3vw, 40px); font-weight: 600; font-stretch: 88%; line-height: 1.1; letter-spacing: -0.03em; color: #fff; }
.project .cb-copy { margin: 18px 0 0; font-size: 17px; line-height: 1.65; color: #b9b3c2; }
.cb-gear { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.cb-gear li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: #e8e4ee;
}
.cb-gear li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--b); }
.project .cb-rating { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 14px; color: #a3a9ba; }
.cb-rating svg { width: 16px; height: 16px; fill: #ffd23f; flex: none; }
.cb-rating strong { color: #eceef4; font-weight: 600; }
.cb-btn { background: #ff9f1c; color: #1a0e00; }
.cb-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 40px -10px rgba(255, 159, 28, 0.7); }


@media (max-width: 960px) {
  .cb-grid { grid-template-columns: 1fr; }
  .cb-collage { max-width: 640px; }
}
@media (max-width: 560px) {
  .cb-ball-orange { width: 72px; height: 72px; }
}

/* ---------- 03 Business application ---------- */
.biz-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 5vw, 72px);
  border-radius: 32px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 22% 50%, rgba(94, 231, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}
.biz-visual { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; justify-self: center; }
.biz-globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.biz-figure {
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-stretch: 78%; letter-spacing: -0.06em; line-height: 0.8; pointer-events: none;
}
.biz-num {
  font-size: clamp(120px, 15vw, 210px);
  background: linear-gradient(180deg, #ffffff 30%, rgba(200, 215, 255, 0.55));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(5, 6, 11, 0.9));
}
.biz-plus { align-self: flex-start; margin-top: 30%; font-size: clamp(56px, 7vw, 96px); color: var(--cyan); }
@media (max-width: 860px) {
  .biz-panel { grid-template-columns: 1fr; border-radius: 24px; }
  .biz-visual { max-width: 380px; }
}

/* ---------- 04 AuthPair ---------- */
.panel-ap {
  padding: clamp(28px, 5vw, 72px);
  background:
    radial-gradient(ellipse 55% 70% at 78% 50%, rgba(253, 121, 73, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}
.ap-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5.5vw, 88px); align-items: center; }
.ap-visual {
  --ap: #fd7949;
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(48px, 0.5fr) minmax(0, 1fr); align-items: center;
  padding: clamp(0px, 2vw, 24px) 0;
}
.ap-device { position: relative; padding: clamp(16px, 2vw, 24px); border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.09); background: linear-gradient(180deg, #121730, #0a0d1c); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.95); }
.ap-headset { border-radius: 26px 26px 34px 34px; }
.ap-phone { border-radius: 26px; padding-top: 30px; }
.ap-phone::before { content: ""; position: absolute; top: 11px; left: 50%; width: 46px; height: 5px; margin-left: -23px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.ap-label { margin: 0 0 6px; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.ap-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.ap-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin: 16px 0 14px; }
.ap-code span {
  display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 7px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  font: 500 clamp(14px, 1.6vw, 21px)/1 var(--mono); color: #ffb48a;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
.ap-headset .ap-code span { border-color: rgba(253, 121, 73, 0.32); }
.ap-input span { color: var(--ink); }
.ap-input span.is-filled { border-color: rgba(253, 121, 73, 0.55); background: rgba(253, 121, 73, 0.08); }
.ap-input span.is-caret { border-color: rgba(255, 255, 255, 0.4); }
.ap-wait { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--ink-2); }
.ap-wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--ap); box-shadow: 0 0 10px var(--ap); animation: pulse 1.6s ease-in-out infinite; }
.ap-visual.is-paired .ap-wait i { background: var(--green); box-shadow: 0 0 10px var(--green); animation: none; }
.ap-button { margin: 0; }
.ap-button span { display: block; padding: 10px; border-radius: 10px; text-align: center; font-size: 14px; font-weight: 600; background: var(--ap); color: #1d0d05; transition: background-color 0.4s; }
.ap-visual.is-paired .ap-button span { background: var(--green); }
.ap-link { width: 100%; height: 90px; overflow: visible; }
.ap-link path { fill: none; stroke: rgba(253, 121, 73, 0.5); stroke-width: 1.5; stroke-dasharray: 4 7; vector-effect: non-scaling-stroke; animation: flow 1.4s linear infinite; }
.ap-visual.is-paired .ap-link path { stroke: rgba(110, 231, 168, 0.65); }
@keyframes flow { to { stroke-dashoffset: 22; } }
@media (max-width: 960px) {
  .ap-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ap-visual { grid-template-columns: 1fr; gap: 0; }
  .ap-link { height: 46px; width: 60px; justify-self: center; transform: rotate(90deg); }
  .ap-phone { width: 82%; justify-self: end; }
}

/* ---------- 05 Relize: its own red, mixed-reality screenshots ---------- */
.rl-panel {
  padding: clamp(28px, 5vw, 72px);
  border-color: rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(ellipse 55% 70% at 78% 45%, rgba(232, 23, 74, 0.14), transparent 70%),
    linear-gradient(180deg, #100b10, #0b090e);
}
.rl-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.rl-title { color: #fff; margin: 6px 0 26px; }
.rl-logo { width: min(360px, 86%); }
.rl-text .pill { margin: 2px 0 22px; }
.rl-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rl-shot { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: #1a1418; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9); }
.rl-shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; }
.rl-shot-hero { grid-column: 1 / -1; border-radius: 18px; }
.rl-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.rl-shot:hover img { transform: scale(1.035); }
.rl-video { display: block; color: #fff; text-decoration: none; }
.cb-video::before, .rl-video::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 9, 14, 0) 45%, rgba(11, 9, 14, 0.75) 100%); }
.play-btn {
  position: absolute; z-index: 2; left: 50%; top: 45%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95); color: #0e0c12; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s var(--ease);
}
.play-btn svg { width: 24px; height: 24px; margin-left: 3px; }
.rl-video:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }
.video-label { position: absolute; z-index: 2; left: 18px; bottom: 14px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.rl-btn { background: #e8174a; color: #fff; }
.rl-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 40px -10px rgba(232, 23, 74, 0.7); }
@media (max-width: 960px) { .rl-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rl-gallery { gap: 8px; } .rl-shot { border-radius: 10px; } }

/* ---------- about / journey ---------- */
.about-story { max-width: 40rem; margin: 18px 0 0; font-size: 17px; color: var(--ink-2); }
.journey { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.journey-orbits { width: 100%; max-width: 620px; justify-self: center; overflow: visible; }
.jr { fill: none; stroke: rgba(160, 175, 230, 0.18); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: stroke 0.5s, stroke-width 0.5s, opacity 0.5s; }
.jr[data-ring="0"], .jr-body[data-ring="0"] { --c: var(--c-software); --i: 0; }
.jr[data-ring="1"], .jr-body[data-ring="1"] { --c: var(--c-mobile); --i: 1; }
.jr[data-ring="2"], .jr-body[data-ring="2"] { --c: var(--c-xr); --i: 2; }
.jr[data-ring="3"], .jr-body[data-ring="3"] { --c: var(--c-ai); --i: 3; }
.jr-body { fill: var(--c); filter: drop-shadow(0 0 5px var(--c)); transition: transform 0.5s var(--ease), opacity 0.5s; transform-box: fill-box; transform-origin: center; }
.jr.is-active { stroke: var(--c); stroke-width: 2; }
.jr-body.is-active { transform: scale(1.6); }
.jr-years text { font: 500 11px var(--mono); letter-spacing: 0.1em; fill: var(--ink-3); transition: fill 0.4s; }
.jr-years text.is-active { fill: var(--ink); }
html.motion-ok .jr-years { opacity: 0; transition: opacity 0.8s 1.4s; }
html.motion-ok .journey.in .jr-years { opacity: 1; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 16px 0 18px 26px; border-left: 1px solid var(--line); transition: border-color 0.4s, background-color 0.4s; cursor: default; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 24px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.timeline li.is-active { border-left-color: var(--c); }
.tl-year { margin: 0; font: 500 13px/1.4 var(--mono); letter-spacing: 0.12em; color: var(--c); }
.timeline h3 { margin: 4px 0 6px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.timeline li p:last-child { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* rings draw in, one after another, when the journey scrolls into view */
html.motion-ok .jr { stroke-dasharray: 1300; stroke-dashoffset: 1300; }
html.motion-ok .jr-body { opacity: 0; }
html.motion-ok .journey.in .jr { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease) calc(var(--i) * 220ms + 150ms), stroke 0.5s, stroke-width 0.5s; }
html.motion-ok .journey.in .jr-body { opacity: 1; transition: opacity 0.6s calc(var(--i) * 220ms + 900ms), transform 0.5s var(--ease); }

@media (max-width: 960px) {
  .journey { grid-template-columns: 1fr; }
  .journey-orbits { max-width: 440px; }
}
@media (min-width: 561px) and (max-width: 960px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

/* ---------- expertise map ---------- */
.map { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(56px, 2fr) minmax(0, 4fr); align-items: stretch; }
.map-skills { display: grid; gap: 14px; }
.disc {
  --c: var(--blue);
  padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.35s, background-color 0.35s, opacity 0.35s;
}
.disc h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.disc h3 i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.now {
  margin-left: 4px; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255, 197, 107, 0.45);
  font: 500 10px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.disc.is-on { border-color: rgba(170, 185, 240, 0.32); background: rgba(255, 255, 255, 0.035); }
.chips li.is-on { color: var(--ink); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.map.has-focus .disc:not(.is-on) { opacity: 0.42; }

.map-links { width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map-links path { fill: none; stroke: rgba(160, 175, 230, 0.13); stroke-width: 1.2; transition: stroke 0.35s, stroke-width 0.35s, opacity 0.35s; }
.map-links path.is-on { stroke: var(--c); stroke-width: 2; }
.map.has-focus .map-links path:not(.is-on) { opacity: 0.25; }
.map-links circle { fill: rgba(160, 175, 230, 0.4); transition: fill 0.35s; }
.map-links circle.is-on { fill: var(--c); }

.map-products { display: flex; flex-direction: column; justify-content: center; }
.map-label { margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.product {
  width: 100%; display: grid; gap: 4px; padding: 15px 18px; text-align: left;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--ink);
  cursor: pointer; transition: border-color 0.3s, background-color 0.3s, opacity 0.3s, transform 0.3s var(--ease);
}
.product b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.product span { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.product:hover, .product.is-on { border-color: rgba(170, 185, 240, 0.4); background: rgba(255, 255, 255, 0.05); }
.product[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--cyan); }
.map.has-focus .product:not(.is-on) { opacity: 0.5; }

@media (max-width: 960px) {
  .map { grid-template-columns: 1fr; gap: 40px; }
  .map-links { display: none; }
  .map-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .map-skills { grid-template-columns: 1fr; }
}

/* ---------- training: the AI colour (amber) from the expertise map ---------- */
.tr-panel {
  padding: clamp(28px, 5vw, 72px); width: auto;
  border-color: rgba(255, 197, 107, 0.16);
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(255, 197, 107, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}
.tr-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.training h2 { font-size: clamp(40px, 5.4vw, 76px); }
.project .tr-hook, .tr-hook { margin: -6px 0 18px; font-size: clamp(16px, 1.4vw, 18px); font-weight: 500; color: #ffd79a; }
.grad-ai { background: linear-gradient(92deg, #ffc56b, #ff9f6b 60%, #b58cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tr-for { margin: 18px 0 0; color: var(--ink-2); max-width: 36rem; }
.tr-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.tr-facts li { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 197, 107, 0.35); background: rgba(255, 197, 107, 0.07); color: #ffd79a; font: 500 13px/1.2 var(--font); }
.tr-btn { background: #ffc56b; color: #1a1205; }
.tr-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 40px -10px rgba(255, 197, 107, 0.65); }
.tr-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.tr-steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.tr-steps li:last-child { border-bottom: 1px solid var(--line); }
.tr-steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font: 500 13px/1.6 var(--mono); color: #ffc56b; letter-spacing: 0.08em; }
.tr-tools { margin-top: 20px; }
.tr-steps b { font-size: 17px; font-weight: 600; color: var(--ink); }
.tr-steps span { font-size: 15px; color: var(--ink-2); }
@media (max-width: 960px) { .tr-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { overflow: hidden; isolation: isolate; padding-block: clamp(120px, 15vw, 210px) clamp(160px, 22vw, 300px); }
.contact-horizon {
  /* a planet rising at the bottom edge: the closing image of the page */
  position: absolute; z-index: -1; left: 50%; top: calc(100% - clamp(110px, 15vw, 210px));
  width: max(1400px, 170vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, #0b0f22 92%, #101741 99%, transparent 100%);
  box-shadow: 0 -1px 0 rgba(150, 170, 255, 0.45), 0 -30px 120px -10px rgba(94, 140, 255, 0.35), 0 -8px 40px rgba(181, 140, 255, 0.18);
}
.contact h2 { font-size: clamp(50px, 8.6vw, 132px); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 46px; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 18px; min-height: 76px; padding: 14px 26px 14px 30px;
  border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.contact-mail:hover { transform: translateY(-2px); box-shadow: 0 22px 60px -14px rgba(124, 140, 255, 0.6); }
.contact-mail .contact-k { color: rgba(5, 6, 11, 0.55); }
.contact-v { font-size: clamp(20px, 2.5vw, 30px); font-weight: 600; letter-spacing: -0.025em; }
.contact-mail svg { width: 24px; height: 24px; transition: transform 0.35s var(--ease); }
.contact-mail:hover svg { transform: translateX(4px); }
.contact-k { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.contact-phone { display: inline-flex; align-items: baseline; gap: 12px; padding: 10px 0; font-size: 18px; color: var(--ink-2); text-decoration: none; transition: color 0.25s; }
.contact-phone:hover { color: var(--ink); }
.copy-status { min-height: 1.6em; margin: 14px 0 0; font: 500 13px/1.6 var(--mono); color: var(--green); }
@media (max-width: 560px) {
  .contact-mail { width: 100%; justify-content: space-between; gap: 12px; padding: 12px 20px 12px 22px; min-height: 68px; }
  .contact-mail .contact-k { display: none; }
}

/* ---------- footer ---------- */
.site-footer { position: relative; padding: 48px 0 calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #0b0f22; color: var(--ink-3); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.footer-brand p { margin: 14px 0 0; line-height: 1.6; }
.imprint summary {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0;
  color: var(--ink-2); font-weight: 500; cursor: pointer; list-style: none; border-radius: 6px;
}
.imprint summary::-webkit-details-marker { display: none; }
.imprint summary::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(currentColor, currentColor) center / 8px 1.4px no-repeat, linear-gradient(currentColor, currentColor) center / 1.4px 8px no-repeat;
}
.imprint[open] summary::before { background: linear-gradient(currentColor, currentColor) center / 8px 1.4px no-repeat; }
.imprint summary:hover { color: var(--ink); }
.imprint dl { margin: 14px 0 0; }
.imprint dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.imprint dt { font: 500 11px/1.9 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.imprint dd { margin: 0; color: var(--ink-2); }
.imprint dd a { color: var(--ink-2); text-underline-offset: 3px; }
.imprint dd a:hover { color: var(--ink); }
.privacy { margin: 16px 0 0; font-size: 13px; line-height: 1.6; }
.footer-end { display: grid; justify-items: end; gap: 10px; text-align: right; }
.footer-end p { margin: 0; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-end { justify-items: start; text-align: left; }
}

/* ---------- reveal on scroll (only once JS is running and motion is allowed) ---------- */
html.motion-ok [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.motion-ok [data-reveal].in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@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; transition-delay: 0s !important; }
  .scroll-cue { display: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .hero-canvas, .scroll-cue, .gs-stage, .gs-caption, .contact-horizon, .copy-btn { display: none !important; }
  body, .site-footer { background: #fff; color: #000; }
  .imprint dl { display: block; }
}
