/* Нелисат – the press proof on the logo's black.
   Plate black #020e0e (the exact ground of the Nelisat logo), the logo's electric blue and signal red, and the
   eight inks of the studio's Epson Stylus Pro GS6000 (C, M, Y, K, Lc, Lm, Orange, Green) as the only other
   colours; paper white for the light bands. Dela Gothic One for display, IBM Plex Sans for text, IBM Plex Mono
   for specs and ink names. One theme. */

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

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

@font-face {
    font-family: "IBM Plex Mono";
    src: url("/fonts/ibm-plex-mono.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

:root {
    --plate: #020e0e;
    --plate-2: #0a1a1b;
    --plate-3: #122627;
    --line: #23393a;
    --text: #eef3f2;
    --muted: #a9bab9;
    --blue: #1f5cff;
    --blue-light: #7ea3ff;
    --red: #e3120b;
    --red-dark: #b80d07;
    --paper: #f4f2ec;
    --paper-2: #e9e6dc;
    --ink: #0c1515;
    --ink-muted: #49524f;

    --c: #00a0e3;
    --m: #e5007d;
    --y: #ffe400;
    --k: #1d2222;
    --lc: #7fd3f2;
    --lm: #f5a3c7;
    --o: #ff7c1f;
    --g: #00a85a;

    --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
    --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

    --radius: 18px;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
    margin: 0;
    font: 400 1.0625rem/1.65 var(--sans);
    color: var(--text);
    background: var(--plate);
    overflow-x: hidden;
}

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

a {
    color: var(--blue-light);
    text-underline-offset: 3px;
}

a:hover {
    color: #fff;
}

:focus-visible {
    outline: 3px solid var(--y);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    margin: 0 0 0.5em;
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.3rem);
}

h3 {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.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;
    border-radius: 8px;
    background: var(--y);
    color: var(--ink);
    font-weight: 700;
}

.skip:focus {
    top: 12px;
}

.eyebrow {
    margin: 0 0 14px;
    font: 500 0.8rem/1.3 var(--mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lc);
}

.lead,
.section-lead {
    font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
    color: var(--muted);
    max-width: 40rem;
}

/* ink classes: used for swatches and numbers */
.ink-c { --ink-col: var(--c); }
.ink-m { --ink-col: var(--m); }
.ink-y { --ink-col: var(--y); }
.ink-k { --ink-col: var(--k); }
.ink-lc { --ink-col: var(--lc); }
.ink-lm { --ink-col: var(--lm); }
.ink-o { --ink-col: var(--o); }
.ink-g { --ink-col: var(--g); }

/* ---- buttons and links ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 700 1rem/1.2 var(--sans);
    text-decoration: none;
    color: #fff;
    background: var(--red);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

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

.btn-ghost {
    background: transparent;
    border-color: rgba(238, 243, 242, 0.45);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(238, 243, 242, 0.08);
    border-color: var(--text);
}

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

.arrow-link::after {
    content: "\2192";
    transition: transform 0.2s ease;
}

.arrow-link:hover {
    color: #fff;
}

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

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

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

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

.brand {
    display: block;
    flex: 0 0 auto;
    margin-right: auto;
}

.brand img {
    display: block;
    width: clamp(140px, 30vw, 200px);
    height: auto;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.nav a:hover {
    background: var(--plate-3);
    color: #fff;
}

.nav a[aria-current="page"] {
    background: var(--text);
    color: var(--plate);
}

.lang {
    display: flex;
    gap: 2px;
    font: 500 0.85rem/1 var(--mono);
}

.lang a,
.lang span {
    padding: 8px 9px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
}

.lang span {
    color: var(--text);
    background: var(--plate-3);
}

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

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font: 500 0.95rem/1 var(--mono);
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    color: #fff;
    background: var(--red-dark);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.menu-bars {
    position: relative;
}

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

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .nav {
        order: 10;
        flex-basis: 100%;
        flex-direction: column;
        padding-bottom: 8px;
    }

    .js-menu .nav {
        display: none;
    }

    .js-menu .nav.is-open,
    .nav:target {
        display: flex;
    }

    .nav a {
        padding: 12px 14px;
        border-radius: 10px;
    }
}

@media (max-width: 520px) {
    .call {
        order: 5;
        flex: 1 1 100%;
        justify-content: center;
    }

    .brand {
        margin-right: auto;
    }
}

/* ---- hero: the press proof ---- */

.hero {
    position: relative;
    padding-block: clamp(40px, 7vw, 96px) clamp(36px, 5vw, 64px);
    background:
        radial-gradient(60% 50% at 85% 10%, rgba(31, 92, 255, 0.22), transparent 70%),
        radial-gradient(50% 45% at 0% 100%, rgba(227, 18, 11, 0.16), transparent 70%),
        var(--plate);
    overflow: hidden;
}

.proof-marks {
    position: absolute;
    inset: 14px;
    pointer-events: none;
}

.proof-marks svg {
    position: absolute;
    width: 40px;
    height: 40px;
    fill: none;
    stroke: rgba(169, 186, 185, 0.55);
    stroke-width: 1.2;
}

.crop-tl { left: 0; top: 0; }
.crop-tr { right: 0; top: 0; }
.crop-bl { left: 0; bottom: 0; }
.crop-br { right: 0; bottom: 0; }
.reg-l { left: 0; top: 50%; margin-top: -20px; }
.reg-r { right: 0; top: 50%; margin-top: -20px; }

@media (max-width: 640px) {
    .reg {
        display: none;
    }
}

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

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

.print-pass {
    position: relative;
    margin-bottom: 24px;
    font-size: clamp(2.1rem, 0.9rem + 4.4vw, 4.4rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.pass-line {
    display: block;
}

.cut {
    color: var(--text);
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px var(--text);
}

.inked {
    color: var(--y);
    background: linear-gradient(90deg, var(--c), var(--m) 30%, var(--y) 55%, var(--o) 75%, var(--g));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.print-head {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .pass-line {
        clip-path: inset(0 100% 0 0);
        animation: pass 1.1s cubic-bezier(0.6, 0, 0.3, 1) forwards;
    }

    .pass-line:nth-child(2) {
        animation-delay: 0.55s;
    }

    .pass-line:nth-child(3) {
        animation-delay: 1.1s;
    }

    .print-head {
        position: absolute;
        top: -6%;
        bottom: -6%;
        left: 0;
        display: flex;
        width: 30px;
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 0 0 2px var(--plate), 0 0 40px rgba(127, 211, 242, 0.5);
        opacity: 0;
        animation: head 2.2s cubic-bezier(0.6, 0, 0.3, 1) 0.05s forwards;
    }

    .print-head i {
        flex: 1;
        background: var(--ink-col);
    }

    .print-head .ink-k {
        background: #4a5252;
    }
}

@keyframes pass {
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes head {
    0% {
        left: 0;
        opacity: 1;
    }

    90% {
        left: calc(100% - 30px);
        opacity: 1;
    }

    100% {
        left: calc(100% - 30px);
        opacity: 0;
    }
}

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

.hero-proof {
    position: relative;
    margin: 0;
    padding: 12px 12px 0;
    background: var(--paper);
    border-radius: 6px;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
    transform: rotate(1.6deg);
    transition: transform 0.4s ease;
}

.hero-proof:hover {
    transform: rotate(0deg);
}

.hero-proof a {
    display: block;
}

.hero-proof img {
    display: block;
    width: 100%;
    border-radius: 2px;
}

.hero-proof figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 12px 4px 14px;
    font: 500 0.8rem/1.4 var(--mono);
    color: var(--ink-muted);
}

.hero-proof figcaption span {
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.inkbar {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    margin-top: clamp(40px, 6vw, 72px);
    border-radius: 8px;
    overflow: hidden;
}

.inkbar span {
    padding: 10px 6px 8px;
    background: var(--ink-col);
    color: var(--ink);
    font: 500 0.78rem/1 var(--mono);
    text-align: center;
}

.inkbar .ink-m,
.inkbar .ink-k {
    color: #fff;
}

.inkbar .ink-k {
    box-shadow: inset 0 0 0 1px #3a4242;
}

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

.ruler {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    background:
        repeating-linear-gradient(90deg, rgba(169, 186, 185, 0.6) 0 1px, transparent 1px 2.5%) top / 100% 7px no-repeat,
        repeating-linear-gradient(90deg, rgba(169, 186, 185, 0.9) 0 1px, transparent 1px 25%) top / calc(100% + 1px) 14px no-repeat;
    font: 500 0.75rem/1 var(--mono);
    color: var(--muted);
}

.ruler-note {
    margin: 10px 0 0;
    font: 500 0.8rem/1.4 var(--mono);
    color: var(--muted);
}

/* ---- ticker ---- */

.ticker {
    overflow: hidden;
    background: var(--y);
    color: var(--ink);
    border-block: 2px solid var(--plate);
}

.ticker-track {
    display: flex;
    width: max-content;
}

.ticker span {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 14px 22px 14px 0;
    font: 400 1.05rem/1 var(--display);
    white-space: nowrap;
}

.ticker span::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--m);
}

.ticker span:nth-child(3n)::after {
    background: var(--c);
}

.ticker span:nth-child(3n + 1)::after {
    background: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
    .ticker-track {
        animation: ticker 36s linear infinite;
    }
}

@keyframes ticker {
    to {
        transform: translateX(-50%);
    }
}

/* ---- bands ---- */

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

.band-tight {
    padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px);
}

.band-paper {
    background: var(--paper);
    color: var(--ink);
}

.band-paper .eyebrow {
    color: #0b6e9c;
}

.band-paper .section-lead,
.band-paper p {
    color: var(--ink-muted);
}

.band-paper h2,
.band-paper h3 {
    color: var(--ink);
}

.band-paper .arrow-link {
    color: #0b5f86;
}

.band-paper .arrow-link:hover {
    color: var(--ink);
}

.band-ink {
    background: var(--plate-2);
    border-block: 1px solid var(--line);
}

.section-head {
    max-width: 48rem;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px 24px;
    max-width: none;
}

.section-head-row h2 {
    margin-bottom: 0;
}

/* ---- bento of services ---- */

.bento {
    display: grid;
    gap: 16px;
}

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

    .tile-print {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1040px) {
    .bento {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: minmax(250px, auto);
    }

    .tile-print {
        grid-column: span 3;
        grid-row: span 2;
    }

    .tile-laser,
    .tile-mech {
        grid-column: span 3;
    }

    .tile-vinyl,
    .tile-letters {
        grid-column: span 3;
    }
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    padding: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--plate);
    isolation: isolate;
}

.tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(2, 14, 14, 0.1) 20%, rgba(2, 14, 14, 0.92) 78%);
}

.tile:hover {
    color: #fff;
}

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

.band-paper .tile h3,
.tile h3 {
    margin-bottom: 6px;
    color: #fff;
}

.band-paper .tile p,
.tile p {
    margin: 0;
    color: #dfe7e6;
    max-width: 32rem;
}

.tile-no {
    position: absolute;
    top: 18px;
    left: 20px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--plate);
    font: 500 0.8rem/1 var(--mono);
    color: var(--y);
}

.spec {
    align-self: flex-start;
    margin-top: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--y);
    color: var(--ink);
    font: 500 0.85rem/1 var(--mono);
}

.tile-print h3 {
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
}

/* ---- the cut list ---- */

.choose {
    display: grid;
    gap: 36px;
}

@media (min-width: 900px) {
    .choose {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: start;
    }
}

.cutlist {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: cut;
    display: grid;
    gap: 10px;
}

.cutlist li {
    position: relative;
    padding: 16px 18px 16px 64px;
    border: 1.5px dashed rgba(169, 186, 185, 0.4);
    border-radius: 12px;
    counter-increment: cut;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cutlist li::before {
    content: counter(cut, decimal-leading-zero);
    position: absolute;
    left: 18px;
    top: 16px;
    font: 500 0.95rem/1.65 var(--mono);
    color: var(--o);
}

.cutlist li:hover {
    border-color: var(--lc);
    background: var(--plate-2);
}

/* ---- photo strip ---- */

.strip {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0 var(--gutter) 12px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-color: var(--line) transparent;
}

.strip li {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

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

.strip img {
    display: block;
    width: auto;
    height: clamp(220px, 30vw, 320px);
    transition: transform 0.4s ease;
}

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

@media (min-width: 1280px) {
    .strip {
        padding-inline: calc((100vw - var(--wrap)) / 2);
        scroll-padding-inline: calc((100vw - var(--wrap)) / 2);
    }
}

/* ---- trail ---- */

.duo {
    display: grid;
    gap: 40px;
}

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

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

.trail li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 18px;
    padding: 20px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 1px 0 var(--paper-2);
}

.trail-no {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ink-col);
    color: var(--ink);
    font: 400 1.3rem/1 var(--display);
}

.trail .ink-m {
    color: #fff;
}

.trail h3 {
    margin: 4px 0 2px;
}

.band-paper .trail p {
    margin: 0;
}

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

.call-band {
    padding-block: clamp(48px, 7vw, 88px);
    background:
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.06) 0 14px, transparent 14px 28px),
        var(--red);
    color: #fff;
}

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

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

.call-band h2 {
    margin-bottom: 10px;
}

.call-band p {
    margin: 0;
    max-width: 38rem;
    color: #fff;
}

.call-band p a {
    color: #fff;
    font-weight: 700;
}

.call-band p a:hover {
    color: var(--y);
}

.call-phones {
    display: grid;
    gap: 10px;
    justify-items: start;
}

@media (min-width: 900px) {
    .call-phones {
        justify-items: end;
    }
}

.call-big {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--plate);
    color: #fff;
    font: 400 clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem)/1.1 var(--display);
    text-decoration: none;
    white-space: nowrap;
}

.call-big:hover {
    color: var(--y);
}

.call-small {
    color: #fff;
    font: 500 1.1rem/1.2 var(--mono);
}

.call-small:hover {
    color: var(--y);
}

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

.page-hero {
    position: relative;
    padding-block: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 56px);
    background:
        radial-gradient(60% 60% at 100% 0%, rgba(31, 92, 255, 0.2), transparent 70%),
        var(--plate);
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 1.3rem + 4vw, 4.4rem);
    max-width: 16ch;
}

.page-hero .inkline {
    margin-top: 32px;
    max-width: 320px;
}

.inkline {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    height: 8px;
}

.inkline span {
    background: var(--ink-col);
}

.inkline .ink-k {
    background: #3a4242;
}

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

.jump a {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.jump a:hover {
    border-color: var(--lc);
    color: #fff;
}

/* services */

.svc {
    display: grid;
    gap: 24px 48px;
    padding-block: clamp(48px, 7vw, 88px);
    border-top: 1px solid var(--line);
    scroll-margin-top: 90px;
}

.svc:first-child {
    border-top: 0;
}

@media (min-width: 960px) {
    .svc {
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    }

    .svc .thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
}

.svc-head .svc-no {
    display: inline-block;
    margin-bottom: 14px;
    font: 500 0.9rem/1 var(--mono);
    color: var(--ink-col, var(--y));
}

/* magenta is too dark for small text on the plate: its light ink instead */
.svc.ink-m .svc-no {
    color: var(--lm);
}

.svc-head h2 {
    font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
    overflow-wrap: break-word;
    hyphens: auto;
}

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

.specs li {
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--plate-3);
    font: 500 0.85rem/1.2 var(--mono);
    color: var(--text);
}

.specs li strong {
    color: var(--y);
    font-weight: 500;
}

.svc-body p {
    color: #d6dfde;
}

.svc-body .note {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.thumbs a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: var(--plate-2);
}

.thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.thumbs a:hover img {
    transform: scale(1.06);
}

/* portfolio */

.gallery-group {
    padding-block: clamp(36px, 5vw, 64px);
    border-top: 1px solid var(--line);
    scroll-margin-top: 90px;
}

.gallery-group h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
}

.gallery-group h2 small {
    font: 500 0.85rem/1 var(--mono);
    color: var(--muted);
}

.gallery-group .thumbs {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

@media (min-width: 900px) {
    .gallery-group .thumbs {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* contact */

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

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

.card {
    padding: clamp(22px, 3vw, 36px);
    border-radius: var(--radius);
    background: var(--plate-2);
    border: 1px solid var(--line);
}

.card h2 {
    font-size: 1.5rem;
}

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

.phones a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--plate-3);
    color: #fff;
    font: 400 clamp(1.25rem, 1rem + 1vw, 1.6rem)/1.1 var(--display);
    text-decoration: none;
}

.phones .main a {
    background: var(--red);
}

.phones small {
    font: 500 0.8rem/1 var(--mono);
    color: #dfe7e6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.phones .main small {
    color: #fff;
}

.phones a:hover {
    outline: 2px solid var(--text);
}

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

.contact-list dt {
    font: 500 0.8rem/1.3 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lc);
}

.contact-list dd {
    margin: 4px 0 0;
}

.office-photo {
    margin: 24px 0 0;
}

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

.office-photo img {
    display: block;
    width: 100%;
}

.office-photo figcaption {
    margin-top: 8px;
    font: 500 0.8rem/1.4 var(--mono);
    color: var(--muted);
}

/* form */

.contact-form > div {
    margin-bottom: 18px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--plate);
    color: var(--text);
    font: inherit;
}

.contact-form textarea::placeholder {
    color: #8c9d9c;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--lc);
    outline: 2px solid var(--lc);
    outline-offset: 1px;
}

.contact-form ul {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: var(--lm);
}

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

.contact-sent {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(0, 168, 90, 0.16);
    border: 1px solid var(--g);
}

.contact-sent strong {
    display: block;
}

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

.foot {
    background: var(--plate);
    border-top: 1px solid var(--line);
}

.foot .inkline {
    height: 6px;
}

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

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

.foot-logo {
    display: block;
    width: min(260px, 100%);
    height: auto;
    margin-bottom: 14px;
}

.foot-brand p {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 30rem;
}

.foot h2 {
    margin-bottom: 12px;
    font: 500 0.8rem/1.3 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lc);
}

.foot address {
    font-style: normal;
}

.foot p {
    margin-bottom: 8px;
}

.foot-phone {
    color: var(--text);
    font: 500 1.05rem/1.4 var(--mono);
}

.foot-small {
    color: var(--muted);
    font-size: 0.85rem;
}

.foot-bottom {
    padding-block: 18px 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.foot-bottom p {
    margin: 0;
}

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

.not-found {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 40px var(--gutter);
    background:
        radial-gradient(60% 50% at 85% 10%, rgba(31, 92, 255, 0.22), transparent 70%),
        var(--plate);
}

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

.not-found img {
    display: block;
    width: min(300px, 100%);
    height: auto;
    margin-bottom: 28px;
}

.not-found h1 {
    font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
}

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

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

/* ---- scroll reveals ---- */

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .tile,
        .cutlist li,
        .trail li,
        .svc,
        .gallery-group {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

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

    to {
        opacity: 1;
        transform: none;
    }
}

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

    .hero-proof {
        transform: none;
    }
}
/* ---- 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;
    }
}

/* the lightbox in the site's colours: plate black, the cyan ink as the focus ring */
.lightbox {
    --lb-bg: rgba(2, 14, 14, 0.96);
    --lb-text: #eef3f2;
    --lb-accent: #7fd3f2;
    --lb-accent-soft: rgba(127, 211, 242, 0.18);
}
