:root {
    color-scheme: dark;
    --ink: #f9f1df;
    --muted: #e3d9c9;
    --night: #1a1109;
    --border-accent: #c0a273;
    --cream-color: #f6dcc0;
    --cream-background: url('../../uploads/images/app/qr-paper.svg'),
        radial-gradient(ellipse at 50% 30%, #fff0df, transparent 80%), var(--cream-color);
    --serif: 'Cormorant Garamond', 'Songti SC', Georgia, serif;
    --sans: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--night);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid #f2cf8e;
    outline-offset: 5px;
}

::selection {
    color: #21150c;
    background: #e7c68d;
}

.arrow-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    -webkit-mask: url('../../uploads/images/app/arrow.svg') center / contain no-repeat;
    mask: url('../../uploads/images/app/arrow.svg') center / contain no-repeat;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    padding: 12px 18px;
    background: var(--night);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.hero {
    position: relative;
    height: 43.15vw;
    min-height: 580px;
    max-height: 960px;
    isolation: isolate;
    overflow: hidden;
}

.hero-image, .hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    object-fit: cover;
    object-position: center;
}

.hero-shade {
    background: linear-gradient(90deg, rgb(16 12 12 / 27%) 0%, rgb(16 12 12 / 9%) 35%, transparent 62%), linear-gradient(0deg, rgb(26 17 9 / 15%), transparent 20%);
}

.masthead {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 23px 0 6%;
}

.brand {
    display: block;
    flex-shrink: 0;
    width: 240px;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto;
}

.language-switcher {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 3px;
    margin-top: -10px;
}

.language-link {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 180ms ease;
}

.language-link img {
    display: block;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    object-fit: cover;
    object-position: left center;
    box-shadow: 0 2px 10px rgb(0 0 0 / 12%);
}

.language-link:hover {
    transform: translateY(-3px);
}

.language-link[aria-current] img {
    outline: 1px solid rgb(255 243 214 / 55%);
    outline-offset: 3px;
}

.hero-copy {
    position: absolute;
    top: 27.2%;
    left: 6%;
    right: 5%;
    max-width: 730px;
    overflow-wrap: anywhere;
}

.hero-rule {
    display: block;
    width: 42px;
    height: 1px;
    margin-bottom: 11px;
    background: #b59b66;
}

h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(48px, 3.65vw, 76px);
    line-height: 1.04;
    font-weight: 400;
    letter-spacing: -.015em;
    text-shadow: 0 2px 20px rgb(24 15 10 / 16%);
}

h1 span, h1 em {
    display: block;
}

h1 em {
    font-weight: 400;
}

.hero-intro {
    max-width: 465px;
    margin: 27px 0 28px;
    color: #fbf5e9;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 400;
    text-shadow: 0 1px 14px rgb(0 0 0 / 65%);
}

.explore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 146px;
    min-height: 47px;
    padding: 12px 24px;
    border: 1px solid rgb(255 246 224 / 90%);
    border-radius: 30px;
    background: rgb(25 20 19 / 23%);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 200ms ease, color 200ms ease;
}

.explore-button .arrow-icon {
    width: 17px;
    height: 17px;
}

.explore-button:hover {
    background: var(--ink);
    color: var(--night);
}

.experiences {
    --service-overlap: clamp(64px, 7vw, 112px);
    --service-ink: #25190d;
    position: relative;
    z-index: 1;
    margin-top: calc(-1 * var(--service-overlap));
    padding: 0 28px 9px;
    scroll-margin-top: 14px;
}

.experiences::before {
    content: '';
    position: absolute;
    inset: var(--service-overlap) 0 0;
    z-index: -1;
    background: var(--cream-background);
    pointer-events: none;
}

.experiences:focus {
    outline: none;
}

.experience-grid {
    display: flex;
    --visible-cards: 6;
    --card-gap: 10px;
    gap: var(--card-gap);
    margin: -16px;
    padding: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: thin;
}

.experience-carousel {
    display: flow-root;
    position: relative;
}

.experience-grid:focus-visible {
    outline: 2px solid var(--service-ink);
    outline-offset: 3px;
}

.experience-grid.is-enhanced {
    scrollbar-width: none;
}

.experience-grid.is-enhanced::-webkit-scrollbar {
    display: none;
}

.carousel-arrow {
    position: absolute;
    top: 60px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--night);
    color: var(--ink);
    cursor: pointer;
    transform: translateY(-50%);
}

.carousel-arrow:hover {
    background: var(--ink);
    color: var(--night);
}

.carousel-previous {
    left: -20px;
}

.carousel-previous .arrow-icon {
    transform: rotate(180deg);
}

.carousel-next {
    right: -20px;
}

.carousel-playback {
    display: block;
    min-height: 44px;
    margin: 10px 0 0 auto;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--service-ink);
    font-size: 11px;
    cursor: pointer;
}

.carousel-arrow[hidden],
.carousel-playback[hidden] {
    display: none;
}

.experience-card {
    scroll-snap-align: start;
    flex: 0 0 calc((100% - (var(--visible-cards) - 1) * var(--card-gap)) / var(--visible-cards));
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #664b2d;
    border-radius: 16px;
    background: #291a10;
    color: var(--ink);
    box-shadow: inset 0 0 18px rgb(196 149 86 / 10%), 0 4px 15px rgb(0 0 0 / 12%);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.experience-card:first-child { margin-inline-start: auto; }
.experience-card:last-child { margin-inline-end: auto; }

.experience-card:hover,
.experience-card:focus-within {
    border-color: #fff8de;
    box-shadow: 0 0 0 1px #ffb03b, 0 0 10px 3px #ffb03b, 0 6px 24px rgb(165 80 5 / 32%);
}

.experience-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 237 / 122;
    object-fit: cover;
    flex: none;
}

.experience-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px 16px 6px;
    background: linear-gradient(145deg, #3b2517, #21150e);
}

.experience-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 37px;
    margin-bottom: 9px;
}

.service-icon {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    object-fit: contain;
    filter: brightness(0);
    opacity: .85;
}

.experience-card .service-icon {
    filter: brightness(0) invert(1) sepia(.35);
    opacity: 1;
}

.experience-heading > div {
    min-width: 0;
}

.experience-heading h3 {
    margin: 0 0 1px;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: .06em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.experience-subtitle {
    margin: 0;
    color: #e8c88e;
    font-size: 10px;
    line-height: 1.35;
    text-transform: uppercase;
}

.experience-description {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.45;
}

.card-arrow {
    padding: 0;
    color: #e8c88e;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    margin: auto auto 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.card-arrow .arrow-icon {
    width: 20px;
    height: 20px;
}

.card-arrow:hover {
    color: #25190d;
    background: #e8c88e;
    transform: translateX(3px);
}

.card-arrow:focus-visible {
    outline-color: #e8c88e;
}

@media (min-width: 1700px) {
    .experience-body {
        padding: 15px 20px 12px;
    }

    .experience-description {
        font-size: 14px;
        line-height: 1.55;
    }

    .experience-heading h3 {
        font-size: 21px;
    }

    .experience-subtitle {
        font-size: 11px;
    }

    .hero-intro {
        font-size: 17px;
        max-width: 520px;
    }

}

@media (min-width: 1280px) and (max-width: 1439px) {
    .experience-body {
        padding-inline: 11px;
    }

    .experience-heading {
        gap: 8px;
    }

    .service-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .experience-subtitle {
        font-size: 9px;
    }

    .experience-description {
        font-size: 12px;
    }

}

@media (max-width: 1279px) {
    .hero {
        min-height: 640px;
    }

    .hero-copy {
        top: 29%;
    }

    .experience-grid {
        --visible-cards: 3;
        --card-gap: 16px;
    }

    .experiences {
        padding: 0 24px 24px;
    }

    .experience-body {
        padding: 15px 18px 14px;
    }

    .experience-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .experience-heading {
        gap: 13px;
        margin-bottom: 13px;
    }

    .experience-heading h3 {
        font-size: 23px;
    }

    .experience-subtitle {
        font-size: 10px;
    }

    .card-arrow {
        width: 44px;
        height: 44px;
    }

}

@media (max-width: 899px) {
    .carousel-playback {
        min-height: 44px;
        font-size: 14px;
    }

    .hero {
        min-height: 680px;
        height: 78svh;
        max-height: 820px;
    }

    .hero-image {
        object-position: 60% center;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgb(16 12 12 / 55%), rgb(16 12 12 / 16%) 80%), linear-gradient(0deg, #211509 0%, transparent 16%);
    }

    .masthead {
        padding: 25px 22px 0 5%;
    }

    .hero-copy {
        top: 31%;
        left: 5%;
        right: 5%;
        max-width: 590px;
    }

    h1 {
        font-size: 58px;
    }

    .hero-intro {
        max-width: 430px;
    }

    .experience-grid {
        --visible-cards: 2;
    }

}

@media (max-width: 599px) {
    .hero {
        height: 88svh;
        min-height: 660px;
        max-height: 820px;
    }

    .hero-image {
        object-position: 61% center;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgb(14 12 12 / 56%), rgb(14 12 12 / 12%)), linear-gradient(0deg, #211509 0%, transparent 23%), linear-gradient(180deg, rgb(12 10 12 / 18%), transparent 35%);
    }

    .masthead {
        padding: 22px 16px 0 22px;
        gap: 12px;
    }

    .brand {
        width: 154px;
    }

    .language-switcher {
        gap: 0;
        margin-top: -7px;
    }

    .language-link {
        width: 44px;
        height: 44px;
    }

    .language-link img {
        width: 25px;
        height: 25px;
    }

    .hero-copy {
        top: 29%;
        left: 24px;
        right: 24px;
    }

    .hero-rule {
        width: 35px;
        margin-bottom: 17px;
    }

    h1 {
        font-size: clamp(40px, 10.8vw, 58px);
        line-height: 1.06;
        letter-spacing: -.025em;
    }

    .hero-intro {
        font-size: 16px;
        line-height: 1.8;
        margin-top: 24px;
        margin-bottom: 28px;
        max-width: 340px;
    }

    .explore-button {
        min-height: 48px;
        min-width: 152px;
    }

    .experiences {
        padding: 0 20px 24px;
        scroll-margin-top: 20px;
    }

    .experience-grid {
        --visible-cards: 1;
        --card-gap: 22px;
    }

    .experience-body {
        padding: 18px 22px 16px;
    }

    .experience-heading {
        gap: 16px;
        margin-bottom: 15px;
    }

    .experience-heading h3 {
        font-size: 26px;
    }

    .experience-subtitle {
        font-size: 10px;
        letter-spacing: .025em;
    }

    .service-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .experience-description {
        font-size: 16px;
        line-height: 1.75;
    }

}

@media (max-width: 399px) {
    .masthead {
        flex-direction: column;
        align-items: center;
        padding-inline: 16px;
    }

    .brand {
        width: 135px;
    }

    .language-switcher {
        margin-top: 0;
    }

    .language-link img {
        width: 23px;
        height: 23px;
    }

    .hero-copy {
        left: 20px;
        right: 20px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

}
