/* ═══════════════════════════════════════════════════════
   AXON — Shared design tokens & components
   Used across all subpages (case, about, services, blog, 404)
   ═══════════════════════════════════════════════════════ */

:root {
  --ax-accent: #1b45d9;
  --ax-ink: #0a0c10;
  --ax-paper: #eef1f5;
  --ax-fg: var(--ax-ink);
  --ax-bg: var(--ax-paper);
  --ax-muted: rgba(10, 12, 16, 0.55);
  --ax-line: rgba(10, 12, 16, 0.14);
  --ax-line-strong: rgba(10, 12, 16, 0.3);
  --ax-font-display: "Archivo Black", system-ui, sans-serif;
  --ax-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --ax-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ax-font-serif: "Instrument Serif", "Times New Roman", serif;
  --ax-title-weight: 900;
  --ax-title-tracking: -0.03em;
  --ax-sec-y: 96px;
  --ax-gap: 24px;
  --ax-base: 16px;
}

[data-dark="1"] {
  --ax-fg: var(--ax-paper);
  --ax-bg: var(--ax-ink);
  --ax-muted: rgba(245, 241, 234, 0.55);
  --ax-line: rgba(245, 241, 234, 0.16);
  --ax-line-strong: rgba(245, 241, 234, 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--ax-bg); color: var(--ax-fg); scroll-behavior: smooth; }
body {
  font-family: var(--ax-font-body);
  font-size: var(--ax-base);
  line-height: 1.55;
  background: var(--ax-bg);
  color: var(--ax-fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }

.mono { font-family: var(--ax-font-mono); font-feature-settings: "tnum" 1; letter-spacing: 0.02em; }
.serif { font-family: var(--ax-font-serif); }

/* ───── Container ───── */
.ax-wrap { padding-inline: clamp(24px, 4vw, 64px); }

/* ───── Section header ───── */
.ax-sec-head { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; }
.ax-sec-tag { font-family: var(--ax-font-mono); font-size: 11px; letter-spacing: 0.08em; opacity: .72; }
.ax-sec-rule { flex: 1; height: 1px; background: var(--ax-line); }

/* ───── Nav ───── */
.ax-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px clamp(24px, 4vw, 64px);
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.ax-nav-scrolled {
  background: color-mix(in srgb, var(--ax-bg) 80%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--ax-line);
  padding-block: 12px;
}
.ax-logo { display: flex; align-items: center; gap: 10px; color: var(--ax-fg); }
.ax-logo svg { width: 28px; height: 28px; }
.ax-logo-img { height: 26px; width: auto; display: block; }
.ax-footer .ax-logo-img { height: 34px; }
.ax-logo-word {
  font-family: var(--ax-font-display);
  font-weight: 900; font-size: 18px; letter-spacing: 0.16em;
}
.ax-nav-links {
  display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; justify-self: center;
}
.ax-nav-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px;
  transition: background .2s;
}
.ax-nav-links a:hover { background: color-mix(in srgb, var(--ax-fg) 8%, transparent); }
.ax-nav-links a.active { background: color-mix(in srgb, var(--ax-fg) 8%, transparent); }
.ax-nav-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; }
.ax-nav-links a:hover .ax-nav-dot,
.ax-nav-links a.active .ax-nav-dot { background: var(--ax-accent); opacity: 1; }
.ax-nav-right { display: flex; align-items: center; gap: 14px; justify-self: end; }
.ax-lang { display: flex; gap: 4px; font-family: var(--ax-font-mono); font-size: 11px; letter-spacing: 0.05em; padding: 6px 10px; border: 1px solid var(--ax-line); border-radius: 999px; }
.ax-lang span { opacity: .4; }
.ax-lang span.on { opacity: 1; }
.ax-lang-sep { opacity: .25 !important; }
.ax-nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 20px; border-radius: 999px;
  background: var(--ax-fg); color: var(--ax-bg);
  font-size: 13px; font-weight: 500;
  transition: transform .2s, background .2s;
}
.ax-nav-cta:hover { background: var(--ax-accent); color: var(--ax-paper); transform: translateY(-1px); }

/* ───── Arrow ───── */
.ax-arrow { width: 14px; height: 14px; display: inline-block; position: relative; }
.ax-arrow::before {
  content: ""; position: absolute; left: 0; right: 2px; top: 50%;
  height: 1.5px; background: currentColor; transform: translateY(-50%);
}
.ax-arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: translate(0, -50%) rotate(45deg);
}
.ax-arrow-l { transform: rotate(180deg); }
.ax-arrow-d { transform: rotate(90deg); }

/* ───── Buttons ───── */
.ax-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--ax-line-strong);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.ax-btn:hover { background: var(--ax-fg); color: var(--ax-bg); border-color: var(--ax-fg); }
.ax-btn-primary {
  background: var(--ax-fg); color: var(--ax-bg); border-color: var(--ax-fg);
}
.ax-btn-primary:hover { background: var(--ax-accent); color: var(--ax-paper); border-color: var(--ax-accent); }
.ax-btn-accent {
  background: var(--ax-accent); color: var(--ax-paper); border-color: var(--ax-accent);
}
.ax-btn-accent:hover { background: var(--ax-fg); border-color: var(--ax-fg); }

/* ───── Footer ───── */
.ax-footer {
  padding: 80px clamp(24px, 4vw, 64px) 32px;
  border-top: 1px solid var(--ax-line);
  background: var(--ax-bg);
}
.ax-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--ax-line);
}
.ax-footer-brand .ax-logo-word { font-size: 24px; }
.ax-footer-tagline {
  margin-top: 24px;
  font-family: var(--ax-font-serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1.1;
  color: var(--ax-accent);
}
.ax-footer h4 {
  font-family: var(--ax-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 20px;
  opacity: .55;
}
.ax-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ax-footer li { font-size: 15px; }
.ax-footer li a { transition: opacity .2s; opacity: .9; }
.ax-footer li a:hover { opacity: 1; color: var(--ax-accent); }

.ax-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--ax-font-mono);
  font-size: 11px;
  opacity: .55;
  letter-spacing: 0.04em;
}

/* ───── Newsletter ───── */
.ax-newsletter {
  display: flex; gap: 8px; margin-top: 16px;
  padding: 6px;
  border: 1px solid var(--ax-line-strong);
  border-radius: 999px;
  max-width: 380px;
}
.ax-newsletter input {
  flex: 1; background: transparent; border: 0; outline: none;
  font: inherit; color: inherit; padding: 8px 14px;
}
.ax-newsletter button {
  background: var(--ax-fg); color: var(--ax-bg);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  transition: background .2s;
}
.ax-newsletter button:hover { background: var(--ax-accent); color: var(--ax-paper); }

/* ───── Generic page hero ───── */
.ax-page-hero {
  padding: 140px clamp(24px, 4vw, 64px) 64px;
  border-bottom: 1px solid var(--ax-line);
}
.ax-page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ax-font-mono); font-size: 11px;
  letter-spacing: 0.08em; opacity: .7;
  margin-bottom: 24px;
}
.ax-blink { width: 8px; height: 8px; border-radius: 50%; background: var(--ax-accent); animation: ax-blink 1.6s ease-in-out infinite; }
@keyframes ax-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ax-page-title {
  margin: 0;
  font-family: var(--ax-font-display);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.ax-page-sub {
  max-width: 640px;
  margin: 32px 0 0;
  font-size: 19px;
  line-height: 1.5;
  opacity: .8;
}

/* ───── Marquee ───── */
.ax-marquee {
  overflow: hidden;
  border-block: 1px solid var(--ax-line);
  padding-block: 22px;
  white-space: nowrap;
}
.ax-marquee-track {
  display: inline-flex; gap: 48px; align-items: center;
  animation: ax-marquee 28s linear infinite;
  font-family: var(--ax-font-display);
  font-size: clamp(32px, 5vw, 72px);
  letter-spacing: -0.02em;
}
.ax-marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.ax-marquee-dot { color: var(--ax-accent); }
@keyframes ax-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ───── Cookie banner ───── */
.ax-cookies {
  position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 560px;
  z-index: 2147483640;
  background: var(--ax-fg); color: var(--ax-bg);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  transform: translateY(120%);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.ax-cookies[data-open="1"] { transform: translateY(0); }
.ax-cookies h3 { margin: 0; font-family: var(--ax-font-display); font-size: 18px; }
.ax-cookies p { margin: 0; font-size: 13px; opacity: .8; line-height: 1.5; }
.ax-cookies-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ax-cookies-actions button {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid color-mix(in srgb, var(--ax-bg) 30%, transparent);
}
.ax-cookies-accept { background: var(--ax-accent); border-color: var(--ax-accent); color: var(--ax-paper); }
.ax-cookies-decline { background: transparent; color: var(--ax-bg); }

/* ───── Noise grain ───── */
.ax-grain {
  position: fixed; inset: 0; z-index: 9997;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───── Reveal ───── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ───── Responsive ───── */
@media (max-width: 1024px) {
  /* Nav links + lang/CTA hide exactly when the injected burger appears */
  .ax-nav-links { display: none; }
  .ax-nav > .ax-nav-right .ax-lang,
  .ax-nav > .ax-nav-right .ax-nav-cta { display: none; }
}
@media (max-width: 900px) {
  .ax-footer-top { grid-template-columns: 1fr 1fr; }
  .ax-footer-brand { grid-column: 1 / -1; }
  :root { --ax-sec-y: 64px; }
}
@media (max-width: 768px) {
  .ax-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .ax-footer-top { grid-template-columns: 1fr; }
  .ax-footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .ax-page-hero { padding-top: 120px; }
}

/* ═══════════════════════════════════════════════════════
   Custom cursor + scroll progress  (ported from the home —
   injected on every subpage by shared.js so the whole site
   behaves identically)
   ═══════════════════════════════════════════════════════ */

/* Hide the native cursor so the custom one takes over */
body { cursor: none; }
button, a, input, textarea { cursor: none; }

.ax-cursor-dot, .ax-cursor-ring, .ax-cursor-label {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 2147483640;
  will-change: transform; transition: opacity .15s;
}
.ax-cursor-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  transition: opacity .15s, width .2s, height .2s;
}
.ax-cursor-ring {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid #fff; opacity: .35;
  mix-blend-mode: difference;
  transition: opacity .15s, width .25s, height .25s, border-radius .25s;
}
.ax-cursor-label {
  font-family: var(--ax-font-mono, monospace);
  font-size: 10px; padding: 4px 8px; border-radius: 999px;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--ax-accent); color: var(--ax-paper);
  opacity: 0; transition: opacity .18s;
  white-space: nowrap;
}
html[data-cursor-variant="link"] .ax-cursor-ring { width: 12px; height: 12px; opacity: 0; }
html[data-cursor-variant="hover"] .ax-cursor-ring { width: 64px; height: 64px; opacity: .7; }
html[data-cursor-variant="cta"] .ax-cursor-ring { width: 80px; height: 80px; opacity: .9; background: var(--ax-accent); border-color: var(--ax-accent); mix-blend-mode: difference; }
html[data-cursor-variant="cta"] .ax-cursor-dot { opacity: 0; }
html[data-cursor-variant="play"] .ax-cursor-ring { width: 96px; height: 96px; opacity: 1; background: var(--ax-accent); border-color: var(--ax-accent); }
html[data-cursor-variant="play"] .ax-cursor-dot { opacity: 0; }
html[data-cursor-variant="play"] .ax-cursor-label,
html[data-cursor-variant="cta"] .ax-cursor-label,
html[data-cursor-variant="hover"] .ax-cursor-label { opacity: 1 !important; }
html[data-cursor-variant="text"] .ax-cursor-dot { width: 2px; height: 20px; border-radius: 0; }
html[data-cursor-variant="text"] .ax-cursor-ring { opacity: 0; }

/* Scroll progress bar (top) */
.ax-scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 9998; background: color-mix(in srgb, var(--ax-fg) 8%, transparent);
  pointer-events: none;
}
.ax-scroll-progress i {
  display: block; height: 100%; transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--ax-accent);
  will-change: transform;
}

/* Hide custom cursor on touch devices (restore native cursor) */
@media (hover: none), (pointer: coarse) {
  body, button, a, input, textarea { cursor: auto; }
  .ax-cursor-dot, .ax-cursor-ring, .ax-cursor-label { display: none !important; }
}

/* ═══════════════════════════════════════════════════════
   Mobile nav — burger + drawer  (injected by shared.js on
   every subpage so they keep navigation on small screens)
   ═══════════════════════════════════════════════════════ */
.ax-burger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  border-radius: 50%;
  color: var(--ax-fg);
  transition: background .2s;
}
.ax-burger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: currentColor;
  transition: transform .3s, opacity .2s, top .3s;
}
.ax-burger span:nth-child(1) { top: 14px; }
.ax-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.ax-burger span:nth-child(3) { bottom: 14px; }
.ax-burger.on span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.ax-burger.on span:nth-child(2) { opacity: 0; }
.ax-burger.on span:nth-child(3) { top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }
@media (max-width: 1024px) {
  .ax-burger { display: inline-block; }
}

.ax-mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ax-bg); color: var(--ax-fg);
  padding: 96px 24px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(-100%);
  transition: transform .55s cubic-bezier(.85, 0, .15, 1);
  pointer-events: none;
}
.ax-mobile-menu.open { transform: translateY(0); pointer-events: auto; }
.ax-mobile-menu ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--ax-line);
}
.ax-mobile-menu li {
  border-bottom: 1px solid var(--ax-line);
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--delay, 0ms), transform .5s var(--delay, 0ms);
}
.ax-mobile-menu.open li { opacity: 1; transform: translateY(0); }
.ax-mobile-menu a {
  display: grid; grid-template-columns: 32px 1fr auto;
  align-items: center; gap: 16px; padding: 22px 4px;
  font-family: var(--ax-font-display);
  font-weight: var(--ax-title-weight, 900);
  font-size: clamp(28px, 8vw, 44px);
  letter-spacing: var(--ax-title-tracking, -0.03em);
  line-height: 1;
}
.ax-mobile-num { font-size: 11px; opacity: .5; letter-spacing: 0.08em; align-self: start; padding-top: 8px; }
.ax-mobile-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--ax-line);
  font-size: 12px;
}
html[data-menu-open="1"] { overflow: hidden; }
html[data-menu-open="1"] .ax-scroll-progress { display: none; }
