/* Layout concept: a wiring run. Left-aligned copy, a four-pair cable stripe (T568B pair colours) as the only ornament,
   service items labelled like cable markers. Brand indigo from the DCI logo, copper as the single accent. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --paper: #f3f4f9;
  --card: #ffffff;
  --ink: #17153d;
  --muted: #555377;
  --line: #d9d9ea;
  --brand: #312c86;
  --brand-ink: #ffffff;
  --copper: #b45a22;
  --pair-or: #e07b24;
  --pair-gr: #2f9a57;
  --pair-bl: #2e6bd0;
  --pair-br: #7b4b2b;
  --logo-b: #312c86;
  --logo-w: #ffffff;
  --plate: #ffffff;
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 72rem;
  --r: 4px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0e24; --card: #18173a; --ink: #ecebfa; --muted: #a9a7cc; --line: #2d2b58;
    --brand: #b9b3ff; --brand-ink: #0f0e24; --copper: #e69458;
    --logo-b: #c9c5ff; --logo-w: #0f0e24; --plate: #f3f4f9; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f0e24; --card: #18173a; --ink: #ecebfa; --muted: #a9a7cc; --line: #2d2b58;
  --brand: #b9b3ff; --brand-ink: #0f0e24; --copper: #e69458;
  --logo-b: #c9c5ff; --logo-w: #0f0e24; --plate: #f3f4f9; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 780; font-stretch: 108%; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 720; font-stretch: 104%; }
h3 { font-size: 1.28rem; font-weight: 700; font-stretch: 100%; }
p { margin: 0; }
.small { font-size: 0.875rem; color: var(--muted); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--f-display); font-stretch: 78%; font-weight: 650; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; color: var(--copper); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--card); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--card); }
.head-in { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.7rem; }
.brand { display: block; flex: none; }
.logo { width: 116px; height: auto; display: block; }
.logo .lg-b { fill: var(--logo-b); fill-rule: evenodd; }
.logo .lg-w { fill: var(--logo-w); fill-rule: evenodd; }
.head-in { position: relative; }
.menu { order: 1; margin-left: auto; }
.head-call { order: 2; }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-btn { display: none; order: 3; cursor: pointer; width: 44px; height: 44px; padding: 13px 11px; border: 1px solid var(--line); border-radius: var(--r); flex: none; }
.nav-btn span { display: block; height: 2px; background: var(--ink); margin-bottom: 6px; }
.nav-btn span:last-child { margin-bottom: 0; }
.nav-toggle:focus-visible + .nav-btn { outline: 3px solid var(--copper); outline-offset: 2px; }
.menu ul { display: flex; gap: 0.25rem 1.4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.menu a { font-family: var(--f-display); font-stretch: 92%; font-weight: 600; font-size: 0.98rem; text-decoration: none; color: var(--ink); padding: 0.4rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--brand); }
.menu a[aria-current="page"] { border-bottom-color: var(--copper); }
.head-call { flex: none; font-family: var(--f-display); font-weight: 700; font-stretch: 95%; text-decoration: none; color: var(--brand-ink); background: var(--brand); padding: 0.55rem 0.9rem; border-radius: var(--r); font-variant-numeric: tabular-nums; }
.head-call:hover { color: var(--brand-ink); filter: brightness(1.12); }
.pairs { display: grid; grid-template-columns: repeat(4, 1fr); height: 4px; }
.pairs i:nth-child(1) { background: var(--pair-or); }
.pairs i:nth-child(2) { background: var(--pair-gr); }
.pairs i:nth-child(3) { background: var(--pair-bl); }
.pairs i:nth-child(4) { background: var(--pair-br); }

@media (max-width: 960px) {
  .head-in { gap: 0.75rem; }
  .nav-btn { display: block; }
  .head-call { margin-left: auto; font-size: 0.92rem; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 14px 24px rgba(10, 8, 40, 0.16); display: none; z-index: 30; }
  .nav-toggle:checked ~ .menu { display: block; }
  .menu ul { flex-direction: column; gap: 0; padding: 0.5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  .menu a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) { .logo { width: 92px; } .head-call { padding: 0.5rem 0.65rem; font-size: 0.85rem; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-block: 1rem 0; font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.2rem; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.hero-fig { margin: 0; position: relative; min-width: 0; }
.hero-fig img { border-radius: var(--r); aspect-ratio: 4 / 3.3; object-fit: cover; width: 100%; }
.hero-fig::before { content: ""; position: absolute; left: -14px; top: 18px; bottom: 18px; width: 6px;
  background: linear-gradient(var(--pair-or) 0 25%, var(--pair-gr) 25% 50%, var(--pair-bl) 50% 75%, var(--pair-br) 75%); border-radius: 3px; }
.hero-fig figcaption { margin-top: 0.7rem; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero-fig::before { display: none; } }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0.7rem 1.2rem; font-family: var(--f-display); font-weight: 700; font-stretch: 96%; text-decoration: none; border-radius: var(--r); border: 2px solid var(--brand); font-variant-numeric: tabular-nums; }
.btn-solid { background: var(--brand); color: var(--brand-ink); }
.btn-solid:hover { color: var(--brand-ink); background: var(--copper); border-color: var(--copper); }
.btn-line { color: var(--brand); background: transparent; }
.btn-line:hover { color: var(--copper); border-color: var(--copper); }

/* blocks */
.block { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.block-alt { background: var(--card); border-block: 1px solid var(--line); }
.sec-h { margin-bottom: 1.6rem; }
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.page-head .wrap { display: grid; gap: 0.9rem; }
.page-head .ticks { margin-top: 0.5rem; }

.tag { display: inline-block; font-family: var(--f-display); font-stretch: 75%; font-weight: 650; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--copper); padding: 0.18rem 0.5rem; border-radius: 2px; }
.block-alt .tag, .pillar .tag, .svc .tag { background: var(--paper); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.ticks li { position: relative; padding-left: 1.2rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.6rem; height: 2px; background: var(--copper); }
.more { font-family: var(--f-display); font-weight: 700; font-stretch: 95%; color: var(--brand); text-decoration: none; }
.more::after { content: " →"; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); }
.pillar img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.pillar > div { display: grid; gap: 0.7rem; padding: 1.2rem 1.25rem 1.4rem; align-content: start; }
.pillar .more { margin-top: 0.3rem; }
.pillar:hover { border-color: var(--brand); color: var(--ink); }
.pillar:hover .more { color: var(--copper); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .pillar { grid-template-columns: 0.9fr 1.1fr; grid-template-rows: auto; } .pillar img { height: 100%; aspect-ratio: auto; } }
@media (max-width: 560px) { .pillar { grid-template-columns: 1fr; } .pillar img { aspect-ratio: 16 / 9; height: auto; } }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split > div { display: grid; gap: 1rem; max-width: 38em; min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--f-display); font-stretch: 78%; font-weight: 650; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; color: var(--muted); padding-top: 0.15rem; }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 420px) { .facts > div { grid-template-columns: 1fr; gap: 0.15rem; } }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 1.5rem; }
.svc { display: grid; grid-template-rows: auto 1fr; gap: 1rem; min-width: 0; }
.svc-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.svc-body { display: grid; gap: 0.6rem; align-content: start; }
.svc-body p { color: var(--muted); }
.svc-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 2rem; }
.svc-grid-2 .svc { grid-template-columns: 0.8fr 1fr; grid-template-rows: auto; align-items: start; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } .svc-grid-2 .svc { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.prose { display: grid; gap: 1.1rem; max-width: 42em; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.person { display: grid; grid-template-rows: auto 1fr; gap: 1rem; min-width: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--r); }
.person .role { color: var(--copper); font-weight: 600; margin: 0.2rem 0 0.8rem; }
@media (max-width: 860px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team { grid-template-columns: 1fr; } }
.kv { margin: 0; display: grid; gap: 0.6rem; }
.kv > div { display: grid; gap: 0.1rem; }
.kv dt { font-family: var(--f-display); font-stretch: 78%; font-weight: 650; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.76rem; color: var(--muted); }
.kv dd { margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.contact-card, .contact-help { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.2rem; min-width: 0; }
.contact-card { border-top: 4px solid var(--brand); }
.contact-card .kv dd { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.partners { padding-block: 2.5rem; }
.partners .label { color: var(--muted); margin-bottom: 1.2rem; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.logos li { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; padding: 0.9rem; min-height: 88px; }
.logos img { max-height: 46px; max-width: 100%; width: auto; filter: grayscale(1); opacity: 0.95; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }

.cta { background: var(--brand); color: var(--brand-ink); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2rem, 5vw, 3rem); }
.cta-in > div:first-child { display: grid; gap: 0.5rem; max-width: 34em; min-width: 0; }
.cta h2 { color: var(--brand-ink); }
.cta p { opacity: 0.88; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta .btn-solid { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
.cta .btn-solid:hover { background: var(--copper); border-color: var(--copper); color: #fff; }
.cta .btn-line { color: var(--brand-ink); border-color: var(--brand-ink); }
.cta .btn-line:hover { color: var(--brand-ink); border-color: var(--copper); background: var(--copper); }
.cta .btn { overflow-wrap: anywhere; }

.site-foot { background: var(--card); border-top: 1px solid var(--line); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.foot-name { font-family: var(--f-display); font-weight: 750; font-stretch: 100%; font-size: 1.1rem; margin-bottom: 0.5rem; }
address { font-style: normal; line-height: 1.7; font-variant-numeric: tabular-nums; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--copper); }
.foot-note { align-self: end; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .cta, .partners { display: none; } }
