/* Unicad – "five circuits, one battery".
   Night navy of the original header (#00287a, taken down to #0a1630) and the five colours of the original's
   home-page tiles, one per line of the business: sun green, sea orange, fence red, heating grey, network blue.
   Overpass Mono (display, labels, figures) + Overpass (text). */

@font-face {
    font-family: "Overpass Mono";
    src: url("/fonts/overpass-mono.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: "Overpass";
    src: url("/fonts/overpass.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --night: #0a1630;
    --night-2: #11214a;
    --night-3: #1a2f63;
    --navy: #00287a;
    --cream: #ffffcc;
    --paper: #f3f4f1;
    --sheet: #ffffff;
    --ink: #0a1630;
    --muted: #46516b;
    --rule: #d5d9e0;
    --sun: #28a328;
    --sun-ink: #1c7a1c;
    --sea: #cc7a28;
    --sea-ink: #9c5512;
    --fence: #a32800;
    --fence-lit: #ff7a4d;
    --heat: #b4b4b4;
    --heat-ink: #5c5c5c;
    --net: #558cff;
    --net-ink: #00287a;
    --radius: 18px;
    --mono: "Overpass Mono", ui-monospace, monospace;
    --sans: "Overpass", system-ui, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 6rem;
}

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

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

a {
    color: var(--net-ink);
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
    font-family: var(--mono);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 0.6em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.2rem);
}

h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.6rem);
}

h3 {
    font-size: 1.2rem;
    letter-spacing: -0.015em;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(1200px, 100% - 2rem);
    margin-inline: auto;
}

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

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--cream);
    color: var(--ink);
    font-weight: 700;
}

.skip:focus {
    top: 1rem;
}

.mono {
    font-family: var(--mono);
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--night);
    color: #fff;
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.2rem;
    padding-block: 0.7rem;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4em;
    color: var(--cream);
    text-decoration: none;
    font-family: var(--mono);
    white-space: nowrap;
}

.brand-name {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}

.brand-form {
    font-weight: 400;
    font-size: 1rem;
    opacity: 0.9;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: var(--sun);
    color: var(--night);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    background: #3cc23c;
}

.fb {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    color: #fff;
    border: 1px solid rgb(255 255 255 / 0.3);
}

.fb:hover {
    background: var(--night-3);
}

.lang {
    display: flex;
    font-family: var(--mono);
    font-size: 0.9rem;
    border: 1px solid rgb(255 255 255 / 0.3);
    border-radius: 999px;
    overflow: hidden;
}

.lang > * {
    padding: 0.35rem 0.6rem;
    color: #fff;
    text-decoration: none;
}

.lang [aria-current] {
    background: var(--cream);
    color: var(--night);
    font-weight: 700;
}

.menu-btn {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgb(255 255 255 / 0.3);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin-inline: auto;
    background: currentColor;
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    width: 100%;
    font-family: var(--mono);
    font-size: 0.95rem;
}

.nav a {
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    color: #e8ecf6;
    text-decoration: none;
}

.nav a:hover {
    background: var(--night-3);
}

.nav a[aria-current] {
    background: var(--cream);
    color: var(--night);
    font-weight: 700;
}

.stripe {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 4px;
}

.stripe i,
.cells i {
    display: block;
}

.sun { --c: var(--sun); --c-ink: var(--sun-ink); }
.sea { --c: var(--sea); --c-ink: var(--sea-ink); }
.fence { --c: var(--fence); --c-ink: var(--fence); }
.heat { --c: var(--heat); --c-ink: var(--heat-ink); }
.net { --c: var(--net); --c-ink: var(--net-ink); }

.stripe i {
    background: var(--c);
}

@media (min-width: 980px) {
    .top-row {
        flex-wrap: nowrap;
    }

    .nav {
        order: 1;
        width: auto;
        margin-left: auto;
    }

    .top-actions {
        order: 2;
        margin-left: 0;
    }
}

/* the menu folds away on a phone when the script runs */
@media (max-width: 979px) {
    .js .menu-btn {
        display: inline-grid;
        place-items: center;
    }

    .js .nav {
        display: none;
        flex-direction: column;
        padding: 0.4rem 0 0.6rem;
    }

    .js .nav.open {
        display: flex;
    }

    .js .nav a {
        padding: 0.7rem 0.8rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 520px) {
    .brand-name {
        font-size: 1.25rem;
    }

    .brand-form {
        display: none;
    }

    .call {
        padding: 0.45rem 0.7rem;
        font-size: 0.9rem;
    }

    .top-actions {
        gap: 0.35rem;
    }

    .fb {
        width: 2.2rem;
        height: 2.2rem;
    }
}

@media (max-width: 380px) {
    .lang > * {
        padding: 0.3rem 0.45rem;
    }
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.3rem;
    border: 0;
    border-radius: 12px;
    background: var(--night);
    color: #fff;
    font: 700 1rem/1.2 var(--mono);
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--navy);
}

.btn-light {
    background: var(--cream);
    color: var(--night);
}

.btn-light:hover {
    background: #fff;
}

.btn-line {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.5);
}

.btn-line:hover {
    background: var(--night-3);
}

/* ---- hero with the battery ---- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgb(85 140 255 / 0.25), transparent 70%),
        radial-gradient(40rem 20rem at 0% 110%, rgb(40 163 40 / 0.18), transparent 70%),
        var(--night);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero .wrap {
    position: relative;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    font: 600 0.85rem/1.3 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
}

.hero h1 {
    max-width: 18ch;
}

.hero h1 em {
    font-style: normal;
    color: var(--cream);
}

.hero .lead {
    max-width: 60ch;
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    color: #dfe5f2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.battery-wrap {
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

.battery-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.8rem;
    font: 600 0.85rem/1.3 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c4cce0;
}

.battery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 10px;
    margin-right: 22px;
    border: 3px solid #c4cce0;
    border-radius: 22px;
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
}

.battery::after {
    content: "";
    position: absolute;
    right: -22px;
    top: 50%;
    width: 16px;
    height: 34%;
    transform: translateY(-50%);
    background: #c4cce0;
    border-radius: 0 8px 8px 0;
}

.battery li {
    display: flex;
}

.cell {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 13rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--c);
    color: var(--night);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
}

/* the charge: an empty-cell cover that drains away, cell by cell, when the page opens */
.cell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--night-2);
    transform-origin: top;
    transform: scaleY(0);
    animation: charge 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(0.25s + var(--i) * 0.22s);
}

.cell:hover {
    filter: brightness(1.08);
}

.cell:hover .cell-go {
    transform: translateX(4px);
}

@keyframes charge {
    from {
        transform: scaleY(1);
    }
}

.cell-year {
    font: 700 clamp(1.4rem, 1rem + 1.2vw, 2rem)/1 var(--mono);
    letter-spacing: -0.03em;
}

.cell-name {
    font: 700 1.05rem/1.25 var(--mono);
}

.cell-go {
    display: inline-block;
    margin-top: 0.4rem;
    font: 600 0.85rem/1 var(--mono);
    transition: transform 0.2s;
}

.battery-foot {
    margin-top: 0.9rem;
    font-size: 0.95rem;
    color: #c4cce0;
}

@media (max-width: 760px) {
    .battery {
        grid-template-columns: 1fr;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .battery::after {
        right: auto;
        top: auto;
        left: 50%;
        bottom: -20px;
        width: 34%;
        height: 14px;
        transform: translateX(-50%);
        border-radius: 0 0 8px 8px;
    }

    .cell {
        min-height: 0;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0.85rem 1rem;
    }

    .cell::before {
        transform-origin: right;
        transform: scaleX(0);
        animation-name: charge-x;
    }

    .cell-year {
        flex: 0 0 7rem;
        font-size: 1.25rem;
        white-space: nowrap;
    }

    .cell-name {
        flex: 1;
    }

    .cell-go {
        margin: 0;
    }
}

@keyframes charge-x {
    from {
        transform: scaleX(1);
    }
}

/* ---- sections ---- */

.band {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.band-tight {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.band-sheet {
    background: var(--sheet);
}

.band-dark {
    background: var(--night);
    color: #e8ecf6;
}

.band-dark h2,
.band-dark h3 {
    color: #fff;
}

.band-dark a {
    color: var(--cream);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin-bottom: 2rem;
}

.section-head h2 {
    margin: 0;
}

.section-head p {
    max-width: 52ch;
    margin: 0;
    color: var(--muted);
}

.band-dark .section-head p {
    color: #c4cce0;
}

.kicker {
    display: block;
    margin-bottom: 0.5rem;
    font: 600 0.82rem/1.2 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.band-dark .kicker {
    color: var(--cream);
}

/* bento of the five lines */

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bento > li {
    grid-column: span 2;
    display: flex;
}

.bento > li:nth-child(1),
.bento > li:nth-child(2) {
    grid-column: span 3;
}

.tile {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    width: 100%;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--sheet);
    color: var(--ink);
    text-decoration: none;
    border-top: 8px solid var(--c);
    box-shadow: 0 1px 0 var(--rule), 0 10px 30px -18px rgb(10 22 48 / 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 1px 0 var(--rule), 0 18px 40px -18px rgb(10 22 48 / 0.45);
}

.tile-no {
    font: 700 0.85rem/1 var(--mono);
    color: var(--c-ink);
}

.tile h3 {
    margin: 0.5rem 0 0.4rem;
    font-size: 1.25rem;
}

.tile p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.tile img {
    width: 96px;
    height: auto;
    border-radius: 10px;
    align-self: start;
}

.tile .more {
    display: inline-block;
    margin-top: 0.8rem;
    font: 700 0.9rem/1 var(--mono);
    color: var(--c-ink);
}

@media (max-width: 900px) {
    .bento > li,
    .bento > li:nth-child(1),
    .bento > li:nth-child(2) {
        grid-column: span 3;
    }

    .bento > li:last-child {
        grid-column: span 6;
    }
}

@media (max-width: 620px) {
    .bento {
        grid-template-columns: 1fr;
    }

    .bento > li,
    .bento > li:nth-child(1),
    .bento > li:nth-child(2),
    .bento > li:last-child {
        grid-column: auto;
    }

    .tile img {
        width: 72px;
    }
}

/* numbered trail of services */

.trail {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: trail;
    display: grid;
    gap: 0;
}

.trail > li {
    counter-increment: trail;
    border-top: 1px solid rgb(255 255 255 / 0.15);
}

.trail > li:last-child {
    border-bottom: 1px solid rgb(255 255 255 / 0.15);
}

.trail a,
.trail .trail-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 0.5rem;
    color: #fff;
    text-decoration: none;
}

.trail a::before,
.trail .trail-row::before {
    content: counter(trail, decimal-leading-zero);
    font: 700 1.6rem/1 var(--mono);
    color: var(--c);
}

.trail a:hover {
    background: var(--night-2);
}

.trail h3 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
    color: #fff;
}

.trail p {
    margin: 0;
    color: #c4cce0;
}

.trail .arrow {
    font: 700 1.4rem/1 var(--mono);
    color: var(--cream);
}

.trail .trail-row .arrow a {
    padding: 0;
    display: inline;
}

@media (max-width: 620px) {
    .trail a,
    .trail .trail-row {
        grid-template-columns: 3rem 1fr;
    }

    .trail .arrow {
        display: none;
    }

    .trail a::before,
    .trail .trail-row::before {
        font-size: 1.2rem;
    }
}

/* how to order */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--rule);
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    background: var(--night);
    color: var(--cream);
    font: 700 1.1rem/1 var(--mono);
}

.steps p {
    margin: 0;
}

@media (max-width: 760px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

/* timeline of the years */

.years {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.years li {
    padding: 1.2rem 1.2rem 1.4rem;
    border-left: 6px solid var(--c);
    background: var(--sheet);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.years b {
    display: block;
    font: 700 clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem)/1 var(--mono);
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.years p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 900px) {
    .years {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .years {
        grid-template-columns: 1fr;
    }
}

/* photo strip */

.strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.strip a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.strip img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s;
}

.strip a:hover img {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 520px) {
    .strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* call band */

.call-band {
    background: linear-gradient(110deg, var(--navy), var(--night) 70%);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.call-band .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 2rem;
}

.call-band p {
    margin: 0;
    max-width: 40ch;
    font-size: 1.15rem;
}

.big-phone {
    display: inline-block;
    font: 700 clamp(1.7rem, 1.2rem + 2.4vw, 3rem)/1.1 var(--mono);
    letter-spacing: -0.03em;
    color: var(--cream);
    text-decoration: none;
}

.big-phone:hover {
    text-decoration: underline;
}

.call-band .alt {
    margin-top: 0.4rem;
    font-size: 1rem;
    color: #c4cce0;
}

.call-band .alt a {
    color: #fff;
}

/* ---- inner pages ---- */

.page-hero {
    position: relative;
    background: var(--night);
    color: #fff;
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2rem, 5vw, 3rem);
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: var(--c, transparent);
}

.page-hero h1 {
    max-width: 24ch;
    font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);
}

.page-hero .lead {
    max-width: 62ch;
    margin: 0;
    font-size: 1.12rem;
    color: #dfe5f2;
}

.page-hero .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    font: 600 0.85rem/1 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream);
}

.page-hero .tag::before {
    content: "";
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 3px;
    background: var(--c, var(--cream));
}

.crumbs {
    margin-bottom: 1.2rem;
    font: 500 0.9rem/1.4 var(--mono);
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crumbs li + li::before {
    content: "/";
    margin-right: 0.3rem;
    color: #8f9ab3;
}

.crumbs a {
    color: #c4cce0;
}

.crumbs [aria-current] {
    color: #fff;
}

.prose {
    max-width: 72ch;
}

.prose h2 {
    margin-top: 1.6em;
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: 1.4em;
}

.prose ul,
.prose ol {
    padding-left: 1.3rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
    }
}

.aside {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--rule);
}

.aside h2 {
    font-size: 1.2rem;
}

.aside ol,
.aside ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.aside li {
    margin-bottom: 0.5rem;
}

.aside .phone-line {
    font: 700 1.3rem/1.3 var(--mono);
}

.aside .phone-line a {
    color: var(--ink);
    text-decoration: none;
}

/* product groups: a grid of numbered plates */

.groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: group;
}

.groups li {
    counter-increment: group;
    position: relative;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-left: 6px solid var(--c);
}

.groups li::before {
    content: counter(group, decimal-leading-zero);
    font: 700 0.85rem/1.6 var(--mono);
    color: var(--c-ink);
}

.groups h3 {
    margin: 0;
    font: 600 1.02rem/1.35 var(--sans);
    letter-spacing: 0;
}

.groups p {
    margin: 0.3rem 0 0;
    font-size: 0.93rem;
    color: var(--muted);
}

.groups a {
    color: var(--ink);
}

.groups li > div {
    flex: 1;
}

.g-pic {
    flex: none;
    display: block;
    width: 84px;
    margin-left: auto;
}

.g-pic img {
    display: block;
    width: 84px;
    height: 84px;
    object-fit: contain;
}

/* pictures of a line */

.pics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pics a {
    display: block;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--rule);
}

.pics img {
    display: block;
    height: 96px;
    width: auto;
}

/* tables */

.table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--rule);
    background: var(--sheet);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

th,
td {
    padding: 0.75rem 0.9rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--rule);
}

thead th {
    background: var(--night);
    color: #fff;
    font: 600 0.88rem/1.3 var(--mono);
}

tbody tr:last-child td,
tbody tr:last-child th {
    border-bottom: 0;
}

td.num,
th.num {
    text-align: right;
    font-family: var(--mono);
    white-space: nowrap;
}

.note {
    font-size: 0.93rem;
    color: var(--muted);
}

/* the SineUPS models */

.models {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.model {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 0.5rem;
    height: 100%;
    padding: 1.3rem;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--rule);
}

.model-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.model h3 {
    margin: 0;
    font-size: 1.3rem;
}

.model img {
    width: 84px;
    height: auto;
}

.model .watt {
    font: 700 0.9rem/1 var(--mono);
    color: var(--heat-ink);
}

.model p {
    margin: 0;
    font-size: 0.97rem;
    color: var(--muted);
}

.model .price {
    font: 700 1.6rem/1 var(--mono);
    letter-spacing: -0.03em;
}

.price small {
    font: 500 0.8rem/1.2 var(--sans);
    letter-spacing: 0;
    color: var(--muted);
}

/* autonomy calculator (t = 12 × C / P) */

.calc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
    align-items: end;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--night);
    color: #fff;
}

.calc label {
    display: block;
    margin-bottom: 0.35rem;
    font: 600 0.9rem/1.3 var(--mono);
    color: #c4cce0;
}

.calc input {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 2px solid #5b6a8f;
    border-radius: 10px;
    background: var(--night-2);
    color: #fff;
    font: 700 1.2rem/1 var(--mono);
}

.calc output {
    display: block;
    font: 700 clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem)/1 var(--mono);
    color: var(--cream);
}

.calc .formula {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.93rem;
    color: #c4cce0;
}

/* FAQ */

.faq details {
    border-bottom: 1px solid var(--rule);
}

.faq summary {
    padding: 1rem 0;
    font: 700 1.08rem/1.35 var(--mono);
    cursor: pointer;
}

.faq details > div {
    padding-bottom: 1rem;
}

/* links to the other items */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.chips a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.chips a::before {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 3px;
    background: var(--c);
}

.chips a:hover {
    border-color: var(--ink);
}

.chips a[aria-current] {
    background: var(--night);
    color: #fff;
    border-color: var(--night);
}

/* gallery */

.album + .album {
    margin-top: 3rem;
}

.album h2 {
    font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);
}

.album > p {
    color: var(--muted);
}

.photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.photos figure {
    margin: 0;
}

.photos a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: var(--night-2);
}

.photos img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s;
}

.photos a:hover img {
    transform: scale(1.04);
}

.photos figcaption {
    padding: 0.4rem 0.2rem 0;
    font-size: 0.88rem;
    color: var(--muted);
}

@media (max-width: 520px) {
    .photos {
        grid-template-columns: 1fr 1fr;
    }
}

/* documents */

.files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.files a {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    height: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    color: var(--ink);
    text-decoration: none;
}

.files a:hover {
    border-color: var(--ink);
}

.file-type {
    flex: none;
    padding: 0.3rem 0.45rem;
    border-radius: 6px;
    background: var(--fence);
    color: #fff;
    font: 700 0.75rem/1 var(--mono);
}

.files strong {
    display: block;
    font-weight: 600;
    line-height: 1.35;
}

.files small {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
}

.doc-group + .doc-group {
    margin-top: 2.5rem;
}

/* contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    padding: clamp(1.3rem, 3vw, 2rem);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--rule);
}

.contact-list {
    margin: 0 0 1.5rem;
}

.contact-list div {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rule);
}

.contact-list dt {
    font: 600 0.82rem/1.2 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-list dd {
    margin: 0.3rem 0 0;
}

.contact-list .big {
    font: 700 1.4rem/1.3 var(--mono);
}

.contact-list .big a {
    color: var(--ink);
    text-decoration: none;
}

.contact-list .big a:hover {
    text-decoration: underline;
}

.map-figure {
    margin: 1.5rem 0 0;
}

.map-figure a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--rule);
    background: #fff;
}

.map-figure img {
    display: block;
    width: 100%;
}

.map-figure figcaption {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* the platform contact form */

.contact-form > div {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font: 600 0.92rem/1.3 var(--mono);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 2px solid #b9c0cc;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--navy);
    outline: none;
    box-shadow: 0 0 0 3px rgb(85 140 255 / 0.35);
}

.form-hint {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-sent {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: #e5f5e5;
    border-left: 6px solid var(--sun);
}

.contact-sent strong {
    display: block;
}

/* ---- footer ---- */

.foot {
    background: var(--night);
    color: #c4cce0;
    padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
    font-size: 0.97rem;
}

.foot a {
    color: #fff;
}

.foot h2 {
    margin-bottom: 0.8rem;
    font: 600 0.82rem/1.2 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
}

.brand-foot {
    margin-bottom: 0.8rem;
}

.brand-foot .brand-form {
    display: inline;
}

.foot address {
    font-style: normal;
}

.foot-phones {
    font: 700 1.05rem/1.7 var(--mono);
}

.foot-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.foot-links li {
    margin-bottom: 0.35rem;
}

.foot-bottom {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgb(255 255 255 / 0.15);
    font-size: 0.88rem;
}

.foot-bottom p {
    margin: 0;
}

@media (max-width: 900px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .foot-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- 404 ---- */

.not-found {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background: var(--night);
    color: #e8ecf6;
}

.not-found > div {
    max-width: 38rem;
}

.not-found h1 {
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
    color: #fff;
}

.not-found a:not(.btn) {
    color: var(--cream);
}

.not-found .brand {
    margin-bottom: 1.5rem;
}

.not-found .stripe {
    margin-bottom: 1.5rem;
    border-radius: 2px;
    overflow: hidden;
}

/* ---- scroll reveal, where supported ---- */

@supports (animation-timeline: view()) {
    .reveal {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 40%;
    }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(24px);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: 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;
    }
}

.band-dark .fence,
.hero .fence {
    --c: var(--fence-lit);
}

.tile .h3 {
    margin: 0.5rem 0 0.4rem;
    font-size: 1.25rem;
}

.calc .label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c4cce0;
}

.note-box {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: #eef3ff;
    border-left: 6px solid var(--net);
}

.legal h2 {
    font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
}

.legal h4 {
    margin: 1.2em 0 0.4em;
    font-family: var(--mono);
    font-size: 1.02rem;
}

.legal li > p {
    margin-bottom: 0.3rem;
}
