/* Elektro Shema design: CSS only, on the shared platform markup (Platform:Theme = "none").
   Visual idea: technical drawings (blueprint grid, schematic lines). Yellow = electrical, orange = construction.
   Hooks from the shared views: block-* classes per block, data-theme (project categories), data-icon (service cards),
   data-reveal / .is-visible (scroll reveal, platform.js). */

:root {
  --ink: #0a1626;
  --ink-2: #102238;
  --ink-3: #1a3150;
  --paper: #f5f7fa;
  --white: #ffffff;
  --line: #e2e7ef;
  --text: #16202e;
  --muted: #5a6677;
  --volt: #ffc400;
  --volt-strong: #f0a800;
  --build: #ff6b2c;
  --build-strong: #e8551a;
  --accent: var(--volt);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(10 22 38 / 6%), 0 12px 32px -12px rgb(10 22 38 / 22%);
  --shadow-lg: 0 30px 60px -20px rgb(10 22 38 / 35%);
  --container: 1200px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

[data-theme="elektro"] { --accent: var(--volt); }
/* Construction: orange (category theme "gradnja" and construction service icons). */
[data-theme="gradnja"], [data-icon="building"], [data-icon="renovate"], [data-icon="hall"] { --accent: var(--build); }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 850; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 750; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons, labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap;
  padding: 0.9rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -10px var(--accent); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn--ghost { border-color: rgb(255 255 255 / 30%); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgb(255 255 255 / 6%); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
/* The dash stays level with the first line when a long eyebrow wraps (phones). */
.eyebrow::before { content: ""; flex: none; align-self: flex-start; width: 26px; height: 2px; margin-top: calc(0.5lh - 1px); background: currentColor; }
:is(.block-services, .block-map, .block-contact, .block-related, .block-stats) .eyebrow { color: color-mix(in srgb, var(--accent) 65%, var(--ink)); }

.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; background: var(--accent); color: var(--ink);
}

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; }
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform 0.15s ease; }
a:hover .link-arrow svg, .link-arrow:hover svg { transform: translateX(4px); }

/* Blueprint background for the dark sections */
.block-hero, .block-process, .page-hero, .site-footer {
  color: var(--white);
  background:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(80rem 40rem at 85% -10%, rgb(255 196 0 / 14%), transparent 60%),
    linear-gradient(160deg, var(--ink-2), var(--ink) 60%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(10 22 38 / 92%); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 8%); color: var(--white);
}
.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--white); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name strong { font-size: 1.15rem; font-weight: 850; letter-spacing: 0.04em; }
.brand__name small { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: rgb(255 255 255 / 60%); margin-top: 0.3rem; }
.brand__name strong, .brand__name small { text-transform: uppercase; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 0.55rem 0.95rem; white-space: nowrap; border-radius: 999px; text-decoration: none; font-weight: 600;
  color: rgb(255 255 255 / 78%); transition: color 0.15s, background 0.15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgb(255 255 255 / 8%); }
.nav a[aria-current="page"] { color: var(--volt); background: rgb(255 196 0 / 10%); }
.site-header .btn { padding: 0.65rem 1.15rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--white); padding: 0.4rem; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.block-services, .block-map, .block-contact, .block-related, .block-stats { background: var(--paper); }
.section--tight { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
/* Two light blocks in a row read as one section. */
.block-contact + .block-map { padding-top: 0; }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__head p { color: var(--muted); font-size: 1.15rem; }
.block-process .section__head p { color: rgb(255 255 255 / 70%); }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; max-width: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--volt); }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgb(255 255 255 / 75%); max-width: 36rem; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__art img { width: 100%; height: auto; }

/* Inner page hero */
.page-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 0.75rem; }
.page-hero p { color: rgb(255 255 255 / 72%); font-size: 1.2rem; max-width: 42rem; margin: 0; }
.page-hero::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 340px; height: 340px; border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); opacity: 0.6;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-family: var(--mono); font-size: 0.8rem; color: rgb(255 255 255 / 55%); }
.breadcrumb a { text-decoration: none; color: rgb(255 255 255 / 75%); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1px; background: rgb(255 255 255 / 10%); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 2rem 1.75rem; background: var(--ink-2); }
.stat__value { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 850; letter-spacing: -0.03em; color: var(--volt); line-height: 1; margin-bottom: 0.5rem; }
.stat__label { color: rgb(255 255 255 / 70%); font-weight: 500; }
/* Numbers right after the hero continue its dark band; elsewhere they sit on a light section. */
.block-stats { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.block-hero + .block-stats { padding: 0 0 clamp(3rem, 6vw, 5rem); color: var(--white); background: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 40px 40px, var(--ink); }
.block-stats .stat { background: var(--white); }
.block-stats .stats { background: var(--line); box-shadow: var(--shadow); }
.block-stats .stat__label { color: var(--muted); }
.block-stats .stat__value { color: var(--ink); }
.block-hero + .block-stats .stats { background: rgb(255 255 255 / 10%); box-shadow: none; }
.block-hero + .block-stats .stat { background: var(--ink-2); }
.block-hero + .block-stats .stat__label { color: rgb(255 255 255 / 70%); }
.block-hero + .block-stats .stat__value { color: var(--volt); }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; padding: 2rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card p { color: var(--muted); margin-bottom: 1.25rem; }
.card .link-arrow { margin-top: auto; color: var(--ink); }
.card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; margin-bottom: 1.4rem;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 70%, var(--ink));
}
.card__icon svg { width: 28px; height: 28px; }
/* Home services: solid squares in the business card's colours. */
[data-icon="electrical"] { --accent: var(--volt); }
[data-icon="solar-panel"] { --accent: #f7931e; }
[data-icon="worker"] { --accent: #e8401c; }
[data-icon="engineer"] { --accent: #0ea5d9; }
.card:is([data-icon="electrical"], [data-icon="solar-panel"], [data-icon="worker"], [data-icon="engineer"]) .card__icon {
  width: 72px; height: 72px; border-radius: 18px; align-self: center;
  background: var(--accent); color: var(--white); box-shadow: 0 8px 18px -8px var(--accent);
}
.card:is([data-icon="electrical"], [data-icon="solar-panel"], [data-icon="worker"], [data-icon="engineer"]) .card__icon svg { width: 44px; height: 44px; stroke-width: 1.6; }
.card[data-icon="electrical"] .card__icon { color: var(--ink); }
.card:is([data-icon="electrical"], [data-icon="solar-panel"], [data-icon="worker"], [data-icon="engineer"]) h3 { text-align: center; }
.card::after { content: ""; position: absolute; left: 2rem; right: 2rem; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
a.card:hover::after { transform: scaleX(1); }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__media .badge { position: absolute; left: 1rem; top: 1rem; }
.project-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.project-card__body h3 { margin-bottom: 0.35rem; }
.project-card__body p { color: var(--muted); font-size: 0.98rem; }
.project-card .link-arrow { margin-top: auto; }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 0.9rem; }
.meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.meta svg { width: 14px; height: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.25rem; }
.filter {
  padding: 0.6rem 1.15rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font: inherit; font-weight: 650; color: var(--muted); display: inline-flex; align-items: center; gap: 0.5rem;
}
.filter .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter__count { font-family: var(--mono); font-size: 0.8rem; opacity: 0.6; }
.project-card[hidden] { display: none; }

.categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 3.5rem; }
.category-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: end; min-height: 260px; padding: 2rem;
  border-radius: var(--radius); color: var(--white); text-decoration: none; isolation: isolate;
}
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.5s ease; }
.category-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 22 38 / 94%) 0%, rgb(10 22 38 / 80%) 45%, rgb(10 22 38 / 25%) 100%), linear-gradient(0deg, rgb(10 22 38 / 60%), transparent 60%); }
.category-tile:hover img { transform: scale(1.05); }
.category-tile h2 { font-size: 1.9rem; margin-bottom: 0.35rem; }
.category-tile p { color: rgb(255 255 255 / 75%); margin-bottom: 1rem; max-width: 30rem; }
.category-tile .link-arrow { color: var(--accent); }

/* Project detail */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: 2.5rem; border-radius: var(--radius-sm); overflow: hidden; background: rgb(255 255 255 / 12%); }
.fact { padding: 1rem 1.25rem; background: rgb(10 22 38 / 55%); backdrop-filter: blur(6px); }
.fact dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(255 255 255 / 55%); }
.fact dd { margin: 0.2rem 0 0; font-weight: 700; }
.project-hero { position: relative; isolation: isolate; color: var(--white); padding: clamp(4rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.project-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.project-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 22 38 / 55%), rgb(10 22 38 / 92%)); }
.project-hero h1 { margin-top: 1rem; }
.project-hero p.lead { font-size: 1.25rem; color: rgb(255 255 255 / 80%); max-width: 46rem; }
.project-body { display: grid; grid-template-columns: 1fr 340px; gap: 3.5rem; align-items: start; }
.aside-card { position: sticky; top: 100px; padding: 2rem; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.aside-card p { color: rgb(255 255 255 / 70%); }
.project-video { display: block; width: 100%; max-height: 80vh; margin-top: 3rem; border-radius: var(--radius-sm); background: #000; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 2; display: block; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.06); }
/* Photo viewer (markup and script shared, see platform.css): full screen, photo fits, prev/next at the sides. */
.lightbox { padding: 0; border: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; color: var(--white); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(5 11 20 / 96%); }
.lightbox img { max-width: min(92vw, 1400px); max-height: calc(100dvh - 7rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox button { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 1; transition: background 0.2s ease; }
.lightbox button:hover { background: var(--volt); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1.25rem; }
.lightbox__prev svg { transform: rotate(180deg); }
.lightbox__next { right: 1.25rem; }
.lightbox__count { position: fixed; bottom: 1.25rem; left: 0; right: 0; margin: 0; text-align: center; font: 600 0.85rem var(--mono); letter-spacing: 0.08em; opacity: 0.75; }
.lightbox--single :is(.lightbox__prev, .lightbox__next, .lightbox__count) { display: none; }
.lightbox.is-loading img { visibility: hidden; }
.lightbox.is-loading::after { content: ""; position: fixed; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px; border: 3px solid rgb(255 255 255 / 20%); border-top-color: var(--volt); border-radius: 50%; animation: es-spin 0.8s linear infinite; }
@keyframes es-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 0.5rem; transform: none; } }

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.2rem; }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--volt) 0 12px, transparent 12px 20px); opacity: 0.6; }
.step { position: relative; counter-increment: step; }
.step__node {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1.4rem;
  background: var(--ink); border: 2px solid var(--volt); font-family: var(--mono); font-weight: 700; color: var(--volt);
}
.step__node::before { content: counter(step, decimal-leading-zero); }
.step p { color: rgb(255 255 255 / 68%); }

/* ---------- Text + image ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split__media::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 2px solid var(--accent); border-radius: var(--radius); z-index: -1; }
.split .prose { color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  padding: clamp(2.25rem, 5vw, 3.5rem); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(115deg, var(--volt), #ffd84d 55%, var(--build) 140%); color: var(--ink);
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgb(10 22 38 / 7%) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgb(10 22 38 / 7%) 1px, transparent 1px) 0 0 / 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.cta h2 { margin-bottom: 0.35rem; }
.cta p { margin: 0; font-size: 1.1rem; opacity: 0.85; }
.cta .btn { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { display: grid; gap: 1rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-item { display: flex; gap: 1rem; align-items: start; padding: 1.25rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.contact-item svg { width: 22px; height: 22px; flex: none; margin-top: 0.15rem; color: var(--volt-strong); }
.contact-item strong { display: block; font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-item a { text-decoration: none; font-weight: 650; }
.contact-item span { white-space: pre-line; }

.form-card { padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--paper);
  font: inherit; color: inherit; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgb(255 196 0 / 30%); }
.field .input-validation-error { border-color: #d93a2b; }
.field__error { color: #c8321f; font-size: 0.88rem; font-weight: 600; }
.field__error:empty { display: none; }
.check { grid-column: 1 / -1; display: flex; gap: 0.7rem; align-items: start; font-size: 0.92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--ink); flex: none; }
.form__footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form__note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; }
.form__error ul { margin: 0; padding: 0.9rem 1rem; list-style: none; border-radius: var(--radius-sm); background: #fdecea; color: #b42318; font-weight: 600; }
.form__error.validation-summary-valid { display: none; }
.form__note a { color: inherit; }
.grecaptcha-badge { visibility: hidden; } /* Allowed by Google when the notice is shown next to the form. */
.alert { display: flex; gap: 1rem; align-items: start; padding: 1.5rem; border-radius: var(--radius-sm); background: #e9f8ef; border: 1px solid #b6e6c8; color: #14532d; font-weight: 600; }
.alert svg { width: 26px; height: 26px; flex: none; }

/* ---------- Map ---------- */
.map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 440px; background: var(--ink-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); }
.map__card {
  position: absolute; left: 1.5rem; bottom: 1.5rem; z-index: 1; max-width: 340px; padding: 1.5rem; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--white); box-shadow: var(--shadow-lg);
}
.map__card p { white-space: pre-line; color: rgb(255 255 255 / 78%); margin-bottom: 1rem; }
.map__card .link-arrow { color: var(--volt); }

/* ---------- Footer ---------- */
.site-footer { padding: 5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer-grid h3 { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(255 255 255 / 50%); font-weight: 600; margin-bottom: 1.2rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-grid a { text-decoration: none; color: rgb(255 255 255 / 80%); }
.footer-grid a:hover { color: var(--volt); }
.footer-about p { color: rgb(255 255 255 / 65%); margin-top: 1.25rem; max-width: 22rem; }
.footer-contact li { display: flex; gap: 0.7rem; color: rgb(255 255 255 / 80%); white-space: pre-line; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 0.3rem; color: var(--volt); }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; padding: 1.5rem 0;
  border-top: 1px solid rgb(255 255 255 / 10%); font-family: var(--mono); font-size: 0.78rem; color: rgb(255 255 255 / 50%);
}
.footer-legal dl { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; }
.footer-legal dt { display: inline; }
.footer-legal dd { display: inline; margin: 0 0 0 0.35rem; color: rgb(255 255 255 / 70%); }

/* ---------- Reveal on scroll ---------- */
html:not(.no-js) [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html:not(.no-js) [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html:not(.no-js) [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
/* Six or more menu items: tighter header before the menu folds into the toggle at 860px. */
@media (max-width: 1200px) {
  .site-header__inner { gap: 1rem; }
  .nav a { padding: 0.5rem 0.6rem; }
}
@media (max-width: 1100px) {
  .header-button { display: none; }
}
@media (max-width: 1024px) {
  .cards, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-body { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-header .btn { display: none; }
  .nav { position: fixed; inset: 76px 0 auto; background: var(--ink); padding: 1rem 1.5rem 2rem; border-bottom: 1px solid rgb(255 255 255 / 10%); transform: translateY(-120%); transition: transform 0.25s ease; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 0.9rem 1rem; font-size: 1.1rem; }
  .nav-open .nav { transform: none; }
  .hero__grid, .split, .contact { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; }
  .split--reverse .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .categories { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .section__head--row { flex-direction: column; align-items: start; }
}

@media (max-width: 600px) {
  .cards, .cards--4, .project-grid, .gallery, .steps, .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .map { min-height: 520px; }
  .map__card { left: 1rem; right: 1rem; max-width: none; }
}

/* Team block (shared Platform.Plugins.Blocks) */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.75rem; }
.member { display: flex; flex-direction: column; }
.member__photo { display: grid; place-items: center; aspect-ratio: 4 / 5; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--ink-2), var(--ink) 70%); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__initials { font-size: 2.6rem; font-weight: 800; color: var(--accent); }
.member h3 { margin: 0 0 0.2rem; }
.member__role { margin: 0 0 0.6rem; font-weight: 700; color: color-mix(in srgb, var(--accent) 65%, var(--ink)); }
.member p { margin: 0 0 0.75rem; color: var(--muted); }
.member__contact { list-style: none; margin: auto 0 0; padding: 0; font-size: 0.95rem; }
.member__contact a { color: var(--ink); }
.block-gallery .gallery { margin-top: 0; }

/* Questions, testimonials, logos, video and downloads (shared Platform.Plugins.Blocks) */
.container--narrow { max-width: 860px; }
.faq { display: grid; gap: 0.75rem; }
.faq__item { border-radius: var(--radius-sm); background: var(--white); box-shadow: 0 1px 0 rgb(10 22 38 / 8%), 0 8px 24px -16px rgb(10 22 38 / 35%); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 22px; height: 22px; color: color-mix(in srgb, var(--accent) 65%, var(--ink)); transition: transform 0.2s ease; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item .prose { padding: 0 1.4rem 1.2rem; color: var(--muted); }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.testimonial { display: flex; flex-direction: column; margin: 0; padding: 1.75rem; border-radius: var(--radius); color: var(--white); background: linear-gradient(160deg, var(--ink-2), var(--ink) 70%); }
.testimonial__mark { width: 32px; height: 32px; color: var(--accent); margin-bottom: 0.75rem; }
.testimonial blockquote { margin: 0 0 1.5rem; font-size: 1.05rem; }
.testimonial figcaption { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.testimonial figcaption small { display: block; opacity: 0.7; }
.testimonial__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem 3rem; list-style: none; margin: 0; padding: 0; }
.logos img { height: 56px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s ease, opacity 0.2s ease; }
.logos li:hover img { filter: none; opacity: 1; }
.video__text { color: var(--muted); font-size: 1.1rem; margin: -0.5rem 0 1.5rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video__play, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { display: grid; place-items: center; }
.video__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__icon { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--ink); transition: transform 0.2s ease; }
.video__icon svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.video__play:hover .video__icon { transform: scale(1.08); }
.video__note { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--muted); }
.downloads { display: grid; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.download { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--white); color: inherit; text-decoration: none; box-shadow: 0 1px 0 rgb(10 22 38 / 8%), 0 8px 24px -16px rgb(10 22 38 / 35%); }
.download:hover { box-shadow: 0 0 0 2px var(--accent); }
.download__icon, .download__action { flex: none; width: 24px; height: 24px; color: color-mix(in srgb, var(--accent) 65%, var(--ink)); }
.download__name { flex: 1; font-weight: 700; }
.download__name small { display: block; font-weight: 400; color: var(--muted); }

/* Newsletter signup (shared Platform.Plugins.Newsletter) */
.block-newsletter { background: linear-gradient(160deg, var(--ink-2), var(--ink) 70%); color: var(--white); }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; align-items: center; }
.newsletter h2 { margin-bottom: 0.4rem; color: var(--white); }
.newsletter p, .block-newsletter .check { color: color-mix(in srgb, var(--white) 75%, transparent); margin: 0; }
.newsletter__form { display: grid; gap: 0.6rem; }
.newsletter__row { display: flex; gap: 0.5rem; }
.newsletter__row input { flex: 1; min-width: 0; padding: 0.8rem 1rem; border-radius: var(--radius-sm); border: 0; font: inherit; }
.newsletter__hp { position: absolute; left: -9999px; }
.newsletter__note { font-size: 0.8rem; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .newsletter__row { flex-direction: column; } }

/* Language switcher (shared layout, multilingual sites) */
.lang-switch { display: flex; gap: 0.15rem; margin-left: auto; }
.lang-switch a { padding: 0.35rem 0.55rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; text-decoration: none; color: inherit; opacity: 0.7; }
.lang-switch a:hover, .lang-switch a[aria-current="true"] { opacity: 1; color: var(--accent); }
.lang-switch + .header-button { margin-left: 0.75rem; }

/* News (shared Platform.Plugins.News) */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.news-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 1px 0 rgb(10 22 38 / 8%), 0 8px 24px -16px rgb(10 22 38 / 35%); color: inherit; text-decoration: none; transition: transform 0.2s ease; }
.news-card:hover { transform: translateY(-4px); }
.news-card__media { display: block; aspect-ratio: 3 / 2; background: var(--ink); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem; }
.news-card time { font-size: 0.85rem; color: var(--muted); }
.news-card h3 { margin: 0.4rem 0 0.5rem; }
.news-card p { color: var(--muted); margin: 0 0 1rem; }
.news-card .link-arrow { margin-top: auto; }
.news-article__cover { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; }
.news-article__cover img { width: 100%; height: auto; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 2rem 0; padding: 0; }
.tags li { padding: 0.3rem 0.75rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, var(--white)); font-size: 0.85rem; font-weight: 600; }
.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; }
.pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--white); color: inherit; text-decoration: none; font-weight: 700; }
.pagination a[aria-current="page"] { background: var(--accent); color: var(--ink); }

/* Pricing plans and price list (shared Platform.Plugins.Blocks) */
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--outline:hover { border-color: var(--ink); }
.section__note { margin: 1.25rem 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 2rem 1.75rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.plan--highlight { color: var(--white); background: linear-gradient(160deg, var(--ink-2), var(--ink) 70%); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -0.8rem; left: 1.75rem; padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 0.78rem; font-weight: 800; }
.plan__price { margin: 0 0 0.75rem; color: var(--muted); }
.plan--highlight .plan__price, .plan--highlight .plan__text { color: rgb(255 255 255 / 70%); }
.plan__price strong { font-size: 2.2rem; line-height: 1; color: inherit; letter-spacing: -0.02em; }
.plan--highlight .plan__price strong { color: var(--white); }
.plan:not(.plan--highlight) .plan__price strong { color: var(--ink); }
.plan__text { color: var(--muted); }
.plan__features { display: grid; gap: 0.5rem; list-style: none; margin: 0 0 1.75rem; padding: 0; }
.plan__features li { display: flex; gap: 0.5rem; align-items: start; }
.plan__features svg { flex: none; width: 18px; height: 18px; margin-top: 0.25rem; color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.plan--highlight .plan__features svg { color: var(--accent); }
.plan .btn { margin-top: auto; justify-content: center; }
.price-list { margin: 0; }
.price-list__row { display: flex; align-items: baseline; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px dashed var(--line); }
.price-list dt { flex: 1; font-weight: 700; }
.price-list dt small { display: block; font-weight: 400; color: var(--muted); }
.price-list dd { margin: 0; font-weight: 800; white-space: nowrap; font-family: var(--mono); }

/* Events and jobs (shared Platform.Plugins.Events / Jobs) */
.events { display: grid; gap: 0.9rem; }
.events--past { opacity: 0.75; }
.events__past-title { margin-top: 3rem; font-size: 1.4rem; }
.event-card { display: flex; gap: 1.25rem; align-items: start; padding: 1.25rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform 0.2s ease; }
.event-card:hover, .job-row:hover { transform: translateY(-3px); }
.event-card__date { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: var(--radius-sm); background: var(--ink); color: var(--accent); line-height: 1.05; text-align: center; }
.event-card__date strong { font-size: 1.6rem; color: var(--white); }
.event-card__date span { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }
.event-card h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.event-card__meta { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.4rem; }
.event-card p { margin: 0; color: var(--muted); }
.event__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.event__facts dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); }
.event__facts dd { margin: 0.2rem 0 0; font-weight: 700; }
.event__address { display: block; font-weight: 400; white-space: pre-line; color: var(--muted); }
.event__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 2rem; }
.jobs { display: grid; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.job-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: center; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform 0.2s ease; }
.job-row__title strong { display: block; font-size: 1.15rem; }
.job-row__title small { display: block; color: var(--muted); font-size: 0.95rem; }
.job-row__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.88rem; color: var(--muted); }
.job-row__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.job-row__meta svg { width: 15px; height: 15px; }
.job-row__arrow { grid-column: 2; grid-row: 1 / span 2; width: 24px; height: 24px; color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }

/* Search (shared Platform.Plugins.Search) */
.header-search { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: inherit; }
.header-search + .lang-switch { margin-left: 0.25rem; }
.header-search:hover { color: var(--accent); }
.header-search svg { width: 20px; height: 20px; }
.search-form { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.search-form input { flex: 1; min-width: 0; padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); font: inherit; background: var(--white); color: var(--text); }
.search-count { color: var(--muted); }
.search-results { display: grid; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.search-results a { display: grid; gap: 0.2rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform 0.2s ease; }
.search-results a:hover { transform: translateY(-2px); }
.search-results small { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); }
.search-results strong { font-size: 1.15rem; }
.search-results span { color: var(--muted); }

/* 404 page: a big outlined "404" on the blueprint grid, centred, with the main sections as cards. */
.not-found { text-align: center; background: linear-gradient(rgb(10 22 38 / 4%) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgb(10 22 38 / 4%) 1px, transparent 1px) 0 0 / 28px 28px, var(--paper); }
.not-found__code { margin: 0 0 0.5rem; font-family: var(--mono); font-size: clamp(5.5rem, 20vw, 10rem); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--volt-strong); }
.not-found .lead { max-width: 46ch; margin: 0 auto; color: var(--muted); }
.not-found .search-form { max-width: 520px; margin: 2rem auto 0; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.not-found .btn--ghost { border-color: var(--line); color: var(--text); }
.not-found .btn--ghost:hover { border-color: var(--ink); background: transparent; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.not-found__links a { padding: 0.7rem 1.1rem; border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow); color: var(--text); }
.not-found__links a:hover { color: var(--ink); box-shadow: inset 0 -3px 0 var(--volt), var(--shadow); }
