:root {
    --bg: #f6f1e7;
    --paper: #fbf8f1;
    --ink: #171512;
    --muted: #655e57;
    --line: #d8cfc2;
    --green: #34b04a;
    --green-deep: #258c39;
    --red: #c0262d;
    --red-deep: #941c22;
    --brand-gradient-x: linear-gradient(90deg, var(--red) 0 62%, #d74a4f 72%, var(--green) 100%);
    --brand-gradient-y: linear-gradient(180deg, var(--red) 0 62%, #d74a4f 72%, var(--green) 100%);
    --topbar-height: 78px;
    --service-hero-visual-gap: 92px;
    --service-band-overlap: 42px;
    --shadow: 0 28px 60px rgba(23, 21, 18, .12);
    --max: 1320px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    /* width/height attributes (img_size()) only reserve the aspect ratio; CSS keeps sizing the image */
    height: auto;
}

.icon {
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease;
}

.topbar.is-scrolled {
    background: rgba(23, 21, 18, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(255, 255, 255, .1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 78px;
    gap: 20px;
}

.brand {
    /* the header always lies on a dark hero or the dark scrolled bar */
    --logo-ink: #ffffff;
    --logo-tag: #c9c2b8;
}

.brand img,
.brand .brand-logo {
    display: block;
    width: 146px;
    height: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    font-size: 13.5px;
    font-weight: 600;
    background: rgba(15, 13, 11, .62);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu > a,
.menu-item > a,
.menu-trigger {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .68);
    transition: background .15s ease, color .15s ease;
}

.menu > a:hover,
.menu-item:hover > a,
.menu-item:hover > .menu-trigger,
.menu-trigger:focus-visible {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.menu > a.is-active,
.menu-item > a.is-active,
.menu-trigger.is-active {
    background: var(--red);
    color: #fff;
}

.menu-item {
    position: relative;
    padding: 0;
}

/* Invisible hover bridge — keeps :hover alive across the visual gap above .submenu */
.menu-item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.menu-item > a,
.menu-item > .menu-trigger {
    gap: 7px;
}

.menu-item > a::after,
.menu-item > .menu-trigger::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .72;
    transition: transform .16s ease, opacity .16s ease;
}

.menu-item:hover > a::after,
.menu-item:focus-within > a::after,
.menu-item:hover > .menu-trigger::after,
.menu-item:focus-within > .menu-trigger::after {
    transform: translateY(1px) rotate(225deg);
    opacity: 1;
}

.submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: -18px;
    z-index: 30;
    width: 310px;
    display: none;
    gap: 4px;
    padding: 14px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    /* Solid: large hero headlines behind it showed through the links (a blur inside the blurred menu bar does not hide them). */
    background: #171512;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, .35);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.menu-item:hover .submenu,
.menu-item:focus-within .submenu {
    display: grid;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 10px 12px;
    color: rgba(255, 255, 255, .78);
    border-radius: 12px;
    line-height: 1.25;
}

.submenu a:hover {
    color: #fff;
    background: rgba(192, 38, 45, .28);
}

/* The name of a dropdown only opens it: a button styled like the other menu items. */
.menu-trigger {
    border: 0;
    background: none;
    font: inherit;
    cursor: default;
}

.menu-item > .menu-trigger {
    position: relative;
}

.submenu-divider {
    margin: 6px 12px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.submenu--icons a,
.submenu a:has(.submenu-logo) {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submenu-logo,
.submenu-icon {
    flex: none;
    width: 18px;
    height: 18px;
}

/* Icons in the colours of the mobile menu: red for the main digitisation, green for the other services. */
.submenu-icon {
    display: flex;
    color: #ff7a7f;
    transition: color .16s ease;
}

.submenu--additional .submenu-icon {
    color: #5fd172;
}

.submenu a:hover .submenu-icon,
.submenu a.is-active .submenu-icon {
    color: #fff;
}

.submenu-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu {
    display: none;
}

.mobile-menu summary {
    list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: none;
}

.mobile-menu-icon {
    position: relative;
    width: 18px;
    height: 12px;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform .18s ease, top .18s ease;
}

.mobile-menu-icon::before {
    top: 1px;
}

.mobile-menu-icon::after {
    top: 9px;
}

.mobile-menu[open] .mobile-menu-icon::before {
    top: 5px;
    transform: rotate(45deg);
}

.mobile-menu[open] .mobile-menu-icon::after {
    top: 5px;
    transform: rotate(-45deg);
}

.mobile-menu-panel {
    display: grid;
    gap: 18px;
}

.mobile-menu-group {
    display: grid;
    gap: 4px;
}

.mobile-menu-group > span {
    padding: 0 4px 6px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.mobile-menu-group a {
    display: block;
    padding: 10px 12px;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    border-radius: 12px;
}

.mobile-menu-group a:hover {
    color: #fff;
    background: rgba(192, 38, 45, .28);
}

.mobile-menu-section {
    display: grid;
}

.mobile-menu-label {
    padding: 0 4px 8px;
    color: #e0555b;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mobile-menu-section--additional .mobile-menu-label {
    color: #5fd172;
}

.mobile-menu-list {
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
    border-radius: 18px;
}

.mobile-menu-service {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px 11px 12px;
    color: #fff;
    transition: background .15s ease;
}

.mobile-menu-service + .mobile-menu-service {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.mobile-menu-service:hover,
.mobile-menu-service[aria-current="page"] {
    background: rgba(192, 38, 45, .2);
}

.mobile-menu-section--additional .mobile-menu-service:hover,
.mobile-menu-section--additional .mobile-menu-service[aria-current="page"] {
    background: rgba(52, 176, 74, .14);
}

.mobile-menu-service-icon {
    display: flex;
    flex: none;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    color: #ff7a7f;
    background: rgba(192, 38, 45, .18);
    border-radius: 11px;
}

.mobile-menu-section--additional .mobile-menu-service-icon {
    color: #5fd172;
    background: rgba(52, 176, 74, .16);
}

.mobile-menu-list + .mobile-menu-list {
    margin-top: 8px;
}

.mobile-menu-service-icon--logo,
.mobile-menu-section--additional .mobile-menu-service-icon--logo {
    background: rgba(196, 168, 116, .14);
}

.mobile-menu-service-icon--logo img {
    width: 26px;
    height: 26px;
}

.mobile-menu-service-icon svg {
    width: 18px;
    height: 18px;
}

.mobile-menu-service-text {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.mobile-menu-service-text b {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.mobile-menu-service-text small {
    color: rgba(255, 255, 255, .58);
    font-size: 12.5px;
    line-height: 1.3;
}

.mobile-menu-chevron {
    flex: none;
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, .4);
}

.mobile-menu-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-menu-links a {
    padding: 12px 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    transition: background .15s ease, border-color .15s ease;
}

.mobile-menu-links a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.mobile-menu-links a:hover,
.mobile-menu-links a[aria-current="page"] {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .24);
}

.mobile-menu-cta {
    width: 100%;
    margin-top: 2px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 176, 74, .22);
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 14px 32px rgba(192, 38, 45, .2);
}

.btn-primary:hover {
    background: var(--red-deep);
    box-shadow: 0 18px 42px rgba(192, 38, 45, .28);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .08);
}

.signal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffb1b5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.signal:before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 8px rgba(52, 176, 74, .15);
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(var(--type-content-h1-min, 48px), 5vw, var(--type-content-h1-max, 90px));
    line-height: .92;
    max-width: 9.4ch;
    margin-top: 18px;
}

h2 {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(var(--type-content-h2-min, 32px), 3vw, var(--type-content-h2-max, 53px));
    line-height: 1;
}

h3 {
    font-size: clamp(var(--type-content-h3-min, 20px), 1.5vw, var(--type-content-h3-max, 22px));
    line-height: 1.16;
}

.lead {
    margin-top: 24px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.8;
    font-size: 1.08rem;
    max-width: 56ch;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.band {
    position: relative;
    z-index: 5;
    margin-top: calc(var(--service-band-overlap) * -1);
    margin-bottom: calc(var(--service-band-overlap) * -1);
    background: transparent;
    color: #fff;
    padding: 0;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 12px;
    overflow: visible;
}

.band-row {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding: 20px;
    counter-reset: band-item;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 46%),
        linear-gradient(90deg, #8f1b21, #b7232a 50%, #971d23);
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(23, 21, 18, .18);
    border-radius: 24px;
    box-shadow:
        0 22px 46px rgba(23, 21, 18, .22),
        0 8px 18px rgba(148, 28, 34, .2),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    overflow: hidden;
}

.band-row span {
    position: relative;
    display: grid;
    align-content: center;
    gap: 5px;
    flex: 1 1 0;
    min-height: 44px;
    padding: 0 18px;
    text-align: left;
    line-height: 1.25;
    counter-increment: band-item;
}

.band-row span + span {
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.band-row span::before {
    content: "0" counter(band-item);
    color: rgba(255, 255, 255, .5);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.band-row span:hover {
    color: #fff;
    background: rgba(17, 19, 21, .08);
}

.section {
    padding: 92px 0;
}

.band + .section {
    padding-top: calc(92px + var(--service-band-overlap));
}

.section--bordered {
    border-top: 1px solid var(--line);
}

.white {
    background: #fff;
}

.head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 28px;
}

.head p {
    max-width: 50ch;
    color: var(--muted);
    line-height: 1.75;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.eyebrow {
    display: inline-block;
    color: var(--green-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.cards4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    border-radius: 22px 22px 0 0;
    background: var(--brand-gradient-x);
}

.n {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 18px;
}

.card h3,
.card p {
    position: relative;
}

.card h3 {
    margin-top: 22px;
}

a.card h3::after {
    content: "→";
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: rgba(192, 38, 45, .42);
    background: rgba(192, 38, 45, .08);
    border-radius: 999px;
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 1;
    transform: translateX(0);
    transition: transform .18s ease, color .18s ease, background-color .18s ease;
}

.service-cards a.card h3::after,
.service-nav-cards a.card h3::after {
    content: none;
}

.card-index {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 2px;
}

.card-index strong {
    display: block;
    color: var(--ink);
    font-family: Fraunces, Georgia, serif;
    font-size: 44px;
    line-height: .9;
}

.card-index > div > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.card-index > div > span::after {
    content: "›";
    color: rgba(192, 38, 45, .48);
    font-size: 20px;
    line-height: 1;
    transform: translateX(0);
    transition: color .18s ease, transform .18s ease;
}

a.card:hover .card-index > div > span::after {
    color: var(--red);
    transform: translateX(5px);
}

.card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--green-deep);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.card-icon .icon {
    width: 19px;
    height: 19px;
}

a.card:hover {
    transform: translateY(-5px);
    border-color: rgba(192, 38, 45, .28);
    box-shadow: 0 34px 74px rgba(23, 21, 18, .16);
}

a.card:hover h3::after {
    color: var(--red);
    background: rgba(192, 38, 45, .13);
    transform: translateX(5px);
}

.page-hero,
.service-hero {
    position: relative;
    overflow: hidden;
    /* the fixed topbar overlays the hero, so its height is added on top of the visible gap */
    padding: calc(var(--topbar-height) + 64px) 0 72px;
    color: #fff;
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(192, 38, 45, .18) 8% 9%, transparent 9% 18%, rgba(192, 38, 45, .08) 18% 19%, transparent 19% 100%),
        linear-gradient(90deg, transparent 0 73%, rgba(52, 176, 74, .12) 73% 74%, transparent 74% 100%),
        radial-gradient(circle at 78% 22%, rgba(255, 239, 210, .1), transparent 18%),
        #111315;
}

.page-hero-grid,
.service-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 44px;
    align-items: end;
}

.service-hero-grid--copy-only {
    grid-template-columns: minmax(0, 1fr);
}

.page-hero-grid--copy-only {
    grid-template-columns: minmax(0, 1fr);
}

.hero-content-align--top .page-hero-grid > :first-child,
.hero-content-align--top .service-hero-grid > :first-child {
    align-self: start;
}

.hero-content-align--center .page-hero-grid > :first-child,
.hero-content-align--center .service-hero-grid > :first-child {
    align-self: center;
}

.hero-content-align--bottom .page-hero-grid > :first-child,
.hero-content-align--bottom .service-hero-grid > :first-child {
    align-self: end;
}

.page-hero h1,
.service-hero h1 {
    font-size: clamp(var(--type-hero-h1-min, 48px), 5vw, var(--type-hero-h1-max, 90px));
    max-width: 10.5ch;
}

.page-hero h2,
.service-hero h2 {
    font-size: clamp(var(--type-hero-h2-min, 42px), 3.6vw, var(--type-hero-h2-max, 62px));
}

.page-hero h3,
.service-hero h3 {
    font-size: clamp(var(--type-hero-h3-min, 20px), 2vw, var(--type-hero-h3-max, 26px));
}

.service-hero--digitalizace-velkoformatovych-dokumentu h1 {
    max-width: 11.7ch;
    font-size: clamp(2.55rem, 3.9vw, 4.45rem);
    hyphens: none;
    overflow-wrap: normal;
}

.hero-panel {
    padding: 24px;
    background: #18191b;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.hero-panel small {
    display: block;
    margin-bottom: 18px;
    color: #ffb1b5;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 800;
}

.hero-panel-cta {
    margin-top: 18px;
}

.page-hero.page-hero--lighttable {
    background:
        radial-gradient(ellipse 820px 340px at 50% 0%, rgba(255, 214, 140, .2), transparent 72%),
        #111315;
}

.page-hero--lighttable::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(255, 224, 168, .13), transparent);
    animation: lighttable-pulse 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lighttable-pulse {
    0%, 100% { opacity: .7; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero--lighttable::before {
        animation: none;
        opacity: .9;
    }
}

.page-hero--lighttable h1 {
    line-height: 1;
    max-width: 12ch;
}

.page-hero.hero-heading--compact h1,
.service-hero.hero-heading--compact h1 {
    font-size: clamp(var(--type-hero-h1-compact-min, 37px), 3.6vw, var(--type-hero-h1-compact-max, 56px));
    line-height: 1.02;
}

.page-hero--lighttable h1 em {
    font-style: italic;
    color: #ffcf8a;
}

.lightbox-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.frame {
    position: relative;
    padding: 14px 14px 11px;
    background: rgba(255, 255, 255, .03);
}

.frame::before,
.frame::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
}

.frame::before {
    top: 0;
    left: 0;
    border-top: 1.5px solid rgba(255, 224, 168, .5);
    border-left: 1.5px solid rgba(255, 224, 168, .5);
}

.frame::after {
    bottom: 0;
    right: 0;
    border-bottom: 1.5px solid rgba(255, 224, 168, .5);
    border-right: 1.5px solid rgba(255, 224, 168, .5);
}

.frame a,
.frame b {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.frame .cap {
    display: block;
    margin-top: 7px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 224, 168, .55);
}

.frame--cta {
    background: rgba(255, 224, 168, .08);
}

.frame--cta a {
    color: #ffcf8a;
    font-weight: 700;
}

.hero-appearance {
    --hero-accent: var(--red);
    --hero-accent-deep: var(--red-deep);
    --hero-accent-soft: #ffb1b5;
    --hero-accent-rgb: 192, 38, 45;
    --hero-secondary-rgb: 52, 176, 74;
    --hero-cta: var(--hero-accent);
    --hero-cta-deep: var(--hero-accent-deep);
    --hero-cta-rgb: var(--hero-accent-rgb);
    --hero-glow-opacity: 0;
}

.hero-accent--green {
    --hero-accent: var(--green);
    --hero-accent-deep: var(--green-deep);
    --hero-accent-soft: #78d98a;
    --hero-accent-rgb: 52, 176, 74;
    --hero-secondary-rgb: 52, 176, 74;
}

.hero-accent--red {
    --hero-secondary-rgb: 192, 38, 45;
}

.hero-accent--neutral {
    --hero-accent: #d7d9d8;
    --hero-accent-deep: #b7bbba;
    --hero-accent-soft: #e8eae9;
    --hero-accent-rgb: 215, 217, 216;
    --hero-secondary-rgb: 215, 217, 216;
}

.hero-cta--red {
    --hero-cta: var(--red);
    --hero-cta-deep: var(--red-deep);
    --hero-cta-rgb: 192, 38, 45;
}

.hero-cta--green {
    --hero-cta: var(--green);
    --hero-cta-deep: var(--green-deep);
    --hero-cta-rgb: 52, 176, 74;
}

.hero-appearance::after {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
}

.page-hero.hero-treatment--glow,
.service-hero.hero-treatment--glow,
.page-hero.page-hero--lighttable.hero-treatment--glow {
    background: #111315;
}

.hero-treatment--glow::after {
    background: radial-gradient(
        ellipse 940px 360px at 50% 0%,
        rgba(var(--hero-accent-rgb), var(--hero-glow-opacity)),
        transparent 72%
    );
}

/* Brand mix: a red glow on the left and a green one on the right, so it differs from plain red. */
.hero-treatment--glow.hero-accent--brand::after {
    background:
        radial-gradient(ellipse 820px 340px at 30% 0%, rgba(var(--hero-accent-rgb), var(--hero-glow-opacity)), transparent 72%),
        radial-gradient(ellipse 680px 320px at 80% 0%, rgba(var(--hero-secondary-rgb), var(--hero-glow-opacity)), transparent 72%);
}

.page-hero--lighttable.hero-appearance::before {
    display: none;
}

.hero-appearance .signal,
.hero-appearance .hero-panel small,
.hero-appearance .service-hero-image small {
    color: var(--hero-accent-soft);
}

.hero-appearance .signal::before {
    background: var(--hero-accent);
    box-shadow: 0 0 0 8px rgba(var(--hero-accent-rgb), .15);
}

.hero-appearance h1 em {
    font-style: italic;
    color: var(--hero-accent-soft);
}

.hero-appearance .hero-summary-list > * > span {
    color: var(--hero-accent-soft);
    background: rgba(var(--hero-accent-rgb), .12);
    border-color: rgba(var(--hero-accent-rgb), .22);
}

.hero-appearance .hero-summary-cta--accent {
    background: var(--hero-accent);
    box-shadow: 0 14px 32px rgba(var(--hero-accent-rgb), .2);
}

.hero-appearance .hero-summary-cta--accent:hover {
    background: var(--hero-accent-deep);
    box-shadow: 0 18px 42px rgba(var(--hero-accent-rgb), .28);
}

.hero-summary-cta--red {
    background: var(--red);
    box-shadow: 0 14px 32px rgba(192, 38, 45, .2);
}

.hero-summary-cta--red:hover {
    background: var(--red-deep);
}

.hero-summary-cta--green {
    background: var(--green);
    box-shadow: 0 14px 32px rgba(52, 176, 74, .2);
}

.hero-summary-cta--green:hover {
    background: var(--green-deep);
}

@media (max-width: 560px) {
    .lightbox-grid {
        grid-template-columns: 1fr;
    }
}

.contact-hero-playground {
    background: #fff;
}

.contact-hero-playground-intro {
    padding-top: 84px;
    padding-bottom: 56px;
}

.contact-hero-playground-intro h2 {
    margin-bottom: 14px;
}

.contact-hero-playground-intro p {
    max-width: 58ch;
    color: var(--muted);
    line-height: 1.7;
}

.contact-hero-demo-label {
    padding: 18px 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.contact-hero-demo-label .container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.contact-hero-demo-label strong {
    color: var(--ink);
    font-size: 14px;
}

.contact-hero-demo-label span {
    color: var(--muted);
    font-size: 13px;
}

.contact-hero-demo {
    --contact-hero-glow: rgba(192, 38, 45, .24);
    --contact-hero-wash: rgba(192, 38, 45, .14);
    --contact-hero-accent: #ff9399;
    --contact-hero-corner: rgba(226, 72, 80, .68);
    --contact-hero-caption: rgba(255, 147, 153, .68);
    --contact-hero-cta-bg: rgba(192, 38, 45, .12);
    background:
        radial-gradient(ellipse 820px 340px at 50% 0%, var(--contact-hero-glow), transparent 72%),
        #111315;
}

.contact-hero-demo::before {
    background: linear-gradient(180deg, var(--contact-hero-wash), transparent);
}

.contact-hero-demo h1 em {
    color: var(--contact-hero-accent);
}

.contact-hero-demo .frame::before {
    border-top-color: var(--contact-hero-corner);
    border-left-color: var(--contact-hero-corner);
}

.contact-hero-demo .frame::after {
    border-right-color: var(--contact-hero-corner);
    border-bottom-color: var(--contact-hero-corner);
}

.contact-hero-demo .frame .cap {
    color: var(--contact-hero-caption);
}

.contact-hero-demo .frame--cta {
    background: var(--contact-hero-cta-bg);
}

.contact-hero-demo .frame--cta a {
    color: var(--contact-hero-accent);
}

.contact-hero-demo--green {
    --contact-hero-glow: rgba(52, 176, 74, .22);
    --contact-hero-wash: rgba(52, 176, 74, .13);
    --contact-hero-accent: #78d98a;
    --contact-hero-corner: rgba(89, 201, 109, .66);
    --contact-hero-caption: rgba(120, 217, 138, .65);
    --contact-hero-cta-bg: rgba(192, 38, 45, .12);
}

.contact-hero-demo--green .frame--cta a {
    color: #ff9399;
}

.contact-hero-demo--green .frame--cta::before,
.contact-hero-demo--green .frame--cta::after {
    border-color: rgba(226, 72, 80, .68);
}

.contact-hero-demo--brand {
    --contact-hero-wash: rgba(255, 255, 255, .025);
    --contact-hero-accent: #fff;
    --contact-hero-corner: rgba(226, 72, 80, .66);
    --contact-hero-caption: rgba(255, 255, 255, .55);
    --contact-hero-cta-bg: rgba(255, 255, 255, .05);
    background:
        radial-gradient(ellipse 620px 320px at 22% 0%, rgba(192, 38, 45, .25), transparent 72%),
        radial-gradient(ellipse 620px 320px at 78% 0%, rgba(52, 176, 74, .2), transparent 72%),
        #111315;
}

.contact-hero-demo--brand h1 em {
    color: transparent;
    background: linear-gradient(90deg, #ff8f96, #f6c0aa 46%, #7ada8b);
    background-clip: text;
    -webkit-background-clip: text;
}

.contact-hero-demo--brand .frame:nth-child(even)::before {
    border-top-color: rgba(89, 201, 109, .68);
    border-left-color: rgba(89, 201, 109, .68);
}

.contact-hero-demo--brand .frame:nth-child(even)::after {
    border-right-color: rgba(89, 201, 109, .68);
    border-bottom-color: rgba(89, 201, 109, .68);
}

.contact-hero-demo--brand .frame:nth-child(odd) .cap {
    color: rgba(255, 143, 150, .66);
}

.contact-hero-demo--brand .frame:nth-child(even) .cap {
    color: rgba(122, 218, 139, .66);
}

.contact-hero-demo--brand .frame--cta a {
    color: #82df93;
}

.contact-hero-demo--lines {
    --contact-hero-wash: rgba(255, 255, 255, .02);
    --contact-hero-accent: #fff;
    --contact-hero-corner: rgba(255, 255, 255, .3);
    --contact-hero-caption: rgba(255, 255, 255, .5);
    --contact-hero-cta-bg: rgba(192, 38, 45, .1);
    background:
        linear-gradient(90deg, transparent 0 11%, rgba(192, 38, 45, .22) 11% 11.35%, transparent 11.35% 82%, rgba(52, 176, 74, .18) 82% 82.35%, transparent 82.35%),
        #111315;
}

.contact-hero-demo--lines::before {
    height: 5px;
    background: var(--brand-gradient-x);
    animation: none;
    opacity: .9;
}

.contact-hero-demo--lines h1 em {
    padding-bottom: .04em;
    color: #fff;
    background: var(--brand-gradient-x) bottom / 100% 3px no-repeat;
}

.contact-hero-demo--lines .frame--cta a {
    color: #ff9399;
}

@media (max-width: 700px) {
    .contact-hero-demo-label .container {
        display: grid;
        gap: 5px;
    }
}

.service-hero-visual-grid {
    grid-template-columns: minmax(0, .78fr) minmax(520px, .92fr);
    align-items: center;
}

.service-hero {
    padding-bottom: calc(var(--service-hero-visual-gap) + var(--service-band-overlap));
}

.service-hero-copy {
    max-width: 660px;
}

.service-hero-image {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
    background: #18191b;
}


.service-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    transform: scale(1.02);
}

.service-hero-image figcaption {
    position: absolute;
    z-index: 1;
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 22px;
    background: rgba(17, 19, 21, .72);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    backdrop-filter: blur(18px);
}

.service-hero-image small {
    display: block;
    margin-bottom: 14px;
    color: #ffb1b5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ── Service hero: full-width photo with a before/after comparison ─────── */
.service-hero-photo {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 780px;
    color: #fff;
    background: #111315;
}

.service-hero-photo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
}

.service-hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(10, 11, 12, .95) 0%, rgba(10, 11, 12, .86) 38%, rgba(10, 11, 12, .5) 70%, rgba(10, 11, 12, .35) 100%),
        linear-gradient(180deg, rgba(10, 11, 12, .6) 0, transparent 24%, transparent 70%, rgba(10, 11, 12, .8) 100%);
}

.service-hero-photo-grid {
    position: relative;
    z-index: 2;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    gap: 56px;
    align-items: center;
    padding-top: calc(var(--topbar-height) + 64px);
    padding-bottom: 56px;
}

.service-hero-photo--no-compare .service-hero-photo-grid {
    grid-template-columns: minmax(0, 1fr);
}

.service-hero-photo h1 {
    font-size: clamp(42px, 4.8vw, 72px);
    line-height: .98;
    max-width: 12ch;
    text-wrap: balance;
}

.service-hero-photo.hero-heading--compact h1 {
    font-size: clamp(var(--type-hero-h1-compact-min, 37px), 3.6vw, var(--type-hero-h1-compact-max, 56px));
    line-height: 1.02;
}

.service-hero-photo .lead {
    max-width: 560px;
    color: rgba(255, 255, 255, .76);
    line-height: 1.65;
}

.service-hero-photo .hero-actions {
    margin-top: 30px;
}

.service-hero-photo .btn-primary {
    background: var(--hero-cta);
    box-shadow: 0 14px 32px rgba(var(--hero-cta-rgb), .24);
}

.service-hero-photo .btn-primary:hover {
    background: var(--hero-cta-deep);
}

.service-hero-photo .btn-secondary {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
}

.service-hero-photo-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    max-width: 560px;
    margin: 36px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    list-style: none;
}

.service-hero-photo-facts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.service-hero-photo-facts svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--hero-accent-soft);
}

.service-hero-photo-materials {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: rgba(10, 11, 12, .6);
    backdrop-filter: blur(10px);
}

.service-hero-photo-materials .container {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-top: 16px;
    padding-bottom: 16px;
    overflow-x: auto;
}

.service-hero-photo-materials span {
    flex-shrink: 0;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.service-hero-photo-materials ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-hero-photo-materials li {
    flex-shrink: 0;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* Before/after slider: the original is clipped to the left of the handle. */
.service-compare {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 22px;
    background: #000;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 8px rgba(255, 255, 255, .06);
    user-select: none;
    touch-action: pan-y;
}

.service-compare img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.service-compare-before {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

/* A negative as it looks against the light: the scan inverted, slightly warm. */
.service-compare-before--negative {
    filter: grayscale(1) invert(1) sepia(.35) hue-rotate(-12deg) contrast(.92) brightness(.95);
}

.service-compare-handle {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    margin-left: -1px;
    background: #fff;
    box-shadow: 0 0 18px rgba(0, 0, 0, .6);
    pointer-events: none;
}

.service-compare-handle i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}

.service-compare-handle i::before,
.service-compare-handle i::after {
    content: '';
    position: absolute;
    top: 50%;
    margin-top: -6px;
    border: 6px solid transparent;
}

.service-compare-handle i::before {
    left: 9px;
    border-right-color: var(--red);
}

.service-compare-handle i::after {
    right: 9px;
    border-left-color: var(--red);
}

.service-compare-range {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.service-compare:focus-within .service-compare-handle i {
    outline: 3px solid var(--hero-accent-soft, #ffb1b5);
    outline-offset: 3px;
}

.service-compare-tag {
    position: absolute;
    z-index: 2;
    top: 16px;
    max-width: calc(50% - 24px);
    overflow: hidden;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(10, 11, 12, .8);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.service-compare-tag--before {
    right: calc(100% - var(--pos) + 14px);
}

.service-compare-tag--after {
    left: calc(var(--pos) + 14px);
}

.service-compare figcaption {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 20px 16px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7));
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    pointer-events: none;
}

@media (max-width: 1000px) {
    .service-hero-photo {
        min-height: 0;
    }

    .service-hero-photo-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 700px) {
    .service-hero-photo-grid {
        padding-top: calc(var(--topbar-height) + 36px);
        padding-bottom: 40px;
    }

    .service-hero-photo-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-compare {
        border-radius: 16px;
    }
}

/* ── Service: what the finished scan looks like ───────────────────────── */
.service-output {
    scroll-margin-top: calc(var(--topbar-height) + 24px);
}

.service-output-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: center;
}

.service-output h2 em,
.service-references h2 em {
    font-style: italic;
    color: var(--red);
}

.service-output-copy > p {
    margin-top: 18px;
    max-width: 46ch;
    color: var(--muted);
    line-height: 1.7;
}

.service-output-tabs {
    display: grid;
    gap: 8px;
    margin-top: 30px;
}

.service-output-tabs :is(button, .service-output-tab) {
    display: grid;
    gap: 4px;
    padding: 14px 18px;
    border: 1px solid rgba(23, 21, 18, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .5);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.service-output-tabs b {
    font-size: 15px;
}

.service-output-tabs :is(button, .service-output-tab) > span {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.service-output-tabs :is(button, .service-output-tab):hover {
    background: #fff;
}

.service-output-tabs :is(button, .service-output-tab)[aria-selected="true"] {
    border-color: rgba(192, 38, 45, .45);
    background: #fff;
}

.service-output-tabs :is(button, .service-output-tab):focus-visible,
.service-output-pan:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

.section-v-charcoal.service-output h2,
.section-v-charcoal.service-references h2 {
    color: #fff;
}

.section-v-charcoal.service-output h2 em {
    color: #ffb1b5;
}

.section-v-charcoal.service-output .service-output-copy > p,
.section-v-charcoal .service-output-tabs :is(button, .service-output-tab) > span {
    color: rgba(255, 255, 255, .62);
}

.section-v-charcoal .service-output-tabs :is(button, .service-output-tab) {
    border-color: rgba(255, 255, 255, .1);
    background: transparent;
    color: #fff;
}

.section-v-charcoal .service-output-tabs :is(button, .service-output-tab):hover {
    background: rgba(255, 255, 255, .04);
}

.section-v-charcoal .service-output-tabs :is(button, .service-output-tab)[aria-selected="true"] {
    border-color: rgba(255, 177, 181, .5);
    background: rgba(192, 38, 45, .14);
}

.section-v-charcoal .service-output-tabs :is(button, .service-output-tab):focus-visible,
.section-v-charcoal .service-output-pan:focus-visible {
    outline-color: #ffb1b5;
}

.service-output-viewer {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: radial-gradient(circle at 50% 40%, #26272a, #121315);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
}

.service-output-panel {
    position: absolute;
    inset: 0;
}

.service-output-panel[hidden] {
    display: none;
}

.service-output-panel > img {
    width: 100%;
    height: 100%;
    padding: 28px;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5));
}

.service-output-pan {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: none;
}

.service-output-pan.is-draggable {
    cursor: grab;
}

.service-output-pan.is-dragging {
    cursor: grabbing;
}

/* The crop keeps its own pixel size: no scaling, the script only moves it. */
.service-output-pan img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    max-width: none;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.service-output-chip {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(10, 11, 12, .72);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    pointer-events: none;
}

.service-output-chip--hint {
    left: auto;
    right: 16px;
    color: rgba(255, 255, 255, .78);
    font-weight: 600;
}

.service-output-chip[hidden] {
    display: none;
}

/* ── Service: whole scan and three places of it (tiled full-resolution scan) ── */
/* The whole scan with its physical size and three marks; the same places pixel for pixel as columns.
   Nothing follows the pointer: pointing at a column lights up its mark on the scan and the other way round. */
.service-places {
    --places-ink: var(--ink);
    --places-muted: var(--muted);
    --places-line: rgba(23, 21, 18, .12);
    --places-card: rgba(255, 255, 255, .6);
    --places-chip: rgba(23, 21, 18, .05);
    --places-on: var(--ink);
    --places-on-ink: #fff;
}

.section-v-charcoal.service-places {
    --places-ink: #fff;
    --places-muted: rgba(255, 255, 255, .62);
    --places-line: rgba(255, 255, 255, .1);
    --places-card: rgba(255, 255, 255, .035);
    --places-chip: rgba(255, 255, 255, .05);
    --places-on: #fff;
    --places-on-ink: var(--ink);
}

.service-places-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 56px;
    align-items: end;
    margin-bottom: 34px;
}

.service-places-head h2 {
    margin: 0;
}

.service-places-head p {
    margin: 0 0 8px;
    color: var(--places-muted);
    line-height: 1.7;
}

.service-places-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 18px;
    align-items: stretch;
}

.service-places-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--places-line);
    border-radius: 22px;
    background: var(--places-card);
}

.service-places-label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    padding: 16px 20px 0;
    /* room for the zoom switch in the corner of the card */
    padding-right: 132px;
    color: var(--places-muted);
    font-size: 12.5px;
}

.service-places-label b {
    color: var(--places-ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.service-places-zoom {
    position: absolute;
    top: 9px;
    right: 14px;
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--places-line);
    border-radius: 999px;
    background: var(--places-chip);
}

.service-places-zoom button {
    padding: 5px 11px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--places-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.service-places-zoom button:hover {
    color: var(--places-ink);
}

.service-places-zoom button[aria-pressed="true"] {
    background: var(--places-on);
    color: var(--places-on-ink);
}

.service-places-zoom button:focus-visible,
.service-places-mark:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.section-v-charcoal .service-places-zoom button:focus-visible,
.section-v-charcoal .service-places-mark:focus-visible {
    outline-color: #ffb1b5;
}

/* Whole scan; the room on the left and below is for the dimension lines. */
.service-places-stage {
    flex: 1;
    display: grid;
    align-items: center;
    padding: 18px 26px 52px 62px;
}

.service-places-stage--plain {
    padding: 18px 26px 26px;
}

.service-places-frame {
    position: relative;
}

.service-places-frame > img {
    width: 100%;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}

/* Dimension lines as on a drawing: a line with end ticks, broken by its label. */
.service-places-dim {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--places-muted);
    font-size: 12px;
    letter-spacing: .08em;
    white-space: nowrap;
    pointer-events: none;
}

.service-places-dim b {
    color: var(--places-ink);
    font-weight: 700;
}

.service-places-dim::before,
.service-places-dim::after {
    content: '';
    flex: 1;
    opacity: .7;
}

.service-places-dim--w {
    top: calc(100% + 14px);
}

.service-places-dim--w::before,
.service-places-dim--w::after {
    height: 13px;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}

.service-places-dim--w::before {
    border-left: 1px solid;
}

.service-places-dim--w::after {
    border-right: 1px solid;
}

.service-places-dim--h {
    right: calc(100% + 14px);
    flex-direction: column;
}

.service-places-dim--h::before,
.service-places-dim--h::after {
    width: 13px;
    background: linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
}

.service-places-dim--h::before {
    border-top: 1px solid;
}

.service-places-dim--h::after {
    border-bottom: 1px solid;
}

.service-places-dim--h b {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* A mark is as large on the scan as its column really is on the original (set by site.js). */
.service-places-mark {
    position: absolute;
    min-width: 6px;
    min-height: 6px;
    padding: 0;
    border: 1.5px solid #fff;
    border-radius: 2px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 0 5px rgba(255, 255, 255, .14);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease;
}

/* Hit area: the rectangle, its number and the gap between them, with a little room around. */
.service-places-mark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    right: -41px;
    height: max(100% + 16px, 40px);
    transform: translateY(-50%);
}

.service-places-mark b {
    position: absolute;
    left: calc(100% + 9px);
    top: 50%;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 800;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.service-places.has-active .service-places-mark:not(.is-active) {
    opacity: .45;
}

.service-places-mark.is-active {
    border-color: #ff5a62;
    background: rgba(192, 38, 45, .28);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 0 7px rgba(192, 38, 45, .35);
}

.service-places-mark.is-active b {
    background: var(--red);
    color: #fff;
    transform: translateY(-50%) scale(1.15);
}

/* Places. The tiles around a place cover half a tile (256 px) to every side, hence the height limit. */
.service-places-cols {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-height: 440px;
    max-height: 500px;
    padding: 16px;
}

.service-places-col {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #1c1a17;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: outline-color .2s ease;
}

.service-places-col.is-active {
    outline-color: var(--red);
}

.service-places-tiles {
    position: absolute;
    inset: 0;
}

.service-places-tiles[hidden] {
    display: none;
}

/* Tiles keep their own pixel size and sit around the middle of the column. */
.service-places-tiles img {
    position: absolute;
    max-width: none;
}

.service-places-col > b {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
    transition: background-color .2s ease, color .2s ease;
}

.service-places-col.is-active > b {
    background: var(--red);
    color: #fff;
}

.service-places-col figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 44px 14px 13px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.service-places-col figcaption [data-place-size] {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 500;
}

.service-places-col figcaption [data-place-size]:empty {
    display: none;
}

/* Facts */
.service-places-facts {
    display: flex;
    align-items: center;
    margin: 18px 0 0;
    padding: 18px 22px;
    border: 1px solid var(--places-line);
    border-radius: 18px;
    background: var(--places-card);
}

/* The number is read after its label but shown above it. */
.service-places-facts > div {
    flex: 1 1 0;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 6px;
    padding: 0 24px;
    border-left: 1px solid var(--places-line);
}

.service-places-facts > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.service-places-facts dt {
    color: var(--places-muted);
    font-size: 13px;
    line-height: 1.35;
}

.service-places-facts dd {
    margin: 0;
    color: var(--places-ink);
    font-family: Fraunces, Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.service-places-facts .service-places-real {
    flex: 1.5 1 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
}

.service-places-real img {
    flex: none;
    max-width: none;
    border-radius: 2px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}

.service-places-real div {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
}

.service-places [data-place-view][hidden] {
    display: none;
}

.service-places-facts dd small {
    color: var(--places-muted);
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

/* A book page with its spread: the switch opens the heading at the card's left edge, which stays put when the
   card widens for the spread. */
.service-places-label--switch {
    align-items: center;
    padding: 12px 20px 0 14px;
}

.service-places-label--switch .service-places-zoom {
    position: static;
    flex: none;
}

/* A portrait original (a book page): a narrower whole and taller columns; its spread takes the room back. */
.service-places--portrait .service-places-cols {
    max-height: 840px;
}

@media (min-width: 1001px) {
    .service-places--portrait .service-places-grid {
        grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
    }

    .service-places--portrait.is-spread .service-places-grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    }
}

@media (max-width: 1000px) {
    .service-places-head,
    .service-places-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-places-head {
        gap: 14px;
    }

    .service-places-stage {
        padding: 16px 18px 48px 46px;
    }

    .service-places-stage--plain {
        padding: 16px 18px 20px;
    }

    .service-places-facts {
        flex-wrap: wrap;
        gap: 20px 0;
    }

    .service-places-facts .service-places-real {
        flex-basis: 100%;
    }

    .service-places-facts .service-places-real + div {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .service-places-cols {
        gap: 6px;
        min-height: 320px;
        padding: 12px;
    }

    .service-places-col figcaption {
        padding: 36px 9px 10px;
        font-size: 12.5px;
    }

    .service-places-col figcaption [data-place-size] {
        font-size: 11px;
    }

    .service-places-facts > div {
        padding: 0 12px;
    }

    .service-places-facts dd {
        font-size: 20px;
    }

    .service-places-label > span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-places-mark,
    .service-places-mark b,
    .service-places-col,
    .service-places-col > b {
        transition: none;
    }
}

/* Two dark sections in a row (output samples, then the gallery) are kept apart by a hairline. */
.section-v-charcoal.service-output + .section-v-charcoal {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* ── Service: references ──────────────────────────────────────────────── */
.service-references-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 24px 56px;
    align-items: end;
    margin-bottom: 30px;
}

.service-references-head h2 {
    margin: 0;
}

.service-references-head p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.service-references-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    font-weight: 800;
}

.service-references-all svg {
    width: 16px;
    height: 16px;
    transition: transform .18s ease;
}

.service-references-all:hover svg,
.service-references-all:focus-visible svg {
    transform: translateX(3px);
}

.service-references-quote {
    margin-top: 28px;
}

.section-v-charcoal.service-references h2 em,
.section-v-charcoal .service-references-all {
    color: #ffb1b5;
}

.section-v-charcoal .service-references-head p {
    color: rgba(255, 255, 255, .62);
}

@media (max-width: 1000px) {
    .service-output-grid,
    .service-references-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .service-output-panel > img {
        padding: 16px;
    }
}

/* ── Service: scanner comparison (100 % crops) ───────────────────────── */
.service-cmp {
    scroll-margin-top: calc(var(--topbar-height) + 24px);
}

.service-cmp-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 56px;
    align-items: end;
}

.service-cmp-head h2 em {
    font-style: italic;
    color: var(--red);
}

.service-cmp-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.service-cmp-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin: 34px 0 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(23, 21, 18, .1);
}

.service-cmp-tabs {
    display: inline-flex;
    padding: 4px;
    border: 1px solid rgba(23, 21, 18, .14);
    border-radius: 999px;
}

.service-cmp-tabs button,
.service-cmp-chips button {
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.service-cmp-tabs button {
    padding: 9px 22px;
    font-size: 14px;
}

.service-cmp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-cmp-chips button {
    padding: 8px 15px;
    border-color: rgba(23, 21, 18, .16);
    font-size: 13px;
}

.service-cmp-tabs button[aria-selected="true"],
.service-cmp-chips button[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.service-cmp-tabs button:focus-visible,
.service-cmp-chips button:focus-visible,
.service-cmp-frame:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

.service-cmp-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.service-cmp-option > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.service-cmp-slider {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    grid-template-areas: "controls compare" "where compare";
    grid-template-rows: auto 1fr;
    gap: 0 56px;
}

.service-cmp-slider[hidden],
.service-cmp-overview[hidden] {
    display: none;
}

.service-cmp-controls {
    grid-area: controls;
    display: grid;
    gap: 22px;
}

.service-cmp-controls .service-cmp-option {
    display: grid;
    gap: 8px;
}

.service-cmp-compare {
    grid-area: compare;
    aspect-ratio: 1 / 1;
}

/* 100 %: the crops keep their own pixel size, centred, never scaled. */
.service-cmp-compare img,
.service-cmp-tile img {
    object-fit: none;
    object-position: center;
}

.service-cmp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.service-cmp-meta span:last-child {
    text-align: right;
}

.service-cmp-100 {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.service-cmp-where {
    grid-area: where;
    align-self: start;
    display: grid;
    gap: 12px;
    margin: 32px 0 0;
}

.service-cmp-frame {
    position: relative;
    display: block;
    width: 100%;
    max-width: 360px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 21, 18, .18);
    border-radius: 6px;
    background: #000;
    cursor: pointer;
}

.service-cmp-frame img {
    display: block;
    width: 100%;
}

.service-cmp-frame i {
    position: absolute;
    outline: 2px solid #ff6b70;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, .45);
    transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
    pointer-events: none;
}

.service-cmp-frame b {
    position: absolute;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: rgba(10, 11, 12, .4);
    pointer-events: none;
}

.service-cmp-frame b.is-current {
    display: none;
}

.service-cmp-where figcaption {
    max-width: 360px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.service-cmp-grid {
    display: grid;
    grid-template-columns: 110px repeat(var(--cmp-cols, 3), minmax(0, 1fr));
    gap: 10px;
}

.service-cmp-col,
.service-cmp-row {
    display: grid;
    align-content: center;
    gap: 2px;
}

.service-cmp-col {
    padding: 0 2px 6px;
    text-align: center;
}

.service-cmp-col b,
.service-cmp-row b {
    font-size: 15px;
}

.service-cmp-col span,
.service-cmp-row span {
    color: var(--muted);
    font-size: 12.5px;
}

.service-cmp-tile {
    position: relative;
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.service-cmp-tile img {
    width: 100%;
    height: 100%;
}

.service-cmp-tile figcaption {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(10, 11, 12, .8);
    color: #fff;
    font-size: 12px;
}

.service-cmp-tile figcaption span {
    color: rgba(255, 255, 255, .7);
}

/* dark theme (default for this section) */
.section-v-charcoal.service-cmp h2 {
    color: #fff;
}

.section-v-charcoal.service-cmp h2 em {
    color: #ffb1b5;
}

.section-v-charcoal.service-cmp .service-cmp-head p,
.section-v-charcoal.service-cmp .service-cmp-option > span,
.section-v-charcoal.service-cmp .service-cmp-where figcaption,
.section-v-charcoal.service-cmp .service-cmp-col span,
.section-v-charcoal.service-cmp .service-cmp-row span {
    color: rgba(255, 255, 255, .58);
}

.section-v-charcoal.service-cmp .service-cmp-col b,
.section-v-charcoal.service-cmp .service-cmp-row b,
.section-v-charcoal.service-cmp .service-cmp-tabs button,
.section-v-charcoal.service-cmp .service-cmp-chips button {
    color: #fff;
}

.section-v-charcoal.service-cmp .service-cmp-bar {
    border-bottom-color: rgba(255, 255, 255, .1);
}

.section-v-charcoal.service-cmp .service-cmp-tabs {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
}

.section-v-charcoal.service-cmp .service-cmp-chips button {
    border-color: rgba(255, 255, 255, .16);
}

.section-v-charcoal.service-cmp .service-cmp-tabs button[aria-selected="true"],
.section-v-charcoal.service-cmp .service-cmp-chips button[aria-pressed="true"] {
    border-color: #fff;
    background: #fff;
    color: #111315;
}

.section-v-charcoal.service-cmp .service-cmp-frame {
    border-color: rgba(255, 255, 255, .18);
}

.section-v-charcoal.service-cmp button:focus-visible {
    outline-color: #ffb1b5;
}

@media (max-width: 1000px) {
    .service-cmp-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-cmp-slider {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "controls" "compare" "where";
        grid-template-rows: auto;
        gap: 24px;
    }

    .service-cmp-where {
        grid-template-columns: 140px minmax(0, 1fr);
        align-items: center;
        margin: 0;
    }
}

@media (max-width: 900px) {
    .service-cmp-grid {
        grid-template-columns: repeat(var(--cmp-cols, 3), minmax(0, 1fr));
        gap: 8px;
    }

    /* the column headers name each device once, so the tiles need no labels over the image */
    .service-cmp-grid > span:first-child,
    .service-cmp-col span,
    .service-cmp-tile figcaption b {
        display: none;
    }

    .service-cmp-col {
        padding: 0;
    }

    .service-cmp-col b {
        font-size: 13px;
    }

    .service-cmp-row {
        grid-column: 1 / -1;
        grid-auto-flow: column;
        justify-content: start;
        align-items: baseline;
        gap: 8px;
        margin-top: 10px;
    }

    .service-cmp-tile {
        aspect-ratio: auto;
        overflow: visible;
        background: none;
    }

    .service-cmp-tile img {
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 10px;
        background: #000;
    }

    .service-cmp-tile figcaption {
        position: static;
        justify-content: center;
        padding: 4px 2px 0;
        background: none;
        font-size: 11.5px;
    }
}

@media (max-width: 560px) {
    .service-cmp-bar {
        display: grid;
        justify-content: stretch;
    }

    .service-cmp-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .service-cmp-compare .service-cmp-dpi {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-cmp-frame i {
        transition: none;
    }
}

.service-feature {
    --feature-ink: var(--ink);
    --feature-muted: var(--muted);
    --feature-line: var(--line);
    --feature-accent: var(--red);
    --feature-chip-bg: rgba(23, 21, 18, .05);
    --feature-chip-line: rgba(23, 21, 18, .1);
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}

.section-v-charcoal .service-feature {
    --feature-ink: #fff;
    --feature-muted: rgba(255, 255, 255, .64);
    --feature-line: rgba(255, 255, 255, .1);
    --feature-accent: #e7a47a;
    --feature-chip-bg: rgba(255, 255, 255, .07);
    --feature-chip-line: rgba(255, 255, 255, .12);
}

.service-feature--copy-only {
    grid-template-columns: minmax(0, 760px);
}

.service-feature--media-first {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.service-feature--media-first .service-feature-media {
    order: -1;
}

.service-feature-copy {
    display: grid;
    align-content: start;
    gap: 18px;
}

.service-feature-copy h2 {
    margin: 0;
    color: var(--feature-ink);
}

.service-feature-copy h2 em {
    font-style: normal;
    color: var(--feature-accent);
}

.service-feature-lead,
.service-feature-body {
    max-width: 54ch;
    margin: 0;
    color: var(--feature-muted);
    line-height: 1.8;
}

.service-feature-body {
    font-size: 14px;
}

.service-feature-points {
    display: grid;
    margin: 8px 0 4px;
    border-top: 1px solid var(--feature-line);
}

.service-feature-point {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--feature-line);
}

.service-feature-point dt {
    color: var(--feature-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.service-feature-point dd {
    margin: 0;
    color: var(--feature-muted);
    font-size: 14px;
    line-height: 1.65;
}

.service-feature-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.service-feature-chips small {
    margin-right: 6px;
    color: var(--feature-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.service-feature-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--feature-chip-line);
    border-radius: 999px;
    background: var(--feature-chip-bg);
    color: var(--feature-ink);
    font-size: 12px;
    font-weight: 700;
}

.service-feature-media {
    position: relative;
    margin: 0;
}

.service-feature-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.section-v-charcoal .service-feature-media img {
    box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}

/* Product shots on a white background: the stage replaces the photo frame and
   multiply blending lets the white backdrop melt into it. */
.service-feature-media--product {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 26px;
    background: radial-gradient(ellipse 70% 55% at 50% 42%, #fff 0%, #f3ede1 62%, #e9e1d1 100%);
    box-shadow: 0 30px 70px rgba(23, 21, 18, .1);
}

.service-feature-media--product::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 11%;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(23, 21, 18, .22), transparent);
    filter: blur(4px);
}

.service-feature-media--product img {
    position: absolute;
    inset: 9% 12% 12%;
    z-index: 1;
    width: 76%;
    height: 79%;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    mix-blend-mode: multiply;
}

.section-v-charcoal .service-feature-media--product img {
    box-shadow: none;
}

.service-feature-media--product figcaption {
    z-index: 2;
}

.service-feature-media figcaption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 36px);
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(18, 15, 13, .72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}

.service-feature-media figcaption::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(52, 176, 74, .2);
}

/* Service steps: one horizontal track shared by the process and workflow sections. */
.steps-track {
    --steps: 6;
    --track-ring: var(--bg);
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
    row-gap: 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* More air than the default .head spacing: the dots and big numbers sit tight under the heading otherwise.
   (Vertical margins collapse, so this replaces the 28px .head margin rather than adding to it.) */
.head + .steps-track {
    margin-top: 44px;
}

.white .steps-track {
    --track-ring: #fff;
}

.section-v-charcoal .steps-track {
    --track-ring: #1c1a17;
}

/* The line runs across the full width so the last step sits under it like the others;
   it holds its colour up to the last dot and only then fades out. */
.steps-track::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 6px;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--red),
        rgba(192, 38, 45, .5) calc(100% - 100% / var(--steps)),
        rgba(192, 38, 45, 0));
}

.steps-track-step {
    position: relative;
    display: grid;
    align-content: start;
    gap: 12px;
    padding-right: 24px;
}

.steps-track-step::before {
    content: "";
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 6px var(--track-ring);
}

.steps-track-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.steps-track-num {
    color: var(--red);
    font-family: Fraunces, Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.steps-track-head .icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
}

.steps-track p {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
}

.section-v-charcoal .steps-track p {
    color: #fff;
}

.section-v-charcoal .steps-track-head .icon {
    color: rgba(255, 255, 255, .5);
}

/* Service highlights: one frosted-glass panel in the same language as the .card-v-o cards,
   with solid red icon tiles as the accent. */
.highlight-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .46));
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    box-shadow:
        0 24px 58px rgba(23, 21, 18, .12),
        inset 0 1px 0 rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.highlight-strip li {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 28px 26px 30px;
}

.highlight-strip li + li {
    border-left: 1px solid rgba(23, 21, 18, .07);
}

.highlight-strip-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--red);
    box-shadow:
        0 10px 22px rgba(192, 38, 45, .28),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    color: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.highlight-strip li:hover .highlight-strip-icon {
    transform: translateY(-3px);
    box-shadow:
        0 14px 26px rgba(192, 38, 45, .34),
        inset 0 1px 0 rgba(255, 255, 255, .22);
}

.highlight-strip-icon .icon {
    width: 22px;
    height: 22px;
}

.highlight-strip p {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.section-v-charcoal .highlight-strip {
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 24px 58px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.section-v-charcoal .highlight-strip li + li {
    border-left-color: rgba(255, 255, 255, .1);
}

.section-v-charcoal .highlight-strip-icon,
.section-v-charcoal .highlight-strip li:hover .highlight-strip-icon {
    box-shadow: 0 10px 22px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.section-v-charcoal .highlight-strip p {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .highlight-strip-icon {
        transition: none;
    }

    .highlight-strip li:hover .highlight-strip-icon {
        transform: none;
    }
}

.split.service-materials {
    gap: 56px;
}

@media (max-width: 1100px) {
    .split.service-materials {
        gap: 32px;
    }
}

/* Service materials as pills. */
.material-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.material-pills li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px 11px 14px;
    border: 1px solid rgba(23, 21, 18, .1);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(23, 21, 18, .05);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.material-pills li::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(52, 176, 74, .14);
}

.section-v-charcoal .material-pills li {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .07);
    box-shadow: none;
    color: #fff;
}

@media (max-width: 900px) {
    .steps-track {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 24px;
        padding-left: 30px;
    }

    .head + .steps-track {
        margin-top: 36px;
    }

    .steps-track::before {
        top: 12px;
        bottom: 0;
        left: 5px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--red), rgba(192, 38, 45, .25));
    }

    .steps-track-step {
        padding-right: 0;
    }

    .steps-track-step::before {
        position: absolute;
        top: 12px;
        left: -30px;
    }

    /* hide the line below the last dot */
    .steps-track-step:last-child::after {
        content: "";
        position: absolute;
        top: 24px;
        bottom: 0;
        left: -27px;
        width: 6px;
        background: var(--track-ring);
    }

    .steps-track-head {
        margin-top: 0;
    }

    .highlight-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .highlight-strip li:nth-child(odd) {
        border-left: 0;
    }

    .highlight-strip li:nth-child(n + 3) {
        border-top: 1px solid rgba(23, 21, 18, .07);
    }

    .section-v-charcoal .highlight-strip li:nth-child(n + 3) {
        border-top-color: rgba(255, 255, 255, .1);
    }
}

@media (max-width: 520px) {
    .highlight-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .highlight-strip li {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 18px;
        padding: 20px 22px;
    }

    .highlight-strip li + li {
        border-left: 0;
        border-top: 1px solid rgba(23, 21, 18, .07);
    }

    .section-v-charcoal .highlight-strip li + li {
        border-top-color: rgba(255, 255, 255, .1);
    }
}

@media (max-width: 900px) {
    .service-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .service-feature-media {
        order: -1;
    }

    .service-feature-point {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.service-gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(28, 26, 23, .08);
}

.section-v-charcoal .service-gallery-item {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .035);
    box-shadow: 0 22px 54px rgba(0, 0, 0, .28);
}

.service-gallery-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.service-gallery-trigger img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.service-gallery-item:hover .service-gallery-trigger img {
    transform: scale(1.035);
}

.service-gallery-item figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(17, 19, 21, .72);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
    backdrop-filter: blur(16px);
}

.section-v-charcoal .service-gallery-item figcaption {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(8, 9, 10, .74);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    width: min(1180px, calc(100% - 36px));
    max-width: none;
    max-height: calc(100dvh - 36px);
    margin: auto;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
}

.gallery-lightbox::backdrop {
    background: rgba(6, 7, 8, .84);
    backdrop-filter: blur(8px);
}

.gallery-lightbox-inner {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
    max-height: calc(100dvh - 36px);
}

.gallery-lightbox-media {
    min-height: 0;
    display: grid;
    place-items: center;
}

.gallery-lightbox-media img {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 156px);
    border-radius: 20px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .46);
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: rgba(17, 19, 21, .72);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(14px);
    transition: background .15s, color .15s, transform .15s;
}

.gallery-lightbox-close svg {
    width: 20px;
    height: 20px;
}

.gallery-lightbox-close:hover {
    color: #fff;
    background: var(--red);
    transform: translateY(-1px);
}

.gallery-lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    background: rgba(17, 19, 21, .76);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    backdrop-filter: blur(18px);
}

.gallery-lightbox-footer p {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.gallery-lightbox-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 800;
}

.gallery-lightbox-controls {
    display: inline-flex;
    gap: 8px;
}

.gallery-lightbox-controls button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
}

.gallery-lightbox-controls button:hover {
    background: var(--red);
    border-color: rgba(255, 255, 255, .12);
    transform: translateY(-1px);
}

.gallery-lightbox-controls svg {
    width: 21px;
    height: 21px;
}

.service-intro > p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.85;
}

.supplemental-content {
    display: grid;
    gap: 0;
}

.supplemental-section {
    display: grid;
    grid-template-columns: minmax(240px, .72fr) minmax(0, 1fr);
    gap: 48px;
    padding: 42px 0;
    border-top: 1px solid var(--line);
}

.supplemental-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.supplemental-section h2 {
    margin: 10px 0 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 3.4vw, 3.25rem);
    line-height: 1.02;
}

.supplemental-copy {
    display: grid;
    gap: 18px;
}

.supplemental-copy p,
.supplemental-list li {
    color: var(--muted);
    line-height: 1.8;
}

.supplemental-copy p {
    margin: 0;
}

.supplemental-callout {
    margin: 8px 0 0;
    padding: 28px;
    background: var(--paper);
    border-radius: 24px;
    box-shadow:
        inset 0 0 0 1px rgba(36, 35, 33, .08),
        inset 0 1px 0 rgba(255, 255, 255, .82);
}

.supplemental-callout p {
    color: var(--ink);
    font-weight: 700;
}

.supplemental-callout strong {
    display: block;
    margin-top: 14px;
    color: var(--red);
    line-height: 1.6;
}

.supplemental-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.supplemental-list li {
    position: relative;
    padding-left: 30px;
}

.supplemental-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand-gradient-x);
}

.service-nav-cards .n {
    width: auto;
    height: auto;
    margin-bottom: 20px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border-radius: 0;
    font-size: 13px;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}

.service-nav-cards .n .icon {
    width: 15px;
    height: 15px;
    margin-right: 7px;
    color: var(--green-deep);
    vertical-align: -2px;
}

.service-nav-cards .n::after {
    content: "›";
    margin-left: 9px;
    color: rgba(192, 38, 45, .48);
    font-size: 20px;
    line-height: 0;
    vertical-align: -1px;
    transition: color .18s ease, transform .18s ease;
}

.service-nav-cards a.card:hover .n::after {
    color: var(--red);
    transform: translateX(5px);
}

.card p {
    color: var(--muted);
    line-height: 1.75;
    margin-top: 10px;
}

/* ── Card variants: shared overrides ────────────────────────────────────── */
a.card-v-a h3::after,
a.card-v-b h3::after,
a.card-v-c h3::after,
a.card-v-o h3::after,
a.card-v-d h3::after,
a.card-v-e h3::after,
a.card-v-f h3::after { content: none; }

/* ── Card variant A: levá barevná linka ─────────────────────────────────── */
.card-v-a {
    border-left: 4px solid var(--red);
    border-radius: 0 22px 22px 0;
}

.card-v-a::after {
    display: none;
}

.card-v-a .card-icon {
    color: var(--red);
    background: rgba(192, 38, 45, .08);
    border-color: rgba(192, 38, 45, .18);
}

a.card-v-a:hover {
    border-left-color: var(--red-deep);
    background: #fff;
}

/* ── Card variant B: tmavé záhlaví ──────────────────────────────────────── */
.card-v-b {
    padding: 0;
    overflow: hidden;
}

.card-v-b::after {
    display: none;
}

.card-v-b-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: #18191b;
    border-bottom: 2px solid var(--red);
}

.card-v-b-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(192, 38, 45, .22);
    color: #ffb1b5;
    flex-shrink: 0;
}

.card-v-b-icon .icon {
    width: 17px;
    height: 17px;
}

.card-v-b-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.card-v-b h3,
.card-v-b p {
    padding: 0 24px;
}

.card-v-b h3 {
    margin-top: 20px;
}

.card-v-b p {
    padding-bottom: 24px;
}

a.card-v-b:hover .card-v-b-head {
    background: #111;
}

/* ── Card variant C: záře z rohu ────────────────────────────────────────── */
.card-v-c::after {
    display: none;
}

.card-v-c::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 38, 45, .18) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity .2s;
}

a.card-v-c:hover::before {
    opacity: 1.6;
}

.card-v-c .card-icon {
    color: var(--red);
    background: rgba(192, 38, 45, .08);
    border-color: rgba(192, 38, 45, .18);
}

.card-v-c .card-index strong {
    color: var(--red);
}

/* ── Card variant O: frosted glass bez záře ─────────────────────────────── */
.card-frosted-demo {
    position: relative;
    padding: 22px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(192, 38, 45, .08), transparent 36%),
        linear-gradient(315deg, rgba(52, 176, 74, .07), transparent 40%),
        var(--paper);
}

.card-v-o {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .46));
    border-color: rgba(255, 255, 255, .72);
    box-shadow:
        0 24px 58px rgba(23, 21, 18, .12),
        inset 0 1px 0 rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.card-v-o::after,
.card-v-o::before {
    display: none;
}

.card-v-o .card-icon {
    color: var(--red);
    background: rgba(255, 255, 255, .54);
    border-color: rgba(192, 38, 45, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.card-v-o .card-index strong {
    color: var(--red);
}

a.card-v-o:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, .9);
    box-shadow:
        0 34px 74px rgba(23, 21, 18, .16),
        inset 0 1px 0 rgba(255, 255, 255, .95);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .54));
}

/* ── Card variant D: vodoznak ikony ─────────────────────────────────────── */
.card-v-d {
    padding-bottom: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .46));
    border-color: rgba(255, 255, 255, .72);
    box-shadow:
        0 24px 58px rgba(23, 21, 18, .12),
        inset 0 1px 0 rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.card-v-d::after {
    content: none;
}

.card-v-d-watermark {
    position: absolute;
    bottom: -8px;
    right: -4px;
    color: rgba(192, 38, 45, .08);
    pointer-events: none;
}

.card-v-d-watermark .icon {
    width: 110px;
    height: 110px;
    stroke-width: 1;
}

.card-v-d .card-index strong {
    color: var(--red);
}

.card-v-d .card-icon {
    color: var(--red);
    background: rgba(192, 38, 45, .07);
    border-color: rgba(192, 38, 45, .15);
}

a.card-v-d:hover .card-v-d-watermark {
    color: rgba(192, 38, 45, .13);
}

/* ── Card variant E: gradient + pattern ─────────────────────────────────── */
.card-v-e {
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,.03) 0px,
            rgba(255,255,255,.03) 1px,
            transparent 1px,
            transparent 12px
        ),
        linear-gradient(135deg, #2a0a0c 0%, #5c1118 50%, #3d0d13 100%);
    border-color: rgba(255, 255, 255, .08);
    color: #fff;
}

.card-v-e::after {
    background: linear-gradient(90deg, rgba(255,255,255,.22), transparent);
    height: 1px;
    top: auto;
    bottom: 0;
    border-radius: 0 0 22px 22px;
}

.card-v-e .card-index strong {
    color: #fff;
}

.card-v-e .card-index span {
    color: rgba(255, 255, 255, .45);
}

.card-v-e h3 {
    color: #fff;
}

.card-v-e p {
    color: rgba(255, 255, 255, .6);
}

.card-v-e-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #ffb1b5;
    flex-shrink: 0;
}

.card-v-e-icon .icon {
    width: 18px;
    height: 18px;
}

a.card-v-e:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 34px 74px rgba(100, 10, 20, .5);
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,.04) 0px,
            rgba(255,255,255,.04) 1px,
            transparent 1px,
            transparent 12px
        ),
        linear-gradient(135deg, #3a0d10 0%, #6e1520 50%, #4a0f17 100%);
}

/* ── Card variant F: ikona v popředí ────────────────────────────────────── */
.card-v-f {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 28px 26px 24px;
}

.card-v-f::after {
    display: none;
}

.card-v-f::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(192, 38, 45, .06) 0%, transparent 55%);
    pointer-events: none;
    transition: opacity .2s;
}

.card-v-f-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--red);
    color: #fff;
    margin-bottom: 20px;
    transition: transform .2s, background .2s;
    box-shadow: 0 8px 20px rgba(192, 38, 45, .35);
}

.card-v-f-icon .icon {
    width: 26px;
    height: 26px;
}

.card-v-f h3 {
    margin-top: 0;
    flex: 1;
}

.card-v-f p {
    flex: 1;
}

a.card-v-f:hover {
    border-color: rgba(192, 38, 45, .28);
}

a.card-v-f:hover .card-v-f-icon {
    transform: scale(1.07);
    background: var(--red-deep);
}

/* ── Design playground: section backgrounds ─────────────────────────────── */
.section-v-red {
    background:
        repeating-linear-gradient(
            -55deg,
            rgba(255,255,255,.028) 0px, rgba(255,255,255,.028) 1px,
            transparent 1px, transparent 16px
        ),
        linear-gradient(135deg, #700c12 0%, #a81820 50%, #650a10 100%);
}

.section-v-black {
    background:
        radial-gradient(ellipse at 20% 65%, rgba(192,38,45,.16) 0%, transparent 52%),
        radial-gradient(ellipse at 80% 20%, rgba(192,38,45,.08) 0%, transparent 42%),
        #0c0b0a;
}

.section-v-charcoal {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px, transparent 1px, transparent 52px),
        repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px, transparent 1px, transparent 52px),
        #1c1a17;
}

.section-v-red .eyebrow,
.section-v-black .eyebrow,
.section-v-charcoal .eyebrow { color: rgba(255,255,255,.45); }

/* service-nav-cards inside dark sections */
.section-v-black .service-nav-cards .n,
.section-v-charcoal .service-nav-cards .n {
    color: rgba(255,255,255,.48);
}

.section-v-black .service-nav-cards .n .icon,
.section-v-charcoal .service-nav-cards .n .icon {
    color: var(--green);
}

.section-v-black .service-nav-cards .n::after,
.section-v-charcoal .service-nav-cards .n::after {
    color: rgba(52,176,74,.5);
}

.section-v-black .service-nav-cards a.card:hover .n::after,
.section-v-charcoal .service-nav-cards a.card:hover .n::after {
    color: var(--green);
}

.section-v-charcoal .cta,
.section-v-black .cta {
    border: 1px solid rgba(255, 255, 255, .1);
}

/* ── Related services on service pages: compact photo cards ────────────── */
.service-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-related-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px 20px 14px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.section.white .service-related-card {
    background: var(--paper);
}

.service-related-card:hover {
    border-color: #c9bca9;
    box-shadow: 0 14px 34px rgba(23, 21, 18, .08);
    transform: translateY(-2px);
}

.service-related-media {
    display: block;
    width: 132px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.service-related-media--icon {
    display: grid;
    place-items: center;
    background: rgba(52, 176, 74, .1);
    color: var(--green-deep);
}

.service-related-media--icon svg {
    width: 34px;
    height: 34px;
}

.service-related-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.service-related-body strong {
    font-size: 18px;
    line-height: 1.2;
}

.service-related-lead {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.service-related-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.service-related-more svg {
    width: 14px;
    height: 14px;
    transition: transform .15s ease;
}

.service-related-card:hover .service-related-more svg {
    transform: translateX(3px);
}

.section-v-charcoal .service-related-card,
.section-v-black .service-related-card {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: #fff;
}

.section-v-charcoal .service-related-lead,
.section-v-black .service-related-lead {
    color: rgba(255, 255, 255, .6);
}

.section-v-charcoal .service-related-more,
.section-v-black .service-related-more {
    color: var(--green);
}

/* The contact card right after related services of the same colour continues that section. */
.section.service-cta--joined {
    padding-top: 0;
}

.section.service-related:has(+ .service-cta--joined) {
    padding-bottom: 56px;
}

@media (max-width: 1080px) {
    .service-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .service-related-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-related-card {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 14px;
    }

    .service-related-media {
        width: 104px;
        height: 84px;
    }
}

.section-v-red .head h2,
.section-v-black .head h2,
.section-v-charcoal .head h2 { color: #fff; }

.section-v-red .head p,
.section-v-black .head p,
.section-v-charcoal .head p { color: rgba(255,255,255,.52); }

/* ── Card variants G–N: shared h3::after override ───────────────────────── */
a.card-v-g h3::after,
a.card-v-h h3::after,
a.card-v-i h3::after,
a.card-v-j h3::after,
a.card-v-k h3::after,
a.card-v-l h3::after,
a.card-v-m h3::after,
a.card-v-n h3::after { content: none; }

/* ── Card variant G: frosted glass (červená sekce) ──────────────────────── */
.card-v-g {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.22);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.15);
}

.card-v-g::after { display: none; }

.card-v-g h3 { color: #fff; }
.card-v-g p { color: rgba(255,255,255,.64); }
.card-v-g .card-index strong { color: #fff; }
.card-v-g .card-index > div > span { color: rgba(255,255,255,.48); }
.card-v-g .card-index > div > span::after { color: rgba(255,255,255,.3); }

.card-v-g .card-icon {
    color: #ffb1b5;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
}

a.card-v-g:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.36);
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.22);
}

a.card-v-g:hover .card-index > div > span::after {
    color: rgba(255,255,255,.7);
    transform: translateX(5px);
}

/* ── Card variant H: ghost outline (červená sekce) ──────────────────────── */
.card-v-h {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.28);
    color: #fff;
    box-shadow: none;
}

.card-v-h::after { display: none; }

.card-v-h h3 { color: #fff; }
.card-v-h p { color: rgba(255,255,255,.58); }
.card-v-h .card-index strong { color: rgba(255,255,255,.92); }
.card-v-h .card-index > div > span { color: rgba(255,255,255,.42); }
.card-v-h .card-index > div > span::after { color: rgba(255,255,255,.3); }

.card-v-h .card-icon {
    color: #ffb1b5;
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
}

a.card-v-h:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.52);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,.25);
}

a.card-v-h:hover .card-index > div > span::after {
    color: rgba(255,255,255,.72);
    transform: translateX(5px);
}

/* ── Card variant I: dark inset (červená sekce) ─────────────────────────── */
.card-v-i {
    background: rgba(0,0,0,.3);
    border-color: rgba(255,255,255,.07);
    color: #fff;
    box-shadow: none;
}

.card-v-i::after { display: none; }

.card-v-i::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,145,150,.22) 0%, transparent 70%);
    pointer-events: none;
}

.card-v-i h3 { color: #f8f4ef; }
.card-v-i p { color: rgba(248,244,239,.52); }
.card-v-i .card-index strong { color: #ffa0a6; }
.card-v-i .card-index > div > span { color: rgba(248,244,239,.38); }
.card-v-i .card-index > div > span::after { color: rgba(255,160,166,.4); }

.card-v-i .card-icon {
    color: #ffa0a6;
    background: rgba(192,38,45,.28);
    border-color: rgba(192,38,45,.38);
}

a.card-v-i:hover {
    background: rgba(0,0,0,.44);
    border-color: rgba(255,255,255,.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,.35);
}

a.card-v-i:hover .card-index > div > span::after {
    color: rgba(255,160,166,.72);
    transform: translateX(5px);
}

/* ── Card variant J: pure white (černá sekce) ───────────────────────────── */
.card-v-j {
    background: #fff;
    border-color: rgba(0,0,0,.06);
    box-shadow: 0 4px 20px rgba(0,0,0,.38);
}

.card-v-j::after {
    background: var(--red);
    height: 3px;
}

.card-v-j .card-index strong { color: var(--red); }

.card-v-j .card-icon {
    color: var(--red);
    background: rgba(192,38,45,.07);
    border-color: rgba(192,38,45,.15);
}

a.card-v-j:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 68px rgba(0,0,0,.6);
    border-color: rgba(192,38,45,.22);
}

/* ── Card variant K: amber accent (černá sekce) ─────────────────────────── */
.card-v-k {
    background: #1a1817;
    border: 1px solid rgba(255,255,255,.06);
    border-top: 2px solid var(--red);
    border-radius: 4px 4px 18px 18px;
    color: #fff;
    box-shadow: none;
}

.card-v-k::after { display: none; }

.card-v-k h3 { color: #f0ede8; }
.card-v-k p { color: rgba(240,237,232,.5); }
.card-v-k .card-index strong { color: #e8a030; }
.card-v-k .card-index > div > span { color: rgba(240,237,232,.38); }
.card-v-k .card-index > div > span::after { color: rgba(232,160,48,.45); }

.card-v-k .card-icon {
    color: #e8a030;
    background: rgba(232,160,48,.1);
    border-color: rgba(232,160,48,.2);
}

a.card-v-k:hover {
    background: #22201a;
    border-top-color: #e8a030;
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(0,0,0,.5);
}

a.card-v-k:hover .card-index > div > span::after {
    color: #e8a030;
    transform: translateX(5px);
}

/* ── Card variant L: green glow (černá sekce) ───────────────────────────── */
.card-v-l {
    background: #252220;
    border-color: rgba(52,176,74,.15);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(52,176,74,.08), 0 20px 44px rgba(0,0,0,.45);
}

.card-v-l::after { display: none; }

.card-v-l::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 65%; height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(52,176,74,.7), transparent);
    pointer-events: none;
}

.card-v-l h3 { color: #f0ede8; }
.card-v-l p { color: rgba(240,237,232,.5); }
.card-v-l .card-index strong { color: var(--green); }
.card-v-l .card-index > div > span { color: rgba(240,237,232,.38); }
.card-v-l .card-index > div > span::after { color: rgba(52,176,74,.45); }

.card-v-l .card-icon {
    color: var(--green);
    background: rgba(52,176,74,.1);
    border-color: rgba(52,176,74,.22);
}

a.card-v-l:hover {
    background: #2e2b28;
    border-color: rgba(52,176,74,.32);
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px rgba(52,176,74,.18), 0 28px 64px rgba(0,0,0,.55), 0 0 50px rgba(52,176,74,.08);
}

a.card-v-l:hover .card-index > div > span::after {
    color: var(--green);
    transform: translateX(5px);
}

/* ── Card variant M: dark left border (uhelná sekce) ────────────────────── */
.card-v-m {
    background: #252220;
    border-color: rgba(255,255,255,.06);
    border-left: 3px solid var(--red);
    border-radius: 0 18px 18px 0;
    color: #fff;
    box-shadow: none;
}

.card-v-m::after { display: none; }

.card-v-m h3 { color: #f0ede8; }
.card-v-m p { color: rgba(240,237,232,.5); }
.card-v-m .card-index strong { color: var(--red); }
.card-v-m .card-index > div > span { color: rgba(240,237,232,.38); }
.card-v-m .card-index > div > span::after { color: rgba(192,38,45,.4); }

.card-v-m .card-icon {
    color: #ffa0a6;
    background: rgba(192,38,45,.18);
    border-color: rgba(192,38,45,.28);
}

a.card-v-m:hover {
    background: #2e2b28;
    border-left-color: #e03038;
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,.4);
}

a.card-v-m:hover .card-index > div > span::after {
    color: var(--red);
    transform: translateX(5px);
}

/* ── Card variant N: velké číslo v pozadí (uhelná sekce) ────────────────── */
.card-v-n {
    background: #1c1a17;
    border-color: rgba(255,255,255,.06);
    color: #fff;
    overflow: hidden;
    padding-bottom: 28px;
    box-shadow: none;
}

.card-v-n::after { display: none; }

.card-v-n-num {
    position: absolute;
    bottom: -14px; right: 6px;
    font-family: Fraunces, Georgia, serif;
    font-size: 112px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255,255,255,.05);
    pointer-events: none;
    user-select: none;
    letter-spacing: -.02em;
}

.card-v-n-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--red);
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(192,38,45,.4);
    transition: transform .2s, background .2s;
}

.card-v-n-icon .icon { width: 22px; height: 22px; }

.card-v-n h3 { color: #f0ede8; margin-top: 0; }
.card-v-n p { color: rgba(240,237,232,.5); }

a.card-v-n:hover {
    background: #222018;
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,.45);
}

a.card-v-n:hover .card-v-n-icon {
    transform: scale(1.07);
    background: var(--red-deep);
}

a.card-v-n:hover .card-v-n-num {
    color: rgba(255,255,255,.08);
}

.split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: center;
}

.poster {
    min-height: 560px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(204, 177, 146, .34), rgba(36, 35, 33, .8));
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.poster:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background: var(--brand-gradient-y);
}

.poster:after {
    content: '';
    position: absolute;
    inset: 34px;
    border: 1px solid rgba(255, 255, 255, .18);
}

.poster-photo::before,
.poster-photo::after {
    display: none;
}

.poster-photo {
    box-shadow: 0 8px 48px rgba(36, 35, 33, .18), 0 2px 12px rgba(36, 35, 33, .1);
}

.service-poster {
    min-height: auto;
    aspect-ratio: 5 / 4;
    background-image:
        linear-gradient(to top, rgba(20, 18, 15, .55) 0%, transparent 55%),
        var(--poster-image);
    background-position: var(--poster-position, center center);
    background-size: cover;
}

.poster-mark {
    position: absolute;
    left: 42px;
    bottom: 36px;
    color: rgba(255, 255, 255, .82);
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: .9;
}

.notes {
    display: grid;
    gap: 0;
}

.note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 0;
    color: var(--muted);
    line-height: 1.8;
}

.note + .note {
    border-top: 1px solid var(--line);
}

.note strong {
    color: var(--ink);
}

.note-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-top: 2px;
    border-radius: 10px;
    background: rgba(52, 176, 74, .10);
    color: var(--green-deep);
}

.note-icon .icon {
    width: 18px;
    height: 18px;
}

.legal-content {
    max-width: 920px;
}

.legal-section,
.legal-downloads {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.legal-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.legal-content h2 {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.04;
}

.legal-content h3 {
    margin: 34px 0 12px;
    font-size: 1.15rem;
    line-height: 1.28;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
}

.legal-content p {
    margin: 0 0 16px;
}

.legal-content ul {
    display: grid;
    gap: 10px;
    margin: 16px 0 24px;
    padding-left: 1.2rem;
}

.legal-content li::marker {
    color: var(--red);
}

.legal-downloads {
    margin-top: 12px;
    padding-bottom: 0;
}

.legal-downloads ul {
    padding-left: 0;
    list-style: none;
}

.legal-downloads li {
    margin: 0;
}

.legal-downloads a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.35;
    background: var(--paper);
    border-radius: 16px;
    box-shadow:
        inset 0 0 0 1px rgba(36, 35, 33, .08),
        inset 0 1px 0 rgba(255, 255, 255, .82);
}

.legal-downloads a::after {
    content: "Stáhnout";
    color: var(--red);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.legal-downloads a:hover {
    color: var(--red);
    box-shadow:
        inset 0 0 0 1px rgba(192, 38, 45, .16),
        inset 0 1px 0 rgba(255, 255, 255, .86);
}

.accent {
    color: var(--red);
}

.accent-light {
    color: #ffb1b5;
}

.stats-dark {
    position: relative;
    overflow: hidden;
    padding: 104px 0;
    color: #fff;
    background:
        radial-gradient(circle at 92% 12%, rgba(192, 38, 45, .16), transparent 30%),
        #171513;
}

@media (min-width: 761px) {
    .stats-dark {
        background:
            radial-gradient(circle at 64% 18%, rgba(192, 38, 45, .2), transparent 40%),
            #171513;
    }
}

.stats-dark > .container {
    position: relative;
    z-index: 1;
}

/* ── Homepage: services ───────────────────────────────────────────────────── */
.home-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-service {
    position: relative;
    overflow: hidden;
    color: var(--ink);
    border-radius: 22px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.home-service:hover {
    transform: translateY(-3px);
}

.home-service:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.home-service h3 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    line-height: 1.2;
}

.home-service p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
}

.home-service-index strong {
    display: block;
    font-family: Fraunces, Georgia, serif;
    font-size: 30px;
    line-height: 1;
    color: var(--red);
}

.home-service-index small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Featured: large dark card over a photo of the original. */
.home-service--featured {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    min-height: 330px;
    padding: 26px;
    color: #f4efe7;
    background: radial-gradient(80% 90% at 80% 0%, rgba(192, 38, 45, .28), transparent 60%), #171513;
    box-shadow: 0 20px 44px rgba(23, 21, 18, .18);
}

.home-service--featured:hover {
    box-shadow: 0 26px 54px rgba(23, 21, 18, .24);
}

.home-service-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.home-service--featured:hover .home-service-photo {
    transform: scale(1.03);
}

.home-service--featured::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(20, 18, 16, .94) 0%, rgba(20, 18, 16, .72) 42%, rgba(20, 18, 16, .12) 100%);
}

.home-service--featured > :not(.home-service-photo) {
    position: relative;
    z-index: 2;
}

.home-service-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: auto;
    padding: 6px 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(20, 18, 16, .6);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
}

.home-service-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(192, 38, 45, .3);
}

.home-service--featured .home-service-index strong {
    color: #ff9aa0;
}

.home-service--featured .home-service-index small {
    color: rgba(244, 239, 231, .6);
}

.home-service--featured h3 {
    margin-top: 4px;
    color: #fff;
    font-size: 26px;
}

.home-service--featured p {
    max-width: 46ch;
    color: rgba(244, 239, 231, .78);
}

/* Standard: smaller light card with a photo on the side. */
.home-service--standard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38%;
    gap: 20px;
    padding: 10px 10px 10px 24px;
    background: #fff;
    border: 1px solid rgba(23, 21, 18, .07);
    box-shadow: 0 12px 30px rgba(23, 21, 18, .06);
}

.home-service--standard:hover {
    box-shadow: 0 20px 44px rgba(23, 21, 18, .1);
}

.home-service--standard.home-service--no-photo {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 24px;
}

.home-service-copy {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 12px 0;
}

.home-service-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-service-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background: var(--red);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(192, 38, 45, .24);
}

.home-service-icon .icon {
    width: 20px;
    height: 20px;
}

.home-service--standard h3 {
    margin-top: 4px;
    font-size: 21px;
}

.home-service--standard p {
    color: var(--muted);
    font-size: 14px;
}

.home-service-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--red);
    font-size: 13.5px;
    font-weight: 700;
}

.home-service-more svg {
    width: 15px;
    height: 15px;
    transition: transform .18s ease;
}

.home-service--standard:hover .home-service-more svg {
    transform: translateX(3px);
}

.home-service-thumb {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border-radius: 16px;
    filter: saturate(.85);
    transition: filter .18s ease;
}

.home-service--standard:hover .home-service-thumb {
    filter: none;
}

/* Other services: a compact row under the main cards. */
.home-more-services {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 16px 18px;
    background: var(--bg);
    border-radius: 18px;
}

.home-more-label {
    padding-right: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-more-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.home-more-link {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(23, 21, 18, .06);
    border-radius: 14px;
    transition: border-color .18s ease;
}

.home-more-link:hover {
    border-color: rgba(192, 38, 45, .3);
}

.home-more-link:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.home-more-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--red);
    background: rgba(192, 38, 45, .1);
    border-radius: 10px;
}

.home-more-icon .icon {
    width: 18px;
    height: 18px;
}

.home-more-link b {
    display: block;
    font-size: 14.5px;
}

.home-more-link small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.home-more-link > svg {
    width: 16px;
    height: 16px;
    color: var(--red);
}

/* ── Homepage: numbers ────────────────────────────────────────────────────── */
.home-stats-head {
    margin-bottom: 40px;
}

.home-stats-head .eyebrow {
    color: #78c996;
}

.home-stats-head h2 {
    color: #fff;
}

.home-stats-head p {
    color: rgba(255, 255, 255, .65);
}

.home-figures {
    display: grid;
    grid-template-columns: repeat(var(--figures, 4), minmax(0, 1fr));
    margin: 0;
}

.home-figures > div {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 22px 24px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.home-figures > div + div {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.home-figures dt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 2.9em;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-figures dt .icon {
    flex: none;
    width: 18px;
    height: 18px;
    color: #ff9aa0;
}

.home-figures dd {
    margin: 0;
    color: #fff;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ── Homepage: news ───────────────────────────────────────────────────────── */
.home-news-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.home-news {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.home-news-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 150px 36px;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.home-news-item:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

.home-news-item time strong {
    display: block;
    color: var(--red);
    font-family: Fraunces, Georgia, serif;
    font-size: 30px;
    line-height: 1;
}

.home-news-item time span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
}

.home-news-copy h3 {
    margin: 6px 0 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 19px;
    line-height: 1.25;
    transition: color .18s ease;
}

.home-news-item:hover h3 {
    color: var(--red);
}

.home-news-text {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-news-thumb {
    display: block;
    width: 150px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.home-news-thumb--empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--bg);
}

.home-news-go {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--red);
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.home-news-go svg {
    width: 16px;
    height: 16px;
}

.home-news-item:hover .home-news-go {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
}

@media (prefers-reduced-motion: reduce) {
    .home-service,
    .home-service-photo,
    .home-service-more svg,
    .home-service-thumb,
    .home-more-link,
    .home-news-copy h3,
    .home-news-go {
        transition: none;
    }

    .home-service:hover,
    .home-service--featured:hover .home-service-photo {
        transform: none;
    }
}

@media (max-width: 960px) {
    .home-services,
    .home-more-services {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-figures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-figures > div:nth-child(2n + 1) {
        padding-left: 0;
        border-left: 0;
    }

    .home-news-item {
        grid-template-columns: 80px minmax(0, 1fr) 36px;
    }

    .home-news-thumb {
        display: none;
    }
}

@media (max-width: 620px) {
    .home-service--featured {
        min-height: 300px;
        padding: 22px;
    }

    .home-service--standard {
        grid-template-columns: minmax(0, 1fr) 34%;
        gap: 14px;
        padding-left: 18px;
    }

    .home-figures {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-figures > div,
    .home-figures > div + div {
        padding-left: 0;
        border-left: 0;
    }

    .home-figures dt {
        min-height: 0;
    }

    .home-news-head {
        flex-wrap: wrap;
    }

    .home-news-item {
        grid-template-columns: minmax(0, 1fr) 36px;
        gap: 12px 16px;
    }

    .home-news-item time {
        grid-column: 1 / -1;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .home-news-item time span {
        margin-top: 0;
    }
}

/* ── Contact page ─────────────────────────────────────────────────────────── */
.contact-hero h1 {
    max-width: 20ch;
}

.contact-tiles {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 14px;
    margin-top: 44px;
}

.contact-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    gap: 4px 16px;
    padding: 22px 24px;
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}

.contact-tile:hover {
    border-color: rgba(var(--hero-accent-rgb), .5);
    transform: translateY(-2px);
}

.contact-tile:focus-visible {
    outline: 2px solid var(--hero-accent-soft);
    outline-offset: 3px;
}

.contact-tile-icon {
    grid-row: 1 / span 3;
    align-self: center;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: var(--red);
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(192, 38, 45, .3), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.contact-tile-icon .icon {
    width: 22px;
    height: 22px;
}

.contact-tile small {
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.contact-tile strong {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.contact-tile-meta {
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    line-height: 1.45;
}

.contact-tile--quiet .contact-tile-icon {
    color: var(--hero-accent-soft);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: none;
}

.contact-tile--quiet strong {
    font-family: inherit;
    font-size: 18px;
}

.contact-page h2 em {
    font-style: normal;
    color: var(--red);
}

.contact-section {
    position: relative;
    background: linear-gradient(180deg, #efe7d9, var(--bg));
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
}

.contact-intro > p {
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 46ch;
}

.contact-next-label {
    display: block;
    margin-top: 36px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-next {
    display: grid;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.contact-next li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.contact-next-num {
    color: var(--red);
    font-family: Fraunces, Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.contact-next b {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 15px;
}

.contact-next div > span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.contact-form {
    display: grid;
    gap: 20px;
    padding: 34px;
    background: #fff;
    border: 1px solid rgba(23, 21, 18, .06);
    border-radius: 26px;
    box-shadow: 0 28px 64px rgba(23, 21, 18, .1);
}

.contact-form label i,
.contact-topics legend i {
    color: var(--muted);
    font-style: normal;
    font-weight: 500;
}

.contact-topics {
    margin: 0;
    padding: 0;
    border: 0;
}

.contact-topics legend {
    margin-bottom: 10px;
    padding: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.contact-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-form .contact-topic {
    position: relative;
    cursor: pointer;
}

.contact-topic input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-topic > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease;
}

.contact-topic > span::before {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 1.5px solid #cbbfae;
    border-radius: 5px;
    transition: inherit;
}

.contact-topic:hover > span {
    background: #fff;
    border-color: #cbbfae;
}

.contact-topic:hover > span::before {
    border-color: #a99d8b;
}

.contact-topic input:checked + span {
    background: rgba(52, 176, 74, .1);
    border-color: rgba(52, 176, 74, .55);
}

.contact-topic input:checked + span::before {
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
    border-color: var(--green);
}

.contact-topic input:focus-visible + span {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.contact-form textarea::placeholder {
    color: #a59c90;
}

.contact-form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 20px;
}

.contact-form-foot .form-note {
    max-width: 46ch;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.contact-people-section {
    background: #fff;
}

.contact-people {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* Cards share the rows of .contact-people (subgrid), so the "Obraťte se s" box and the contacts
   start at the same height in every card of a row, however long the name or role is. */
.contact-person {
    display: grid;
    grid-row: span 4;
    grid-template-rows: auto auto 1fr auto;
    grid-template-rows: subgrid;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(23, 21, 18, .07);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(23, 21, 18, .06);
}

.contact-person-avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: #fff;
    background: var(--ink);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(52, 176, 74, .55), 0 0 0 4px #fff, 0 0 0 5px rgba(23, 21, 18, .08);
    font-family: Fraunces, Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .02em;
    object-fit: cover;
    object-position: center 25%;
}

.contact-person h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
}

.contact-person-role {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.contact-person-ask {
    /* fills its shared row, so the boxes in a row are also the same height */
    align-self: stretch;
    margin: 0;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--bg);
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
}

.contact-person-ask b {
    display: block;
    margin-bottom: 2px;
    color: var(--green-deep);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.contact-person-links {
    display: grid;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.contact-person-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
    transition: color .15s ease;
}

.contact-person-links a .icon {
    flex: none;
    width: 17px;
    height: 17px;
    color: var(--red);
}

.contact-person-links a:hover {
    color: var(--red);
}

.contact-visit-section {
    background: var(--bg);
}

.contact-visit {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    align-items: center;
}

.contact-visit-media {
    position: relative;
    display: block;
    margin: 0;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    background: #ebe5d8;
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(23, 21, 18, .14);
}

.contact-visit-media svg,
.contact-visit-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-visit-pin {
    position: absolute;
    left: 52%;
    top: 46%;
    display: grid;
    justify-items: center;
    gap: 6px;
    transform: translate(-50%, -100%);
    transition: transform .2s ease;
}

.contact-visit-pin span {
    padding: 8px 14px;
    color: #fff;
    background: var(--ink);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.contact-visit-pin i {
    width: 18px;
    height: 18px;
    background: var(--red);
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 0 0 5px rgba(192, 38, 45, .2);
    transform: rotate(-45deg);
}

/* Map image made from the address (StaticMap): OpenStreetMap colours toned towards the site palette,
   the pin in the centre, where the address is. */
.contact-visit-map-image {
    filter: saturate(.55) sepia(.12) contrast(.96);
}

.contact-visit-map:not(.contact-visit-map--drawn) .contact-visit-pin {
    left: 50%;
    top: 50%;
}

.contact-visit-map-credit {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 9px;
    color: var(--muted);
    background: rgba(255, 255, 255, .85);
    border-radius: 999px;
    font-size: 11px;
    text-decoration: none;
}

.contact-visit-map-credit:hover {
    color: var(--ink);
}

.contact-visit-map-actions {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.contact-visit-map-actions .btn {
    /* not the full-width mobile buttons: the map has to stay visible */
    width: auto;
    box-shadow: 0 10px 26px rgba(23, 21, 18, .18);
}

@media (max-width: 620px) {
    .contact-visit-map-actions {
        left: 12px;
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }

    .contact-visit-map-actions .btn {
        min-height: 38px;
        padding: 0 12px;
        font-size: 12.5px;
    }
}

.contact-visit-copy {
    display: grid;
    gap: 22px;
}

.contact-visit-address {
    color: var(--ink);
    font-family: Fraunces, Georgia, serif;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
}

.contact-visit-points {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-visit-points li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
}

.contact-visit-points li::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 176, 74, .14);
}

.contact-visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-visit-note {
    margin: 0;
    padding: 14px 16px;
    color: var(--muted);
    border: 1px dashed #d6cab8;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.55;
}

.contact-billing {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: 48px;
    align-items: start;
}

.contact-billing h2 {
    font-size: clamp(24px, 2.4vw, 30px);
}

.contact-billing-copy p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.contact-billing-facts {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    margin: 0;
    border-top: 1px solid var(--line);
}

.contact-billing-facts dt,
.contact-billing-facts dd {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.contact-billing-facts dt {
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.contact-billing-facts dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.contact-billing-facts dt.contact-billing-long {
    align-items: flex-start;
}

.contact-billing-facts dd.contact-billing-long {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

.contact-billing-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.contact-copy {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.contact-copy .icon {
    width: 14px;
    height: 14px;
}

.contact-copy:hover {
    color: var(--ink);
    border-color: #cbbfae;
}

.contact-copy.is-done {
    color: var(--green-deep);
    background: rgba(52, 176, 74, .08);
    border-color: rgba(52, 176, 74, .5);
}

@media (prefers-reduced-motion: reduce) {
    .contact-tile,
    .contact-visit-pin {
        transition: none;
    }

    .contact-tile:hover {
        transform: none;
    }
}

@media (max-width: 1100px) {
    .contact-people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .contact-tiles,
    .contact-visit,
    .contact-billing {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-tiles {
        margin-top: 32px;
    }

    .contact-grid,
    .contact-visit,
    .contact-billing {
        gap: 32px;
    }
}

@media (max-width: 620px) {
    .contact-people {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-form {
        padding: 22px;
        border-radius: 22px;
    }

    .contact-billing-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-billing-facts dt {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .contact-billing-facts dd {
        padding-top: 4px;
    }

    .contact-visit-address {
        font-size: 22px;
    }
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row-split {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form label {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--ink);
    font: inherit;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.contact-form textarea {
    min-height: 170px;
    resize: vertical;
    line-height: 1.65;
}

/* Hover hints the field is editable; focus (below) stays the stronger state. */
.contact-form input:hover:not(:focus),
.contact-form select:hover:not(:focus),
.contact-form textarea:hover:not(:focus) {
    background: #fff;
    border-color: #cbbfae;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    background: #fff;
    border-color: rgba(52, 176, 74, .64);
    box-shadow: 0 0 0 4px rgba(52, 176, 74, .12);
}

.form-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.field-error {
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
}

.form-message {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 750;
    line-height: 1.5;
}

.form-message-success {
    color: var(--green-deep);
    background: rgba(52, 176, 74, .12);
    border: 1px solid rgba(52, 176, 74, .22);
}

.form-message-error {
    color: var(--red);
    background: rgba(192, 38, 45, .1);
    border: 1px solid rgba(192, 38, 45, .18);
}

.form-trap {
    display: none !important;
}

.projects {
    display: grid;
    gap: 16px;
}

.project {
    display: grid;
    grid-template-columns: 260px 1fr 180px;
    gap: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.reference-projects .project {
    background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .46));
    border-color: rgba(255, 255, 255, .72);
    box-shadow:
        0 24px 58px rgba(23, 21, 18, .12),
        inset 0 1px 0 rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.pill {
    padding: 9px 10px;
    border-radius: 999px;
    background: rgba(192, 38, 45, .08);
    color: var(--red);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
}

.project p {
    color: var(--muted);
    line-height: 1.75;
    margin-top: 10px;
}

.page-hero .hero-summary-panel {
    align-self: stretch;
}

.hero-summary-panel {
    display: grid;
    align-content: start;
    gap: 22px;
    container-type: inline-size;
}

.hero-summary-heading {
    display: grid;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.hero-summary-heading:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.hero-summary-heading strong {
    display: block;
    max-width: 100%;
    color: #fff;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(36px, 3.2vw, var(--type-hero-h2-max, 62px));
    font-size: clamp(36px, 13.5cqi, var(--type-hero-h2-max, 62px));
    line-height: .9;
}

.hero-summary-heading span {
    max-width: 32ch;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
}

.hero-summary-list {
    display: grid;
    gap: 12px;
}

.hero-summary-list > * {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 3px 12px;
    align-items: start;
    padding: 14px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
}

.hero-summary-list > a {
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.hero-summary-list > a:hover {
    background: rgba(255, 255, 255, .075);
    border-color: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}

.hero-summary-list > * > span {
    grid-row: 1 / span 2;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffb1b5;
    background: rgba(192, 38, 45, .12);
    border: 1px solid rgba(255, 177, 181, .18);
    border-radius: 999px;
}

.hero-summary-list .icon {
    width: 18px;
    height: 18px;
}

.hero-summary-list strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}

.hero-summary-list p {
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    line-height: 1.45;
}

.hero-summary-cta {
    width: 100%;
}

.reference-project {
    position: relative;
    overflow: hidden;
}

.reference-project::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--red);
}

.reference-project[hidden] {
    display: none;
}

.reference-project h3 {
    max-width: 30ch;
    margin-top: 12px;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(25px, 2vw, 34px);
    line-height: 1.02;
}

.reference-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.reference-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 10px;
    color: var(--green-deep);
    background: rgba(52, 176, 74, .1);
    border: 1px solid rgba(52, 176, 74, .18);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.reference-type .icon {
    width: 14px;
    height: 14px;
}

.reference-type-historicke {
    color: var(--red);
    background: rgba(192, 38, 45, .08);
    border-color: rgba(192, 38, 45, .16);
}

.reference-type-agendy {
    color: #615546;
    background: var(--paper);
    border-color: var(--line);
}

.reference-logo {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(246, 240, 230, .78)),
        var(--paper);
    border: 1px solid rgba(216, 207, 194, .82);
    border-radius: 18px;
}

.reference-logo img {
    display: block;
    max-width: 100%;
    max-height: 86px;
    object-fit: contain;
}

/* Reference card playground */
.reference-card-playground .reference-demo-stage {
    margin-bottom: 52px;
    padding: 26px;
    border-radius: 24px;
}

.reference-card-playground .reference-demo-stage--paper {
    background: #fff;
}

.reference-card-playground .reference-demo-stage--registry {
    padding-top: 8px;
    padding-bottom: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.reference-card-playground .reference-demo-stage--dark {
    background: #111315;
}

.reference-card-playground .reference-demo-stage--tiles {
    background: #f2eee5;
}

.reference-demo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.reference-demo-card {
    min-width: 0;
}

.reference-demo-card h3,
.reference-demo-row h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.12;
}

.reference-demo-card p,
.reference-demo-row p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.reference-demo-catalog {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 16px;
    min-height: 390px;
    padding: 20px;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(36, 35, 33, .09);
    transition: transform .18s ease, box-shadow .18s ease;
}

.reference-demo-catalog::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--red);
}

.reference-demo-catalog:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 0 0 1px rgba(192, 38, 45, .14),
        0 18px 36px rgba(23, 21, 18, .1);
}

.reference-demo-catalog-head,
.reference-demo-dark-top,
.reference-demo-tile-top,
.reference-demo-tile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.reference-demo-catalog-head > span,
.reference-demo-dark-top > span,
.reference-demo-tile-top > span {
    color: var(--red);
    font-family: Fraunces, Georgia, serif;
    font-size: 27px;
    font-weight: 700;
}

.reference-demo-logo {
    display: grid;
    place-items: center;
    width: 108px;
    height: 70px;
    padding: 10px;
    background: var(--paper);
    border-radius: 10px;
}

.reference-demo-logo img,
.reference-demo-row-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.reference-demo-categories,
.reference-demo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reference-demo-categories > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-deep);
    font-size: 9px;
    font-weight: 850;
    line-height: 1.25;
    text-transform: uppercase;
}

.reference-demo-categories .icon {
    width: 13px;
    height: 13px;
}

.reference-demo-tags {
    align-self: end;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.reference-demo-tags > span {
    color: var(--red);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.reference-demo-registry {
    display: grid;
}

.reference-demo-row {
    display: grid;
    grid-template-columns: 46px 150px minmax(0, 1fr) minmax(180px, .45fr);
    gap: 20px;
    align-items: center;
    min-width: 0;
    padding: 18px 20px;
    transition: background-color .18s ease;
}

.reference-demo-row + .reference-demo-row {
    border-top: 1px solid var(--line);
}

.reference-demo-row:hover {
    background: var(--paper);
}

.reference-demo-row-index {
    color: rgba(192, 38, 45, .7);
    font-size: 12px;
    font-weight: 850;
}

.reference-demo-row-logo {
    display: grid;
    place-items: center;
    height: 62px;
    padding: 8px 14px;
}

.reference-demo-row-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.reference-demo-row-types {
    display: grid;
    gap: 7px;
    justify-items: start;
}

.reference-demo-row-types span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}

.reference-demo-row-types .icon {
    width: 15px;
    height: 15px;
    color: var(--green-deep);
}

.reference-demo-row-types b {
    font-weight: 700;
}

.reference-demo-dark {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 16px;
    min-height: 410px;
    padding: 18px;
    color: #fff;
    background: #181a1c;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
}

.reference-demo-dark:hover {
    border-color: rgba(192, 38, 45, .48);
    background: #1c1e20;
    transform: translateY(-4px);
}

.reference-demo-logo--dark {
    width: 100%;
    height: 112px;
    padding: 22px;
    background: #fff;
}

.reference-demo-dark h3 {
    color: #fff;
    font-family: Fraunces, Georgia, serif;
    font-size: 25px;
}

.reference-demo-dark p {
    color: rgba(255, 255, 255, .58);
}

.reference-demo-categories--dark {
    justify-content: flex-end;
}

.reference-demo-categories--dark > span,
.reference-demo-categories--icons > span {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    color: #70d282;
    background: rgba(52, 176, 74, .1);
    border-radius: 50%;
}

.reference-demo-tags--dark {
    border-color: rgba(255, 255, 255, .1);
}

.reference-demo-tags--dark > span {
    color: #ff9da2;
}

.reference-demo-tile {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 22px;
    min-height: 330px;
    padding: 22px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(23, 21, 18, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.reference-demo-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(23, 21, 18, .13);
}

.reference-demo-logo--tile {
    width: 120px;
    height: 76px;
    padding: 8px 0;
    background: transparent;
}

.reference-demo-tile-copy {
    display: grid;
    align-content: start;
    gap: 10px;
}

.reference-demo-tile-copy h3 {
    max-width: 16ch;
    font-family: Fraunces, Georgia, serif;
    font-size: 27px;
}

.reference-demo-tile-footer {
    padding-top: 16px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.reference-demo-categories--icons {
    flex-wrap: nowrap;
}

.reference-demo-categories--icons > span {
    width: 28px;
    height: 28px;
}

.reference-card-playground .reference-demo-stage--cream {
    background: #f2eee5;
}

.reference-demo-wide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* E: exhibition label */
.reference-demo-exhibit {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 280px;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(23, 21, 18, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.reference-demo-exhibit:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(23, 21, 18, .11);
}

.reference-demo-exhibit-logo {
    position: relative;
    display: grid;
    place-items: center;
    padding: 26px 18px;
    background: var(--paper);
    border-right: 1px solid var(--line);
}

.reference-demo-exhibit-logo > span {
    position: absolute;
    top: 16px;
    left: 16px;
    color: var(--red);
    font-size: 10px;
    font-weight: 850;
}

.reference-demo-exhibit-logo img,
.reference-demo-folder-logo img,
.reference-demo-type-logo img,
.reference-demo-seal-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.reference-demo-exhibit-copy {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 12px;
    min-width: 0;
    padding: 22px;
}

.reference-demo-exhibit-copy h3 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 26px;
    line-height: 1.12;
}

.reference-demo-exhibit-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

/* F: archive folder */
.reference-demo-grid--folders {
    align-items: stretch;
}

.reference-demo-folder {
    position: relative;
    display: grid;
    grid-template-rows: 112px 1fr auto;
    gap: 16px;
    min-height: 370px;
    padding: 22px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 18px;
    box-shadow:
        0 16px 38px rgba(23, 21, 18, .09),
        inset 0 1px 0 rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.reference-demo-folder:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .76);
    border-color: rgba(255, 255, 255, .96);
    box-shadow:
        0 24px 50px rgba(23, 21, 18, .13),
        inset 0 1px 0 #fff;
}

.reference-demo-folder-logo {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    padding: 10px 8px 18px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.reference-demo-folder-logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 82px;
    object-fit: contain;
}

.reference-demo-folder-copy {
    display: grid;
    align-content: start;
    gap: 10px;
}

.reference-demo-folder-copy h3,
.reference-demo-seal-copy h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
}

.reference-demo-folder-copy p,
.reference-demo-seal-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.reference-demo-folder-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.reference-demo-folder-meta span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    color: var(--green-deep);
    background: rgba(52, 176, 74, .08);
    border-radius: 50%;
}

.reference-demo-folder-meta .icon {
    width: 13px;
    height: 13px;
}

.reference-demo-folder-meta b {
    margin-left: auto;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}

/* G: typographic index */
.reference-demo-type-index {
    display: grid;
    gap: 10px;
}

.reference-demo-type-card {
    display: grid;
    grid-template-columns: 64px minmax(180px, .6fr) minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    min-width: 0;
    padding: 18px 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(23, 21, 18, .055);
    transition: transform .18s ease, box-shadow .18s ease;
}

.reference-demo-type-card:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 30px rgba(23, 21, 18, .09);
}

.reference-demo-type-number {
    color: var(--red);
    font-family: Fraunces, Georgia, serif;
    font-size: 38px;
    font-weight: 700;
}

.reference-demo-type-main {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.reference-demo-type-main h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.reference-demo-type-logo {
    display: grid;
    place-items: center;
    width: 76px;
    height: 54px;
}

.reference-demo-type-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

/* H: institutional card */
.reference-demo-seal {
    position: relative;
    display: grid;
    grid-template-rows: 126px 1fr auto;
    gap: 18px;
    min-height: 380px;
    padding: 22px 22px 0;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(23, 21, 18, .075);
    transition: transform .18s ease, box-shadow .18s ease;
}

.reference-demo-seal:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(23, 21, 18, .12);
}

.reference-demo-seal-logo {
    display: grid;
    place-items: center;
    padding: 18px;
    background: var(--paper);
    border-radius: 12px;
}

.reference-demo-seal-copy {
    display: grid;
    align-content: start;
    gap: 10px;
}

.reference-demo-seal-copy > span {
    color: var(--red);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.reference-demo-seal-footer {
    display: grid;
    gap: 1px;
    margin: 0 -22px;
    padding: 13px 22px;
    color: #fff;
    background: #171512;
}

.reference-demo-seal-footer span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.35;
    text-transform: uppercase;
}

.reference-demo-seal-footer .icon {
    width: 12px;
    height: 12px;
    color: #70d282;
}

@media (max-width: 1100px) {
    .reference-demo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reference-demo-wide-grid {
        grid-template-columns: 1fr;
    }

    .reference-demo-type-card {
        grid-template-columns: 54px minmax(180px, .7fr) minmax(0, 1fr);
    }

    .reference-demo-type-card > .reference-demo-categories {
        grid-column: 2 / -1;
    }

    .reference-demo-row {
        grid-template-columns: 36px 130px minmax(0, 1fr);
    }

    .reference-demo-row-types {
        grid-column: 3;
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
    .reference-card-playground .reference-demo-stage {
        padding: 14px;
        border-radius: 18px;
    }

    .reference-demo-grid {
        grid-template-columns: 1fr;
    }

    .reference-demo-exhibit {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .reference-demo-type-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .reference-demo-type-number {
        font-size: 29px;
    }

    .reference-demo-type-main {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .reference-demo-type-logo {
        width: 64px;
        height: 48px;
    }

    .reference-demo-type-card > p,
    .reference-demo-type-card > .reference-demo-categories {
        grid-column: 2;
    }

    .reference-demo-catalog,
    .reference-demo-dark,
    .reference-demo-tile,
    .reference-demo-folder,
    .reference-demo-seal {
        min-height: 0;
    }

    .reference-demo-row {
        grid-template-columns: 34px minmax(90px, 120px) minmax(0, 1fr);
        gap: 10px;
        padding: 16px 8px;
    }

    .reference-demo-row-copy p {
        display: none;
    }

    .reference-demo-row-types {
        grid-column: 2 / -1;
    }

    .reference-demo-row-types b {
        display: none;
    }
}

@media (max-width: 480px) {
    .reference-demo-exhibit {
        grid-template-columns: 1fr;
    }

    .reference-demo-exhibit-logo {
        min-height: 120px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

/* Reusable section background patterns */
.section-pattern {
    --section-pattern-ink: rgba(23, 21, 18, .065);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.section-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.section-pattern > * {
    position: relative;
    z-index: 1;
}

.section-pattern--on-dark {
    --section-pattern-ink: rgba(255, 255, 255, .075);
}

.section-pattern--film::before {
    background-image:
        radial-gradient(circle, var(--section-pattern-ink) 0 5px, transparent 5.5px),
        radial-gradient(circle, var(--section-pattern-ink) 0 5px, transparent 5.5px);
    background-position: 17px 10px, calc(100% - 17px) 10px;
    background-size: 22px 34px;
    background-repeat: repeat-y;
}

.section-pattern--archive-grid::before {
    background-image:
        linear-gradient(var(--section-pattern-ink) 1px, transparent 1px),
        linear-gradient(90deg, var(--section-pattern-ink) 1px, transparent 1px);
    background-size: 54px 54px;
}

.section-pattern--scanlines::before {
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 11px,
            var(--section-pattern-ink) 12px
        ),
        linear-gradient(
            90deg,
            transparent 0,
            transparent 70%,
            rgba(52, 176, 74, .14) 70%,
            rgba(52, 176, 74, .14) calc(70% + 2px),
            transparent calc(70% + 2px)
        );
}

.section-pattern--microdots::before {
    background-image: radial-gradient(circle, var(--section-pattern-ink) 1.2px, transparent 1.4px);
    background-size: 17px 17px;
}

.section-pattern--mat::before {
    box-shadow:
        inset 0 0 0 1px var(--section-pattern-ink),
        inset 0 0 0 18px transparent,
        inset 0 0 0 19px var(--section-pattern-ink);
}

.section-pattern--hatch::before {
    background-image: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 18px,
        var(--section-pattern-ink) 19px,
        transparent 20px
    );
}

.section-pattern--ledger::before {
    background-image:
        linear-gradient(
            90deg,
            transparent 0,
            transparent 13%,
            rgba(192, 38, 45, .13) 13%,
            rgba(192, 38, 45, .13) calc(13% + 1px),
            transparent calc(13% + 1px)
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 27px,
            var(--section-pattern-ink) 28px
        );
}

.section-pattern--contact-sheet::before {
    background-image:
        linear-gradient(var(--section-pattern-ink) 1px, transparent 1px),
        linear-gradient(90deg, var(--section-pattern-ink) 1px, transparent 1px);
    background-position: 18px 18px;
    background-size: 86px 64px;
}

.section-pattern--registration::before {
    background-image:
        linear-gradient(90deg, transparent 47%, var(--section-pattern-ink) 47%, var(--section-pattern-ink) 53%, transparent 53%),
        linear-gradient(0deg, transparent 47%, var(--section-pattern-ink) 47%, var(--section-pattern-ink) 53%, transparent 53%);
    background-size: 96px 96px;
}

.section-pattern--data-bars::before {
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 9px,
        var(--section-pattern-ink) 10px,
        var(--section-pattern-ink) 11px,
        transparent 12px,
        transparent 25px,
        var(--section-pattern-ink) 26px,
        var(--section-pattern-ink) 29px,
        transparent 30px,
        transparent 43px
    );
}

/* Localized variants keep the section mostly clear and use the pattern as an accent. */
.section-pattern--film-edge::before {
    background-image: radial-gradient(circle, var(--section-pattern-ink) 0 5px, transparent 5.5px);
    background-position: calc(100% - 18px) 12px;
    background-size: 24px 36px;
    background-repeat: repeat-y;
}

.section-pattern--corner-grid::before {
    inset: 0 0 auto auto;
    width: 270px;
    height: 270px;
    background-image:
        linear-gradient(var(--section-pattern-ink) 1px, transparent 1px),
        linear-gradient(90deg, var(--section-pattern-ink) 1px, transparent 1px);
    background-size: 54px 54px;
    background-repeat: repeat;
}

.section-pattern--contact-crop::before {
    inset: auto 28px 28px auto;
    width: 344px;
    height: 192px;
    background-image:
        linear-gradient(var(--section-pattern-ink) 1px, transparent 1px),
        linear-gradient(90deg, var(--section-pattern-ink) 1px, transparent 1px);
    background-size: 86px 64px;
    background-repeat: repeat;
}

.section-pattern--metadata-band::before {
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 8px,
        var(--section-pattern-ink) 9px,
        var(--section-pattern-ink) 11px,
        transparent 12px,
        transparent 22px,
        var(--section-pattern-ink) 23px,
        var(--section-pattern-ink) 28px,
        transparent 29px,
        transparent 42px
    );
    background-position: right top;
    background-size: 220px 100%;
    background-repeat: no-repeat;
}

.pattern-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pattern-demo {
    display: flex;
    align-items: flex-end;
    min-height: 300px;
    padding: 30px;
    border-radius: 20px;
}

.pattern-demo--cream {
    background: var(--bg);
}

.pattern-demo--white {
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.pattern-demo--dark {
    --section-pattern-ink: rgba(255, 255, 255, .075);
    color: #fff;
    background: #111315;
}

.pattern-demo-copy {
    max-width: 34ch;
    padding: 18px;
    background: rgba(255, 255, 255, .82);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(23, 21, 18, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pattern-demo--dark .pattern-demo-copy {
    background: rgba(17, 19, 21, .78);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.pattern-demo-copy > span {
    color: var(--red);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.pattern-demo--dark .pattern-demo-copy > span {
    color: #ff9da2;
}

.pattern-demo-copy h3 {
    margin: 8px 0 7px;
    font-family: Fraunces, Georgia, serif;
    font-size: 29px;
    line-height: 1.08;
}

.pattern-demo-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.pattern-demo--dark .pattern-demo-copy p {
    color: rgba(255, 255, 255, .58);
}

@media (max-width: 760px) {
    .pattern-demo-grid {
        grid-template-columns: 1fr;
    }

    .pattern-demo {
        min-height: 250px;
        padding: 20px;
    }
}

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.step {
    background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .46));
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    padding: 22px;
    box-shadow:
        0 24px 58px rgba(23, 21, 18, .12),
        inset 0 1px 0 rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.step .no {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(52, 176, 74, .12);
    color: var(--green-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.step h3 {
    margin-top: 14px;
}

.step p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.72;
}

.cta {
    background: linear-gradient(135deg, #201816, #3a1718 58%, #8e1f28 100%);
    color: #fff;
    border-radius: 34px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 24px;
    align-items: center;
    box-shadow: var(--shadow);
}

.cta .eyebrow {
    color: #95dfa1;
}

.cta p {
    color: rgba(255, 255, 255, .74);
    line-height: 1.8;
    margin-top: 16px;
}

.cta-actions {
    display: grid;
    gap: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--ink);
    background: transparent;
}

.btn-light {
    background: #fff;
    color: var(--red);
}

.btn-light:hover {
    color: var(--red-deep);
    box-shadow: 0 18px 42px rgba(255, 255, 255, .16);
}

.btn-ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .14);
}

.skip-link {
    position: absolute;
    left: -100%;
    top: 10px;
    z-index: 100;
    padding: 8px 18px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
}

.skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
}

.menu a.is-active {
    color: #fff;
}

.footer {
    position: relative;
    overflow: hidden;
    padding: 76px 0 30px;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    border-top: 0;
    background:
        radial-gradient(circle at 92% 0%, rgba(192, 38, 45, .2), transparent 30%),
        #171513;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 52px;
    margin-bottom: 52px;
    align-items: start;
}

.footer-logo {
    --logo-ink: #ffffff;
    --logo-tag: rgba(255, 255, 255, .62);
    display: block;
    width: fit-content;
    margin-bottom: 22px;
}

.footer-logo img,
.footer-logo .brand-logo {
    display: block;
    width: 220px;
    height: auto;
}

.footer-brand p {
    color: rgba(255, 255, 255, .62);
    line-height: 1.75;
    max-width: 28ch;
}

.footer-col {
    display: grid;
    align-content: start;
    gap: 0;
}

.footer-col-label {
    display: block;
    color: #8bd2a4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-col a,
.footer-col span {
    display: block;
    color: rgba(255, 255, 255, .62);
    line-height: 2;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
    color: rgba(255, 255, 255, .46);
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

/* ── Kariéra ─────────────────────────────────────────────────────────────── */
.career-hero h1 {
    max-width: 18ch;
}

.career-hero-panel {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
}

.career-hero-panel small {
    color: var(--hero-accent-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.career-hero-job {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
    padding: 14px 16px;
    color: #fff;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    transition: background-color .18s ease, border-color .18s ease;
}

.career-hero-job:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(var(--hero-accent-rgb), .45);
}

.career-hero-job b {
    font-size: 15px;
}

.career-hero-job span {
    grid-column: 1;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}

.career-hero-job i {
    grid-row: 1 / span 2;
    grid-column: 2;
    color: var(--hero-accent-soft);
    font-size: 18px;
    font-style: normal;
}

.career-why {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.career-why-media {
    position: relative;
    margin: 0;
}

.career-why-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(23, 21, 18, .16);
}

.career-why-media figcaption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 36px);
    padding: 8px 14px;
    color: #fff;
    background: rgba(23, 21, 18, .78);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12.5px;
    font-weight: 600;
}

.career-why-media figcaption::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

.career-why-copy {
    display: grid;
    gap: 28px;
}

.career-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.career-facts > div {
    padding: 18px 20px 18px 0;
}

.career-facts > div + div {
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.career-facts dt {
    color: var(--red);
    font-family: Fraunces, Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.career-facts dd {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.career-reasons {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.career-reasons li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
}

.career-reason-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: var(--red);
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(192, 38, 45, .24), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.career-reason-icon .icon {
    width: 22px;
    height: 22px;
}

.career-reasons b {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 16px;
}

.career-reasons p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.career-offer-label {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.career-page h2 em {
    font-style: normal;
    color: var(--red);
}

.career-page .cta h2 em {
    color: inherit;
}

.career-jobs {
    display: grid;
    gap: 18px;
}

.career-job {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(23, 21, 18, .06);
    border-radius: 26px;
    box-shadow: 0 28px 64px rgba(23, 21, 18, .1);
    scroll-margin-top: calc(var(--topbar-height) + 24px);
}

.career-job-main {
    display: grid;
    align-content: start;
    gap: 26px;
    padding: 36px 38px;
}

.career-job-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.career-job-title h3 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 30px;
    line-height: 1.1;
}

.career-job-badge {
    padding: 5px 11px;
    color: var(--green-deep);
    background: rgba(52, 176, 74, .12);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: help;
}

.career-job-intro {
    max-width: 60ch;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.career-job-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.career-job-lists h4 {
    margin: 0 0 12px;
    color: var(--muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.career-job-lists ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.career-job-lists li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
}

.career-job-lists li::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: 8px;
    background: var(--red);
    border-radius: 50%;
}

.career-job-side {
    display: grid;
    align-content: start;
    gap: 22px;
    padding: 36px 32px;
    background: var(--paper);
    border-left: 1px solid var(--line);
}

.career-job-side .btn {
    width: 100%;
    justify-content: center;
}

.career-job-meta {
    display: grid;
    gap: 14px;
    margin: 0;
}

.career-job-meta > div {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.career-job-meta-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--red);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.career-job-meta-icon .icon {
    width: 17px;
    height: 17px;
}

.career-job-meta dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.career-job-meta dd {
    margin: 0;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
}

.career-recruiter {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.career-recruiter-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: var(--ink);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(52, 176, 74, .55);
    font-family: Fraunces, Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    object-fit: cover;
    object-position: center 25%;
}

.career-recruiter small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.career-recruiter b {
    display: block;
    color: var(--ink);
    font-size: 15px;
}

.career-recruiter a {
    display: block;
    color: var(--red);
    font-size: 13.5px;
    font-weight: 600;
}

.steps-track--titled .steps-track-step {
    gap: 8px;
}

.steps-track--titled strong {
    margin-top: 4px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
}

.steps-track--titled p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.contact-form-field .career-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px dashed rgba(255, 255, 255, .22);
    border-radius: 12px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

.contact-form-field .career-file:hover,
.contact-form-field .career-file:focus-within {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .4);
}

.contact-form-field .career-file input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.career-file-button {
    flex: none;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.career-file-name {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-form-field .career-file.is-invalid {
    border-color: #e05555;
}

@media (max-width: 1100px) {
    .career-why,
    .career-job {
        grid-template-columns: minmax(0, 1fr);
    }

    .career-why {
        gap: 36px;
    }

    .career-why-media img {
        aspect-ratio: 4 / 3;
    }

    .career-job-side {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 620px) {
    .career-job-main,
    .career-job-side {
        padding: 24px;
    }

    .career-job-title h3 {
        font-size: 26px;
    }

    .career-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .career-facts > div,
    .career-facts > div + div {
        padding: 14px 0;
        border-left: 0;
    }

    .career-facts > div + div {
        border-top: 1px solid var(--line);
    }
}

/* ── News / Aktuality ────────────────────────────────────────────────────── */
.news-slider {
    --news-card-gap: 24px;
    --news-edge-gutter: 1px;
    position: relative;
    margin-top: 40px;
}

#aktuality .section-footer {
    position: relative;
    z-index: 3;
}

.news-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red);
    border: 1px solid var(--red);
    box-shadow: 0 4px 16px rgba(192, 38, 45, .22);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .15s, box-shadow .15s, opacity .15s;
    flex-shrink: 0;
    align-self: center;
    padding: 0;
    position: absolute;
    top: calc(50% - 28px);
    transform: translateY(-50%);
    z-index: 2;
}

.news-slider-prev {
    left: -22px;
}

.news-slider-next {
    right: -22px;
}

.news-slider-btn:hover:not(:disabled) {
    background: var(--red-deep);
    border-color: var(--red-deep);
    box-shadow: 0 4px 24px rgba(192, 38, 45, .38);
}

.news-slider-btn:disabled {
    opacity: .25;
    cursor: default;
}

.news-cards-viewport {
    overflow: hidden;
    padding: 8px var(--news-edge-gutter) 56px;
    margin: -8px 0 -56px;
    pointer-events: none;
}

.news-cards {
    display: flex;
    gap: var(--news-card-gap);
    transition: transform .42s cubic-bezier(.25, .46, .45, .94);
    pointer-events: auto;
}

.news-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 178px;
    padding: 18px 22px;
    background: var(--paper);
    border: 0;
    border-radius: 20px;
    box-shadow:
        inset 0 0 0 1px rgba(36, 35, 33, .08),
        inset 0 1px 0 rgba(255, 255, 255, .82);
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
    flex: 0 0 calc((100% - (2 * var(--news-edge-gutter)) - (2 * var(--news-card-gap))) / 3);
}

.news-card:hover {
    background: #fbfaf6;
    box-shadow:
        inset 0 0 0 1px rgba(192, 38, 45, .16),
        inset 0 1px 0 rgba(255, 255, 255, .86);
    transform: translateY(-2px);
}

.news-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 1px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 10px;
    text-align: center;
    min-width: 52px;
}

.news-card-date strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

.news-card-date span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.3;
}

.news-card-body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-self: stretch;
    gap: 6px;
    min-width: 0;
}

.news-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    margin: 0;
}

.news-card-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
    display: block;
    overflow: hidden;
}

.news-card-text.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.news-card-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    cursor: pointer;
    transition: opacity .15s;
}

.news-card-more[hidden] {
    display: none;
}

.news-card-more:hover {
    opacity: .7;
}

.news-card-more svg {
    transition: transform .2s ease;
}

.news-card-more.is-expanded svg {
    transform: rotate(180deg);
}

/* ── Aktuality page ──────────────────────────────────────────────────────── */
.news-hero-panel,
.references-hero-panel {
    display: grid;
    align-content: start;
    gap: 2px;
    padding: 22px 22px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
}

.news-hero-panel small,

.references-hero-panel small {
    margin-bottom: 8px;
    color: var(--hero-accent-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.news-hero-category,

.references-hero-category {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.news-hero-category b,

.references-hero-category b {
    font-family: Fraunces, Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.news-hero-category span,

.references-hero-category span {
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 600;
    transition: color .18s ease;
}

.news-hero-category i,

.references-hero-category i {
    color: var(--hero-accent-soft);
    font-style: normal;
    transition: transform .18s ease;
}

.news-hero-category:hover span,

.references-hero-category:hover span,
.news-hero-category:focus-visible span,
.references-hero-category:focus-visible span {
    color: #fff;
}

.news-hero-category:hover i,

.references-hero-category:hover i,
.news-hero-category:focus-visible i,
.references-hero-category:focus-visible i {
    transform: translateX(3px);
}

.news-hero-since {
    padding-top: 10px;
    color: rgba(255, 255, 255, .5);
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 12.5px;
}

.news-empty {
    margin: 0;
    color: var(--muted);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.news-meta time {
    font-variant-numeric: tabular-nums;
}

.news-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
}

.news-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.news-chip--projekt {
    color: var(--red);
    background: rgba(192, 38, 45, .09);
}

.news-chip--akce {
    color: var(--green-deep, #1f8a36);
    background: rgba(52, 176, 74, .12);
}

.news-chip--pinned {
    color: #fff;
    background: var(--ink);
}

.news-chip--pinned::before {
    display: none;
}

.news-related {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.news-related a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red);
    font-size: 13.5px;
    font-weight: 700;
}

.news-related small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.news-related svg {
    flex: none;
    width: 15px;
    height: 15px;
    transition: transform .18s ease;
}

.news-related a:hover svg,
.news-related a:focus-visible svg {
    transform: translateX(3px);
}

.news-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(23, 21, 18, .06);
    border-radius: 26px;
    box-shadow: 0 28px 64px rgba(23, 21, 18, .1);
}

.news-feature--text {
    grid-template-columns: minmax(0, 1fr);
}

.news-year[hidden],
.news-entry[hidden] {
    display: none;
}

.news-feature figure {
    margin: 0;
}

.news-feature img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.news-feature-body {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: 40px;
}

.news-feature h2 {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.12;
    text-wrap: balance;
}

.news-feature p {
    max-width: 62ch;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin: 72px 0 8px;
}

.news-toolbar h2 {
    margin: 0;
    font-size: clamp(26px, 2.6vw, 34px);
}

.news-filters,

.references-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-filters [data-news-filter],

.references-filters [data-reference-filter] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(23, 21, 18, .12);
    border-radius: 999px;
    font: 600 13.5px/1 Inter, sans-serif;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.news-filters [data-news-filter] > span:last-child,

.references-filters [data-reference-filter] > span:last-child {
    color: var(--muted);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.news-filters [data-news-filter]:hover,

.references-filters [data-reference-filter]:hover {
    border-color: rgba(23, 21, 18, .3);
}

.news-filters [data-news-filter][aria-pressed="true"],

.references-filters [data-reference-filter][aria-pressed="true"] {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.news-filters [data-news-filter][aria-pressed="true"] > span:last-child,

.references-filters [data-reference-filter][aria-pressed="true"] > span:last-child {
    color: rgba(255, 255, 255, .6);
}

.news-year {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 40px;
    padding: 36px 0 12px;
    border-top: 1px solid var(--line);
}

.news-year-label {
    position: sticky;
    top: calc(var(--topbar-height) + 24px);
    align-self: start;
}

.news-year-label b {
    display: block;
    color: var(--ink);
    font-family: Fraunces, Georgia, serif;
    font-size: 48px;
    font-weight: 700;
    line-height: .95;
    font-variant-numeric: tabular-nums;
}

.news-year-label span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.news-entry {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 0 0 30px 28px;
}

.news-entry.has-thumb {
    grid-template-columns: minmax(0, 1fr) 168px;
    column-gap: 28px;
}

.news-entry::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--red);
}

.news-entry::after {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 4px;
    left: 4px;
    width: 2px;
    background: var(--line);
}

.news-entry:last-child::after {
    display: none;
}

.news-entry > * {
    grid-column: 1;
}

.news-entry h3 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 22px;
    line-height: 1.2;
    text-wrap: balance;
}

.news-entry p {
    max-width: 66ch;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.news-entry .news-entry-thumb {
    grid-row: 1 / span 4;
    grid-column: 2;
    align-self: start;
    margin: 0;
}

.news-entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .news-hero-category i,
    .references-hero-category i,
    .news-related svg,
    .news-filters [data-news-filter],
    .references-filters [data-reference-filter] {
        transition: none;
    }
}

@media (max-width: 960px) {
    .news-feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-feature img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .news-feature-body {
        padding: 28px;
    }

    .news-year {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .news-year-label {
        position: static;
        display: flex;
        align-items: baseline;
        gap: 12px;
    }

    .news-year-label b {
        font-size: 38px;
    }

    .news-year-label span {
        margin: 0;
    }
}

@media (max-width: 620px) {
    .news-feature-body {
        padding: 24px 22px;
    }

    .news-toolbar {
        margin-top: 56px;
    }

    .news-entry.has-thumb {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-entry .news-entry-thumb {
        grid-row: auto;
        grid-column: 1;
        max-width: 260px;
        margin-top: 4px;
    }

    .news-entry h3 {
        font-size: 20px;
    }
}

.news-feature,
.news-entry {
    scroll-margin-top: calc(var(--topbar-height) + 32px);
}

/* ── Reference page ──────────────────────────────────────────────────────── */

.references-page h2 em {
    font-style: normal;
    color: var(--red);
}
.references-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 2px 0 16px;
}

.references-hero-facts dt {
    color: #fff;
    font-family: Fraunces, Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.references-hero-facts dd {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    line-height: 1.35;
}

.references-hero-category {
    grid-template-columns: 42px minmax(0, 1fr) auto;
}

.references-hero-category b {
    font-size: 24px;
}

.references-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.references-projects--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.references-projects--1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
}

.references-project {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(23, 21, 18, .06);
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(23, 21, 18, .1);
}

.references-project-photo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.references-project-logo {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    padding: 18%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.references-project-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.references-project-body {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 24px 24px 26px;
}

.references-project-figure {
    margin: 0;
    color: var(--red);
    font-family: Fraunces, Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.references-project-figure small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-family: Inter, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.references-project h3 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 20px;
    line-height: 1.2;
}

.references-project-body > p:not(.references-project-figure) {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
}

.references-project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 4px;
}

.references-project-links a,
.references-card-news {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red);
    font-size: 13.5px;
    font-weight: 700;
}

.references-project-links svg,
.references-card-news svg {
    flex: none;
    width: 15px;
    height: 15px;
    transition: transform .18s ease;
}

.references-project-links a:hover svg,
.references-project-links a:focus-visible svg,
.references-card-news:hover svg,
.references-card-news:focus-visible svg {
    transform: translateX(3px);
}

.references-quote {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 56px 0 0;
    padding: 34px 38px;
    color: #f4efe7;
    background: #1c1a17;
    border-radius: 24px;
}

/* In a dark section the quote is a lighter panel, the section already has the dark brown. */
.section-v-charcoal .references-quote {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
}

.references-projects + .references-quote {
    margin-top: 56px;
}

.references-quote:first-child {
    margin-top: 0;
}

.references-quote-mark {
    color: var(--red);
    font-family: Fraunces, Georgia, serif;
    font-size: 84px;
    line-height: .7;
}

.references-quote blockquote {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.4;
    white-space: pre-line;
    text-wrap: pretty;
}

.references-quote figcaption {
    margin-top: 14px;
    color: rgba(244, 239, 231, .6);
    font-size: 13.5px;
}

.references-quote figcaption b {
    color: #fff;
}

.references-list-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 48px;
    align-items: end;
    margin-bottom: 26px;
}

.references-list-head h2 {
    margin: 0;
}

.references-list-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.references-filters {
    margin-bottom: 28px;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.references-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid rgba(23, 21, 18, .07);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(23, 21, 18, .05);
    scroll-margin-top: calc(var(--topbar-height) + 32px);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.references-card[hidden] {
    display: none;
}

.references-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(23, 21, 18, .1);
}

/* Reached from a news item: point out which reference the link meant. */
.references-card:target {
    border-color: rgba(192, 38, 45, .45);
    box-shadow: 0 0 0 3px rgba(192, 38, 45, .18), 0 18px 40px rgba(23, 21, 18, .1);
}

.references-card-top {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.references-card-logo {
    display: grid;
    place-items: center;
    width: 112px;
    height: 72px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.references-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.references-card h3 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 16.5px;
    line-height: 1.25;
    text-wrap: balance;
}

.references-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.references-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.references-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.references-card-tags li {
    padding: 3px 9px;
    color: var(--ink);
    background: var(--bg);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.references-card-news {
    font-size: 12.5px;
}

@media (prefers-reduced-motion: reduce) {
    .references-card,
    .references-project-links svg,
    .references-card-news svg {
        transition: none;
    }
}

@media (max-width: 1180px) {
    .references-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .references-projects,
    .references-projects--2,
    .references-list-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .references-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .references-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .references-quote {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 26px 22px;
    }

    .references-project-figure {
        font-size: 34px;
    }
}

/* ── Náhradní plnění page ────────────────────────────────────────────────── */
.substitute-page h2 em {
    font-style: normal;
    color: var(--red);
}

.substitute-hero .btn-primary {
    background: var(--hero-cta);
    box-shadow: 0 14px 32px rgba(var(--hero-cta-rgb), .24);
}

.substitute-hero .btn-primary:hover {
    background: var(--hero-cta-deep);
}

.substitute-hero-panel {
    display: grid;
    align-content: start;
    padding: 22px 22px 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
}

.substitute-hero-panel small {
    margin-bottom: 10px;
    color: var(--hero-accent-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.substitute-hero-fact {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.substitute-hero-fact b {
    color: #fff;
    font-family: Fraunces, Georgia, serif;
    font-size: 28px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.substitute-hero-fact span {
    color: rgba(255, 255, 255, .72);
    font-size: 13.5px;
    line-height: 1.45;
}

.substitute-offer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.substitute-offer-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    justify-items: start;
    gap: 8px;
    padding: 22px 22px 20px;
    color: var(--ink);
    font: inherit;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(23, 21, 18, .07);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(23, 21, 18, .06);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.substitute-offer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(23, 21, 18, .1);
}

.substitute-offer-card:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.substitute-offer-icon,
.substitute-reason-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: var(--red);
    border-radius: 13px;
    box-shadow: 0 10px 22px rgba(192, 38, 45, .24), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.substitute-offer-icon .icon,
.substitute-reason-icon .icon {
    width: 21px;
    height: 21px;
}

.substitute-offer-card h3 {
    margin: 8px 0 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 19px;
    line-height: 1.2;
}

.substitute-offer-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.substitute-offer-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--red);
    font-size: 13.5px;
    font-weight: 700;
}

.substitute-offer-more svg {
    width: 15px;
    height: 15px;
    transition: transform .18s ease;
}

.substitute-offer-card:hover .substitute-offer-more svg {
    transform: translateX(3px);
}

.substitute-offer-card--goods {
    color: #f4efe7;
    background: var(--ink);
    border-color: transparent;
}

.substitute-offer-card--goods p {
    color: rgba(244, 239, 231, .7);
}

.substitute-offer-card--goods .substitute-offer-icon {
    background: rgba(255, 255, 255, .1);
    box-shadow: none;
}

.substitute-offer-card--goods .substitute-offer-more {
    color: #ffb1b5;
}

.substitute-calc {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(23, 21, 18, .06);
    border-radius: 26px;
    box-shadow: 0 28px 64px rgba(23, 21, 18, .1);
}

.substitute-calc-form {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 36px 36px 32px;
}

.substitute-calc-form h3 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 24px;
}

.substitute-field {
    display: grid;
    gap: 7px;
}

.substitute-field label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.substitute-input {
    display: flex;
    align-items: center;
    background: var(--paper);
    border: 1px solid rgba(23, 21, 18, .14);
    border-radius: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.substitute-input:hover:not(:focus-within) {
    border-color: rgba(23, 21, 18, .28);
}

.substitute-input:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(52, 176, 74, .14);
}

.substitute-input input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0 14px;
    color: var(--ink);
    font: 600 18px/1 Inter, system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    background: transparent;
    border: 0;
}

.substitute-input input:focus {
    outline: none;
}

.substitute-input span {
    padding: 0 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.substitute-field small {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.substitute-calc-result {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 36px 36px 32px;
    color: #f4efe7;
    background: #1c1a17;
}

.substitute-calc-label {
    color: #ffb1b5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.substitute-calc-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    align-items: baseline;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.substitute-calc-line span {
    color: rgba(244, 239, 231, .72);
    font-size: 14px;
}

.substitute-calc-line b {
    color: #fff;
    font-family: Fraunces, Georgia, serif;
    font-size: 24px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.substitute-calc-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.substitute-calc-option {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
}

.substitute-calc-option--good {
    background: rgba(52, 176, 74, .12);
    border-color: rgba(52, 176, 74, .4);
}

.substitute-calc-option em {
    color: rgba(244, 239, 231, .6);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.substitute-calc-option--good em {
    color: #8fe39c;
}

.substitute-calc-option strong {
    color: #fff;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.substitute-calc-option p {
    margin: 0;
    color: rgba(244, 239, 231, .7);
    font-size: 13px;
    line-height: 1.5;
}

.substitute-calc-state {
    display: none;
    margin: 0;
    padding: 16px 18px;
    color: #f4efe7;
    font-size: 14px;
    line-height: 1.55;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
}

.substitute-calc-state--done {
    color: #e6f8e9;
    background: rgba(52, 176, 74, .12);
    border-color: rgba(52, 176, 74, .4);
}

.substitute-calc.is-exempt .substitute-calc-state--exempt,
.substitute-calc.is-done .substitute-calc-state--done {
    display: block;
}

.substitute-calc.is-exempt .substitute-calc-line,
.substitute-calc.is-exempt .substitute-calc-compare,
.substitute-calc.is-done .substitute-calc-compare {
    display: none;
}

.substitute-calc-result .btn {
    justify-self: start;
}

.substitute-calc-note {
    margin: 0;
    color: rgba(244, 239, 231, .5);
    font-size: 12px;
    line-height: 1.55;
}

.substitute-calc-section + .substitute-reasons-section {
    padding-top: 0;
}

.substitute-reasons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.substitute-reasons li {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 10px;
    padding: 22px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(23, 21, 18, .05);
}

.substitute-reasons b {
    margin-top: 4px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.3;
}

.substitute-reasons p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.substitute-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: start;
}

.substitute-faq-head p {
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.substitute-faq {
    display: grid;
    gap: 10px;
}

.substitute-faq details {
    background: #fff;
    border: 1px solid rgba(23, 21, 18, .08);
    border-radius: 18px;
}

.substitute-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: 15.5px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.substitute-faq summary::-webkit-details-marker {
    display: none;
}

.substitute-faq summary::after {
    content: "+";
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--red);
    font-size: 18px;
    font-weight: 600;
    background: var(--bg);
    border-radius: 50%;
    transition: transform .18s ease;
}

.substitute-faq details[open] summary::after {
    transform: rotate(45deg);
}

.substitute-faq summary:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -2px;
    border-radius: 18px;
}

.substitute-faq details p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
    .substitute-offer-card,
    .substitute-offer-more svg,
    .substitute-input,
    .substitute-faq summary::after {
        transition: none;
    }
}

@media (max-width: 1180px) {
    .substitute-reasons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .substitute-offer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .substitute-calc,
    .substitute-faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .substitute-faq-grid {
        gap: 28px;
    }
}

@media (max-width: 620px) {
    .substitute-offer,
    .substitute-reasons,
    .substitute-calc-compare {
        grid-template-columns: minmax(0, 1fr);
    }

    .substitute-calc-form,
    .substitute-calc-result {
        padding: 26px 22px;
    }
}

/* ── Contact modal ───────────────────────────────────────────────────────── */
dialog.contact-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100dvh - 60px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 28px;
    padding: 0;
    overflow: hidden;
    background: #18191b;
    color: #fff;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .65);
}

dialog.contact-modal::backdrop {
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(5px);
}

dialog.contact-modal[open] {
    animation: modal-in .2s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.contact-modal-inner {
    padding: 36px 40px 40px;
    overflow-y: auto;
    max-height: calc(100dvh - 60px);
}

.contact-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 6px;
}

.contact-modal-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green);
    margin: 0 0 8px;
}

.contact-modal-head h2 {
    margin: 0;
    font-size: 1.65rem;
    color: #fff;
    line-height: 1.15;
}

.contact-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .65);
    cursor: pointer;
    transition: background .15s, color .15s;
    margin-top: 2px;
}

.contact-modal-close svg {
    width: 18px;
    height: 18px;
}

.contact-modal-close:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.contact-modal-lead {
    color: rgba(255, 255, 255, .5);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 28px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.contact-form-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

.contact-form-field input,
.contact-form-field textarea {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;
    padding: 11px 14px;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color .15s, background .15s;
    resize: none;
    width: 100%;
    box-sizing: border-box;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder { color: rgba(255, 255, 255, .22); }

.contact-form-field input:hover:not(:focus),
.contact-form-field textarea:hover:not(:focus) {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .08);
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    border-color: rgba(192, 38, 45, .55);
    background: rgba(255, 255, 255, .09);
}

.contact-form-field input.is-invalid,
.contact-form-field textarea.is-invalid { border-color: #e05555; }

.contact-form-error {
    font-size: 12px;
    color: #ff8c8c;
    min-height: 15px;
    line-height: 1;
}

.contact-form-footer {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form-submit {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
}

.contact-form-status {
    font-size: 13px;
    text-align: center;
    min-height: 18px;
    margin: 0;
}

.contact-form-status.is-success { color: #88dfa0; }
.contact-form-status.is-error   { color: #ff8c8c; }

/* ── Red rule divider ────────────────────────────────────────────────────── */
.section-v-charcoal#kontakt {
    position: relative;
}

.section-v-charcoal#kontakt::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1320px, calc(100% - 40px));
    height: 1px;
    background: linear-gradient(90deg, #1c1a17 0%, var(--red) 50%, #1c1a17 100%);
}

.cta-all-contacts {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .45);
    text-align: center;
    justify-content: center;
    transition: color .15s;
}

.cta-all-contacts svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform .15s;
}

.cta-all-contacts:hover {
    color: rgba(255, 255, 255, .8);
}

.cta-all-contacts:hover svg {
    transform: translateX(4px);
}

.contact-modal-alt {
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 18px 0 0;
    margin-top: 20px;
    text-align: center;
}

.contact-modal-alt-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .45);
    transition: color .15s;
}

.contact-modal-alt-link svg {
    width: 15px;
    height: 15px;
    transition: transform .15s;
}

.contact-modal-alt-link:hover {
    color: rgba(255, 255, 255, .82);
}

.contact-modal-alt-link:hover svg {
    transform: translateX(4px);
}

@media (max-width: 1100px) {
    .page-hero-grid,
    .service-hero-grid,
    .split,
    .contact-grid,
    .head,
    .cta {
        grid-template-columns: 1fr;
    }

    .cards4,
    .process {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 520px;
    }

    .service-hero-visual-grid {
        grid-template-columns: 1fr;
    }

    .service-hero-image {
        justify-self: stretch;
        width: 100%;
        margin-right: 0;
    }

    .supplemental-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-poster {
        aspect-ratio: 16 / 9;
        background-image:
            linear-gradient(to top, rgba(20, 18, 15, .55) 0%, transparent 55%),
            var(--poster-image-tablet, var(--poster-image));
        background-position: var(--poster-position-tablet, var(--poster-position, center center));
    }
}

@media (max-width: 960px) {
    .news-slider {
        --news-card-gap: 24px;
    }

    .news-card {
        flex: 0 0 calc((100% - (2 * var(--news-edge-gutter)) - var(--news-card-gap)) / 2);
    }

    .news-cards-viewport {
        padding-bottom: 52px;
        margin-bottom: -52px;
    }
}

@media (max-width: 980px) {
    .nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 14px 0;
        gap: 12px;
    }

    .brand img,
    .brand .brand-logo {
        width: min(136px, 40vw);
    }

    .menu {
        display: none;
    }

    .nav {
        position: relative;
    }

    /* On a phone the panel spans the header container; on a tablet it stays phone-sized on the right. */
    .mobile-menu {
        display: block;
        justify-self: end;
    }

    .mobile-menu-panel {
        position: absolute;
        top: calc(100% - 4px);
        right: 0;
        z-index: 40;
        width: min(100%, 480px);
        gap: 20px;
        max-height: calc(100vh - 96px);
        max-height: calc(100dvh - 96px);
        overflow: auto;
        overscroll-behavior: contain;
        padding: 18px 14px;
        background: rgba(23, 21, 18, .97);
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 24px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 28px 60px rgba(0, 0, 0, .4);
    }

    .nav > .btn-primary {
        display: none;
    }
}

@media (max-width: 760px) {
    :root {
        --service-hero-visual-gap: 62px;
        --service-band-overlap: 28px;
    }

    .container {
        width: min(var(--max), calc(100% - 24px));
    }

    .band {
        font-size: 11px;
        letter-spacing: .045em;
    }

    .band-row {
        flex-wrap: wrap;
        padding: 14px 12px;
        border-radius: 18px;
        box-shadow:
            0 16px 30px rgba(23, 21, 18, .2),
            0 7px 14px rgba(148, 28, 34, .16),
            inset 0 1px 0 rgba(255, 255, 255, .12);
    }

    .band-row span {
        flex-basis: 50%;
        min-height: 36px;
        padding: 8px 10px;
    }

    .band-row span + span {
        border-left: none;
    }

    .band-row span:nth-child(even) {
        border-left: 1px solid rgba(255, 255, 255, .14);
    }

    .band-row span:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .contact-form {
        padding: 20px;
        border-radius: 22px;
    }

    .form-row-split {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .cards4,
    .process {
        grid-template-columns: 1fr;
    }

    .service-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-gallery-item {
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }

    .service-gallery-item figcaption {
        display: none;
    }

    .gallery-lightbox {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
    }

    .gallery-lightbox-inner {
        max-height: calc(100dvh - 20px);
    }

    .gallery-lightbox-media img {
        max-height: calc(100dvh - 168px);
        border-radius: 16px;
    }

    .gallery-lightbox-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
        border-radius: 16px;
    }

    .gallery-lightbox-meta {
        width: 100%;
        justify-content: space-between;
    }

    .page-hero,
    .service-hero {
        padding: calc(var(--topbar-height) + 40px) 0 54px;
    }

    .service-hero {
        padding-bottom: calc(var(--service-hero-visual-gap) + var(--service-band-overlap));
    }

    .service-hero-image,
    .service-hero-image img {
        min-height: 320px;
    }

    .service-hero-image figcaption {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 16px;
        border-radius: 18px;
    }

    .service-poster {
        aspect-ratio: 4 / 3;
        border-radius: 24px;
        background-image:
            linear-gradient(to top, rgba(20, 18, 15, .55) 0%, transparent 55%),
            var(--poster-image-mobile, var(--poster-image-tablet, var(--poster-image)));
        background-position: var(--poster-position-mobile, var(--poster-position-tablet, var(--poster-position, center center)));
    }

    h1 {
        font-size: var(--type-content-h1-min, 48px);
    }

    .project {
        gap: 16px;
    }

    .section {
        padding: 68px 0;
    }

    .band + .section {
        padding-top: calc(68px + var(--service-band-overlap));
    }

    .cta {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-dark-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-slider {
        --news-card-gap: 16px;
    }

    .news-slider-btn {
        width: 36px;
        height: 36px;
    }

    .news-slider-prev {
        left: -12px;
    }

    .news-slider-next {
        right: -12px;
    }

    .news-cards-viewport {
        padding-bottom: 44px;
        margin-bottom: -44px;
    }

    .news-card {
        flex: 0 0 calc(100% - (2 * var(--news-edge-gutter)));
    }

    .contact-modal-inner {
        padding: 28px 22px 32px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .service-poster {
        aspect-ratio: 1 / 1;
        border-radius: 22px;
    }
}


/* ── Homepage hero ──────────────────────────────────────────────────────── */
/* One headline for the whole company, a showcase card that walks through the hero slides and the client logos.
   A hero with a photo behind it uses the neutral black of the service heroes, not the brown of the dark sections. */
.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: clamp(700px, 100svh, 860px);
    overflow: hidden;
    color: #fff;
    background: #111315;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .9s ease, transform 8s ease-out;
}

.home-hero-bg.is-active {
    opacity: 1;
    transform: none;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(10, 11, 12, .97) 0%, rgba(10, 11, 12, .9) 36%, rgba(10, 11, 12, .6) 68%, rgba(10, 11, 12, .46) 100%),
        linear-gradient(180deg, rgba(10, 11, 12, .72) 0, transparent 26%, transparent 64%, rgba(10, 11, 12, .92) 100%);
}

.home-hero-grid {
    position: relative;
    z-index: 2;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    gap: 64px;
    align-items: center;
    padding-top: calc(var(--topbar-height) + 44px);
    padding-bottom: 44px;
}

.home-hero--plain .home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
}

.home-hero h1 {
    max-width: 15ch;
    margin: 18px 0 20px;
    font-size: clamp(40px, 4.7vw, 70px);
    line-height: 1;
    text-wrap: balance;
}

.home-hero .lead {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
}

.home-hero .hero-actions {
    margin-top: 30px;
}

.home-hero .btn-secondary {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
}

.home-hero-stats {
    display: flex;
    max-width: 560px;
    margin: 36px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

/* The number is read after its label but shown above it. */
.home-hero-stats div {
    flex: 1 1 0;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 6px;
    padding-right: 20px;
}

.home-hero-stats div + div {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.home-hero-stats dt {
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    line-height: 1.35;
}

.home-hero-stats dd {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.home-hero-stat-short {
    display: none;
}

/* Showcase */
.home-hero-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.home-hero-tabs {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(14px);
    overflow-x: auto;
    scrollbar-width: none;
}

.home-hero-tabs::-webkit-scrollbar {
    display: none;
}

.home-hero-tab {
    position: relative;
    flex: 1 0 auto;
    overflow: hidden;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: rgba(255, 255, 255, .66);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.home-hero-tab:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.home-hero-tab.is-active {
    background: var(--red);
    color: #fff;
}

.home-hero-tab:focus-visible,
.home-hero-pause:focus-visible,
.home-hero-more:focus-visible,
.home-hero-clients a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.home-hero-tab span {
    position: relative;
    z-index: 1;
}

/* Fills the active tab over the time its panel stays. */
.home-hero-tab i {
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left center;
    background: rgba(255, 255, 255, .2);
}

.home-hero-tab.is-active i {
    animation: home-hero-progress 7.2s linear forwards;
}

.home-hero.is-held .home-hero-tab.is-active i {
    animation-play-state: paused;
}

.home-hero.is-stopped .home-hero-tab.is-active i {
    animation: none;
}

@keyframes home-hero-progress {
    to { transform: scaleX(1); }
}

.home-hero-pause {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(14px);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease;
}

.home-hero-pause:hover {
    background: rgba(255, 255, 255, .15);
}

.home-hero-pause svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.home-hero-play-icon,
.home-hero.is-stopped .home-hero-pause-icon {
    display: none;
}

.home-hero.is-stopped .home-hero-play-icon {
    display: block;
}

.home-hero-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 22px;
    background: #111315;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 8px rgba(255, 255, 255, .06);
}

.home-hero-panel {
    animation: home-hero-in .45s ease;
}

.home-hero-panel[hidden] {
    display: none;
}

@keyframes home-hero-in {
    from { opacity: 0; }
}

/* The card frames the picture, so the slider drops its own frame here. */
.home-hero-card .service-compare,
.home-hero-photo {
    position: relative;
    aspect-ratio: 3 / 2;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #111315;
    box-shadow: none;
}

.home-hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-foot {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.home-hero-foot div {
    flex: 1;
    min-width: 0;
}

.home-hero-foot p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    line-height: 1.4;
}

.home-hero-foot .home-hero-name {
    margin: 0;
    color: #fff;
    font-family: Fraunces, Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

.home-hero-more {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    transition: background-color .2s ease;
}

.home-hero-more:hover {
    background: rgba(255, 255, 255, .1);
}

.home-hero-more svg {
    width: 15px;
    height: 15px;
    transition: transform .18s ease;
}

.home-hero-more:hover svg {
    transform: translateX(3px);
}

/* Clients */
.home-hero-clients {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: #111315;
}

.home-hero-clients .container {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.home-hero-clients-label,
.home-hero-clients a {
    flex: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-hero-clients-label {
    color: rgba(255, 255, 255, .5);
}

.home-hero-clients a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffb1b5;
}

.home-hero-clients a svg {
    width: 14px;
    height: 14px;
}

.home-hero-clients ul {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}

.home-hero-clients li {
    flex: none;
}

/* Logos are stored on white: inverted and screened they read as light marks on the dark band. */
.home-hero-clients img {
    display: block;
    width: auto;
    height: 46px;
    filter: grayscale(1) invert(1) contrast(1.15);
    mix-blend-mode: screen;
    opacity: .78;
}

@media (max-width: 1100px) {
    .home-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
        gap: 40px;
    }
}

@media (max-width: 1000px) {
    .home-hero {
        min-height: 0;
    }

    .home-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
        padding-top: calc(var(--topbar-height) + 28px);
        padding-bottom: 40px;
    }

    .home-hero::before {
        background: linear-gradient(180deg, rgba(10, 11, 12, .82) 0, rgba(10, 11, 12, .9) 40%, rgba(10, 11, 12, .96) 100%);
    }

    .home-hero-clients ul {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .home-hero-clients ul::-webkit-scrollbar {
        display: none;
    }

    .home-hero-clients a {
        display: none;
    }
}

@media (max-width: 600px) {
    .home-hero h1 {
        font-size: clamp(34px, 10vw, 44px);
    }

    .home-hero-stats dd {
        font-size: 26px;
    }

    .home-hero-stats div {
        padding-right: 12px;
    }

    .home-hero-stats div + div {
        padding-left: 14px;
    }

    .home-hero-stats dt {
        font-size: 12px;
    }

    .home-hero-stat-full {
        display: none;
    }

    .home-hero-stat-short {
        display: inline;
    }

    .home-hero-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
    }

    .home-hero-clients .container {
        gap: 18px;
    }

    .home-hero-clients img {
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-bg {
        transform: none;
        transition: opacity .2s linear;
    }

    .home-hero-panel {
        animation: none;
    }

    .home-hero-tab.is-active i {
        animation: none;
        transform: scaleX(1);
    }
}


/* ── Error pages (404, 500) ─────────────────────────────────────────────── */
.error-page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
}

.error-page-hero .lead a {
    color: inherit;
}

.error-page-details {
    margin-top: 32px;
    max-height: 50vh;
    overflow: auto;
    padding: 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .4);
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.not-found-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 32px;
}

.not-found-links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.not-found-links a span {
    color: var(--red);
    transition: transform .15s;
}

.not-found-links a:hover span,
.not-found-links a:focus-visible span {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .not-found-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .not-found-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* BookScan Vortex page (bookscan-vortex.twig): the company's own software. The hero and the block for other
   workplaces take the colours of the application logo: dark #1c1a17, paper #f2ece2, green #34b04a, gold #c4a874. */
.bsv-page {
    --bsv-dark: #1c1a17;
    --bsv-paper: #f2ece2;
    --bsv-gold: #c4a874;
}

.bsv-page h2 em {
    font-style: italic;
    color: var(--red);
}

.bsv-page .head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 48px;
    margin-bottom: 40px;
}

.bsv-split {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: center;
}

.bsv-split--copy {
    grid-template-columns: minmax(0, 1fr);
}

.bsv-copy > p {
    margin: 18px 0 0;
    max-width: 54ch;
    color: var(--muted);
    line-height: 1.75;
}

.bsv-shot {
    overflow: hidden;
    border: 1px solid rgba(23, 21, 18, .5);
    border-radius: 14px;
    background: #17191c;
    box-shadow: 0 30px 70px rgba(23, 21, 18, .25);
}

.bsv-shot img {
    width: 100%;
    height: auto;
}

.bsv-figure,
.bsv-straight figure {
    margin: 0;
}

.bsv-figure figcaption,
.bsv-straight figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.bsv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.bsv-btn--red {
    background: var(--red);
    color: #fff;
}

.bsv-btn--red:hover {
    background: var(--red-deep);
}

.bsv-btn--line {
    border-color: rgba(242, 236, 226, .3);
    background: transparent;
    color: var(--bsv-paper);
}

.bsv-btn--line:hover {
    border-color: var(--bsv-gold);
}

.bsv-btn--gold {
    background: var(--bsv-gold);
    color: var(--bsv-dark);
}

.bsv-btn--gold:hover {
    background: #d6bd8d;
}

.bsv-btn:focus-visible {
    outline: 3px solid var(--bsv-gold);
    outline-offset: 3px;
}

/* Hero */
.bsv-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--topbar-height) + 64px) 0 84px;
    background:
        radial-gradient(ellipse at 78% 30%, rgba(196, 168, 116, .16), transparent 55%),
        var(--bsv-dark);
    color: var(--bsv-paper);
}

.bsv-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.bsv-kicker {
    color: var(--bsv-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bsv-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}

.bsv-brand img {
    flex: none;
    width: 76px;
    height: 76px;
}

.bsv-hero h1 {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: clamp(40px, 4.6vw, 68px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
}

.bsv-hero h1 em {
    font-style: normal;
    color: var(--bsv-gold);
}

.bsv-hero-lead {
    margin: 26px 0 0;
    max-width: 30ch;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(22px, 2vw, 29px);
    line-height: 1.3;
}

.bsv-hero-lead em {
    color: #7fd38d;
}

.bsv-hero-text {
    margin: 18px 0 0;
    max-width: 50ch;
    color: rgba(242, 236, 226, .66);
    line-height: 1.75;
}

.bsv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.bsv-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 34px;
    margin: 40px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(242, 236, 226, .14);
    list-style: none;
}

.bsv-facts li {
    display: grid;
    gap: 2px;
}

.bsv-facts b {
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.bsv-facts li > span {
    color: rgba(242, 236, 226, .58);
    font-size: 13px;
}

/* The scan from the scanner at the back, the page the application made from it in front. */
.bsv-hero-visual {
    position: relative;
    margin: 0;
    padding-bottom: 60px;
}

.bsv-hero-visual--scan {
    padding-bottom: 0;
}

.bsv-hero-scan {
    width: 88%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}

.bsv-hero-visual--scan .bsv-hero-scan {
    width: 100%;
}

.bsv-hero-page {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 38%;
}

.bsv-hero-page img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}

.bsv-tag {
    position: absolute;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(10, 11, 12, .8);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
}

.bsv-tag--scan {
    top: 14px;
    left: 14px;
}

.bsv-tag--page {
    left: 12px;
    bottom: 12px;
    background: var(--green);
    color: #0e1a10;
}

/* Steps */
.bsv-steps {
    display: grid;
    grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr));
    gap: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: bsv-step;
}

.bsv-steps li {
    display: grid;
    align-content: start;
    gap: 10px;
    padding-top: 22px;
    border-top: 2px solid var(--ink);
    counter-increment: bsv-step;
}

.bsv-steps li::before {
    content: counter(bsv-step);
    color: var(--red);
    font-family: Fraunces, Georgia, serif;
    font-size: 44px;
    line-height: 1;
}

.bsv-steps h3 {
    margin: 4px 0 0;
    font-size: 20px;
}

.bsv-steps p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.section-v-charcoal .bsv-steps li {
    border-top-color: rgba(255, 255, 255, .5);
}

.section-v-charcoal .bsv-steps p {
    color: rgba(255, 255, 255, .64);
}

/* Straightening each page by its own lines */
.bsv-straight {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.bsv-straight--single {
    grid-template-columns: minmax(0, 1fr);
}

.bsv-straight-pages > div {
    display: flex;
    gap: 12px;
}

.bsv-straight-page {
    position: relative;
    flex: 1;
}

.bsv-straight-page img {
    width: 100%;
    height: auto;
    box-shadow: 0 16px 34px rgba(23, 21, 18, .25);
}

.bsv-angle {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(10, 11, 12, .82);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.bsv-arrow {
    width: 34px;
    height: 34px;
    color: var(--red);
}

/* Review: the number that matters */
.bsv-stat {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-top: 30px;
}

.bsv-stat b {
    flex: none;
    font-family: Fraunces, Georgia, serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.bsv-stat b em {
    font-style: normal;
    color: #e08a12;
}

.bsv-stat > span {
    max-width: 24ch;
    color: var(--muted);
    line-height: 1.5;
}

.bsv-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.bsv-reasons li {
    padding: 7px 13px;
    border: 1px solid rgba(224, 138, 18, .45);
    border-radius: 999px;
    background: rgba(240, 162, 58, .1);
    color: #8a5208;
    font-size: 13.5px;
    font-weight: 600;
}

/* Completeness of the volume (dark by default, light also works) */
.bsv-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 28px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.bsv-checks li {
    display: grid;
    align-content: start;
    gap: 6px;
    padding-left: 18px;
    border-left: 2px solid rgba(192, 38, 45, .5);
}

.bsv-checks b {
    font-size: 16.5px;
}

.bsv-checks li > span {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.section-v-charcoal .bsv-checks li {
    border-left-color: rgba(255, 177, 181, .55);
}

.section-v-charcoal .bsv-checks b,
.section-v-charcoal.bsv-complete h2,
.section-v-charcoal .bsv-stat b {
    color: #fff;
}

.section-v-charcoal .bsv-checks li > span,
.section-v-charcoal .bsv-copy > p,
.section-v-charcoal .bsv-stat > span,
.section-v-charcoal .bsv-figure figcaption,
.section-v-charcoal .bsv-straight figcaption {
    color: rgba(255, 255, 255, .64);
}

.section-v-charcoal.bsv-page h2 em,
.bsv-page .section-v-charcoal h2 em {
    color: #ffb1b5;
}

.section-v-charcoal .bsv-shot {
    border-color: rgba(255, 255, 255, .14);
}

/* The application: views as cards above the window, the current one red and pointing at it */
.bsv-tabs {
    display: grid;
    grid-template-columns: repeat(var(--views, 5), minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.bsv-tabs [role="tab"] {
    position: relative;
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid rgba(23, 21, 18, .14);
    border-radius: 16px;
    background: #fff;
    color: var(--muted);
    font: inherit;
    text-align: left;
    box-shadow: 0 6px 18px rgba(23, 21, 18, .06);
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}

.bsv-tabs .icon {
    width: 24px;
    height: 24px;
    color: var(--red);
}

.bsv-tabs b {
    color: var(--ink);
    font-size: 15.5px;
}

.bsv-tabs [role="tab"] > span {
    font-size: 13px;
    line-height: 1.45;
}

.bsv-tabs [role="tab"]:hover {
    border-color: rgba(192, 38, 45, .5);
    transform: translateY(-2px);
}

.bsv-tabs [role="tab"][aria-selected="true"] {
    border-color: var(--red);
    background: var(--red);
    color: rgba(255, 255, 255, .86);
    box-shadow: 0 14px 30px rgba(192, 38, 45, .28);
    transform: none;
}

.bsv-tabs [role="tab"][aria-selected="true"] b,
.bsv-tabs [role="tab"][aria-selected="true"] .icon {
    color: #fff;
}

.bsv-tabs [role="tab"][aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 3px;
    background: var(--red);
    transform: rotate(45deg);
}

.bsv-window {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    cursor: zoom-in;
}

.bsv-window [hidden] {
    display: none;
}

.bsv-zoom-chip {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 11, 12, .82);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
    color: #fff;
    pointer-events: none;
}

.bsv-zoom-chip svg {
    width: 16px;
    height: 16px;
}

.bsv-tabs button:focus-visible,
.bsv-window:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

/* Enlarged application window (partials/app-zoom.twig): the picture at its own size, scrolled when it is larger than
   the screen; arrows, the cross and the caption stay in place over it. */
.app-zoom {
    position: fixed;
    inset: 0;
    z-index: 900;
    overflow: auto;
    padding: 24px 24px 76px;
    background: rgba(12, 12, 12, .92);
    cursor: zoom-out;
}

.app-zoom[hidden] {
    display: none;
}

.app-zoom img {
    width: auto;
    max-width: none;
    margin: 0 auto;
    border-radius: 10px;
}

.app-zoom-arrow,
.app-zoom-close {
    position: fixed;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.app-zoom-arrow {
    top: 50%;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
    transition: transform .2s ease;
}

.app-zoom-arrow:hover {
    transform: scale(1.06);
}

.app-zoom-arrow svg {
    width: 24px;
    height: 24px;
}

.app-zoom-arrow.is-prev {
    left: 20px;
}

.app-zoom-arrow.is-next {
    right: 20px;
}

.app-zoom-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(10, 11, 12, .85);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
    color: #fff;
}

.app-zoom-close svg {
    width: 20px;
    height: 20px;
}

.app-zoom-arrow:focus-visible,
.app-zoom-close:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.app-zoom-caption {
    position: fixed;
    bottom: 18px;
    left: 50%;
    margin: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(10, 11, 12, .85);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}

.app-zoom-caption:empty {
    display: none;
}

@media (max-width: 640px) {
    .app-zoom-arrow {
        width: 44px;
        height: 44px;
        margin-top: -22px;
    }

    .app-zoom-arrow.is-prev {
        left: 10px;
    }

    .app-zoom-arrow.is-next {
        right: 10px;
    }
}

/* Output: promises next to an exported page */
.bsv-output {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: 64px;
    align-items: center;
}

.bsv-output--cards {
    grid-template-columns: minmax(0, 1fr);
}

.bsv-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bsv-cards li {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 22px 22px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
}

.bsv-cards .icon {
    width: 26px;
    height: 26px;
    color: var(--green-deep);
}

.bsv-cards h3 {
    margin: 4px 0 0;
    font-size: 17.5px;
}

.bsv-cards p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.bsv-output figure {
    margin: 0;
}

.bsv-output figure img {
    width: 100%;
    height: auto;
    box-shadow: 0 26px 50px rgba(23, 21, 18, .25);
}

.bsv-output figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.bsv-output figcaption > span {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
}

/* For other digitisation workplaces: the dark ground of the application */
.section.bsv-work {
    background:
        radial-gradient(ellipse at 15% 0%, rgba(196, 168, 116, .14), transparent 50%),
        var(--bsv-dark);
    color: var(--bsv-paper);
}

.bsv-work .eyebrow {
    color: var(--bsv-gold);
}

.bsv-work h2 {
    color: var(--bsv-paper);
}

.bsv-page .bsv-work h2 em {
    color: var(--bsv-gold);
}

.bsv-work .head p {
    color: rgba(242, 236, 226, .68);
}

.bsv-speed {
    display: grid;
    grid-template-columns: repeat(var(--speeds, 3), minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(242, 236, 226, .14);
    border-bottom: 1px solid rgba(242, 236, 226, .14);
}

.bsv-speed li {
    display: grid;
    gap: 4px;
    padding: 26px 28px;
    border-left: 1px solid rgba(242, 236, 226, .14);
}

.bsv-speed li:first-child {
    padding-left: 0;
    border-left: 0;
}

.bsv-speed b {
    color: var(--bsv-gold);
    font-family: Fraunces, Georgia, serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.bsv-speed li > span {
    color: rgba(242, 236, 226, .66);
    font-size: 14px;
}

.bsv-speed-note {
    margin: 12px 0 0;
    color: rgba(242, 236, 226, .45);
    font-size: 12.5px;
}

.bsv-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 40px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.bsv-features li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-content: start;
    gap: 4px 14px;
}

.bsv-features .icon {
    grid-row: span 2;
    width: 24px;
    height: 24px;
    color: #7fd38d;
}

.bsv-features b {
    font-size: 16px;
}

.bsv-features li > span {
    color: rgba(242, 236, 226, .62);
    font-size: 14px;
    line-height: 1.55;
}

.bsv-work-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    margin-top: 56px;
    padding: 30px 34px;
    border: 1px solid rgba(196, 168, 116, .35);
    border-radius: 22px;
    background: rgba(242, 236, 226, .04);
}

.bsv-work-cta p {
    margin: 0;
    max-width: 60ch;
    color: rgba(242, 236, 226, .78);
    line-height: 1.65;
}

.bsv-work-cta p b {
    color: var(--bsv-paper);
}

@media (max-width: 1100px) {
    .bsv-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* In more rows the pointer would land on the card below. */
    .bsv-tabs [role="tab"][aria-selected="true"]::after {
        display: none;
    }
}

@media (max-width: 980px) {
    .bsv-hero-grid,
    .bsv-split,
    .bsv-page .head,
    .bsv-output {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .bsv-page .head {
        gap: 18px;
    }

    .bsv-steps,
    .bsv-features {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .bsv-straight {
        grid-template-columns: minmax(0, 1fr);
    }

    .bsv-straight .bsv-arrow {
        justify-self: center;
        transform: rotate(90deg);
    }

    .bsv-output figure {
        max-width: 300px;
    }

    .bsv-speed {
        grid-template-columns: minmax(0, 1fr);
    }

    .bsv-speed li {
        padding: 18px 0;
        border-top: 1px solid rgba(242, 236, 226, .14);
        border-left: 0;
    }

    .bsv-speed li:first-child {
        border-top: 0;
    }
}

@media (max-width: 640px) {
    .bsv-hero {
        padding-bottom: 60px;
    }

    .bsv-checks,
    .bsv-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .bsv-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bsv-tabs [role="tab"] > span {
        display: none;
    }

    .bsv-work-cta {
        padding: 24px 20px;
    }
}

/* Service section "Zpracování skenů" (ProcessingSection): from the scan to the pages, points, the check of a volume. */
.service-proc .head,
.service-proc-app .head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 48px;
    margin-bottom: 44px;
}

.service-proc h2 em,
.service-proc-app h2 em {
    font-style: italic;
    color: var(--red);
}

.service-proc-lead {
    display: grid;
    justify-items: start;
    gap: 14px;
}

.service-proc-lead p {
    margin: 0;
}

.service-proc-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    font-weight: 700;
    border-bottom: 1px solid rgba(192, 38, 45, .35);
    transition: border-color .2s ease;
}

.service-proc-more:hover {
    border-bottom-color: var(--red);
}

.service-proc-more > span[aria-hidden] {
    transition: transform .2s ease;
}

.service-proc-more:hover > span[aria-hidden] {
    transform: translateX(3px);
}

.service-proc-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-proc-step {
    display: grid;
    align-content: start;
    gap: 16px;
    margin: 0;
}

.service-proc-stage {
    position: relative;
    aspect-ratio: 2400 / 2044;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 40%, #26272a, #121315);
    box-shadow: 0 22px 48px rgba(23, 21, 18, .18);
}

.service-proc-stage > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Two finished pages next to each other on the dark stage. */
.service-proc-pages {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5%;
}

.service-proc-pages img {
    width: auto;
    max-width: 44%;
    height: 82%;
    object-fit: contain;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}

.service-proc-tag {
    position: absolute;
    bottom: 5%;
    left: 50%;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(10, 11, 12, .78);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
    transform: translateX(-50%);
}

/* The arrow sits in the gap before the second and the third picture. */
.service-proc-steps li + li .service-proc-stage::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -42px;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    background: no-repeat center / 28px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23c0262d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14h19M16 7l7 7-7 7'/%3E%3C/svg%3E");
}

.service-proc-step figcaption {
    display: grid;
    gap: 6px;
}

.service-proc-step figcaption b {
    font-size: 17px;
}

.service-proc-step figcaption > span {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.service-proc-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
    margin: 60px 0 0;
    padding: 0;
    list-style: none;
}

.service-proc-points li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-content: start;
    gap: 4px 14px;
}

.service-proc-points svg {
    grid-row: span 2;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    color: var(--green-deep);
}

.service-proc-points b {
    font-size: 16.5px;
}

.service-proc-points li > span {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* The whole volume as a row of scans with what the check says about them. */
.service-proc-volume {
    margin-top: 64px;
    padding: 34px 36px 30px;
    border-radius: 24px;
    background: #1c1a17;
    color: #fff;
}

.service-proc-volume-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px 40px;
}

.service-proc-volume-head h3 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 600;
    line-height: 1.1;
}

.service-proc-volume-head p {
    margin: 8px 0 0;
    max-width: 56ch;
    color: rgba(255, 255, 255, .64);
    font-size: 14.5px;
    line-height: 1.6;
}

.service-proc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-proc-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.service-proc-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4fd668;
}

.service-proc-legend .is-flag i {
    background: #f0a23a;
}

.service-proc-legend .is-missing i {
    background: transparent;
    border: 2px dashed #ff8f93;
}

.service-proc-strip-scroll {
    margin-top: 28px;
    overflow-x: auto;
}

.service-proc-strip {
    display: grid;
    grid-template-columns: repeat(var(--count, 10), minmax(104px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 4px 4px 6px;
    list-style: none;
}

.service-proc-strip li {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.service-proc-thumb {
    position: relative;
    display: block;
    aspect-ratio: 236 / 195;
    overflow: hidden;
    border-radius: 6px;
    background: #2a2723;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.service-proc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-proc-strip .is-flag .service-proc-thumb {
    outline-color: #f0a23a;
}

.service-proc-strip .is-blur img {
    filter: blur(1.7px);
}

.service-proc-strip .is-missing .service-proc-thumb {
    display: grid;
    place-items: center;
    background: transparent;
    outline: 2px dashed rgba(255, 143, 147, .7);
    color: #ff8f93;
    font-size: 26px;
    font-weight: 700;
}

.service-proc-strip b {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, .78);
}

.service-proc-strip b::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4fd668;
}

.service-proc-strip .is-flag b::before {
    background: #f0a23a;
}

.service-proc-strip .is-missing b::before {
    background: #ff8f93;
}

.service-proc-strip em {
    font-style: normal;
    font-size: 12px;
    line-height: 1.35;
    color: #f6c37d;
}

.service-proc-strip .is-missing em {
    color: #ffb1b5;
}

.service-proc-volume-note {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
}

/* The application windows: the window with arrows, its views as picture cards beside it (below on narrow screens). */
.service-proc-app .head {
    margin-bottom: 34px;
}

.service-proc-app-stage {
    position: relative;
    align-self: start;
}

.service-proc-window {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 21, 18, .55);
    border-radius: 16px;
    background: #17191c;
    box-shadow: 0 34px 80px rgba(23, 21, 18, .28);
    cursor: zoom-in;
}

.service-proc-window img {
    width: 100%;
    height: auto;
}

.service-proc-window [hidden] {
    display: none;
}

.service-proc-zoom-chip {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
    background: rgba(10, 11, 12, .82);
    color: #fff;
    pointer-events: none;
}

.service-proc-zoom-chip svg {
    width: 16px;
    height: 16px;
}

.service-proc-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 26px rgba(23, 21, 18, .28);
    cursor: pointer;
    transition: transform .2s ease;
}

.service-proc-arrow:hover {
    transform: scale(1.06);
}

.service-proc-arrow svg {
    width: 22px;
    height: 22px;
}

.service-proc-arrow.is-prev {
    left: 12px;
}

.service-proc-arrow.is-next {
    right: 12px;
}

.service-proc-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.service-proc-cards button {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 8px 8px 14px;
    border: 1px solid rgba(23, 21, 18, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service-proc-cards img {
    width: 100%;
    height: auto;
    margin-bottom: 6px;
    border-radius: 8px;
    opacity: .75;
    transition: opacity .2s ease;
}

.service-proc-cards b,
.service-proc-cards span {
    padding: 0 6px;
}

.service-proc-cards b {
    font-size: 15px;
}

.service-proc-cards span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.service-proc-cards button:hover {
    background: #fff;
}

.service-proc-cards button:hover img,
.service-proc-cards button[aria-selected="true"] img {
    opacity: 1;
}

.service-proc-cards button[aria-selected="true"] {
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 1px var(--red), 0 14px 30px rgba(23, 21, 18, .12);
}

.service-proc-cards button[aria-selected="true"] b {
    color: var(--red);
}

.service-proc-cards button:focus-visible,
.service-proc-arrow:focus-visible,
.service-proc-window:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

/* On desktop the cards stand in a column beside the window and together are as tall as it. */
@media (min-width: 981px) {
    .service-proc-app-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }

    .service-proc-cards {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(var(--count, 4), minmax(0, 1fr));
        margin-top: 0;
        min-height: 0;
    }

    .service-proc-cards button {
        grid-template-columns: 46% minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
        align-content: stretch;
        gap: 4px 12px;
        min-height: 0;
        padding: 8px;
        overflow: hidden;
    }

    .service-proc-cards img {
        grid-row: 1 / span 2;
        height: 100%;
        margin: 0;
        object-fit: cover;
        object-position: left top;
    }

    .service-proc-cards b,
    .service-proc-cards span {
        padding: 0;
    }

    .service-proc-cards b {
        align-self: end;
        font-size: 14.5px;
        line-height: 1.25;
    }

    .service-proc-cards span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: 12.5px;
        line-height: 1.4;
    }
}

@media (max-width: 980px) {
    .service-proc .head,
    .service-proc-app .head {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-proc-steps {
        grid-template-columns: 1fr;
        gap: 52px;
        max-width: 560px;
    }

    /* Stacked pictures: the arrow points down, above the picture. */
    .service-proc-steps li + li .service-proc-stage::before {
        top: -40px;
        left: 50%;
        margin: 0 0 0 -14px;
        transform: rotate(90deg);
    }

    .service-proc-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
        margin-top: 48px;
    }

    .service-proc-volume {
        margin-top: 56px;
        padding: 26px 20px 22px;
    }
}

@media (max-width: 640px) {
    .service-proc-points {
        grid-template-columns: 1fr;
    }

    .service-proc-arrow {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .service-proc-cards span {
        display: none;
    }
}

/* Service content blocks (ServiceBlocks): the hero with a document on its way, the document flow, feature cards,
   text columns and linked services. Written first for the DMS page. */
.doc-flow .head,
.feature-cards .head,
.text-columns .head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 48px;
    margin-bottom: 40px;
}

.doc-flow h2 em,
.feature-cards h2 em,
.text-columns h2 em {
    font-style: italic;
    color: var(--red);
}

.flow-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
}

.flow-state::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.flow-state.is-ok {
    color: var(--green-deep);
}

.flow-state.is-wait {
    color: #b8731a;
}

/* Hero: the promise on the left, three cards of one document on its way on the right. */
.flow-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--topbar-height, 76px) + 64px) 0 84px;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(192, 38, 45, .22), transparent 55%),
        #111315;
    color: #fff;
}

.flow-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 64px;
    align-items: center;
}

.flow-hero h1 {
    max-width: 15ch;
    margin: 18px 0 0;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(40px, 4vw, 60px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.flow-hero h1 em {
    font-style: italic;
    color: #ff8a8f;
}

.flow-hero .lead {
    max-width: 50ch;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: 18px;
    line-height: 1.65;
}

.flow-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-weight: 600;
}

.flow-hero-badge::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23111315' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5'/%3E%3C/svg%3E") no-repeat center / 18px;
}

.flow-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.flow-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
}

.flow-hero-facts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flow-hero-facts li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34b04a;
}

.flow-hero-cards {
    position: relative;
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
}

.flow-hero-cards::before {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 27px;
    border-left: 2px dashed rgba(255, 255, 255, .18);
}

.flow-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 4px 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
}

.flow-hero-card:nth-child(2) {
    margin-left: 36px;
}

.flow-hero-card:nth-child(3) {
    margin-left: 72px;
}

.flow-hero-card > i {
    grid-row: span 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff;
    color: #111315;
}

.flow-hero-card > i svg {
    width: 20px;
    height: 20px;
}

.flow-hero-card > :not(i) {
    grid-column: 2;
}

.flow-hero-card small {
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.flow-hero-card b {
    font-size: 16px;
}

.flow-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.flow-hero-chips span {
    padding: 4px 9px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.flow-hero .flow-state.is-ok {
    color: #7fd38d;
}

.flow-hero .flow-state.is-wait {
    color: #f6c37d;
}

/* Document flow: the steps on the left, the drawn screen of the chosen step on the right. */
.doc-flow-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 28px;
    align-items: start;
}

/* The step list styles only its own buttons: on a narrow screen the drawn screen stands inside the chosen step. */
.doc-flow-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.doc-flow-steps > li > :is(button, .doc-flow-tab) {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 3px 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(23, 21, 18, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.doc-flow-steps > li > :is(button, .doc-flow-tab)::before {
    counter-increment: step;
    content: "0" counter(step);
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ece5d8;
    color: var(--ink);
    font-family: Fraunces, Georgia, serif;
    font-size: 15px;
    font-weight: 700;
}

.doc-flow-steps > li > :is(button, .doc-flow-tab) > b {
    align-self: end;
    font-size: 16px;
}

.doc-flow-steps > li > :is(button, .doc-flow-tab) > span {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.doc-flow-steps > li > :is(button, .doc-flow-tab):hover {
    background: #fff;
}

.doc-flow-steps > li > :is(button, .doc-flow-tab)[aria-selected="true"] {
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 1px var(--red), 0 14px 30px rgba(23, 21, 18, .1);
}

.doc-flow-steps > li > :is(button, .doc-flow-tab)[aria-selected="true"]::before {
    background: var(--red);
    color: #fff;
}

.doc-flow-steps > li > :is(button, .doc-flow-tab):focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.doc-flow-screen {
    position: sticky;
    top: calc(var(--topbar-height, 76px) + 24px);
    overflow: hidden;
    border: 1px solid rgba(23, 21, 18, .14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(23, 21, 18, .16);
}

.doc-flow-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee7da;
    background: #faf7f1;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.doc-flow-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e3dccf;
}

.doc-flow-bar span {
    margin-left: 10px;
}

.doc-flow-panel {
    padding: 26px;
}

.doc-flow-panel[hidden] {
    display: none;
}

.doc-flow-panel h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.doc-flow-panel > p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.doc-flow-rows {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-flow-rows li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #eee7da;
    border-radius: 12px;
    background: #fdfbf7;
    font-size: 14px;
}

.doc-flow-rows li i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f1ebe0;
    color: var(--ink);
}

.doc-flow-rows li i svg {
    width: 18px;
    height: 18px;
}

.doc-flow-rows li small {
    display: block;
    color: var(--muted);
    font-size: 12.5px;
}

.doc-flow-rows li.is-new {
    border-color: rgba(192, 38, 45, .4);
    background: #fff6f5;
}

.doc-flow-badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.doc-flow-extract {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
}

.doc-flow-doc {
    aspect-ratio: 210 / 297;
    padding: 16px 14px;
    border: 1px solid #e6dfd2;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 21, 18, .1);
}

.doc-flow-doc i {
    display: block;
    height: 6px;
    margin-bottom: 7px;
    border-radius: 3px;
    background: #ece6dc;
}

.doc-flow-doc i.is-hit {
    background: rgba(192, 38, 45, .28);
    outline: 1.5px solid var(--red);
    outline-offset: 2px;
}

.doc-flow-fields {
    display: grid;
    gap: 8px;
    margin: 0;
}

.doc-flow-fields div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #eee7da;
    border-radius: 10px;
    font-size: 14px;
}

.doc-flow-fields dt {
    color: var(--muted);
    font-size: 12.5px;
}

.doc-flow-fields dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.doc-flow-fields small {
    color: var(--green-deep);
    font-size: 12px;
    font-weight: 700;
}

.doc-flow-chain {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-flow-chain li {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.doc-flow-chain li + li::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 16px;
    height: 24px;
    border-left: 2px solid #e8e1d4;
}

.doc-flow-chain li > b:first-child {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1ebe0;
    font-size: 12px;
}

.doc-flow-chain li.is-done > b:first-child {
    background: var(--green-deep);
    color: #fff;
}

.doc-flow-chain li.is-now > b:first-child {
    background: #fff4e3;
    box-shadow: 0 0 0 2px #e39a2d;
}

.doc-flow-chain small {
    display: block;
    color: var(--muted);
    font-size: 12.5px;
}

.doc-flow-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #faf7f1;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.doc-flow-path {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13.5px;
}

.doc-flow-path span {
    padding: 5px 10px;
    border-radius: 8px;
    background: #f1ebe0;
}

.doc-flow-path span:last-child {
    background: var(--ink);
    color: #fff;
}

.doc-flow-versions li {
    grid-template-columns: 46px minmax(0, 1fr) auto;
}

.doc-flow-versions li > b {
    font-family: Fraunces, Georgia, serif;
}

.doc-flow-access {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.doc-flow-access span {
    padding: 5px 11px;
    border: 1px solid #e6dfd2;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
}

/* Feature cards. */
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--line, rgba(23, 21, 18, .1));
    border-radius: 18px;
    background: #fff;
}

.feature-card i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fbeceb;
    color: var(--red);
}

.feature-card i svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    margin: 6px 0 0;
    font-size: 18px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
}

.feature-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.feature-card-chips > span {
    padding: 4px 10px;
    border-radius: 999px;
    background: #f5efe5;
    font-size: 12.5px;
    font-weight: 600;
}

/* Text columns divided by lines. */
.text-columns-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 5), minmax(0, 1fr));
    border-top: 1px solid var(--line, rgba(23, 21, 18, .12));
}

.text-column {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 26px 22px 6px 0;
}

.text-column + .text-column {
    padding-left: 22px;
    border-left: 1px solid var(--line, rgba(23, 21, 18, .12));
}

.text-column h3 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 22px;
    font-weight: 600;
}

.text-column p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
}

/* Linked services in a dark band. */
.service-links-band {
    padding: 40px;
    border-radius: 26px;
    background: #1c1a17;
    color: #fff;
}

.service-links-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
}

.service-links-head h2 {
    margin: 10px 0 0;
    color: #fff;
}

.service-links-head h2 em {
    font-style: italic;
    color: #ff8a8f;
}

.service-links-head p {
    margin: 0;
    color: rgba(255, 255, 255, .66);
    line-height: 1.7;
}

.service-links-grid {
    display: grid;
    grid-template-columns: repeat(var(--links, 3), minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.service-link {
    position: relative;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    transition: background-color .2s ease, border-color .2s ease;
}

a.service-link:hover {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .08);
}

.service-link small {
    color: #f6c37d;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.service-link b {
    font-size: 18px;
}

.service-link > span {
    color: rgba(255, 255, 255, .64);
    font-size: 14px;
    line-height: 1.6;
}

.service-link + .service-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -15px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff8a8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E");
}

@media (max-width: 980px) {
    .doc-flow .head,
    .feature-cards .head,
    .text-columns .head,
    .flow-hero-grid,
    .service-links-head {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .doc-flow-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .flow-hero-cards {
        margin: 12px 0 0;
    }

    /* On a narrow screen the screen of a step stands under the chosen step (moved there by site.js). */
    .doc-flow-screen {
        position: static;
        margin-top: 8px;
    }

    .feature-cards-grid,
    .service-links-grid {
        grid-template-columns: 1fr;
    }

    .text-columns-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .text-column,
    .text-column + .text-column {
        padding: 22px 18px 18px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line, rgba(23, 21, 18, .12));
    }

    .service-link + .service-link::before {
        display: none;
    }

    .service-links-band {
        padding: 28px 22px;
    }
}

@media (max-width: 640px) {
    .flow-hero-card:nth-child(2),
    .flow-hero-card:nth-child(3) {
        margin-left: 0;
    }

    .flow-hero-cards::before {
        display: none;
    }

    .doc-flow-extract {
        grid-template-columns: 1fr;
    }

    .doc-flow-doc {
        max-width: 150px;
    }

    .doc-flow-fields div {
        grid-template-columns: 1fr auto;
    }

    .doc-flow-fields dt {
        grid-column: 1 / -1;
    }

    .text-columns-grid {
        grid-template-columns: 1fr;
    }

    .doc-flow-panel {
        padding: 18px;
    }
}

/* Document flow, screens of the data extraction: how sure the engine is, the correction, the rules and the export. */
.doc-flow-fields--confidence div {
    grid-template-columns: 110px minmax(0, 1fr) 96px;
}

.doc-flow-conf {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.doc-flow-conf i {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--green-deep) var(--p), #ece6dc var(--p));
}

.doc-flow-conf.is-low {
    color: #b8731a;
}

.doc-flow-conf.is-low i {
    background: linear-gradient(90deg, #e39a2d var(--p), #ece6dc var(--p));
}

.doc-flow-correct {
    display: grid;
    gap: 14px;
}

.doc-flow-snippet {
    position: relative;
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #e6dfd2;
    border-radius: 12px;
    background: repeating-linear-gradient(0deg, #fbf8f2 0 22px, #f4efe6 22px 23px);
    font-family: "Courier New", monospace;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .04em;
}

.doc-flow-snippet small {
    position: absolute;
    top: 8px;
    left: 12px;
    color: var(--muted);
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.doc-flow-snippet span {
    margin-top: 12px;
    padding: 0 4px;
    border-radius: 4px;
    outline: 2px solid #e39a2d;
    outline-offset: 3px;
}

.doc-flow-read {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.doc-flow-read div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #eee7da;
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
}

.doc-flow-read b {
    color: var(--ink);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.doc-flow-read s {
    color: #b8731a;
    text-decoration-thickness: 2px;
}

.doc-flow-read .is-fixed {
    border-color: rgba(37, 140, 57, .4);
    background: #f2faf3;
}

.doc-flow-rules li {
    grid-template-columns: 26px minmax(0, 1fr) auto;
}

.doc-flow-rules li > b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green-deep);
    color: #fff;
    font-size: 13px;
}

.doc-flow-rules li.is-fail {
    border-color: rgba(227, 154, 45, .5);
    background: #fff8ec;
}

.doc-flow-rules li.is-fail > b {
    background: #e39a2d;
}

.doc-flow-formats {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 12px;
    padding: 3px;
    border: 1px solid #e6dfd2;
    border-radius: 999px;
}

.doc-flow-formats button {
    padding: 5px 12px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.doc-flow-formats button[aria-pressed="true"] {
    background: var(--ink);
    color: #fff;
}

.doc-flow-formats button:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

.doc-flow-code {
    margin: 0;
    padding: 16px 18px;
    overflow-x: auto;
    border-radius: 12px;
    background: #1c1a17;
    color: #e9e2d4;
    font-family: "Courier New", monospace;
    font-size: 13px;
    line-height: 1.6;
}

.doc-flow-code em {
    font-style: normal;
    color: #f6c37d;
}

.doc-flow-code b {
    font-weight: 400;
    color: #9fd8a9;
}

.doc-flow-table {
    overflow-x: auto;
    border: 1px solid #eee7da;
    border-radius: 12px;
}

.doc-flow-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.doc-flow-table th,
.doc-flow-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #eee7da;
    text-align: left;
}

.doc-flow-table th {
    background: #faf7f1;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.doc-flow-table tr.is-new td {
    background: #fff6f5;
    font-weight: 700;
}

[data-doc-flow-view][hidden] {
    display: none;
}

@media (max-width: 640px) {
    .doc-flow-fields--confidence div {
        grid-template-columns: 1fr 96px;
    }

    .doc-flow-conf {
        grid-template-columns: 44px auto;
    }

    .doc-flow-read {
        grid-template-columns: 1fr;
    }

    .doc-flow-snippet {
        font-size: 20px;
    }
}
