/* ============================================================
   3RD QUOTE — Data in Motion
   ============================================================ */

:root {
  --bg-0: #02040c;
  --bg-1: #050a1a;
  --ink: #eaf2ff;
  --ink-dim: #9fb2cf;
  --ink-faint: #5f7090;

  --cyan: #22d3ee;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --magenta: #d946ef;

  --line: rgba(120, 160, 230, 0.16);

  --grad-text: linear-gradient(100deg, #2ee6f6 0%, #4f9bff 32%, #8b7bff 62%, #e06bf0 100%);
  --grad-btn: linear-gradient(100deg, #22d3ee 0%, #3b82f6 60%, #6366f1 100%);

  --font-display: "Saira", system-ui, sans-serif;
  --font-tech: "Chakra Petch", "Saira", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--bg-0);
  min-height: 100vh;
  /* clip (not hidden) prevents a horizontal scrollbar WITHOUT turning the
     body into a scroll container, which was blocking vertical page scroll. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background layers ---------- */
/* Full-bleed artwork */
/* Dark atmospheric base (mimics the original scene's navy + glow) */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 64% 42%, rgba(46,72,170,0.40), transparent 62%),
    radial-gradient(55% 55% at 78% 26%, rgba(110,60,190,0.26), transparent 60%),
    radial-gradient(60% 70% at 28% 82%, rgba(30,40,110,0.30), transparent 65%),
    #04061a;
}

/* The glowing helix, isolated from its background so it can be animated */
.bg-helix {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../images/helix-layer.webp") center center / cover no-repeat;
  transform-origin: 62% 48%;
  will-change: transform, filter;
  animation: helixFloat 55s ease-in-out infinite, helixGlow 24s ease-in-out infinite;
}
/* Energy pulse that travels along the strand (masked to the helix shape) */
.bg-helix::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 42%,
    rgba(120,220,255,0.0) 47%,
    rgba(140,225,255,0.16) 50%,
    rgba(120,220,255,0.0) 53%,
    transparent 58%);
  background-size: 250% 250%;
  -webkit-mask: url("../images/helix-layer.webp") center center / cover no-repeat;
          mask: url("../images/helix-layer.webp") center center / cover no-repeat;
  mix-blend-mode: screen;
  animation: helixSweep 22s linear infinite;
}

@keyframes helixFloat {
  0%, 100% { transform: scale(1.03) translateY(0) rotate(0deg); }
  50%      { transform: scale(1.038) translateY(-0.25%) rotate(0.1deg); }
}
@keyframes helixGlow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(60,110,255,0.12)) brightness(1); }
  50%      { filter: drop-shadow(0 0 22px rgba(90,130,255,0.2)) brightness(1.025); }
}
@keyframes helixSweep {
  0%   { background-position: 130% -30%; }
  100% { background-position: -30% 130%; }
}

/* Dark scrim: heavier on the left so the headline stays legible over the art */
.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,4,12,0.92) 0%, rgba(2,4,12,0.7) 32%, rgba(2,4,12,0.2) 62%, rgba(2,4,12,0.45) 100%),
    linear-gradient(0deg, rgba(2,4,12,0.85) 0%, transparent 30%);
}

#network-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Dark shade behind the top bar so the menu stays readable over the artwork */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 160px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2,4,12,0.82) 0%, rgba(2,4,12,0.4) 48%, transparent 100%);
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  flex-direction: column;
}

/* ============ HEADER ============ */
.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 26px 0 14px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand__logo {
  height: clamp(60px, 6.5vw, 86px);
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(80,120,255,0.35));
}

.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
  margin-left: auto;
}
.nav a {
  color: #e3ecfb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0,3,12,0.65);
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad-btn);
  transition: width 0.3s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.nav a.is-active { color: #fff; }
.nav a.is-active::after { width: 100%; }

.nav__cta { margin-left: 8px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s;
}
.btn--pill { padding: 15px 30px; border-radius: 999px; }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  color: #03101f;
  font-weight: 700;
  background: var(--grad-btn);
  box-shadow: 0 8px 30px rgba(40,120,255,0.4), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(60,140,255,0.6), inset 0 0 0 1px rgba(255,255,255,0.4);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(120,160,230,0.04);
  box-shadow: inset 0 0 0 1px rgba(140,170,235,0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  color: #fff;
  background: rgba(120,160,230,0.1);
  box-shadow: inset 0 0 0 1px rgba(80,210,255,0.8), 0 0 22px rgba(40,120,255,0.25);
  transform: translateY(-2px);
}

/* ============ HERO ============ */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(20px, 4vw, 50px) 0;
}

.hero__copy { max-width: min(1160px, 94vw); }

.eyebrow {
  color: var(--cyan);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  margin-bottom: 22px;
  padding-left: 16px;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 70%;
  background: var(--grad-btn);
  border-radius: 2px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 7.3vw, 96px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
/* width:max-content shrinks each line to its text so the gradient always
   covers the full word (no clipped letters) and lines never mid-wrap. */
.headline .line { display: block; width: max-content; max-width: 100%; }
.headline .line:not(.line--accent) {
  color: #fff;
  text-shadow: 0 0 40px rgba(120,160,255,0.25);
}
.line--accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(120,90,255,0.45));
}

.lead {
  color: var(--ink-dim);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  font-weight: 400;
  margin: 28px 0 38px;
}

.cta-row { display: flex; gap: 18px; flex-wrap: wrap; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ FEATURE STRIP ============ */
.features {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 46px);
  padding: 10px 0 56px;
  flex-wrap: wrap;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  min-width: 120px;
}
.feature__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  filter: drop-shadow(0 0 10px rgba(60,140,255,0.5));
}
.feature__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  line-height: 1.45;
}
.feature__sep {
  width: 1px;
  align-self: stretch;
  min-height: 72px;
  background: linear-gradient(180deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

/* ============ HUD GLOBE ============ */
.hud {
  position: fixed;
  right: clamp(16px, 3vw, 48px);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 2;
}
.hud__globe { position: relative; width: 120px; height: 120px; }
.hud__sphere {
  position: absolute; inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(60,180,255,0.25), transparent 60%),
    repeating-linear-gradient(0deg, rgba(60,150,255,0.35) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(60,150,255,0.35) 0 1px, transparent 1px 7px);
  box-shadow: 0 0 30px rgba(40,120,255,0.4), inset 0 0 20px rgba(40,120,255,0.3);
  border: 1px solid rgba(80,160,255,0.4);
}
.hud__arc {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}
.hud__arc--1 { border-top-color: var(--cyan); border-right-color: rgba(34,211,238,0.3); animation: spin 8s linear infinite; }
.hud__arc--2 { inset: 10%; border-bottom-color: var(--violet); border-left-color: rgba(139,92,246,0.3); animation: spin 12s linear infinite reverse; }

.hud__legend { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hud__legend li {
  display: flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.13em;
  color: var(--ink-dim);
}
.dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.dot--cyan { background: var(--cyan); color: var(--cyan); }
.dot--violet { background: var(--violet); color: var(--violet); }
.dot--blue { background: var(--blue); color: var(--blue); }

/* ============ MOBILE NAV TOGGLE ============ */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  margin-left: auto;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .site-header { position: relative; }
  .nav__cta { display: none; }
  .nav-toggle { display: flex; }
  .hud { position: static; justify-content: center; margin: 0 auto 40px; }

  /* nav becomes a drop-down panel under the header */
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: linear-gradient(180deg, rgba(10,16,38,0.98), rgba(6,10,24,0.98));
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0,8,30,0.6);
    backdrop-filter: blur(16px);
    max-height: 85vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(120,160,235,0.4) transparent;
  }
  .nav::-webkit-scrollbar { width: 8px; }
  .nav::-webkit-scrollbar-thumb { background: rgba(120,160,235,0.35); border-radius: 8px; }
  .nav::-webkit-scrollbar-track { background: transparent; }
  body.nav-open .nav { display: flex; }

  .nav > a,
  .nav-parent { padding: 14px 22px !important; width: 100%; white-space: normal !important; }
  .dropdown a { white-space: normal !important; }
  .nav a::after { display: none; }            /* no underline animation on mobile */
  .nav-caret { display: none; }               /* children are shown expanded */

  .nav-group { display: block; position: static; }
  .dropdown {
    position: static; transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; padding: 0 0 6px;
    background: rgba(120,160,235,0.05);
    border: none; border-radius: 0; box-shadow: none; backdrop-filter: none;
  }
  .dropdown::before { display: none; }
  .dropdown a { padding: 12px 22px 12px 38px !important; }

  /* hamburger → X */
  .nav-toggle span { transition: transform 0.25s ease, opacity 0.2s ease; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .features { justify-content: center; gap: 22px; }
  .feature__sep { display: none; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   CUSTOMER ACCESS PORTAL
   ============================================================ */
.bg-scrim--center {
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(2,4,12,0.55) 0%, rgba(2,4,12,0.82) 70%, rgba(2,4,12,0.92) 100%),
    linear-gradient(0deg, rgba(2,4,12,0.85) 0%, transparent 30%);
}

.auth {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(24px, 4vw, 56px) 0 64px;
}

/* ---- Login card ---- */
.auth-card {
  background: linear-gradient(160deg, rgba(18,28,58,0.72), rgba(8,14,34,0.6));
  border: 1px solid rgba(120,160,235,0.22);
  border-radius: 22px;
  padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 30px 80px rgba(0,8,30,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
}
.auth-card .eyebrow { margin-bottom: 14px; }
.auth-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
}
.auth-card__title .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-card__sub {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.55;
  margin: 14px 0 26px;
}

/* ---- Form ---- */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.field input {
  width: 100%;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  background: rgba(4,8,22,0.6);
  border: 1px solid rgba(120,160,235,0.24);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder { color: #46587a; }
.field input:focus {
  outline: none;
  border-color: rgba(80,210,255,0.8);
  background: rgba(6,12,30,0.8);
  box-shadow: 0 0 0 3px rgba(40,120,255,0.18);
}
.field__pw { position: relative; display: block; }
.field__pw input { padding-right: 66px; }
.pw-toggle {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  padding: 8px 10px;
}
.pw-toggle:hover { color: #fff; }

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.checkbox { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-dim); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }

.link { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
.link:hover { color: #fff; }
.link--strong { font-weight: 700; }

.btn--block { width: 100%; justify-content: center; margin-top: 4px; }

.auth-form__note {
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 1px;
  margin-top: 2px;
}
.auth-form__note.is-error { color: #ff7a8a; }
.auth-form__note.is-ok { color: #7ee0a0; }

.auth-card__divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0 18px;
  color: var(--ink-faint);
  font-size: 12px; letter-spacing: 0.2em;
}
.auth-card__divider::before,
.auth-card__divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.auth-card__foot { text-align: center; color: var(--ink-dim); font-size: 14.5px; }

/* ---- Aside (feature list) ---- */
.auth-aside { max-width: 460px; }
.auth-aside__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  color: #fff;
  margin-bottom: 26px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.auth-aside__list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.auth-aside__list li { display: flex; gap: 16px; align-items: flex-start; }
.ai-icon {
  flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(20,32,66,0.6);
  border: 1px solid rgba(120,160,235,0.2);
  filter: drop-shadow(0 0 10px rgba(60,140,255,0.3));
}
.auth-aside__list div { display: flex; flex-direction: column; gap: 4px; }
.auth-aside__list b { color: #fff; font-size: 16px; font-weight: 600; }
.auth-aside__list span { color: var(--ink-dim); font-size: 14px; line-height: 1.5; }

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; gap: 40px; }
  .auth-aside { order: -1; max-width: none; }
  .auth-aside__title { margin-bottom: 18px; }
}
@media (max-width: 520px) {
  .auth-card { padding: 24px 20px; }
  .auth-form__row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============================================================
   THE BOGGS EFFECT
   ============================================================ */
.boggs-intro { padding: clamp(24px, 4vw, 48px) 0 8px; }
.boggs-intro__copy { max-width: 760px; }
.boggs-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
  margin-top: 6px;
}
.boggs-title .grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(120,90,255,0.4));
}
.boggs-lead {
  color: var(--ink-dim);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  margin: 22px 0 26px;
  max-width: 680px;
}

.boggs-author { display: flex; align-items: center; gap: 14px; }
.boggs-author__avatar {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-family: var(--font-tech);
  font-weight: 700; font-size: 16px; letter-spacing: 0.04em;
  color: #03101f;
  background: var(--grad-btn);
  box-shadow: 0 0 18px rgba(60,140,255,0.45);
}
.boggs-author__meta { display: flex; flex-direction: column; line-height: 1.3; }
.boggs-author__meta b { color: #fff; font-size: 15px; }
.boggs-author__meta span { color: var(--ink-faint); font-size: 13px; }

/* ---- Feed ---- */
.boggs-feed {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  padding: 26px 0 72px;
  align-content: start;
}
.boggs-empty { color: var(--ink-dim); grid-column: 1 / -1; }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(18,28,58,0.6), rgba(8,14,34,0.5));
  border: 1px solid rgba(120,160,235,0.18);
  box-shadow: 0 18px 50px rgba(0,8,30,0.4);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s;
  animation: cardIn 0.6s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.post-card:hover, .post-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(80,210,255,0.55);
  box-shadow: 0 26px 60px rgba(20,60,160,0.45);
  outline: none;
}
.post-card--featured {
  grid-column: 1 / -1;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(60,90,200,0.28), transparent 55%),
    linear-gradient(160deg, rgba(22,34,72,0.7), rgba(8,14,34,0.55));
  border-color: rgba(120,160,235,0.3);
}
.post-card__flag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  color: #03101f;
  background: var(--grad-btn);
  padding: 4px 12px; border-radius: 999px;
}
.post-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.04em;
}
.post-card__event { color: var(--cyan); font-weight: 600; }
.post-card__dot { opacity: 0.5; }
.post-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  font-size: clamp(20px, 2vw, 26px);
}
.post-card--featured .post-card__title { font-size: clamp(24px, 3vw, 36px); max-width: 18ch; }
.post-card__excerpt { color: var(--ink-dim); font-size: 15px; line-height: 1.6; }
.post-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.pill {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink-dim);
  background: rgba(120,160,235,0.1);
  border: 1px solid rgba(120,160,235,0.2);
  padding: 4px 11px; border-radius: 999px;
}
.post-card__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan); font-weight: 600; font-size: 14px;
}
.post-card:hover .post-card__cta .arrow { transform: translateX(4px); }
.post-card__cta .arrow { transition: transform 0.25s; }

/* ---- Article overlay ---- */
.article-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.article-overlay[hidden] { display: none; }
.article-overlay__backdrop { position: absolute; inset: 0; background: rgba(2,4,12,0.7); backdrop-filter: blur(6px); }
.article {
  position: relative;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(16,24,52,0.96), rgba(6,11,28,0.96));
  border: 1px solid rgba(120,160,235,0.28);
  box-shadow: 0 40px 100px rgba(0,8,30,0.7);
  animation: cardIn 0.4s ease both;
}
.article__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(120,160,235,0.12);
  border: 1px solid rgba(120,160,235,0.3);
  color: var(--ink); font-size: 15px; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.article__close:hover { background: rgba(120,160,235,0.25); transform: rotate(90deg); }
.article__inner { padding: clamp(28px, 4vw, 48px); overflow-y: auto; max-height: 88vh; }
.article__title {
  font-family: var(--font-display);
  font-weight: 800; color: #fff;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12; margin: 10px 0 18px;
}
.article__byline {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-dim); font-size: 14px; margin-bottom: 16px;
}
.article__byline b { color: #fff; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.article__body { color: var(--ink-dim); font-size: 16px; line-height: 1.75; }
.article__body p { margin-bottom: 16px; }
.article__body .article__h {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  margin: 28px 0 10px;
}
.article__body .article__h:first-child { margin-top: 0; }
.article__body strong { color: #fff; font-weight: 700; }
.article__body ul { margin: 0 0 16px; padding-left: 4px; list-style: none; }
.article__body li {
  position: relative; padding-left: 22px; margin-bottom: 10px;
}
.article__body li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-btn); box-shadow: 0 0 8px rgba(60,140,255,0.6);
}
.article__contact { margin-top: 12px; }

/* ---- Post media (cover image + video) ---- */
.post-card__cover {
  display: block;
  width: calc(100% + 52px);
  height: 180px;
  object-fit: cover;
  margin: -26px -26px 16px -26px;
  border-radius: 18px 18px 0 0;
}
.post-card--featured .post-card__cover { height: 230px; }
.article__media { margin: 4px 0 22px; }
.article__cover { width: 100%; border-radius: 14px; display: block; margin-bottom: 16px; }
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.article__gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.article__gallery img { width: 100%; height: 130px; object-fit: cover; display: block; transition: transform 0.3s ease; cursor: zoom-in; }
.article__gallery a:hover img { transform: scale(1.05); }

@media (max-width: 640px) {
  .boggs-feed { grid-template-columns: 1fr; }
}

/* ============================================================
   NAV DROPDOWN (Solutions)
   ============================================================ */
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-parent { display: inline-flex !important; align-items: center; gap: 7px; }
.nav-caret {
  font-size: 9px; line-height: 1;
  transition: transform 0.25s ease;
  opacity: 0.8;
}
.nav-group:hover .nav-caret,
.nav-group:focus-within .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 240px;
  background: linear-gradient(160deg, rgba(16,24,52,0.98), rgba(8,14,34,0.98));
  border: 1px solid rgba(120,160,235,0.22);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 26px 60px rgba(0,8,30,0.6);
  backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}
/* invisible bridge so the menu doesn't close in the gap */
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(10px);
}
.dropdown a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--ink-dim) !important;
  font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  white-space: nowrap; text-shadow: none;
}
.dropdown a::after { display: none !important; }
.dropdown a:hover,
.dropdown a.is-active { background: rgba(120,160,235,0.14); color: #fff !important; }
.dropdown a .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-btn); flex: none;
  box-shadow: 0 0 8px rgba(60,140,255,0.6);
}

/* ============================================================
   SOLUTION / SUB PAGES
   ============================================================ */
.subpage { flex: 1; padding: clamp(24px, 4vw, 56px) 0 72px; }

.subpage-hero { max-width: 820px; margin-bottom: clamp(36px, 5vw, 60px); }
.subpage-hero .eyebrow { margin-bottom: 16px; }
.subpage-title {
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1; color: #fff;
}
.subpage-title .grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(120,90,255,0.4));
}
.subpage-lead {
  color: var(--ink-dim);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6; margin: 22px 0 30px;
  max-width: 680px;
}
.subpage-hero .cta-row { margin-top: 4px; }

/* Section heading */
.sec-head { margin: 8px 0 24px; }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(22px, 2.6vw, 32px); color: #fff;
}
.sec-head p { color: var(--ink-dim); margin-top: 8px; max-width: 620px; line-height: 1.55; }

/* Capability cards grid */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.cap-card {
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(18,28,58,0.6), rgba(8,14,34,0.5));
  border: 1px solid rgba(120,160,235,0.18);
  box-shadow: 0 18px 50px rgba(0,8,30,0.4);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s;
}
.cap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(80,210,255,0.5);
  box-shadow: 0 26px 60px rgba(20,60,160,0.4);
}
.cap-card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 13px;
  background: rgba(20,32,66,0.6);
  border: 1px solid rgba(120,160,235,0.2);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(60,140,255,0.3));
}
.cap-card h3 { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.cap-card p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; }

/* Checklist */
.checklist { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 28px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-dim); line-height: 1.5; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: #03101f; background: var(--grad-btn);
}
.checklist b { color: #fff; font-weight: 600; }

/* CTA band */
.cta-band {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 22px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(60,90,200,0.3), transparent 55%),
    linear-gradient(160deg, rgba(22,34,72,0.75), rgba(8,14,34,0.6));
  border: 1px solid rgba(120,160,235,0.28);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 22px;
}
.cta-band h2 {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; color: #fff;
  font-size: clamp(22px, 2.8vw, 34px); line-height: 1.1; max-width: 18ch;
}
.cta-band p { color: var(--ink-dim); margin-top: 8px; max-width: 46ch; line-height: 1.55; }

/* Section spacing */
.subsection { margin-top: clamp(40px, 5vw, 64px); }

/* Solutions overview cards */
.sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.sol-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(18,28,58,0.62), rgba(8,14,34,0.5));
  border: 1px solid rgba(120,160,235,0.18);
  box-shadow: 0 18px 50px rgba(0,8,30,0.4);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s;
}
.sol-card:hover {
  transform: translateY(-5px);
  border-color: rgba(80,210,255,0.55);
  box-shadow: 0 28px 64px rgba(20,60,160,0.45);
}
.sol-card__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 15px;
  background: rgba(20,32,66,0.6); border: 1px solid rgba(120,160,235,0.22);
  filter: drop-shadow(0 0 12px rgba(60,140,255,0.35));
}
.sol-card h2 { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 23px; }
.sol-card p { color: var(--ink-dim); font-size: 15px; line-height: 1.6; flex: 1; }
.sol-card__cta { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 600; font-size: 14px; }
.sol-card:hover .sol-card__cta .arrow { transform: translateX(4px); }
.sol-card__cta .arrow { transition: transform 0.25s; }

@media (max-width: 720px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: 4px 0 72px;
}
.form-card {
  background: linear-gradient(160deg, rgba(18,28,58,0.72), rgba(8,14,34,0.6));
  border: 1px solid rgba(120,160,235,0.22);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 30px 80px rgba(0,8,30,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* textarea + select reuse the .field input look */
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  background: rgba(4,8,22,0.6);
  border: 1px solid rgba(120,160,235,0.24);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(80,210,255,0.8);
  background: rgba(6,12,30,0.8);
  box-shadow: 0 0 0 3px rgba(40,120,255,0.18);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239fb2cf' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field select option { background: #0a1430; color: var(--ink); }

.form-note { font-size: 13.5px; line-height: 1.5; margin-top: 2px; }
.form-note.is-error { color: #ff7a8a; }
.form-note.is-ok { color: #7ee0a0; }

.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Aside */
.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.contact-aside__title {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: #fff; font-size: 20px;
}
.contact-method { display: flex; gap: 14px; align-items: flex-start; }
.contact-method b { color: #fff; font-size: 15px; display: block; margin-bottom: 2px; }
.contact-method span, .contact-method a { color: var(--ink-dim); font-size: 14px; line-height: 1.5; }
.contact-method a { text-decoration: none; }
.contact-method a:hover { color: var(--cyan); }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
