/* Layout: one 1200px column, division colour tabs as the recurring device (mirrors IEC's stacked banner). */
:root {
  --ink: #1d2023;
  --ink-soft: #46433d;
  --ink-mute: #66625a;
  --ground: #f6f5f0;
  --surface: #ffffff;
  --surface-2: #eceae2;
  --line: #dfdbd0;
  --night: #1d2023;
  --night-2: #2a2e32;
  --on-night: #f6f5f0;
  --on-night-soft: #cfccc2;
  --amber: #e39a0e;
  --amber-ink: #8a5a00;
  --on-amber: #1d2023;
  --c-energy: #1a78b6;
  --c-agri: #2b7a3a;
  --c-finance: #24467e;
  --c-care: #0f7472;
  --focus: #1a78b6;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eeece6; --ink-soft: #cdc9bf; --ink-mute: #a6a297;
    --ground: #15181a; --surface: #1f2326; --surface-2: #262a2e; --line: #363b40;
    --night: #0e1012; --night-2: #23272b; --on-night: #f6f5f0; --on-night-soft: #c3c0b6;
    --amber: #f0aa2a; --amber-ink: #f2b544; --on-amber: #1d2023;
    --c-energy: #4fa3dc; --c-agri: #5fae6b; --c-finance: #7f9fd6; --c-care: #4cb3ad;
    --focus: #6fb6e8; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eeece6; --ink-soft: #cdc9bf; --ink-mute: #a6a297;
  --ground: #15181a; --surface: #1f2326; --surface-2: #262a2e; --line: #363b40;
  --night: #0e1012; --night-2: #23272b; --on-night: #f6f5f0; --on-night-soft: #c3c0b6;
  --amber: #f0aa2a; --amber-ink: #f2b544; --on-amber: #1d2023;
  --c-energy: #4fa3dc; --c-agri: #5fae6b; --c-finance: #7f9fd6; --c-care: #4cb3ad;
  --focus: #6fb6e8; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-ink); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-mute); }
.section { padding-block: 72px; }
.section.tight { padding-block: 48px; }
.section.alt { background: var(--surface-2); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--on-amber); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-family: var(--body); font-size: 1rem; cursor: pointer; }
.btn-amber { background: var(--amber); color: var(--on-amber); }
.btn-amber:hover { filter: brightness(0.95); }
.btn-dark { background: var(--night); color: var(--on-night); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header */
.topbar { background: var(--night); color: var(--on-night-soft); font-size: 0.88rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 8px; }
.topbar a { color: var(--on-night); text-decoration: none; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: inline-flex; align-items: stretch; border-radius: 6px; overflow: hidden; text-decoration: none; font-family: var(--display); flex-shrink: 0; }
.logo .sf { background: #1d2023; color: #f6f5f0; font-weight: 800; font-size: 1.2rem; padding: 6px 10px; letter-spacing: 0.04em; }
.logo .name { background: #e39a0e; color: #1d2023; font-weight: 700; font-size: 1.05rem; padding: 8px 12px; white-space: nowrap; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 500; border-radius: 6px; }
.nav-list a:hover { background: var(--surface-2); }
.nav-list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }
.nav-cta { margin-left: 8px; }
.menu { display: none; }
@media (max-width: 1020px) {
  .site-header nav.desktop { display: none; }
  .menu { display: block; }
  .menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 20px 20px; gap: 2px; }
  .menu-panel a { padding: 12px 4px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
  .menu-panel .btn { margin-top: 12px; border-bottom: none; }
}

/* Hero: night field with a solar-panel grid and the division banner */
.hero { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.16; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, #7c8a96 46px 48px),
    repeating-linear-gradient(0deg, transparent 0 70px, #7c8a96 70px 72px);
  transform: perspective(700px) rotateX(55deg) scale(1.6) translateY(22%);
  transform-origin: bottom center;
}
.hero .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 72px 80px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-copy .eyebrow { color: #f2b544; }
.hero-copy .lead { color: var(--on-night-soft); }
.hero .btn-ghost { color: var(--on-night); }
.banner { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.badge { display: flex; align-items: stretch; border-radius: 6px; overflow: hidden; font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 700; text-decoration: none; color: #f6f5f0; }
.badge .sf { background: #2a2e32; padding: 8px 14px; font-weight: 800; }
.badge .div { flex: 1; padding: 8px 18px; }
.badge:hover .div { filter: brightness(1.08); }
.bg-battery { background: #e39a0e; color: #1d2023; }
.bg-energy { background: #1a78b6; }
.bg-agri { background: #2b7a3a; }
.bg-finance { background: #24467e; }
.bg-care { background: #0f7472; }

.page-hero { background: var(--night); color: var(--on-night); }
.page-hero .wrap { padding-block: 56px 60px; display: flex; flex-direction: column; gap: 16px; }
.page-hero .lead { color: var(--on-night-soft); }
.page-hero .tag { align-self: flex-start; }

/* Facts strip */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; padding-block: 24px; }
.fact b { display: block; font-family: var(--display); font-size: 1.5rem; }
.fact span { color: var(--ink-mute); font-size: 0.95rem; }

/* Division cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 420px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card .tab { height: 8px; }
.card .body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.card .more { margin-top: auto; font-weight: 600; }
.tab-battery { background: #e39a0e; } .tab-energy { background: var(--c-energy); } .tab-agri { background: var(--c-agri); } .tab-finance { background: var(--c-finance); } .tab-care { background: var(--c-care); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tag-uk { background: color-mix(in srgb, var(--c-energy) 18%, transparent); color: var(--ink); }
.tag-af { background: color-mix(in srgb, var(--c-agri) 20%, transparent); color: var(--ink); }
.tag-both { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--ink); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }

.promise { background: var(--night); color: var(--on-night); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.promise p.big { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1.15; }
.promise .eyebrow { color: #f2b544; }
.promise p { color: var(--on-night-soft); }

/* Sector tiles */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile:hover { border-color: var(--ink-mute); }
.tile b { font-family: var(--display); font-size: 1.15rem; }
.tile span { color: var(--ink-mute); font-size: 0.95rem; }

/* Packages */
.pkg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.pkg.feature { border: 2px solid var(--amber); }
.pkg .spec { font-variant-numeric: tabular-nums; }
.pkg .price { font-family: var(--display); font-size: 1.35rem; font-weight: 700; margin-top: auto; padding-top: 8px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; counter-reset: step; }
.steps li { border-top: 3px solid var(--ink); padding-top: 14px; counter-increment: step; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: "Step " counter(step); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.steps li:last-child { border-top-color: var(--amber); }
.steps b { font-family: var(--display); font-size: 1.15rem; }

/* Product rows on division pages */
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } }
.product dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.97rem; }
.product dt { color: var(--ink-mute); }
.product dd { margin: 0; }
.products { display: flex; flex-direction: column; gap: 20px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Projects */
.project .ph { aspect-ratio: 16 / 9; max-width: 100%; background: repeating-linear-gradient(135deg, var(--surface-2) 0 12px, var(--surface) 12px 24px); display: flex; align-items: center; justify-content: center; color: var(--ink-mute); font-size: 0.92rem; text-align: center; padding: 12px; }

/* Forms */
form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label { font-weight: 500; font-size: 0.95rem; }
input, select, textarea { font: inherit; padding: 12px; border: 1px solid var(--ink-mute); border-radius: 6px; background: var(--surface); color: var(--ink); min-height: 48px; width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.notice { border-left: 4px solid var(--amber); background: color-mix(in srgb, var(--amber) 10%, var(--surface)); padding: 16px 18px; border-radius: 6px; }
.result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.result b { display: block; font-family: var(--display); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy-line code { font-family: var(--body); font-weight: 600; user-select: all; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 0.9rem; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding-block: 16px; font-size: 1.05rem; }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); max-width: 70ch; }
.faq { display: flex; flex-direction: column; gap: 12px; }

/* CTA band + footer */
.cta-band { background: var(--amber); color: var(--on-amber); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-block: 40px; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band .btn-dark { background: #1d2023; color: #f6f5f0; }
.site-footer { background: var(--night); color: var(--on-night-soft); font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-block: 52px 36px; }
.site-footer h4 { color: var(--on-night); font-size: 1rem; margin-bottom: 10px; font-family: var(--body); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--on-night-soft); text-decoration: none; }
.site-footer a:hover { color: var(--on-night); text-decoration: underline; }
.legal { border-top: 1px solid #3a3f44; }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px; font-size: 0.85rem; }
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > * { flex: 1 1 380px; min-width: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
