:root {
  color-scheme: light;
  --bg: #0b1020;
  --bg-2: #1a1f3a;
  --surface: #ffffff;
  --surface-alt: #f3f6ff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  /* Brand: electric blue (matches sonitloqrswa --accent) */
  --brand: #4f8cff;
  --brand-dark: #1d4ed8;
  --brand-contrast: #ffffff;
  /* Accent: vivid violet (matches sonitloqrswa --accent-2) — replaces amber */
  --accent: #7c5cff;
  --accent-dark: #5b3ee0;
  --accent-contrast: #ffffff;
  /* Composite gradients used by buttons, headings, accents */
  --gradient-brand: linear-gradient(135deg, var(--brand), var(--accent));
  --gradient-brand-soft: linear-gradient(135deg, rgba(79,140,255,0.12), rgba(124,92,255,0.12));
  /* Brand-tinted shadows so depth feels coloured, not grey */
  --shadow: 0 18px 40px rgba(29, 78, 216, 0.10);
  --shadow-glow: 0 12px 28px rgba(79, 140, 255, 0.35);
  --shadow-glow-accent: 0 12px 28px rgba(124, 92, 255, 0.40);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  /* Subtle radial wash — gives depth without harming readability */
  background:
    radial-gradient(1200px 700px at 0% -10%, rgba(79, 140, 255, 0.07) 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 10%, rgba(124, 92, 255, 0.06) 0%, transparent 55%),
    #f7f9ff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  padding: 8px 12px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 999px;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo span {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  color: #0f172a;
}

.site-nav a {
  font-size: 0.95rem;
}

/* Signal nav link — subtle "live" indicator.
   Targets every page (Signal.html and ../../../Signal.html etc.) without
   needing markup changes. The pulsing dot says "new content here" while
   the gradient CTA button stays the dominant call to action. */
.site-nav a[href$="Signal.html"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark, #1d4ed8);
}

.site-nav a[href$="Signal.html"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  animation: signal-pulse 2.2s ease-out infinite;
  flex: 0 0 auto;
}

@keyframes signal-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(239, 68, 68, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(239, 68, 68, 0);    }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a[href$="Signal.html"]::before {
    animation: none;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--brand-contrast);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: var(--shadow-glow-accent);
}

.btn-secondary {
  border-color: rgba(79, 140, 255, 0.35);
  background: rgba(255, 255, 255, 0.65);
  color: var(--brand-dark);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent-dark);
  box-shadow: var(--shadow-glow-accent);
}

.hero {
  position: relative;
  padding: 80px 0 60px;
  background:
    radial-gradient(1200px 800px at 10% -10%, #2a3170 0%, transparent 60%),
    radial-gradient(1000px 700px at 110% 110%, #4f2a7a 0%, transparent 55%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #0f172a 100%);
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

/* Soft drifting orbs behind the hero — same idiom as sonitloqrswa */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  width: 420px; height: 420px;
  background: var(--brand);
  top: -120px; left: -120px;
  animation: heroFloat 16s ease-in-out infinite;
}
.hero::after {
  width: 480px; height: 480px;
  background: var(--accent);
  bottom: -160px; right: -140px;
  animation: heroFloat 20s ease-in-out infinite reverse;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -20px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}

.hero-contact {
  background:
    linear-gradient(135deg, rgba(11, 16, 32, 0.82) 0%, rgba(30, 41, 59, 0.78) 60%, rgba(15, 23, 42, 0.82) 100%),
    url("../../images/contact_01.png");
  background-size: cover;
  background-position: center;
}

.hero-about {
  background:
    linear-gradient(135deg, rgba(11, 16, 32, 0.8) 0%, rgba(30, 41, 59, 0.76) 60%, rgba(15, 23, 42, 0.8) 100%),
    url("../../images/about_01.png");
  background-size: cover;
  background-position: center;
}

.hero-services {
  background:
    linear-gradient(135deg, rgba(11, 16, 32, 0.86) 0%, rgba(30, 41, 59, 0.82) 60%, rgba(15, 23, 42, 0.86) 100%),
    url("../../images/services_01.png");
  background-size: cover;
  background-position: center;
}

.hero-home {
  background:
    linear-gradient(135deg, rgba(11, 16, 32, 0.86) 0%, rgba(30, 41, 59, 0.82) 60%, rgba(15, 23, 42, 0.86) 100%),
    url("../../images/home_01.png");
  background-size: cover;
  background-position: center;
}

.hero-cards-only {
  background: var(--surface);
  color: var(--text);
}

.hero-about .hero-pop {
  background: linear-gradient(90deg, #b5c4ff, #d4c1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .container {
  display: grid;
  gap: 40px;
}

.hero.hero-single .container {
  grid-template-columns: 1fr;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ffffff 0%, #cdd6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tag {
  margin-bottom: 12px;
}

.hero-pop {
  background: linear-gradient(90deg, #a5b8ff, #c9b3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 24px rgba(124, 92, 255, 0.25);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cards {
  margin-top: 32px;
}

.hero-cards .card {
  cursor: default;
}

.hero-cards h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.hero-cards .engagements {
  padding-left: 0;
  border-left: 0;
  gap: 12px;
}

.hero-cards .engagement-item {
  padding-left: 0;
}

.hero-cards .engagement-item::before {
  display: none;
}

.section-actions {
  margin-top: 20px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
}

.hero-card ul {
  margin: 0;
  padding-left: 20px;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(79, 140, 255, 0.04), rgba(124, 92, 255, 0.04)),
    var(--surface);
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-lead {
  color: var(--muted);
  max-width: 720px;
}

.grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  perspective: 1200px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 140, 255, 0.35);
  box-shadow: 0 24px 50px rgba(79, 140, 255, 0.18);
}

.card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  backface-visibility: hidden;
}

.card-front {
  display: flex;
  flex-direction: column;
}

.card-front .tag {
  align-self: flex-end;
}

.card-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  transform: rotateY(180deg);
}


.card h3 {
  margin: 0 0 12px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .tag {
  align-self: flex-end;
  background: var(--surface-alt);
  color: rgba(15, 23, 42, 0.72);
  border-color: var(--border);
  font-size: 0.78rem;
  font-weight: 600;
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 0.85rem;
}

.list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.engagements {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  padding-left: 18px;
  border-left: 2px solid var(--border);
}

.engagement-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding-left: 12px;
}

.engagement-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}

.engagement-item .tag {
  align-self: flex-start;
  background: var(--gradient-brand-soft);
  color: var(--brand-dark);
  border-color: rgba(79, 140, 255, 0.25);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.engagement-item p {
  margin: 0;
  color: #334155;
  margin-left: 6px;
}

.split {
  display: grid;
  gap: 30px;
  align-items: center;
}

.avatar {
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #ffffff;
}

.callout {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 0;
}

.values .tag {
  background: var(--gradient-brand-soft);
  color: var(--brand-dark);
  border-color: rgba(124, 92, 255, 0.25);
  font-weight: 700;
}


.footer {
  padding: 36px 0 40px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .hero.hero-single .container {
    grid-template-columns: 1fr;
  }

  .grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 4vw;
    top: 72px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 220px;
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 48px;
  }

  .btn {
    width: 100%;
  }

  .site-header .container {
    padding: 12px 0;
  }
}
