/* ============================================================
   MASSCARE DIGITAL — Consolidated Stylesheet
   ============================================================ */

/* --- 1. CSS Custom Properties --- */
:root {
  --obsidian: #000000;
  --deep-slate: #0B0F19;
  --slate-2: #111827;
  --slate-3: #1E293B;
  --arch-white: #FFFFFF;
  --slate-tint: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --uv: #6366F1;
  --uv-dim: #4F46E5;
  --uv-glow: rgba(99,102,241,0.13);
  --uv-border: rgba(99,102,241,0.35);
  --cyber: #10B981;
  --line: #1E1E1E;
  --text-dim: #94A3B8;
  --text-muted: #64748B;
  --ff-display: 'Plus Jakarta Sans', sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1180px;
  --px: 2.5rem;
}

/* --- 2. Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  font-family: var(--ff-display);
  background: var(--obsidian);
  color: var(--arch-white);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background .35s var(--ease), color .35s var(--ease);
  padding-top: 64px;
  min-height: 100vh;
}
body.day { background: var(--arch-white); color: #0F172A; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: var(--ff-display); cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font-family: var(--ff-display); }

/* --- 3. Typography --- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--uv);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--uv);
  flex-shrink: 0;
}
h1, .h1 { font-size: inherit; font-weight: inherit; }
.display, h1.display {
  font-size: clamp(3rem, 7.5vw, 7.5rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.045em;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 1.5rem;
}
.lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dim);
}
body.day .lead { color: #475569; }
.body-copy {
  font-size: .875rem;
  line-height: 1.85;
  color: var(--text-dim);
}
body.day .body-copy { color: #64748B; }
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .55rem;
}
.feat-tag {
  font-family: var(--ff-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--uv);
  display: block;
  margin-bottom: .875rem;
}

/* --- 4. Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.container-narrow { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.section { padding: 6.5rem var(--px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- 5. UI Components --- */
.divider { border: none; border-top: 1px solid var(--line); }
body.day .divider { border-top-color: var(--slate-200); }
.btn-primary {
  padding: .82rem 2.1rem;
  background: var(--uv);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background .2s, transform .1s;
  display: inline-block;
}
.btn-primary:hover { background: var(--uv-dim); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-outline {
  padding: .82rem 2.1rem;
  background: transparent;
  color: inherit;
  border: 1px solid #2D3748;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: border-color .2s, color .2s;
  display: inline-block;
}
body.day .btn-outline { border-color: var(--slate-200); }
.btn-outline:hover { border-color: var(--uv); color: var(--uv); }
.btn-outline:disabled { opacity: .4; cursor: not-allowed; }
.feature-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--deep-slate);
  transition: border-color .25s, background .25s;
}
body.day .feature-card { background: var(--slate-100); border-color: var(--slate-200); }
.feature-card:hover { border-color: var(--uv); background: var(--uv-glow); }

/* --- 6. Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
body.day .nav { background: rgba(255,255,255,0.88); border-bottom-color: var(--slate-200); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  cursor: pointer;
}
.logo-accent { color: var(--uv); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  align-items: center;
}
.nav-links a {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active-link { color: var(--arch-white); }
body.day .nav-links a { color: #64748B; }
body.day .nav-links a:hover,
body.day .nav-links a.active-link { color: #0F172A; }
.nav-actions { display: flex; align-items: center; gap: 1.15rem; }
.theme-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: border-color .2s;
}
.theme-pill:hover { border-color: var(--uv); }
.nav-cta { padding: .55rem 1.25rem; font-size: .68rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--arch-white);
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
body.day .hamburger span { background: #0F172A; }
.hamburger-open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger-open span:nth-child(2) { opacity: 0; }
.hamburger-open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
.nav-overlay-show { display: block; }

/* --- 7. Footer --- */
.footer {
  border-top: 1px solid var(--line);
  padding: 4.5rem 0 2.5rem;
}
body.day .footer { border-top-color: var(--slate-200); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-logo { font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.footer-brand p { font-size: .78rem; line-height: 1.7; color: var(--text-dim); }
.footer-col h5 {
  font-family: var(--ff-mono);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--uv);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  font-size: .78rem;
  color: var(--text-dim);
  margin-bottom: .7rem;
  transition: color .2s;
  cursor: pointer;
}
.footer-col a:hover { color: var(--arch-white); }
body.day .footer-col a:hover { color: #0F172A; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: var(--text-dim);
  letter-spacing: .05em;
}
body.day .footer-bottom { border-top-color: var(--slate-200); }

/* --- 8. Hero --- */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--px);
  width: 100%;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  margin-bottom: 1.5rem;
}
.hero-accent { color: var(--uv); }
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 2.25rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-metrics {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.hero-metric-val {
  font-family: var(--ff-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyber);
  display: block;
}
.hero-metric-lbl {
  font-size: .65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-img-strip {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  height: 75%;
  z-index: 0;
  opacity: .22;
  overflow: hidden;
}
.hero-img-strip img { width: 100%; height: 100%; object-fit: cover; }

/* --- 9. Trust Bar --- */
.trust-bar {
  padding: 2.5rem var(--px);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-label {
  font-family: var(--ff-mono);
  font-size: .58rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.trust-logos {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-logo {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-dim);
  opacity: .45;
}

/* --- 10. Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 0;
  padding-bottom: 0;
}
.stat-cell { padding: 2.5rem 1.5rem; }
.stat-cell:not(:last-child) { border-right: 1px solid var(--line); }
body.day .stat-cell:not(:last-child) { border-right-color: var(--slate-200); }
.stat-num {
  font-family: var(--ff-mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cyber);
  display: block;
  margin-bottom: .5rem;
}
.stat-desc {
  font-size: .78rem;
  line-height: 1.55;
  color: var(--text-dim);
}

/* --- 11. Why MassCare --- */
.why-masscare .grid-2 { gap: 5.5rem; align-items: start; }
.why-cards { display: flex; flex-direction: column; gap: 1.1rem; }

/* --- 12. Service Cards --- */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.services-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--line);
}
body.day .services-grid { background: var(--slate-200); }
.srv-card {
  background: var(--obsidian);
  padding: 2.5rem 2rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .3s;
  min-height: 290px;
  display: flex;
  flex-direction: column;
}
body.day .srv-card { background: var(--arch-white); }
.srv-card:hover { background: var(--deep-slate); }
body.day .srv-card:hover { background: var(--slate-100); }
.srv-meta {
  font-family: var(--ff-mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.srv-icon {
  font-size: 1.25rem;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  transition: border-color .3s;
}
.srv-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .8rem;
  flex: 1;
}
.srv-desc {
  font-size: .78rem;
  line-height: 1.72;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.srv-arrow {
  font-size: .95rem;
  transition: transform .25s, color .25s;
  align-self: flex-start;
  color: var(--text-dim);
}
.srv-card:hover .srv-arrow { color: var(--uv); }

/* --- 13. Process Steps --- */
.process-img {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.process-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65); }
.proc-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.proc-step:last-child { border-bottom: none; }
.proc-step-num {
  font-family: var(--ff-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--uv);
  padding-top: .2rem;
}
.proc-step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .45rem;
  letter-spacing: -.01em;
}

/* --- 14. Beliefs Grid --- */
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--line);
}
.belief-item {
  background: var(--obsidian);
  padding: 2.25rem 2rem;
}
body.day .belief-item { background: var(--arch-white); }
.belief-num {
  font-family: var(--ff-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--uv);
  margin-bottom: 1rem;
}
.belief-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .7rem;
}
.belief-desc {
  font-size: .78rem;
  line-height: 1.72;
  color: var(--text-dim);
}

/* --- 15. Tech Marquee --- */
.tech-marquee {
  padding: 2.25rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
body.day .tech-marquee { border-color: var(--slate-200); }
.tech-track {
  display: flex;
  animation: marquee 32s linear infinite;
  width: fit-content;
}
.tech-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.tech-item {
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.tech-dot { color: var(--uv); font-size: .4rem; }
.tech-sep { color: var(--text-dim); margin: 0 1rem; opacity: .3; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- 16. Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.testimonial-card {
  padding: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--deep-slate);
}
body.day .testimonial-card { background: var(--slate-100); border-color: var(--slate-200); }
.testimonial-stars { color: #F59E0B; font-size: .95rem; margin-bottom: 1rem; }
.testimonial-quote {
  font-size: .82rem;
  line-height: 1.8;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-name {
  font-size: .8rem;
  font-weight: 700;
  display: block;
}
.testimonial-role {
  font-size: .65rem;
  color: var(--text-dim);
  display: block;
  margin-top: .15rem;
}

/* --- 17. CTA Section --- */
.cta-section {
  padding: 5rem var(--px);
  background: var(--deep-slate);
}
body.day .cta-section { background: var(--slate-100); }

/* --- 18. Service Detail --- */
.svc-page { padding: 5rem var(--px); }
.svc-page .container-narrow { margin-bottom: 1rem; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--ff-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  border: none;
  margin-bottom: 2.25rem;
  cursor: pointer;
  transition: color .2s;
}
.back-btn:hover { color: var(--uv); }
.svc-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: end;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4.5rem;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}
.svc-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.04em;
  margin-bottom: 1.1rem;
}
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.35rem; }
.tag {
  font-family: var(--ff-mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .65rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-dim);
}
.svc-hero-img {
  position: relative;
  width: 100%;
  height: 310px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.svc-hero-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65); }

/* --- 19. Interactive Block --- */
.interactive-block { max-width: var(--max-w); margin: 0 auto 4rem; padding: 0 var(--px); }
.iblock {
  padding: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.iblock-label {
  font-family: var(--ff-mono);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--uv);
  margin-bottom: 1.75rem;
}

/* Calculator */
.calc-sliders { display: flex; flex-direction: column; gap: 1.6rem; }
.calc-row { display: flex; align-items: center; gap: 1.5rem; }
.calc-lbl { font-family: var(--ff-mono); font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); min-width: 125px; }
.calc-row input[type=range] { flex: 1; -webkit-appearance: none; height: 2px; background: var(--line); border-radius: 2px; outline: none; }
.calc-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%; background: var(--uv); cursor: pointer; }
.calc-val { font-family: var(--ff-mono); font-size: .78rem; font-weight: 700; color: var(--cyber); min-width: 75px; text-align: right; }
.calc-rev {
  margin-top: 1.35rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--uv-border);
  border-radius: 6px;
  background: var(--uv-glow);
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.calc-rev-lbl { font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: .25rem; }
.calc-rev-num { font-family: var(--ff-mono); font-size: 1.65rem; font-weight: 700; color: var(--cyber); }
.calc-arrow { font-family: var(--ff-mono); font-size: 1.1rem; color: var(--uv); }

/* Node Matrix */
.node-matrix-wrap {
  height: 280px;
  background: var(--slate-2);
  border-radius: 8px;
  overflow: hidden;
}

/* SEO Gauge */
.gauge-wrap {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.gauge-metrics { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.gauge-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
  color: var(--text-dim);
}
.gauge-val { font-family: var(--ff-mono); font-weight: 700; color: var(--cyber); font-size: .8rem; }

/* CMS Sandbox */
.cms-sandbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-height: 260px;
}
.cms-panel { padding: 1.875rem; background: var(--slate-2); }
.cms-panel-label {
  font-family: var(--ff-mono);
  font-size: .56rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--uv);
  margin-bottom: 1.1rem;
}
.cms-input {
  width: 100%;
  background: var(--slate-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .6rem .9rem;
  color: inherit;
  font-family: var(--ff-display);
  font-size: .82rem;
  outline: none;
  margin-bottom: .6rem;
}
.cms-textarea {
  width: 100%;
  background: var(--slate-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .6rem .9rem;
  color: inherit;
  font-family: var(--ff-display);
  font-size: .82rem;
  outline: none;
  resize: none;
}
.cms-preview-title { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; margin-bottom: .6rem; }
.cms-preview-body { font-size: .8rem; line-height: 1.75; color: var(--text-dim); }

/* Pulse Wave */
.pulse-wrap { height: 160px; }
.pulse-wrap svg { width: 100%; height: 100%; }
.pulse-metrics { display: flex; gap: 2.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.pulse-lbl { font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: .2rem; }
.pulse-val { font-family: var(--ff-mono); font-weight: 700; font-size: .95rem; color: var(--cyber); }

/* Stack Layer */
.stack-layers { display: flex; flex-direction: column; align-items: center; }
.stack-item {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding: 1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--slate-2);
  transition: border-color .25s, transform .25s;
  max-width: 580px;
  width: 100%;
  cursor: default;
}
.stack-badge {
  font-family: var(--ff-mono);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border-radius: 3px;
  background: var(--uv-glow);
  color: var(--uv);
  white-space: nowrap;
}
.stack-name { font-weight: 700; font-size: .875rem; }
.stack-detail { font-size: .72rem; color: var(--text-dim); }
.stack-sep { font-family: var(--ff-mono); font-size: .58rem; color: var(--uv); text-align: center; padding: .15rem; }

/* Color Palette */
.palette-swatches { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.palette-swatch {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, transform .15s;
}
.palette-swatch.active { border-color: var(--arch-white); }
body.day .palette-swatch.active { border-color: #0F172A; }
.palette-preview-inner {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background .4s;
}
.palette-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .58rem;
  font-family: var(--ff-mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .5;
}
.palette-dots { display: flex; gap: .5rem; }
.palette-dot { width: 24px; height: 24px; border-radius: 50%; display: block; }
.palette-dot:nth-child(2) { border: 1px solid rgba(255,255,255,.15); }

/* Security Checklist */
.security-wrap { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.security-gauge { text-align: center; flex-shrink: 0; }
.security-score-lbl { font-family: var(--ff-mono); font-size: .58rem; color: var(--text-dim); margin-top: .5rem; }
.security-items { flex: 1; display: flex; flex-direction: column; gap: .65rem; }
.security-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .2s, background .2s;
}
.security-checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid var(--text-dim);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  transition: background .2s, border-color .2s;
}
.security-label { font-size: .78rem; font-weight: 600; }
.security-pts { font-family: var(--ff-mono); font-size: .58rem; color: var(--text-dim); margin-left: auto; }

/* Service Features Grid */
.service-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

/* CTA Box */
.cta-box {
  padding: 3rem 3.5rem;
  border: 1px solid var(--uv-border);
  border-radius: 10px;
  background: var(--uv-glow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.cta-box-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; max-width: 460px; }
.cta-box-sub { font-size: .8rem; color: var(--text-dim); margin-top: .4rem; }

/* --- 20. Blog Listing --- */
.blog-hero {
  position: relative;
  padding: 5rem var(--px);
  overflow: hidden;
}
.blog-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--uv-glow), transparent);
  opacity: .5;
}
.blog-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
}
.blog-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.04em;
  margin-bottom: 1.25rem;
}
.blog-hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.7;
}
.blog-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px) 2rem;
}
.blog-filter {
  font-family: var(--ff-mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.blog-filter:hover { border-color: var(--uv); color: var(--uv); }
.blog-filter-active { border-color: var(--uv); color: var(--uv); background: var(--uv-glow); }
.blog-featured {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px) 3rem;
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--deep-slate);
  transition: border-color .25s;
}
body.day .blog-featured-card { background: var(--slate-100); }
.blog-featured-card:hover { border-color: var(--uv); }
.blog-featured-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}
.blog-featured-tag {
  font-family: var(--ff-mono);
  font-size: .55rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyber);
  display: inline-block;
  margin-bottom: .75rem;
}
.blog-featured-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .6rem;
}
.blog-featured-excerpt {
  font-size: .82rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: .75rem;
}
.blog-featured-date { font-family: var(--ff-mono); font-size: .62rem; color: var(--text-dim); }
.blog-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px) 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--deep-slate);
  transition: border-color .25s;
}
body.day .blog-card { background: var(--slate-100); }
.blog-card:hover { border-color: var(--uv); }
.blog-card-cover {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.blog-card-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .7rem; }
.blog-card-tag {
  font-family: var(--ff-mono);
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .15rem .45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-dim);
}
.blog-card-title {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
  flex: 1;
}
.blog-card-excerpt {
  font-size: .75rem;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-date { font-family: var(--ff-mono); font-size: .6rem; color: var(--text-dim); }
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-dim);
  font-size: .95rem;
}

/* --- 21. Blog Post --- */
.post-hero {
  position: relative;
  padding: 4rem var(--px);
}
.post-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}
.post-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}
.post-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.post-tag {
  font-family: var(--ff-mono);
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-dim);
}
.post-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: var(--text-dim);
}
.post-meta-sep { color: var(--line); }
.post-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--px) 4rem;
}
.post-excerpt {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

/* TOC */
.post-toc {
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.toc-toggle {
  display: none;
  width: 100%;
  text-align: left;
  background: var(--deep-slate);
  border: none;
  color: inherit;
  padding: 1rem 1.25rem;
  font-size: .78rem;
  font-weight: 600;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
body.day .toc-toggle { background: var(--slate-100); }
.toc-list {
  list-style: none;
  padding: .5rem 1.25rem 1rem;
  display: block;
}
.toc-list a {
  display: block;
  padding: .3rem 0;
  font-size: .78rem;
  color: var(--text-dim);
  transition: color .2s;
}
.toc-list a:hover,
.toc-list a.toc-active { color: var(--uv); }

/* Blog Content */
.post-content { margin-bottom: 2.5rem; }
.blog-content-inner { font-size: .92rem; line-height: 1.85; }
.blog-content-inner p { margin-bottom: 1.25rem; }
.blog-content-inner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 2rem 0 1rem;
  padding-top: .5rem;
}
.blog-content-inner h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 1.5rem 0 .75rem;
}
.blog-content-inner ul,
.blog-content-inner ol { margin: 1rem 0; padding-left: 1.5rem; }
.blog-content-inner li { margin-bottom: .5rem; }
.blog-content-inner blockquote {
  border-left: 2px solid var(--uv);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--deep-slate);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--text-dim);
}
body.day .blog-content-inner blockquote { background: var(--slate-100); }
.blog-content-inner code {
  font-family: var(--ff-mono);
  font-size: .82rem;
  background: var(--deep-slate);
  padding: .15rem .4rem;
  border-radius: 3px;
}
body.day .blog-content-inner code { background: var(--slate-100); }
.blog-content-inner pre {
  background: var(--deep-slate);
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.25rem 0;
}
body.day .blog-content-inner pre { background: var(--slate-100); }
.blog-content-inner pre code { background: transparent; padding: 0; }
.blog-content-inner img {
  max-width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0;
  cursor: zoom-in;
}
.blog-content-inner a { color: var(--uv); text-decoration: underline; }

/* Share */
.post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.share-buttons { display: flex; gap: .5rem; }
.share-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-dim);
  transition: border-color .2s, color .2s;
  background: none;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--uv); color: var(--uv); }

/* Back link */
.post-back {
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: var(--text-dim);
  transition: color .2s;
}
.post-back:hover { color: var(--uv); }

/* Related */
.post-related {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px) 4rem;
}
.post-related-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 2rem;
}
.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* --- 22. Work Page --- */
.work-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.work-row { border-top: 1px solid var(--line); }
.work-item {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.work-year {
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--uv);
}
.work-path { font-family: var(--ff-mono); font-size: .55rem; letter-spacing: .08em; color: var(--text-dim); margin-bottom: .2rem; }
.work-title { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .15rem; }
.work-type { font-size: .7rem; color: var(--text-dim); }
.work-metrics { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: flex-end; }
.work-val { font-family: var(--ff-mono); font-weight: 700; color: var(--cyber); font-size: .82rem; }
.work-key { font-size: .65rem; color: var(--text-dim); }
.approach-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--deep-slate);
  border: 1px solid var(--line);
}
body.day .approach-card { background: var(--slate-100); }
.approach-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.approach-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.approach-body { padding: 1.5rem; }

/* --- 23. About Page --- */
.about-story { gap: 5.5rem; margin-bottom: 6rem; align-items: center; }
.about-image {
  width: 100%;
  height: 410px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.68); }
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
  align-items: start;
}
.value-card {
  padding: 1.75rem;
  border-left: 2px solid var(--uv);
  padding-left: 1.5rem;
  background: var(--deep-slate);
  border-radius: 0 8px 8px 0;
}
body.day .value-card { background: var(--slate-100); }
.value-text { font-size: .9rem; font-weight: 700; margin-bottom: .45rem; }
.team-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.about-stat-cell {
  padding: 2.25rem 1.75rem;
  border-right: 1px solid var(--line);
}
.about-stat-cell:last-child { border-right: none; }
.about-stat-num {
  font-family: var(--ff-mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cyber);
  display: block;
}
.about-stat-desc {
  font-size: .78rem;
  line-height: 1.55;
  color: var(--text-dim);
  margin-top: .5rem;
}
.nairobi-section { gap: 5rem; align-items: center; }
.nairobi-image {
  width: 100%;
  height: 330px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.nairobi-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.68); }
.contact-details { display: flex; flex-direction: column; gap: .65rem; margin-top: 1rem; }
.contact-detail {
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: var(--text-dim);
}
.contact-detail-tag { color: var(--uv); }

/* --- 24. Contact Page --- */
.diff-img {
  width: 100%;
  height: 190px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.35rem;
  border: 1px solid var(--line);
}
.diff-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6); }

/* Project Configurator */
.project-configurator { margin-top: 2rem; }
.config-form { display: block; }
.config-success { display: none; text-align: center; padding: 3rem 2rem; }
.config-success-ring {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--cyber);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-size: 1.65rem;
}
.config-success-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: .75rem; }
.config-success-sub { color: var(--text-dim); max-width: 380px; margin: 0 auto; font-size: .85rem; line-height: 1.7; }
.config-step-bar { display: flex; gap: .35rem; margin-bottom: 2rem; }
.config-step-seg { flex: 1; height: 2px; background: var(--line); border-radius: 1px; }
.config-done { background: var(--uv); }
.step-question { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.config-options { display: flex; gap: 1rem; flex-wrap: wrap; }
.config-option {
  flex: 1;
  min-width: 130px;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.config-option:hover { border-color: var(--uv); }
.config-option.selected { border-color: var(--uv); background: var(--uv-glow); }
.config-option-icon { font-size: 1.5rem; display: block; margin-bottom: .5rem; }
.config-option-label { font-size: .78rem; font-weight: 600; }
.config-step-nav { display: flex; gap: 1rem; margin-top: 2rem; }
.config-weeks-display {
  font-family: var(--ff-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--uv);
  text-align: center;
  margin-bottom: 1.5rem;
}
.config-timeline-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}
.config-timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--uv);
  cursor: pointer;
}
.config-timeline-labels { display: flex; justify-content: space-between; font-family: var(--ff-mono); font-size: .58rem; color: var(--text-dim); margin-top: .5rem; }
.config-textarea {
  width: 100%;
  min-height: 120px;
  background: var(--deep-slate);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  color: inherit;
  font-family: var(--ff-display);
  font-size: .9rem;
  line-height: 1.7;
  outline: none;
  resize: none;
}
.config-nav { display: flex; gap: 1rem; margin-top: 2rem; }

/* --- 25. FAQ --- */
.faq-layout { gap: 5.5rem; align-items: start; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); overflow: hidden; }
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: inherit;
  padding: 1.4rem 0;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.faq-icon {
  font-size: 1.2rem;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform .3s;
}
.faq-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer p {
  font-size: .845rem;
  line-height: 1.8;
  color: var(--text-dim);
  padding-bottom: 1.4rem;
}

/* --- 26. Admin Editor --- */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: .15rem;
  padding: .45rem .6rem;
  background: var(--slate-2);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  flex-wrap: wrap;
}
.toolbar-btn {
  padding: .3rem .55rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: .72rem;
  cursor: pointer;
  border-radius: 3px;
  transition: background .15s;
}
.toolbar-btn:hover { background: var(--slate-3); }
.toolbar-active { color: var(--uv); background: var(--uv-glow); }
.toolbar-sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 .25rem;
}

/* --- 27. 404 --- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  text-align: center;
  padding: 2rem;
}
.error-code {
  font-family: var(--ff-mono);
  font-size: 6rem;
  font-weight: 800;
  color: var(--uv);
  line-height: 1;
}
.error-title { font-size: 1.5rem; font-weight: 700; margin: 1rem 0 .5rem; }
.error-desc { color: var(--text-dim); margin-bottom: 2rem; }

/* --- 28. Responsive --- */
@media (max-width: 768px) {
  :root { --px: 1.25rem; }
  .section { padding: 2rem var(--px) !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--obsidian);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 100;
    border-bottom: 1px solid var(--line);
  }
  body.day .nav-links { background: var(--arch-white); }
  .nav-links.nav-show { display: flex; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .display, h1.display { font-size: clamp(2.2rem, 10vw, 4rem) !important; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2.5rem) !important; }

  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-cell:nth-child(2) { border-right: none !important; }

  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .srv-card { min-height: 240px !important; padding: 1.75rem 1.25rem !important; }

  .beliefs-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .testimonial-grid { grid-template-columns: 1fr !important; }
  .blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .blog-featured-card { grid-template-columns: 1fr !important; }

  .svc-hero { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .svc-hero-img { order: -1; }
  .service-features { grid-template-columns: 1fr !important; }

  .cms-sandbox-grid { grid-template-columns: 1fr !important; }
  .gauge-wrap { flex-direction: column !important; align-items: flex-start !important; }

  .work-header { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .work-item { grid-template-columns: 1fr !important; gap: .5rem !important; }
  .work-metrics { justify-content: flex-start !important; }

  .about-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .about-stat-cell { border-right: none !important; }
  .about-story { margin-bottom: 3rem !important; }
  .about-image { height: 250px !important; }

  .values-grid { grid-template-columns: 1fr !important; }
  .svc-page { padding: 2rem var(--px) !important; }

  .hero-img-strip { display: none; }
  .hero-metrics { gap: 1.5rem; }
  .proc-step { grid-template-columns: 1fr !important; gap: .75rem !important; }

  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

  .cta-box { flex-direction: column !important; text-align: center; padding: 1.5rem !important; }
  .iblock { padding: 1.5rem !important; }
  .calc-rev { flex-direction: column; gap: 1rem; }
  .security-wrap { flex-direction: column; }
  .post-related-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  :root { --px: 1rem; }
  .section { padding: 1.25rem var(--px) !important; }
  .services-grid { grid-template-columns: 1fr !important; }
  .beliefs-grid { grid-template-columns: 1fr !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .about-stats-grid { grid-template-columns: 1fr !important; }
  .about-stat-cell { border-right: none !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .svc-page { padding: 1.25rem var(--px) !important; }
  .cta-box { padding: 1rem !important; }
  .iblock { padding: 1rem !important; }
}
