
/* Layout concept: dark-first (with a light toggle) page built around an "ion" motif (TechXon = xenon + ion).
   Boldness lives in one place: the orbiting-atom canvas in the hero, echoed by the scrolling service ticker.
   Everything else is quiet: hairlines, wide display type, one electric-blue accent. */
:root {
  /* Dark theme (default). Every colour on the site comes from these tokens. */
  --ink: #07080d;          /* page background */
  --ink2: #0d0f17;         /* raised surfaces */
  --ink3: #141824;         /* mockup backgrounds */
  --line: #222838;         /* hairlines and borders */
  --line2: #2c3550;        /* stronger border (orbit rings) */
  --bone: #eceae4;         /* main text */
  --mute: #8d94ab;         /* secondary text */
  --xenon: #5b7cff;        /* the one accent colour */
  --xenon-soft: rgba(91, 124, 255, .16);
  --glow: rgba(91, 124, 255, .55);
  --nav-bg: rgba(7, 8, 13, .8);
  --on-xenon: #fff;        /* text on top of the accent colour */
  --display: "Unbounded", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
/* Light theme: switched by the toggle button (assets/js/main.js sets data-theme on <html>). */
:root[data-theme="light"] {
  --ink: #f5f6fa;
  --ink2: #ffffff;
  --ink3: #e9ecf4;
  --line: #d6dae7;
  --line2: #b9c0d6;
  --bone: #0b0e1a;
  --mute: #566079;
  --xenon: #3550e8;
  --xenon-soft: rgba(53, 80, 232, .12);
  --glow: rgba(53, 80, 232, .35);
  --nav-bg: rgba(245, 246, 250, .82);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--xenon); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--xenon); color: var(--on-xenon); }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(4rem, 9vw, 8rem); }
h2.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.mute { color: var(--mute); }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  transition: color .3s, border-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--xenon); transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn svg { width: 1em; height: 1em; transition: transform .3s; }
.btn:hover svg { transform: translate(3px, -3px); }
.btn-solid { background: var(--bone); color: var(--ink); }
.btn-solid:hover { color: var(--on-xenon); }
.btn-ghost { border: 1px solid var(--line); color: var(--bone); }
.btn-ghost:hover { border-color: var(--xenon); }


/* ---------- page header (inner pages) ---------- */
main:focus { outline: none; }
.phead { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.phead h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6.2vw, 4.3rem); line-height: 1.05; letter-spacing: -.035em; max-width: 18ch; text-wrap: balance; }
.phead p { margin-top: 1.4rem; max-width: 36rem; color: var(--mute); font-size: 1.12rem; }
.sub-h { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.8rem); letter-spacing: -.025em; margin-bottom: 1.6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn::before { transition: none; }
}

/* skip link for keyboard users */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--bone); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; transition: top .2s; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + .6rem); }

/* smooth colour change when the theme is switched */
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after { transition: background-color .35s, color .35s, border-color .35s, fill .35s, stroke .35s !important; }

[hidden] { display: none !important; }

/* breadcrumbs */
.crumbs { margin-bottom: 1.4rem; font-size: .85rem; color: var(--mute); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line2, #2c3550); }
.crumbs a { color: var(--mute); transition: color .2s; }
.crumbs a:hover { color: var(--bone); }
.crumbs [aria-current] { color: var(--bone); }
