/* Segal Fartak — corporate site. RTL-first, logical properties throughout. */
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/vazirmatn-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/vazirmatn-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-950: #070f22;
  --navy-900: #0b1730;
  --navy-800: #13233f;
  --navy-700: #1e3257;
  --charcoal: #2a3342;
  --slate: #566173;
  --slate-light: #8b95a7;
  --line: #e3e8f0;
  --soft: #f5f7fb;
  --white: #ffffff;
  --blue: #1d6fe0;
  --cyan: #16b8c9;
  --cyan-text: #0a7480;          /* cyan dark enough for text on white (AA) */
  --focus: #1d6fe0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 23, 48, .05), 0 8px 24px rgba(11, 23, 48, .06);
  --shadow-lg: 0 2px 4px rgba(11, 23, 48, .06), 0 20px 48px rgba(11, 23, 48, .12);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--charcoal);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
h1, h2, h3 { color: var(--navy-900); line-height: 1.35; margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[lang="en"] { font-family: "Vazirmatn", "Segoe UI", system-ui, sans-serif; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; inset-inline-start: 16px; inset-block-start: -60px; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { inset-block-start: 12px; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.5em; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy-900); color: var(--white); box-shadow: 0 6px 18px rgba(11, 23, 48, .18); }
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 10px 26px rgba(11, 23, 48, .24); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: #c9d2e0; }
.btn-ghost:hover { border-color: var(--navy-900); }
.btn-sm { min-height: 40px; padding: .45em 1.15em; font-size: .9375rem; }
.btn-outline { background: var(--white); color: var(--navy-900); border-color: #c9d2e0; }
.btn-outline:hover { border-color: var(--cyan); color: var(--navy-900); box-shadow: 0 6px 18px rgba(22, 184, 201, .16); }
.nav-cta-nexpilot { min-width: 104px; font-weight: 700; letter-spacing: .01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-block-end: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(11, 23, 48, .05); background: rgba(255, 255, 255, .94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-900); }
.brand picture { display: block; flex: none; }
.brand-mark { display: block; width: auto; height: 38px; }
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.brand:hover { text-decoration: none; }
.brand-fa { display: block; font-weight: 800; font-size: 1.12rem; line-height: 1.2; color: var(--navy-900); }
.brand-en { display: block; font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif; font-size: .8rem; font-weight: 600; line-height: 1.1; letter-spacing: .01em; text-transform: none; color: #3d4a5e; direction: ltr; text-align: right; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-ctas { display: flex; align-items: center; gap: 10px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  display: block; padding: .4em .85em; border-radius: 999px;
  color: var(--charcoal); font-weight: 500; font-size: .98rem;
  transition: color .2s, background-color .2s;
}
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { color: var(--navy-900); background: var(--soft); text-decoration: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; inset-inline-start: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--navy-900);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; inset-inline-start: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 15% 30%, rgba(22, 184, 201, .08), transparent 70%),
    linear-gradient(180deg, var(--soft), var(--white) 85%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(30, 50, 87, .12) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin-block-end: 1.1em;
  color: var(--cyan-text); font-weight: 700; font-size: .92rem; letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--cyan); }
.eyebrow-brand::before { display: none; }
.eyebrow-brand img { width: 28px; height: 16px; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.3; font-weight: 900; letter-spacing: -.005em; margin-block-end: .55em; }
.accent {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { text-wrap: pretty; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--slate); max-width: 36em; margin-block-end: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; }
/* Hero visual: "Secure Core" — inline SVG, CSS + SMIL, paused off-screen, static under reduced motion. */
.core-viz { width: 100%; max-width: 560px; margin-inline: auto; overflow: visible; }
.cv-dots { opacity: .7; }
.cv-glow { transform-origin: 280px 280px; animation: cv-breathe 7s ease-in-out infinite; }
.cv-orbit ellipse { fill: none; stroke: #c2cee0; stroke-width: 1.1; }
.cv-orbit-2 ellipse { stroke-dasharray: 2 7; stroke: #c3cfe1; }
.cv-sat { fill: #1d6fe0; }
.cv-sat-2 { fill: #14c3d4; }
.cv-paths path { fill: none; stroke: #c4d0e2; stroke-width: 1.4; }
.cv-flows path {
  fill: none; stroke: url(#cv-brand); stroke-width: 2.8; stroke-linecap: round;
  stroke-dasharray: 150 850; stroke-dashoffset: 1000; opacity: .95;
  animation: cv-flow 7s cubic-bezier(.45, 0, .25, 1) infinite;
}
.cv-flows path:nth-child(2) { animation-duration: 8.5s; animation-delay: -3s; }
.cv-flows path:nth-child(3) { animation-duration: 7.5s; animation-delay: -5.2s; }
.cv-flows path:nth-child(4) { animation-duration: 9s; animation-delay: -1.4s; }
.cv-flows path:nth-child(5) { animation-duration: 8s; animation-delay: -6.3s; }
.cv-flows path:nth-child(6) { animation-duration: 9.5s; animation-delay: -2.2s; }
.cv-ends circle { fill: var(--white); stroke: #1d6fe0; stroke-width: 2; }
.cv-ring-outer { fill: none; stroke: #a9b9d1; stroke-width: 1; stroke-dasharray: 1.5 6; transform-origin: 280px 280px; animation: cv-spin 140s linear infinite; }
.cv-ring { fill: rgba(255, 255, 255, .55); stroke: #dbe3ee; stroke-width: 1; }
.cv-arc { fill: none; stroke: url(#cv-brand); stroke-width: 3; stroke-linecap: round; transform-origin: 280px 280px; }
.cv-arc-1 { stroke-dasharray: 22 78; animation: cv-spin 16s linear infinite; }
.cv-arc-2 { stroke-dasharray: 9 91; opacity: .6; animation: cv-spin 24s linear infinite reverse; }
.cv-disc { fill: var(--white); }
.cv-disc-line { fill: none; stroke: #e6ecf4; stroke-width: 1; }
@keyframes cv-flow { 0% { stroke-dashoffset: 1000; opacity: 0; } 12% { opacity: .95; } 78% { opacity: .95; } 100% { stroke-dashoffset: 150; opacity: 0; } }
@keyframes cv-spin { to { transform: rotate(360deg); } }
@keyframes cv-breathe { 0%, 100% { opacity: .75; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
.hero-paused .core-viz * { animation-play-state: paused !important; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-soft { background: var(--soft); }
.hero + .section { padding-block-start: clamp(40px, 6vw, 80px); }
.section-dark { background: var(--navy-900); color: #c7d0df; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 85% 0%, rgba(22, 184, 201, .14), transparent 70%),
              radial-gradient(40% 50% at 0% 100%, rgba(29, 111, 224, .16), transparent 70%);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: #5fd6e2; }
.section-dark .section-lead { color: #a9b5c9; }
.section-head { max-width: 46rem; margin-block-end: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); margin-block-end: .5em; }
.section-lead { color: var(--slate); font-size: 1.08rem; margin: 0; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; padding: 28px 26px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card::after {
  content: ""; position: absolute; inset-inline: 26px; inset-block-start: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d3dcea; }
.card:hover::after { transform: scaleX(1); }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-block-end: 20px;
  border-radius: 12px; background: linear-gradient(135deg, rgba(29, 111, 224, .1), rgba(22, 184, 201, .12));
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--navy-800); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; margin-block-end: .2em; }
.card-en { font-size: .78rem; color: #677285; font-weight: 600; letter-spacing: .02em; margin-block-end: .9em; text-align: end; }
.card p:last-child { color: var(--slate); font-size: .98rem; margin: 0; }

/* Principles */
.why-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.why-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.principles { display: grid; gap: 0; counter-reset: p; }
.principles li { display: flex; gap: 22px; padding-block: 24px; border-block-end: 1px solid rgba(255, 255, 255, .09); }
.principles li:first-child { padding-block-start: 0; }
.principles .num { flex: none; width: 52px; font-weight: 800; font-size: 1.15rem; color: #5fd6e2; font-variant-numeric: tabular-nums; }
.principles h3 { font-size: 1.12rem; margin-block-end: .35em; }
.principles p { margin: 0; color: #a9b5c9; font-size: .99rem; }

/* Product */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.product-copy h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 900; }
.product-tagline { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-text); text-align: end; margin-block: .3em 1.4em; }
.product-copy [dir="ltr"].product-tagline { text-align: right; }
.feature-list { display: grid; gap: 14px; margin-block: 1.6em; }
.feature-list li { position: relative; padding-inline-start: 30px; color: var(--slate); font-size: .98rem; line-height: 1.75; }
.feature-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 0 3px, rgba(22, 184, 201, .18) 3.5px);
}
.feature-list strong { display: block; color: var(--navy-900); font-weight: 700; }
.product-copy p span[lang="en"] { white-space: nowrap; }
.product-headline { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); font-weight: 800; color: var(--navy-900); line-height: 1.6; margin-block-end: .8em; }
.capabilities-title { font-size: 1.05rem; margin-block: 1.6em .9em; }
.capability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 12px 28px; margin-block-end: 1.8em; }
.capability-list li { position: relative; padding-inline-start: 24px; color: var(--charcoal); font-weight: 500; font-size: .98rem; line-height: 1.7; }
.capability-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 10px; height: 10px; border-radius: 3px;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); transform: rotate(45deg) scale(.8);
}
.product-closing { font-size: 1.12rem; font-weight: 800; color: var(--navy-900); margin-block-end: .7em; padding-block-start: 1.2em; border-block-start: 1px solid var(--line); }
.note { font-size: .92rem; color: var(--slate); border-inline-start: 3px solid var(--cyan); padding-inline-start: 14px; margin-block-end: 1.8em; }

.product-visual { perspective: 1400px; }
.window {
  border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotateY(-8deg) rotateX(3deg); transition: transform .6s var(--ease);
}
.product-visual:hover .window { transform: rotateY(-3deg) rotateX(1deg); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--soft); border-block-end: 1px solid var(--line); direction: ltr; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d3dcea; }
.window-logo { margin-inline-start: auto; width: 28px; height: 28px; border-radius: 6px; }
.window-body { display: grid; grid-template-columns: 56px 1fr; min-height: 300px; direction: ltr; }
.mock-side { background: var(--navy-900); padding: 18px 14px; display: grid; align-content: start; gap: 14px; }
.mock-side i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.mock-side i:first-child { background: var(--cyan); }
.mock-main { padding: 20px; display: grid; gap: 16px; align-content: start; }
.mock-topo { width: 100%; height: auto; background: var(--soft); border-radius: 12px; padding: 8px; }
.mock-topo path { fill: none; stroke: #b7c4d9; stroke-width: 1.5; }
.mock-topo circle { fill: var(--white); stroke: var(--navy-800); stroke-width: 2; }
.mock-topo .t-core { fill: var(--blue); stroke: none; }
.mock-rows { display: grid; gap: 10px; }
.mock-rows i { display: block; height: 10px; border-radius: 5px; background: var(--line); }
.mock-rows i:nth-child(1) { width: 92%; } .mock-rows i:nth-child(2) { width: 74%; } .mock-rows i:nth-child(3) { width: 58%; }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 6vw, 88px); align-items: start; }
.about-grid .section-head { margin: 0; }
.about-logo { width: 200px; height: auto; margin-block-end: 28px; }
.about-copy p { font-size: 1.1rem; color: var(--charcoal); }
.about-copy p:last-child { margin: 0; }
.en-name { color: var(--slate); font-size: .95em; }

/* Contact */
.contact-grid { display: grid; gap: 0; }
.contact-cards { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; align-items: stretch; }
.contact-phones { align-items: flex-start; }
.tel-list { display: grid; gap: 2px; margin-block-start: 2px; }
.contact-card .cv-tel { color: var(--navy-900); font-variant-numeric: tabular-nums; text-align: right; border-radius: 6px; }
.contact-card .cv-tel:hover { color: var(--blue); }
.contact-depts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block-start: 16px; }
.dept-link {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--soft);
  transition: border-color .25s, background-color .25s;
}
.dept-link:hover { text-decoration: none; border-color: #c9d2e0; background: var(--white); }
.dept-link .dl { color: var(--slate); font-size: .95rem; }
.dept-link .dv { color: var(--navy-900); font-weight: 700; overflow-wrap: anywhere; }
.footer-contact a[dir="ltr"] { display: inline-block; }
/* Email addresses are images (see tools/make-email-images.py); buttons open the mail client / copy. */
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-block-start: 4px; }
.email-img { display: inline-flex; padding: 2px; margin: -2px; border: 0; background: none; cursor: pointer; border-radius: 6px; }
.email-img img { display: block; max-width: 100%; height: auto; }
.email-img:hover img { opacity: .82; }
.email-copy {
  font: inherit; font-size: .8rem; font-weight: 600; line-height: 1; cursor: pointer;
  padding: 6px 10px; border-radius: 999px; border: 1px solid #c9d2e0; background: var(--white); color: var(--navy-900);
  transition: border-color .2s, background-color .2s;
}
.email-copy:hover { border-color: var(--cyan); }
.email-copy.is-done { border-color: var(--cyan); background: #e8f9fb; }
.is-primary .email-copy { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: var(--white); }
.is-primary .email-copy.is-done { background: rgba(22, 184, 201, .25); }
.dept-link .email-line { margin: 0; }
.footer-contact .email-img { margin: 0; padding: 0; }
.contact-card {
  display: flex; gap: 16px; align-items: center; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--white); color: var(--charcoal); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
a.contact-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c9d2e0; }
.contact-card .ci { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy-900); }
.contact-card .ci svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card .cl { display: block; font-size: .85rem; color: var(--slate); }
.contact-card .cv { display: block; font-weight: 700; color: var(--navy-900); font-size: 1.02rem; overflow-wrap: anywhere; }
.contact-card.is-primary { background: var(--navy-900); border-color: var(--navy-900); }
.contact-card.is-primary .ci { background: rgba(255, 255, 255, .12); }
.contact-card.is-primary .cl { color: #a9b5c9; }
.contact-card.is-primary .cv { color: var(--white); }
.contact-card.is-pending { border-style: dashed; border-color: #e0a100; background: #fffbea; box-shadow: none; }
.contact-card.is-pending .ci { background: #e0a100; }
.contact-card.is-pending .cv { color: #7a5600; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-950); color: #9aa6ba; padding-block: 64px 28px; font-size: .95rem; }
.site-footer a { color: #c7d0df; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block-end: 40px; border-block-end: 1px solid rgba(255, 255, 255, .08); }
.brand-footer { margin: 0 0 1.2em; }
.brand-footer img { width: 180px; height: auto; }
.footer-desc { max-width: 28em; margin: 0; }
.footer-title { color: var(--white); font-size: 1rem; font-weight: 700; margin-block-end: 1em; }
.site-footer ul { display: grid; gap: .5em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block-start: 24px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Preview banner (never present in release builds) */
.preview-banner { position: relative; z-index: 60; background: #fff4cc; color: #5c4300; border-block-end: 1px solid #e0c060; font-size: .9rem; padding: 8px var(--gutter); text-align: center; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.cards .card:nth-child(3n+2) { transition-delay: .06s; }
.cards .card:nth-child(3n+3) { transition-delay: .12s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) and (min-width: 881px) {
  .site-nav ul a { padding-inline: .5em; font-size: .94rem; }
}
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 16px; }
  .site-nav ul a { padding-inline: .6em; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px var(--gutter) 20px; background: var(--white); border-block-end: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(11, 23, 48, .08);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: .7em .9em; border-radius: var(--radius-sm); font-size: 1.02rem; }
  .nav-ctas { flex-direction: column; align-items: stretch; gap: 10px; padding-block-start: 8px; border-block-start: 1px solid var(--line); }
  .nav-cta { width: 100%; min-height: 46px; }
  .hero-grid, .why-grid, .product-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; width: 100%; }
  .core-viz { max-width: 400px; }
  .why-grid .section-head { position: static; }
  .window { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .contact-cards .is-primary { grid-column: 1 / -1; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .core-viz { max-width: 320px; }
  .principles li { gap: 14px; }
  .principles .num { width: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-cards, .contact-depts { grid-template-columns: 1fr; }
  .capability-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .brand-mark { height: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-text { padding-inline-start: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .cv-flows path { stroke-dashoffset: 520; opacity: .9; }
  .cv-flows path:nth-child(2) { stroke-dashoffset: 380; } .cv-flows path:nth-child(3) { stroke-dashoffset: 640; }
  .cv-flows path:nth-child(4) { stroke-dashoffset: 300; } .cv-flows path:nth-child(5) { stroke-dashoffset: 700; }
  .cv-flows path:nth-child(6) { stroke-dashoffset: 450; }
  .cv-arc-1 { transform: rotate(-60deg); }
  .cv-arc-2 { transform: rotate(120deg); }
}

@media print {
  .site-header, .hero-visual, .product-visual, .preview-banner { display: none; }
  .section-dark { background: none; color: #000; }
  .section-dark h2, .section-dark h3 { color: #000; }
}
