/* Elmont-D.K. – light pages with dark "switchboard" bands, the lime of the logo and the blue of water.
   Fonts: Handjet (display, an LED-matrix face) and Moderustic (text), both SIL OFL, cut to Latin + Cyrillic. */

@font-face {
    font-family: "Handjet";
    src: url("/fonts/handjet.woff2") format("woff2");
    font-weight: 500 900;
    font-display: swap;
    /* no digits: Handjet's dotted zero reads as an 8 ("1990" as "1998"), so numbers come from Moderustic */
    unicode-range: U+0020-002F, U+003A-007E, U+00A0-00FF, U+0400-045F, U+2010-2026, U+2030, U+2039-203A, U+20AC, U+2116, U+2122;
}

@font-face {
    font-family: "Moderustic";
    src: url("/fonts/moderustic.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
}

:root {
    --ink: #0c1913;
    --ink-2: #13261c;
    --ink-3: #1b3427;
    --paper: #f3f5ea;
    --paper-2: #e6ebd3;
    --card: #ffffff;
    --text: #18231c;
    --muted: #4a5a4f;
    --line: #cdd5bb;
    --leaf: #3c6a0c;
    --lime: #c4e04a;
    --lime-2: #dcef7c;
    --red: #d9261c;
    --blue: #2a96d0;
    --blue-ink: #0d6596;
    --on-ink: #eef2e2;
    --on-ink-muted: #b6c4b2;
    --display: "Handjet", "Moderustic", system-ui, sans-serif;
    --body: "Moderustic", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 18px;
    --radius-lg: 28px;
    --wrap: 1200px;
    --shadow: 0 1px 2px rgb(12 25 19 / 6%), 0 12px 32px -12px rgb(12 25 19 / 22%);
    --lb-bg: rgb(8 16 12 / 94%);
    --lb-text: #eef2e2;
    --lb-accent: #c4e04a;
    --lb-accent-soft: rgb(196 224 74 / 22%);
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: clip;
}

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

a {
    color: var(--leaf);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

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

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

h1,
h2,
h3 {
    line-height: 1.1;
    margin: 0 0 .5em;
}

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);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--lime);
    font-weight: 700;
    border-radius: 10px;
}

.skip:focus {
    top: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 48px;
    padding: .7em 1.3em;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 700 1rem/1.2 var(--body);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, background-color .2s, color .2s, border-color .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-lime {
    background: var(--lime);
    color: var(--ink);
}

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

.btn-line {
    border-color: rgb(238 242 226 / 55%);
    color: var(--on-ink);
}

.btn-line:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.btn-ink {
    background: var(--ink);
    color: var(--lime);
}

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

.btn-ghost {
    color: var(--on-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    font-weight: 700;
    color: var(--leaf);
    text-decoration: none;
}

.arrow-link::after {
    content: "";
    width: 1.1em;
    height: .7em;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 6h17l-5-5 1.4-1.4L21 7l-7.6 7.4L12 13l5-5H0z'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s;
}

.arrow-link:hover::after {
    transform: translateX(4px);
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(243 245 234 / 88%);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgb(12 25 19 / 10%);
}

.top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-block: 8px;
}

.brand {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
    border-radius: 8px;
}

.brand img {
    display: block;
    height: 46px;
    width: auto;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    min-height: 44px;
    padding: .45em 1em;
    border-radius: 999px;
    background: var(--ink);
    color: var(--lime);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    background: var(--ink-3);
}

.lang {
    display: flex;
    gap: 2px;
    font-size: .9rem;
    font-weight: 700;
}

.lang a,
.lang span {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    min-height: 38px;
    border-radius: 999px;
    text-decoration: none;
}

.lang a {
    color: var(--text);
}

.lang a:hover {
    background: var(--paper-2);
}

.lang span {
    background: var(--paper-2);
    color: var(--leaf);
}

.nav {
    border-top: 1px solid rgb(12 25 19 / 7%);
}

.nav-row {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block: 6px;
}

.nav-row::-webkit-scrollbar {
    display: none;
}

.nav a {
    flex: 0 0 auto;
    position: relative;
    padding: .45em .85em;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    font-size: .98rem;
    text-decoration: none;
    white-space: nowrap;
}

.nav a:hover {
    background: var(--paper-2);
}

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

@media (min-width: 700px) {
    .brand img {
        height: 52px;
    }
}

@media (min-width: 1100px) {
    .top-row {
        gap: 18px;
    }
}

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

.hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background:
        radial-gradient(60% 70% at 85% 10%, rgb(196 224 74 / 16%), transparent 70%),
        radial-gradient(50% 60% at 0% 100%, rgb(42 150 208 / 18%), transparent 70%),
        var(--ink);
    color: var(--on-ink);
    padding-block: clamp(36px, 7vw, 88px) clamp(40px, 7vw, 96px);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(0deg, rgb(238 242 226 / 5%) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgb(238 242 226 / 5%) 0 1px, transparent 1px 40px);
    mask-image: linear-gradient(180deg, #000 30%, transparent);
}

.hero-grid {
    display: grid;
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    margin-bottom: 1.1em;
    color: var(--lime);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgb(196 224 74 / 22%), 0 0 18px var(--lime);
}

.hero h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.9rem, 8.4vw, 5.6rem);
    line-height: .92;
    letter-spacing: .005em;
    margin-bottom: .3em;
    text-wrap: balance;
}

.slogan {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    line-height: 1;
    color: var(--lime);
    margin-bottom: .9em;
}

.hero .lead {
    max-width: 38em;
    color: var(--on-ink-muted);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.6em;
}

.hero-scheme {
    margin: 0;
    display: grid;
    gap: 18px;
}

.legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px 18px;
    counter-reset: lg;
    font-size: .98rem;
}

.legend li {
    counter-increment: lg;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend li::before {
    content: counter(lg);
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--lime);
    color: var(--lime);
    font-weight: 800;
    font-size: .85rem;
}

.legend a {
    color: var(--on-ink);
    text-decoration-color: rgb(238 242 226 / 35%);
}

.legend a:hover {
    color: var(--lime);
}

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

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

/* the schematic */

.scheme {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.scheme path,
.scheme rect {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scheme .soil {
    stroke: none;
    opacity: .5;
}

.scheme .soil-dash {
    stroke: rgb(238 242 226 / 22%);
    stroke-width: 2;
}

.scheme .s-line,
.scheme .s-house {
    stroke: rgb(238 242 226 / 60%);
    stroke-width: 3;
}

.scheme .s-house {
    stroke: var(--on-ink);
    stroke-width: 4;
}

.scheme .s-zone {
    stroke: var(--lime);
    stroke-width: 2;
    stroke-dasharray: .012 .012;
    opacity: .55;
}

.scheme .s-water-table {
    stroke: var(--blue);
    stroke-width: 2.5;
    opacity: .8;
}

.scheme .s-elec {
    stroke: var(--lime);
    stroke-width: 3.5;
}

.scheme .s-pipe {
    stroke: var(--blue);
    stroke-width: 6;
}

.scheme .s-head {
    fill: var(--lime);
    stroke: none;
}

.scheme .s-spark {
    stroke: var(--red);
    stroke-width: 3;
}

.scheme .s-board {
    fill: var(--ink-3);
    stroke: var(--lime);
    stroke-width: 3;
}

.scheme .s-board-lines {
    stroke: var(--lime);
    stroke-width: 3;
    opacity: .7;
}

.scheme .s-pump {
    fill: var(--blue);
    stroke: var(--on-ink);
    stroke-width: 2;
}

.scheme .s-tank {
    fill: var(--blue);
    stroke: var(--on-ink);
    stroke-width: 2.5;
}

.scheme .s-tap {
    fill: var(--on-ink);
    stroke: none;
}

.scheme .s-drop {
    fill: var(--blue);
    stroke: none;
}

.scheme .flow {
    stroke-width: 3.5;
    stroke-dasharray: 4 14;
    opacity: 0;
}

.scheme .flow-elec,
.scheme .flow-earth {
    stroke: #fffbd0;
}

.scheme .flow-water {
    stroke: #d6f1ff;
    stroke-width: 3;
}

.scheme .s-num circle {
    fill: var(--lime);
    stroke: var(--ink);
    stroke-width: 3;
}

.scheme .s-num text {
    fill: var(--ink);
    font: 800 16px/1 var(--body);
    text-anchor: middle;
}

@media (prefers-reduced-motion: no-preference) {
    .scheme .draw {
        stroke-dasharray: 1;
        animation: draw 1s cubic-bezier(.5, 0, .2, 1) var(--d, 0s) both;
    }

    .scheme .s-zone.draw {
        stroke-dasharray: .012 .012;
        animation: zone 1.4s ease-out var(--d, 0s) both;
    }

    .scheme .s-head,
    .scheme .s-board,
    .scheme .s-board-lines,
    .scheme .s-pump,
    .scheme .s-tank,
    .scheme .s-tap {
        animation: pop .5s ease-out both;
    }

    .scheme .s-head { animation-delay: 1.1s; }
    .scheme .s-board, .scheme .s-board-lines { animation-delay: 1.5s; }
    .scheme .s-pump { animation-delay: 1.8s; }
    .scheme .s-tank { animation-delay: 2.2s; }
    .scheme .s-tap { animation-delay: 2.5s; }

    .scheme .s-drop {
        animation: drip 1.8s ease-in 3.2s infinite both;
    }

    .scheme .s-spark {
        animation: spark 3.2s steps(1) 1.4s infinite both;
    }

    .scheme .s-spark-2 {
        animation-delay: 2.1s;
    }

    .scheme .flow {
        animation: flow-in .6s ease-out 3s forwards, flow 1.1s linear 3s infinite;
    }

    .scheme .flow-water {
        animation-duration: .6s, 1.6s;
    }

    .scheme .s-num {
        animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s) both;
        transform-box: fill-box;
        transform-origin: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scheme .flow {
        opacity: .9;
    }
}

@keyframes draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

@keyframes zone {
    from { opacity: 0; }
    to { opacity: .55; }
}

@keyframes pop {
    from { opacity: 0; transform: scale(.6); }
    to { opacity: 1; transform: none; }
}

@keyframes flow-in {
    to { opacity: .95; }
}

@keyframes flow {
    to { stroke-dashoffset: -18; }
}

@keyframes spark {
    0%, 12%, 30%, 100% { opacity: 0; }
    6%, 20% { opacity: 1; }
}

@keyframes drip {
    0% { opacity: 0; transform: translateY(-4px); }
    25% { opacity: 1; }
    80% { opacity: 1; transform: translateY(26px); }
    100% { opacity: 0; transform: translateY(30px); }
}

/* ---- bands and sections ---- */

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

.band-tint {
    background: var(--paper-2);
}

.section-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.3rem, 5.5vw, 3.6rem);
    line-height: .95;
    letter-spacing: .005em;
    color: var(--ink);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 26px;
}

.section-head .section-title {
    margin: 0;
}

/* two directions */

.duo {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.duo-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 44px);
    border-radius: var(--radius-lg);
}

.duo-card h3 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
}

.duo-card p {
    max-width: 34em;
}

.duo-num {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(4.5rem, 10vw, 7rem);
    line-height: .8;
    margin-bottom: .2em !important;
}

.duo-services {
    background: var(--lime);
    color: var(--ink);
}

.duo-services .duo-num {
    color: var(--ink);
    opacity: .9;
}

.duo-services .arrow-link {
    color: var(--ink);
}

.duo-trade {
    background: var(--card);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.duo-trade .duo-num {
    color: var(--blue-ink);
}

@media (min-width: 820px) {
    .duo {
        grid-template-columns: 1.1fr 1fr;
    }
}

/* the services strip */

.strip {
    list-style: none;
    margin: 0;
    padding: 4px max(16px, calc((100% - var(--wrap)) / 2)) 18px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 290px);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(16px, calc((100% - var(--wrap)) / 2));
    scrollbar-color: var(--leaf) transparent;
}

.strip-item {
    scroll-snap-align: start;
}

.strip-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    color: var(--on-ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .25s;
}

.strip-item a:hover {
    transform: translateY(-4px);
}

.strip-item img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.strip-num {
    padding: 14px 18px 0;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--lime);
}

.strip-name {
    padding: 4px 18px 18px;
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.3;
}

@media (min-width: 1100px) {
    .strip {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, 1fr);
        overflow: visible;
        width: min(100% - 32px, var(--wrap));
        margin-inline: auto;
        padding-inline: 0;
    }

    .strip-item:first-child {
        grid-column: span 2;
    }

    .strip-item:first-child img {
        aspect-ratio: auto;
        flex: 1;
        min-height: 0;
        max-height: 248px;
    }
}

/* the acrostic */

.acro {
    background:
        radial-gradient(70% 90% at 100% 0%, rgb(196 224 74 / 10%), transparent 60%),
        var(--ink);
    color: var(--on-ink);
    padding-block: clamp(56px, 9vw, 110px);
}

.acro-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    color: var(--on-ink);
    margin-bottom: 1.2em;
}

.acro-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
}

.acro-list li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 2px solid rgb(238 242 226 / 14%);
    padding-top: 12px;
}

.acro-letter {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(5rem, 15vw, 9.5rem);
    line-height: .8;
    color: var(--lime);
    text-shadow: 0 0 28px rgb(196 224 74 / 35%);
}

.acro-list li > span:last-child {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--on-ink);
    overflow-wrap: anywhere;
}

.acro-foot {
    margin: 2.4em 0 0;
    max-width: 40em;
    font-size: 1.15rem;
    color: var(--on-ink-muted);
}

@media (min-width: 900px) {
    .acro-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .acro-letter {
            animation: led linear both;
            animation-timeline: view();
            animation-range: entry 10% cover 40%;
        }
    }
}

@keyframes led {
    from {
        color: rgb(196 224 74 / 18%);
        text-shadow: none;
    }
}

/* shop and rent cards */

.visit {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.visit-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    transition: transform .25s;
}

.visit-card:hover {
    transform: translateY(-4px);
}

.visit-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.visit-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 26px;
}

.visit-kicker {
    color: var(--blue-ink);
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.visit-title {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
}

@media (min-width: 820px) {
    .visit {
        grid-template-columns: 1fr 1fr;
    }
}

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

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background:
        radial-gradient(55% 80% at 100% 0%, rgb(196 224 74 / 14%), transparent 70%),
        var(--ink);
    color: var(--on-ink);
    padding-block: clamp(40px, 7vw, 80px);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(0deg, rgb(238 242 226 / 5%) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgb(238 242 226 / 5%) 0 1px, transparent 1px 40px);
    mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.page-hero h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: .92;
    margin-bottom: .25em;
}

.page-hero .lead {
    max-width: 40em;
    color: var(--on-ink-muted);
    font-size: 1.12rem;
    margin: 0;
}

.page-hero .eyebrow {
    margin-bottom: .8em;
}

.prose {
    max-width: 44em;
}

.prose h2 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    color: var(--ink);
    margin-top: 1.4em;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.55;
}

/* about */

.about-grid {
    display: grid;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.fact {
    position: relative;
    padding: 26px 28px 28px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: var(--on-ink);
    overflow: hidden;
}

.fact-num {
    display: block;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(5rem, 14vw, 8rem);
    line-height: .85;
    color: var(--lime);
}

.fact p {
    margin: .6em 0 0;
    color: var(--on-ink-muted);
}

.about-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

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

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

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

.directions {
    display: grid;
    gap: 14px;
    margin: 18px 0 1.4em;
    padding: 0;
    list-style: none;
}

.directions li {
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 6px solid var(--lime);
}

.directions li:last-child {
    border-left-color: var(--blue);
}

.directions strong {
    display: block;
    font-size: 1.1rem;
    color: var(--ink);
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1.35fr 1fr;
    }
}

/* services and products list */

.items {
    display: grid;
    gap: clamp(18px, 3vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: item;
}

.item {
    counter-increment: item;
    display: grid;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.item-photo {
    display: block;
    position: relative;
}

.item-photo img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.item-body {
    padding: 22px 24px 26px;
    align-self: center;
}

.item-body::before {
    content: counter(item, decimal-leading-zero);
    display: block;
    font-family: var(--display);
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--blue-ink);
    margin-bottom: 6px;
}

.item h2 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    line-height: 1;
    color: var(--ink);
}

.item p {
    margin: 0;
    font-size: 1.08rem;
}

.item p + p {
    margin-top: .8em;
}

@media (min-width: 760px) {
    .item {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    }

    .item:nth-child(even) .item-photo {
        order: 2;
    }

    .item-body {
        padding: 30px 36px;
    }
}

.kv {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 20px;
    margin: 0 0 clamp(28px, 5vw, 48px);
    padding: 22px 26px;
    border-radius: var(--radius-lg);
    background: var(--lime);
    color: var(--ink);
}

.kv-num {
    font-family: var(--body);
    font-weight: 800;
    letter-spacing: -.03em;
    font-size: clamp(3.6rem, 10vw, 5.5rem);
    line-height: .85;
}

.kv p {
    margin: 0;
    max-width: 30em;
    font-weight: 600;
    font-size: 1.1rem;
}

/* photo grid: rent and gallery */

.photos {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 3 160px;
    column-gap: 14px;
}

.photos li {
    break-inside: avoid;
    margin-bottom: 14px;
}

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

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

.photos img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .4s, filter .4s;
}

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

.rent-grid {
    display: grid;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.rent-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rent-photos li:first-child {
    grid-column: span 2;
}

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

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

.rent-photos a:hover img {
    transform: scale(1.03);
}

.rent-card {
    padding: 26px 28px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: var(--on-ink);
}

.rent-card h2 {
    font-family: var(--body);
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    line-height: .95;
    color: var(--lime);
}

.rent-card p {
    color: var(--on-ink);
}

.rent-card .btn {
    margin-top: 6px;
}

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

    .rent-card {
        position: sticky;
        top: 140px;
    }
}

/* contact */

.contact-grid {
    display: grid;
    gap: 22px;
    align-items: start;
}

.panel {
    padding: clamp(22px, 4vw, 36px);
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.panel h2 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 2.6rem);
    line-height: 1;
    color: var(--ink);
}

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

.contact-list div {
    display: grid;
    gap: 2px;
}

.contact-list dt {
    color: var(--blue-ink);
    font-weight: 700;
    font-size: .86rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.contact-list dd {
    margin: 0;
}

.big-phone {
    display: inline-block;
    font-weight: 800;
    font-size: clamp(1.5rem, 5vw, 1.9rem);
    line-height: 1.2;
    color: var(--ink);
    text-decoration: none;
}

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

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

.person {
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--on-ink);
}

.person-role {
    display: block;
    color: var(--lime);
    font-weight: 700;
    font-size: .86rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.person-name {
    display: block;
    margin: 4px 0 8px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1;
}

.person a {
    color: var(--on-ink);
    font-weight: 600;
}

.person a:hover {
    color: var(--lime);
}

.person p {
    margin: 0;
}

.team-head {
    margin-top: clamp(36px, 6vw, 60px);
}

@media (min-width: 760px) {
    .team {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 940px) {
    .contact-grid {
        grid-template-columns: 1fr 1.15fr;
    }
}

/* form */

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

.contact-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: .95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .75em .9em;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fbfcf6;
    color: var(--text);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue-ink);
    box-shadow: 0 0 0 3px rgb(13 101 150 / 20%);
}

.contact-form ::placeholder {
    color: #67756b;
}

.contact-form ul {
    margin: 4px 0 0;
    padding-left: 1.1em;
    color: #a3180f;
    font-size: .92rem;
}

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

.form-hint {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.contact-sent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--lime);
    color: var(--ink);
}

.contact-sent strong {
    display: block;
}

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

.call-band {
    background: var(--lime);
    color: var(--ink);
    padding-block: clamp(36px, 6vw, 64px);
}

.call-band-row {
    display: grid;
    gap: 20px;
    align-items: center;
}

.call-band h2 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    line-height: .95;
    margin-bottom: .3em;
}

.call-band p {
    margin: 0;
    max-width: 34em;
    font-size: 1.08rem;
}

.call-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.call-band .btn-lime {
    background: var(--ink);
    color: var(--lime);
}

.call-band .btn-lime:hover {
    background: var(--ink-3);
}

.call-band .btn-line {
    border-color: var(--ink);
    color: var(--ink);
}

.call-band .btn-line:hover {
    background: var(--ink);
    color: var(--lime);
}

.call-band .btn-ghost {
    color: var(--ink);
}

@media (min-width: 900px) {
    .call-band-row {
        grid-template-columns: 1fr auto;
    }
}

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

.foot {
    background: var(--ink);
    color: var(--on-ink-muted);
    padding-top: clamp(44px, 7vw, 72px);
    font-size: .98rem;
}

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

.foot h2 {
    margin-bottom: .7em;
    color: var(--lime);
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

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

.foot address {
    font-style: normal;
}

.foot-brand img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
}

.foot-brand p {
    max-width: 26em;
}

.foot-phone {
    font-weight: 700;
    font-size: 1.12rem;
}

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

.foot-bottom {
    margin-top: 36px;
    padding-block: 20px 26px;
    border-top: 1px solid rgb(238 242 226 / 14%);
    font-size: .9rem;
}

.foot-bottom p {
    margin: 0;
}

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

@media (min-width: 1040px) {
    .foot-grid {
        grid-template-columns: 1.5fr 1fr 1.2fr .8fr;
    }
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        radial-gradient(60% 60% at 80% 10%, rgb(196 224 74 / 30%), transparent 70%),
        var(--paper);
}

.not-found > div {
    max-width: 560px;
}

.not-found img {
    display: block;
    width: 320px;
    max-width: 100%;
    height: auto;
    margin-bottom: 26px;
}

.not-found h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.6rem, 8vw, 4rem);
    line-height: .95;
    color: var(--ink);
}

.not-found h2 {
    font-family: var(--display);
    font-weight: 800;
    font-size: 2rem;
    color: var(--ink);
    margin-top: 1.4em;
}

/* ---- motion ---- */

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