/* ==========================================================================
   Compatible Systems - corporate theme
   Palette (from the official logo):
     Coral Pink  #FF2A56   Soft Coral #FFA191   Charcoal #303030
     White       #FFFFFF   Light Gray #F7F7F9   Border Gray #E9E9ED
   --coral-strong is a deeper shade of the brand coral, used wherever
   coral carries text (links, button fills) so contrast meets WCAG AA.
   ========================================================================== */

:root {
  --coral: #FF2A56;
  --coral-soft: #FFA191;
  --coral-strong: #E0244D;
  --coral-hover: #C81E43;
  --coral-tint: #FFF1F3;
  --coral-tint-2: #FFE4E9;
  --charcoal: #303030;
  --text: #303030;
  --text-muted: #5C5C66;
  --white: #FFFFFF;
  --gray-50: #F7F7F9;
  --gray-200: #E9E9ED;
  --gray-300: #D9D9DF;
  --gradient: linear-gradient(135deg, #FFA191 0%, #FF2A56 100%);

  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-xs: 0 1px 2px rgba(48, 48, 48, 0.05);
  --shadow-sm: 0 2px 8px rgba(48, 48, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(48, 48, 48, 0.08);
  --shadow-lg: 0 24px 60px rgba(48, 48, 48, 0.12);
  --ring: 0 0 0 3px rgba(255, 42, 86, 0.18);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--coral-strong); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--coral-hover); }
:focus-visible { outline: 2px solid var(--coral-strong); outline-offset: 3px; border-radius: 4px; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { color: var(--charcoal); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
p { color: var(--text-muted); }
strong { color: var(--charcoal); font-weight: 650; }
::selection { background: var(--coral-tint-2); color: var(--charcoal); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
main { padding-top: var(--header-h); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; left: -9999px; }
.is-hidden { display: none; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 60px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav-item { position: static; display: flex; align-items: center; height: var(--header-h); }
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
}
.nav-link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gradient); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav-link:hover, .has-mega:hover > .nav-link, .has-mega.open > .nav-link { color: var(--coral-strong); }
.nav-link.active { color: var(--coral-strong); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-link.nav-cta {
  margin-left: 10px; padding: 10px 18px;
  background: var(--coral-strong); color: var(--white);
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover, .nav-link.nav-cta.active { background: var(--coral-hover); color: var(--white); }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.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); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font-family: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; text-align: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--coral-strong); color: var(--white); box-shadow: 0 8px 20px rgba(224, 36, 77, 0.22); }
.btn-primary:hover { background: var(--coral-hover); color: var(--white); box-shadow: 0 10px 24px rgba(200, 30, 67, 0.28); }
.btn-secondary { background: var(--white); color: var(--charcoal); border-color: var(--gray-300); }
.btn-secondary:hover { border-color: var(--charcoal); color: var(--charcoal); }
.btn-light { background: var(--white); color: var(--charcoal); }
.btn-light:hover { background: var(--coral-tint); color: var(--charcoal); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.95rem; color: var(--coral-strong); }
.link-arrow::after { content: '\2192'; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Eyebrows, chips, section headers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral-strong);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: var(--gradient); }
.tag {
  display: inline-block;
  padding: 4px 12px; border-radius: 999px;
  background: var(--coral-tint); color: var(--coral-hover);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.chip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 10px 18px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--gray-200);
  color: var(--charcoal); font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
a.chip:hover { border-color: var(--coral); color: var(--coral-strong); box-shadow: var(--shadow-sm); }
.chip-static { background: var(--coral-tint); border-color: transparent; color: var(--charcoal); }

.section { padding: 96px 0; }
.section-alt { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section-header { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-header .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.section-intro { font-size: 1.075rem; }
.section-intro + .section-intro { margin-top: 12px; }
.subsection-header { max-width: 760px; margin: 64px auto 32px; text-align: center; }
.subsection-header h3 { font-size: 1.5rem; margin-bottom: 8px; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(48, 48, 48, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero-home { padding: 88px 0 96px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 22px; }
/* solid deeper coral: the light end of the brand gradient is too faint for text on white */
.text-gradient { color: var(--coral-strong); }
.hero-subtitle { font-size: 1.2rem; color: var(--charcoal); font-weight: 500; margin-bottom: 14px; }
.hero-desc { font-size: 1.05rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--gray-200); }
.hero-fact strong { display: block; font-size: 1.35rem; font-weight: 800; }
.hero-fact span { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 88px 0 80px; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(48, 48, 48, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.page-hero::after {
  content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px;
  border-radius: 50%; background: var(--gradient); opacity: 0.16; filter: blur(10px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-inner { max-width: 780px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 18px; }
.page-hero .hero-subtitle { margin-bottom: 10px; }
.page-hero .hero-desc { margin-bottom: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.card > p + .list { margin-top: 16px; }
.card .card-footer { margin-top: auto; padding-top: 24px; }
.card-accent::before { content: ''; position: absolute; left: 32px; right: 32px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gradient); }
.card-link { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
.card-link:hover { transform: translateY(-3px); border-color: rgba(255, 42, 86, 0.35); }

.icon-tile {
  width: 52px; height: 52px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--coral-tint); color: var(--coral);
  margin-bottom: 20px;
}
.icon-tile svg { width: 26px; height: 26px; }
.card-kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-strong); margin-bottom: 8px; }

/* Lists with coral check marks */
.list { display: grid; gap: 10px; }
.list li { position: relative; padding-left: 28px; color: var(--text-muted); }
.list li::before {
  content: ''; position: absolute; left: 0; top: 0.42em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--coral-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23FF2A56' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.list-numbered { counter-reset: n; }
.list-numbered li { counter-increment: n; padding-left: 36px; }
.list-numbered li::before {
  content: counter(n); top: 0.15em; width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--gradient); color: var(--white);
  font-size: 0.78rem; font-weight: 800;
}
.list-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.list-note { margin-top: 18px; font-weight: 700; color: var(--charcoal); }
.list-note + .list { margin-top: 10px; }

/* Lead / panel blocks */
.lead-panel {
  max-width: 900px; margin: 0 auto 40px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200); border-left: 4px solid var(--coral);
  border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm);
  box-shadow: var(--shadow-xs);
}
.lead-panel p { color: var(--charcoal); font-size: 1.05rem; }
.lead-panel p + p { margin-top: 12px; }
.panel { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px; }
.section-alt .panel { background: var(--white); }
.panel h3 { font-size: 1.2rem; margin-bottom: 12px; }
.panel p + p { margin-top: 12px; }
.panel .list { margin-top: 16px; }

/* Steps / approach */
.steps { margin-top: 40px; padding: 36px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.steps-title { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin-bottom: 8px; }
.steps-title::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gradient); }
.steps-intro { margin-bottom: 8px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 24px; counter-reset: step; }
.step { position: relative; padding: 22px 20px 20px; background: var(--gray-50); border-radius: var(--radius); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 14px;
  border-radius: 12px; background: var(--gradient);
  color: var(--white); font-weight: 800; font-size: 0.85rem;
}
.step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.95rem; color: var(--charcoal); }

/* Facts / mission */
.fact-card { text-align: left; }
.fact-card .fact-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-strong); margin-bottom: 8px; }
.fact-card .fact-value { font-size: 1.2rem; font-weight: 700; color: var(--charcoal); }

/* Article blocks */
.article-card .article-cover { margin: -32px -32px 24px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 40 / 21; background: var(--gray-50); }
.article-card .article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card .tag { margin-bottom: 14px; align-self: flex-start; }
.article { max-width: 800px; margin: 0 auto; }
.article .tag { margin-bottom: 16px; }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 24px; }
.article-figure { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); }
.article-figure img { width: 100%; height: auto; }
.article-lede { font-size: 1.2rem; font-style: italic; color: var(--charcoal); padding-left: 20px; border-left: 3px solid var(--coral); margin-bottom: 28px; }
.article-body p { font-size: 1.05rem; margin-bottom: 18px; }
.back-to-top { margin-top: 8px; }

/* CTA band */
.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 56px;
  border-radius: var(--radius-lg);
  background: var(--charcoal);
}
.cta::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: var(--gradient); opacity: 0.9; }
.cta::after { content: ''; position: absolute; width: 220px; height: 220px; right: 120px; bottom: -150px; border-radius: 50%; border: 2px solid rgba(255, 161, 145, 0.5); }
.cta > * { position: relative; z-index: 1; }
.cta .eyebrow { color: var(--coral-soft); }
.cta h2 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, 0.82); max-width: 620px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 32px; align-items: start; }
.form-card { padding: 40px; }
.form-card h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; }
.form-card > p { margin-bottom: 28px; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group-full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: 0.92rem; color: var(--charcoal); }
.required { color: var(--coral-strong); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  font-family: inherit; font-size: 1rem; color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-group select {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23303030' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  cursor: pointer;
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #8A8A94; }
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: var(--gray-300); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--coral); box-shadow: var(--ring); }
.form-group input.error, .form-group textarea.error, .form-group input[aria-invalid="true"], .form-group textarea[aria-invalid="true"] { border-color: var(--coral-strong); background: #FFF8F9; }
/* space is reserved so the layout never shifts when a message appears or clears */
.error-message { min-height: 1.3em; margin-top: -2px; font-size: 0.85rem; line-height: 1.3; font-weight: 600; color: var(--coral-hover); }
.form-actions { grid-column: 1 / -1; }
.form-success, .form-error { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-success { background: var(--gray-50); border: 1px solid var(--gray-200); border-left: 4px solid var(--coral); color: var(--charcoal); }
.form-error { background: #FFF8F9; border: 1px solid var(--coral-tint-2); border-left: 4px solid var(--coral-strong); color: var(--coral-hover); }
.contact-aside { display: grid; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item + .contact-item { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.contact-item .icon-tile { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.contact-item .icon-tile svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--charcoal); font-weight: 600; }
.contact-item a:hover { color: var(--coral-strong); }
.map-card { background: var(--charcoal); border-color: var(--charcoal); overflow: hidden; }
.map-card::before { content: ''; position: absolute; width: 240px; height: 240px; right: -90px; top: -110px; border-radius: 50%; background: var(--gradient); opacity: 0.9; }
.map-card > * { position: relative; }
.map-card h3 { color: var(--white); }
.map-card p { color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--gray-200); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding: 64px 24px 48px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 18px; }
.footer-tagline { max-width: 320px; }
.site-footer h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: var(--text-muted); font-weight: 500; }
.footer-links a:hover, .footer-contact a:hover { color: var(--coral-strong); }
.footer-contact { display: grid; gap: 10px; }
.footer-bottom { background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.footer-bottom .container { padding-top: 18px; padding-bottom: 18px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Reveal on scroll (subtle) ---------- */
[data-animate] { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
[data-animate].animated { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-link { padding: 10px 8px; }
  .nav-link::after { left: 8px; right: 8px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand-logo { height: 50px; }
  .hamburger { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: auto; max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav-links.active { transform: none; opacity: 1; visibility: visible; }
  .nav-item { height: auto; flex-wrap: wrap; border-bottom: 1px solid var(--gray-200); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link { flex: 1; padding: 14px 12px; border-radius: 0; }
  .nav-link::after { display: none; }
  .nav-link.active { background: var(--coral-tint); border-radius: var(--radius-sm); }
  .nav-link.nav-cta { margin: 12px 0 0; text-align: center; border-radius: var(--radius-sm); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cta { grid-template-columns: 1fr; padding: 44px 36px; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .list-columns { grid-template-columns: 1fr; }
  .card, .panel { padding: 26px; }
  .card-accent::before { left: 26px; right: 26px; }
  .article-card .article-cover { margin: -26px -26px 22px; }
  .steps { padding: 26px; }
  .form-card { padding: 28px 22px; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-home { padding: 56px 0 72px; }
  .page-hero { padding: 64px 0 56px; }
  .page-hero::after { width: 320px; height: 320px; right: -160px; top: -160px; }
  .hero-facts { gap: 24px; }
  .lead-panel { padding: 22px 22px; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .brand-logo { height: 42px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 18px 36px; }
  .hero-actions .btn { width: 100%; }
  .cta { padding: 36px 24px; }
  .cta::before { width: 260px; height: 260px; right: -120px; top: -140px; }
  .chip { font-size: 0.85rem; padding: 8px 14px; }
}

/* ---------- Spacing utilities ---------- */
.mt-grid { margin-top: 32px; }
.mt-sm { margin-top: 16px; }

.hero-home { border-bottom: 1px solid var(--gray-200); }

/* ---------- Industry News (Insights) ---------- */
.news-list { display: grid; gap: 24px; }
.news-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; }
.news-media { margin: 0; display: flex; justify-content: center; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; }
.news-media img { width: auto; max-width: 100%; height: auto; max-height: 520px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.news-meta span:not(.tag) + span:not(.tag)::before { content: '\00B7'; margin-right: 10px; color: var(--gray-300); }
.news-body h3 { font-size: 1.3rem; margin-bottom: 14px; }
.news-body p + p { margin-top: 12px; }
.news-why { padding: 14px 16px; background: var(--coral-tint); border-radius: var(--radius-sm); color: var(--charcoal); }
.news-source { font-size: 0.92rem; }
@media (max-width: 860px) {
  .news-item { grid-template-columns: 1fr; gap: 22px; }
}

/* ==========================================================================
   Mega menu
   ========================================================================== */
.mega-toggle {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; margin-left: -6px;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--text-muted); cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.mega-toggle:hover { color: var(--coral-strong); background: var(--coral-tint); }
.mega-chevron { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.has-mega.open .mega-chevron { transform: rotate(180deg); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 24px 48px rgba(48, 48, 48, 0.10);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  z-index: 999;
}
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--gradient); }
.has-mega.open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 961px) {
  .has-mega:hover > .mega, .has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-mega:hover .mega-chevron, .has-mega:focus-within .mega-chevron { transform: rotate(180deg); }
}
.has-mega.mega-suppress > .mega { opacity: 0 !important; visibility: hidden !important; transform: translateY(-6px) !important; }
.has-mega.mega-suppress .mega-chevron { transform: none !important; }

.mega-inner {
  max-width: var(--container); margin: 0 auto; padding: 36px 24px 40px;
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px;
}
.mega-intro { padding-right: 40px; border-right: 1px solid var(--gray-200); }
.mega-title { font-size: 1.15rem; font-weight: 800; color: var(--charcoal); margin-bottom: 10px; letter-spacing: -0.01em; }
.mega-text { font-size: 0.93rem; margin-bottom: 18px; }
.mega-grid { display: grid; gap: 4px 28px; align-content: start; }
.mega-cols-1 { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.mega-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-link {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 12px;
  color: var(--charcoal); font-weight: 600; font-size: 0.95rem; line-height: 1.35;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.mega-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--coral-tint); color: var(--coral);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.mega-icon svg { width: 20px; height: 20px; }
.mega-link:hover, .mega-link:focus-visible { background: var(--gray-50); color: var(--coral-strong); }
.mega-link:hover .mega-icon, .mega-link:focus-visible .mega-icon { background: var(--coral-strong); color: var(--white); }

@media (max-width: 1100px) and (min-width: 961px) {
  .mega-inner { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
  .mega-intro { padding-right: 22px; }
  .mega-intro .link-arrow { white-space: nowrap; font-size: 0.9rem; }
  .mega-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .mega-toggle { width: 44px; height: 44px; margin: 0; }
  .mega { position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; transition: none; }
  .mega::before { display: none; }
  .has-mega.open > .mega { display: block; }
  .mega-inner { display: block; padding: 0 0 12px; }
  .mega-intro { display: none; }
  .mega-cols-1, .mega-cols-2, .mega-cols-3 { grid-template-columns: 1fr; max-width: none; gap: 2px; }
  .mega-link { padding: 9px 10px; font-size: 0.93rem; }
  .mega-icon { width: 34px; height: 34px; border-radius: 9px; }
  .mega-icon svg { width: 18px; height: 18px; }
}

/* Uniform icon sizing inside cards (Lucide, 1.75 stroke) */
.icon-tile svg { width: 24px; height: 24px; }

/* ==========================================================================
   Home hero - photo background
   ========================================================================== */
.hero-photo { position: relative; min-height: 640px; display: flex; align-items: center; padding: 96px 0 88px; background: var(--charcoal); border-bottom: 0; isolation: isolate; }
.hero-photo::before { display: none; }
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%;
  filter: saturate(0.85) contrast(1.02);
  transform: scale(1.06); animation: hero-settle 16s var(--ease) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 8% 100%, rgba(255, 42, 86, 0.22), transparent 60%),
    linear-gradient(90deg, rgba(28, 28, 30, 0.94) 0%, rgba(28, 28, 30, 0.86) 38%, rgba(28, 28, 30, 0.45) 68%, rgba(28, 28, 30, 0.25) 100%);
}
.hero-shade::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(40% 50% at 30% 30%, rgba(255, 161, 145, 0.10), transparent 70%);
  animation: hero-glow 9s ease-in-out infinite alternate;
}
@keyframes hero-glow { from { opacity: 0.6; } to { opacity: 1; } }
.hero-photo .hero-content { position: relative; max-width: var(--container); width: 100%; }
.hero-photo .hero-content > * { max-width: 680px; }
.hero-photo .eyebrow { color: var(--coral-soft); }
.hero-photo h1 { color: var(--white); }
.hero-photo .text-gradient { color: var(--coral-soft); }
.hero-photo .hero-subtitle { color: rgba(255, 255, 255, 0.95); }
.hero-photo .hero-desc { color: rgba(255, 255, 255, 0.78); }
.hero-photo .hero-facts { border-top-color: rgba(255, 255, 255, 0.18); }
.hero-photo .hero-fact strong { color: var(--white); }
.hero-photo .hero-fact span { color: rgba(255, 255, 255, 0.72); }
.hero-photo .btn-outline-light { border-color: rgba(255, 255, 255, 0.55); }
.hero-photo .btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }
@media (max-width: 960px) {
  .hero-photo { min-height: 0; padding: 72px 0 64px; }
  .hero-shade { background: radial-gradient(70% 60% at 0% 100%, rgba(255, 42, 86, 0.22), transparent 60%), linear-gradient(180deg, rgba(28, 28, 30, 0.80) 0%, rgba(28, 28, 30, 0.90) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: none; }
  .hero-shade::after { animation: none; }
  .mega, .mega-chevron { transition: none; }
}
.mega-intro .link-arrow { display: inline; }
.mega-intro .link-arrow::after { display: inline-block; margin-left: 6px; }

/* Mega menu columns filled top-to-bottom, with dividers (Solutions 4/3/3, Services 4/3) */
.mega-split { display: grid; gap: 0; }
.mega-split.mega-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-split.mega-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-col { display: grid; gap: 4px; align-content: start; padding: 0 20px; }
.mega-col:first-child { padding-left: 0; }
.mega-col + .mega-col { border-left: 1px solid var(--gray-200); }
@media (max-width: 1100px) and (min-width: 961px) {
  .mega-split.mega-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-col { padding: 0 10px; }
  .mega-link { gap: 10px; padding: 8px; font-size: 0.9rem; }
  .mega-icon { width: 34px; height: 34px; }
}
@media (max-width: 960px) {
  .mega-split.mega-cols-2, .mega-split.mega-cols-3 { grid-template-columns: 1fr; }
  .mega-col { padding: 0; gap: 2px; }
  .mega-col + .mega-col { border-left: 0; }
}

/* Centered button row under a section (Home: AI & Security) */
.section-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
