@font-face {
    font-family: "Spezia";
    src: url("../fonts/SpeziaWeb-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Spezia";
    src: url("../fonts/SpeziaWeb-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Spezia Mono";
    src: url("../fonts/SpeziaMonoWeb-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --dze-content-max: 1280px;
    --dze-gutter: clamp(20px, 5vw, 80px);
    --dze-font-text: "Spezia", sans-serif;
    --dze-font-mono: "Spezia Mono", monospace;
    --dze-header-height: 50svh;
    --dze-logo-width: min(1280px, calc(100vw - 40px));
    --dze-header-overlap: 0px;
    --dze-instagram-progress: 0;
    --dze-black: #000;
    --dze-grey: #999;
    --dze-white: #fff;
}

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

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--dze-white);
    color: var(--dze-black);
    font-family: var(--dze-font-text);
    font-weight: 400;
}

h1,
h3,
h4,
h5,
h6 {
    font-family: var(--dze-font-text);
    font-weight: 600;
}

h2,
.wp-block-heading  {
    font-family: var(--dze-font-mono);
    font-weight: 600;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* Text links: black reveal from right to left. */
a:not(.wp-block-button__link):not(.instagram-link) {
    padding-inline: .2em;
    background-image: linear-gradient(var(--dze-black), var(--dze-black));
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 0% 100%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    color: inherit;
    transition:
        background-size 650ms cubic-bezier(.65, 0, .35, 1),
        color 140ms ease;
}

a:not(.wp-block-button__link):not(.instagram-link):hover,
a:not(.wp-block-button__link):not(.instagram-link):focus-visible {
    background-size: 100% 100%;
    color: var(--dze-white);
    transition-delay: 0ms, 220ms;
}

.dze-content-width {
    width: min(calc(100% - var(--dze-gutter) - var(--dze-gutter)), var(--dze-content-max));
    margin-inline: auto;
}

.hero-top {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    width: 100%;
    height: var(--dze-header-height);
    background: var(--dze-white);
}

.dze-logo-wrap {
    position: fixed;
    top: 25svh;
    left: 50%;
    width: var(--dze-logo-width);
    transform: translate(-50%, -50%);
    will-change: top, left, width;
}

.dze-logo-wrap svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.dze-logo-wrap svg > g:nth-of-type(2) {
    clip-path: inset(0 0 0 100%);
    animation: dze-print-top 1.4s cubic-bezier(.65, 0, .35, 1) forwards;
}

@keyframes dze-print-top {
    to {
        clip-path: inset(0);
    }
}

.instagram-link {
    position: absolute;
    top: 50%;
    right: var(--dze-gutter);
    display: grid;
    width: 22px;
    height: 22px;
    color: var(--dze-black);
    opacity: var(--dze-instagram-progress);
    transform: translateY(-50%) scale(calc(.8 + var(--dze-instagram-progress) * .2));
    pointer-events: none;
}

.instagram-link svg {
    width: 100%;
    height: 100%;
}

.instagram-link rect,
.instagram-link circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.instagram-link .instagram-dot {
    fill: currentColor;
    stroke: none;
}

.hero-top.is-compact .instagram-link {
    pointer-events: auto;
}

.hero {
    min-height: 100svh;
    padding-top: 50svh;
}

.hero-bottom {
    --dze-vertical-padding: clamp(40px, 7vw, 80px);
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 50svh;
    padding: calc(var(--dze-vertical-padding) + var(--dze-header-overlap)) var(--dze-gutter) var(--dze-vertical-padding);
    background: var(--dze-black);
    color: var(--dze-white);
}

.hero-description {
    width: 100%;
    max-width: var(--dze-content-max);
    margin: 0;
    font-family: var(--dze-font-mono);
    font-weight: 600;
    font-size: clamp(18px, min(2.8vw, 4.2svh), 34px);
    line-height: 1.45;
}

.page-content {
    position: relative;
    z-index: 1;
    background: var(--dze-white);
}

.page-content > :not(.alignfull) {
    width: min(calc(100% - var(--dze-gutter) - var(--dze-gutter)), var(--dze-content-max));
    margin-inline: auto;
}

/* Native WordPress Gallery block with the additional class: dze-carousel. */
.page-content .dze-carousel {
    position: relative;
    display: block;
    width: 100%;
    max-width: var(--dze-content-max);
    aspect-ratio: 3 / 2;
    margin: 0 auto;
    overflow: hidden;
    background: var(--dze-grey);
}

@media (min-width: 1281px) {
    .page-content .dze-carousel {
        margin-top: 60px;
    }
}

.dze-carousel > .wp-block-image,
.dze-carousel > figure.wp-block-image {
    position: absolute !important;
    inset: 0;
    z-index: 0;
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
}

.dze-carousel > .wp-block-image.is-active,
.dze-carousel > figure.wp-block-image.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

.dze-carousel .wp-block-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.dze-carousel .wp-block-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dze-carousel figcaption {
    display: none;
}

/* Certification and paper accordions. */
.dze-certification {
    display: grid;
    grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
    padding-block: clamp(70px, 8vw, 120px);
}

.dze-certification .dze-certification__badge {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}

.dze-certification__badge img {
    width: 100%;
    height: auto;
}

.dze-certification__text {
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.45;
}

.dze-certification__text > p    {
    margin-top: clamp(15px, 1.25vw, 18px);
}

.dze-certification__text > :first-child {
    margin-top: 0;
}

.dze-certification__text > :last-child {
    margin-bottom: 0;
}

.dze-papers {
    margin-bottom: clamp(60px, 8vw, 120px);
}

.dze-papers .dze-accordion {
    margin: 0;
    border: 1px solid var(--dze-grey);
}

.dze-papers .dze-accordion + .dze-accordion {
    margin-top: -1px;
}

.dze-papers.is-animating .dze-accordion > summary,
.dze-accordion.is-animating > summary {
    pointer-events: none;
}

.dze-accordion.is-animating {
    overflow: hidden;
}

.dze-accordion > summary {
    position: relative;
    display: flex;
    min-height: clamp(72px, 7vw, 105px);
    padding: 24px clamp(18px, 2vw, 32px);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    font-size: clamp(17px, 1.55vw, 23px);
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
    list-style: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.dze-accordion > summary::-webkit-details-marker {
    display: none;
}

.dze-accordion > summary::after {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: url("../images/accordion-arrow.svg") center / contain no-repeat;
    mask: url("../images/accordion-arrow.svg") center / contain no-repeat;
    transform: rotate(0deg);
    transition: transform 420ms cubic-bezier(.65, 0, .35, 1);
}

.dze-accordion:not([open]) > summary:hover {
    background: var(--dze-grey);
    color: var(--dze-white);
}

.dze-accordion[open] > summary {
    background: var(--dze-black);
    color: var(--dze-white);
}

.dze-accordion[open] > summary::after {
    transform: rotate(180deg);
}

.dze-accordion.is-closing > summary::after {
    transform: rotate(0deg);
}

.dze-accordion .dze-accordion__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 7vw, 110px);
    margin: 0;
    padding: clamp(36px, 4.5vw, 68px) clamp(18px, 2vw, 32px);
}

.dze-accordion__content > .wp-block-column {
    min-width: 0;
}

.dze-accordion__content p {
    margin-top: 0;
    font-size: clamp(16px, 1.55vw, 24px);
    line-height: 1.55;
}

.dze-paper-list {
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.35;
}

.dze-paper-accordion__content.is-list-only .dze-paper-list {
    grid-column: 1 / -1;
}

.dze-paper-accordion__content.is-list-only .dze-paper-list ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 7vw, 110px);
}

.dze-paper-list ul {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.dze-paper-list ul:last-child {
    margin-bottom: 0;
}

.dze-paper-list__title {
    margin: 28px 0 10px;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
}

.dze-paper-list__title:first-child {
    margin-top: 0;
}

.dze-paper-list li {
    padding: 6px 0;
}

.dze-paper-list li:first-child {
    padding-top: 0;
}

.dze-paper-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dze-paper-list p {
    margin: 0 0 24px;
    font-size: inherit;
    line-height: inherit;
}

.dze-paper-list p:last-child {
    margin-bottom: 0;
}

.dze-paper-list .dze-paper-list__empty {
    margin: 0;
    color: var(--dze-grey);
}

/* Price-list button: black reveal from right to left. */
.dze-price-button-wrap {
    display: flex;
    justify-content: center;
    margin-block: clamp(60px, 8vw, 120px);
}

.dze-price-button .wp-block-button__link {
    min-width: clamp(210px, 18vw, 260px);
    padding: 18px 28px;
    border: 0;
    border-radius: 3px;
    background-color: var(--dze-grey);
    background-image: linear-gradient(var(--dze-black), var(--dze-black));
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 0% 100%;
    color: var(--dze-white);
    font-family: var(--dze-font-mono);
    font-size: clamp(17px, 1.4vw, 21px);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: background-size 650ms cubic-bezier(.65, 0, .35, 1);
}

.dze-price-button .wp-block-button__link:hover,
.dze-price-button .wp-block-button__link:focus-visible {
    background-size: 100% 100%;
    color: var(--dze-white);
}

/* Contact form and map. */
.dze-contact-section {
    padding: 0 0 clamp(60px, 8vw, 120px);
}

.dze-contact-title {
    margin: 0 0 clamp(32px, 4vw, 60px);
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1;
    text-transform: lowercase;
}

.dze-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 5vw, 80px);
    align-items: stretch;
}

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

.dze-form-field {
    display: grid;
    gap: 8px;
}

.dze-form-field label {
    font-size: 13px;
    font-weight: 600;
}

.dze-form-field input,
.dze-form-field textarea {
    width: 100%;
    border: 1px solid var(--dze-black);
    border-radius: 0;
    background: #e7e7e7;
    color: var(--dze-black);
    font: inherit;
}

.dze-form-field input {
    min-height: 48px;
    padding: 10px 12px;
}

.dze-form-field textarea {
    min-height: 180px;
    padding: 12px;
    resize: vertical;
}

.dze-form-field input:focus,
.dze-form-field textarea:focus {
    outline: none;
}

.dze-contact-submit {
    width: min(220px, 100%);
    min-height: 52px;
    padding: 12px 24px;
    border: 0;
    border-radius: 3px;
    background-color: var(--dze-grey);
    background-image: linear-gradient(var(--dze-black), var(--dze-black));
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 0% 100%;
    color: var(--dze-white);
    cursor: pointer;
    font: inherit;
    font-family: var(--dze-font-mono);
    font-weight: 600;
    font-size: clamp(17px, 1.4vw, 21px);
    transition: background-size 650ms cubic-bezier(.65, 0, .35, 1);
}

.dze-contact-submit:hover,
.dze-contact-submit:focus-visible {
    background-size: 100% 100%;
}

.dze-contact-submit:disabled {
    cursor: wait;
    opacity: .65;
}

.dze-form-status {
    min-height: 1.4em;
    margin: 0;
    font-size: 14px;
}

.dze-form-status.is-success {
    font-weight: 600;
}

.dze-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.dze-turnstile-widget {
    min-height: 0;
}

.dze-map {
    min-height: 100%;
}

.dze-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    border: 1px solid var(--dze-black);
}

/* Footer. */
.site-footer {
    min-height: clamp(260px, 24vw, 360px);
    padding-block: clamp(60px, 7vw, 100px);
    background: var(--dze-black);
    color: var(--dze-white);
}

.site-footer__logo {
    width: clamp(200px, 15vw, 300px);
    margin: 0 0 40px;
}

.site-footer__logo svg {
    width: 100%;
    height: auto;
}

.site-footer__logo svg > g:nth-of-type(2) {
    clip-path: inset(0 0 0 100%);
}

.site-footer__logo.is-visible svg > g:nth-of-type(2) {
    animation: dze-print-top 1.4s cubic-bezier(.65, 0, .35, 1) forwards;
}

.site-footer__address {
    margin: 0;
    font-size: clamp(13px, 1vw, 15px);
    font-style: normal;
    line-height: 1.45;
}

.site-main {
    padding-block: 120px;
}

@media (min-width: 1200px) and (max-height: 750px) {
    .hero-description {
        font-size: clamp(18px, min(2.4vw, 3.8svh), 34px);
        line-height: 1.35;
    }
}

@media (max-height: 550px) {
    .hero-bottom {
        --dze-vertical-padding: 25px;
    }

    .hero-description {
        font-size: clamp(16px, 3.5svh, 24px);
        line-height: 1.3;
    }
}

@media (max-width: 767px) {
    .instagram-link {
        width: 20px;
        height: 20px;
    }

    .dze-certification {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .dze-certification .dze-certification__badge {
        max-width: 180px;
    }

    .dze-accordion .dze-accordion__content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .dze-paper-accordion__content.is-list-only .dze-paper-list ul {
        grid-template-columns: 1fr;
    }

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

    .dze-map iframe {
        min-height: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dze-logo-wrap svg > g:nth-of-type(2) {
        animation: none;
        clip-path: inset(0);
    }

    .site-footer__logo svg > g:nth-of-type(2) {
        animation: none;
        clip-path: inset(0);
    }

    .dze-carousel > .wp-block-image,
    .dze-carousel > figure.wp-block-image {
        transition: none;
    }

    .dze-accordion > summary::after {
        transition: none;
    }

    .dze-price-button .wp-block-button__link {
        transition: none;
    }

    .dze-contact-submit {
        transition: none;
    }

    a:not(.wp-block-button__link):not(.instagram-link) {
        transition: none;
    }
}
