.hero {
    --hero-interval: 6.5s;
    position: relative;
    height: min(calc(100svh - var(--announce-h)), 138vw);
    min-height: 30rem;
    overflow: hidden;
    background: var(--navy-800);
    color: var(--white);
}

.hero__slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s var(--ease-out), visibility 0s linear 1.2s;
}

.hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s var(--ease-out), visibility 0s linear 0s;
}

.hero-slide__picture {
    position: absolute;
    inset: 0;
    transform: scale(1.06);
    transition: transform 7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-slide.is-active .hero-slide__picture {
    transform: scale(1);
}

.hero-slide__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(11, 16, 32, 0.8) 0%, rgba(11, 16, 32, 0.46) 40%, rgba(11, 16, 32, 0) 70%);
    pointer-events: none;
}

.hero-slide--dark::after {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.34) 40%, rgba(255, 255, 255, 0) 64%);
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding-bottom: clamp(6rem, 4.5rem + 5vh, 8.5rem);
}

.hero-slide--center .hero-slide__content {
    justify-content: center;
    text-align: center;
}

.hero-slide__text {
    display: grid;
    justify-items: start;
    gap: 1rem;
    max-width: 34rem;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.9s var(--ease-out) 0.3s, transform 1.1s var(--ease-out) 0.3s;
}

.hero-slide.is-active .hero-slide__text {
    opacity: 1;
    transform: none;
}

.hero-slide--center .hero-slide__text {
    justify-items: center;
}

.hero-slide__eyebrow {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font: 500 0.72rem/1.2 var(--font-sans);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero-slide__title {
    margin-bottom: 0.75rem;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 1.45rem + 3.1vw, 4.6rem);
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: lining-nums;
}

.hero-slide--dark .hero-slide__eyebrow {
    color: var(--navy-700);
}

.hero-slide--dark .hero-slide__title {
    color: var(--navy-700);
}

.hero__controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(1.25rem, 0.9rem + 1.2vw, 2.25rem);
    z-index: 3;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    pointer-events: none;
}

.hero__tabs {
    display: flex;
    flex: 1;
    gap: clamp(0.6rem, 0.3rem + 1vw, 1.5rem);
    list-style: none;
}

.hero__tab-item {
    flex: 1 1 0;
    max-width: 14rem;
}

.hero__tab {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0 0.35rem;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.66);
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.3s;
}

.hero__tab:hover,
.hero__tab.is-active {
    color: var(--white);
}

.hero__tab-bar {
    position: relative;
    display: block;
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
}

.hero__tab-fill {
    position: absolute;
    inset: 0;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
}

.hero__tab.is-active .hero__tab-fill {
    animation: hero-progress var(--hero-interval) linear forwards;
}

.hero.is-halted .hero__tab.is-active .hero__tab-fill {
    animation-play-state: paused;
}

.hero__tab-text {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font: 500 0.6875rem/1 var(--font-sans);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero__tab-index {
    font-variant-numeric: tabular-nums;
}

.hero__tab-label {
    display: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero[data-tone="dark"] .hero__tab {
    color: rgba(29, 39, 72, 0.6);
}

.hero[data-tone="dark"] .hero__tab:hover,
.hero[data-tone="dark"] .hero__tab.is-active {
    color: var(--navy-700);
}

.hero[data-tone="dark"] .hero__tab-bar {
    background: rgba(29, 39, 72, 0.2);
}

.hero[data-tone="dark"] .hero__pause {
    border-color: rgba(29, 39, 72, 0.45);
    color: var(--navy-700);
}

.hero__pause {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: none;
    color: var(--white);
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.3s, color 0.3s;
}

.hero__pause:hover {
    background: var(--white);
    color: var(--navy-700);
}

.hero__pause .icon {
    width: 0.9rem;
    height: 0.9rem;
}

.hero__play-icon {
    display: none;
    fill: currentColor;
}

.hero.is-paused .hero__pause-icon {
    display: none;
}

.hero.is-paused .hero__play-icon {
    display: block;
}

.categories__inner {
    display: grid;
    gap: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
}

.categories__intro {
    display: grid;
    justify-items: start;
    align-content: start;
    gap: 0.75rem;
    max-width: 30rem;
}

.categories__intro .eyebrow {
    margin: 0;
}

.categories__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    width: 100%;
    margin-top: 0.75rem;
}

.rail--categories {
    --rail-columns: 2.2;
}

.editorial {
    padding-block: 0;
}

.editorial__grid {
    display: grid;
    gap: 2.75rem clamp(1rem, 0.5rem + 1.6vw, 2.25rem);
    list-style: none;
}

.editorial-card {
    display: grid;
    gap: 1.4rem;
    color: var(--ink);
    text-decoration: none;
}

.editorial-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--navy-800);
}

.editorial-card__picture {
    position: absolute;
    inset: 0;
}

.editorial-card__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease-out), opacity 0.8s var(--ease-out);
}

.editorial-card:hover .editorial-card__picture img {
    transform: scale(1.035);
}

.editorial-card__body {
    display: grid;
    justify-items: start;
    gap: 0.6rem;
}

.editorial-card__eyebrow {
    color: var(--gold-700);
    font: 500 0.6875rem/1.2 var(--font-sans);
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.editorial-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.6rem);
    font-weight: 500;
    line-height: 1.08;
}

.editorial-card__link {
    margin-top: 0.4rem;
}

.house {
    display: grid;
    background: var(--cream);
}

.house__media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--navy-800);
}

.house__picture {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.house__caption {
    position: absolute;
    left: 1.5rem;
    bottom: 1.25rem;
    z-index: 2;
    color: var(--white);
    font: 500 0.6875rem/1.2 var(--font-sans);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.house__content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3.5rem, 2.5rem + 4vw, 7rem) var(--gutter);
}

.house__inner {
    display: grid;
    justify-items: center;
    max-width: 34rem;
    text-align: center;
}

.house__logo {
    width: 8.5rem;
    height: auto;
    aspect-ratio: 457.2 / 109.2;
    margin-bottom: 1.75rem;
    fill: var(--gold-500);
}

.house__body {
    margin: 1.25rem 0 2.25rem;
    color: var(--ink-soft);
    line-height: 1.8;
}

.house__products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin-bottom: 2.25rem;
    list-style: none;
}

.house__products .product-card__media {
    background: var(--white);
}

.brands {
    background: var(--page);
}

.gift-banner {
    position: relative;
    display: grid;
    min-height: min(46rem, 135vw);
    overflow: hidden;
    background: var(--navy-800);
    color: var(--white);
}

.gift-banner__picture {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.gift-banner__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift-banner .media-placeholder {
    z-index: 0;
}

.gift-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(11, 16, 32, 0.72), rgba(11, 16, 32, 0.2) 60%, rgba(11, 16, 32, 0));
    pointer-events: none;
}

.gift-banner__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}

.gift-banner__text {
    display: grid;
    justify-items: start;
    gap: 0.25rem;
    max-width: 32rem;
}

.gift-banner__lead {
    margin: 1rem 0 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.gift-banner .chip-list {
    margin-bottom: 2rem;
}

.journal__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    list-style: none;
}

.journal__grid::-webkit-scrollbar {
    display: none;
}

.journal__cell {
    scroll-snap-align: start;
}

@keyframes hero-progress {
    to {
        transform: scaleX(1);
    }
}

@media (min-width: 40em) {
    .rail--categories {
        --rail-columns: 3.2;
    }

    .journal__grid {
        grid-auto-columns: 46%;
    }
}

@media (min-width: 48em) {
    .hero {
        height: calc(100svh - var(--announce-h));
        min-height: 34rem;
    }

    .hero-slide--end .hero-slide__content {
        justify-content: flex-end;
    }

    .hero-slide--end .hero-slide__text {
        max-width: 28rem;
    }

    .hero-slide--start::after,
    .hero-slide--end::after {
        background: linear-gradient(to top, rgba(11, 16, 32, 0.5) 0%, rgba(11, 16, 32, 0.08) 50%, rgba(11, 16, 32, 0) 75%);
    }

    .hero-slide--dark::after {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 45%);
    }

    .hero-slide--dark.hero-slide--end::after {
        background: linear-gradient(to left, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 48%), linear-gradient(to top, rgba(11, 16, 32, 0.42) 0%, rgba(11, 16, 32, 0) 24%);
    }

    .hero__tab-text {
        text-shadow: 0 1px 12px rgba(11, 16, 32, 0.35);
    }

    .hero[data-tone="dark"] .hero__tab {
        color: rgba(255, 255, 255, 0.72);
    }

    .hero[data-tone="dark"] .hero__tab:hover,
    .hero[data-tone="dark"] .hero__tab.is-active {
        color: var(--white);
    }

    .hero[data-tone="dark"] .hero__tab-bar {
        background: rgba(255, 255, 255, 0.35);
    }

    .hero[data-tone="dark"] .hero__pause {
        border-color: rgba(255, 255, 255, 0.6);
        color: var(--white);
    }

    .hero-slide__content {
        align-items: flex-end;
        padding-bottom: clamp(7rem, 5rem + 6vh, 10rem);
    }

    .hero__tab-label {
        display: inline;
    }

    .editorial__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gift-banner {
        min-height: 0;
        aspect-ratio: 21 / 9;
        max-height: 88svh;
    }

    .gift-banner::after {
        background: linear-gradient(to right, rgba(11, 16, 32, 0.68), rgba(11, 16, 32, 0.25) 45%, rgba(11, 16, 32, 0));
    }

    .gift-banner__content {
        align-items: center;
    }
}

@media (min-width: 64em) {
    .categories__inner {
        grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 3.4fr);
        align-items: start;
        gap: clamp(2.5rem, 4vw, 5rem);
    }

    .categories__intro {
        padding-top: 0.5rem;
    }

    .rail--categories {
        --rail-columns: 3.25;
    }

    .house {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .house__media {
        aspect-ratio: auto;
        min-height: 100%;
    }

    .house__content {
        min-height: min(56vw, 60rem);
    }

    .journal__grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-inline: 0;
        padding-inline: 0;
        overflow: visible;
    }
}

@media (min-width: 75em) {
    .rail--brands {
        --rail-columns: 5;
    }

    .rail--categories {
        --rail-columns: 3.5;
    }

    .hero-slide__content {
        padding-top: var(--header-h);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide__picture {
        transform: none;
    }
}
