:root {
    --gateway-ink: #211f1c;
    --gateway-muted: #6d6760;
    --gateway-muted-strong: #514c45;
    --gateway-line: rgba(33, 31, 28, 0.14);
    --gateway-soft: #faf8f5;
    --gateway-accent: #a48b78;
    --gateway-bronze: #8c6a33;
    --gateway-white: #fff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--gateway-white);
    color: var(--gateway-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

a,
button {
    font: inherit;
}

.gateway-shell {
    position: relative;
    display: grid;
    grid-template-columns: clamp(360px, 36vw, 520px) minmax(0, 1fr);
    min-height: 100vh;
    background: var(--gateway-soft);
}

.gateway-stage {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.gateway-slideshow {
    position: absolute;
    inset: 0;
}

.gateway-hero,
.gateway-hero img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.gateway-hero {
    opacity: 0;
    transition: opacity 1600ms ease;
}

.gateway-hero--active {
    opacity: 1;
}

.gateway-hero img {
    object-fit: cover;
    object-position: 68% center;
}

/* Opacity cross-fades are kept under reduced motion; the slideshow has no zoom or movement. */

.gateway-stage::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.64) 34%, rgba(255, 255, 255, 0.08) 68%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.gateway-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    width: min(760px, calc(100% - 72px));
    margin: 0 auto 0 clamp(36px, 6vw, 96px);
    flex-direction: column;
    padding: 42px 0 74px;
}

.wordmark {
    display: inline-flex;
    width: max-content;
    flex-direction: column;
    align-items: center;
    color: var(--gateway-ink);
    text-decoration: none;
}

.wordmark-main {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 6vw, 82px);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.wordmark-divider {
    display: block;
    width: 96%;
    margin-top: 6px;
}

.wordmark-global {
    margin-top: 2px;
    color: var(--gateway-bronze);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.46em;
    text-indent: 0.46em;
    text-transform: uppercase;
}

.intro {
    display: flex;
    width: min(590px, 100%);
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: clamp(40px, 9vh, 104px);
}

.intro-kicker {
    margin: 0 0 18px;
    color: var(--gateway-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.intro h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 86px);
    font-weight: 400;
    /* Tight but collision-free: 0.98 let descenders touch ascenders on the
       next line (visible with the French copy "plus" over "faite"). */
    line-height: 1.08;
}

.country-drawer {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 18px 0 60px rgba(22, 20, 18, 0.12);
}

.drawer-header {
    display: flex;
    min-height: 108px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--gateway-line);
    padding: 26px 34px;
}

.wordmark-small .wordmark-main {
    font-size: 30px;
}

.wordmark-small .wordmark-global {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
}

/* Language selector: same component style as the AdoroMe theme header. */
.adorome-selector {
    position: relative;
    display: flex;
    min-height: 40px;
    align-items: center;
}

.adorome-selector__button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gateway-ink);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.adorome-selector__button::after {
    display: block;
    width: 6px;
    height: 6px;
    border-right: 1px solid var(--gateway-accent);
    border-bottom: 1px solid var(--gateway-accent);
    content: "";
    transform: translateY(-2px) rotate(45deg);
}

.adorome-selector__button:focus {
    outline: none;
}

.adorome-selector--open .adorome-selector__button,
.adorome-selector__button:hover {
    color: var(--gateway-accent);
}

.adorome-selector__menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    z-index: 30;
    min-width: 168px;
    padding: 8px 16px;
    border: 1px solid var(--gateway-line);
    border-radius: 4px;
    background: var(--gateway-white);
    box-shadow: 0 8px 22px rgba(31, 29, 27, 0.1);
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.adorome-selector--open .adorome-selector__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.adorome-selector__menu a {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gateway-line);
    color: var(--gateway-ink);
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease;
}

.adorome-selector__menu a:last-child {
    border-bottom: 0;
}

.adorome-selector__menu a:hover,
.adorome-selector__menu a.selected {
    color: var(--gateway-accent);
}

.drawer-body {
    overflow: auto;
    padding: 40px 34px 34px;
}

.drawer-stencil {
    display: block;
    width: 148px;
    margin: 48px auto 0;
    opacity: 0.13;
}

.drawer-body h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 400;
    line-height: 1;
}

.drawer-subtext {
    margin: 14px 0 28px;
    color: var(--gateway-muted-strong);
    font-size: 16px;
    line-height: 1.55;
}

.country-list {
    display: grid;
    border-top: 1px solid var(--gateway-line);
}

.country-list a,
.country-list-item {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--gateway-line);
    color: var(--gateway-ink);
    text-decoration: none;
    transition: color 180ms ease, padding-left 180ms ease;
}

.country-list a:hover,
.country-list a:focus-visible {
    color: var(--gateway-accent);
    padding-left: 8px;
}

.country-list-item--disabled {
    color: rgba(33, 31, 28, 0.68);
    cursor: default;
}

.country-list strong,
.country-list small {
    display: block;
}

.country-list strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
}

.country-list small {
    margin-top: 8px;
    color: var(--gateway-muted);
    font-size: 14px;
}

.country-list-item--disabled strong,
.country-list-item--disabled small {
    color: inherit;
}

.market-status {
    flex: 0 0 auto;
    border: 1px solid rgba(164, 139, 120, 0.48);
    color: var(--gateway-accent);
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .gateway-shell {
        display: flex;
        min-height: 100svh;
        flex-direction: column;
    }

    .gateway-stage {
        min-height: 100svh;
    }

    .gateway-hero img {
        object-position: 74% center;
    }

    .gateway-stage::after {
        background: linear-gradient(0deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.58) 42%, rgba(255, 255, 255, 0.05) 78%);
    }

    .gateway-content {
        min-height: 100svh;
        width: calc(100% - 32px);
        margin: 0 auto;
        padding: 28px 0 42px;
    }

    .country-drawer {
        min-height: auto;
        box-shadow: 0 16px 42px rgba(22, 20, 18, 0.1);
    }

    .wordmark-main {
        font-size: 34px;
    }

    .intro {
        min-height: 70svh;
        justify-content: flex-end;
    }

    .intro h1 {
        max-width: 360px;
    }

    .drawer-header,
    .drawer-body {
        padding-right: 24px;
        padding-left: 24px;
    }

    .drawer-header {
        min-height: 92px;
    }

    .country-list a,
    .country-list-item {
        gap: 16px;
    }

    .market-status {
        padding: 6px 8px;
        font-size: 10px;
    }
}
