/* ===== SLECON — Design tokens ===== */
:root {
  --bg: #FAFAF8;
  --bg-warm: #F2EFE8;
  --paper: #FFFFFF;
  --ink: #0E1116;
  --ink-soft: #2A2E36;
  --muted: #6B6F78;
  --line: #E5E0D2;
  --line-strong: #D2CAB5;
  --accent: #E94E1B;     /* SLECON brand orange */
  --accent-2: #F7941D;   /* SLECON brand bright orange */
  --accent-ink: #FFFFFF;
  --hv: #1B75BC;         /* SLECON brand blue */
  --hv-dark: #0D4377;
  --danger: #C2410C;
  --ok: #166534;
  --shadow-sm: 0 1px 0 rgba(14,17,22,.04), 0 1px 2px rgba(14,17,22,.04);
  --shadow-md: 0 1px 0 rgba(14,17,22,.04), 0 8px 24px -8px rgba(14,17,22,.12);

  --f-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --f-sans: "Geist", "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ===== Typography ===== */
.display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--ink);
}
.kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ===== Layout ===== */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 56px; align-items: end; }
.section-head h2 { margin: 12px 0 0; font-size: clamp(36px, 4vw, 56px); }
.section-head p { color: var(--muted); margin: 0; max-width: 52ch; }

/* ===== Header ===== */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,248,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 40px); padding: 14px 32px; max-width: 1320px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  height: 32px;
  display: flex; align-items: center;
}
.brand-mark img { height: 100%; width: auto; display: block; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand-sub { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.08em; white-space: nowrap; }
.nav { display: flex; gap: 2px; flex: 1; justify-content: center; min-width: 0; }
.nav a {
  padding: 8px clamp(8px, 1vw, 14px);
  font-size: clamp(13px, 1.05vw, 14px);
  color: var(--ink-soft);
  border-radius: 999px;
  transition: background .15s;
  white-space: nowrap;
}
.nav a:hover { background: rgba(14,17,22,.06); }
.nav a.active { background: var(--ink); color: var(--bg); }
.hdr-actions { display: flex; gap: clamp(6px, 0.8vw, 10px); align-items: center; flex-shrink: 0; }
.hdr-tel { font-family: var(--f-mono); font-size: clamp(11px, 0.95vw, 13px); color: var(--ink-soft); display: flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.hdr-tel-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ===== Mobile burger + drawer ===== */
.hdr-burger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  flex-shrink: 0;
}
.hdr-burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .35s ease, opacity .25s ease, top .35s ease;
}
.hdr-burger span:nth-child(1) { top: 14px; }
.hdr-burger span:nth-child(2) { top: 19px; }
.hdr-burger span:nth-child(3) { top: 24px; }
.hdr-burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hdr-burger.is-open span:nth-child(2) { opacity: 0; }
.hdr-burger.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.hdr-drawer {
  position: fixed;
  top: 64px; left: 0; right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 49;
  display: flex; flex-direction: column;
  padding: 24px 20px 32px;
  gap: 24px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear .35s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.hdr-drawer.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}
.hdr-drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.hdr-drawer-nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 8px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.025em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color .15s ease;
}
.hdr-drawer-nav a.active { color: var(--accent); }
.hdr-drawer-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex-shrink: 0;
  width: 24px;
}
.hdr-drawer-foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.hdr-drawer-foot .btn { width: 100%; justify-content: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 500;
  border-radius: 999px;
  transition: transform .12s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; font-weight: 600; }
.btn-accent:hover { background: #d3401a; box-shadow: 0 6px 16px -6px rgba(233,78,27,.5); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ===== Hero ===== */
.hero { padding: 64px 0 80px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: stretch; }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 24px 0 0;
}
.hero h1 em {
  font-style: italic;
  font-family: "Instrument Serif", "Bricolage Grotesque", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.hero-lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 28px 0 36px;
  line-height: 1.5;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  margin: 36px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.hero-meta-item svg { color: var(--accent); flex-shrink: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero side card */
.quote-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: "";
  position: absolute; top: 0; right: 0; width: 200px; height: 200px;
  background: radial-gradient(circle at top right, rgba(233,78,27,.35), transparent 65%);
  pointer-events: none;
}
.quote-card .kicker { color: rgba(247,245,238,.6); }
.quote-card h3 { font-family: var(--f-display); font-weight: 500; font-size: 28px; margin: 8px 0 24px; letter-spacing: -0.02em; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: rgba(247,245,238,.7); font-family: var(--f-mono); letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  padding: 12px 14px;
  border-radius: 4px;
  color: var(--bg);
  outline: none;
  transition: border .15s, background .15s;
}
/* Force native <select> dropdown popup to render in light mode so options are
   readable on Windows Chrome/Edge (where the popup otherwise inherits white
   text from the dark host and becomes invisible until hovered). */
.field select { color-scheme: light; }
.field select option,
.field select optgroup {
  background-color: #FFFFFF;
  color: #0E1116;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.08);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-foot { margin-top: 8px; font-size: 12px; color: rgba(247,245,238,.5); }

/* trust strip */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg);
}
.trust-inner { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; }
.trust-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.logos { display: flex; gap: 48px; flex-wrap: wrap; align-items: center; }
.logo-ph {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--muted);
  letter-spacing: -0.01em;
  opacity: 0.7;
  transition: opacity .2s, color .2s;
}
.logo-ph:hover { opacity: 1; color: var(--ink); }

/* ===== Stats band ===== */
.stats { background: var(--ink); color: var(--bg); padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 0 32px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--f-display); font-weight: 500; font-size: 72px; letter-spacing: -0.04em; line-height: 1; }
.stat-num .accent { color: var(--accent); }
.stat-label { font-size: 13px; color: rgba(247,245,238,.65); margin-top: 12px; max-width: 24ch; }

/* ===== Service cards ===== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  transition: border .2s, transform .2s, box-shadow .2s;
  position: relative;
  min-height: 320px;
}
.svc-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.svc-num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.svc-card h3 { font-family: var(--f-display); font-size: 28px; font-weight: 500; margin: 0; letter-spacing: -0.02em; }
.svc-card p { color: var(--muted); margin: 0; font-size: 15px; }
.svc-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.svc-card li { font-size: 13px; display: flex; gap: 8px; align-items: baseline; }
.svc-card li::before { content: "—"; color: var(--accent); font-weight: 600; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.svc-foot a { font-family: var(--f-mono); font-size: 12px; color: var(--ink); display: flex; align-items: center; gap: 6px; }

/* ===== Capabilities ===== */
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap { background: var(--bg); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; transition: background .15s; }
.cap:hover { background: var(--paper); }
.cap-icon { width: 36px; height: 36px; color: var(--ink); }
.cap h4 { font-family: var(--f-display); font-size: 20px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.cap p { font-size: 14px; color: var(--muted); margin: 0; }
.cap-spec { font-family: var(--f-mono); font-size: 11px; color: var(--ink); margin-top: 4px; letter-spacing: 0.04em; }

/* ===== Industries ===== */
.industries { background: var(--ink); color: var(--bg); }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .2s, border .2s;
  cursor: pointer;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.ind:hover { background: rgba(245,179,36,.08); border-color: var(--accent); }
.ind-num { font-family: var(--f-mono); font-size: 11px; color: rgba(247,245,238,.5); }
.ind h4 { font-family: var(--f-display); font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -0.02em; }
.ind p { font-size: 13px; color: rgba(247,245,238,.6); margin: 0; line-height: 1.5; flex: 1; }
.ind-tag { font-family: var(--f-mono); font-size: 11px; color: var(--accent); }

/* ===== Process timeline ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process-grid::before { content: ""; position: absolute; top: 32px; left: 0; right: 0; height: 1px; background: var(--line); z-index: 0; }
.step { position: relative; z-index: 1; }
.step-dot { width: 64px; height: 64px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--f-display); font-weight: 500; font-size: 22px; margin-bottom: 24px; transition: background .2s, border .2s, color .2s; }
.step:hover .step-dot { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.step h4 { font-family: var(--f-display); font-size: 22px; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.02em; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }
.step-time { font-family: var(--f-mono); font-size: 11px; color: var(--accent); margin-top: 12px; letter-spacing: 0.06em; }

/* ===== Project cards ===== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border .2s, transform .2s;
}
.proj:hover { border-color: var(--ink); transform: translateY(-2px); }
.proj-img { aspect-ratio: 4/3; background: var(--bg-warm); display: grid; place-items: center; position: relative; overflow: hidden; }
.proj-img svg { width: 100%; height: 100%; }
.proj-body { padding: 24px; }
.proj-meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.05em; margin-bottom: 14px; }
.proj-meta .ind { background: none; border: none; padding: 0; min-height: 0; color: var(--accent); }
.proj h4 { font-family: var(--f-display); font-size: 22px; font-weight: 500; margin: 0 0 12px; letter-spacing: -0.02em; line-height: 1.2; }
.proj p { font-size: 14px; color: var(--muted); margin: 0; }
.proj-specs { display: flex; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.proj-spec { display: flex; flex-direction: column; gap: 2px; }
.proj-spec-label { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.proj-spec-val { font-family: var(--f-display); font-weight: 500; font-size: 17px; }

/* ===== Testimonials ===== */
.testimonials { background: var(--bg-warm); }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.test-quote { font-family: var(--f-display); font-size: 20px; font-weight: 400; line-height: 1.4; letter-spacing: -0.01em; flex: 1; }
.test-quote::before { content: "\201C"; font-family: "Instrument Serif", serif; font-size: 48px; color: var(--accent); line-height: 0; vertical-align: -8px; margin-right: 4px; }
.test-author { display: flex; gap: 12px; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); }
.test-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--accent-2); display: grid; place-items: center; font-family: var(--f-display); font-weight: 500; }
.test-name { font-weight: 500; font-size: 14px; }
.test-role { font-size: 12px; color: var(--muted); }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; text-align: left; font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; transition: color .15s; }
.faq-q:hover { color: var(--accent); }
.faq-q-plus { width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; transition: transform .25s, color .15s; }
.faq-item.open .faq-q-plus { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 24px; }
.faq-a p { margin: 0; color: var(--muted); font-size: 15px; max-width: 70ch; line-height: 1.6; }

/* ===== CTA strip ===== */
.cta-strip {
  background: linear-gradient(135deg, var(--accent) 0%, #d3401a 100%);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(255,255,255,.1) 119px 120px);
  pointer-events: none;
}
.cta-strip .btn-primary { background: #fff; color: var(--accent); }
.cta-strip .btn-primary:hover { background: var(--ink); color: #fff; }
.cta-strip-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center; position: relative; }
.cta-strip h2 { font-family: var(--f-display); font-size: clamp(36px, 4vw, 56px); font-weight: 500; letter-spacing: -0.03em; margin: 0; line-height: 1; }
.cta-strip p { margin: 16px 0 0; font-size: 17px; max-width: 50ch; }
.cta-strip-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ===== Footer ===== */
.ftr { background: var(--ink); color: var(--bg); padding: 80px 0 32px; }
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ftr h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247,245,238,.5); margin: 0 0 20px; font-weight: 400; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ftr a { font-size: 14px; color: rgba(247,245,238,.85); transition: color .15s; }
.ftr a:hover { color: var(--accent); }
.ftr-brand { display: flex; flex-direction: column; gap: 16px; }
.ftr-brand p { font-size: 14px; color: rgba(247,245,238,.65); margin: 0; max-width: 38ch; }
.ftr-contact-item { font-size: 14px; color: rgba(247,245,238,.85); line-height: 1.5; }
.ftr-bot { display: flex; justify-content: space-between; padding-top: 28px; font-size: 12px; color: rgba(247,245,238,.5); font-family: var(--f-mono); letter-spacing: 0.04em; }
.ftr-cert { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.cert-badge { font-family: var(--f-mono); font-size: 10px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.2); color: rgba(247,245,238,.7); letter-spacing: 0.08em; }

/* ===== WhatsApp float + sticky mobile bar ===== */
.wa-float {
  position: fixed; right: 24px; bottom: 24px;
  width: 56px; height: 56px;
  background: #25D366; color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -10px rgba(37,211,102,.6);
  z-index: 40;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(14,17,22,.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: var(--bg);
  border-radius: 6px;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .25s;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(14,17,22,.06);
}
.modal-close:hover { background: rgba(14,17,22,.12); }
.modal-inner { padding: 48px 40px; }
.modal h3 { font-family: var(--f-display); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 8px; }
.modal-lede { color: var(--muted); margin: 0 0 32px; }

/* light variant of field for modal */
.modal .field label { color: var(--muted); }
.modal .field input, .modal .field select, .modal .field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}
.modal .field input:focus, .modal .field select:focus, .modal .field textarea:focus {
  border-color: var(--ink);
  background: var(--paper);
}

.success {
  display: grid; place-items: center;
  padding: 24px 0;
  text-align: center;
}
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: white; display: grid; place-items: center; margin-bottom: 20px; }

/* ===== Pages: about / etc ===== */
.page-hero { padding: 80px 0 64px; }
.page-hero h1 { font-family: var(--f-display); font-size: clamp(56px, 8vw, 120px); font-weight: 500; letter-spacing: -0.04em; line-height: 0.95; margin: 16px 0 24px; }
.page-hero p { font-size: 19px; color: var(--ink-soft); max-width: 60ch; margin: 0; }

/* timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-row { display: grid; grid-template-columns: 160px 1fr; gap: 48px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--f-display); font-size: 40px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.tl-event h4 { font-family: var(--f-display); font-size: 24px; font-weight: 500; margin: 0 0 8px; }
.tl-event p { color: var(--muted); margin: 0; }

/* leadership */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { background: var(--paper); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 18px; min-height: 280px; }
.member-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.member h4 { font-family: var(--f-display); font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.member-role { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.04em; }
.member p { color: var(--muted); font-size: 14px; margin: 0; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.ci-block h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 400; }
.ci-block p, .ci-block a { font-family: var(--f-display); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.ci-block .small { font-size: 16px; color: var(--ink-soft); font-family: var(--f-sans); font-weight: 400; letter-spacing: 0; }
.map-ph { aspect-ratio: 16/9; background: var(--bg-warm); border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px;
}
.contact-form h3 { font-family: var(--f-display); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 8px; }
.contact-form .field input, .contact-form .field select, .contact-form .field textarea { background: var(--bg); border: 1px solid var(--line); color: var(--ink); }

/* compliance / certs */
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert {
  background: var(--paper); border: 1px solid var(--line);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.cert-num { font-family: var(--f-display); font-weight: 500; font-size: 32px; letter-spacing: -0.02em; }
.cert h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; font-weight: 400; }
.cert p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ===== Logo wall ===== */
.logowall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

/* ===== Scrolling logo marquee (uses original logowall-cell style) ===== */
.logowall-marquee {
  overflow: hidden;
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.logowall-track {
  display: flex;
  width: max-content;
  animation: logowallScroll 50s linear infinite;
}
.logowall-marquee:hover .logowall-track { animation-play-state: paused; }
@keyframes logowallScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.logowall-marquee .logowall-cell {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 16 / 9;
  border-right: 1px solid var(--line);
}
.logowall-marquee .logowall-cell:hover { background: var(--bg-warm); }

/* ===== Projects · On-site Gallery marquee ===== */
.gallery-band {
  background: var(--paper);
  padding: 80px 0 0;
  border-bottom: 1px solid var(--line);
}
.gallery-head {
  max-width: 1320px;
  margin: 0 auto 40px;
  padding: 0 32px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap;
}
.gallery-head h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  line-height: 1;
}
.gallery-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  padding: 0 0 80px;
}
.gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: galleryScroll 80s linear infinite;
}
.gallery-marquee:hover .gallery-track { animation-play-state: paused; }
@keyframes galleryScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.gallery-slot {
  flex-shrink: 0;
  width: 420px;
  height: 280px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: pointer;
}
.gallery-slot:hover { transform: translateY(-4px); box-shadow: 0 12px 32px -12px rgba(0,0,0,.18); }
.gallery-slot image-slot {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
/* Deter casual download of gallery photos */
.gallery-slot, .gallery-slot * {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.gallery-slot img {
  pointer-events: none;
  -webkit-user-drag: none;
}
.gallery-slot-meta {
  position: absolute;
  left: 16px; bottom: 16px; right: 16px;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
}
.gallery-slot-meta span {
  background: rgba(255,255,255,.92);
  padding: 4px 10px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
  .gallery-band { padding: 56px 0 0; }
  .gallery-head { padding: 0 20px; }
  .gallery-marquee { padding-bottom: 56px; }
  .gallery-slot { width: 300px; height: 200px; }
}
.logowall-cell {
  background: var(--paper);
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  padding: 16px;
  transition: background .15s;
  position: relative;
}
.logowall-cell:hover { background: var(--bg-warm); }
.logowall-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.1;
}
.logowall-sub {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ===== Empanelments band ===== */
.empanel {
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
  padding: 56px 0;
}
.empanel-grid {
  display: grid;
  grid-template-columns: 1fr repeat(5, auto);
  gap: 0 48px;
  align-items: center;
}
.empanel-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 200px;
  line-height: 1.4;
}
.empanel-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.empanel-name { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.empanel-code { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.05em; }

/* ===== Case study card (big) ===== */
.case {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  margin-bottom: 24px;
}
.case-visual {
  background: var(--ink);
  color: var(--accent-2);
  padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.case-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.case-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  text-transform: uppercase;
  position: relative;
}
.case-client {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  position: relative;
  margin: 16px 0;
  line-height: 1.05;
}
.case-stats { display: flex; gap: 32px; position: relative; }
.case-stat-num { font-family: var(--f-display); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; color: #fff; line-height: 1; }
.case-stat-label { font-family: var(--f-mono); font-size: 10px; color: rgba(255,255,255,.6); letter-spacing: 0.08em; margin-top: 6px; }
.case-body { padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.case-body h3 { font-family: var(--f-display); font-size: 28px; font-weight: 500; margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
.case-body p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.55; }
.case-scope { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.case-scope-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; font-size: 13px; }
.case-scope-label { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; padding-top: 2px; }

/* ===== Sector pillar cards ===== */
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sector-pillar {
  background: var(--paper); border: 1px solid var(--line);
  padding: 36px; display: flex; flex-direction: column; gap: 18px;
  min-height: 380px;
  position: relative;
  transition: border .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.sector-pillar:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sector-pillar-tag {
  display: inline-block;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); padding: 4px 10px; border: 1px solid var(--accent); border-radius: 999px;
  align-self: flex-start;
}
.sector-pillar h3 { font-family: var(--f-display); font-size: 26px; font-weight: 500; margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
.sector-pillar p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; line-height: 1.5; }
.sector-pillar-stat {
  display: flex; align-items: baseline; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.sector-pillar-num { font-family: var(--f-display); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; color: var(--accent); }
.sector-pillar-label { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; line-height: 1.3; flex: 1; }

/* ===== ISO Certificate panel ===== */
.iso-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.iso-seal {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.iso-seal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
}
.iso-seal-text { text-align: center; font-family: var(--f-display); font-weight: 600; line-height: 1; color: var(--accent); }
.iso-seal-text .big { font-size: 22px; }
.iso-seal-text .sm { font-size: 10px; font-family: var(--f-mono); letter-spacing: 0.1em; margin-top: 6px; display: block; }
.iso-details h4 { font-family: var(--f-display); font-size: 24px; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.01em; }
.iso-details p { color: var(--muted); margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.iso-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; padding-top: 12px; border-top: 1px solid var(--line); }
.iso-meta-label { color: var(--muted); text-transform: uppercase; }
.iso-meta-val { color: var(--ink); margin-top: 2px; }

/* responsive */
/* Header — compress nav + brand sub-line at medium widths so everything (logo, nav, phone, CTA) stays visible without wrapping. */
@media (max-width: 1180px) {
  .hdr-inner { padding: 12px 20px; }
  .brand-sub { font-size: 9px; letter-spacing: 0.06em; }
  .brand-text { padding-left: 10px !important; }
}

@media (max-width: 960px) {
  section { padding: 56px 0; }
  .wrap, .wrap-narrow, .hdr-inner { padding-left: 20px; padding-right: 20px; }

  /* Header — compact (true mobile: burger menu) */
  .hdr-inner { padding: 12px 20px; gap: 12px; }
  .brand-mark { height: 32px; }
  .brand-text { padding-left: 10px !important; max-width: 140px; }
  .brand-sub { font-size: 9px !important; letter-spacing: 0.06em; }
  .nav { display: none; }
  .hdr-tel { display: none; }
  .hdr-cta { display: none; }
  .hdr-burger { display: block; }
  .hdr-actions { gap: 0; }

  /* Hero */
  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(38px, 10vw, 64px); line-height: 1; }
  .hero-lede { font-size: 16px; margin: 20px 0 24px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .hero-meta { gap: 12px 20px; padding-top: 16px; margin-top: 24px; }
  .hero-meta-item { font-size: 12px; }
  .quote-card { padding: 24px 20px; }
  .quote-card h3 { font-size: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 8px; }

  /* Section heads */
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(28px, 7vw, 40px) !important; }
  .section-head p { font-size: 14px; }
  .display { font-size: clamp(28px, 7vw, 40px) !important; line-height: 1.05; }

  /* CTA strip */
  .cta-strip { padding: 48px 0; }
  .cta-strip-inner { grid-template-columns: 1fr; gap: 24px; }
  .cta-strip h2 { font-size: clamp(28px, 7vw, 40px); }
  .cta-strip p { font-size: 15px; }
  .cta-strip-actions { width: 100%; }
  .cta-strip-actions .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats { padding: 48px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .stat { border-left: 0; padding: 0 8px; }
  .stat-num { font-size: 44px; }
  .stat-label { font-size: 12px; }

  /* Service / project / industry / cap grids */
  .services-grid, .test-grid, .projects-grid, .team-grid, .certs-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-card { padding: 24px; min-height: 0; }
  .svc-card h3 { font-size: 22px; }
  .caps-grid { grid-template-columns: 1fr 1fr; }
  .cap { padding: 20px 16px; }
  .cap h4 { font-size: 16px; }
  .cap p { font-size: 13px; }
  .ind-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ind { padding: 20px 16px; min-height: 0; }
  .ind h4 { font-size: 17px; }
  .ind p { font-size: 12px; }

  /* Case study cards */
  .case { grid-template-columns: 1fr; }
  .case-visual, .case-body { padding: 28px 20px; }
  .case-visual { min-height: 0; }
  .case-client { font-size: 26px; }
  .case-stats { gap: 20px; flex-wrap: wrap; }
  .case-stat-num { font-size: 24px; }
  .case-body h3 { font-size: 20px; }

  /* Process */
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-grid::before { display: none; }
  .step-dot { width: 48px; height: 48px; font-size: 18px; margin-bottom: 14px; }

  /* Project cards */
  .proj-body { padding: 18px; }
  .proj h4 { font-size: 18px; }
  .proj-specs { gap: 12px; }
  .proj-spec-val { font-size: 13px; }

  /* Testimonials */
  .test { padding: 24px; }
  .test-quote { font-size: 17px; }

  /* FAQ */
  .faq-q { font-size: 17px; padding: 18px 0; gap: 12px; }
  .faq-item.open .faq-a { padding-bottom: 18px; max-height: 600px; }
  .faq-a p { font-size: 14px; }

  /* Footer */
  .ftr { padding: 56px 0 24px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .ftr-bot { flex-direction: column; gap: 12px; text-align: center; padding-top: 20px; }

  /* About page */
  .page-hero { padding: 32px 0 24px; }
  .page-hero h1 { font-size: clamp(42px, 10vw, 64px); }
  .page-hero p { font-size: 15px; }
  .tl-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .tl-year { font-size: 28px; }
  .tl-event h4 { font-size: 18px; }
  .tl-event p { font-size: 14px; }
  .iso-panel { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
  .iso-seal { margin: 0 auto; width: 96px; height: 96px; }
  .iso-meta { grid-template-columns: 1fr; gap: 12px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 24px 20px; }
  .ci-block p, .ci-block a { font-size: 18px; }

  /* Logo wall marquee */
  .logowall-marquee .logowall-cell { width: 180px; }
  .logowall-name { font-size: 14px; }
  .logowall-sub { font-size: 8px; }

  /* Gallery */
  .gallery-slot { width: 260px; height: 180px; }

  /* Modal */
  .modal-inner { padding: 28px 20px; }
  .modal h3 { font-size: 24px; }

  /* WhatsApp float — smaller and out of the way of CTA bar */
  .wa-float { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

@media (max-width: 960px) and (min-width: 700px) {
  /* Tablet — restore 2-column layouts where they read better than 1-col */
  .services-grid, .test-grid, .projects-grid, .team-grid, .certs-grid { grid-template-columns: 1fr 1fr; }
  .caps-grid { grid-template-columns: repeat(3, 1fr); }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .ftr-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .hero h1 { font-size: 56px; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .case { grid-template-columns: 1fr 1fr; }
  .case-visual, .case-body { padding: 36px; }
  .iso-panel { grid-template-columns: auto 1fr; text-align: left; }
  .iso-seal { margin: 0; }
  .iso-meta { grid-template-columns: repeat(3, 1fr); }
  .logowall-marquee .logowall-cell { width: 220px; }
  .gallery-slot { width: 360px; height: 230px; }
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
  /* keep mobile burger menu on tablet — desktop nav needs ~900px to fit cleanly */
}

@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .stat-num { font-size: 36px; }
  .caps-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .case-stats { gap: 12px; }
  .case-stat-num { font-size: 20px; }
  .ftr-cert .cert-badge { font-size: 9px; padding: 3px 8px; }
}

/* Tablet — re-show the full nav at 769-960px (overrides the 960px burger block).
   Brand sub-text and the inline phone are still hidden to make room. */
@media (min-width: 769px) and (max-width: 960px) {
  .nav { display: flex; gap: 0; }
  .nav a { padding: 6px 10px; font-size: 12px; }
  .hdr-cta { display: inline-flex; }
  .hdr-burger { display: none; }
  .brand-text { display: none; }
  .hdr-actions { gap: 8px; }
  .hdr-inner { gap: 12px; padding: 12px 20px; }
}
