/* ForceScripts. Palette taken from the logo: navy wordmark, sky-to-blue mark. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Theme tokens: light */
  --bg: #ffffff;
  --bg-soft: #f2f7fb;
  --surface: #ffffff;
  --surface-2: #f6fafd;
  --ink: #0d2a40;
  --ink-2: #41586a;
  --ink-3: #5a7082;
  --line: #dbe6ee;
  --line-strong: #bdd0dd;
  --link: #165a93;
  --stat: #1b5277;
  --header: rgba(255, 255, 255, .86);
  --grid: rgba(29, 111, 179, .1);
  --glow-a: rgba(111, 195, 230, .3);
  --glow-b: rgba(29, 111, 179, .14);
  --text-grad: linear-gradient(100deg, #165a93 0%, #2589cf 100%);
  --btn: linear-gradient(135deg, #1d6fb3, #165a93);
  --btn-hover: linear-gradient(135deg, #1a639f, #124d7e);
  --btn-ink: #ffffff;
  --btn-glow: 0 10px 24px -10px rgba(22, 90, 147, .7);
  --tile: linear-gradient(135deg, #6fc3e6, #1d6fb3);
  --tile-ink: #ffffff;
  --shadow: 0 1px 2px rgba(13, 42, 64, .05), 0 12px 32px -16px rgba(13, 42, 64, .18);
  --shadow-up: 0 2px 4px rgba(13, 42, 64, .06), 0 28px 48px -20px rgba(13, 42, 64, .3);
  --glass: rgba(255, 255, 255, .46);
  --glass-hover: rgba(255, 255, 255, .3);
  --glass-line: rgba(13, 42, 64, .1);
  --glass-line-hover: rgba(29, 111, 179, .38);
  --glass-hl: rgba(29, 111, 179, .7);
  --glass-shadow: 0 24px 48px -28px rgba(13, 42, 64, .35);

  /* Same in both themes */
  --band-a: #0d2a40;
  --band-b: #124263;
  --on-band: #e9f2f8;
  --on-band-2: #adc5d6;
  --sky: #6fc3e6;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071320;
  --bg-soft: #0a1a29;
  --surface: #0e2031;
  --surface-2: #12283c;
  --ink: #edf5fa;
  --ink-2: #b6c9d7;
  --ink-3: #8fa7b9;
  --line: #1b3448;
  --line-strong: #2d4d66;
  --link: #85cff1;
  --stat: #9bd8f3;
  --header: rgba(7, 19, 32, .82);
  --grid: rgba(111, 195, 230, .07);
  --glow-a: rgba(29, 111, 179, .32);
  --glow-b: rgba(111, 195, 230, .1);
  --text-grad: linear-gradient(100deg, #6fc3e6 0%, #b5e6fa 100%);
  --btn: linear-gradient(135deg, #8dd3f1, #57afe2);
  --btn-hover: linear-gradient(135deg, #a4dcf5, #6dbce8);
  --btn-ink: #06202f;
  --btn-glow: 0 10px 28px -10px rgba(111, 195, 230, .55);
  --tile: linear-gradient(135deg, #2a84c4, #123f60);
  --tile-ink: #d7eefa;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 32px -18px rgba(0, 0, 0, .7);
  --shadow-up: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 52px -20px rgba(0, 0, 0, .85);
  --glass: rgba(18, 40, 60, .42);
  --glass-hover: rgba(24, 54, 80, .3);
  --glass-line: rgba(255, 255, 255, .09);
  --glass-line-hover: rgba(255, 255, 255, .36);
  --glass-hl: rgba(255, 255, 255, .8);
  --glass-shadow: 0 24px 48px -28px rgba(0, 0, 0, .8);
}

/* Product colours, tuned per theme for contrast */
[data-p="football"]   { --accent: #16a34a; }
[data-p="basketball"] { --accent: #ea580c; }
[data-p="tennis"]     { --accent: #6d9c0c; }
[data-p="volleyball"] { --accent: #1565c0; }
[data-p="proxlio"]    { --accent: #e0492a; }
[data-theme="dark"] [data-p="football"]   { --accent: #34d399; }
[data-theme="dark"] [data-p="basketball"] { --accent: #fb923c; }
[data-theme="dark"] [data-p="tennis"]     { --accent: #ccff00; }
[data-theme="dark"] [data-p="volleyball"] { --accent: #60a5fa; }
[data-theme="dark"] [data-p="proxlio"]    { --accent: #ff7a5c; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 {
  font-family: var(--display);
  font-weight: 450;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 3px; }
::selection { background: #6fc3e6; color: #06202f; }

.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: -0.01em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 6px;
}
.skip:focus { top: 12px; }
.only-dark { display: none !important; }
[data-theme="dark"] .only-dark { display: block !important; }
[data-theme="dark"] .only-light { display: none !important; }

.grad {
  font-style: normal;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--link);
  font-size: 0.9375rem;
  font-weight: 600;
}
.eyebrow--light { color: var(--sky); }
.lead { color: var(--ink-2); font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 58ch; }

/* Atmosphere: soft light plus a grid tilted to the angle of the logo */
.glow { position: relative; isolation: isolate; overflow: hidden; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(52rem 34rem at 88% -8%, var(--glow-a), transparent 68%),
    radial-gradient(40rem 28rem at -6% 30%, var(--glow-b), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.glow::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 180%; aspect-ratio: 1; translate: -50% -50%; rotate: 34deg;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(closest-side at 62% 42%, #000, transparent 62%);
  mask-image: radial-gradient(closest-side at 62% 42%, #000, transparent 62%);
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 10px;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--btn); color: var(--btn-ink); box-shadow: var(--btn-glow); }
.btn--primary:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: #0d2a40; }
.btn--light:hover { background: #dcecf6; transform: translateY(-1px); }
.btn--ghost-light { border-color: #5a84a3; color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none;
}
.link-more .ico { transition: transform .18s var(--ease); }
.link-more:hover .ico { transform: translate(2px, -2px); }
.ico { flex: none; }
.tile {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--tile); color: var(--tile-ink);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { margin-right: auto; }
.brand img { width: auto; height: 34px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 8px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 500; text-decoration: none;
  transition: background-color .16s ease;
}
.site-nav a:hover { background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--link); background: var(--bg-soft); }
.site-header__tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .nav-toggle {
  width: 44px; height: 44px; padding: 0;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer;
  transition: border-color .16s ease;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--ink); }
.theme-toggle { display: grid; place-items: center; }
html:not([data-theme]) .theme-toggle { display: none; }
.nav-toggle { display: none; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; margin-inline: auto; background: var(--ink);
  transition: transform .18s ease, background-color .18s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding-top: clamp(48px, 6vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }

.hero__copy { position: relative; z-index: 1; }

/* Product ring: five glass cards on a slowly turning 3D ring, driven by site.js */
.stage {
  --w: 220px; --r: 232px;
  position: relative;
  height: calc(var(--w) * 1.4 + 150px);
  perspective: 2000px; perspective-origin: 50% 50%;
  cursor: grab; touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.stage.is-dragging { cursor: grabbing; }
.stage__ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.stage__logo {
  position: absolute; left: 0; top: 0; height: calc(var(--w) * .32); width: max-content;
  opacity: 0; pointer-events: none; transition: opacity .7s var(--ease);
}
.stage__logo img { width: auto; height: 100%; }
.stage:is(:hover, :focus-within) .stage__logo { opacity: 1; }
@media (hover: none) { .stage__logo { opacity: 1; } }
.stage__card {
  position: absolute; left: 0; top: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: var(--w); aspect-ratio: 5 / 7; padding: 20px;
  background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); text-align: center; text-decoration: none;
  will-change: transform;
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.stage__card::before, .stage__card::after {
  content: ""; position: absolute; left: 0; top: 0; z-index: 1;
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.stage__card::before { right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.stage__card::after { bottom: 0; width: 1px; background: linear-gradient(var(--glass-hl), transparent, var(--glass-hl)); }
.stage:is(:hover, :focus-within) .stage__card {
  background: var(--glass-hover); border-color: var(--glass-line-hover);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.stage:is(:hover, :focus-within) .stage__card::before,
.stage:is(:hover, :focus-within) .stage__card::after { opacity: 1; }
.stage__card:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.stage__card .p-icon { width: calc(var(--w) * .28); height: auto; aspect-ratio: 1; border-radius: 16px; box-shadow: 0 10px 24px -12px rgba(13, 42, 64, .5); }
.stage__name { font-size: max(0.75rem, calc(var(--w) * .068)); font-weight: 700; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.stage__domain { margin-top: -8px; color: var(--ink-3); font-size: 0.75rem; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow);
}
.stats > div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px;
  padding: 26px 28px; border-left: 1px solid var(--line);
}
.stats > div:first-child { border-left: 0; }
.stats dt { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.35; }
.stats dd { font: 450 clamp(2.1rem, 3.6vw, 3rem)/1.05 var(--display); letter-spacing: -0.015em; color: var(--stat); }

/* Ticker */
.ticker {
  margin-top: clamp(32px, 4vw, 48px); padding-block: 18px;
  border-top: 1px solid var(--line); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker ul { display: flex; flex: none; }
.ticker li {
  display: flex; align-items: center; gap: 26px; padding-right: 26px;
  color: var(--ink-3); font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
}
.ticker li::after { content: ""; width: 6px; height: 6px; rotate: 45deg; border-radius: 1px; background: var(--line-strong); }

/* Sections */
.section { padding-block: var(--section); }
.section--tint { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--flush-top { padding-top: 0; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; max-width: none; }
.section__head--split h2 { max-width: 20ch; }

/* Bento of products */
.p-icon { border-radius: 12px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px 0 0 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform .28s var(--ease), box-shadow .28s ease, border-color .28s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(26rem 18rem at 100% 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%);
  transition: opacity .28s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); border-color: var(--accent); }
.card:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.card a:focus-visible { outline: none; }
.card--football, .card--volleyball { grid-column: span 7; }
.card--basketball, .card--tennis { grid-column: span 5; }
.card--proxlio { grid-column: span 12; }
.card__copy { padding-right: 28px; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.chip {
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--ink); font-size: 0.8125rem; font-weight: 600;
}
.card h3 { margin-bottom: 8px; font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 500; letter-spacing: -0.012em; }
.card h3 a { color: inherit; text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card p { color: var(--ink-2); line-height: 1.55; max-width: 46ch; }
.card__domain { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--ink-3); }
.card__shot {
  margin-top: auto; height: clamp(180px, 19vw, 240px); overflow: hidden;
  border-radius: 14px 0 0 0;
  border: 1px solid var(--line); border-width: 1px 0 0 1px;
  box-shadow: -8px -8px 32px -16px rgba(13, 42, 64, .35);
}
.card__shot img { width: 100%; object-fit: cover; object-position: left top; transition: transform .5s var(--ease); transform-origin: left top; }
.card:hover .card__shot img { transform: scale(1.025); }

/* Proxlio keeps its own colours in both themes */
.card--proxlio {
  --accent: #dff25a;
  flex-direction: row; align-items: stretch; gap: clamp(24px, 4vw, 56px);
  background: #141c19; border-color: #2a3a33; color: #f2f6ec;
}
.card--proxlio h3 { color: #f7faef; }
.card--proxlio p { color: #bcc8b6; }
.card--proxlio .card__copy { flex: 1 1 42%; padding-bottom: 28px; align-self: center; }
.card--proxlio .chip { color: #eaf6a0; background: rgba(223, 242, 90, .1); border-color: rgba(223, 242, 90, .32); }
.card--proxlio .card__domain { color: #dff25a; }
.card--proxlio .card__shot { flex: 1 1 58%; margin: 28px 0 0; height: auto; max-height: 340px; border-color: #2a3a33; }
.card--proxlio::before { background: radial-gradient(36rem 22rem at 100% 0, rgba(223, 242, 90, .13), transparent 72%); }

/* Code demo */
.code-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.code-demo h2 { margin-bottom: 16px; }
.code-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.code-tabs[hidden] { display: none; }
.code-tabs button {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 14px 6px 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--ink); font: 600 0.9375rem var(--body); cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.code-tabs button:hover { border-color: var(--ink); }
.code-tabs button[aria-selected="true"] { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.code-tabs .p-icon { border-radius: 7px; }
.code-tabs button { position: relative; overflow: hidden; }
/* Time left before the demo moves on to the next product, set by site.js */
.code-tabs button::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--link); transform: scaleX(var(--p, 0)); transform-origin: left;
}

.code-stage { min-width: 0; perspective: 1400px; }
.code-window {
  position: relative; min-width: 0; overflow: hidden; min-height: 490px;
  background: #081522; border: 1px solid #1d3346; border-radius: 18px;
  box-shadow: 0 32px 64px -32px rgba(5, 18, 30, .8);
  color: #d5e3ee;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
/* Light that follows the pointer across the glass */
.code-window::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(111, 195, 230, .13), transparent 45%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.code-window.is-tilted { box-shadow: 0 44px 80px -36px rgba(5, 18, 30, .9); }
.code-window.is-tilted::after { opacity: 1; }
.code-panel[hidden] { display: none; }
.code-panel + .code-panel { border-top: 1px solid #1d3346; }
.code-panel__bar {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  background: #0d2033; border-bottom: 1px solid #1d3346; font-size: 0.9375rem;
}
.code-panel__dot { width: 9px; height: 9px; rotate: 45deg; border-radius: 2px; background: #6fc3e6; }
.code-panel__dot[data-p="football"] { background: #34d399; }
.code-panel__dot[data-p="basketball"] { background: #fb923c; }
.code-panel__dot[data-p="tennis"] { background: #ccff00; }
.code-panel__dot[data-p="volleyball"] { background: #60a5fa; }
.code-panel__dot[data-p="proxlio"] { background: #dff25a; }
.code-panel__host { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-panel__tag { margin-left: auto; padding: 2px 10px; border: 1px solid #2c4a62; border-radius: 999px; color: #9db6c8; font-size: 0.75rem; font-weight: 600; }
.code-panel pre { margin: 0; overflow-x: auto; font: 400 0.84375rem/1.7 var(--mono); }
.code-panel code { font: inherit; }
.code-panel__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px;
  background: transparent; border: 1px solid #2c4a62; border-radius: 8px;
  color: #c4d6e3; font: 600 0.8125rem var(--body); cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.code-panel__btn:hover { border-color: #6fc3e6; color: #fff; }
.code-panel__btn:focus-visible { outline: 2px solid #6fc3e6; outline-offset: 2px; }
.code-panel__btn[hidden] { display: none; }
.code-panel__btn--run { background: #6fc3e6; border-color: #6fc3e6; color: #06202f; }
.code-panel__btn--run:hover { background: #a4dcf5; border-color: #a4dcf5; color: #06202f; }
.code-panel__btn.is-done { border-color: #34d399; color: #a9e6c4; }
.code-panel__req { padding: 18px 20px; color: #eaf3f9; }

/* The wire between request and response: a pulse travels along it while the request is out */
.code-panel__wire { position: relative; height: 1px; background: #1d3346; }
.code-panel__wire::after {
  content: ""; position: absolute; top: -1px; left: 0; width: 28%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #6fc3e6, #fff); box-shadow: 0 0 12px #6fc3e6;
  opacity: 0;
}
.code-panel.is-sending .code-panel__wire::after { opacity: 1; animation: wire .62s linear infinite; }
@keyframes wire { from { left: -28%; } to { left: 100%; } }
.code-panel__status {
  position: absolute; right: 16px; top: 0; translate: 0 -50%; z-index: 1;
  padding: 3px 10px; border: 1px solid #1f5c41; border-radius: 999px;
  background: #0c2a1e; color: #a9e6c4; font: 600 0.75rem/1.4 var(--mono);
}
.code-panel.is-armed:not(.is-done) .code-panel__status { opacity: 0; scale: .6; }
.code-panel.is-done .code-panel__status { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; scale: .6; } 60% { scale: 1.08; } to { opacity: 1; scale: 1; } }

/* Typing caret, and the response arriving line by line */
.code-panel .caret { display: inline-block; width: .55em; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: #6fc3e6; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code-panel__res .ln { display: inline-block; }
.code-panel.is-armed:not(.is-done) .ln { opacity: 0; }
.code-panel.is-done .ln { animation: line-in .42s var(--ease) both; animation-delay: calc(var(--i) * 38ms); }
@keyframes line-in { from { opacity: 0; transform: translateX(-10px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.code-panel__res { padding: 18px 20px 22px; }
.t-p { color: #6fc3e6; }
.t-k { color: #8fd0f0; }
.t-s { color: #c3e88d; }
.t-n { color: #ffc27a; }
.code-panel__notes { padding: 10px 20px; }
.code-panel__notes > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed #2c4a62; }
.code-panel__notes dt { color: #dff25a; }
.code-panel__notes dd { color: #b8cbd9; text-align: right; }
.code-panel__foot { padding: 6px 20px 22px; color: #9db6c8; font-size: 0.875rem; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principles article { padding: 28px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; }
.principles .tile { margin-bottom: 24px; }
.principles h3 { margin-bottom: 10px; font-family: var(--display); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.principles p { color: var(--ink-2); }

/* Company band */
.band {
  position: relative; overflow: hidden; padding-block: var(--section);
  background: linear-gradient(120deg, var(--band-a) 30%, var(--band-b));
  color: var(--on-band);
}
[data-theme="dark"] .band { background: linear-gradient(120deg, #0a1e30 30%, #103651); border-block: 1px solid var(--line); }
.band::before {
  content: ""; position: absolute; right: -180px; top: -160px; width: 660px; height: 660px;
  background: url("../img/mark.png") center/contain no-repeat; opacity: .08; pointer-events: none;
}
.band__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); align-items: center; }
.band h2 { margin-bottom: 16px; color: #fff; }
.band p:not(.eyebrow) { color: var(--on-band-2); max-width: 48ch; }

/* Register table */
.register > div { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 4px 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.register > div:last-child { border-bottom: 0; }
.register dt { color: var(--ink-2); font-size: 0.9375rem; }
.register dd { font-weight: 500; }
.register--card { padding: 12px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.register--glass {
  padding: 12px 28px; border-radius: 20px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.register--glass > div { border-color: rgba(255, 255, 255, .12); }
.register--glass dt { color: var(--on-band-2); }
.register--glass dd { color: #fff; }

/* CTA */
.cta-wrap { padding-block: var(--section); }
.cta {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  padding: clamp(32px, 5vw, 64px);
  background: linear-gradient(115deg, #165a93, #2589cf 70%, #4eaede);
  border-radius: 28px; color: #fff;
  box-shadow: 0 32px 64px -32px rgba(22, 90, 147, .75);
}
.cta::after {
  content: ""; position: absolute; right: -70px; bottom: -130px; width: 380px; aspect-ratio: 1;
  background: url("../img/mark.png") center/contain no-repeat; filter: brightness(0) invert(1); opacity: .12; pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta > div { flex: 1 1 340px; }
.cta h2 { margin-bottom: 8px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.cta p { color: #e4f2fb; }
.cta-wrap--flush { padding-top: 0; }

/* Inner page head */
.page-head { padding-block: clamp(56px, 7vw, 104px) clamp(48px, 6vw, 80px); }
.page-head h1 { margin-bottom: 20px; max-width: 20ch; }
.page-head--center { min-height: 56vh; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 14px 6px 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--ink); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  transition: border-color .16s ease, transform .16s var(--ease);
}
.jump a:hover { border-color: var(--ink); transform: translateY(-1px); }
.jump .p-icon { border-radius: 7px; }

/* Projects page */
.project-line { padding-bottom: clamp(40px, 6vw, 72px); }
.line-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; align-items: end; padding-block: 8px 28px; }
.line-head p { color: var(--ink-2); }
.project {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 64px); align-items: center;
  margin-bottom: 20px; padding: clamp(24px, 4vw, 48px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow);
}
.project::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(36rem 24rem at 100% 0, color-mix(in srgb, var(--accent) 12%, transparent), transparent 72%);
}
.project:nth-of-type(even)::before { background: radial-gradient(36rem 24rem at 0 0, color-mix(in srgb, var(--accent) 12%, transparent), transparent 72%); }
.project__title { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.project__title h3 { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.125rem); font-weight: 500; letter-spacing: -0.012em; line-height: 1.15; }
.project__title .p-icon { border-radius: 14px; }
.project__summary { color: var(--ink-2); margin-bottom: 18px; }
.ticks li { position: relative; padding: 5px 0 5px 22px; font-size: 1rem; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px;
  background: var(--accent, var(--link)); transform: rotate(45deg); border-radius: 1.5px;
}
.project__facts { margin: 22px 0 28px; border-top: 1px solid var(--line); }
.project__facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.45; }
.project__facts dt { color: var(--ink-3); }
.project__facts dd { font-weight: 500; }
.shot {
  display: block; overflow: hidden; border-radius: 14px;
  background: #0a0a0f;
  box-shadow: 0 0 0 1px rgba(13, 42, 64, .14), 0 28px 52px -24px rgba(5, 18, 30, .6);
  text-decoration: none;
  transition: transform .28s var(--ease), box-shadow .28s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--accent), 0 32px 60px -24px rgba(5, 18, 30, .7); }
.shot__bar { display: block; padding: 10px 14px; background: #181b22; color: #c6ccd4; font-size: 0.8125rem; }
.project:nth-of-type(even) .shot { order: -1; }

/* Company page */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.prose h2 { margin-bottom: 20px; }
.prose p:not(.eyebrow) { color: var(--ink-2); max-width: 62ch; }
.prose p + p { margin-top: 16px; }
.prose .link-more { margin-top: 24px; }
.prose--long { max-width: 760px; }
.prose--long h2 { margin: 40px 0 12px; font-size: 1.75rem; }
.prose--long h2:first-child { margin-top: 0; }
.prose--long strong { color: var(--ink); }
.person {
  position: relative; overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-up);
}
.person::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #6fc3e6, #1d6fb3);
}
.person__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.person__head h2 { font-size: 1.75rem; line-height: 1.15; }
.person__head p { color: var(--ink-2); font-size: 0.9375rem; }
.person__mono {
  flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #6fc3e6, #165a93);
  color: #fff; font: 500 1.5rem var(--display);
}
.person > p:not(.eyebrow) { color: var(--ink-2); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  transition: border-color .16s ease, transform .16s var(--ease);
}
.socials a:hover { border-color: var(--ink); transform: translateY(-1px); }
.socials .ico--linkedin { color: #0a66c2; }
[data-theme="dark"] .socials .ico--linkedin { color: #70b5f9; }

/* Contact page */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card {
  display: block; padding: clamp(22px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  transition: border-color .16s ease, transform .16s var(--ease);
}
a.contact-card:hover { border-color: var(--link); transform: translateY(-2px); }
.contact-card .tile { margin-bottom: 20px; }
.contact-card h2 { margin-bottom: 4px; color: var(--ink-3); font: 600 0.9375rem/1.4 var(--body); letter-spacing: 0; }
.contact-card__value { display: block; color: var(--link); font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-card address { font-style: normal; line-height: 1.55; }
.support-title { margin: clamp(48px, 6vw, 72px) 0 20px; font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.support { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.support a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none;
  transition: border-color .16s ease;
}
.support a:hover { border-color: var(--link); }
.support .p-icon { flex: none; border-radius: 8px; }
.support a > span { min-width: 0; }
.support strong { display: block; font-weight: 600; }
.support strong + span { display: block; color: var(--ink-3); font-size: 0.875rem; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--band-a); color: var(--on-band-2); font-size: 0.9375rem; }
[data-theme="dark"] .site-footer { background: #050e18; border-top: 1px solid var(--line); }
.site-footer a { color: var(--on-band); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding-block: 36px 28px;
}
.site-footer__brand img { display: block; width: auto; height: 30px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 500; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer__links a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
  transition: border-color .16s ease, transform .16s var(--ease);
}
.site-footer__links a:hover { border-color: rgba(255, 255, 255, .6); transform: translateY(-2px); }
.site-footer__links .p-icon { border-radius: 6px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 18px 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 0.8125rem; line-height: 1.55; }
.site-footer__legal a { text-decoration: underline; }

/* Scroll reveal, switched on by site.js */
.reveal-ready [data-reveal] { opacity: 0; translate: 0 16px; transition: opacity .6s var(--ease), translate .6s var(--ease), transform .28s var(--ease), box-shadow .28s ease, border-color .28s ease; }
.reveal-ready [data-reveal].is-in { opacity: 1; translate: 0 0; }
@media print {
  .reveal-ready [data-reveal] { opacity: 1; translate: 0 0; transition: none; }
}

/* Layout changes */
@media (max-width: 1040px) {
  .stage { --w: 180px; --r: 192px; }
  .code-demo { grid-template-columns: minmax(0, 1fr); }
  .code-window { min-height: 0; }
}
@media (max-width: 900px) {
  .hero__grid, .band__grid, .split, .split--wide-right, .contact-cards, .project, .line-head { grid-template-columns: minmax(0, 1fr); }
  .project:nth-of-type(even) .shot { order: 0; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 22px 20px; }
  .stats > div:nth-child(odd) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .card--football, .card--volleyball, .card--basketball, .card--tennis { grid-column: span 12; }
  .card--proxlio { flex-direction: column; }
  .card--proxlio .card__copy { padding-bottom: 0; align-self: stretch; }
  .card--proxlio .card__shot { margin: 0; max-height: 240px; }
}
@media (max-width: 720px) {
  .stage { --w: 150px; --r: 158px; }
  .stage__domain { display: none; }
  .site-header__row { min-height: 64px; gap: 12px; }
  .brand img { height: 28px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(13, 42, 64, .14);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: flex; align-items: center; min-height: 48px; padding-inline: 8px; }
  .register > div { grid-template-columns: minmax(0, 1fr); }
  .register--card, .register--glass { padding-inline: 20px; }
  .actions .btn { flex: 1 1 100%; }
  .cta .btn { width: 100%; }
  .card { padding: 22px 0 0 22px; border-radius: 18px; }
  .card__copy { padding-right: 22px; }
  .card--proxlio .card__copy { padding-right: 22px; }
  .card__shot { height: 170px; }
  .project { border-radius: 20px; }
  .code-panel pre { font-size: 0.78125rem; }
  .code-panel__btn { padding: 0 8px; }
  .code-panel__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker__track { width: auto; }
  .ticker ul { flex-wrap: wrap; row-gap: 6px; }
  .ticker ul + ul { display: none; }
}
