/* Fiadenta – kiln black and porcelain, with the red of the logo.
   Cormorant Infant (display) and Alegreya Sans (text), both SIL OFL, cut to Latin and Cyrillic. */

@font-face {
    font-family: "Cormorant Infant";
    src: url("/fonts/cormorant-infant.woff2") format("woff2");
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Infant";
    src: url("/fonts/cormorant-infant-italic.woff2") format("woff2");
    font-weight: 500 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Alegreya Sans";
    src: url("/fonts/alegreya-sans-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Alegreya Sans";
    src: url("/fonts/alegreya-sans-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --night: #0e0c0c;
    --night-2: #1a1616;
    --night-3: #2a2322;
    --porcelain: #f6f1e8;
    --sheet: #fffdf9;
    --enamel: #ebe2d3;
    --dentin: #d9c9ad;
    --ink: #1b1616;
    --muted: #5a504b;
    --line: #ddd2c2;
    --red: #c00000;
    --red-deep: #9e0d0d;
    --red-lit: #ff7a6e;
    --on-dark: #f4eee4;
    --on-dark-muted: #c9bfb2;
    --display: "Cormorant Infant", "Cormorant Garamond", Georgia, serif;
    --text: "Alegreya Sans", "Segoe UI", Arial, sans-serif;
    --radius: 22px;
    --wrap: 1180px;
    --menu-fg: var(--on-dark);
    --menu-focus: var(--red-lit);
    --lb-bg: rgba(14, 12, 12, 0.96);
    --lb-accent: #ff7a6e;
    --lb-accent-soft: rgba(255, 122, 110, 0.18);
}

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

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

body {
    margin: 0;
    background: var(--porcelain);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.125rem;
    line-height: 1.6;
    font-variant-numeric: lining-nums;
    overflow-x: hidden;
}

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

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

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

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

.dark :focus-visible,
.top :focus-visible,
.foot :focus-visible {
    outline-color: var(--red-lit);
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem);
}

h2 {
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
}

h3 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

p {
    margin: 0 0 1em;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

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

.skip:focus {
    top: 12px;
}

.eyebrow {
    display: block;
    margin-bottom: 14px;
    font-family: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-deep);
}

.dark .eyebrow {
    color: var(--red-lit);
}

.lead {
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
    line-height: 1.5;
    max-width: 60ch;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(14, 12, 12, 0.88);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    color: var(--on-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    min-height: 68px;
    padding-block: 8px;
}

.brand {
    flex: none;
    margin-right: auto;
}

.brand img {
    width: auto;
    height: 56px;
}

.call {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.call:hover {
    background: #a80000;
    transform: translateY(-1px);
}

.lang {
    order: 3;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.95rem;
    font-weight: 700;
}

.lang a,
.lang span {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 999px;
    color: var(--on-dark);
    text-decoration: none;
}

.lang [aria-current] {
    color: var(--on-dark-muted);
}

.lang a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    order: 4;
}

.nav {
    order: 1;
    display: flex;
    gap: 2px;
}

.nav a {
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--on-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav a[aria-current] {
    color: #fff;
    box-shadow: inset 0 -2px 0 var(--red-lit);
    border-radius: 0;
}

@media (max-width: 1180px) {
    .nav {
        order: 5;
        flex-basis: 100%;
        justify-content: center;
        margin-top: -4px;
    }
}

/* ---- menu: /js/menu.js folds the navigation behind a button on a phone ---- */

.menu-toggle {
    display: none;
}

@media (max-width: 900px) {
    .has-menu .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        min-height: 44px;
        padding: 0 14px;
        border: 2px solid currentColor;
        border-radius: 999px;
        background: var(--menu-bg, transparent);
        color: var(--menu-fg, inherit);
        font: inherit;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
    }

    .has-menu .menu-toggle:focus-visible {
        outline: 3px solid var(--menu-focus, currentColor);
        outline-offset: 3px;
    }

    .has-menu .menu-nav:not(.is-open) {
        display: none;
    }

    .has-menu .menu-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-basis: 100%;
        width: 100%;
        margin-inline: 0;
        gap: 2px;
        padding-block: 6px 4px;
        background: var(--menu-panel, none);
    }

    .has-menu .menu-nav.is-open a {
        padding-block: 12px;
    }

    .has-menu .menu-nav.is-open a[aria-current] {
        box-shadow: inset 3px 0 0 var(--red-lit);
        padding-left: 16px;
    }
}

@media (max-width: 520px) {
    .has-menu .menu-toggle {
        justify-content: center;
        width: 44px;
        padding: 0;
    }

    .menu-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-bars {
    position: relative;
}

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

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

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

.menu-toggle[aria-expanded="true"] .menu-bars {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

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

    .brand img {
        height: 40px;
    }

    .call {
        padding: 0 12px;
        font-size: 0.98rem;
    }

    .call svg {
        display: none;
    }

    .lang [aria-current] {
        display: none;
    }
}

@media (max-width: 400px) {
    .brand img {
        height: 34px;
    }

    .call {
        padding: 0 10px;
        font-size: 0.92rem;
    }
}

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

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

.btn:hover {
    background: #a80000;
    border-color: #a80000;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--porcelain);
}

.dark .btn-ghost {
    color: var(--on-dark);
    border-color: rgba(244, 238, 228, 0.55);
}

.dark .btn-ghost:hover {
    background: var(--on-dark);
    color: var(--night);
}

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

/* ---- sections ---- */

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

.band-tight {
    padding-block: clamp(36px, 5vw, 64px);
}

.sheet-band {
    background: var(--sheet);
}

.enamel-band {
    background: var(--enamel);
}

.dark {
    background: var(--night);
    color: var(--on-dark);
}

.dark a:not(.btn):not(.call) {
    color: var(--on-dark);
}

.dark p {
    color: var(--on-dark);
}

.dark .muted {
    color: var(--on-dark-muted);
}

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

.section-head {
    display: grid;
    gap: 6px 40px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

@media (min-width: 860px) {
    .section-head {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

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

.prose {
    max-width: 68ch;
}

.prose p {
    font-size: 1.15rem;
}

.prose .claim {
    font-family: var(--display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
    line-height: 1.15;
    color: var(--red-deep);
    margin: 0.8em 0;
}

.dark .prose .claim {
    color: var(--red-lit);
}

/* ---- home: hero with the before/after slider in the oval of the logo ---- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 78% 45%, rgba(235, 226, 211, 0.16), transparent 70%),
        radial-gradient(40% 50% at 10% 100%, rgba(192, 0, 0, 0.22), transparent 70%),
        var(--night);
    color: var(--on-dark);
    padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px);
}

.hero-grid {
    display: grid;
    gap: 44px;
    align-items: center;
}

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

.hero h1 {
    font-size: clamp(2.7rem, 1.5rem + 5vw, 5.6rem);
    line-height: 0.98;
}

.hero h1 em {
    display: block;
    color: var(--red-lit);
    font-weight: 600;
}

.hero .lead {
    color: var(--on-dark-muted);
}

.hero-visual {
    position: relative;
    padding: clamp(18px, 4vw, 40px);
}

.oval {
    position: absolute;
    inset: -4% -6%;
    width: 112%;
    height: 108%;
    pointer-events: none;
    overflow: visible;
}

.oval ellipse {
    fill: none;
    stroke-linecap: round;
}

.oval .o-white {
    stroke: rgba(244, 238, 228, 0.75);
    stroke-width: 3;
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    animation: draw 2.2s cubic-bezier(0.6, 0, 0.2, 1) 0.2s forwards;
}

.oval .o-red {
    stroke: var(--red);
    stroke-width: 7;
    stroke-dasharray: 260 1800;
    stroke-dashoffset: 260;
    animation: draw-red 1.4s cubic-bezier(0.6, 0, 0.2, 1) 1.6s forwards;
}

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

@keyframes draw-red {
    to {
        stroke-dashoffset: -120;
    }
}

/* the compare figure: two photos of one case, the "after" clipped from --pos */

.compare {
    position: relative;
    margin: 0;
    max-width: 466px;
    margin-inline: auto;
}

.cmp-stage {
    --pos: 50%;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
    aspect-ratio: 466 / 329;
    background: var(--night-2);
}

.cmp-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cmp-after {
    position: absolute;
    inset: 0;
    clip-path: inset(0 0 0 var(--pos));
}

.cmp-stage::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 3px;
    margin-left: -1.5px;
    background: var(--sheet);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.cmp-knob {
    position: absolute;
    top: 50%;
    left: var(--pos);
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    background: var(--sheet);
    color: var(--red);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    z-index: 2;
}

.cmp-tag {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(14, 12, 12, 0.78);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    pointer-events: none;
}

.cmp-tag-b {
    left: 12px;
}

.cmp-tag-a {
    right: 12px;
    background: var(--red);
}

.cmp-range {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    touch-action: pan-y;
}

.compare.is-live .cmp-stage:has(.cmp-range:focus-visible) {
    outline: 3px solid var(--red-lit);
    outline-offset: 4px;
}

.compare figcaption {
    margin-top: 14px;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--on-dark-muted);
}

.cmp-cases {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.cmp-cases[hidden] {
    display: none;
}

.cmp-cases button {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(244, 238, 228, 0.4);
    border-radius: 999px;
    background: transparent;
    color: var(--on-dark);
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.cmp-cases button[aria-pressed="true"] {
    background: var(--on-dark);
    color: var(--night);
    border-color: var(--on-dark);
}

.cmp-cases button:hover {
    border-color: var(--on-dark);
}

/* ---- materials: a strip that runs sideways ---- */

.materials {
    background: var(--red);
    color: #fff;
    overflow: hidden;
    padding-block: 16px;
    border-block: 1px solid rgba(0, 0, 0, 0.2);
}

.materials ul {
    display: flex;
    gap: 0;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: run 46s linear infinite;
}

.materials li {
    padding-inline: 26px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    white-space: nowrap;
}

.materials li::after {
    content: "◦";
    margin-left: 52px;
    opacity: 0.7;
}

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

/* ---- products: a bento of five ---- */

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

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

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

    .bento li:nth-child(1),
    .bento li:nth-child(2) {
        grid-column: span 3;
    }

    .bento li:nth-child(n + 3) {
        grid-column: span 2;
    }
}

.p-card {
    position: relative;
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 18px;
    align-items: start;
    height: 100%;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.p-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(27, 22, 22, 0.12);
    border-color: var(--dentin);
}

.p-card img {
    width: 116px;
    height: 116px;
    object-fit: cover;
    border-radius: 16px;
}

.bento li:nth-child(-n + 2) .p-card {
    grid-template-columns: 1fr 160px;
}

.bento li:nth-child(-n + 2) .p-card img {
    order: 2;
    width: 160px;
    height: 160px;
}

.p-card h3 {
    margin-bottom: 0.25em;
}

.p-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.p-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
}

.p-card p {
    margin: 0 0 0.6em;
    font-size: 1.02rem;
}

.mat {
    font-size: 0.78rem !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--red-deep);
}

@media (max-width: 520px) {
    .p-card,
    .bento li:nth-child(-n + 2) .p-card {
        grid-template-columns: 88px 1fr;
        gap: 14px;
        padding: 16px;
    }

    .p-card img,
    .bento li:nth-child(-n + 2) .p-card img {
        order: 0;
        width: 88px;
        height: 88px;
        border-radius: 12px;
    }
}

/* ---- since 1995: the large figure ---- */

.since {
    display: grid;
    gap: 30px;
    align-items: center;
}

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

.big-year {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(6rem, 3rem + 13vw, 14rem);
    line-height: 0.8;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, var(--sheet) 0%, var(--dentin) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.big-year small {
    display: block;
    margin-top: 14px;
    font-family: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red-lit);
    -webkit-text-fill-color: var(--red-lit);
}

.lab-strip {
    display: grid;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.lab-strip img {
    width: 100%;
    max-width: 467px;
    border-radius: 10px;
}

/* ---- smiles: portraits by the lab's photographer, in a sideways strip ---- */

.smiles {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 4px 16px 18px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

@media (min-width: 1212px) {
    .smiles {
        padding-inline: calc((100% - var(--wrap)) / 2);
    }
}

.smiles li {
    flex: none;
    scroll-snap-align: start;
}

.smiles img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
    transition: transform 0.3s ease;
}

.smiles a:hover img {
    transform: scale(1.04) rotate(-1.5deg);
}

.smiles li:nth-child(even) {
    margin-top: 36px;
}

/* ---- equipment: a numbered trail ---- */

.trail {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    border-top: 1px solid rgba(244, 238, 228, 0.18);
}

.trail li {
    counter-increment: step;
    border-bottom: 1px solid rgba(244, 238, 228, 0.18);
}

.trail a {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 6px 20px;
    align-items: baseline;
    padding: 22px 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, padding 0.2s ease;
}

.trail a::before {
    content: counter(step, decimal-leading-zero);
    grid-row: span 2;
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--red-lit);
}

.trail a:hover {
    background: rgba(244, 238, 228, 0.05);
    padding-left: 16px;
}

.trail strong {
    font-family: var(--display);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
    line-height: 1.1;
}

.trail strong small {
    font-family: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
    margin-left: 8px;
    white-space: nowrap;
}

.trail span {
    color: var(--on-dark-muted);
}

@media (min-width: 900px) {
    .trail a {
        grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr);
    }

    .trail a::before {
        grid-row: auto;
    }
}

/* ---- quotes ---- */

.quote {
    margin: 0;
    max-width: 980px;
}

.quote p {
    font-family: var(--display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.3rem);
    line-height: 1.12;
}

.quote p::before {
    content: "„";
    color: var(--red);
}

.quote p::after {
    content: "“";
    color: var(--red);
}

:lang(en) .quote p::before {
    content: "“";
}

:lang(en) .quote p::after {
    content: "”";
}

.quote footer {
    font-weight: 700;
    letter-spacing: 0.06em;
}

.reviews {
    columns: 3 320px;
    column-gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reviews li {
    break-inside: avoid;
    margin-bottom: 18px;
}

.review {
    margin: 0;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.review blockquote {
    margin: 0 0 16px;
}

.review blockquote p {
    font-size: 1.06rem;
}

.review blockquote p:last-child {
    margin-bottom: 0;
}

.review figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.review figcaption img,
.review .initial {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.review .initial {
    display: grid;
    place-items: center;
    background: var(--red);
    color: #fff;
    font-family: var(--display);
    font-size: 1.6rem;
}

.review figcaption small {
    display: block;
    font-weight: 400;
    color: var(--muted);
}

.review details summary {
    cursor: pointer;
    color: var(--red-deep);
    font-weight: 700;
    margin-bottom: 10px;
}

/* ---- page hero (inner pages) ---- */

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(50% 80% at 90% 10%, rgba(235, 226, 211, 0.14), transparent 70%),
        var(--night);
    color: var(--on-dark);
    padding-block: clamp(36px, 6vw, 80px);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -60px;
    width: 520px;
    height: 330px;
    border: 3px solid rgba(244, 238, 228, 0.14);
    border-radius: 50%;
    transform: rotate(-14deg);
    pointer-events: none;
}

.page-hero h1 {
    max-width: 18ch;
}

.page-hero .lead {
    color: var(--on-dark-muted);
}

.ph-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 30px;
    align-items: center;
}

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

.ph-photo {
    margin: 0;
}

.ph-photo img {
    border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    color: var(--on-dark-muted);
}

.crumbs li + li::before {
    content: "/";
    margin-right: 6px;
    opacity: 0.6;
}

.crumbs a {
    color: var(--on-dark) !important;
}

/* ---- product and equipment pages ---- */

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

@media (min-width: 960px) {
    .split {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 70px;
    }
}

.side-card {
    align-self: start;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.side-card h2 {
    font-size: 1.7rem;
}

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

.chips li {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--enamel);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.chips a {
    color: var(--ink);
    text-decoration: none;
}

.chips a[aria-current] {
    color: var(--red-deep);
}

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

.others a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--enamel);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.others a::after {
    content: "→";
    color: var(--red-deep);
}

.others a:hover {
    background: var(--dentin);
}

/* ---- cases: before / after pairs ---- */

.cases {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case {
    margin: 0;
    padding: 10px 10px 14px;
    border-radius: 18px;
    background: var(--sheet);
    border: 1px solid var(--line);
}

.case-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.case-pair a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.case-pair img {
    width: 100%;
    aspect-ratio: 466 / 329;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-pair a:hover img {
    transform: scale(1.05);
}

.case-pair span {
    position: absolute;
    left: 6px;
    top: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(14, 12, 12, 0.8);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-pair a + a span {
    background: var(--red);
}

.case figcaption {
    margin-top: 10px;
    padding-inline: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

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

.gal-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(244, 238, 228, 0.4);
    color: var(--on-dark) !important;
    text-decoration: none;
    font-weight: 700;
}

.gal-nav a:hover {
    background: rgba(244, 238, 228, 0.1);
}

.gal-group + .gal-group {
    margin-top: clamp(48px, 6vw, 80px);
}

.gal-group h2 a {
    color: var(--ink);
    text-decoration-color: var(--red);
}

/* ---- documents: certificates ---- */

.docs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs figure {
    margin: 0;
}

.docs a {
    display: block;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.docs a:hover {
    transform: translateY(-3px) rotate(-0.6deg);
    box-shadow: 0 16px 32px rgba(27, 22, 22, 0.14);
}

.docs figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.docs figcaption strong {
    display: block;
}

/* ---- about ---- */

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

@media (min-width: 900px) {
    .pillars {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillars li {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--night-2);
    border: 1px solid rgba(244, 238, 228, 0.1);
}

.pillars strong {
    display: block;
    font-family: var(--display);
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 8px;
    color: var(--on-dark);
}

.portfolio {
    max-width: 466px;
    margin: 0;
}

.portfolio img {
    border-radius: 16px;
}

/* ---- contact ---- */

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

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

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

.big-phone {
    display: inline-block;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
    line-height: 1;
    color: var(--red-deep);
    text-decoration: none;
}

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

.contact-list dt {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

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

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b9ab98;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 1px;
}

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

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

.contact-sent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #e8f3e6;
    color: #1d3d1a;
}

.contact-form ul {
    margin: 4px 0 0;
    padding-left: 18px;
    color: var(--red-deep);
}

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

.call-band {
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
        var(--red);
    color: #fff;
}

.call-band .wrap {
    display: grid;
    gap: 20px;
    align-items: center;
    padding-block: clamp(40px, 6vw, 72px);
}

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

.call-band h2 {
    margin-bottom: 0.2em;
}

.call-band p {
    margin: 0;
    color: #fff;
}

.call-band .btn {
    background: var(--sheet);
    border-color: var(--sheet);
    color: var(--red-deep);
}

.call-band .btn:hover {
    background: var(--night);
    border-color: var(--night);
    color: #fff;
}

.call-band .btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.call-band .btns {
    margin: 0;
}

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

.foot {
    background: var(--night);
    color: var(--on-dark-muted);
    padding-top: clamp(48px, 6vw, 80px);
    font-size: 1rem;
}

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

.foot h2 {
    font-family: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--on-dark);
    margin: 0 0 12px;
}

.foot address {
    font-style: normal;
    margin-bottom: 22px;
}

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

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

    .foot-brand {
        grid-column: 1 / -1;
    }
}

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

    .foot-brand {
        grid-column: auto;
    }
}

.foot-logo {
    width: 200px;
    margin-bottom: 14px;
}

.foot-tag {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--on-dark);
    line-height: 1.2;
}

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

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

.badge {
    margin-top: 6px;
    border-radius: 6px;
}

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    margin-top: 44px;
    padding-block: 22px 28px;
    border-top: 1px solid rgba(244, 238, 228, 0.12);
    font-size: 0.92rem;
}

.foot-bottom p {
    margin: 0;
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background: var(--night);
    color: var(--on-dark);
    text-align: center;
}

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

.not-found img {
    margin: 0 auto 26px;
}

.not-found a:not(.btn) {
    color: var(--on-dark);
}

.not-found h2 {
    font-size: 2rem;
    margin-top: 40px;
}

/* ---- motion: reveal as the visitor scrolls ---- */

@supports (animation-timeline: view()) {
    .reveal {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 40%;
    }

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

.hero-copy > * {
    animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > *:nth-child(2) {
    animation-delay: 0.12s;
}

.hero-copy > *:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
}

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

    .oval .o-white,
    .oval .o-red {
        stroke-dashoffset: 0;
    }

    .oval .o-red {
        stroke-dashoffset: -120;
    }

    .materials ul {
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .materials li[data-dup] {
        display: none;
    }
}
/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

.h3 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

/* ---- equipment overview ---- */

.eq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eq-grid a {
    display: grid;
    gap: 6px;
    height: 100%;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--night-2);
    border: 1px solid rgba(244, 238, 228, 0.12);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.eq-grid a:hover {
    transform: translateY(-4px);
    border-color: var(--red-lit);
}

.eq-grid img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.eq-grid strong {
    font-family: var(--display);
    font-size: 1.8rem;
    line-height: 1.1;
}

.eq-grid span {
    color: var(--on-dark-muted);
}

.eq-grid .eq-maker {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red-lit);
}

.lab-strip {
    align-content: start;
}

.pillars + .prose {
    margin-top: 28px;
}
