/* Inaplast: the window profile in section, in the green and maroon squares of the firm's own logo.
   Iosevka Charon for headings, figures and labels; Noto Sans for text and for every phone number
   (Iosevka's zero is slashed). Light only. */

@font-face {
    font-family: "Iosevka Charon";
    src: url("/fonts/iosevka-charon-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Iosevka Charon";
    src: url("/fonts/iosevka-charon-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans";
    src: url("/fonts/noto-sans.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62.5% 100%;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #f7f8f4;
    --sheet: #ffffff;
    --glass: #e4eee8;
    --glass-deep: #cfe0d6;
    --ink: #17201a;
    --ink-soft: #46524a;
    --line: #d5dbd4;
    --rule: #6c6c6c;
    --green: #024f01;
    --green-deep: #013701;
    --green-night: #04210d;
    --green-lit: #2f7a1f;
    --mint: #cfe8c9;
    --maroon: #7c0509;
    --maroon-lit: #a3121a;
    --maroon-deep: #5a0306;
    --display: "Iosevka Charon", "Noto Sans", system-ui, sans-serif;
    --text: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 18px;
    --radius-s: 10px;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --lb-bg: rgba(4, 22, 9, .94);
    --lb-text: #f2f6f1;
    --lb-accent: #9fd18f;
    --lb-accent-soft: rgba(159, 209, 143, .18);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: clamp(16px, 1rem + .15vw, 18px);
    line-height: 1.65;
    font-variant-numeric: lining-nums;
}

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

img {
    display: block;
}

a {
    color: var(--green);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--maroon);
}

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

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.01em;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 1.6rem + 4.4vw, 5.4rem);
}

h2 {
    font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
}

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

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--green);
    color: #fff;
    border-radius: var(--radius-s);
    font-weight: 600;
}

.skip:focus {
    top: 12px;
    color: #fff;
}

.nowrap {
    white-space: nowrap;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    margin: 0 0 1rem;
    font-family: var(--display);
    font-weight: 500;
    font-size: .88rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--maroon);
}

.eyebrow::before {
    content: "";
    width: .8em;
    height: 1.1em;
    background: currentColor;
}

.lead {
    font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem);
    color: var(--ink-soft);
    max-width: 62ch;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 50px;
    padding: .7em 1.35em;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    font: 600 1rem/1.2 var(--text);
    font-variant-numeric: lining-nums;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, transform .2s, border-color .2s;
}

.btn:hover {
    background: var(--maroon-deep);
    color: #fff;
    transform: translateY(-2px);
}

.btn-line {
    background: transparent;
    border-color: var(--green);
    color: var(--green);
}

.btn-line:hover {
    background: var(--green);
    color: #fff;
}

.btn svg {
    flex: none;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    padding-block: 10px;
}

.brand {
    flex: none;
    display: block;
    border-radius: 4px;
}

.brand img {
    width: clamp(168px, 14vw + 100px, 230px);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    margin-left: auto;
}

.nav a {
    position: relative;
    padding: 8px 12px;
    font-family: var(--display);
    font-weight: 500;
    font-size: .98rem;
    letter-spacing: .02em;
    color: var(--ink);
    text-decoration: none;
    border-radius: 8px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 3px;
    background: var(--maroon);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}

.nav a:hover::after,
.nav a[aria-current]::after {
    transform: scaleX(1);
}

.nav a[aria-current] {
    color: var(--green);
}

.top-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    font-family: var(--display);
    font-weight: 500;
    font-size: .85rem;
}

.lang a,
.lang span {
    padding: 6px 10px;
    text-decoration: none;
    color: var(--ink);
}

.lang span {
    background: var(--green);
    color: #fff;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    font-weight: 700;
    font-size: .98rem;
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    background: var(--maroon-deep);
    color: #fff;
}

@media (max-width: 900px) {
    .top-row {
        gap: 8px 12px;
    }

    .top-tools {
        margin-left: auto;
    }

    .nav {
        order: 3;
        width: 100%;
        margin: 0 -8px;
        justify-content: space-between;
    }

    .nav a {
        padding: 6px 8px;
        font-size: .95rem;
    }

    .nav a::after {
        left: 8px;
        right: 8px;
    }
}

@media (max-width: 520px) {
    .brand img {
        width: 150px;
    }

    .call {
        padding: 8px 12px;
        font-size: .92rem;
    }

    .call svg {
        display: none;
    }

    .nav a {
        font-size: .9rem;
        padding: 6px 5px;
    }

    .nav a::after {
        left: 5px;
        right: 5px;
    }
}

@media (max-width: 380px) {
    .brand img {
        width: 132px;
    }

    .lang a,
    .lang span {
        padding: 5px 7px;
    }
}

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

.band {
    padding-block: clamp(56px, 8vw, 110px);
}

.band-tight {
    padding-block: clamp(40px, 5vw, 70px);
}

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

.green {
    background: var(--green);
    color: #fff;
}

.green a {
    color: var(--mint);
}

.green a:hover {
    color: #fff;
}

.green .eyebrow {
    color: var(--mint);
}

.green .lead,
.night .lead {
    color: #dfeedc;
}

.night {
    background: var(--green-night);
    color: #eef4ec;
}

.night a {
    color: var(--mint);
}

.section-head {
    display: grid;
    gap: 10px 40px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

@media (min-width: 900px) {
    .section-head.split {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }
}

.section-head h2 {
    margin: 0;
}

.section-head p {
    margin: 0;
}

/* ---- home hero ---- */

.hero {
    position: relative;
    overflow: clip;
    padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px);
    background:
        linear-gradient(var(--paper), rgba(247, 248, 244, .6) 60%, var(--paper)),
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(2, 79, 1, .06) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(2, 79, 1, .06) 39px 40px);
}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(38vw, 420px);
    height: 46%;
    background: var(--green);
    clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
    opacity: .1;
}

/* copy row: the name and the tagline lines on the left, what we do and the phone on the right */
.hero-top {
    position: relative;
    display: grid;
    gap: 8px clamp(32px, 5vw, 72px);
    align-items: end;
    margin-bottom: clamp(24px, 3.4vw, 40px);
}

@media (min-width: 900px) {
    .hero-top {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }
}

.hero h1 {
    margin: 0 0 .3em;
    font-size: clamp(2.4rem, 1.5rem + 3.8vw, 4.6rem);
}

.hero h1 .amp {
    color: var(--maroon);
}

.hero-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 1.4em;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem);
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: .7em;
}

.hero-points li::before {
    content: "";
    flex: none;
    width: .7em;
    height: .7em;
    background: var(--green);
}

.hero-points li:first-child::before {
    background: var(--maroon);
}

.hero .lead {
    margin-bottom: 1.2rem;
}

/* every product, with a photo of the firm's own work, right under the name */
.hero-products {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 560px) {
    .hero-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 800px) {
    .hero-products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1100px) {
    .hero-products {
        grid-template-columns: repeat(6, 1fr);
    }
}

.hero-products a {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.hero-products a:hover {
    color: var(--ink);
    transform: translateY(-3px);
    border-color: var(--green);
    box-shadow: 0 18px 32px -20px rgba(4, 33, 13, .5);
}

.hero-products img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--glass);
    transition: transform .5s;
}

.hero-products a:hover img {
    transform: scale(1.05);
}

.hero-products span {
    position: relative;
    flex: 1;
    padding: 8px 10px 10px 24px;
    background: var(--sheet);
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(.9rem, .85rem + .15vw, 1rem);
    line-height: 1.2;
}

.hero-products span::before {
    content: "";
    position: absolute;
    left: 10px;
    top: calc(8px + .3em);
    width: .55em;
    height: .55em;
    background: var(--green);
}

.hero-products a:hover span::before {
    background: var(--maroon);
}

/* opening: the words rise in order */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * {
        animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards;
    }

    .hero-copy > :nth-child(2) { animation-delay: .08s; }

    .hero-side {
        animation: rise .7s .2s cubic-bezier(.2, .7, .2, 1) backwards;
    }

    .hero-products li {
        animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards;
        animation-delay: calc(.25s + var(--i) * .04s);
    }
}

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

/* ---- the profile in section (home) ---- */

.profile-grid {
    display: grid;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

@media (min-width: 980px) {
    .profile-grid {
        grid-template-columns: 1fr 1.6fr;
    }
}

.profile-intro p:last-child {
    margin: 0;
}

.profile {
    position: relative;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -30px rgba(4, 33, 13, .35), 0 2px 0 var(--green) inset;
    padding: clamp(14px, 2.4vw, 26px);
}

.profile-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin-bottom: 12px;
}

.profile-head h2 {
    margin: 0;
    font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
}

.profile-head p {
    margin: 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.profile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.profile-tabs label {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 500;
    font-size: .9rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}

.profile-tabs label:hover {
    border-color: var(--green);
}

.profile-tabs small {
    display: block;
    font-size: .72rem;
    letter-spacing: .08em;
    color: var(--ink-soft);
}

.profile-stage {
    display: grid;
}

.profile-view {
    grid-area: 1 / 1;
    display: none;
}

.profile-view svg {
    display: block;
    width: 100%;
    height: auto;
}

.profile-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
    margin: 12px 0 0;
}

.profile-facts div {
    padding: 10px 12px;
    background: var(--paper);
    border-radius: var(--radius-s);
    border-left: 4px solid var(--green);
}

.profile-facts div:first-child {
    border-left-color: var(--maroon);
}

.profile-facts dt {
    font-size: .8rem;
    color: var(--ink-soft);
}

.profile-facts dd {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.25;
}

.profile-note {
    margin: 12px 0 0;
    font-size: .85rem;
    color: var(--ink-soft);
}

#pr-s70:checked ~ .profile-stage .v-s70,
#pr-s82:checked ~ .profile-stage .v-s82,
#pr-ed70:checked ~ .profile-stage .v-ed70,
#pr-syn:checked ~ .profile-stage .v-syn,
#pr-gen:checked ~ .profile-stage .v-gen {
    display: block;
}

#pr-s70:checked ~ .profile-tabs [for="pr-s70"],
#pr-s82:checked ~ .profile-tabs [for="pr-s82"],
#pr-ed70:checked ~ .profile-tabs [for="pr-ed70"],
#pr-syn:checked ~ .profile-tabs [for="pr-syn"],
#pr-gen:checked ~ .profile-tabs [for="pr-gen"] {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

#pr-s70:checked ~ .profile-tabs [for="pr-s70"] small,
#pr-s82:checked ~ .profile-tabs [for="pr-s82"] small,
#pr-ed70:checked ~ .profile-tabs [for="pr-ed70"] small,
#pr-syn:checked ~ .profile-tabs [for="pr-syn"] small,
#pr-gen:checked ~ .profile-tabs [for="pr-gen"] small {
    color: var(--mint);
}

#pr-s70:focus-visible ~ .profile-tabs [for="pr-s70"],
#pr-s82:focus-visible ~ .profile-tabs [for="pr-s82"],
#pr-ed70:focus-visible ~ .profile-tabs [for="pr-ed70"],
#pr-syn:focus-visible ~ .profile-tabs [for="pr-syn"],
#pr-gen:focus-visible ~ .profile-tabs [for="pr-gen"] {
    outline: 3px solid var(--maroon-lit);
    outline-offset: 3px;
}

.profile-img {
    margin: 0;
}

.profile-img a {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: #fff;
    border-radius: var(--radius-s);
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (prefers-reduced-motion: no-preference) {
    .profile-view .profile-img img {
        animation: rise .5s cubic-bezier(.2, .7, .2, 1) backwards;
    }

    .profile-view .profile-facts div {
        animation: rise .45s cubic-bezier(.2, .7, .2, 1) backwards;
    }

    .profile-view .profile-facts div:nth-child(2) { animation-delay: .06s; }
    .profile-view .profile-facts div:nth-child(3) { animation-delay: .12s; }
    .profile-view .profile-facts div:nth-child(4) { animation-delay: .18s; }
}

/* ---- products bento (home, products) ---- */

.bento {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1000px) {
    .bento.home {
        grid-template-columns: repeat(4, 1fr);
    }

    .bento.home li:nth-child(1),
    .bento.home li:nth-child(6),
    .bento.home li:nth-child(11),
    .bento.home li:nth-child(12) {
        grid-column: span 2;
    }

    .bento.home li:nth-child(1) .card-img,
    .bento.home li:nth-child(6) .card-img,
    .bento.home li:nth-child(11) .card-img,
    .bento.home li:nth-child(12) .card-img {
        aspect-ratio: 8 / 3;
    }
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

a.card:hover {
    color: var(--ink);
    transform: translateY(-4px);
    border-color: var(--green);
    box-shadow: 0 22px 40px -24px rgba(4, 33, 13, .45);
}

.card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--glass);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

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

.card-body {
    padding: 16px 18px 20px;
}

.card-body h3 {
    margin-bottom: .3em;
}

.card-body p {
    margin: 0;
    font-size: .95rem;
    color: var(--ink-soft);
}

.card-no {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 2.2em;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--maroon);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    font-size: .85rem;
    text-align: center;
}

.card-art {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: var(--green-night);
}

.card-art svg {
    width: 60%;
}

/* ---- facts row and texts (home) ---- */

.about-grid {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1.1fr .9fr;
        align-items: start;
    }
}

.header-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 10px;
    background: var(--maroon);
    border-radius: var(--radius);
    list-style: none;
}

.header-photos img {
    width: 100%;
    border: 2px solid #fff;
    border-radius: 6px;
}

.header-photos li {
    position: relative;
}

.header-photos-cap {
    margin: 10px 0 0;
    font-size: .88rem;
    color: var(--ink-soft);
}

.brands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.brands li {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 6px;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .95rem;
}

.sheet .brands li,
.paper .brands li {
    border-color: var(--line);
    background: var(--sheet);
}

.pillars {
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    background: rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    overflow: hidden;
}

.pillar {
    padding: clamp(22px, 3vw, 34px);
    background: var(--green);
}

.pillar h3 {
    display: flex;
    align-items: center;
    gap: .55em;
}

.pillar h3::before {
    content: "";
    flex: none;
    width: .62em;
    height: .62em;
    background: var(--maroon-lit);
    box-shadow: 0 0 0 2px #fff;
}

.pillar p {
    color: #e3efe0;
    margin-bottom: .8em;
}

.pillar p:last-child {
    margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .reveal {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

/* ---- numbered trail (services) ---- */

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

@media (min-width: 760px) {
    .trail {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .trail.three {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trail li {
    counter-increment: step;
    position: relative;
    padding: 22px 22px 22px 84px;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 100%;
}

.trail li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 10px;
}

.trail li:last-child::before {
    background: var(--maroon);
}

.trail h3 {
    margin-bottom: .25em;
    font-size: 1.2rem;
}

.trail p {
    margin: 0;
    color: var(--ink-soft);
}

.green .trail li {
    background: var(--green-deep);
    border-color: rgba(255, 255, 255, .15);
}

.green .trail li::before {
    background: #fff;
    color: var(--green);
}

.green .trail p {
    color: #dfeedc;
}

/* ---- call band ---- */

.cta {
    position: relative;
    overflow: clip;
    background: var(--green-night);
    color: #fff;
}

.cta::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    background: var(--maroon);
    opacity: .55;
    transform: rotate(12deg);
}

.cta .wrap {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 22px;
    align-items: center;
}

@media (min-width: 900px) {
    .cta .wrap {
        grid-template-columns: 1.3fr auto;
    }
}

.cta h2 {
    margin-bottom: .25em;
}

.cta p {
    margin: 0;
    color: #dfeedc;
    max-width: 58ch;
}

.cta .btn {
    background: #fff;
    color: var(--maroon);
}

.cta .btn:hover {
    background: var(--mint);
    color: var(--green-night);
}

.cta .btn-line {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.cta .btn-line:hover {
    background: #fff;
    color: var(--green-night);
}

.big-phone {
    font-family: var(--text);
    font-weight: 800;
    font-size: clamp(1.5rem, 1rem + 2.4vw, 2.4rem);
    letter-spacing: -.01em;
    white-space: nowrap;
}

/* ---- page hero (inner pages) ---- */

.page-hero {
    position: relative;
    overflow: clip;
    padding-block: clamp(34px, 5vw, 70px) clamp(30px, 4vw, 56px);
    background:
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(2, 79, 1, .05) 39px 40px),
        var(--paper);
    border-bottom: 1px solid var(--line);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: clamp(60px, 9vw, 120px);
    height: 100%;
    background: linear-gradient(var(--maroon) 0 34%, transparent 34% 38%, var(--green) 38% 100%);
    opacity: .9;
}

.page-hero .wrap {
    position: relative;
    z-index: 1;
    padding-right: clamp(60px, 9vw, 120px);
}

.page-hero h1 {
    font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4.2rem);
    margin-bottom: .3em;
}

.page-hero .lead {
    margin: 0;
}

.ph-grid {
    display: grid;
    gap: 24px 48px;
    align-items: center;
}

@media (min-width: 900px) {
    .ph-grid.with-photo {
        grid-template-columns: 1.15fr .85fr;
    }
}

.ph-photo {
    margin: 0;
}

.ph-photo a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 6px solid var(--sheet);
    box-shadow: 0 24px 50px -28px rgba(4, 33, 13, .5);
}

.ph-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.crumbs {
    margin: 0 0 14px;
    font-family: var(--display);
    font-weight: 500;
    font-size: .92rem;
    color: var(--ink-soft);
}

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

.crumbs li + li::before {
    content: "/";
    margin-right: 4px;
    color: var(--rule);
}

/* ---- prose (product pages) ---- */

.prose {
    max-width: 72ch;
}

.prose h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem);
    margin-top: 1.6em;
}

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

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

.prose ul {
    padding-left: 0;
    list-style: none;
    margin: 0 0 1.2em;
}

.prose li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: .4em;
}

.prose li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: .5em;
    height: .5em;
    background: var(--green);
}

.split-text {
    display: grid;
    gap: clamp(26px, 4vw, 56px);
}

@media (min-width: 980px) {
    .split-text {
        grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
        align-items: start;
    }

    .split-text aside {
        position: sticky;
        top: 110px;
    }
}

.spec {
    margin: 1em 0 1.6em;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    overflow: hidden;
    background: var(--sheet);
}

.spec div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 4px 16px;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
}

.spec div:first-child {
    border-top: 0;
}

.spec dt {
    color: var(--ink-soft);
    font-size: .94rem;
}

.spec dd {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    overflow-wrap: anywhere;
}

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

.system {
    margin: 0 0 22px;
    padding: clamp(20px, 3vw, 30px);
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    border-top: 6px solid var(--green);
}

.system:nth-of-type(even) {
    border-top-color: var(--maroon);
}

.system h3 {
    margin-top: 0;
}

.system .tag {
    display: inline-block;
    margin-bottom: 8px;
    font-family: var(--display);
    font-weight: 500;
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--maroon);
}

.side-card {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--green);
    color: #fff;
}

.side-card h2 {
    font-size: 1.4rem;
}

.side-card p {
    color: #e3efe0;
}

.side-card .btn {
    width: 100%;
    background: #fff;
    color: var(--maroon);
    margin-top: 6px;
}

.side-card .btn:hover {
    background: var(--mint);
    color: var(--green-night);
}

.side-card .btn-line {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.side-card .btn-line:hover {
    background: #fff;
    color: var(--green-night);
}

.note {
    padding: 16px 18px;
    border-left: 5px solid var(--maroon);
    background: var(--sheet);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

/* ---- photo grids (product pages, gallery) ---- */

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

.photos figure {
    position: relative;
    margin: 0;
}

.photos a {
    display: block;
    border-radius: var(--radius-s);
    overflow: hidden;
    background: var(--glass);
}

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

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

.photos.small {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 220px));
}

.album {
    padding-block: clamp(30px, 4vw, 56px);
    border-top: 1px solid var(--line);
}

.album:first-of-type {
    border-top: 0;
}

.album-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 20px;
    margin-bottom: 18px;
}

.album-head h2 {
    margin: 0;
}

.album-head p {
    margin: 0;
}

.count {
    font-family: var(--display);
    font-weight: 500;
    color: var(--ink-soft);
}

.jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

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

.chips a,
.jump a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--sheet);
    color: var(--ink);
    font-family: var(--display);
    font-weight: 500;
    text-decoration: none;
}

.chips a:hover,
.jump a:hover {
    border-color: var(--green);
    color: var(--green);
}

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

/* ---- documents ---- */

.files {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.files a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    color: var(--ink);
    text-decoration: none;
}

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

.file-type {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 60px;
    background: var(--maroon);
    color: #fff;
    border-radius: 4px 14px 4px 4px;
    font-family: var(--display);
    font-weight: 700;
    font-size: .9rem;
}

.files strong {
    display: block;
    font-weight: 700;
}

.files small {
    display: block;
    color: var(--ink-soft);
}

/* ---- the original's product pictures (system cutaways, model drawings) ---- */

.system {
    display: flow-root;
}

.sys-fig {
    float: right;
    width: fit-content;
    max-width: min(46%, 340px);
    margin: 4px 0 14px 22px;
}

.sys-fig a {
    display: block;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
}

.sys-fig img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.sys-fig figcaption {
    margin-top: 6px;
    font-size: .84rem;
    line-height: 1.4;
    color: var(--ink-soft);
}

.fig-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    margin: 6px 0 18px;
}

.fig-row .sys-fig {
    float: none;
    max-width: 100%;
    margin: 0;
}

.prose > .sys-fig {
    margin-top: 0;
}

@media (max-width: 600px) {
    .sys-fig {
        float: none;
        max-width: 100%;
        margin: 6px 0 16px;
    }
}

/* ---- contact ---- */

.contact-grid {
    display: grid;
    gap: 18px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: .9fr 1.1fr;
        align-items: start;
    }
}

.panel {
    padding: clamp(20px, 3vw, 34px);
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.panel.green {
    background: var(--green);
    border-color: var(--green);
}

.panel-phone {
    container-type: inline-size;
}

.panel-phone .big-phone {
    font-size: clamp(1.4rem, 11cqi, 2.6rem);
    color: #fff;
    text-decoration: none;
}

.panel-phone .big-phone:hover {
    color: var(--mint);
}

.contact-list {
    display: grid;
    gap: 16px;
    margin: 22px 0 0;
}

.contact-list dt {
    font-family: var(--display);
    font-weight: 500;
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mint);
}

.contact-list dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #9aa59c;
    border-radius: var(--radius-s);
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid var(--maroon-lit);
    outline-offset: 1px;
    border-color: var(--green);
}

.contact-form .btn {
    justify-self: start;
}

.form-hint {
    margin: 0;
    font-size: .88rem;
    color: var(--ink-soft);
}

.contact-sent {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-left: 5px solid var(--green);
    background: var(--glass);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.contact-form ul {
    margin: 4px 0 0;
    padding-left: 1.2em;
    color: var(--maroon);
}

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

.foot {
    background: var(--green-night);
    color: #dbe7d8;
    padding-top: clamp(44px, 6vw, 72px);
    font-size: .95rem;
}

.foot a {
    color: #fff;
}

.foot a:hover {
    color: var(--mint);
}

.foot h2 {
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 1em;
}

.foot-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 760px) {
    .foot-grid {
        grid-template-columns: 1.3fr 1fr 1.2fr .7fr;
    }
}

.foot-logo {
    display: inline-block;
    padding: 10px 14px;
    background: #fff;
    border-radius: var(--radius-s);
    margin-bottom: 16px;
}

.foot-logo img {
    width: 230px;
}

.foot-phone {
    font-weight: 800;
    font-size: 1.35rem;
    white-space: nowrap;
}

.foot-small {
    color: #b9cbb5;
}

.foot address {
    font-style: normal;
    margin-bottom: 1em;
}

.foot-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.foot-list a {
    text-decoration: none;
}

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

.foot-bottom {
    margin-top: 40px;
    padding-block: 18px 26px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: .88rem;
    color: #b9cbb5;
}

.foot-bottom p {
    margin: 0;
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px var(--gutter);
    background:
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(2, 79, 1, .06) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(2, 79, 1, .06) 39px 40px),
        var(--paper);
}

.not-found > div {
    max-width: 620px;
    padding: clamp(24px, 4vw, 44px);
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    border-top: 8px solid var(--green);
}

.not-found img {
    width: 230px;
    margin-bottom: 26px;
}

.not-found h1 {
    font-size: clamp(2rem, 1.5rem + 2.4vw, 3.2rem);
}

.not-found [lang="en"] {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.not-found h2 {
    font-size: 1.5rem;
}

@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;
    }
}

/* ---- small photos in cards: shown at their own size, never enlarged ---- */

.card-img.small {
    display: grid;
    place-items: center;
    background:
        repeating-linear-gradient(90deg, transparent 0 23px, rgba(255, 255, 255, .06) 23px 24px),
        var(--green-night);
}

.card-img.small img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid #fff;
    border-radius: 4px;
}

.photo-fig {
    margin: 0;
}

.h3 {
    font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
}

.ph-photo.own-size {
    justify-self: center;
}

.ph-photo.own-size a {
    display: inline-block;
}

.ph-photo.own-size img {
    width: auto;
    aspect-ratio: auto;
}

/* a photo smaller than its cell keeps its own size, centred on the glass tint */
.photos .own a {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
}

.photos .own img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}

/* ---- home: mosaic of real photos ---- */

.mosaic-band {
    background: var(--green-night);
    color: #eef4ec;
}

.mosaic-band a {
    color: var(--mint);
}

.mosaic-band h2 {
    margin-bottom: .2em;
}

.mosaic-lead {
    margin: 0;
    color: #dfeedc;
}

.mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: clamp(120px, 13vw, 190px);
    grid-auto-flow: dense;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mosaic li:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.mosaic li:nth-child(2) { grid-column: span 3; }
.mosaic li:nth-child(3) { grid-column: span 1; }
.mosaic li:nth-child(4) { grid-column: span 2; }
.mosaic li:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.mosaic li:nth-child(6) { grid-column: span 2; }
.mosaic li:nth-child(7) { grid-column: span 2; grid-row: span 2; }
.mosaic li:nth-child(8) { grid-column: span 2; }
.mosaic li:nth-child(9) { grid-column: span 3; }
.mosaic li:nth-child(10) { grid-column: span 3; }

.mosaic figure {
    position: relative;
    height: 100%;
    margin: 0;
}

.mosaic a {
    display: block;
    height: 100%;
    border-radius: var(--radius-s);
    overflow: hidden;
    background: var(--green-deep);
}

.mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

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

.mosaic figcaption {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 3px 9px;
    border-radius: 6px;
    background: #04210d;
    color: #fff;
    font-family: var(--display);
    font-weight: 500;
    font-size: .82rem;
    pointer-events: none;
}

@media (max-width: 760px) {
    .mosaic {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }

    .mosaic li {
        flex: 0 0 78%;
        height: 240px;
        scroll-snap-align: start;
    }
}

.brand-strip {
    margin: 18px 0 0;
}

.brand-strip img {
    width: 100%;
    max-width: 658px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
}
