/* =========================================================
   Accelerantia — site styles
   Visual direction modeled on quanticsolutions.net:
   deep navy/violet gradients, Jost type, glowing blue cards,
   light "about" sections, spaced uppercase headings.
   Contrast ratios target WCAG 2.1 AA (IS 5568).
   ========================================================= */

:root {
  /* dark palette */
  --navy-950: #070c18;
  --navy-900: #0b1030;
  --navy-800: #0f172a;
  --violet-900: #1b0e3a;
  --ink-dark-bg: #0a0f16;

  /* light palette */
  --bg-light: #f8f9fa;
  --bg-muted: #f1f5f9;
  --card-white: #ffffff;
  --ink: #1e293b;          /* 13.9:1 on #f8f9fa */
  --ink-soft: #475569;     /* 7.2:1 on #f8f9fa */
  --border: #dee2e6;

  /* text on dark */
  --on-dark: #e9edf2;      /* ~15:1 on navy */
  --on-dark-soft: #b4c2d6; /* ~9:1 on navy */

  /* accents */
  --accent: #3b82f6;
  --accent-strong: #2563eb; /* 5.2:1 with white text */
  --accent-light: #60a5fa;  /* 7:1 on navy */
  --cyan: #38bdf8;
  --violet: #8b5cf6;

  --focus: #fbbf24;

  --radius: 14px;
  --radius-lg: 18px;
  --maxw: 1160px;
  --header-h: 72px;

  --font: "Jost", "Century Gothic", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy-950);
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus { outline: none; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--focus);
  color: #111;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #1d4ed8; box-shadow: 0 8px 24px rgba(37, 99, 235, .35); }

.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, .35); }

.btn-glass {
  background: rgba(30, 41, 90, .55);
  color: var(--on-dark);
  border-color: rgba(96, 165, 250, .45);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { box-shadow: 0 0 24px rgba(96, 165, 250, .35); }

.btn-nav {
  background: rgba(15, 23, 42, .9);
  color: #e5edf7;
  border-color: rgba(96, 165, 250, .35);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  box-shadow: 0 0 18px rgba(59, 130, 246, .25);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 12, 24, .55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background-color .3s ease;
}
.site-header.is-scrolled { background: rgba(7, 12, 24, .92); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  text-decoration: none;
}
.brand img { width: 28px; height: auto; }
.brand-name {
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .95rem;
}

.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav ul { display: flex; gap: 32px; }
.primary-nav ul a {
  color: #c5d0e0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.primary-nav ul a:hover,
.primary-nav ul a[aria-current="true"] { color: #fff; border-bottom-color: var(--accent-light); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .25s ease, opacity .25s ease;
}
.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); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    background: rgba(7, 12, 24, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav ul a { display: block; padding: 12px 4px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(1200px 600px at 80% 110%, rgba(126, 58, 200, .45), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(37, 99, 235, .25), transparent 60%),
    linear-gradient(160deg, #0b1030 0%, #151032 45%, #2a1550 100%);
}

.network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 320px at 50% 45%, rgba(96, 165, 250, .14), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 64px 32px;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.hero-mark {
  width: clamp(96px, 12vw, 132px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(147, 197, 253, .35));
}
.hero-wordmark {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f1f5f9;
  margin-right: -.16em;
}
.hero-tagline {
  margin: 10px 0 0;
  font-size: clamp(.75rem, 1.4vw, .9rem);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-right: -.32em;
}

.hero-rule {
  display: block;
  width: 140px;
  height: 2px;
  margin: 22px auto;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 26px;
  font-size: 1.15rem;
  color: var(--on-dark-soft);
}

.hero-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 72px;
}

.glass-card {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}
.glass-title { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.glass-card p { font-size: .9rem; color: var(--on-dark-soft); }

.motion-toggle {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(7, 12, 24, .6);
  color: var(--on-dark);
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}
.motion-icon {
  width: 10px; height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.motion-toggle[aria-pressed="true"] .motion-icon {
  width: 0; height: 0;
  border-left: 10px solid currentColor;
  border-right: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

@media (max-width: 760px) {
  .hero-cards { grid-template-columns: 1fr; padding-bottom: 80px; }
}

/* ---------- sections ---------- */
.section { position: relative; padding-block: 96px; }
.section-light { background: var(--bg-light); }
.section-muted { background: var(--bg-muted); }
.section-dark { background: var(--ink-dark-bg); color: var(--on-dark); }

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.section-title-dark {
  color: #eef4fb;
  letter-spacing: .04em;
  font-weight: 700;
  text-shadow: 0 0 24px rgba(147, 197, 253, .35);
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--on-dark-soft);
  font-size: 1.05rem;
}
.section-intro-light { color: var(--ink-soft); }

#about .section-title,
#team .section-title { margin-bottom: 48px; }

/* ---------- cards ---------- */
.card {
  border-radius: var(--radius);
  padding: 28px;
}
.card-white {
  background: var(--card-white);
  border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .06);
}
.card-dark {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .55)),
    repeating-linear-gradient(90deg, #111 0 18px, #181818 18px 36px);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}
.about-text { display: flex; flex-direction: column; justify-content: center; gap: 0; color: var(--ink); }
.about-text p + p { margin-top: 0; }
.accent-line {
  display: block;
  width: 120px; height: 3px;
  margin-top: 22px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.about-statement { display: flex; align-items: center; justify-content: center; text-align: center; }
.statement {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.5;
}
.hl { color: #7dd3fc; font-weight: 600; }

.about-stats {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  padding-block: 56px;
}
.stats-map {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70%;
  color: #93c5fd;
  opacity: .35;
}
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  text-align: center;
}
.stat { display: flex; flex-direction: column-reverse; }
.stat dd { margin: 0; font-size: 2rem; font-weight: 700; color: var(--ink); }
.stat dt { font-size: .95rem; color: var(--ink); font-weight: 500; }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- focus areas ---------- */
.section-focus {
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 100% 100%, rgba(126, 58, 200, .35), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(37, 99, 235, .18), transparent 60%),
    var(--ink-dark-bg);
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.section-focus .container { position: relative; }

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.focus-card {
  padding: 36px 26px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, .55);
  border: 1px solid rgba(56, 189, 248, .45);
  box-shadow: 0 0 22px rgba(56, 189, 248, .12), inset 0 0 22px rgba(56, 189, 248, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 34px rgba(56, 189, 248, .28), inset 0 0 22px rgba(56, 189, 248, .08);
}
.focus-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, .6));
}
.focus-card h3 { font-size: 1.25rem; font-weight: 500; color: #fff; margin-bottom: 10px; }
.focus-card p { color: var(--on-dark-soft); font-size: .98rem; }
.focus-card .focus-tag {
  display: inline-block;
  margin: -2px 0 12px;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, .5);
  color: #7dd3fc;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .focus-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* ---------- our work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.work-card {
  min-height: 320px;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 14px;
}
.work-card h3 { font-size: 1.6rem; font-weight: 600; }
.work-card p { margin: 0 0 8px; }
.work-card-dark {
  color: var(--on-dark);
  background:
    radial-gradient(500px 300px at 20% 0%, rgba(59, 130, 246, .25), transparent 70%),
    linear-gradient(160deg, #0b1324, #0a1a33);
  border: 1px solid rgba(59, 130, 246, .5);
}
.work-card-dark h3 { color: var(--accent-light); }
.work-card-dark p { color: var(--on-dark-soft); }
.work-card-light {
  color: var(--ink);
  background: linear-gradient(160deg, #ffffff, #eef2f7);
  border: 1px solid #cbd5e1;
}
.work-card-light p { color: var(--ink-soft); }

@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.team-card { display: flex; gap: 22px; align-items: flex-start; }
.avatar {
  flex: none;
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent-strong), 0 8px 20px rgba(15, 23, 42, .15);
  filter: grayscale(1);
}
.team-card h3 { font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.role { color: var(--accent-strong); font-weight: 500; margin: 2px 0 10px; }
.team-card p:not(.role) { color: var(--ink-soft); }

@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .team-card { flex-direction: column; }
}

/* ---------- vision ---------- */
.section-vision {
  overflow: hidden;
  color: var(--on-dark);
  background: linear-gradient(135deg, #070c18 0%, #0b1030 45%, #1b0e3a 75%, #0a0f16 100%);
  padding-block: 120px;
}
.vision-content { position: relative; text-align: center; }
.vision-mark {
  width: 96px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 28px rgba(147, 197, 253, .45));
}
.vision-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #eef1fb;
  text-shadow: 0 0 26px rgba(165, 180, 252, .35);
  margin-bottom: 20px;
}
.vision-text {
  max-width: 640px;
  margin: 0 auto 26px;
  color: var(--on-dark-soft);
  font-size: 1.05rem;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.pills li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .05);
  font-size: .9rem;
}
.vision-tagline { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 600; color: #fff; }
.hl-blue { color: var(--accent-light); }

/* ---------- footer / contact ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--on-dark-soft);
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1.2fr;
  gap: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo img { width: 40px; height: auto; }
.footer-logo span {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.footer-brand address { font-style: normal; margin-top: 18px; line-height: 1.8; }
.footer-brand strong { color: var(--on-dark); }
.site-footer a { color: var(--accent-light); }
.site-footer a:hover { color: #bfdbfe; }
.site-footer .btn-primary,
.site-footer .btn-primary:hover { color: #fff; }

.footer-heading {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--on-dark);
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--on-dark-soft); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-contact p { margin-bottom: 18px; }
.contact-list { display: grid; gap: 12px; margin: 0 0 24px; }
.contact-list dt {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--on-dark-soft);
}
.contact-list dd { margin: 2px 0 0; font-size: 1.1rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .88rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- accessibility statement page ---------- */
.page-hero {
  color: var(--on-dark);
  background: linear-gradient(135deg, #070c18 0%, #0b1030 55%, #1b0e3a 100%);
  padding-block: 72px 56px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: .03em; }
.page-hero p { color: var(--on-dark-soft); margin-top: 10px; }
.prose { max-width: 780px; margin-inline: auto; color: var(--ink); }
.prose h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.prose ul { list-style: disc; padding-inline-start: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent-strong); }
.placeholder-note {
  background: #fef3c7;
  color: #422006;
  border-radius: 10px;
  padding: 12px 16px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- forced colors (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .btn, .focus-card, .glass-card, .card { border: 1px solid CanvasText; }
}
