/* ============================================================
   Meridian Data Systems — Main Stylesheet
   Pure CSS · No external images · All graphics are CSS vectors
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #0b1220;
  --bg2:          #101827;
  --bg3:          #162032;
  --surface:      #1a2840;
  --border:       #1f3050;
  --accent:       #00c8a8;
  --accent2:      #0086ff;
  --accent-dim:   rgba(0,200,168,.12);
  --text:         #e8eef6;
  --text-muted:   #7a90a8;
  --text-dim:     #3d5470;

  --font-head:    'Plus Jakarta Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --r:            6px;
  --r-lg:         12px;
  --space:        clamp(4rem, 8vw, 7rem);
  --max-w:        1160px;
  --nav-h:        68px;
  --transition:   .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Utility ───────────────────────────────────────────────── */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem,5vw,2.5rem); }
.mono        { font-family: var(--font-mono); }
.accent      { color: var(--accent); }
.accent2     { color: var(--accent2); }
.section     { padding: var(--space) 0; }
.section--alt{ background: var(--bg2); }
.label       { font-family: var(--font-mono); font-size: .72rem; letter-spacing:.15em;
               text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.sr-only     { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ── CSS Grid background texture ──────────────────────────── */
body::before {
  content:'';
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
}
main { position: relative; z-index: 1; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(11,18,32,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav__inner {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
}
/* ─ CSS Logo Mark ─ */
.nav__logo {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .01em; white-space: nowrap;
}
.logo-mark {
  width: 34px; height: 34px; position: relative; flex-shrink: 0;
}
.logo-mark::before,
.logo-mark::after {
  content:''; position:absolute; border-radius: 2px;
}
.logo-mark::before {
  width:34px; height:34px;
  border: 2px solid var(--accent);
  transform: rotate(45deg) scale(.7);
  top:0; left:0;
}
.logo-mark::after {
  width:14px; height:14px;
  background: var(--accent);
  top:50%; left:50%;
  transform: translate(-50%,-50%) rotate(45deg);
}
.logo-ring {
  position:absolute; width:26px; height:26px;
  border: 1.5px solid rgba(0,200,168,.35);
  border-radius: 50%;
  top:50%; left:50%; transform:translate(-50%,-50%);
}

.nav__links {
  display: flex; gap: 0; align-items: center;
}
.nav__links a {
  font-family: var(--font-mono); font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); padding: .5rem 1.1rem;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
  position: relative;
}
.nav__links a::after {
  content:''; position:absolute; bottom:-1px; left:1.1rem; right:1.1rem;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform var(--transition);
  transform-origin: left;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }

.nav__phone {
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--accent); letter-spacing: .04em;
  white-space: nowrap;
}

.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; cursor: pointer; padding: 4px;
}
.nav__hamburger span {
  display: block; height: 2px; background: var(--text-muted);
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid; place-items: center;
  padding: var(--space) 0;
  position: relative; overflow: hidden;
}
/* CSS data-flow lines — pure CSS decorative vector */
.hero__art {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden;
}
.hero__art-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  height: 1px; opacity: .25;
  animation: scanline 8s linear infinite;
}
.hero__art-line:nth-child(1){ top:22%; animation-delay:0s; width:55%; left:30%; }
.hero__art-line:nth-child(2){ top:45%; animation-delay:-3s; width:40%; left:5%; }
.hero__art-line:nth-child(3){ top:68%; animation-delay:-6s; width:60%; left:20%; }
.hero__art-line:nth-child(4){ top:80%; animation-delay:-2s; width:30%; left:60%; }
@keyframes scanline {
  0%   { opacity:0; transform:scaleX(0) translateX(-10%); }
  10%  { opacity:.25; }
  80%  { opacity:.25; }
  100% { opacity:0; transform:scaleX(1.1) translateX(5%); }
}

/* CSS hexagon cluster */
.hero__hex {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  opacity: .12; pointer-events: none;
}
.hex {
  width: 80px; height: 46px; position: absolute;
  background: var(--accent);
  clip-path: polygon(25% 0%,75% 0%,100% 50%,75% 100%,25% 100%,0% 50%);
}
.hex:nth-child(1){ top:0;    left:0;   }
.hex:nth-child(2){ top:-55px;left:88px; opacity:.7; }
.hex:nth-child(3){ top:55px; left:88px; opacity:.5; }
.hex:nth-child(4){ top:-110px;left:0;  opacity:.4; }
.hex:nth-child(5){ top:110px; left:0;  opacity:.3; }
.hex:nth-child(6){ top:-55px; left:-88px;opacity:.2; }

.hero__content { position:relative; z-index:2; text-align:center; max-width:780px; }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: .75rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content:''; display:block; width:32px; height:1px; background:var(--accent); opacity:.5;
}
.hero__h1 {
  font-family: var(--font-head); font-size: clamp(2.5rem,6vw,4.8rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero__h1 em {
  font-style: normal; color: var(--accent);
  position: relative;
}
.hero__h1 em::after {
  content:''; position:absolute; bottom:-4px; left:0; right:0;
  height: 3px; background: var(--accent); opacity: .4;
  border-radius: 2px;
}
.hero__sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .8rem;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .85rem 2rem; border-radius: var(--r);
  transition: all var(--transition); cursor: pointer; border: none;
  font-weight: 500;
}
.btn--primary {
  background: var(--accent); color: var(--bg);
}
.btn--primary:hover { background: #00e0bc; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,200,168,.3); }
.btn--ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── Stats bar ─────────────────────────────────────────────── */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 0;
}
.stat {
  text-align: center; padding: 1rem 1.5rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 800;
  color: var(--accent); line-height: 1; margin-bottom: .25rem;
}
.stat__label {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
}

/* ── Section headings ──────────────────────────────────────── */
.section-head { margin-bottom: 3rem; }
.section-head h2 {
  font-family: var(--font-head); font-size: clamp(1.8rem,4vw,2.8rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: .75rem;
}
.section-head p {
  color: var(--text-muted); max-width: 540px; line-height: 1.8;
}
.section-head--center { text-align: center; }
.section-head--center p { margin: 0 auto; }

/* ── Service cards ─────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.card:hover { border-color: rgba(0,200,168,.3); transform:translateY(-4px); box-shadow:0 16px 40px rgba(0,0,0,.4); }
.card:hover::before { transform: scaleX(1); }

/* CSS Service Icons */
.card__icon {
  width: 48px; height: 48px; margin-bottom: 1.25rem;
  position: relative;
}
/* Icon 1: Data processing cylinders */
.icon--data::before {
  content:''; position:absolute; width:36px; height:10px;
  background: var(--accent-dim); border: 1.5px solid var(--accent);
  border-radius: 50%; top:0; left:6px;
}
.icon--data::after {
  content:''; position:absolute; width:36px; height:10px;
  background: var(--accent-dim); border: 1.5px solid var(--accent);
  border-radius: 50%; top:18px; left:6px;
}
.icon--data .icon-mid {
  position:absolute; width:36px; height:18px;
  border-left: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent);
  top:5px; left:6px;
}

/* Icon 2: Network nodes */
.icon--network::before {
  content:''; position:absolute; width:12px; height:12px;
  border:2px solid var(--accent); border-radius:50%;
  top:0; left:50%; transform:translateX(-50%);
}
.icon--network::after {
  content:''; position:absolute; width:48px; height:24px;
  border-bottom: 1.5px solid rgba(0,200,168,.4);
  border-left: 1.5px solid rgba(0,200,168,.4);
  border-right: 1.5px solid rgba(0,200,168,.4);
  top:12px; left:0;
}
.icon--network .dot {
  position:absolute; width:8px; height:8px;
  border:2px solid var(--accent); border-radius:50%;
}
.icon--network .dot:nth-child(1){ bottom:6px; left:4px; }
.icon--network .dot:nth-child(2){ bottom:6px; right:4px; }
.icon--network .dot:nth-child(3){ bottom:6px; left:50%; transform:translateX(-50%); }

/* Icon 3: Shield / security */
.icon--secure::before {
  content:''; position:absolute; width:34px; height:36px;
  border: 2px solid var(--accent); border-radius: 4px 4px 50% 50%;
  top:0; left:7px;
}
.icon--secure::after {
  content:''; position:absolute; width:10px; height:14px;
  border: 1.5px solid var(--accent); border-radius: 2px;
  top:12px; left:50%; transform:translateX(-50%);
}

/* Icon 4: Chart bars */
.icon--analytics::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:2px;
  background: rgba(0,200,168,.4);
}
.icon--analytics .bar {
  position:absolute; bottom:4px;
  background: var(--accent); border-radius:2px 2px 0 0;
  width: 8px;
  opacity: .8;
}
.icon--analytics .bar:nth-child(1){ height:20px; left:4px; opacity:1; }
.icon--analytics .bar:nth-child(2){ height:32px; left:16px; }
.icon--analytics .bar:nth-child(3){ height:24px; left:28px; opacity:.9; }
.icon--analytics .bar:nth-child(4){ height:38px; left:40px; }

/* Icon 5: Gear / automation */
.icon--auto {
  display:flex; align-items:center; justify-content:center;
}
.icon--auto::before {
  content:''; width:26px; height:26px;
  border: 2.5px solid var(--accent); border-radius:50%;
}
.icon--auto::after {
  content:''; position:absolute; width:10px; height:10px;
  border: 2px solid var(--accent); border-radius:50%;
  top:50%; left:50%; transform:translate(-50%,-50%);
}

/* Icon 6: Cloud stack */
.icon--cloud::before {
  content:''; position:absolute; width:40px; height:18px;
  border: 2px solid var(--accent); border-radius: 20px;
  top:6px; left:4px; background: var(--accent-dim);
}
.icon--cloud::after {
  content:''; position:absolute; width:18px; height:18px;
  border: 2px solid var(--accent); border-radius: 50%;
  top:0; left:10px; background: var(--bg2);
}

.card h3 {
  font-family: var(--font-head); font-size: 1.05rem;
  font-weight: 700; margin-bottom: .6rem; letter-spacing: -.01em;
}
.card p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }

/* ── Process steps ─────────────────────────────────────────── */
.process { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 0 1.5rem; padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  width: 48px; height: 48px; flex-shrink: 0;
  border: 1.5px solid var(--accent); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .8rem; color: var(--accent);
  position: relative; background: var(--accent-dim);
}
.step-num::after {
  content:''; position:absolute; bottom:-2rem; left:50%; transform:translateX(-50%);
  width:1px; height: calc(2rem - 8px); background: var(--border);
}
.process-step:last-child .step-num::after { display: none; }
.step-content h3 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  margin-bottom: .35rem;
}
.step-content p { color: var(--text-muted); font-size: .9rem; }

/* ── CTA strip ─────────────────────────────────────────────── */
.cta-strip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 3.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
}
.cta-strip__text { position: relative; }
.cta-strip__text h2 {
  font-family: var(--font-head); font-size: clamp(1.5rem,3vw,2rem);
  font-weight: 700; margin-bottom: .4rem;
}
.cta-strip__text p { color: var(--text-muted); font-size: .9rem; }
.cta-strip > .btn { position: relative; }

/* ── About page ────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
/* CSS isometric data diagram */
.about-art {
  aspect-ratio: 1 / 1; max-width: 420px;
  position: relative; margin: 0 auto;
}
.iso-block {
  position: absolute;
  transform-origin: center bottom;
}
.iso-top, .iso-left, .iso-right {
  position: absolute;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.isometric-grid {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.iso-tower {
  position: absolute; width: 60px;
}
.iso-face {
  position: absolute; background: var(--surface);
}
/* Draw three parallelogram faces via clip-path for an isometric look */
.iso-top-face {
  clip-path: polygon(50% 0%,100% 25%,50% 50%,0% 25%);
  background: rgba(0,200,168,.5);
}
.iso-left-face {
  clip-path: polygon(0% 25%,50% 50%,50% 100%,0% 75%);
  background: rgba(0,200,168,.25);
}
.iso-right-face {
  clip-path: polygon(50% 50%,100% 25%,100% 75%,50% 100%);
  background: rgba(0,200,168,.15);
}

/* CSS circuit board graphic */
.circuit {
  width: 100%; height: 100%;
  position: relative; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg2); overflow: hidden;
}
.circuit-line {
  position: absolute; background: var(--accent);
  opacity: .25;
}
.circuit-line--h { height: 1px; }
.circuit-line--v { width: 1px; }
.circuit-dot {
  position: absolute; width: 8px; height: 8px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  transform: translate(-50%,-50%);
}
.circuit-dot--filled { background: var(--accent); opacity: .6; }
.circuit-chip {
  position: absolute; background: var(--surface);
  border: 1.5px solid var(--accent); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .6rem; color: var(--accent);
  letter-spacing: .05em;
}
.circuit-pulse {
  position: absolute; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse-travel 4s linear infinite;
  opacity: 0;
}
@keyframes pulse-travel {
  0%   { opacity:0; }
  10%  { opacity:1; }
  80%  { opacity:1; }
  100% { opacity:0; }
}

.about-text h2 {
  font-family: var(--font-head); font-size: clamp(1.8rem,4vw,2.4rem);
  font-weight: 700; letter-spacing:-.02em; margin-bottom: 1rem;
}
.about-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: .95rem; }
.about-text ul { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.about-text li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .9rem; color: var(--text-muted);
}
.about-text li::before {
  content:''; display:block; flex-shrink:0;
  width:6px; height:6px; background:var(--accent);
  border-radius:50%; margin-top:.55rem;
}

/* ── Values row ────────────────────────────────────────────── */
.values {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.value {
  background: var(--bg2); padding: 2rem 1.5rem;
}
.value__num {
  font-family: var(--font-mono); font-size: .65rem;
  letter-spacing: .15em; color: var(--accent); margin-bottom: .5rem;
  text-transform: uppercase;
}
.value h3 {
  font-family: var(--font-head); font-size: 1rem;
  font-weight: 700; margin-bottom: .4rem;
}
.value p { color: var(--text-muted); font-size: .85rem; line-height: 1.6; }

/* ── Contact page ──────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 380px 1fr;
  gap: 3rem; align-items: start;
}
.contact-sidebar { position: sticky; top: calc(var(--nav-h) + 2rem); }
.contact-sidebar h1 {
  font-family: var(--font-head); font-size: clamp(2rem,4vw,2.8rem);
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem;
}
.contact-sidebar p { color: var(--text-muted); margin-bottom: 2rem; font-size: .95rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 1rem;
}
/* CSS contact icons */
.detail-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 1.5px solid var(--border); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  position: relative; background: var(--surface);
}
/* Phone icon */
.detail-icon--phone::before {
  content:''; width:16px; height:18px;
  border: 2px solid var(--accent); border-radius: 3px;
  position: absolute;
}
.detail-icon--phone::after {
  content:''; position:absolute; bottom:6px;
  width:6px; height:6px; border-radius:50%; background: var(--accent);
}
/* Email icon */
.detail-icon--email::before {
  content:''; width:18px; height:13px;
  border: 2px solid var(--accent); border-radius: 2px; position: absolute;
}
.detail-icon--email::after {
  content:''; position:absolute; width:10px; height:6px;
  border-left:2px solid var(--accent); border-right:2px solid var(--accent);
  clip-path: polygon(0 0,50% 100%,100% 0);
  top:11px;
}
/* Location icon */
.detail-icon--loc::before {
  content:''; width:14px; height:18px;
  border: 2px solid var(--accent); border-radius: 50% 50% 40% 40%;
  position: absolute; top:4px;
}
.detail-icon--loc::after {
  content:''; position:absolute; width:4px; height:4px;
  border-radius:50%; background: var(--accent); bottom:6px;
}

.detail-info strong {
  display: block; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: .2rem;
}
.detail-info span {
  font-size: .92rem; color: var(--text); white-space: pre-line;
}
.detail-info a { color: var(--text); transition: color var(--transition); }
.detail-info a:hover { color: var(--accent); }

/* Contact iframe wrapper */
.contact-form-wrap {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; position: relative;
}
.form-header {
  padding: 1.25rem 1.75rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface);
}
.form-header-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.form-header-dot:nth-child(1){ background:#ff5f57; }
.form-header-dot:nth-child(2){ background:#febc2e; }
.form-header-dot:nth-child(3){ background:#28c840; }
.form-header-title {
  margin-left: auto; font-family: var(--font-mono); font-size: .7rem;
  color: var(--text-muted); letter-spacing: .08em;
}
.contact-iframe {
  width: 100%; height: 640px; border: none;
  background: var(--bg2);
}
.iframe-placeholder {
  width: 100%; height: 640px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; color: var(--text-muted); text-align: center; padding: 2rem;
}
.iframe-placeholder-icon {
  width: 56px; height: 56px; position: relative;
}
.iframe-placeholder-icon::before {
  content:''; position:absolute; inset:0;
  border: 2px dashed rgba(0,200,168,.3); border-radius: var(--r);
}
.iframe-placeholder-icon::after {
  content:''; position:absolute; top:50%; left:50%;
  width:24px; height:24px; transform:translate(-50%,-50%);
  border: 2px solid var(--accent); border-radius:50%;
}
.iframe-placeholder p { font-size: .85rem; max-width: 280px; }
.iframe-placeholder strong { color: var(--accent); display: block; margin-bottom: .25rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; }

/* ── Page hero (inner pages) ───────────────────────────────── */
.page-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.page-hero h1 {
  font-family: var(--font-head); font-size: clamp(2.2rem,5vw,3.5rem);
  font-weight: 800; letter-spacing:-.02em; margin-bottom: .75rem;
}
.page-hero p { color: var(--text-muted); max-width: 520px; font-size: 1rem; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem;
  margin-bottom: 3rem;
}
.footer__brand .nav__logo { margin-bottom: 1rem; font-size: .95rem; }
.footer__brand p { color: var(--text-muted); font-size: .85rem; max-width: 280px; line-height: 1.7; }
.footer h4 {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.footer ul { display: flex; flex-direction: column; gap: .55rem; }
.footer ul a { color: var(--text-muted); font-size: .88rem; transition: color var(--transition); }
.footer ul a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer__copy {
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--text-dim); letter-spacing: .04em;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up:nth-child(1){ animation-delay:.05s; }
.fade-up:nth-child(2){ animation-delay:.15s; }
.fade-up:nth-child(3){ animation-delay:.25s; }
.fade-up:nth-child(4){ animation-delay:.35s; }
.fade-up:nth-child(5){ animation-delay:.45s; }
.fade-up:nth-child(6){ animation-delay:.55s; }

/* ── Capabilities pair (home page) ────────────────────────── */
.capabilities-pair {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 0 1.5rem;
  align-items: stretch;
  margin-top: 1rem;
}
.cap-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cap-card:hover {
  border-color: rgba(0,200,168,.3);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.cap-icon {
  width: 72px; height: 72px; flex-shrink: 0;
  position: relative;
}
.cap-icon__art {
  width: 100%; height: 100%; position: relative;
}

/* Data processing icon: stacked cylinders */
.cap-icon__art--data .cyl {
  position: absolute; left: 10px; right: 10px;
  height: 10px;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}
.cap-icon__art--data .cyl--top { top: 4px; }
.cap-icon__art--data .cyl--mid { top: 26px; opacity: .7; }
.cap-icon__art--data .cyl--bot { top: 48px; opacity: .45; }
.cap-icon__art--data .cyl-side {
  position: absolute; left: 10px; width: calc(100% - 20px);
  top: 9px; height: 27px;
  border-left: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
}
.cap-icon__art--data .cyl-side--2 {
  top: 31px; height: 22px; opacity: .55;
}

/* Consultation icon: orbit nodes */
.cap-icon__art--consult { display: flex; align-items: center; justify-content: center; }
.node {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--accent-dim);
}
.node--a { width: 20px; height: 20px; top: 8px; left: 8px; }
.node--b { width: 16px; height: 16px; bottom: 10px; right: 10px; opacity: .65; }
.node-line {
  position: absolute; background: rgba(0,200,168,.35);
}
.node-line--1 {
  width: 1.5px; height: 32px;
  top: 18px; left: 17px;
  transform: rotate(42deg); transform-origin: top center;
}
.node-line--2 {
  width: 1.5px; height: 28px;
  top: 14px; left: 38px;
  transform: rotate(-28deg); transform-origin: top center;
  opacity: .6;
}
.node-pulse {
  position: absolute; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: node-beat 2.4s ease-in-out infinite;
}
@keyframes node-beat {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  50%       { transform: translate(-50%,-50%) scale(1.6); opacity: .4; }
}

.cap-divider {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0; padding: 2.5rem 0;
}
.cap-divider__line {
  flex: 1; width: 1px; background: var(--border);
}
.cap-divider__node {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  margin: .5rem 0;
  box-shadow: 0 0 12px var(--accent);
}

.cap-card__body h3 {
  font-family: var(--font-head); font-size: 1.5rem;
  font-weight: 700; letter-spacing: -.02em; margin-bottom: .75rem;
}
.cap-card__body p {
  color: var(--text-muted); line-height: 1.75; margin-bottom: 1.25rem;
}
.cap-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); transition: gap var(--transition);
}
.cap-link:hover { gap: .85rem; }
.cap-link__arrow {
  display: inline-block; width: 14px; height: 1.5px;
  background: var(--accent); position: relative;
}
.cap-link__arrow::after {
  content: ''; position: absolute; right: 0; top: 50%;
  width: 5px; height: 5px;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

/* ── Service detail (services page) ───────────────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.service-detail--flip { direction: rtl; }
.service-detail--flip > * { direction: ltr; }

.service-detail__art {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  aspect-ratio: 1 / 1;
  max-width: 420px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}

/* Pipeline art */
.pipeline-art {
  display: flex; align-items: center; gap: 0;
  width: 90%; padding: 1rem;
}
.pipe-stage { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex-shrink: 0; }
.pipe-box {
  width: 52px; height: 52px;
  border: 1.5px solid var(--accent); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .65rem;
  color: var(--text-muted); letter-spacing: .08em;
  background: var(--surface);
}
.pipe-box--accent { background: var(--accent-dim); color: var(--accent); }
.pipe-lines { display: flex; flex-direction: column; gap: 6px; }
.pipe-line { width: 14px; height: 1px; background: rgba(0,200,168,.3); }

.pipe-flow { flex: 1; display: flex; align-items: center; padding: 0 .25rem; overflow: hidden; }
.pipe-flow__track {
  width: 100%; height: 2px;
  background: rgba(0,200,168,.15); border-radius: 1px;
  position: relative; overflow: hidden;
}
.pipe-flow__packet {
  position: absolute; width: 16px; height: 2px;
  background: var(--accent); border-radius: 1px;
  animation: packet-move 2.7s linear infinite;
  left: -16px;
}
@keyframes packet-move {
  to { left: calc(100% + 16px); }
}

/* Advisory node art */
.advisory-art {
  width: 240px; height: 240px;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.adv-node--center {
  width: 64px; height: 64px;
  border: 2px solid var(--accent); border-radius: 50%;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .65rem; color: var(--accent);
  position: relative; z-index: 2;
}
.adv-node__ring {
  position: absolute; inset: -8px;
  border: 1px solid rgba(0,200,168,.25); border-radius: 50%;
  animation: spin-slow 12s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.adv-node--small {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(0,200,168,.5); border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .55rem; color: var(--text-muted);
}
.adv-spoke {
  position: absolute; display: flex; align-items: center;
}
.adv-spoke__line {
  width: 48px; height: 1px; background: rgba(0,200,168,.25);
}
.adv-spoke--1 { transform: rotate(0deg)   translateX(40px); }
.adv-spoke--2 { transform: rotate(90deg)  translateX(40px); }
.adv-spoke--3 { transform: rotate(180deg) translateX(40px); }
.adv-spoke--4 { transform: rotate(270deg) translateX(40px); }
.adv-orbit {
  position: absolute; inset: 10px;
  border: 1px dashed rgba(0,200,168,.1); border-radius: 50%;
}

.service-detail__text h2 {
  font-family: var(--font-head); font-size: clamp(2rem,4vw,2.6rem);
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem;
}
.service-detail__text > p {
  color: var(--text-muted); margin-bottom: 2rem; line-height: 1.75;
}
.service-features { display: flex; flex-direction: column; gap: 1.25rem; }
.svc-feat {
  display: grid; grid-template-columns: 20px 1fr; gap: .75rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--border);
}
.svc-feat:last-child { border-bottom: none; padding-bottom: 0; }
.svc-feat__num { color: var(--accent); font-size: .8rem; padding-top: .15rem; }
.svc-feat strong { display: block; font-weight: 600; margin-bottom: .25rem; font-size: .95rem; }
.svc-feat p { color: var(--text-muted); font-size: .88rem; line-height: 1.65; }

.section-divider { padding: 0; }
.section-divider__line {
  height: 1px; background: var(--border);
  position: relative;
}
.section-divider__line::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 1px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid       { grid-template-columns: 1fr; }
  .contact-layout   { grid-template-columns: 1fr; }
  .contact-sidebar  { position: static; }
  .footer__grid     { grid-template-columns: 1fr 1fr; }
  .footer__brand    { grid-column: 1 / -1; }
  .service-detail   { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-detail--flip { direction: ltr; }
  .service-detail__art { max-width: 100%; aspect-ratio: 16 / 7; }
  .capabilities-pair { grid-template-columns: 1fr; gap: 1.5rem 0; }
  .cap-divider { flex-direction: row; padding: 0; height: 32px; }
  .cap-divider__line { flex: 1; width: auto; height: 1px; }
  .cap-divider__node { margin: 0 .5rem; }
}
@media (max-width: 680px) {
  .nav__phone  { display: none; }
  .nav__links  { display: none; }
  .nav__hamburger { display: flex; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-strip   { text-align: center; justify-content: center; }
  .stat        { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}

/* ── Mobile nav open state ─────────────────────────────────── */
.nav--open .nav__links {
  display: flex; flex-direction: column;
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--bg); padding: 2rem;
  border-top: 1px solid var(--border);
  align-items: flex-start; gap: .25rem;
}
.nav--open .nav__links a { font-size: 1rem; padding: .75rem 0; }
