/* Extra styles for Design B + current-site merge (Template 04) */

#who-we-are { scroll-margin-top: 96px; }

.brand-mark-wrap {
  position: relative;
  display: grid;
  place-items: center;
}
.brand-mark-wrap::before {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.55), transparent 70%);
  opacity: 0;
  animation: logoGlowPulse 2.6s ease-in-out 1.6s infinite;
  z-index: 0;
}
.brand-mark-wrap img { position: relative; z-index: 1; }

/* Large animated shield BEHIND the Insights/brand box */
.hero__stage {
  position: relative;
  isolation: isolate;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-shield-back {
  position: absolute;
  inset: -8% -4% -12% -2%;
  z-index: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.hero-shield-glow {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(245, 185, 66, 0.42) 0%, rgba(0, 212, 255, 0.16) 42%, transparent 70%);
  filter: blur(22px);
  opacity: 0;
  animation: shieldBgGlow 2.8s ease-in-out 2s infinite;
}

.hero-shield-svg {
  width: min(100%, 520px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(0, 212, 255, 0.18));
}

.hero-shield-path {
  stroke-dasharray: 920;
  stroke-dashoffset: 920;
  animation: drawShield 1.7s ease forwards 0.2s;
}

.hero-shield-bolt {
  opacity: 0;
  transform-origin: 160px 180px;
  transform-box: fill-box;
  animation: boltIn 0.75s ease forwards 1.15s;
}

.hero-shield-fill {
  opacity: 0;
  animation: shieldFillIn 0.85s ease forwards 1.75s, shieldFillPulse 2.8s ease-in-out 2.5s infinite;
}

.hero-shield-node {
  opacity: 0;
  animation: boltIn 0.45s ease forwards 1.55s;
}
.hero-shield-node.node-b { animation-delay: 1.65s; }
.hero-shield-node.node-c { animation-delay: 1.75s; }

.hero__visual--merge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 420px);
  margin-inline: auto;
  padding: 1.15rem 1.25rem 1.25rem;
  background: linear-gradient(160deg, rgba(10, 16, 24, 0.42), rgba(16, 24, 36, 0.36));
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.hero__logo-col {
  min-width: 0;
  width: 100%;
  text-align: center;
}
.logo-lockup { position: relative; }
.logo-glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.45), rgba(0, 212, 255, 0.15), transparent 70%);
  filter: blur(16px);
  opacity: 0;
  animation: logoBackGlow 2.8s ease-in-out 1.8s infinite;
  pointer-events: none;
}
.logo-lockup__mark {
  position: relative;
  z-index: 1;
  animation: logoPop 0.8s ease both 0.25s;
}

.insight-panel {
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(3, 8, 14, 0.92);
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.insight-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}
.insight-top__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.insight-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.insight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.8);
}
.insight-q {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.attack-path {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
}
.attack-path .node {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.4rem;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 4px;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.07);
}
.attack-path .node.warn {
  border-color: rgba(245, 185, 66, 0.55);
  color: var(--amber);
  background: rgba(245, 185, 66, 0.1);
}
.attack-path .edge {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.5), rgba(245, 185, 66, 0.7));
}

.insight-chat-msgs {
  max-height: 120px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.insight-chat-msgs:empty { display: none; margin: 0; }
.insight-msg {
  font-size: 0.76rem;
  line-height: 1.4;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  white-space: pre-wrap;
}
.insight-msg.user {
  align-self: flex-end;
  background: rgba(245, 185, 66, 0.12);
  border: 1px solid rgba(245, 185, 66, 0.35);
}
.insight-msg.bot {
  align-self: flex-start;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.28);
}
.insight-chat-form {
  display: flex;
  gap: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.55rem;
}
.insight-chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #030508;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.5rem 0.6rem;
}
.insight-chat-form input::placeholder { color: var(--muted); }
.insight-chat-form button {
  border: 0;
  border-radius: 6px;
  background: var(--cyan);
  color: #001018;
  font-weight: 700;
  padding: 0 0.7rem;
  cursor: pointer;
}

/* Floating Grim bot — Insights panel UI */
.sc-bot {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sc-bot-toggle {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(0, 212, 255, 0.7);
  border-radius: 50%;
  padding: 0;
  background:
    radial-gradient(circle at 30% 22%, rgba(245, 185, 66, 0.28), transparent 46%),
    radial-gradient(circle at 70% 78%, rgba(0, 212, 255, 0.18), transparent 48%),
    #061018;
  color: #001018;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(245, 185, 66, 0.22),
    inset 0 0 18px rgba(0, 212, 255, 0.12);
  position: relative;
  overflow: visible;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.sc-bot-toggle:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(245, 185, 66, 0.85);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(0, 212, 255, 0.35),
    inset 0 0 22px rgba(245, 185, 66, 0.14);
}
.sc-bot-toggle--paw {
  padding: 0;
}
.sc-bot-toggle__paw {
  width: 38px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.35));
}
.sc-bot-toggle__badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3dde6a;
  border: 2px solid #061018;
  box-shadow: 0 0 10px rgba(61, 222, 106, 0.65);
}
.sc-bot-panel.insight-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(340px, calc(100vw - 1.5rem));
  display: flex;
  flex-direction: column;
  max-height: min(520px, calc(100vh - 7rem));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 212, 255, 0.18);
}
.sc-bot-panel[hidden] { display: none; }
.sc-bot-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 1.25rem;
  height: 1.25rem;
}
.sc-bot-close:hover { color: var(--text); }
.sc-bot-panel .insight-chat-msgs {
  flex: 1;
  min-height: 120px;
  max-height: none;
  overflow: auto;
  margin-bottom: 0.55rem;
}
.sc-bot-panel .insight-chat-msgs:empty {
  display: flex;
  min-height: 0;
  margin: 0 0 0.55rem;
}
.sc-bot-panel .insight-msg.bot {
  border-color: rgba(245, 185, 66, 0.35);
  background:
    linear-gradient(135deg, rgba(245, 185, 66, 0.08), rgba(0, 212, 255, 0.08));
}

.blog-list { display: grid; gap: 1.25rem; }
.blog-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.25rem 1.35rem;
}
.blog-card h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.3rem;
}
.blog-card .meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.blog-card p { color: var(--muted); margin: 0 0 0.65rem; }
.blog-card ul { color: var(--muted); }

@keyframes logoGlowPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 0.95; transform: scale(1.12); }
}
@keyframes shieldBgGlow {
  0%, 100% { opacity: 0.4; transform: scale(0.92); }
  50% { opacity: 0.95; transform: scale(1.08); }
}
@keyframes logoBackGlow {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes logoPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes drawShield {
  to { stroke-dashoffset: 0; }
}
@keyframes boltIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shieldFillIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shieldFillPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@media (max-width: 900px) {
  .hero__stage { min-height: 0; }
  .hero-shield-back {
    inset: -4% 0 -8%;
    opacity: 0.85;
  }
  .hero__visual--merge {
    width: min(100%, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-shield-path,
  .hero-shield-bolt,
  .hero-shield-fill,
  .hero-shield-node,
  .hero-shield-glow,
  .logo-glow,
  .brand-mark-wrap::before,
  .logo-lockup__mark {
    animation: none !important;
  }
  .hero-shield-path { stroke-dashoffset: 0; }
  .hero-shield-bolt,
  .hero-shield-fill,
  .hero-shield-node,
  .hero-shield-glow {
    opacity: 1;
  }
}

/* —— Live-site content restyled for Design B (Services + Meet Grim) —— */
.page-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.svc-hero { padding-bottom: 1.5rem; }
.svc-hero__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: center;
}
.svc-hero__icon {
  width: clamp(88px, 14vw, 132px);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.28));
}

.svc-cat {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.35rem 1.25rem 1.15rem;
  margin-bottom: 1.1rem;
}
.svc-cat__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.svc-cat__head img {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(245, 185, 66, 0.22));
}
.svc-cat__tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.35rem;
}
.svc-cat__head h2 {
  font-family: var(--display);
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}
.svc-cat__tagline {
  margin: 0 0 0.45rem;
  color: var(--cyan);
  font-weight: 600;
  font-family: var(--display);
}
.svc-cat__intro {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}
.svc-cat__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.65rem;
}

.svc-item {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.svc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.svc-item summary::-webkit-details-marker { display: none; }
.svc-item summary::after {
  content: "+";
  color: var(--cyan);
  font-family: var(--mono);
  flex-shrink: 0;
}
.svc-item[open] summary::after { content: "−"; }
.svc-item[open] {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.08);
}
.svc-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.partners__static {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 2.75rem;
  padding: 0.35rem 0 0.15rem;
}
.partners__static img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.92;
  filter: brightness(1.05);
}

.grim-page { padding-bottom: 3rem; }
.grim-page__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}
.grim-page__subtitle {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--cyan);
}
.grim-creds {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.grim-creds li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--display);
  font-weight: 600;
}
.grim-creds__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  min-width: 1.6rem;
}
.grim-page__treats {
  color: var(--amber);
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
}
.grim-gallery-wrap { padding: 0.75rem; }
.grim-gallery--live {
  grid-template-columns: 1fr 1fr;
}
.grim-gallery--live .grim-gallery__item {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.grim-gallery--live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .svc-hero__grid,
  .svc-cat__head,
  .grim-page__layout {
    grid-template-columns: 1fr;
  }
  .svc-hero__icon { width: 96px; }
  .grim-gallery--live { grid-template-columns: 1fr 1fr; }
}
