/* Nagradi.eu – frosted glass and the two inks of the firm's own logo: graphite #5b5b5b and amber #f1ad17.
   Montserrat Alternates (headings: the geometric capitals of the logo) + Golos Text (text).
   Signature: on the home page a crystal award, cut on the slant of the logo's amber stroke, is engraved by a laser line. */

@font-face {
    font-family: 'Montserrat Alternates';
    src: url('/fonts/montserrat-alternates-bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat Alternates';
    src: url('/fonts/montserrat-alternates-semibold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Golos Text';
    src: url('/fonts/golos-text.woff2') format('woff2');
    font-weight: 400 900;
    font-display: swap;
}

:root {
    --frost: #eef1f4;        /* sandblasted glass: the page */
    --sheet: #ffffff;
    --ice: #d9e0e6;          /* the edge of a pane: lines and borders */
    --ink: #232528;          /* text */
    --graphite: #5b5b5b;     /* the grey of the logo */
    --muted: #50545a;        /* secondary text on frost and sheet (7:1) */
    --amber: #f1ad17;        /* the amber of the logo: fills, and text on dark */
    --amber-deep: #d18f00;
    --brass: #7a5200;        /* amber as text on light grounds */
    --granite: #2b2d31;      /* the dark bands, the hero, the footer */
    --granite-2: #36393e;
    --granite-3: #43464c;
    --on-dark: #eef1f4;
    --on-dark-muted: #c3c8cf;
    --radius: 18px;
    --radius-s: 10px;
    --wrap: 1200px;
    --display: 'Montserrat Alternates', 'Trebuchet MS', sans-serif;
    --text: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    --lb-bg: rgba(27, 29, 32, 0.96);
    --lb-accent: #f1ad17;
    --lb-accent-soft: rgba(241, 173, 23, 0.22);
}

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

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

body {
    margin: 0;
    background: var(--frost);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

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

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

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

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

/* ---- buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px; border: 0;
    background: var(--amber); color: var(--ink);
    font: 700 1.02rem/1.2 var(--text); text-decoration: none; cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 22px -10px rgba(209, 143, 0, .8);
    transition: transform .2s, background-color .2s;
}
.btn:hover { background: #ffc23a; color: var(--ink); transform: translateY(-2px); }
.btn-ghost {
    background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: inherit; }

/* ---- header ---- */
.top {
    position: sticky; top: 0; z-index: 50;
    background: rgba(238, 241, 244, .86);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid var(--ice);
}
.top-row { display: flex; align-items: center; gap: 12px 22px; min-height: 72px; flex-wrap: wrap; }
.brand { flex: none; display: block; padding: 8px 0; }
.brand img { width: 158px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.nav a {
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
    padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--sheet); color: var(--ink); }
.nav a[aria-current] { background: var(--granite); color: var(--on-dark); }
.top-tools { display: flex; align-items: center; gap: 10px; }
.call {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    background: var(--amber); color: var(--ink); text-decoration: none;
    font: 700 1rem/1 var(--text); padding: 11px 16px; border-radius: 999px;
}
.call:hover { background: #ffc23a; color: var(--ink); }
.lang { display: flex; font-weight: 700; font-size: .85rem; border: 1px solid var(--ice); border-radius: 999px; overflow: hidden; background: var(--sheet); }
.lang a, .lang span { padding: 8px 10px; text-decoration: none; color: var(--ink); line-height: 1; }
.lang [aria-current] { background: var(--graphite); color: #fff; }
.menu-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ice); background: var(--sheet);
    display: inline-grid; place-items: center; cursor: pointer; color: var(--ink);
}
.menu-btn[hidden] { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }

@media (min-width: 1081px) {
    .menu-btn { display: none !important; }
}
@media (max-width: 1080px) {
    .top-row { min-height: 64px; }
    .top-tools { margin-left: auto; }
    .nav { order: 3; width: 100%; margin: 0; padding-bottom: 10px; }
    .js .nav { display: none; }
    .js .nav.open { display: flex; flex-direction: column; }
    .js .nav.open a { padding: 12px 14px; font-size: 1.05rem; }
}
@media (max-width: 1080px) {
    html:not(.js) .menu-btn { display: none; }
}
.nav-lang { display: none; }
@media (max-width: 460px) {
    .top-tools .lang { display: none; }
    .nav .nav-lang { display: inline-block; border: 1px solid var(--ice); }
    .brand img { width: 118px; }
    .call { padding: 10px 12px; font-size: .9rem; }
    .call svg { display: none; }
    .lang a, .lang span { padding: 8px 8px; }
    .top-row { gap: 8px 10px; }
}
@media (max-width: 359px) {
    .brand img { width: 100px; }
}

/* ---- the home hero: a crystal award engraved by a laser line ---- */
.hero {
    position: relative; overflow: hidden; color: var(--on-dark);
    background:
        radial-gradient(60% 70% at 72% 40%, rgba(255, 255, 255, .13), transparent 70%),
        linear-gradient(160deg, var(--granite-2), var(--granite) 60%, #232528);
    padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 90px);
}
.hero::before {               /* the amber stroke of the logo's N, across the hero */
    content: ''; position: absolute; top: -20%; bottom: -20%; left: 54%; width: 48px;
    background: linear-gradient(var(--amber), var(--amber-deep));
    transform: skewX(-31deg); opacity: .95;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.2rem + 3.9vw, 4.3rem); max-width: 14ch; }
.hero .lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--on-dark-muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 22px; font-size: .95rem; color: var(--on-dark-muted); }
.hero-note a { color: var(--amber); }

.crystal { position: relative; width: min(100%, 340px); margin-inline: auto; padding-bottom: 40px; }
.slab {
    position: relative; aspect-ratio: 300 / 430; margin: 0 22px;
    clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .08) 32%, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, .18) 58%, rgba(255, 255, 255, .04) 72%, rgba(255, 255, 255, .32) 100%),
        linear-gradient(180deg, rgba(196, 226, 236, .42), rgba(150, 186, 204, .26) 60%, rgba(196, 226, 236, .5));
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.slab::before {               /* the polished edge, catching the light */
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .75), transparent 7%, transparent 93%, rgba(255, 255, 255, .55)),
        linear-gradient(0deg, rgba(255, 255, 255, .6), transparent 5%);
}
.slab::after {                /* the slanted top edge */
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18.6%;
    background: linear-gradient(to top right, transparent calc(50% - 2px), rgba(255, 255, 255, .9) 50%, transparent calc(50% + 2px));
}
.etch {
    position: absolute; left: 11%; width: 78%; top: 44%;
    filter: grayscale(1) brightness(3.2) drop-shadow(0 1px 0 rgba(255, 255, 255, .5)) drop-shadow(0 0 6px rgba(255, 255, 255, .35));
    opacity: .9;
    animation: etch 2.6s cubic-bezier(.55, .1, .35, 1) .5s both;
}
.etch-line {
    position: absolute; left: 14%; right: 14%; top: 66%; height: 2px;
    background: rgba(255, 255, 255, .7); box-shadow: 0 0 6px rgba(255, 255, 255, .5);
    animation: etch 2.6s cubic-bezier(.55, .1, .35, 1) .5s both;
}
.etch-text {
    position: absolute; left: 0; right: 0; top: 70%; text-align: center;
    font: 600 .82rem/1.3 var(--display); letter-spacing: .08em; color: rgba(255, 255, 255, .88);
    text-shadow: 0 0 8px rgba(255, 255, 255, .35);
    animation: etch 2.6s cubic-bezier(.55, .1, .35, 1) .5s both;
}
.laser {
    position: absolute; left: -10%; right: -10%; height: 3px; top: 40%;
    background: linear-gradient(90deg, transparent, #ffd36b 20%, #fff6d8 50%, #ffd36b 80%, transparent);
    box-shadow: 0 0 14px 4px rgba(241, 173, 23, .75);
    opacity: 0;
    animation: laser 2.6s cubic-bezier(.55, .1, .35, 1) .5s both;
}
@keyframes etch {
    from { clip-path: inset(0 0 100% 0); }
    to   { clip-path: inset(0 0 0 0); }
}
@keyframes laser {
    0%   { top: 42%; opacity: 0; }
    6%   { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 82%; opacity: 0; }
}
.plinth {
    position: relative; height: 74px; border-radius: 6px 6px 4px 4px;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .12) 0 1px, transparent 2px) 0 0 / 9px 11px,
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .08) 0 1px, transparent 2px) 0 0 / 13px 7px,
        linear-gradient(180deg, #4a4d52, #1b1c1f);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 26px 40px -16px rgba(0, 0, 0, .8);
    display: grid; place-items: center;
}
.plate {
    padding: 7px 18px; border-radius: 3px;
    background: linear-gradient(180deg, #ffd56e, var(--amber) 45%, #b97f06);
    color: #3a2800; font: 700 .9rem/1 var(--display); letter-spacing: .06em;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 4px rgba(0, 0, 0, .5);
}
.crystal-caption { margin: 18px 0 0; text-align: center; font-size: .9rem; color: var(--on-dark-muted); }

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero::before { display: none; }
    .crystal { width: min(78%, 280px); isolation: isolate; }
    .crystal::before {      /* the logo's stroke moves behind the award */
        content: ''; position: absolute; z-index: -1; top: -6%; bottom: 8%; left: 44%; width: 30px;
        background: linear-gradient(var(--amber), var(--amber-deep)); transform: skewX(-31deg);
    }
}

/* ---- inner page head ---- */
.page-hero {
    position: relative; overflow: hidden; color: var(--on-dark);
    background: linear-gradient(160deg, var(--granite-2), var(--granite));
    padding: clamp(34px, 5vw, 64px) 0 clamp(30px, 4vw, 52px);
}
.page-hero::before {
    content: ''; position: absolute; top: -30%; bottom: -30%; right: 9%; width: 30px;
    background: var(--amber); transform: skewX(-31deg);
}
.page-hero .wrap { position: relative; }
@media (max-width: 1100px) {
    .page-hero::before { top: -12px; bottom: auto; height: 96px; right: 22px; width: 16px; }
}
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: var(--on-dark-muted); max-width: 62ch; font-size: 1.12rem; margin: 0; }
.page-hero a { color: var(--amber); }
.crumbs { margin: 0 0 14px; font-size: .92rem; color: var(--on-dark-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--amber); }
.crumbs a { color: var(--on-dark); }
.crumbs a:hover { color: var(--amber); }

/* ---- bands ---- */
.band { padding: clamp(48px, 7vw, 96px) 0; }
.band-tight { padding: clamp(32px, 4vw, 56px) 0; }
.band-sheet { background: var(--sheet); }
.band-dark { background: var(--granite); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: var(--on-dark-muted); }
.band-dark a { color: var(--amber); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.band-dark .section-head p { color: var(--on-dark-muted); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--amber-deep); font-weight: 700; }

/* ---- materials: a bento of four photo tiles ---- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 300px; border-radius: var(--radius); overflow: hidden;
    color: #fff; text-decoration: none; background: var(--granite);
    isolation: isolate;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.tile::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(20, 21, 24, 0) 35%, rgba(20, 21, 24, .88) 100%);
}
.tile:hover img { transform: scale(1.05); }
.tile:hover { color: #fff; }
.tile-body { padding: 20px; }
.tile h3 { margin: 0 0 4px; font-size: 1.3rem; color: #fff; }
.tile p { margin: 0; font-size: .95rem; color: #e3e6ea; }
.tile-mark { display: block; width: 34px; height: 4px; background: var(--amber); margin-bottom: 12px; transform: skewX(-31deg); }
.bento .tile:first-child { grid-column: span 2; grid-row: span 2; min-height: 464px; }
.bento .tile:first-child h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.bento .tile:last-child { grid-column: span 2; }
@media (max-width: 900px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento .tile:first-child { min-height: 400px; grid-row: auto; }
    .tile { min-height: 280px; }
}
@media (max-width: 520px) {
    .bento { grid-template-columns: 1fr; }
    .bento .tile:first-child, .bento .tile:last-child { grid-column: auto; grid-row: auto; }
    .bento .tile:first-child { min-height: 380px; }
}

/* ---- catalogue: a sideways strip of glass cases ---- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.case {
    display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; text-decoration: none;
    background: var(--sheet); color: var(--ink); border: 1px solid var(--ice);
    transition: transform .25s, box-shadow .25s;
}
.case:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(35, 37, 40, .55); color: var(--ink); }
.case-img { background: linear-gradient(180deg, #fff, #e8edf1); display: grid; place-items: center; padding: 14px; aspect-ratio: 5 / 6; }
.case-img img { max-height: 100%; width: auto; object-fit: contain; }
.case-body { padding: 16px 18px 20px; border-top: 1px solid var(--ice); }
.case-body h3 { margin: 0 0 4px; font-size: 1.12rem; }
.case-body p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
    .strip { grid-template-columns: repeat(4, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
    .strip > * { scroll-snap-align: start; }
}

/* ---- technologies: dark band, five machines ---- */
.tech { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--granite-3); }
.tech li { list-style: none; padding: 22px 18px 6px 0; border-right: 1px solid var(--granite-3); margin-right: 18px; }
.tech li:last-child { border-right: 0; }
.tech h3 { font-family: var(--text); font-size: 1.08rem; letter-spacing: 0; margin-bottom: 8px; color: var(--amber); }
.tech p { font-size: .95rem; margin: 0; }
.tech { padding: 0; margin: 0; }
@media (max-width: 900px) {
    .tech { grid-template-columns: 1fr 1fr; }
    .tech li { border-right: 0; border-bottom: 1px solid var(--granite-3); padding-bottom: 18px; }
}
@media (max-width: 520px) { .tech { grid-template-columns: 1fr; } .tech li { margin-right: 0; } }

/* ---- the three steps of an order ---- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps > li {
    counter-increment: step; position: relative; padding: 70px 22px 24px; border-radius: var(--radius);
    background: var(--sheet); border: 1px solid var(--ice);
}
.steps > li::before {
    content: counter(step); position: absolute; top: 18px; left: 22px;
    font: 700 2.2rem/1 var(--display); color: var(--amber-deep);
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
.steps ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---- welcome / about split ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-media a, .split-media img { border-radius: var(--radius); }
.split-media img { width: 100%; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.quote {
    margin: 0; padding: 26px 28px; border-radius: var(--radius); background: var(--granite); color: var(--on-dark);
    position: relative; overflow: hidden;
}
.quote::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--amber); }
.quote p { font: 600 clamp(1.12rem, 1rem + .5vw, 1.4rem)/1.45 var(--display); margin: 0 0 12px; color: #fff; }
.quote footer { color: var(--on-dark-muted); font-size: .95rem; }

/* ---- portfolio grid on the category pages ---- */
.works { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.work { margin: 0; display: flex; flex-direction: column; height: 100%; }
.work-img {
    display: block; border-radius: var(--radius-s); overflow: hidden; background: var(--sheet);
    border: 1px solid var(--ice); aspect-ratio: 23 / 32;
}
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-img:hover img { transform: scale(1.04); }
.work figcaption { padding: 10px 2px 0; font-size: .95rem; line-height: 1.35; }
.work-link { display: inline-block; margin-top: 4px; font-weight: 600; }
.work.is-project .work-img { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber); }

.projects { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.project-card {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; height: 100%;
    padding: 12px; border-radius: var(--radius-s); background: var(--sheet); border: 1px solid var(--ice);
    text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s;
}
.project-card:hover { border-color: var(--amber-deep); transform: translateY(-2px); color: var(--ink); }
.project-card img { width: 96px; height: 120px; object-fit: cover; border-radius: 6px; }
.project-card strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.25; margin-bottom: 4px; }
.project-card span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.4; }

/* ---- category overview cards (/awards) ---- */
.cats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cat {
    display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: var(--radius); overflow: hidden;
    background: var(--sheet); border: 1px solid var(--ice); text-decoration: none; color: var(--ink);
    transition: transform .25s, box-shadow .25s;
}
.cat:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(35, 37, 40, .55); color: var(--ink); }
.cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.cat.contain img { object-fit: contain; object-position: center; width: auto; max-width: 100%; margin-inline: auto; padding: 12px; background: linear-gradient(180deg, #fff, #e8edf1); }
.cat-body { padding: 16px 18px 20px; }
.cat-body h2, .cat-body h3 { font-size: 1.2rem; margin: 0 0 6px; }
.cat-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.cat-count { display: inline-block; margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--brass); }

/* ---- catalogue models ---- */
.series-intro { max-width: 72ch; color: var(--muted); }
.models { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.model { height: 100%; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--ice); border-radius: var(--radius-s); overflow: hidden; }
.model-img { display: grid; place-items: center; padding: 12px; background: linear-gradient(180deg, #fff, #eef2f5); aspect-ratio: 5 / 6; }
.model-img img { max-height: 100%; width: auto; object-fit: contain; }
.model-body { padding: 12px 14px 14px; border-top: 1px solid var(--ice); flex: 1; }
.model h3 { font-size: 1.02rem; margin: 0 0 4px; }
.model p { font-size: .92rem; color: var(--muted); margin: 0 0 8px; }
.sizes { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.sizes th, .sizes td { text-align: left; padding: 4px 0; border-bottom: 1px solid var(--ice); }
.sizes th { font-weight: 600; color: var(--muted); font-size: .84rem; }
.sizes td:last-child, .sizes th:last-child { text-align: right; }

/* ---- project page ---- */
.project-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.photos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photos li:first-child { grid-column: 1 / -1; }
.photos a { display: block; border-radius: var(--radius-s); overflow: hidden; background: var(--sheet); border: 1px solid var(--ice); }
.photos img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.photos li:first-child img { aspect-ratio: auto; max-height: 640px; object-fit: contain; background: #fff; }
.spec { position: sticky; top: 96px; background: var(--sheet); border: 1px solid var(--ice); border-radius: var(--radius); padding: 24px; }
.spec h2 { font-size: 1.3rem; }
.spec-sizes { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ice); }
.spec-sizes dt { font-weight: 700; font-size: .9rem; color: var(--muted); }
.spec-sizes dd { margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.spec .btn { margin-top: 18px; }
@media (max-width: 860px) { .project-grid { grid-template-columns: 1fr; } .spec { position: static; } }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
    display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--ice);
    color: var(--ink); text-decoration: none; font-size: .93rem;
}
.chips a:hover { border-color: var(--amber-deep); color: var(--ink); }
.chips a[aria-current] { background: var(--granite); color: #fff; border-color: var(--granite); }

/* ---- gallery ---- */
.gallery { list-style: none; padding: 0; margin: 0; columns: 4 220px; column-gap: 14px; }
.gallery li { break-inside: avoid; margin-bottom: 14px; }
.gallery a { display: flex; justify-content: center; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--ice); background: var(--granite); }

/* ---- clients wall ---- */
.clients { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.clients li { background: var(--sheet); border: 1px solid var(--ice); border-radius: var(--radius-s); display: grid; place-items: center; padding: 14px; aspect-ratio: 3 / 2; }
.clients img { max-height: 70px; width: auto; object-fit: contain; }

/* ---- facts list (order page) ---- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.fact { background: var(--sheet); border: 1px solid var(--ice); border-radius: var(--radius); padding: 20px; }
.fact strong { display: block; font: 700 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.1 var(--display); color: var(--ink); margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: .96rem; }
.note {
    border-left: 5px solid var(--amber); background: var(--sheet); padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0;
    margin: 20px 0;
}
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.toc a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--ice); text-decoration: none; color: var(--ink); font-size: .95rem; }
.toc a:hover { border-color: var(--amber-deep); color: var(--ink); }

/* ---- call band ---- */
.cta { position: relative; overflow: hidden; background: var(--amber); color: var(--ink); padding: clamp(40px, 6vw, 72px) 0; }
.cta::before { content: ''; position: absolute; top: -40%; bottom: -40%; left: 8%; width: 120px; background: rgba(255, 255, 255, .22); transform: skewX(-31deg); }
.cta .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px; align-items: center; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn { background: var(--granite); color: #fff; box-shadow: none; }
.cta .btn:hover { background: #000; color: #fff; }
.cta .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .3); color: var(--ink); }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.panel { background: var(--sheet); border: 1px solid var(--ice); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.big-phone { font: 700 clamp(1.7rem, 1.2rem + 2vw, 2.5rem)/1.1 var(--display); color: var(--ink); text-decoration: none; display: inline-block; margin-bottom: 18px; }
.big-phone:hover { color: var(--brass); }
.contact-list { margin: 0; }
.contact-list div { padding: 12px 0; border-top: 1px solid var(--ice); }
.contact-list dt { font-weight: 700; font-size: .88rem; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form > div { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--frost);
    border: 1px solid #b9c2cb; border-radius: var(--radius-s); padding: 12px 14px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--amber-deep); outline-offset: 1px; background: #fff; }
.contact-form ul { color: #a01b1b; padding-left: 1.1em; margin: 6px 0 0; }
.form-hint { font-size: .9rem; color: var(--muted); margin-top: 12px; }
.contact-sent { background: #e5f4e6; border: 1px solid #8cc591; padding: 14px 16px; border-radius: var(--radius-s); margin-bottom: 18px; }

/* ---- footer ---- */
.foot { background: var(--granite); color: var(--on-dark-muted); padding: 56px 0 26px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot h2 { font-size: 1rem; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.foot a { color: var(--on-dark); }
.foot a:hover { color: var(--amber); }
.foot-brand img { width: 230px; margin-bottom: 14px; }
.foot-brand p { max-width: 38ch; }
.foot-phone { font: 700 1.25rem/1.2 var(--display); color: var(--amber) !important; text-decoration: none; }
.foot-ig { display: inline-flex; align-items: center; gap: 8px; }
.foot address { font-style: normal; margin-bottom: 10px; }
.foot-hours { font-size: .95rem; }
.foot-nav { list-style: none; padding: 0; margin: 0; }
.foot-nav li { margin-bottom: 6px; }
.foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--granite-3); font-size: .9rem; }
.foot-bottom p { margin: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---- 404 ---- */
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--frost); }
.not-found > div { max-width: 620px; }
.not-found img { width: 230px; margin-bottom: 24px; }
.not-found h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.not-found [lang="en"] { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ice); }

/* ---- motion ---- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .tile, .case, .steps > li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

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

/* ---- order page: the three small pictures of the original's design page, at their own size ---- */
.order-strips { display: grid; gap: 12px; justify-items: center; }
.order-strips img { width: 300px; border-radius: var(--radius-s); }
