/* Prisma – fire-fighting water pump systems, Plovdiv.
   "Pump room on standby": the steel blue of the original's page and of the logo plate, the logo's fire red,
   the water of the pipes. Days One (display) + IBM Plex Sans (text). One light theme with dark steel bands. */

@font-face {
    font-family: "Days One";
    src: url("/fonts/days-one.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/fonts/ibm-plex-sans.woff2") format("woff2");
    font-weight: 100 700;
    font-display: swap;
}

:root {
    --night: #142231;       /* the original's page ground #2f445d, taken down */
    --steel-deep: #1d3043;
    --steel: #2f445d;       /* the original's page ground */
    --plate: #486a7d;       /* the logo plate */
    --mist: #a9bccb;
    --paper: #eef2f5;
    --sheet: #ffffff;
    --line: #d5dee5;
    --ink: #142231;
    --muted: #4a5b6b;
    --red: #f20811;         /* the logo red */
    --red-ink: #c00a13;     /* red as text or button ground on light */
    --red-deep: #8f0710;
    --water: #59c3e8;
    --display: "Days One", "Arial Black", system-ui, sans-serif;
    --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --r: 18px;
    --wrap: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--text);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-ink); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }

:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); }
h3, .h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--night); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---- header ---- */
.top {
    position: sticky; top: 0; z-index: 50;
    background: rgb(255 255 255 / .9);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.top-row {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
    min-height: 68px; padding-block: 10px;
}
.brand { display: block; flex: 0 1 auto; margin-right: auto; }
.brand img { width: clamp(150px, 26vw, 228px); }

.call {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red-ink); color: #fff; text-decoration: none; font-weight: 600;
    padding: 9px 14px; border-radius: 999px; white-space: nowrap; font-size: .98rem;
}
.call:hover { background: var(--red-deep); color: #fff; }

.lang { display: flex; gap: 2px; font-weight: 600; font-size: .9rem; }
.lang a, .lang span { padding: 6px 8px; border-radius: 8px; text-decoration: none; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); background: var(--paper); }
.lang span { color: var(--ink); background: var(--paper); }

.menu-toggle {
    display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--sheet); cursor: pointer; padding: 0; place-items: center;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: "";
}
.menu-toggle .bars::before { position: absolute; top: -6px; }
.menu-toggle .bars::after { position: absolute; top: 6px; }

.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; width: 100%; }
.nav a {
    color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 10px; border-radius: 10px; font-size: .98rem;
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current] { color: var(--red-ink); background: #fbe9ea; }

@media (min-width: 1200px) {
    .top-row { flex-wrap: nowrap; }
    .nav { width: auto; order: 1; margin-left: 6px; }
    .brand { margin-right: 0; }
    .call { order: 3; margin-left: auto; }
    .lang { order: 4; }
}

/* small screens with the script: the menu folds */
@media (max-width: 1199px) {
    .js .menu-toggle { display: grid; }
    .js .nav { display: none; padding-bottom: 8px; }
    .js .nav.open { display: flex; flex-direction: column; }
    .js .nav.open a { padding: 10px 12px; font-size: 1.05rem; }
}
@media (max-width: 420px) {
    .call { padding: 8px 11px; font-size: .92rem; }
    .lang a, .lang span { padding: 6px 5px; }
}

/* ---- buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--red-ink); color: #fff; border: 0; border-radius: 999px;
    padding: 13px 24px; font: 600 1rem/1.2 var(--text); text-decoration: none; cursor: pointer;
    transition: transform .2s, background .2s;
}
.btn:hover { background: var(--red-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .55); }
.btn-ghost:hover { background: rgb(255 255 255 / .1); color: #fff; }
.btn-light { background: #fff; color: var(--red-ink); }
.btn-light:hover { background: #ffe9ea; color: var(--red-deep); }

/* ---- dark steel bands ---- */
.hero, .page-hero, .cta, .foot, .band-dark {
    background:
        radial-gradient(1200px 500px at 85% -10%, rgb(72 106 125 / .55), transparent 60%),
        linear-gradient(160deg, var(--steel-deep), var(--night) 70%);
    color: #e9eff4;
}
.hero a:not(.btn), .page-hero a:not(.btn), .cta a:not(.btn), .foot a, .band-dark a:not(.btn) { color: #fff; }
.hero a:not(.btn):hover, .page-hero a:not(.btn):hover, .foot a:hover, .band-dark a:not(.btn):hover { color: var(--water); }

/* ---- home hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(28px, 4vw, 56px); }
.hero::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 6px;
    background: linear-gradient(90deg, var(--red), var(--red-deep) 40%, transparent);
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.08fr; gap: 48px; } }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--mist);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); border-radius: 2px; }
.hero h1 { margin: .45em 0 .4em; color: #fff; }
.hero h1 em { font-style: normal; color: #ff5a60; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: #d3dee7; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.station { width: 100%; height: auto; }

/* steps of the system, in time with the drawing */
.steps {
    list-style: none; margin: 30px 0 0; padding: 0;
    display: grid; gap: 10px; counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
    counter-increment: step; position: relative;
    background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12);
    border-radius: 14px; padding: 14px 14px 14px 52px; font-size: .95rem; color: #d3dee7;
}
.steps li::before {
    content: counter(step); position: absolute; left: 14px; top: 13px;
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    font: 400 .85rem/1 var(--display); background: var(--plate); color: #fff;
}
.steps strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

/* ---- pump station drawing ---- */
.ps-floor { stroke: rgb(255 255 255 / .18); stroke-width: 2; }
.ps-wall { fill: none; stroke: #33506a; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.ps-water { fill: none; stroke: var(--water); stroke-opacity: .55; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ps-flow { fill: none; stroke: #e8f8ff; stroke-width: 4; stroke-dasharray: 8 16; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.ps-metal { fill: #b9c8d4; }
.ps-deflector { stroke: #b9c8d4; stroke-width: 3; stroke-linecap: round; }
.ps-bulb { fill: var(--red); }
.ps-spray { opacity: 0; }
.ps-drop { stroke: var(--water); stroke-width: 3; stroke-linecap: round; }
.ps-label { fill: var(--mist); font: 500 15px var(--text); }
.ps-mid { text-anchor: middle; }
.ps-small { font-size: 13px; }
.ps-dial { fill: #0d1824; stroke: #b9c8d4; stroke-width: 4; }
.ps-lowzone { fill: none; stroke: var(--red); stroke-width: 6; }
.ps-tick { stroke: #b9c8d4; stroke-width: 2.5; }
.ps-needle { transform-box: view-box; transform-origin: 300px 170px; transform: rotate(60deg); }
.ps-needle path { stroke: #ff4b52; stroke-width: 4; stroke-linecap: round; }
.ps-needle circle { fill: #e9eff4; }
.ps-unit { fill: var(--mist); font: 600 12px var(--text); text-anchor: middle; letter-spacing: .1em; }
.ps-outline { stroke: #0d1824; stroke-width: 2; }
.ps-panel { fill: #233a4f; stroke: #b9c8d4; stroke-width: 2; }
.ps-beacon { fill: #5b2a31; }
.ps-led { fill: #3a4b5b; }
.ps-led-j { fill: #3ddc84; }
.ps-lines { stroke: #5f7d92; stroke-width: 3; stroke-linecap: round; }
.ps-base { fill: #4c687d; }
.ps-fins { stroke: rgb(13 24 36 / .45); stroke-width: 2; }
.ps-fins-dark { stroke: rgb(13 24 36 / .55); }
.ps-hub { fill: #e9eff4; }

@media (prefers-reduced-motion: no-preference) {
    .station .ps-needle { animation: ps-needle 12s ease-in-out infinite; }
    .station .ps-open .ps-bulb { animation: ps-bulb 12s steps(1) infinite; }
    .station .ps-spray { animation: ps-spray 12s steps(1) infinite; }
    .station .ps-drop { animation: ps-drop .7s linear infinite; animation-delay: calc(var(--d) * -.18s); }
    .station .ps-flow { animation: ps-flow-on 12s ease infinite, ps-flow .6s linear infinite; }
    .station .ps-led-1 { animation: ps-led 12s steps(1) infinite; }
    .station .ps-beacon { animation: ps-beacon 12s steps(1) infinite; }
    .station .ps-led-j { animation: ps-blink 2.4s ease-in-out infinite; }
    .station .ps-volute { animation: ps-volute 12s steps(1) infinite; }
    .steps li:nth-child(1) { animation: ps-step1 12s steps(1) infinite; }
    .steps li:nth-child(2) { animation: ps-step2 12s steps(1) infinite; }
    .steps li:nth-child(3) { animation: ps-step3 12s steps(1) infinite; }
    .hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
    .hero-text > *:nth-child(2) { animation-delay: .08s; }
    .hero-text > *:nth-child(3) { animation-delay: .16s; }
    .hero-text > *:nth-child(4) { animation-delay: .24s; }
}
@keyframes ps-needle {
    0%, 24% { transform: rotate(60deg); }
    36% { transform: rotate(-112deg); }
    52%, 90% { transform: rotate(18deg); }
    100% { transform: rotate(60deg); }
}
@keyframes ps-bulb { 0% { opacity: 1; } 24% { opacity: 0; } 94% { opacity: 1; } }
@keyframes ps-spray { 0% { opacity: 0; } 24% { opacity: 1; } 92% { opacity: 0; } }
@keyframes ps-drop { from { transform: translateY(0); opacity: 1; } to { transform: translateY(26px); opacity: 0; } }
@keyframes ps-flow-on { 0%, 38% { opacity: 0; } 44%, 90% { opacity: .9; } 96%, 100% { opacity: 0; } }
@keyframes ps-flow { to { stroke-dashoffset: -24; } }
@keyframes ps-led { 0% { fill: #3a4b5b; } 38% { fill: #ff3b42; } 92% { fill: #3a4b5b; } }
@keyframes ps-beacon {
    0% { fill: #5b2a31; } 38% { fill: #ff3b42; } 42% { fill: #5b2a31; } 46% { fill: #ff3b42; } 50% { fill: #5b2a31; }
    54% { fill: #ff3b42; } 58% { fill: #5b2a31; } 62% { fill: #ff3b42; } 66% { fill: #5b2a31; } 70% { fill: #ff3b42; } 74% { fill: #5b2a31; }
    78% { fill: #ff3b42; } 82% { fill: #5b2a31; } 86% { fill: #ff3b42; } 90% { fill: #5b2a31; }
}
@keyframes ps-blink { 50% { opacity: .35; } }
@keyframes ps-volute { 0% { stroke: #0d1824; stroke-width: 2; } 38% { stroke: #fff; stroke-width: 3; } 92% { stroke: #0d1824; stroke-width: 2; } }
@keyframes ps-step1 { 0% { border-color: var(--water); background: rgb(89 195 232 / .14); } 24% { border-color: rgb(255 255 255 / .12); background: rgb(255 255 255 / .05); } }
@keyframes ps-step2 { 0% { border-color: rgb(255 255 255 / .12); } 24% { border-color: var(--water); background: rgb(89 195 232 / .14); } 38% { border-color: rgb(255 255 255 / .12); background: rgb(255 255 255 / .05); } }
@keyframes ps-step3 { 0% { border-color: rgb(255 255 255 / .12); } 38% { border-color: #ff5a60; background: rgb(242 8 17 / .16); } 92% { border-color: rgb(255 255 255 / .12); background: rgb(255 255 255 / .05); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- figures ---- */
.figures { background: var(--sheet); border-bottom: 1px solid var(--line); }
.figures ul {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.figures li { padding: 26px 20px 24px; border-left: 1px solid var(--line); }
.figures li:first-child { border-left: 0; }
.figures b { display: block; font: 400 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1.05 var(--display); color: var(--red-ink); letter-spacing: -.02em; }
.figures span { display: block; color: var(--muted); font-size: .95rem; margin-top: 6px; }
@media (max-width: 480px) { .figures li { border-left: 0; border-top: 1px solid var(--line); } .figures li:first-child { border-top: 0; } }

/* ---- bands on paper ---- */
.band { padding: clamp(44px, 6vw, 84px) 0; }
.band-tight { padding: clamp(28px, 4vw, 48px) 0; }
.band-white { background: var(--sheet); }
.kicker { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--red-ink); margin-bottom: .5em; }
.section-head { max-width: 46em; margin-bottom: 28px; }
.section-head p { color: var(--muted); }

/* what we offer: a numbered trail */
.offer {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    counter-reset: off;
}
.offer li {
    counter-increment: off; background: var(--sheet); border: 1px solid var(--line); border-radius: 16px;
    padding: 18px 18px 18px 64px; position: relative; font-weight: 500; min-height: 74px; display: flex; align-items: center;
}
.offer li::before {
    content: counter(off, decimal-leading-zero); position: absolute; left: 18px; top: 50%; translate: 0 -50%;
    font: 400 1.25rem/1 var(--display); color: var(--red-ink);
}
.offer a { color: var(--ink); text-decoration-color: var(--red); }
.offer a:hover { color: var(--red-ink); }

/* products: a bento grid */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) {
    .bento { grid-template-columns: repeat(6, 1fr); }
    .bento > :nth-child(1) { grid-column: span 3; grid-row: span 2; }
    .bento > :nth-child(2), .bento > :nth-child(3) { grid-column: span 3; }
    .bento > :nth-child(4), .bento > :nth-child(5) { grid-column: span 3; }
}
.tile {
    position: relative; display: grid; grid-template-columns: 1fr; background: var(--sheet);
    border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgb(20 34 49 / .45); border-color: #bccbd6; }
.tile-media { background: linear-gradient(160deg, #3a566c, var(--steel)); display: grid; place-items: center; padding: 18px; min-height: 180px; }
.tile-media img { max-height: 230px; width: auto; border-radius: 10px; }
.tile-media.light { background: #f7f9fb; }
.tile-body { padding: 20px 22px 22px; }
.tile-body h3 { margin-bottom: .35em; }
.tile-body h3 a { color: var(--ink); text-decoration: none; }
.tile-body h3 a::after { content: ""; position: absolute; inset: 0; }
.tile-body p { color: var(--muted); margin: 0; }
.tile:hover h3 a { color: var(--red-ink); }
@media (min-width: 1020px) {
    .bento > :nth-child(1) .tile-media { min-height: 360px; }
    .bento > :nth-child(1) .tile-media img { max-height: 330px; }
    .bento > :not(:first-child) { grid-template-columns: 200px 1fr; }
    .bento > :not(:first-child) .tile-media { min-height: 100%; }
    .bento > :not(:first-child) .tile-media img { max-height: 150px; }
}
.tile .std { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.std a {
    font: 400 .85rem/1 var(--display); padding: 9px 12px; border-radius: 999px; text-decoration: none;
    background: var(--night); color: #fff;
}
.std a:hover { background: var(--red-ink); color: #fff; }

/* three readers */
.readers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.reader { background: var(--sheet); border-radius: var(--r); padding: 24px; border-top: 5px solid var(--red-ink); border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reader:nth-child(2) { border-top-color: var(--plate); }
.reader:nth-child(3) { border-top-color: var(--night); }
.reader h3 { margin-bottom: .7em; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before {
    content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
    border-left: 3px solid var(--red-ink); border-bottom: 3px solid var(--red-ink); rotate: -45deg;
}
.band-dark .ticks li::before, .page-hero .ticks li::before { border-color: #ff5a60; }

/* certificate band */
.cert-band { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .cert-band { grid-template-columns: auto 1fr; gap: 48px; } }
.cert-band figure { margin: 0; }
.cert-band img { width: 220px; border-radius: 6px; box-shadow: 0 20px 40px -18px rgb(0 0 0 / .7); rotate: -2deg; transition: rotate .3s; }
.cert-band a:hover img { rotate: 0deg; }
.cert-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.cert-badges span { font: 400 .9rem/1 var(--display); padding: 10px 14px; border-radius: 10px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .2); color: #fff; }

/* ---- inner pages ---- */
.page-hero { padding: clamp(30px, 5vw, 64px) 0 clamp(30px, 5vw, 56px); position: relative; }
.page-hero h1 { color: #fff; margin-top: .3em; }
.page-hero .lead { color: #d3dee7; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 40em; margin: 0; }
.ph-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .ph-grid { grid-template-columns: 1.3fr 1fr; gap: 48px; } .ph-grid.ph-solo { grid-template-columns: 1fr; } }
.ph-photo { margin: 0; justify-self: center; }
.ph-photo img { border-radius: 14px; max-height: 340px; width: auto; background: #f7f9fb; box-shadow: 0 24px 50px -24px rgb(0 0 0 / .8); }
.crumbs { font-size: .92rem; color: var(--mist); }
.crumbs a { color: #fff; }
.crumbs [aria-current] { color: var(--mist); }

.prose { max-width: 48em; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .35em; }

.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; } }

.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 30px); }
.card > :last-child { margin-bottom: 0; }

/* numbered list of the parts of a pump set */
.parts { list-style: none; margin: 0; padding: 0; counter-reset: part; display: grid; gap: 8px; }
@media (min-width: 760px) { .parts { grid-template-columns: 1fr 1fr; gap: 8px 24px; } }
.parts li { counter-increment: part; position: relative; padding: 10px 12px 10px 52px; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; }
.parts li::before { content: counter(part); position: absolute; left: 12px; top: 9px; width: 28px; height: 28px; border-radius: 8px; background: var(--night); color: #fff; display: grid; place-items: center; font: 400 .85rem/1 var(--display); }

/* product cards with photo */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards > li { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.cards figure { margin: 0; background: #f7f9fb; display: grid; place-items: center; padding: 14px; min-height: 200px; }
.cards figure.dark { background: linear-gradient(160deg, #3a566c, var(--steel)); }
.cards figure img { max-height: 220px; width: auto; border-radius: 8px; }
.cards .c-body { padding: 16px 18px 20px; }
.cards h3 { margin-bottom: .35em; }
.cards p { margin: 0 0 .4em; color: var(--muted); }
.cards .c-body > :last-child { margin-bottom: 0; }
.spec { margin: .4em 0 0; padding: 0; list-style: none; font-size: .95rem; }
.spec li { padding: 6px 0; border-top: 1px dashed var(--line); }
.spec b { font-weight: 600; color: var(--ink); }
.code { font: 400 .8rem/1 var(--display); background: var(--night); color: #fff; padding: 5px 8px; border-radius: 6px; margin-right: 6px; vertical-align: 2px; }

.pill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.pill-nav a { display: inline-block; padding: 9px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.pill-nav a:hover { border-color: var(--red-ink); color: var(--red-ink); }

.standard-strip { background: var(--sheet); border-left: 5px solid var(--red-ink); border-radius: 12px; padding: 16px 20px; margin-bottom: 28px; max-width: 48em; }
.standard-strip p { margin: 0; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery a { display: grid; place-items: center; background: linear-gradient(160deg, #3a566c, var(--steel)); border-radius: 14px; padding: 10px; height: 100%; transition: transform .2s; }
.gallery a:hover { transform: scale(1.02); }
.gallery img { max-height: 170px; width: auto; border-radius: 8px; }
.gallery.light a { background: #fff; border: 1px solid var(--line); }

/* section overview cards (products page) */
.overview { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.overview > li { position: relative; display: grid; gap: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.overview > li:hover { box-shadow: 0 18px 40px -22px rgb(20 34 49 / .45); transform: translateY(-2px); }
@media (min-width: 760px) { .overview > li { grid-template-columns: 300px 1fr; } }
.overview figure { margin: 0; background: linear-gradient(160deg, #3a566c, var(--steel)); display: grid; place-items: center; padding: 18px; min-height: 200px; }
.overview figure img { max-height: 220px; width: auto; border-radius: 10px; }
.overview .o-body { padding: 22px 24px; align-self: center; }
.overview h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: .35em; }
.overview h2 a { color: var(--ink); text-decoration: none; }
.overview h2 a::after { content: ""; position: absolute; inset: 0; }
.overview > li:hover h2 a { color: var(--red-ink); }
.overview p { color: var(--muted); margin: 0; }
.overview .std { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* clients */
.clients { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.clients li { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 500; }

/* documents */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.docs li { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.docs figure { margin: 0; display: flex; flex-direction: column; height: 100%; }
.docs figure > a { display: grid; place-items: center; padding: 18px; background: linear-gradient(160deg, #3a566c, var(--steel)); }
.docs img { width: auto; max-height: 300px; box-shadow: 0 14px 30px -14px rgb(0 0 0 / .7); }
.docs figcaption { padding: 16px 18px 20px; font-size: .95rem; color: var(--muted); }
.docs figcaption strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }

/* chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 9px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.chips a:hover { border-color: var(--red-ink); color: var(--red-ink); }
.chips a[aria-current] { background: var(--night); color: #fff; border-color: var(--night); }
.band-others { padding: 36px 0; }
.ask { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: inline-block; margin-bottom: 26px; }

/* contact */
.offices { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.office h2 { font-size: 1.35rem; }
.big-phone { font: 400 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.1 var(--display); color: var(--red-ink); text-decoration: none; display: inline-block; margin-bottom: 10px; }
.big-phone:hover { color: var(--red-deep); }
.contact-list { margin: 0; display: grid; gap: 12px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; }

/* form */
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
    width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid #b7c6d2; border-radius: 10px; background: #fff; color: var(--ink);
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--water); outline-offset: 1px; border-color: var(--steel); }
.contact-form ul { margin: 4px 0 0; padding-left: 18px; color: var(--red-ink); font-size: .9rem; }
.form-pair { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-pair { grid-template-columns: 1fr 1fr; } }
.form-hint { font-size: .88rem; color: var(--muted); margin: 0; }
.contact-sent { background: #e3f5ea; border: 1px solid #9fd3b3; color: #134b2a; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; }
.contact-sent strong { display: block; }

/* ---- call band ---- */
.cta { padding: clamp(36px, 5vw, 64px) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, transparent, var(--red-deep) 60%, var(--red)); }
.cta-grid { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr auto; gap: 40px; } }
.cta h2 { color: #fff; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.cta p { color: #d3dee7; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-phone { display: grid; text-decoration: none; padding: 10px 16px; border-radius: 14px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .18); font: 400 1.15rem/1.2 var(--display); }
.cta-phone small { font: 500 .78rem/1.3 var(--text); color: var(--mist); }
.cta .cta-phone:hover { background: rgb(255 255 255 / .14); color: #fff; }

/* ---- footer ---- */
.foot { padding: 48px 0 0; border-top: 6px solid var(--red-ink); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-bottom: 32px; }
.foot h2 { font: 600 .82rem/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); margin: 0 0 10px; }
.foot h2 + p, .foot h2 + ul { margin-bottom: 22px; }
.foot p { color: #d3dee7; font-size: .97rem; }
.foot small { color: var(--mist); }
.foot-logo { width: 200px; margin-bottom: 12px; }
.foot-tag { font-weight: 600; color: #fff !important; }
.foot-phone { font: 400 1.15rem/1.6 var(--display); text-decoration: none; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 4px; }
.foot-bottom { border-top: 1px solid rgb(255 255 255 / .14); padding: 18px 0 26px; }
.foot-bottom p { margin: 0; font-size: .9rem; color: var(--mist); }
.foot-bottom a { color: #fff; }

/* ---- reveal on scroll ---- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
        @keyframes reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
    }
}

/* ---- 404 ---- */
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; text-align: center;
    background: radial-gradient(900px 400px at 80% -10%, rgb(72 106 125 / .55), transparent 60%), linear-gradient(160deg, var(--steel-deep), var(--night) 70%); color: #e9eff4; }
.not-found > div { max-width: 36em; }
.not-found img { margin: 0 auto 26px; width: 228px; }
.not-found h1 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.not-found h2 { color: #fff; font-size: 1.4rem; margin-top: 1.6em; }
.not-found a:not(.btn) { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

.lightbox { --lb-bg: rgb(10 18 27 / .95); --lb-accent: #59c3e8; --lb-accent-soft: rgb(255 255 255 / .14); }

.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.mt { margin-top: 16px; }
.more { margin-top: 22px; }
.kicker-on-dark { color: #ff8f93; }
.figure-tall { margin: 0; }
.figure-tall img { max-height: 520px; width: auto; margin-inline: auto; }
.prose h3 { margin-top: 1.2em; }
@media (max-width: 1199px) { .js .menu-toggle { margin-left: auto; } }
a[href^="tel:"] { white-space: nowrap; }
