/* Tiskárna Impéria – main stylesheet (mobile-first, BEM) */

:root {
    /* Black and white like the original imperia.cz: white header, charcoal and black sections */
    --color-white: #fff;
    --color-black: #000;
    --color-text: #fff;
    --color-muted: #c9c7c1;
    --color-accent: #a8a59f;
    --color-dark: #39393b;
    --color-deep: #2b2b2d;
    --color-light: #e4e5e6;
    --color-line: rgb(255 255 255 / 0.14);

    --font-base: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    --font-brand: "Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
    --text-base: 1.125rem;
    --text-small: 0.95rem;
    --heading-1: clamp(2rem, 1.4rem + 2.4vw, 2.8rem);
    --heading-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
    --heading-4: 1.2rem;

    --gutter: max(1rem, 3vw);
    --section-space: clamp(3rem, 2rem + 4vw, 6rem);
    --max-width: 1900px;
    --content-width: 72rem;
    --narrow-width: 46rem;
    --grid-gap: 0.5rem;
    --transition: 0.3s ease;
}

/* Base */

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

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

body {
    margin: 0;
    background: var(--color-dark);
    color: var(--color-text);
    font-family: var(--font-base);
    font-size: var(--text-base);
    line-height: 1.6;
}

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

h1,
h2,
h3 {
    margin: 0 0 0.75em;
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.2;
}

h1,
h2 {
    color: var(--color-accent);
}

p {
    margin: 0 0 1em;
}

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

a {
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--color-black);
    color: var(--color-white);
}

.skip-link:focus {
    top: 1rem;
}

/* Layout */

.container {
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
}

.container--narrow {
    max-width: var(--narrow-width);
}

.section {
    padding: var(--section-space) var(--gutter);
}

.section--flush {
    padding: 0;
}

/* Section modifiers keep their names; on the black-and-white site they are dark surfaces. */
.section--white {
    background: var(--color-dark);
    color: var(--color-white);
}

.section--light {
    background: var(--color-deep);
    color: var(--color-white);
}

.section--dark {
    background: var(--color-black);
    color: var(--color-white);
}

.section--black {
    background: var(--color-black);
    color: var(--color-white);
}

.section__heading {
    font-size: var(--heading-2);
    text-align: center;
}

.prose {
    text-align: center;
}

/* Button */

.button {
    display: inline-block;
    padding: 1em 2.2em;
    border: 1px solid currentColor;
    background: transparent;
    color: var(--color-white);
    font-size: var(--text-small);
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background var(--transition), color var(--transition);
}

.button:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.button--inverse {
    color: var(--color-white);
}

.button--inverse:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.cta {
    text-align: center;
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 1px 0 var(--color-light);
}

.header__top {
    display: none;
    background: var(--color-black);
    color: var(--color-light);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.header__top-inner,
.header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.header__top-inner {
    min-height: 2.5rem;
}

.header__contact {
    display: flex;
    gap: 2rem;
}

.header__contact a {
    text-decoration: none;
    transition: color var(--transition);
}

.header__contact a:hover {
    color: var(--color-white);
}

.header__top-end {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__bar {
    min-height: 4.5rem;
}

/* Home: transparent header over the hero video, solid once the page scrolls */

.header--overlay {
    position: absolute;
    inset: 0 0 auto;
    background: transparent;
    color: var(--color-white);
    box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.2);
}

.header--overlay .header__top {
    background: rgb(0 0 0 / 0.35);
}

.header--overlay.header--scrolled {
    position: fixed;
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 1px 12px rgb(0 0 0 / 0.08);
    animation: header-in 0.35s ease;
}

.header--overlay.header--scrolled .header__top {
    display: none;
}

@keyframes header-in {
    from {
        transform: translateY(-100%);
    }
}

/* Brand: medallion + wordmark */

.brand {
    position: relative;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.brand__logo {
    width: auto;
    height: 3rem;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__name {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.brand__tagline {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.75;
}

/* Header brand stacked like the printed logo: medallion, wordmark, tagline, ornament */

.brand--stacked {
    flex-direction: column;
    gap: 0.3rem;
    padding-block: 0.5rem;
}

.brand--stacked .brand__logo {
    height: 3.5rem;
}

.brand--stacked .brand__text {
    align-items: center;
    font-family: var(--font-brand);
    line-height: 1;
}

.brand--stacked .brand__name {
    font-family: inherit;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    -webkit-text-stroke: 0.02em currentColor;
}

.brand--stacked .brand__tagline {
    margin-top: 0.2em;
    font-size: 0.36rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    opacity: 1;
}

.brand--stacked .brand__tagline::before {
    content: "❖ ";
    content: "❖ " / "";
}

.brand--stacked .brand__tagline::after {
    content: " ❖";
    content: " ❖" / "";
}

.brand--stacked .brand__text::after {
    content: "❖";
    content: "❖" / "";
    margin-top: 0.45em;
    font-size: 0.36rem;
}

/* Hamburger */

.header__toggle {
    position: relative;
    z-index: 60;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.header__toggle-bar,
.header__toggle-bar::before,
.header__toggle-bar::after {
    position: absolute;
    left: 0.6rem;
    width: 1.55rem;
    height: 2px;
    background: currentColor;
    transition: transform var(--transition), background var(--transition);
}

.header__toggle-bar {
    top: 50%;
}

.header__toggle-bar::before,
.header__toggle-bar::after {
    content: "";
    left: 0;
}

.header__toggle-bar::before {
    top: -0.5rem;
}

.header__toggle-bar::after {
    top: 0.5rem;
}

.header__toggle[aria-expanded="true"] {
    color: var(--color-white);
}

.header__toggle[aria-expanded="true"] .header__toggle-bar {
    background: transparent;
}

.header__toggle[aria-expanded="true"] .header__toggle-bar::before {
    transform: translateY(0.5rem) rotate(45deg);
}

.header__toggle[aria-expanded="true"] .header__toggle-bar::after {
    transform: translateY(-0.5rem) rotate(-45deg);
}

.header:has(.nav--open) .brand {
    color: var(--color-white);
}

/* Navigation – dark full-screen overlay on small screens */

.nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 6rem var(--gutter) 2rem;
    overflow-y: auto;
    background: #0d0d0d;
    color: var(--color-white);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition), visibility var(--transition);
}

.nav--open {
    visibility: visible;
    opacity: 1;
}

.nav__list {
    text-align: center;
}

.nav__link {
    position: relative;
    display: inline-block;
    padding: 0.35rem 0.25rem;
    font-size: 1.75rem;
    text-decoration: none;
    transition: color var(--transition);
}

.nav__link::after {
    content: "";
    position: absolute;
    right: 0.25rem;
    bottom: 0.15rem;
    left: 0.25rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
    transform: scaleX(1);
}

.nav__link--active {
    color: var(--color-accent);
}

.nav__quote {
    padding: 0.85em 2em;
    border: 1px solid currentColor;
    font-size: var(--text-small);
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background var(--transition), color var(--transition);
}

.nav__quote:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.nav__extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.15);
    color: var(--color-accent);
    font-size: var(--text-small);
}

.nav__extra a {
    text-decoration: none;
}

.nav__extra a:hover {
    color: var(--color-white);
}

/* Language switch and social icons (shared) */

.lang-switch {
    --switch-fg: var(--color-black);
    position: relative;
    z-index: 60;
    margin-left: auto;
    margin-right: 0.5rem;
    color: var(--switch-fg);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    line-height: 1;
}

.header--overlay:not(.header--scrolled) .lang-switch,
.header:has(.nav--open) .lang-switch {
    --switch-fg: var(--color-white);
}

/* Button: flag, language code and a small arrow */

.lang-switch__current {
    display: flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.55em 0.75em;
    border: 1px solid var(--switch-fg);
    cursor: pointer;
    list-style: none;
    transition: background var(--transition);
}

.lang-switch__current::-webkit-details-marker {
    display: none;
}

.lang-switch__current::after {
    content: "";
    width: 0.4em;
    height: 0.4em;
    margin: -0.2em 0 0 0.1em;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition), margin var(--transition);
}

.lang-switch[open] .lang-switch__current::after {
    margin-top: 0.2em;
    transform: rotate(-135deg);
}

.lang-switch__current:hover {
    background: rgb(128 128 128 / 0.25);
}

.lang-switch__flag {
    flex: none;
    width: 1.25rem;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.18);
}

/* Drop-down list of all languages: always a light panel, readable on the video and on white */

.lang-switch__list {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 11rem;
    max-height: min(70vh, 28rem);
    margin: 0;
    padding: 0.35rem 0;
    overflow-y: auto;
    border: 1px solid var(--color-light);
    background: var(--color-white);
    box-shadow: 0 0.6rem 1.8rem rgb(0 0 0 / 0.22);
    color: var(--color-black);
    list-style: none;
    letter-spacing: 0.02em;
}

.lang-switch__option {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.65em 1.1em;
    color: inherit;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition);
}

a.lang-switch__option:hover,
a.lang-switch__option:focus-visible {
    background: var(--color-light);
}

.lang-switch__option--active {
    background: var(--color-black);
    color: var(--color-white);
}

.lang-switch__code {
    font-weight: 600;
}

@media (min-width: 36em) {
    .lang-switch__list--wide {
        columns: 2;
        column-gap: 0;
        min-width: 22rem;
    }

    .lang-switch__list--wide li {
        break-inside: avoid;
    }
}

/* Preview of an unpublished language (link from the administration) */

.preview-bar {
    margin: 0;
    padding: 0.5rem var(--gutter);
    background: var(--color-black);
    color: var(--color-white);
    font-size: var(--text-small);
    text-align: center;
}

.social {
    display: flex;
    gap: 0.5rem;
}

.social__link {
    display: inline-flex;
    padding: 0.35rem;
    color: inherit;
    transition: color var(--transition), opacity var(--transition);
}

.social__link:hover {
    opacity: 0.7;
}

.social__link svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.header__social .social__link svg {
    width: 1rem;
    height: 1rem;
}

/* Home: hero */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--color-black) url("../video/uvod-poster.webp") center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgb(0 0 0 / 0.45);
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: hero-video-in 1.8s ease both;
}

.hero__logo {
    position: relative;
    z-index: 2;
    width: min(75vw, 24rem);
    margin-inline: auto;
    /* The logo is fully visible within 1 s of loading, independently of the video. */
    animation: hero-logo-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* main.js holds the video fade-in until the video actually starts playing */
.hero--waiting .hero__video {
    animation-play-state: paused;
}

@keyframes hero-video-in {
    from {
        opacity: 0;
    }
}

@keyframes hero-logo-in {
    from {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(8px);
    }
}

/* Home: intro */

.intro {
    text-align: center;
}

.intro__heading {
    font-size: var(--heading-2);
}

.intro__list {
    max-width: var(--narrow-width);
    margin: 1.25rem auto 0;
    text-align: left;
}

.intro__list li::before {
    content: "· ";
    color: var(--color-muted);
}

.intro__claim {
    margin-top: 2rem;
    font-weight: 700;
    font-size: var(--heading-4);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Home: photo grid */

.photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.photo-grid__link {
    display: block;
    overflow: hidden;
}

.photo-grid__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s ease, opacity var(--transition);
}

.photo-grid__link:hover .photo-grid__image {
    transform: scale(1.05);
    opacity: 0.85;
}

/* Home: features */

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
}

.features__heading {
    font-size: var(--heading-4);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.features__text {
    color: var(--color-light);
}

/* Home: clients – a white band, the logos have white backgrounds */

.clients {
    background: var(--color-white);
    color: var(--color-black);
}

.clients__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    max-width: var(--max-width);
    margin-inline: auto;
}

.clients__item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logos have white backgrounds of mixed proportions: keep them small and centred */
.clients__logo {
    width: 100%;
    height: 7.5rem;
    object-fit: contain;
}

/* Home: designers */

.section--image {
    position: relative;
    background: var(--color-black) url("../img/designeri/pozadi.webp") center / cover no-repeat;
    color: var(--color-white);
}

.section--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.65);
}

.section--image > .container {
    position: relative;
}

.designers__heading {
    font-size: var(--heading-2);
    text-align: center;
}

.designers__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.designers__card {
    text-align: center;
}

.designers__photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 1rem;
}

.designers__name {
    margin-bottom: 0.4em;
    font-size: 1.5rem;
}

.designers__role {
    color: var(--color-light);
    font-size: var(--text-small);
}

/* Page head (products) */

.page-head {
    padding: clamp(2rem, 1.5rem + 3vw, 4rem) var(--gutter) 0;
    background: var(--color-dark);
    color: var(--color-white);
    text-align: center;
}

.page-head__title {
    margin: 0.75rem 0 0.5rem;
    font-size: var(--heading-1);
}

.page-head__intro {
    max-width: 40rem;
    margin-inline: auto;
    color: var(--color-muted);
}

.container--wide {
    max-width: 90rem;
}

.button--solid {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.button--solid:hover {
    background: transparent;
    color: var(--color-white);
}

.zoom-hint {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.9);
    color: var(--color-black);
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity var(--transition), transform var(--transition);
}

a:hover > .zoom-hint,
a:focus-visible > .zoom-hint {
    opacity: 1;
    transform: none;
}

/* Products: category cards */

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 1.5rem;
    max-width: 90rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.category-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--color-deep);
}

.category-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter var(--transition);
}

.category-card:hover .category-card__image {
    transform: scale(1.06);
    filter: brightness(0.92);
}

.category-card__body {
    display: flex;
    flex-direction: column;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--color-line);
}

.category-card__title {
    margin: 0 0 0.2rem;
    font-size: 1.45rem;
}

.category-card__more {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: letter-spacing var(--transition), color var(--transition);
}

.category-card:hover .category-card__more {
    color: var(--color-white);
    letter-spacing: 0.22em;
}

@media (min-width: 36em) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 56em) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 75em) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Products: lists of printed matter */

.product-lists {
    display: grid;
    gap: 1.5rem;
}

.product-lists__group {
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    background: var(--color-dark);
}

.product-lists__heading {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-line);
    font-size: var(--heading-2);
}

.product-lists__list {
    column-gap: 2rem;
}

.product-lists__list li {
    padding: 0.2rem 0;
    break-inside: avoid;
}

.product-lists__list li::before {
    content: "·";
    margin-right: 0.5rem;
    color: var(--color-accent);
}

@media (min-width: 30em) {
    .product-lists__list {
        columns: 2;
    }
}

@media (min-width: 56em) {
    .product-lists {
        grid-template-columns: 2fr 1fr;
    }

    .product-lists__group:first-child .product-lists__list {
        columns: 3;
    }

    .product-lists__group:last-child .product-lists__list {
        columns: 1;
    }
}

/* Category detail: intro */

.category-intro__grid {
    display: grid;
    gap: 2.5rem;
    max-width: 90rem;
}

.category-intro__eyebrow {
    margin-bottom: 0.75rem;
    color: var(--color-accent);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.category-intro__eyebrow a,
.category-intro__title a {
    text-decoration: none;
    transition: color var(--transition);
}

.category-intro__eyebrow a:hover,
.category-intro__title a:hover {
    color: var(--color-white);
}

.category-intro__title {
    margin-bottom: 0.4rem;
    font-size: var(--heading-1);
}

.category-intro__subtitle {
    margin-bottom: 1.5rem;
    color: var(--color-muted);
    font-size: 1.25rem;
    font-style: italic;
}

.category-intro__body {
    max-width: 38rem;
}

.category-intro__ask {
    margin-top: 2rem;
    padding: 1.5rem;
    border-left: 2px solid var(--color-accent);
    background: rgb(255 255 255 / 0.06);
}

.category-intro__ask p {
    margin-bottom: 1rem;
}

.category-intro__cover {
    position: relative;
    display: block;
    overflow: hidden;
    align-self: start;
}

.category-intro__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-intro__cover:hover .category-intro__image {
    transform: scale(1.03);
}

@media (min-width: 56em) {
    .category-intro__grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 4rem;
        align-items: start;
    }

    .category-intro__cover {
        position: sticky;
        top: 8rem;
    }
}

/* Category detail: gallery of examples */

.category-gallery__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-line);
}

.category-gallery__title {
    margin: 0;
    font-size: var(--heading-2);
}

.photo-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.photo-cards__link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--color-black);
}

.photo-cards__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter var(--transition);
}

.photo-cards__link:hover .photo-cards__image {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* Product card: only the photo, products are shown without names */
.photo-cards__media {
    display: block;
    overflow: hidden;
}

@media (min-width: 48em) {
    .photo-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 75em) {
    .photo-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Category detail: previous / next */

.neighbours__grid {
    display: grid;
    gap: 1rem;
    align-items: center;
}

.neighbour {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--color-line);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}

.neighbour:hover {
    border-color: var(--color-white);
}

.neighbour--next {
    flex-direction: row-reverse;
    text-align: right;
}

.neighbour--empty {
    display: none;
}

.neighbour__image {
    flex: none;
    width: 6rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.neighbour__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.neighbour__label {
    color: var(--color-accent);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.neighbour__name {
    font-size: 1.3rem;
}

.neighbours__all {
    justify-self: center;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

@media (min-width: 48em) {
    .neighbours__grid {
        grid-template-columns: 1fr auto 1fr;
    }

    .neighbour--empty {
        display: block;
        border: 0;
    }

    .neighbour__image {
        width: 8rem;
    }
}

/* Gallery: justified strips – each item grows in proportion to its aspect ratio */

.strips {
    --strip-height: 9rem;
    display: flex;
    flex-wrap: wrap;
    gap: var(--grid-gap);
    padding: var(--grid-gap);
}

.strips::after {
    content: "";
    flex-grow: 999;
}

.strips__item--r5 { flex: 0.5 1 calc(0.5 * var(--strip-height)); }
.strips__item--r6 { flex: 0.6 1 calc(0.6 * var(--strip-height)); }
.strips__item--r7 { flex: 0.7 1 calc(0.7 * var(--strip-height)); }
.strips__item--r8 { flex: 0.8 1 calc(0.8 * var(--strip-height)); }
.strips__item--r9 { flex: 0.9 1 calc(0.9 * var(--strip-height)); }
.strips__item--r10 { flex: 1 1 calc(1 * var(--strip-height)); }
.strips__item--r11 { flex: 1.1 1 calc(1.1 * var(--strip-height)); }
.strips__item--r12 { flex: 1.2 1 calc(1.2 * var(--strip-height)); }
.strips__item--r13 { flex: 1.3 1 calc(1.3 * var(--strip-height)); }
.strips__item--r14 { flex: 1.4 1 calc(1.4 * var(--strip-height)); }
.strips__item--r15 { flex: 1.5 1 calc(1.5 * var(--strip-height)); }
.strips__item--r16 { flex: 1.6 1 calc(1.6 * var(--strip-height)); }
.strips__item--r17 { flex: 1.7 1 calc(1.7 * var(--strip-height)); }
.strips__item--r18 { flex: 1.8 1 calc(1.8 * var(--strip-height)); }
.strips__item--r19 { flex: 1.9 1 calc(1.9 * var(--strip-height)); }
.strips__item--r20 { flex: 2 1 calc(2 * var(--strip-height)); }

.strips__link {
    display: block;
    overflow: hidden;
}

.strips__image {
    width: 100%;
    height: var(--strip-height);
    object-fit: cover;
    transition: transform 0.6s ease, opacity var(--transition);
}

.strips__link:hover .strips__image {
    transform: scale(1.04);
    opacity: 0.85;
}

/* About */

.about-hero__image {
    width: 100%;
    height: clamp(14rem, 38vw, 34rem);
    object-fit: cover;
}

.techniques {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 1.5rem;
}

.techniques__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 1rem;
}

.techniques__name {
    font-size: var(--heading-4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section--dark .techniques__text {
    color: var(--color-light);
}

.techniques__note {
    max-width: var(--narrow-width);
    margin: 3rem auto 0;
    text-align: center;
    font-style: italic;
}

/* Contact */

.contact {
    display: grid;
    gap: 3rem;
}

.contact .section__heading {
    text-align: left;
}

.contact__list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.5rem;
    margin: 0;
}

.contact__list dt {
    color: var(--color-muted);
}

.contact__list dd {
    margin: 0;
}

.contact__idea .button {
    margin-top: 1.5rem;
}

/* 404 */

.not-found {
    text-align: center;
}

.not-found .button {
    margin-top: 2rem;
}

/* Footer */

.footer {
    background: #0e0e0e;
    color: #c9c7c1;
    font-size: var(--text-small);
}

.footer a {
    text-decoration: none;
    transition: color var(--transition);
}

.footer a:hover {
    color: var(--color-white);
}

.footer__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: var(--content-width);
    margin-inline: auto;
    padding: 4rem var(--gutter) 3rem;
}

.brand--footer {
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.footer__about {
    max-width: 22rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.footer__social {
    margin-left: -0.35rem;
    color: var(--color-white);
}

.footer__heading {
    margin-bottom: 1.1rem;
    color: var(--color-accent);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

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

.footer__links--columns {
    columns: 2;
    column-gap: 1.5rem;
}

.footer__links--columns li {
    break-inside: avoid;
}

.footer__address {
    font-style: normal;
    line-height: 1.75;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--content-width);
    margin-inline: auto;
    padding: 1.5rem var(--gutter);
    border-top: 1px solid rgb(255 255 255 / 0.1);
    font-size: 0.85rem;
}

.footer__copy {
    margin: 0;
}

.footer__top {
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Lightbox */

.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(0 0 0 / 0.94);
    color: var(--color-white);
}

.lightbox::backdrop {
    background: rgb(0 0 0 / 0.94);
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__figure {
    margin: 0;
    padding: 3.5rem 0.5rem;
}

.lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    width: auto;
    height: auto;
    margin-inline: auto;
}

.lightbox__caption {
    margin-top: 0.75rem;
    text-align: center;
    font-size: var(--text-small);
    color: var(--color-light);
}

.lightbox__btn {
    position: absolute;
    width: 3rem;
    height: 3rem;
    border: 0;
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-base);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.lightbox__btn:hover {
    opacity: 1;
}

.lightbox__btn--prev {
    top: 50%;
    left: 0.25rem;
    transform: translateY(-50%);
}

.lightbox__btn--next {
    top: 50%;
    right: 0.25rem;
    transform: translateY(-50%);
}

.lightbox__btn--close {
    top: 0.5rem;
    right: 0.5rem;
}

.lightbox__counter {
    position: absolute;
    top: 1rem;
    left: 1rem;
    margin: 0;
    font-size: var(--text-small);
    color: var(--color-light);
}

/* Breakpoints */

@media (min-width: 30em) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .designers__list {
        grid-template-columns: repeat(2, 1fr);
    }


    .strips {
        --strip-height: 12rem;
    }
}

@media (min-width: 40em) {
    .clients__list {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__main {
        grid-template-columns: repeat(2, 1fr);
    }


    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .techniques {
        grid-template-columns: repeat(2, 1fr);
    }


    .lightbox__btn--prev {
        left: 1rem;
    }

    .lightbox__btn--next {
        right: 1rem;
    }
}

@media (min-width: 48em) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }




    .contact {
        grid-template-columns: 1fr 1fr;
    }




    .strips {
        --strip-height: 16rem;
    }
}

@media (min-width: 64em) {
    .clients__list {
        grid-template-columns: repeat(6, 1fr);
        gap: 2.5rem 2rem;
    }

    .clients__logo {
        height: 10.5rem;
    }

    .header__top {
        display: block;
    }

    .header__bar {
        min-height: 6rem;
    }

    .brand__logo {
        height: 4.25rem;
    }

    .brand--stacked .brand__logo {
        height: 5rem;
    }

    .brand--stacked .brand__name {
        font-size: 1.6rem;
    }

    .brand--stacked .brand__tagline,
    .brand--stacked .brand__text::after {
        font-size: 0.5rem;
    }

    .header__toggle {
        display: none;
    }

    .lang-switch {
        order: 3;
        margin-left: 2rem;
        margin-right: 0;
    }

    .nav {
        order: 2;
        margin-left: auto;
        position: static;
        flex-direction: row;
        gap: 2.25rem;
        padding: 0;
        overflow: visible;
        background: none;
        color: inherit;
        visibility: visible;
        opacity: 1;
    }

    .nav__list {
        display: flex;
        gap: 1.5rem;
    }

    .nav__link {
        font-size: 0.95rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    .nav__link--active {
        color: inherit;
    }

    .nav__quote:hover {
        background: currentColor;
    }

    .header--scrolled .nav__quote:hover,
    .header:not(.header--overlay) .nav__quote:hover {
        background: var(--color-black);
        color: var(--color-white);
    }

    .header--overlay:not(.header--scrolled) .nav__quote:hover {
        background: var(--color-white);
        color: var(--color-black);
    }

    .nav__extra {
        display: none;
    }

    .footer__main {
        grid-template-columns: 1.3fr 0.8fr 1.4fr 1fr;
        gap: 3rem;
    }


    .features {
        grid-template-columns: repeat(4, 1fr);
    }

    .designers__list {
        grid-template-columns: repeat(4, 1fr);
    }

    .techniques {
        grid-template-columns: repeat(4, 1fr);
    }

    .techniques--two {
        grid-template-columns: repeat(2, 1fr);
        max-width: var(--content-width);
    }

    .strips {
        --strip-height: 19rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__video {
        display: none;
    }

    .hero__logo {
        animation: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
