/* AxoraQ — polar radar sweep */
:root {
  --magenta:     #E91E8C;
  --magenta-hot: #FF5EC4;
  --purple:      #9C27B0;
  --purple-deep: #6A1B9A;
  --ink:         #120814;
  --ink-2:       #1C0C24;
  --ink-3:       #26142E;
  --paper:       #FBF7FC;
  --mist:        #F3EAF6;
  --text:        #1A1020;
  --muted:       #5A4764;
  --line:        #E8D6EE;
  --near:        #F8F4FC;
  --near-dim:    #E0D0EA;
  --line-inv:    rgba(248, 244, 252, 0.16);
  --serif:       "Syne", system-ui, sans-serif;
  --sans:        "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius:      16px;
  --maxw:        1140px;
  --header-h:    72px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name, blockquote, .bearing, .brg, .tele-code {
  font-family: var(--serif);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: break-word;
}
p, li { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 400;
  background: var(--magenta); color: #fff;
  padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 0; }

.kicker, .eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--magenta);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-weight: 650; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--magenta); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(233, 30, 140, .6);
}
.btn-ghost {
  background: transparent; color: var(--near); border-color: var(--line-inv);
}

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: var(--header-h);
  background: rgba(18, 8, 20, .55);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(18, 8, 20, .94);
  border-bottom-color: var(--line-inv);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand img {
  width: 40px; height: 40px; border-radius: 10px;
  background: #fff; box-shadow: 0 0 0 1px rgba(248, 244, 252, .12);
}
.brand-name {
  font-size: 18px; font-weight: 750; color: var(--near);
  letter-spacing: -0.02em;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 14.5px; color: var(--near-dim); font-weight: 500; }
.nav .nav-cta {
  color: var(--near);
  border: 1px solid var(--line-inv);
  padding: 8px 16px; border-radius: 999px;
  font-weight: 650;
}
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: transparent;
  padding: 0; cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--near); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--near);
  padding: calc(var(--header-h) + 28px) 0 64px;
  overflow: hidden;
}
.hero-wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 480px at 88% 42%, rgba(233, 30, 140, .22), transparent 62%),
    radial-gradient(640px 420px at 8% 90%, rgba(156, 39, 176, .18), transparent 60%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.15rem);
  font-weight: 800;
  color: var(--near);
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--magenta-hot);
}
.hero-sub {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--near-dim);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
}
.hero-fix {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line-inv);
  color: var(--near-dim);
  font-size: 13.5px;
}
.hero-fix span {
  display: block;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--magenta-hot);
  margin-bottom: 4px;
}

/* Radar scope */
.scope-wrap {
  position: relative;
  width: min(100%, 480px);
  margin-left: auto;
  overflow: hidden;
}
.scope-hud {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--near-dim);
  margin-bottom: 8px;
}
.scope-hud-bottom {
  justify-content: space-between;
  margin: 8px 0 0;
  gap: 6px;
  font-size: 10px;
}
.scope-hud .sep { opacity: .45; }
.led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--magenta-hot);
  box-shadow: 0 0 10px var(--magenta-hot);
  animation: led-pulse 1.8s ease-in-out infinite;
}
.radar {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.radar-scan {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: radar-sweep 6s linear infinite;
}
.ring-outer {
  stroke-dasharray: 6 10;
  animation: ring-dash 18s linear infinite;
}
.blip-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: blip-ping 2.6s ease-out infinite;
}
.blip.d2 .blip-ring { animation-delay: .6s; }
.blip.d3 .blip-ring { animation-delay: 1.2s; }
.blip.d4 .blip-ring { animation-delay: 1.8s; }

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes ring-dash {
  to { stroke-dashoffset: -240; }
}
@keyframes blip-ping {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(3.6); opacity: 0; }
}
@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ===== Bands ===== */
.band { padding: 88px 0; }
.band-paper { background: var(--paper); color: var(--text); }
.band-mist { background: var(--mist); color: var(--text); }
.band-ink { background: var(--ink-2); color: var(--near); }
.band-paper .kicker, .band-mist .kicker { color: var(--magenta); }
.band-ink .kicker { color: var(--magenta-hot); }

.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 750;
}
.band-paper .section-head h2,
.band-mist .section-head h2 { color: var(--text); }
.lede { margin-top: 14px; color: var(--muted); font-size: 1.04rem; }
.band-ink .lede { color: var(--near-dim); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 48px;
  align-items: start;
}
.about-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 750;
  margin-bottom: 18px;
  max-width: 18ch;
}
.about-copy p { color: var(--muted); }
.about-copy p + p { margin-top: 14px; }
.about-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.aside-kicker {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--magenta); margin-bottom: 14px;
}
.about-aside li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .95rem;
}
.about-aside li:first-of-type { border-top: 0; }
.about-aside strong {
  display: block;
  font-family: var(--serif);
  color: var(--text);
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 6px;
  box-shadow: 0 0 8px currentColor;
}
.d-a { background: #FF5EC4; color: #FF5EC4; }
.d-b { background: #C77DFF; color: #C77DFF; }
.d-c { background: #1A1020; color: #1A1020; box-shadow: none; }
.d-d { background: #E91E8C; color: #E91E8C; }
.aside-meta {
  margin-top: 8px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}

/* Return cards */
.return-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.return-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  min-width: 0;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.return-card header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.bearing {
  font-size: 1.35rem; font-weight: 750; color: var(--magenta);
  letter-spacing: .04em;
}
.rng {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--muted);
}
.return-card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 10px; }
.return-card p { color: var(--muted); font-size: .98rem; }

/* Telemetry */
.telemetry { padding: 72px 0; }
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tele-item {
  padding: 8px 8px 8px 0;
  border-left: 2px solid var(--magenta);
  padding-left: 20px;
  min-width: 0;
}
.tele-code {
  display: block;
  font-size: 11px; letter-spacing: .18em;
  color: var(--magenta-hot);
  margin-bottom: 10px;
}
.tele-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 750;
  color: var(--near);
  margin-bottom: 8px;
}
.tele-item p { color: var(--near-dim); font-size: .98rem; }

/* Contact board */
.board { display: grid; gap: 12px; }
.board-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  min-width: 0;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.brg {
  font-size: 1.15rem; font-weight: 750; color: var(--magenta);
  letter-spacing: .04em;
  padding-top: 2px;
}
.board-row h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.board-row p { color: var(--muted); font-size: .98rem; }
.tag {
  align-self: start;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--purple);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

/* Quote */
.quote { text-align: center; }
.quote-inner { max-width: 820px; margin: 0 auto; }
.quote blockquote {
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
  font-weight: 700;
  color: var(--near);
  line-height: 1.28;
}
.quote-attr {
  margin-top: 18px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--magenta-hot);
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.faq-head { margin: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.faq-item.open { border-color: var(--magenta); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--text);
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  padding: 18px 20px;
}
.faq-ico { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--magenta); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a p { color: var(--muted); margin: 0; padding: 0 20px 18px; font-size: .98rem; }

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 750;
  color: var(--near);
  max-width: 16ch;
  margin-bottom: 16px;
}
.contact-copy p { color: var(--near-dim); margin-bottom: 18px; }
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: var(--near);
  border-bottom: 1px solid transparent;
  overflow-wrap: anywhere;
}
.contact-addr { margin-top: 16px; color: var(--near-dim); font-size: .95rem; }
.contact-form {
  background: rgba(233, 30, 140, .08);
  border: 1px solid var(--line-inv);
  border-radius: var(--radius);
  padding: 26px;
  display: grid; gap: 14px;
  transition: border-color .3s var(--ease);
}
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--near-dim); font-weight: 600; }
.field input, .field textarea {
  background: var(--ink);
  border: 1px solid var(--line-inv);
  border-radius: 10px;
  color: var(--near);
  padding: 12px 14px;
  font: inherit; font-size: 15px;
  width: 100%; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(224, 208, 234, .5); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--magenta-hot);
}
.contact-form .btn-primary { justify-self: start; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--near);
  border-top: 1px solid var(--line-inv);
  padding: 42px 0 24px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-inv);
}
.footer-tag { color: var(--near-dim); margin-top: 10px; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--near-dim); font-size: 15px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--near-dim); font-size: 14px; padding-top: 18px;
}

/* ===== Reveal (must sit before hover transforms) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .radar-scan, .blip-ring, .ring-outer, .led { animation: none; }
}

/* Hover AFTER .reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .btn { transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
  .btn-primary:hover {
    transform: translateY(-2px);
    background: #C2185B;
    box-shadow: 0 16px 32px -12px rgba(233, 30, 140, .7);
  }
  .btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--magenta-hot);
    color: var(--near);
  }
  .nav a:hover { color: var(--near); }
  .nav .nav-cta:hover { border-color: var(--magenta-hot); color: var(--magenta-hot); }
  .return-card.reveal.in:hover,
  .return-card:hover {
    transform: translateY(-6px);
    border-color: var(--magenta);
    box-shadow: 0 22px 40px -22px rgba(233, 30, 140, .4);
  }
  .board-row.reveal.in:hover,
  .board-row:hover {
    transform: translateY(-4px);
    border-color: var(--magenta);
    box-shadow: 0 18px 36px -22px rgba(156, 39, 176, .35);
  }
  .about-aside.reveal.in:hover,
  .about-aside:hover { border-color: var(--magenta); }
  .faq-item:hover { border-color: var(--magenta); }
  .faq-q:hover { color: var(--purple-deep); }
  .contact-email:hover { border-bottom-color: var(--magenta-hot); }
  .footer-nav a:hover { color: var(--near); }
  .contact-form.reveal.in:hover,
  .contact-form:hover { border-color: var(--magenta-hot); }
}

/* ===== Tablet ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .scope-wrap { margin: 0 auto; width: min(100%, 420px); }
  .hero h1 { max-width: none; }
  .about-grid,
  .faq-wrap,
  .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .return-grid { grid-template-columns: 1fr 1fr; }
  .telemetry-grid { grid-template-columns: 1fr; gap: 22px; }
  .board-row { grid-template-columns: 64px 1fr; }
  .board-row .tag { grid-column: 2; }
}

/* ===== Mobile ~390px ===== */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(18, 8, 20, .98);
    border-bottom: 1px solid var(--line-inv);
    padding: 12px 24px 22px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 110;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 14px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line-inv);
    color: var(--near);
  }
  .nav .nav-cta {
    text-align: center; margin-top: 12px;
    border-color: var(--magenta-hot); color: var(--magenta-hot);
  }

  .container { padding: 0 20px; }
  .band { padding: 64px 0; }
  .hero { padding: calc(var(--header-h) + 20px) 0 48px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .return-grid { grid-template-columns: 1fr; }
  .board-row { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .board-row .tag { justify-self: start; }
  .contact-form { padding: 20px; }
  .contact-form .btn-primary { width: 100%; justify-self: stretch; }
  .footer-inner, .footer-bottom { flex-direction: column; }
  .scope-hud-bottom { font-size: 9px; gap: 4px; }
  .hero-fix { flex-direction: column; gap: 12px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 2.15rem; }
  .return-card, .about-aside { padding: 20px; }
  .scope-hud { font-size: 10px; }
}
