/* ══════════════════════════════════════════════════════════════════════════
   THE SAFE NORTH — Light Corporate Design System
   Accent: #4A6FA5 (Slate Blue) | Font: Inter
══════════════════════════════════════════════════════════════════════════ */

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg:          #ffffff;
  --surface:     #F7F9FC;
  --surface-2:   #EEF2F8;
  --border:      #E2E8F0;
  --accent:      #4A6FA5;
  --accent-hover:#3B5D8F;
  --accent-dim:  rgba(74, 111, 165, 0.08);
  --accent-ring: rgba(74, 111, 165, 0.20);
  --text:        #1A202C;
  --muted:       #718096;
  --subtle:      #A0AEC0;
  --green:       #38A169;
  --green-dim:   rgba(56, 161, 105, 0.08);
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.10), 0 4px 14px rgba(0,0,0,0.06);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', monospace;
}

/* ─── Base ──────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--subtle); }

/* ─── Navigation ────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img { height: 56px; display: block; transition: opacity 0.2s; }
.nav-logo:hover img { opacity: 0.75; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  overflow: visible;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after,
.nav-links a:hover::after { right: 0; }

/* Nav CTA "Book a Call" button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #ffffff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.83rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(74,111,165,0.25);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74,111,165,0.30);
}
.nav-cta::after { display: none !important; }

/* Theme toggle — hidden (light-only design) */
.theme-toggle { display: none !important; }

/* ─── Nav Dropdown ──────────────────────────────────────────────────────── */
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1.1rem;
  flex-direction: row;
  gap: 2rem;
  min-width: 380px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown { display: flex; }
.nav-dropdown-col { display: flex; flex-direction: column; gap: 0.1rem; min-width: 155px; }
.nav-dropdown-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--subtle);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown a {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--surface); color: var(--accent); }
.nav-dropdown a::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
  .nav-links a::after { display: none; }
  .nav-cta {
    margin: 0.5rem 2rem 0;
    display: flex;
    justify-content: center;
    width: calc(100% - 4rem);
  }
  /* Mobile Services dropdown: accordion */
  .nav-has-dropdown { position: static; }
  .nav-dropdown {
    position: static !important;
    display: none;
    width: 100%;
    flex-direction: column !important;
    gap: 0;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding: 0.25rem 0 0.5rem;
    background: var(--surface);
  }
  .nav-has-dropdown.dropdown-open .nav-dropdown { display: flex; }
  .nav-dropdown-col { min-width: 0; gap: 0; }
  .nav-dropdown-label { padding: 0.5rem 2rem 0.25rem; margin-bottom: 0; border-bottom: none; }
  .nav-dropdown a { padding: 0.65rem 2.5rem; border-radius: 0; display: block; }
}

/* ─── Section Base ──────────────────────────────────────────────────────── */
section {
  padding: 6rem max(2rem, calc(50% - 640px));
}
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
}
h2.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h2.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 0.75rem;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  padding-inline: 0;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(circle, #C8D5E8 1px, transparent 1px);
  background-size: 28px 28px;
}
/* security-network canvas animation */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
/* fade the dot grid out toward the bottom */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(255,255,255,0.75) 70%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 1;
}
/* subtle radial accent glow */
#hero::after {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 55%; height: 85%;
  background: radial-gradient(ellipse at 70% 30%, rgba(74,111,165,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 max(2rem, calc(50% - 640px));
}
.hero-text { min-width: 0; }
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.4;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-name {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.hero-tagline em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.85;
  margin-bottom: 2.75rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #ffffff;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(74,111,165,0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(74,111,165,0.32);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--bg);
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(74,111,165,0.12);
}

/* ─── Trust Strip ───────────────────────────────────────────────────────── */
.trust-strip {
  padding: 1.25rem max(2rem, calc(50% - 640px));
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.trust-check { color: var(--green); }
.trust-sep { color: var(--border); }

/* ─── Available Badge ───────────────────────────────────────────────────── */
.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-dim);
  border: 1px solid rgba(56,161,105,0.25);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.75rem;
}
.available-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.available-badge[data-available="false"] {
  background: rgba(160,174,192,0.10);
  border-color: rgba(160,174,192,0.25);
  color: var(--muted);
}
.available-badge[data-available="false"] .available-dot {
  background: var(--subtle);
  animation: none;
}
.available-badge[data-available="true"]  .available-text-unavailable,
.available-badge[data-available="false"] .available-text-available { display: none; }

/* ─── Services Grid ─────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  cursor: pointer;
}
.service-card:hover {
  border-color: rgba(74,111,165,0.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.service-card.featured {
  border-color: var(--accent);
  background: linear-gradient(150deg, #F0F4FA 0%, var(--bg) 100%);
}
.service-card.featured:hover {
  border-color: var(--accent-hover);
}
.service-popular-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.service-tier {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  text-decoration: none;
  display: block;
}
a.service-title:hover { color: var(--accent); }
.service-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}
.service-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.service-features li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
}
.service-price {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.service-price-range {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}
.service-price-label {
  font-size: 0.75rem;
  color: var(--subtle);
  margin-top: 0.2rem;
}
.service-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
  margin-top: 0.5rem;
  align-self: flex-start;
}
.service-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.service-cta:hover { gap: 0.6rem; }
.compliance-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.compliance-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--subtle);
  white-space: nowrap;
}
.compliance-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.compliance-badge {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}
.services-note {
  margin-top: 1.5rem;
  font-size: 0.84rem;
  color: var(--subtle);
  line-height: 1.65;
}
.services-note-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.4rem;
}
.services-note-link:hover { text-decoration: underline; }

/* ─── Process ───────────────────────────────────────────────────────────── */
.process-steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 720px) {
  .process-steps-row { grid-template-columns: 1fr; }
  .process-arrow-sep { display: none; }
}
.process-step-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.process-step-card:hover {
  border-color: rgba(74,111,165,0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--accent-dim);
  border: 2px solid rgba(74,111,165,0.2);
  border-radius: 50%;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 1rem;
}
.process-step-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.process-step-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.75;
}
.process-arrow-sep {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--border);
  font-size: 1.4rem;
  padding-top: 2.75rem;
}

/* ─── Testimonials ──────────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(74,111,165,0.35);
}
.testimonial-quote {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  flex: 1;
}
.testimonial-author { display: flex; flex-direction: column; gap: 0.2rem; }
.testimonial-name { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.testimonial-role { font-size: 0.82rem; color: var(--muted); }

/* Testimonials marquee */
.testimonials-marquee { overflow: hidden; position: relative; }
.testimonials-marquee::before,
.testimonials-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}
.testimonials-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.testimonials-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}
.testimonials-marquee:hover .testimonials-track { animation-play-state: paused; }
.testimonials-track .testimonial-card {
  min-width: 340px;
  max-width: 340px;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .testimonials-track .testimonial-card { min-width: 280px; max-width: 280px; }
}

/* ─── About / Why ───────────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}
.why-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.why-card:hover {
  border-color: rgba(74,111,165,0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.why-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.why-stat {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.why-label { font-size: 0.78rem; color: var(--subtle); line-height: 1.4; }
.why-desc {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.why-cta { margin-top: 2rem; }

/* ─── Why Security Matters (homepage + page) ────────────────────────────── */
:root {
  --red:     #C53030;
  --red-dim: rgba(197, 48, 48, 0.06);
}
.section-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.why-matters-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: stretch;
}
.why-matters-col {
  display: flex;
  flex-direction: column;
}
.why-matters-col-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
}
.risk-label   { color: var(--red);   background: var(--red-dim); }
.benefit-label { color: var(--green); background: var(--green-dim); }
.why-matters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  flex: 1;
}
.why-matters-card {
  border-radius: 12px;
  padding: 1.25rem 1rem;
  border: 1.5px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-matters-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.risk-card    { background: var(--red-dim);   border-color: rgba(197,48,48,0.18); }
.benefit-card { background: var(--green-dim); border-color: rgba(56,161,105,0.2); }
.why-stat-big {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.why-stat-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.why-benefit-icon { font-size: 1.4rem; margin-bottom: 0.4rem; }
.why-benefit-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.why-benefit-desc  { font-size: 0.8rem;  color: var(--muted); line-height: 1.5; }
.why-matters-cta   { text-align: center; margin-top: 2rem; }
@media (max-width: 860px) { .why-matters-cols { grid-template-columns: 1fr; } }
@media (max-width: 500px)  { .why-matters-grid  { grid-template-columns: 1fr; } }

/* ─── Animations ────────────────────────────────────────────────────────── */

/* Scroll progress bar */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #38a169 100%);
  z-index: 500;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Gradient hero headline */
@keyframes gradient-pan {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-name {
  background: linear-gradient(135deg, #0f2d5e 0%, #1a4a8a 30%, #4A6FA5 55%, #0f2d5e 100%);
  background-size: 300% 300%;
  animation: gradient-pan 8s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (prefers-color-scheme: dark) {
  .hero-name {
    background: linear-gradient(135deg, #e2e8f0 0%, #a8c4e8 40%, #7bb3d8 65%, #e2e8f0 100%);
    background-size: 300% 300%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-name { animation: none; background-size: 100%; }
}

/* CTA button glow pulse */
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 2px 10px rgba(74,111,165,0.25); }
  50%       { box-shadow: 0 4px 28px rgba(74,111,165,0.6), 0 0 48px rgba(74,111,165,0.2); }
}
.btn-primary { animation: btn-glow 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .btn-primary { animation: none; } }

/* Floating icons */
@keyframes float-up {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}
.why-benefit-icon { animation: float-up 3.4s ease-in-out infinite; }
.ws-stat-num      { display: inline-block; animation: float-up 3.8s ease-in-out infinite; }
.why-matters-card:nth-child(2) .why-benefit-icon { animation-delay: 0.5s; }
.why-matters-card:nth-child(3) .why-benefit-icon { animation-delay: 1.0s; }
.why-matters-card:nth-child(4) .why-benefit-icon { animation-delay: 1.5s; }
.ws-stat-card:nth-child(2) .ws-stat-num { animation-delay: 0.4s; }
.ws-stat-card:nth-child(3) .ws-stat-num { animation-delay: 0.8s; }
.ws-stat-card:nth-child(4) .ws-stat-num { animation-delay: 1.2s; }
@media (prefers-reduced-motion: reduce) {
  .why-benefit-icon, .ws-stat-num { animation: none; }
}

/* Shimmer sweep on cards */
.service-card,
.why-matters-card,
.blog-card,
.resource-card,
.ws-stat-card,
.ws-stake-card,
.ws-benefit-card,
.ws-myth-card,
.ws-pro-card { overflow: hidden; }

.service-card::after,
.why-matters-card::after,
.blog-card::after,
.resource-card::after,
.ws-stat-card::after,
.ws-stake-card::after,
.ws-benefit-card::after,
.ws-myth-card::after,
.ws-pro-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.08) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
  pointer-events: none;
  z-index: 1;
}
.service-card:hover::after,
.why-matters-card:hover::after,
.blog-card:hover::after,
.resource-card:hover::after,
.ws-stat-card:hover::after,
.ws-stake-card:hover::after,
.ws-benefit-card:hover::after,
.ws-myth-card:hover::after,
.ws-pro-card:hover::after { transform: translateX(100%); }

/* ─── Why-Security page specific ────────────────────────────────────────── */
.ws-intro-text {
  max-width: 760px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
  text-align: center;
}
.ws-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.ws-stat-card {
  background: var(--red-dim);
  border: 1.5px solid rgba(197,48,48,0.18);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
}
.ws-stat-num  { font-size: 2.2rem; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 0.4rem; }
.ws-stat-lbl  { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.ws-stakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.ws-stake-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ws-stake-card:hover { border-color: rgba(197,48,48,0.3); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ws-stake-icon  { font-size: 1.75rem; margin-bottom: 0.75rem; }
.ws-stake-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.ws-stake-desc  { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.ws-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.ws-benefit-card {
  background: var(--green-dim);
  border: 1.5px solid rgba(56,161,105,0.2);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ws-benefit-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ws-benefit-icon  { font-size: 1.75rem; margin-bottom: 0.75rem; }
.ws-benefit-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.ws-benefit-desc  { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.ws-myths-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ws-myth-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}
.ws-myth-q { font-weight: 700; color: var(--text); margin-bottom: 0.5rem; font-size: 0.97rem; }
.ws-myth-q::before { content: "Myth: "; color: var(--red); }
.ws-myth-a { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }
.ws-myth-a strong { color: var(--green); }
.ws-pro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.ws-pro-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ws-pro-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ws-pro-card.highlight { border-color: var(--accent); background: var(--accent-dim); }
.ws-pro-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--subtle); margin-bottom: 0.75rem; }
.ws-pro-card.highlight .ws-pro-label { color: var(--accent); }
.ws-pro-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.ws-pro-list { list-style: none; padding: 0; text-align: left; }
.ws-pro-list li { font-size: 0.85rem; color: var(--muted); padding: 0.35rem 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.ws-pro-list li:last-child { border-bottom: none; }
.ws-pro-list li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.ws-pro-card:not(.highlight) .ws-pro-list li::before { content: "✗ "; color: var(--red); }
.ws-cta-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 4rem auto 2rem;
  max-width: 700px;
}
.ws-cta-section h2 { font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; }
.ws-cta-section p  { font-size: 0.97rem; color: var(--muted); line-height: 1.85; margin-bottom: 1.75rem; }
.ws-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 780px) {
  .ws-stats-strip { grid-template-columns: 1fr 1fr; }
  .ws-pro-grid    { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ws-stats-strip { grid-template-columns: 1fr; }
}

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: rgba(74,111,165,0.3); }
.faq-item.open {
  border-color: rgba(74,111,165,0.45);
  box-shadow: 0 2px 14px rgba(74,111,165,0.08);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  font-family: var(--font);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 1rem 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-a { display: block; }

/* ─── Resources ─────────────────────────────────────────────────────────── */
.resources-hero { text-align: center; padding-bottom: 0; }
.resources-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.resources-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}
.resources-section-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-align: center;
  line-height: 1.8;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.resource-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.resource-card:hover {
  border-color: rgba(74,111,165,0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.resource-cat {
  font-family: var(--mono);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.resource-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.resource-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.resource-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
.resource-link:hover { opacity: 0.72; }
.resources-cta-section {
  text-align: center;
  padding-bottom: 1rem;
}
.resources-cta-desc {
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* ─── Blog ──────────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}
.blog-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.blog-card:hover {
  border-color: rgba(74,111,165,0.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.6rem 0;
}
.blog-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.blog-date {
  font-size: 0.74rem;
  color: var(--subtle);
}
.blog-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  padding: 0.5rem 1.6rem 0;
}
.blog-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  padding: 0.5rem 1.6rem 0;
}
.blog-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: block;
  padding: 0.75rem 1.6rem 1.5rem;
  transition: color 0.2s;
}
.blog-read-more::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.blog-read-more:hover { color: var(--accent-hover); }
.blog-view-all { margin-top: 2.5rem; }
.blog-coming-soon {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  color: var(--subtle);
  font-size: 0.9rem;
  line-height: 1.7;
}
.blog-coming-soon strong { display: block; font-size: 1rem; color: var(--muted); margin-bottom: 0.5rem; }

/* ─── Contact ───────────────────────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-intro {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
  word-break: break-all;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.contact-link-icon { flex-shrink: 0; width: 22px; text-align: center; font-size: 1.1rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.form-optional { font-weight: 400; color: var(--subtle); font-size: 0.75rem; }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group select { cursor: pointer; resize: none; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--subtle); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.form-group textarea { min-height: 120px; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.btn-send {
  align-self: flex-start;
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(74,111,165,0.25);
}
.btn-send:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(74,111,165,0.30);
}
.form-success {
  display: none;
  color: var(--green);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}
@media (max-width: 720px) {
  .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ─── Subscribe ─────────────────────────────────────────────────────────── */
.subscribe-bar {
  margin-top: 3.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2rem 2.25rem;
}
.subscribe-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.subscribe-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.subscribe-desc { font-size: 0.88rem; color: var(--muted); }
.subscribe-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.subscribe-input {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 220px;
}
.subscribe-input::placeholder { color: var(--subtle); }
.subscribe-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.btn-subscribe {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-subscribe:hover { background: var(--accent); color: #ffffff; }
.subscribe-success {
  display: none;
  color: var(--green);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}
.subscribe-success a { color: var(--accent); text-decoration: none; }
.subscribe-success a:hover { text-decoration: underline; }
.subscribe-checklist {
  display: inline-block;
  font-size: 0.84rem;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.5rem;
}
.subscribe-checklist:hover { text-decoration: underline; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem max(2rem, calc(50% - 640px)) 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-logo {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.footer-logo img { height: 72px; display: block; transition: opacity 0.2s; }
.footer-logo:hover img { opacity: 0.75; }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.footer-social { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-social-link {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-social-link:hover { color: var(--accent); }
.footer-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin-bottom: 1rem;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-subscribe-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }
.footer-subscribe-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-email-input {
  flex: 1;
  min-width: 150px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 0.55rem 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}
.footer-email-input:focus { border-color: var(--accent); }
.footer-email-input::placeholder { color: var(--subtle); }
.btn-footer-subscribe {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-footer-subscribe:hover { background: var(--accent-hover); }
.footer-sub-success {
  display: none;
  font-size: 0.82rem;
  color: var(--green);
  margin-top: 0.6rem;
}
.footer-sub-success a { color: var(--accent); text-decoration: none; }
.footer-sub-success a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: var(--subtle); }
.footer-bottom a { color: var(--accent); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ─── Animations ────────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.10s; }
.fade-up.d2 { transition-delay: 0.20s; }
.fade-up.d3 { transition-delay: 0.30s; }
.fade-up.d4 { transition-delay: 0.40s; }
.fade-up.d5 { transition-delay: 0.50s; }

/* ─── Accessibility ─────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: 0 0 6px 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── Portfolio Page ────────────────────────────────────────────────────── */
.portfolio-profile {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
}
.portfolio-profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}
.portfolio-profile-name { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.portfolio-profile-title { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.4rem; }
.portfolio-profile-certs { font-size: 0.78rem; color: var(--accent); letter-spacing: 0.04em; font-weight: 600; }
@media (max-width: 500px) {
  .portfolio-profile { flex-direction: column; text-align: center; }
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 1.1rem;
  line-height: 1.9;
  font-size: 0.97rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  border-color: rgba(74,111,165,0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.78rem; color: var(--subtle); line-height: 1.3; }
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Timeline */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 4px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 100%);
}
.timeline-item { position: relative; margin-bottom: 3.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  transition: box-shadow 0.2s;
}
.timeline-item:hover .timeline-dot { box-shadow: 0 0 0 4px var(--accent-ring); }
.timeline-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.timeline-item:hover .timeline-card {
  border-color: rgba(74,111,165,0.4);
  box-shadow: var(--shadow-sm);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.timeline-role { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.timeline-company { font-size: 0.9rem; color: var(--accent); font-weight: 600; margin-top: 0.25rem; }
.timeline-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; flex-shrink: 0; }
.timeline-date {
  font-size: 0.76rem;
  color: var(--subtle);
  background: var(--surface-2);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.timeline-location { font-size: 0.76rem; color: var(--subtle); }
.timeline-body ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.timeline-body li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.timeline-body li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 560px) {
  .timeline-header { flex-direction: column; }
  .timeline-meta { align-items: flex-start; }
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(74,111,165,0.15));
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover {
  border-color: rgba(74,111,165,0.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.project-card:hover::before { opacity: 1; }
.project-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.project-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.project-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}
.project-title { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.project-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.75; flex: 1; }
.project-why {
  font-size: 0.82rem;
  color: var(--subtle);
  line-height: 1.6;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.project-why strong { color: var(--muted); font-weight: 600; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tag {
  font-size: 0.73rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
}

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.skill-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.skill-card:hover {
  border-color: rgba(74,111,165,0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.skill-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.skill-icon { font-size: 1rem; line-height: 1; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.skill-tag {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--accent-dim);
  border: 1px solid rgba(74,111,165,0.15);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  transition: all 0.15s;
  cursor: default;
}
.skill-tag:hover { background: rgba(74,111,165,0.15); color: var(--accent); }

/* Education */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.edu-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
}
.edu-card:hover {
  border-color: rgba(74,111,165,0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.edu-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.edu-title { font-size: 0.95rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 0.35rem; }
.edu-org { font-size: 0.85rem; color: var(--muted); }
.edu-date { font-size: 0.74rem; color: var(--subtle); margin-top: 0.6rem; }

/* ─── 404 Page ──────────────────────────────────────────────────────────── */
.not-found-main {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
}
.not-found-inner { max-width: 480px; }
.not-found-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.not-found-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.not-found-desc {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.not-found-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.not-found-links { font-size: 0.84rem; color: var(--subtle); }
.not-found-links p { margin-bottom: 0.6rem; font-weight: 500; }
.not-found-links ul { list-style: none; display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
.not-found-links a { color: var(--accent); text-decoration: none; }
.not-found-links a:hover { text-decoration: underline; }

/* ─── Page Intro (blog / portfolio header) ──────────────────────────────── */
.page-intro {
  padding: 7rem 3rem 0;
  max-width: 1140px;
  margin: 0 auto;
}
.page-intro-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
}
.page-intro-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.page-intro-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 540px;
}

/* ─── Back Home (sub-pages) ─────────────────────────────────────────────── */
.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  transition: all 0.2s;
  white-space: nowrap;
}
.back-home-btn:hover { border-color: var(--accent); color: var(--accent); }
.back-home-bar {
  text-align: center;
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  max-width: 1140px;
  margin: 0 auto;
}

/* ─── Individual Service Pages ──────────────────────────────────────────── */
.service-section { padding: 4rem 2rem; max-width: 960px; margin: 0 auto; }
.service-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.service-section-tier {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.service-section-name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.service-section-price { text-align: right; flex-shrink: 0; }
.service-section-price-range {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
.service-section-price-label { font-size: 0.75rem; color: var(--subtle); margin-top: 0.2rem; }
.service-section-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) {
  .service-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .service-section-header { flex-direction: column; }
  .service-section-price { text-align: left; }
}
.service-detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--subtle);
  margin-bottom: 1rem;
}
.service-included-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.service-included-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}
.service-included-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}
.process-steps { display: flex; flex-direction: column; gap: 1rem; }
.process-step { display: flex; align-items: flex-start; gap: 0.9rem; }
.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-label { font-size: 0.9rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.step-desc { font-size: 0.82rem; color: var(--subtle); margin-top: 0.2rem; line-height: 1.55; }
.service-ideal {
  margin-top: 2rem;
  background: var(--accent-dim);
  border: 1px solid rgba(74,111,165,0.18);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.service-ideal-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.service-ideal-text { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }
.service-section-cta { padding-top: 2rem; border-top: 1px solid var(--border); }
.service-section-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 960px;
  margin: 0 auto;
}
.compliance-section { padding: 2.5rem 2rem; max-width: 960px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════════════════════
   SERVICES PAGE (services.html)
══════════════════════════════════════════════════════════════════════════ */

.svc-section-inner { max-width: 1280px; margin: 0 auto; padding: 5rem max(2rem, calc(50% - 640px)); }

/* Hero */
.svc-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-color: var(--bg);
  background-image: radial-gradient(circle, #C8D5E8 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}
.svc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(255,255,255,0.7) 75%,
    #ffffff 100%
  );
  pointer-events: none;
}
.svc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 75% 35%, rgba(74,111,165,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.svc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 9rem max(2rem, calc(50% - 640px)) 5rem;
  width: 100%;
}
.svc-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.svc-hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.svc-hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.svc-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.svc-hero-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.svc-hero-trust-item { font-size: 0.82rem; color: var(--muted); }

/* Challenges */
.svc-challenges {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.svc-challenges-intro {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 3rem;
  margin-top: -1.5rem;
}
.svc-challenge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.svc-challenge-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.svc-challenge-card:hover {
  border-color: rgba(74,111,165,0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.svc-challenge-stat {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}
.svc-challenge-desc { font-size: 0.9rem; color: var(--text); line-height: 1.65; margin-bottom: 0.75rem; }
.svc-challenge-source { font-size: 0.72rem; color: var(--subtle); font-style: italic; }
@media (max-width: 900px) { .svc-challenge-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .svc-challenge-grid { grid-template-columns: 1fr; } }

/* Service hub sections */
.svc-hub-section { background: var(--bg); border-top: 1px solid var(--border); }
.svc-hub-section--alt { background: var(--surface); }
.svc-hub-intro {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
  max-width: 660px;
  margin-bottom: 2.5rem;
  margin-top: -1.5rem;
}

/* Credentials */
.svc-credentials {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.svc-cred-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}
.svc-cred-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; min-width: 280px; }
.svc-cred-stat {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.svc-cred-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.svc-cred-stat-label { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.svc-cred-features { display: flex; flex-direction: column; gap: 2rem; padding-top: 0.25rem; }
.svc-cred-feature { display: flex; gap: 1.25rem; align-items: flex-start; }
.svc-cred-feature-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.svc-cred-feature-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.svc-cred-feature-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }
@media (max-width: 900px) {
  .svc-cred-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-cred-stats { min-width: unset; }
}

/* Industries */
.svc-industries { background: var(--bg); }
.svc-industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; margin-top: -1rem; }
.svc-industry-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.svc-industry-card:hover {
  border-color: rgba(74,111,165,0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.svc-industry-icon { font-size: 1.6rem; margin-bottom: 0.75rem; display: block; }
.svc-industry-name { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; line-height: 1.3; }
.svc-industry-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.65; }
@media (max-width: 1000px) { .svc-industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .svc-industry-grid { grid-template-columns: repeat(2, 1fr); } }

/* Resources */
.svc-resources { background: var(--surface); border-top: 1px solid var(--border); }
.svc-resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; margin-top: -1rem; }
.svc-resource-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.svc-resource-card:hover {
  border-color: rgba(74,111,165,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.svc-resource-img-wrap { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.svc-resource-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s;
}
.svc-resource-card:hover .svc-resource-img-wrap img { transform: scale(1.05); }
.svc-resource-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.svc-resource-cat { font-size: 0.68rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.svc-resource-title { font-size: 0.94rem; font-weight: 700; color: var(--text); line-height: 1.45; }
.svc-resource-meta { font-size: 0.75rem; color: var(--subtle); margin-top: auto; padding-top: 0.25rem; }
.svc-resources-link { text-align: center; padding-top: 0.5rem; }
@media (max-width: 800px) { .svc-resource-grid { grid-template-columns: 1fr; max-width: 480px; } }

/* Bottom CTA */
.svc-bottom-cta { background: var(--bg); border-top: 1px solid var(--border); }
.svc-bottom-cta-inner { max-width: 600px; margin: 0 auto; padding: 5.5rem 2rem; text-align: center; }
.svc-bottom-cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.svc-bottom-cta-inner p { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }

/* Service Tabs (web consultant page) */
.svc-tabs-section { background: var(--bg); }
.svc-tabs-intro { color: var(--muted); font-size: 0.97rem; line-height: 1.8; max-width: 680px; margin-bottom: 2.5rem; margin-top: -1.5rem; }
.svc-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 2px solid var(--border); }
.svc-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
  border-radius: 6px 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.svc-tab-btn:hover { background: var(--surface); }
.svc-tab-btn.active { background: var(--surface); border-bottom-color: var(--accent); }
.svc-tab-tier { font-size: 0.68rem; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.1em; }
.svc-tab-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.svc-tab-btn.active .svc-tab-name { color: var(--accent); }
.svc-tab-badge {
  font-size: 0.62rem;
  background: var(--accent);
  color: #ffffff;
  padding: 0.12em 0.45em;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.svc-tab-price { font-size: 0.75rem; color: var(--accent); font-weight: 600; }
.svc-panel {
  display: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 2.5rem;
}
.svc-panel.active { display: block; }
.svc-panel-desc {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 760px;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.svc-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.svc-panel-cta { display: inline-flex; margin-top: 2rem; }
@media (max-width: 860px) {
  .svc-tabs { grid-template-columns: repeat(2, 1fr); }
  .svc-panel-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .svc-tabs { grid-template-columns: 1fr; }
  .svc-panel { padding: 1.5rem; }
  .svc-tab-btn { padding: 0.9rem 1rem; }
}
.svc-tabs--5col { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1060px) { .svc-tabs--5col { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .svc-tabs--5col { grid-template-columns: repeat(2, 1fr); } }

/* ─── Privacy Page ──────────────────────────────────────────────────────── */
.privacy-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 3rem 4rem;
}
.privacy-updated {
  font-size: 0.82rem;
  color: var(--subtle);
  font-family: var(--mono);
  margin-bottom: 2.5rem;
}
.privacy-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.privacy-section:last-child { border-bottom: none; margin-bottom: 0; }
.privacy-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.privacy-section h3 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.6rem;
}
.privacy-section p {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.privacy-section ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.75;
}
.privacy-section ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.privacy-section a { color: var(--accent); text-decoration: none; }
.privacy-section a:hover { text-decoration: underline; }
.privacy-section code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}
.privacy-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.privacy-table th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.privacy-table td {
  padding: 0.75rem 1rem;
  color: var(--muted);
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.privacy-table tr:last-child td { border-bottom: none; }
.privacy-table a { color: var(--accent); text-decoration: none; }
.privacy-table a:hover { text-decoration: underline; }

/* ─── Blog ──────────────────────────────────────────────────────────────── */
.page-header {
  padding: 6.5rem 3rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.page-header-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.page-header p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.blog-layout { max-width: 900px; margin: 0 auto; padding: 0 3rem; }
.blog-post { border-bottom: 1px solid var(--border); }
.blog-post:last-of-type { border-bottom: none; }
.post-hero-img { width: 100%; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 8px; margin-bottom: 1.75rem; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-preview { padding: 2rem 0; cursor: pointer; }
.post-meta { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.post-category {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-ring);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.post-date { font-family: var(--mono); font-size: 0.75rem; color: var(--subtle); }
.post-read-time { font-size: 0.75rem; color: var(--subtle); }
.post-title {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  transition: color 0.2s;
}
.post-preview:hover .post-title { color: var(--accent); }
.post-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap 0.2s;
}
.read-more-btn:hover { gap: 0.55rem; }
.read-more-btn .btn-arrow { transition: transform 0.3s; display: inline-block; }
.blog-post.expanded .read-more-btn .btn-arrow { transform: rotate(90deg); }
.post-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
}
.blog-post.expanded .post-full { opacity: 1; }
.post-body { padding-bottom: 0.5rem; color: var(--muted); font-size: 0.93rem; line-height: 1.85; }
.post-body h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 1.75rem 0 0.65rem; }
.post-body p { margin-bottom: 1rem; }
.post-body p:last-child { margin-bottom: 0; }
.post-body ul { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.post-body ul li { position: relative; padding-left: 1.3rem; margin-bottom: 0.5rem; line-height: 1.75; }
.post-body ul li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
}
.post-collapse { padding: 1.5rem 0 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--subtle);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.collapse-btn:hover { color: var(--accent); }
.top-link { font-size: 0.8rem; color: var(--subtle); text-decoration: none; transition: color 0.2s; }
.top-link:hover { color: var(--accent); }
.post-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-ring); transition: border-color 0.2s; }
.post-body a:hover { border-color: var(--accent); }
.post-service-cta {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-ring);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}
.post-service-cta a { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: none; }
.post-service-cta a:hover { text-decoration: underline; }
.post-share { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; padding: 1.25rem 0 0; margin-top: 1.5rem; border-top: 1px solid var(--border); }
.post-share-label { font-size: 0.72rem; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 0.25rem; white-space: nowrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.32rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.contact-section { padding: 5rem 3rem; max-width: 960px; margin: 0 auto; border-top: 1px solid var(--border); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-intro { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.75rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
  word-break: break-all;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); transform: translateX(4px); }
.contact-link-icon { flex-shrink: 0; width: 20px; text-align: center; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--subtle); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.form-group textarea { min-height: 110px; }
.btn-send {
  align-self: flex-start;
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-send:hover { background: var(--accent-hover); transform: translateY(-2px); }
.form-success { display: none; color: var(--green); font-size: 0.85rem; margin-top: 0.5rem; }
.subscribe-bar { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem 2rem; margin-top: 2.5rem; }
.subscribe-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.subscribe-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.subscribe-desc { font-size: 0.85rem; color: var(--muted); }
.subscribe-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.subscribe-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 200px;
}
.subscribe-input::placeholder { color: var(--subtle); }
.subscribe-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.btn-subscribe {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-subscribe:hover { background: var(--accent); color: #ffffff; }
.subscribe-success { display: none; color: var(--green); font-size: 0.85rem; margin-top: 0.75rem; }
.subscribe-success a, .subscribe-checklist { color: var(--accent); text-decoration: none; }
.subscribe-success a:hover, .subscribe-checklist:hover { text-decoration: underline; }
.subscribe-checklist { display: inline-block; font-size: 0.82rem; margin-top: 0.5rem; }
@media (max-width: 640px) { .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 480px) {
  .blog-layout { padding: 0 1.5rem; }
  .page-header { padding: 6rem 1.5rem 2rem; }
}

/* ─── Phone Overrides ───────────────────────────────────────────────────────
   Reduce horizontal padding and fix subscribe form on small screens.
   640px catches landscape phones; 480px catches portrait.
──────────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  section { padding-block: 4rem; padding-inline: 1.5rem; }
  .hero-content { padding-inline: 1.5rem; }
  .subscribe-inner { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .subscribe-form { flex-direction: column; }
  .subscribe-input { min-width: 0; width: 100%; }
  .btn-subscribe { width: 100%; }
}
@media (max-width: 480px) {
  section { padding-block: 3.5rem; padding-inline: 1rem; }
  .hero-content { padding-inline: 1rem; }
  .about-stats { grid-template-columns: 1fr; }
}
/* Landscape phone: hero content too tall for a short viewport */
@media (max-height: 600px) and (orientation: landscape) {
  #hero { min-height: auto; padding-bottom: 3rem; }
  .hero-name { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .hero-desc { margin-bottom: 1.75rem; }
}

/* ─── Web Portfolio page ─────────────────────────────────────────────────── */
.web-pills-section { padding: 2rem 3rem; max-width: 1140px; margin: 0 auto; }
.web-pills { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; }
.web-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--accent);
  background: rgba(74,111,165,0.07);
  letter-spacing: 0.01em;
}

/* Edge grid */
.web-edge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.web-edge-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.web-edge-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.web-edge-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.web-edge-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.web-edge-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* Portfolio grid */
.web-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.web-project-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.web-project-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.web-project-preview {
  height: 180px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 0.75rem 1rem;
  position: relative;
}
.web-project-preview-1 { background: linear-gradient(135deg, #0f2d5e 0%, #1a4a8a 50%, #4A6FA5 100%); }
.web-project-preview-2 { background: linear-gradient(135deg, #1a3a2a 0%, #2d6a4a 50%, #52b788 100%); }
.web-project-preview-3 { background: linear-gradient(135deg, #2d1b4e 0%, #4a2d7a 50%, #7b52b7 100%); }
.web-project-preview-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.35);
  padding: 0.25rem 0.6rem; border-radius: 4px;
}
.web-project-body { padding: 1.25rem 1.5rem 1.5rem; }
.web-project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.web-tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--accent); background: rgba(74,111,165,0.1);
  padding: 0.2rem 0.55rem; border-radius: 4px;
}
.web-project-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.web-project-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.web-project-link { font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.web-project-link:hover { text-decoration: underline; }
.web-portfolio-note { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); }
.web-portfolio-note a { color: var(--accent); }

/* Services list */
.web-services-grid { display: flex; flex-direction: column; gap: 0; margin-top: 2rem; border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; }
.web-service-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.75rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.web-service-row:last-child { border-bottom: none; }
.web-service-row:hover { background: var(--surface); }
.web-service-icon { font-size: 1.5rem; text-align: center; }
.web-service-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.web-service-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.web-service-link { font-size: 0.82rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.web-service-link:hover { text-decoration: underline; }

@media (max-width: 1024px) { .web-edge-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px)  {
  .web-portfolio-grid { grid-template-columns: 1fr; }
  .web-edge-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px)  {
  .web-edge-grid { grid-template-columns: 1fr; }
  .web-service-row { grid-template-columns: 2rem 1fr; }
  .web-service-link { display: none; }
}

/* ─── Intake Form Page ────────────────────────────────────────────────────── */
.intake-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.intake-header .nav-logo img { height: 40px; width: auto; }
.intake-header-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted); text-transform: uppercase;
}

.intake-main {
  max-width: 760px; margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.intake-intro { margin-bottom: 3rem; }
.intake-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  background: rgba(74,111,165,0.1); border-radius: 4px;
  padding: 0.25rem 0.65rem; margin-bottom: 1rem;
}
.intake-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--text); margin-bottom: 0.75rem; }
.intake-desc  { font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 600px; margin-bottom: 0.75rem; }
.intake-privacy { font-size: 0.85rem; color: var(--muted); }

.intake-form { display: flex; flex-direction: column; gap: 2.5rem; }

.intake-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.intake-section-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.intake-section-num {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--accent); background: rgba(74,111,165,0.12);
  padding: 0.3rem 0.6rem; border-radius: 6px; font-family: var(--mono);
}
.intake-section-title { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; }
.intake-fields { padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
#sec2-fields { gap: 0.75rem; }

.intake-req { color: var(--accent); }

.intake-checkgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.intake-check-label {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  cursor: pointer; font-size: 0.88rem; color: var(--text);
  transition: border-color 0.18s, background 0.18s;
  user-select: none;
}
.intake-check-label:hover { border-color: var(--accent); background: rgba(74,111,165,0.06); }
.intake-check-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.intake-check-box {
  flex-shrink: 0; width: 16px; height: 16px;
  border: 2px solid var(--border); border-radius: 4px;
  background: var(--bg); transition: border-color 0.18s, background 0.18s;
  position: relative;
}
.intake-check-label input[type="checkbox"]:checked ~ .intake-check-box {
  background: var(--accent); border-color: var(--accent);
}
.intake-check-label input[type="checkbox"]:checked ~ .intake-check-box::after {
  content: '';
  position: absolute; top: 1px; left: 4px;
  width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg);
}
.intake-check-label input[type="checkbox"]:checked ~ .intake-check-box ~ span { font-weight: 600; }
.intake-check-label:has(input[type="checkbox"]:checked) { border-color: var(--accent); background: rgba(74,111,165,0.08); }

.intake-submit-row {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding-top: 0.5rem;
}
.intake-submit-btn { min-width: 220px; }
.intake-submit-note { font-size: 0.83rem; color: var(--muted); text-align: center; }

.form-success {
  display: none;
  background: rgba(34,197,94,0.08);
  border: 1.5px solid rgba(34,197,94,0.35);
  border-radius: 12px; padding: 1.75rem 2rem;
  font-size: 0.95rem; color: var(--text); line-height: 1.7;
  text-align: center; margin-top: 0.5rem;
}

.intake-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem; text-align: center;
  font-size: 0.82rem; color: var(--muted);
}
.intake-footer a { color: var(--muted); text-decoration: none; }
.intake-footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .intake-header { padding: 0 1rem; }
  .intake-main { padding: 2rem 1rem 4rem; }
  .intake-fields { padding: 1.25rem; }
  .intake-section-header { padding: 1rem 1.25rem; }
  .intake-checkgrid { grid-template-columns: 1fr 1fr; }
}

/* ─── Animation: Section scroll reveal ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transition: none !important; }
}

/* ─── Animation: Typewriter cursor ───────────────────────────────────────── */
.hero-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 3px;
  border-radius: 2px;
  opacity: 0.85;
  animation: cur-blink 0.8s step-end infinite;
}
@keyframes cur-blink {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 0; }
}


/* ─── Animation: Gradient mesh blobs on contact section ──────────────────── */
#contact { position: relative; overflow: hidden; }
#contact::before,
#contact::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
#contact::before {
  width: 620px; height: 520px;
  left: -160px; top: -100px;
  background: radial-gradient(ellipse at center, rgba(74,111,165,0.20) 0%, transparent 70%);
  filter: blur(80px);
  animation: blob-a 18s ease-in-out infinite;
}
#contact::after {
  width: 500px; height: 460px;
  right: -100px; bottom: -80px;
  background: radial-gradient(ellipse at center, rgba(56,161,105,0.15) 0%, transparent 70%);
  filter: blur(90px);
  animation: blob-b 23s ease-in-out infinite;
}
#contact > * { position: relative; z-index: 1; }
@keyframes blob-a {
  0%, 100% { transform: translate(0,    0)    scale(1);    }
  35%      { transform: translate(70px,  50px) scale(1.14); }
  70%      { transform: translate(-40px, 80px) scale(0.90); }
}
@keyframes blob-b {
  0%, 100% { transform: translate(0,    0)     scale(1);    }
  40%      { transform: translate(-60px,-55px) scale(1.12); }
  80%      { transform: translate(50px, -30px) scale(0.87); }
}
@media (prefers-reduced-motion: reduce) {
  #contact::before, #contact::after { animation: none; }
  .hero-cursor { animation: none; opacity: 0.85; }
}

/* ─── Intake: Dynamic per-service question blocks ─────────────────────────── */
.intake-dynamic { display: none; padding: 0; min-height: 0; }
.intake-dynamic.is-active { display: block; }
#i-security-context { display: flex; flex-direction: column; gap: 0.65rem; }

.intake-sub {
  display: none;
  border: 1.5px solid rgba(74,111,165,0.25);
  border-radius: 8px;
  background: rgba(74,111,165,0.04);
  overflow: hidden;
}
.intake-sub.is-visible { display: block; }

.intake-sub-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.55rem 1rem 0;
}

.intake-sub-fields {
  padding: 0.5rem 1rem 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.intake-sub-fields .form-group > label {
  font-size: 0.8rem;
  margin-bottom: 0.1rem;
}
.intake-sub-fields textarea { min-height: 56px; font-size: 0.82rem; padding: 0.42rem 0.7rem; }
.intake-sub-fields input[type="text"],
.intake-sub-fields input[type="url"] { font-size: 0.82rem; padding: 0.42rem 0.7rem; }
.intake-sub-fields select { font-size: 0.82rem; padding: 0.42rem 0.7rem; }
.intake-sub-fields .form-row { gap: 0.55rem; }

/* Radio pill buttons */
.intake-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
}
.intake-radio-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.intake-radio-label:hover {
  border-color: var(--accent);
  background: rgba(74,111,165,0.07);
}
.intake-radio-label input[type="radio"] { display: none; }
.intake-radio-label:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: rgba(74,111,165,0.12);
  color: var(--accent);
  font-weight: 600;
}

/* Smaller checkbox grid for sub-sections */
.intake-checkgrid--sm {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.3rem;
  margin-top: 0.2rem;
}
.intake-checkgrid--sm .intake-check-label {
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
}

@media (max-width: 600px) {
  .intake-sub-fields { padding: 0.5rem 0.85rem 0.65rem; }
  .intake-checkgrid--sm { grid-template-columns: 1fr 1fr; }
}

/* ── Unsubscribe page ───────────────────────────────────────────────────── */
.unsub-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.unsub-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}
.footer-unsub-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.65;
}
