/* ============================================================
   AZVYON — Design System
   Concept: "Signal & Sand" — ink & cool paper, an emerald signal
   accent with a warm gold counter-hue, grotesk display + mono
   technical labels, and a connected-systems line motif as the
   signature — built for a UAE-headquartered technology partner.
   ============================================================ */

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

:root {
  /* Ink (dark surfaces) */
  --ink:        #0B0E14;
  --ink-panel:  #12161F;
  --ink-raise:  #1A202C;
  --ink-line:   rgba(255,255,255,0.09);
  --on-dark:    #F4F5F7;
  --on-dark-70: rgba(244,245,247,0.70);
  --on-dark-50: rgba(244,245,247,0.50);
  --on-dark-35: rgba(244,245,247,0.35);

  /* Paper (light surfaces) */
  --paper:   #F5F6F9;
  --card:    #FFFFFF;
  --line:    #E4E7EE;
  --ink-txt: #0B0E14;
  --ink-60:  #545B6B;
  --ink-45:  #7A8091;

  /* Signal — emerald, used with restraint */
  --signal:        #0EA57A;
  --signal-bright: #34D399;
  --signal-deep:   #087F5B;
  --signal-wash:   rgba(14,165,122,0.10);

  /* Gold — second hue, for gradients and alternating accents only */
  --gold:        #D4AF6A;
  --gold-bright: #E8C989;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 88px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-txt);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.band { padding-top: clamp(72px, 9vw, 132px); padding-bottom: clamp(72px, 9vw, 132px); }
.band-tight { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark p { color: var(--on-dark-70); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; color: var(--ink-txt); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--on-dark); }
h1 { font-size: clamp(40px, 6.4vw, 82px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
h3 { font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -0.01em; }
p { color: var(--ink-60); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-60); }
.dark .lead { color: var(--on-dark-70); }

/* Eyebrow — mono technical label, the signature small-type treatment */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--signal); opacity: 0.8; }
.dark .eyebrow { color: var(--signal-bright); }
.dark .eyebrow::before { background: var(--signal-bright); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-size: 15px; font-weight: 500; padding: 13px 26px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .16s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-deep); }
.btn-ghost { background: transparent; color: var(--ink-txt); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-txt); }
.dark .btn-ghost, .hero .btn-ghost { color: var(--on-dark); border-color: var(--ink-line); }
.dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: var(--on-dark); background: rgba(255,255,255,0.04); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.arrow-link { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--signal); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: gap .2s ease; }
.arrow-link:hover { gap: 12px; }
.dark .arrow-link { color: var(--signal-bright); }

/* ---------- Navigation ---------- */
header.nav { position: sticky; top: 0; z-index: 90; background: rgba(245,246,249,0.82); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--ink-txt); text-decoration: none; display: flex; align-items: center; }
.brand .mark { width: 22px; height: 22px; flex-shrink: 0; margin-right: 9px; }
.brand em { font-style: normal; color: var(--signal); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-60); text-decoration: none; transition: color .18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink-txt); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink-txt); transition: .25s; }
.mobile-menu { display: none; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 12px var(--pad) 24px; }
.mobile-menu a { display: block; padding: 13px 0; font-size: 16px; font-weight: 500; color: var(--ink-txt); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px,6vw,88px) var(--pad) clamp(64px,7vw,96px); position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: clamp(44px,5vw,64px); }
.hero-copy { max-width: 920px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-copy .eyebrow { justify-content: center; }
.hero h1 { color: var(--on-dark); margin: 20px 0 24px; font-size: clamp(38px,5.2vw,60px); }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--signal-bright), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(17px,1.35vw,19px); color: var(--on-dark-70); max-width: 62ch; margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 13px; flex-wrap: wrap; justify-content: center; }
.hero-glow { position: absolute; width: 900px; height: 700px; top: -260px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(14,165,122,0.20) 0%, transparent 62%); pointer-events: none; z-index: 0; }
/* faint engineering grid, masked toward the hub map */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(1100px 780px at 50% 62%, #000 0%, transparent 78%);
  mask-image: radial-gradient(1100px 780px at 50% 62%, #000 0%, transparent 78%);
  opacity: .45; }

/* Regional strip under hero copy */
.hero-proof { display: flex; gap: clamp(24px,4vw,56px); flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--ink-line); padding-top: 28px; margin-top: 8px; }
.hero-proof > div { text-align: center; }
.hero-proof .n { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--on-dark); }
.hero-proof .k { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-50); margin-top: 6px; letter-spacing: 0.02em; }

/* ---------- Signature: hub-and-spoke — unified SVG ---------- */
.hubmap-wrap { width: 100%; max-width: 1080px; }
.hubsvg { width: 100%; height: auto; display: block; overflow: visible; }
.hubsvg-mobile { display: none; width: 100%; max-width: 400px; height: auto; margin: 0 auto 36px; overflow: visible; }
.hubsvg-mobile a circle { transition: stroke .2s ease, fill .2s ease; }
.hubsvg-mobile a:hover circle { stroke: var(--gold-bright); }
.hubsvg-mobile a text { transition: fill .2s ease; }
.hubsvg-mobile a:hover text { fill: var(--gold-bright); }

/* foreignObject card styling */
.scard-svg { width: 100%; height: 100%;
  background: linear-gradient(160deg, rgba(26,32,44,.82), rgba(18,22,31,.82));
  border: 1px solid rgba(255,255,255,.09); border-radius: 14px;
  padding: 15px 15px 13px; box-sizing: border-box;
  font-family: 'Inter', sans-serif; color: rgba(244,245,247,0.7); font-size: 12px; line-height: 1.5;
  backdrop-filter: blur(6px); transition: border-color .22s, box-shadow .22s; }
.scard-svg:hover { border-color: rgba(52,211,153,.55); box-shadow: 0 0 28px rgba(14,165,122,.25); }
.scard-svg .top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.scard-svg .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal-bright); box-shadow: 0 0 8px var(--signal-bright); flex-shrink: 0; }
.scard-svg strong { font-size: 14.5px; color: #fff; font-weight: 700; font-family: 'Bricolage Grotesque', sans-serif; }
.scard-svg p { margin: 0 0 10px; }
.scard-svg a { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--signal-bright); text-decoration: none; }
.scard-svg a:hover { color: var(--gold-bright); }

.hubmap-mobile { display: none; }
.hubmap-mobile .scard {
  display: block; text-decoration: none;
  background: linear-gradient(160deg, rgba(26,32,44,.82), rgba(18,22,31,.82));
  border: 1px solid rgba(255,255,255,.09); border-radius: 14px;
  padding: 18px 18px 16px; box-sizing: border-box;
  color: rgba(244,245,247,0.7); font-size: 13px; line-height: 1.55;
  transition: border-color .22s, box-shadow .22s;
}
.hubmap-mobile .scard:hover { border-color: rgba(52,211,153,.55); box-shadow: 0 0 28px rgba(14,165,122,.25); }
.hubmap-mobile .scard .top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hubmap-mobile .scard .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal-bright); box-shadow: 0 0 8px var(--signal-bright); flex-shrink: 0; }
.hubmap-mobile .scard h3 { font-size: 15.5px; color: #fff; font-weight: 700; margin: 0; }
.hubmap-mobile .scard p { margin: 0 0 12px; }
.hubmap-mobile .scard .more { font-family: var(--font-mono); font-size: 11.5px; color: var(--signal-bright); }
.hubmap-mobile .scard:hover .more { color: var(--gold-bright); }

@media (prefers-reduced-motion: reduce) {
  .hubsvg animateTransform, .hubsvg animateMotion { display: none; }
}


/* ---------- Marquee / trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-inner { max-width: var(--maxw); margin: 0 auto; padding: 22px var(--pad); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust-lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); }
.trust-items { display: flex; gap: 26px; flex-wrap: wrap; }
.trust-items span { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink-60); letter-spacing: -0.01em; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc { background: var(--card); padding: clamp(28px,2.6vw,40px); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: background .2s ease; position: relative; }
.svc:hover { background: #fbfbfe; }
.svc-no { font-family: var(--font-mono); font-size: 12px; color: var(--ink-45); letter-spacing: 0.05em; }
.svc-ico { width: 44px; height: 44px; margin: 20px 0 22px; border-radius: 3px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.svc-ico svg { width: 21px; height: 21px; stroke: var(--signal-bright); fill: none; stroke-width: 1.5; }
.svc h3 { margin-bottom: 10px; }
.svc p { font-size: 14.5px; line-height: 1.62; margin-bottom: 18px; }
.svc ul { list-style: none; margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.svc ul li { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-60); border: 1px solid var(--line); border-radius: 2px; padding: 4px 9px; }

/* ---------- Service detail (services page) ---------- */
.svc-detail { border: 1px solid var(--line); border-radius: 4px; padding: clamp(26px,2.6vw,38px); background: var(--card); }
.svc-detail h3 { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); margin-bottom: 18px; }
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { font-size: 14.5px; color: var(--ink-60); line-height: 1.55; padding-left: 20px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border: 1.4px solid var(--signal); border-radius: 1px; transform: rotate(45deg); }
.feature-list b { color: var(--ink-txt); font-weight: 600; }
.feature-list.dark-list li { color: var(--on-dark-70); }
.feature-list.dark-list b { color: var(--on-dark); }
.feature-list.dark-list li::before { border-color: var(--signal-bright); }
.outcome { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.outcome span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); }
.outcome p { margin-top: 8px; font-size: 14.5px; color: var(--ink-txt); }
.outcome.dark-outcome { border-top-color: var(--ink-line); }
.outcome.dark-outcome span { color: var(--on-dark-50); }
.outcome.dark-outcome p { color: var(--on-dark); }

/* ---------- Case study (full, work page) ---------- */
.cases-full { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case-full { background: var(--card); padding: clamp(28px,3vw,44px); }
.cf-head { margin-bottom: 24px; }
.cf-head .tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--signal); }
.cf-head h2 { font-size: clamp(22px,2.4vw,30px); margin-top: 10px; }
.cf-body { display: grid; grid-template-columns: 1fr 1fr auto; gap: clamp(24px,3vw,48px); align-items: start; }
.cf-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 10px; }
.cf-col p { font-size: 14.5px; line-height: 1.6; }
.cf-metrics { display: flex; flex-direction: column; gap: 18px; border-left: 1px solid var(--line); padding-left: clamp(20px,2.5vw,40px); min-width: 180px; }
.cm-item b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px,2.6vw,34px); color: var(--signal); letter-spacing: -0.02em; line-height: 1; }
.cm-item span { font-size: 13px; color: var(--ink-60); margin-top: 6px; display: block; }
@media (max-width: 900px) { .cf-body { grid-template-columns: 1fr; } .cf-metrics { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; flex-direction: row; flex-wrap: wrap; gap: 28px; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,5vw,80px); align-items: start; }
.contact-meta { margin-top: 40px; display: grid; gap: 2px; }
.cmeta-item { display: flex; gap: 20px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--ink-line); }
.cmeta-item:last-child { border-bottom: 1px solid var(--ink-line); }
.cmeta-item .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-50); width: 90px; flex-shrink: 0; }
.cmeta-item a, .cmeta-item .v { color: var(--on-dark); text-decoration: none; font-size: 15px; }
.cmeta-item a:hover { color: var(--signal-bright); }
.contact-note { margin-top: 30px; padding: 20px 22px; border: 1px solid var(--ink-line); border-radius: 4px; background: var(--ink-panel); }
.contact-note p { font-size: 14px; color: var(--on-dark-70); }
.contact-note b { color: var(--on-dark); font-weight: 600; }

.form-card { background: var(--card); border-radius: 6px; padding: clamp(26px,3vw,40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-60); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink-txt); transition: border-color .18s ease, background .18s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--signal); background: #fff; outline: none; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status { display: none; margin-top: 16px; padding: 13px 16px; border-radius: 3px; font-size: 14px; line-height: 1.5; background: var(--signal-wash); color: var(--signal-deep); border: 1px solid rgba(14,165,122,0.2); }
.form-status.is-visible { display: block; }
.form-status.is-error { background: rgba(200,50,50,0.07); color: #a01818; border-color: rgba(200,50,50,0.22); }
.form-fine { font-size: 12.5px; color: var(--ink-60); text-align: center; margin-top: 14px; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Careers ---------- */
.roles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.role { background: var(--card); padding: 26px clamp(24px,2.6vw,36px); display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; text-decoration: none; color: inherit; transition: background .2s ease; }
.role:hover { background: #fbfbfe; }
.role h3 { font-size: 18px; }
.role .rmeta { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-60); }
.role .rtype { font-family: var(--font-mono); font-size: 12px; color: var(--signal); border: 1px solid var(--line); border-radius: 2px; padding: 5px 10px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.value { background: var(--ink); padding: 30px 28px; }
.value .n { font-family: var(--font-mono); font-size: 12px; color: var(--signal-bright); }
.value h3 { color: var(--on-dark); font-size: 17px; margin: 12px 0 8px; }
.value p { color: var(--on-dark-50); font-size: 14px; }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .role { grid-template-columns: 1fr; gap: 12px; } .role .rtype { justify-self: start; } }

/* ---------- Split feature (Enterprise / group) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,80px); align-items: center; }
.split .k-points { list-style: none; margin-top: 26px; display: grid; gap: 2px; }
.split .k-points li { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--ink-line); }
.split .k-points li:last-child { border-bottom: 1px solid var(--ink-line); }
.split .k-points .kx { font-family: var(--font-mono); font-size: 12px; color: var(--signal-bright); flex-shrink: 0; padding-top: 3px; }
.split .k-points strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--on-dark); margin-bottom: 3px; }
.split .k-points span.d { font-size: 14px; color: var(--on-dark-50); }
.erp-card { background: var(--ink-panel); border: 1px solid var(--ink-line); border-radius: 4px; padding: clamp(28px,3vw,44px); }
.erp-card .tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--signal-bright); letter-spacing: 0.06em; text-transform: uppercase; }
.erp-card h3 { color: var(--on-dark); margin: 14px 0 12px; font-size: 26px; }
.erp-card p { color: var(--on-dark-70); font-size: 15px; }
.erp-card .divisions { margin-top: 26px; display: grid; gap: 10px; }
.erp-card .divisions div { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--ink-line); }
.erp-card .divisions .a { font-family: var(--font-display); font-weight: 700; color: var(--on-dark); font-size: 15px; }
.erp-card .divisions .b { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-50); }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.ind { background: var(--ink); padding: clamp(24px,2.4vw,34px); text-decoration: none; color: var(--on-dark); transition: background .2s ease; display: flex; gap: 20px; align-items: baseline; }
.ind:hover { background: var(--ink-panel); }
.ind .ix { font-family: var(--font-mono); font-size: 12px; color: var(--signal-bright); flex-shrink: 0; }
.ind h3 { color: var(--on-dark); font-size: 19px; margin-bottom: 7px; }
.ind p { color: var(--on-dark-50); font-size: 13.5px; line-height: 1.55; }

/* ---------- Tech stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stack-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--signal); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.stack-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.stack-col li { font-size: 14.5px; color: var(--ink-60); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink-line); }
.step { padding: 32px 24px 8px 0; border-right: 1px solid var(--ink-line); }
.step:last-child { border-right: none; padding-right: 0; }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--signal-bright); }
.step h3 { color: var(--on-dark); font-size: 18px; margin: 16px 0 10px; }
.step p { font-size: 13.5px; color: var(--on-dark-50); }

/* ---------- Case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { border: 1px solid var(--line); border-radius: 4px; padding: 30px 28px; background: var(--card); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .2s ease, transform .16s ease; }
.case:hover { border-color: var(--signal); transform: translateY(-2px); }
.case .tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-45); }
.case h3 { margin: 12px 0 16px; font-size: 20px; }
.case .metric { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; }
.case .metric b { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--signal); letter-spacing: -0.02em; }
.case .metric span { font-size: 13px; color: var(--ink-60); }

/* ---------- Why / differentiators ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why { background: var(--card); padding: 28px 30px; }
.why .n { font-family: var(--font-mono); font-size: 12px; color: var(--signal); }
.why h3 { font-size: 17px; margin: 12px 0 8px; }
.why p { font-size: 14px; line-height: 1.6; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--ink-panel); border: 1px solid var(--ink-line); border-radius: 4px; padding: 30px 28px; display: flex; flex-direction: column; }
.quote .mark { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--signal-bright); line-height: 0.6; margin-bottom: 18px; }
.quote p { color: var(--on-dark); font-size: 15.5px; line-height: 1.6; }
.quote .who { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ink-line); }
.quote .who b { display: block; font-family: var(--font-display); font-weight: 700; color: var(--on-dark); font-size: 14px; }
.quote .who span { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-50); }

/* ---------- CTA banner ---------- */
.cta { background: var(--signal); color: #fff; border-radius: 6px; padding: clamp(40px,5vw,72px); display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: rgba(255,255,255,0.82); max-width: 44ch; margin-top: 14px; }
.cta .btn-primary { background: #fff; color: var(--signal-deep); }
.cta .btn-primary:hover { background: #eef8f3; }
.cta .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: var(--on-dark); padding: clamp(56px,6vw,80px) 0 32px; }
.foot-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { color: var(--on-dark); margin-bottom: 16px; }
.foot-brand p { color: var(--on-dark-50); font-size: 14px; max-width: 30ch; }
.foot-brand .ng { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-50); line-height: 1.6; }
.foot-brand .ng b { color: var(--signal-bright); font-weight: 500; }
.foot-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-50); margin-bottom: 16px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font-size: 14px; color: var(--on-dark-70); text-decoration: none; transition: color .18s ease; }
.foot-col a:hover { color: var(--signal-bright); }
.foot-bottom { max-width: var(--maxw); margin: clamp(40px,5vw,64px) auto 0; padding: 24px var(--pad) 0; border-top: 1px solid var(--ink-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-bottom p { font-size: 13px; color: var(--on-dark-35); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hubsvg { display: none; }
  .hubsvg-mobile { display: block; }
  .hubmap-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hubmap-mobile .scard { position: relative; width: auto; }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .svc-grid .svc { grid-column: span 2; }
  .svc-grid .svc:nth-child(9), .svc-grid .svc:nth-child(10) { grid-column: span 2; }
  .cases, .quotes { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--ink-line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-right .btn { display: none; }
  .hamburger { display: flex; }
  .split, .ind-grid, .why-grid, .cta { grid-template-columns: 1fr; }
  .svc-grid, .cases, .quotes, .ind-grid { grid-template-columns: 1fr; }
  .svc-grid .svc, .svc-grid .svc:nth-child(9), .svc-grid .svc:nth-child(10) { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hubmap-mobile { grid-template-columns: 1fr; }
  .hero-proof { gap: 28px; }
}
@media (max-width: 460px) {
  .foot-grid { grid-template-columns: 1fr; }
  .erp-card .divisions div { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .sysmap .edge { stroke-dashoffset: 0; }
}
