/* ==========================================================================
   Sphere Digital — Design Tokens
   Motif: pan-African orbit network. Deep indigo night sky, coral urgency,
   mint growth signal, gold premium accent. Geometric display + mono data type.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Color */
  --ink:        #0F1123;   /* primary background — night sky */
  --ink-raised: #171A33;   /* card / raised surface on dark */
  --paper:      #F7F5F0;   /* light surface, used sparingly */
  --ember:      #FF6B4A;   /* primary accent — CTA, urgency */
  --ember-dim:  #C9502F;
  --signal:     #7CF5C4;   /* secondary accent — growth, success */
  --gold:       #E8B94E;   /* tertiary accent — premium, stars */
  --slate:      #9A97AE;   /* muted text on dark */
  --slate-dark: #4B4867;   /* muted text on light */
  --line:       rgba(247, 245, 240, 0.12);

  /* Type */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.015em;
}

p { margin: 0 0 var(--space-2); color: var(--slate); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: 'Montserrat';
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(124, 245, 196, 0.15);
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ember);
  color: #180B06;
  box-shadow: 0 8px 24px -8px rgba(255, 107, 74, 0.55);
}
.btn-primary:hover { background: #FF7D5F; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--signal); }
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 35, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.logo-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a { color: var(--slate); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--paper); }
.nav-cta { display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ==========================================================================
   Hero — the orbit
   ========================================================================== */

.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-6);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  background: radial-gradient(closest-side, rgba(255, 107, 74, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: var(--space-3);
}
.hero-title .accent { color: var(--ember); }
.hero-sub {
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: var(--space-4);
}
.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.hero-trust {
  display: flex;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
}
.hero-trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--paper);
  font-weight: 700;
}

/* Orbit visual */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  /* Fallback: all children are position:absolute, so without a definite
     height the box can collapse to 0×0 in some layouts (esp. mobile grid). */
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #1E2247, #0F1123);
}
.hero-visual-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
  background: #1E2247;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,17,35,0.25) 0%, rgba(15,17,35,0.35) 40%, rgba(15,17,35,0.85) 100%);
  pointer-events: none;
}
/* Lighter overlay when a real photo is present so the image clearly shows through */
.hero-visual.has-photo::after {
  background: linear-gradient(
    180deg,
    rgba(15, 17, 35, 0.05) 0%,
    rgba(15, 17, 35, 0.20) 40%,
    rgba(15, 17, 35, 0.65) 100%
  );
}
.orbit-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--line);
  border-radius: 50%;
}
.orbit-ring.r2 { inset: 12%; }
.orbit-ring.r3 { inset: 26%; }
.orbit-core {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1E2247, var(--ink-raised));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2);
}
.orbit-core-inner {
  font-family: var(--font-mono);
}
.orbit-core-inner .num {
  font-size: 2.1rem;
  color: var(--signal);
  font-weight: 600;
  display: block;
  line-height: 1;
}
.orbit-core-inner .label {
  font-size: 0.68rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.orbit-node {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--paper);
  animation: spin-orbit linear infinite;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.5);
}
.orbit-node span { animation: spin-counter linear infinite; }
.orbit-node.n1 { top: -4%; left: 50%; margin-left: -23px; animation-duration: 26s; }
.orbit-node.n2 { top: 50%; right: -4%; margin-top: -23px; animation-duration: 26s; animation-delay: -6.5s; }
.orbit-node.n3 { bottom: -4%; left: 50%; margin-left: -23px; animation-duration: 26s; animation-delay: -13s; }
.orbit-node.n4 { top: 50%; left: -4%; margin-top: -23px; animation-duration: 26s; animation-delay: -19.5s; }

@keyframes spin-orbit {
  from { transform: rotate(0deg) translateX(0) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(0) rotate(-360deg); }
}

/* City labels orbiting outer ring */
.orbit-city {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--slate);
  background: var(--ink);
  padding: 0.3em 0.6em;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.orbit-city.c1 { top: 4%; right: 6%; }
.orbit-city.c2 { bottom: 10%; right: -2%; }
.orbit-city.c3 { bottom: -2%; left: 22%; }
.orbit-city.c4 { top: 20%; left: -6%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; }
  .orbit-city { display: none; }
}

/* ==========================================================================
   Section shell
   ========================================================================== */

section { padding: var(--space-6) 0; }
.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-alt { background: var(--ink-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.service-card {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: rgba(124,245,196,0.4); transform: translateY(-4px); }
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,107,74,0.14);
  color: var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.service-card p { font-size: 0.92rem; margin-bottom: 0; }

@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Process timeline (real sequence — the 14-day build)
   ========================================================================== */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  display: none;
}
@media (min-width: 861px) { .timeline::before { display: block; } }
.timeline-step { position: relative; }
.timeline-day {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
  background: var(--signal);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}
.timeline-step h3 { font-size: 1rem; margin-bottom: 0.3em; }
.timeline-step p { font-size: 0.88rem; }

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

/* ==========================================================================
   Guarantee — signature orbit seal
   ========================================================================== */

.guarantee {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-5);
  align-items: center;
}
.seal-wrap { display: flex; justify-content: center; }
.seal {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(from 0deg, var(--ember), var(--gold), var(--signal), var(--ember));
  animation: spin-slow 18s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.seal-inner {
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: spin-slow-rev 18s linear infinite;
}
@keyframes spin-slow-rev { to { transform: rotate(-360deg); } }
.seal-inner .big {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--paper);
  line-height: 1;
}
.seal-inner .mid {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4em;
}
.seal-inner .small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--slate);
  margin-top: 0.6em;
}
.guarantee-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.guarantee-list { list-style: none; margin: var(--space-3) 0; padding: 0; display: grid; gap: 0.75em; }
.guarantee-list li { display: flex; gap: 0.7em; font-size: 0.95rem; color: var(--paper); }
.guarantee-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.15em;
  border-radius: 50%;
  background: rgba(124,245,196,0.15);
  border: 1px solid var(--signal);
}

@media (max-width: 860px) {
  .guarantee { grid-template-columns: 1fr; text-align: center; }
  .guarantee-list li { text-align: left; }
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.portfolio-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-raised);
  display: block;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
a.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: var(--signal);
}
a.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.04);
}
.portfolio-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1E2247, #12142A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
  overflow: hidden;
  position: relative;
}
.portfolio-thumb.has-image {
  background: var(--ink);
}
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}
.portfolio-body { padding: var(--space-2) var(--space-3) var(--space-3); }
.portfolio-body .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.portfolio-body h3 { font-size: 1.02rem; margin: 0.3em 0; }
.portfolio-body p { font-size: 0.88rem; margin: 0; }

@media (max-width: 980px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.testimonial-card {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.stars { color: var(--gold); font-family: var(--font-mono); letter-spacing: 0.15em; margin-bottom: var(--space-2); }
.testimonial-card blockquote { margin: 0 0 var(--space-2); font-size: 0.95rem; color: var(--paper); font-style: normal; }
.testimonial-meta { font-size: 0.82rem; color: var(--slate); }
.testimonial-meta strong { color: var(--paper); display: block; }
.testimonial-stat {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--signal);
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
}

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

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  align-items: stretch;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  background: var(--ink-raised);
}
.price-card.featured {
  border-color: var(--ember);
  background: linear-gradient(180deg, rgba(255,107,74,0.08), var(--ink-raised) 40%);
  position: relative;
  transform: translateY(-8px);
}
.price-card .badge {
  position: absolute;
  top: -13px;
  left: var(--space-3);
  background: var(--ember);
  color: #180B06;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  font-weight: 600;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 0.2em; }
.price-card .price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  margin: var(--space-2) 0;
}
.price-card .price span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--slate); font-weight: 400; }
.price-features { list-style: none; padding: 0; margin: var(--space-3) 0; flex-grow: 1; display: grid; gap: 0.65em; }
.price-features li { font-size: 0.88rem; display: flex; gap: 0.6em; color: var(--paper); }
.price-features li::before { content: '✓'; color: var(--signal); font-weight: 700; }

@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } .price-card.featured { transform: none; } }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.02rem;
  text-align: left;
  padding: var(--space-3) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-question .icon { font-family: var(--font-mono); color: var(--ember); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[open] .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 0 var(--space-3); font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Final CTA / Contact form
   ========================================================================== */

.cta-band {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.cta-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.form-grid { display: grid; gap: var(--space-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
label {font-size: 0.8rem;color: var(--slate);display: block;margin-bottom: 0.35em;font-family: 'Montserrat';text-transform: uppercase;letter-spacing: 0.04em;}
input, select, textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8em 1em;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--signal); }
textarea { resize: vertical; min-height: 90px; }
.form-status { font-size: 0.85rem; margin-top: var(--space-2); font-family: var(--font-mono); }
.form-status.success { color: var(--signal); }
.form-status.error { color: var(--ember); }

@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; padding: var(--space-4); }
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Blog share bar
   ========================================================================== */

.share-bar {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-wrap: wrap;
}
.share-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-right: 0.2em;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ink-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.share-btn:hover {
  transform: translateY(-2px);
  border-color: var(--signal);
  background: var(--ink);
}
.share-btn.copied {
  border-color: var(--signal);
  color: var(--signal);
}
.share-btn svg { width: 17px; height: 17px; }

/* ==========================================================================
   Blog prose (renders admin rich-text content)
   ========================================================================== */

.blog-prose { font-size: 1.02rem; color: var(--paper); }
.blog-prose p { color: var(--paper); margin-bottom: 1.2em; line-height: 1.75; }
.blog-prose h2 { font-size: 1.5rem; margin-top: 1.8em; margin-bottom: 0.6em; }
.blog-prose h3 { font-size: 1.2rem; margin-top: 1.5em; margin-bottom: 0.5em; }
.blog-prose ul, .blog-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; color: var(--paper); }
.blog-prose li { margin-bottom: 0.5em; line-height: 1.65; }
.blog-prose a { color: var(--signal); text-decoration: underline; }
.blog-prose strong { color: var(--paper); font-weight: 700; }
.blog-prose blockquote {
  border-left: 3px solid var(--ember);
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.2em;
  color: var(--slate);
  font-style: italic;
}
.blog-prose img { border-radius: var(--radius-md); margin: 1.5em 0; }
.blog-prose code {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.blog-prose pre {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1em;
  overflow-x: auto;
  margin: 1.5em 0;
}
.blog-prose hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--line); padding: var(--space-5) 0 var(--space-4); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.footer-grid h4 {font-family: 'Montserrat';font-size: 0.75rem;text-transform: uppercase;letter-spacing: 0.08em;color: var(--slate);margin-bottom: var(--space-2);}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6em; }
.footer-links a { color: var(--slate); font-size: 0.9rem; }
.footer-links a:hover { color: var(--paper); }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: var(--space-3);
}
.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ink-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.footer-social-link:hover {
  transform: translateY(-2px);
  border-color: var(--signal);
  color: var(--signal);
  background: var(--ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--slate);
  flex-wrap: wrap;
  gap: var(--space-2);
}

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

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-3);
  right: var(--space-3);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,0.6);
  z-index: 90;
}

/* ---- Team grid ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--ink);
}
.team-card .team-body {
  padding: var(--space-2) var(--space-2) var(--space-3);
}
.team-card h3 {
  font-size: 1rem;
  margin: 0 0 0.2em;
}
.team-card .team-role {
  font-size: 0.82rem;
  color: var(--slate);
  margin: 0;
}
.team-card .team-loc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--signal);
  margin-top: 0.45em;
}

/* Product detail hero image */
.product-shot {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink);
}
.product-shot img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
}
.portfolio-thumb.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- About story photo collage ---- */
.story-photos {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0.75rem;
  align-items: stretch;
  min-height: 320px;
}
.story-photo-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}
.story-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.story-photo-stack {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 0.75rem;
}
.story-photo-stack img {
  width: 100%;
  height: 100%;
  min-height: 90px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  display: block;
}
@media (max-width: 768px) {
  .story-photos {
    grid-template-columns: 1fr;
  }
  .story-photo-main {
    min-height: 260px;
  }
  .story-photo-stack {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .story-photo-stack img {
    min-height: 100px;
    aspect-ratio: 1;
  }
}

.story-photos-single {
  grid-template-columns: 1fr;
}
.story-photos-single .story-photo-main {
  min-height: 380px;
  max-height: 480px;
}
@media (max-width: 768px) {
  .story-photos-single .story-photo-main {
    min-height: 280px;
  }
}

/* ---- Sphere Agent (sales / support chat) ---- */
.sphere-agent {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9990;
  font-family: var(--font-sans, system-ui, sans-serif);
}
.sphere-agent-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--ember, #FF6B4A);
  color: #180B06;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sphere-agent-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.sphere-agent-fab svg { flex-shrink: 0; }
.sphere-agent-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(380px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 6rem));
  background: var(--ink, #0F1123);
  border: 1px solid var(--line, #2a2e4a);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.sphere-agent.is-open .sphere-agent-panel {
  display: flex;
}
.sphere-agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #1E2247, #0F1123);
  border-bottom: 1px solid var(--line, #2a2e4a);
}
.sphere-agent-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sphere-agent-header-text strong {
  color: var(--paper, #f5f5f7);
  font-size: 0.95rem;
}
.sphere-agent-header-text span {
  font-size: 0.72rem;
  color: var(--slate, #9aa0b8);
  font-family: var(--font-mono, monospace);
}
.sphere-agent-close {
  background: transparent;
  border: none;
  color: var(--slate, #9aa0b8);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.sphere-agent-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sphere-agent-bubble {
  max-width: 92%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--paper, #f5f5f7);
}
.sphere-agent-bubble--agent {
  align-self: flex-start;
  background: #1a1e38;
  border: 1px solid var(--line, #2a2e4a);
}
.sphere-agent-bubble--user {
  align-self: flex-end;
  background: rgba(124, 245, 196, 0.12);
  border: 1px solid rgba(124, 245, 196, 0.35);
}
.sphere-agent-typing {
  opacity: 0.7;
  letter-spacing: 0.15em;
}
.sphere-agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.5rem;
}
.sphere-agent-chip {
  border: 1px solid var(--line, #2a2e4a);
  background: transparent;
  color: var(--signal, #7CF5C4);
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sphere-agent-chip:hover {
  background: rgba(124, 245, 196, 0.08);
  border-color: var(--signal, #7CF5C4);
}
.sphere-agent-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--line, #2a2e4a);
}
.sphere-agent-form input {
  flex: 1;
  border: 1px solid var(--line, #2a2e4a);
  background: #12152a;
  color: var(--paper, #f5f5f7);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
}
.sphere-agent-form button {
  border: none;
  background: var(--ember, #FF6B4A);
  color: #180B06;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
}
/* Keep clear of WhatsApp float if both present */
.whatsapp-float {
  bottom: 5.5rem !important;
}
@media (max-width: 480px) {
  .sphere-agent {
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .sphere-agent-fab-label {
    display: none;
  }
  .sphere-agent-fab {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

.sphere-agent-header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.sphere-agent-voice-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem 0.4rem;
  opacity: 0.9;
}
.sphere-agent-voice-toggle.is-muted {
  opacity: 0.45;
}
.sphere-agent-mic {
  border: 1px solid var(--line, #2a2e4a);
  background: #12152a;
  color: var(--paper, #f5f5f7);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.sphere-agent-mic.is-listening {
  border-color: var(--ember, #FF6B4A);
  box-shadow: 0 0 0 2px rgba(255, 107, 74, 0.35);
  animation: sphere-agent-pulse 1.2s ease infinite;
}
@keyframes sphere-agent-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 107, 74, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 107, 74, 0.12); }
}

/* ---- Material Symbols ---- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  user-select: none;
}
.material-symbols-outlined.mdi-lg { font-size: 1.75rem; }
.material-symbols-outlined.mdi-xl { font-size: 2.25rem; }
.material-symbols-outlined.mdi-signal { color: var(--signal, #7CF5C4); }
.material-symbols-outlined.mdi-ember { color: var(--ember, #FF6B4A); }

.service-card .mdi-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(124, 245, 196, 0.08);
  border: 1px solid rgba(124, 245, 196, 0.22);
  margin-bottom: 0.85rem;
  color: var(--signal, #7CF5C4);
  font-size: 1.35rem;
}
.service-card h3 .material-symbols-outlined {
  margin-right: 0.35rem;
  font-size: 1.1em;
  color: var(--signal, #7CF5C4);
  vertical-align: -0.15em;
}

.btn .material-symbols-outlined {
  font-size: 1.1em;
  margin-right: 0.35em;
  vertical-align: -0.2em;
}
.btn-ghost .material-symbols-outlined { margin-right: 0.3em; }

.hero-trust div .material-symbols-outlined {
  display: block;
  font-size: 1.35rem;
  color: var(--signal, #7CF5C4);
  margin-bottom: 0.25rem;
}

.timeline-step .material-symbols-outlined.mdi-step {
  font-size: 1.5rem;
  color: var(--signal, #7CF5C4);
  margin-bottom: 0.4rem;
  display: block;
}

.contact-icon-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.contact-icon-row .material-symbols-outlined {
  color: var(--signal, #7CF5C4);
  font-size: 1.4rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.faq-item summary .material-symbols-outlined,
.faq-q .material-symbols-outlined {
  color: var(--signal, #7CF5C4);
  margin-right: 0.4rem;
  vertical-align: -0.15em;
}

.footer-links a .material-symbols-outlined {
  font-size: 1em;
  margin-right: 0.35em;
  vertical-align: -0.15em;
  opacity: 0.85;
}

.nav-links a .material-symbols-outlined {
  font-size: 1.05em;
  margin-right: 0.25em;
  vertical-align: -0.12em;
  opacity: 0.9;
}

.section-head .eyebrow .material-symbols-outlined,
.eyebrow .material-symbols-outlined {
  font-size: 1em;
  margin-right: 0.3em;
  vertical-align: -0.15em;
}

.stat-icon {
  display: block;
  font-size: 1.75rem;
  color: var(--signal, #7CF5C4);
  margin-bottom: 0.35rem;
}

.form-section-title .material-symbols-outlined {
  margin-right: 0.35em;
  vertical-align: -0.15em;
  color: var(--signal, #7CF5C4);
}

/* Nav icons: keep on desktop, tighten on small */
@media (max-width: 900px) {
  .nav-links a .material-symbols-outlined { display: none; }
}
