/* Reusable pieces shared by more than one page. */

@layer components {
    /* ---------- Logo ---------- */

    .wordmark {
        display: block;
    }

    /* A little smaller on phones, so the header keeps room for the menu button. */
    .wordmark img {
        width: auto;
        height: clamp(2.5rem, 1.6rem + 3vw, 3.75rem);
    }

    .site-footer .wordmark img {
        height: 4.25rem;
    }

    /* ---------- Eyebrow: the small label above some headings, underlined in two strokes ---------- */

    .eyebrow {
        display: inline-block;
        padding-bottom: 0.4375rem;
        font-size: var(--text-sm);
        line-height: 1.2;
        letter-spacing: 0.04em;
        color: var(--sand-ink);
        text-transform: uppercase;
        background: linear-gradient(
            to right,
            var(--sand) calc(50% - 0.25rem),
            transparent calc(50% - 0.25rem) calc(50% + 0.25rem),
            var(--sand) calc(50% + 0.25rem)
        ) bottom / 100% 2px no-repeat;
    }

    /* ---------- Buttons ---------- */

    .button {
        --button-ink: var(--white);
        --button-background: var(--sand);
        --button-fill: var(--navy);
        --button-fill-ink: var(--white);

        position: relative;
        z-index: 0;
        display: inline-flex;
        gap: 0.625rem;
        align-items: center;
        justify-content: center;
        min-height: 3.125rem;
        padding: 0.875rem 2.1875rem;
        overflow: hidden;
        font-size: var(--text-md);
        font-weight: 500;
        line-height: 1.25;
        color: var(--button-ink);
        text-align: center;
        text-decoration: none;
        background: var(--button-background);
        border: 0;
        cursor: pointer;
        transition: color 0.4s var(--ease);
    }

    /* On hover two blocks grow from opposite corners and meet, as in the theme. */
    .button::before,
    .button::after {
        content: "";
        position: absolute;
        z-index: -1;
        width: 50%;
        height: 0;
        background: var(--button-fill);
        transition: width 0.4s ease-in-out, height 0.4s ease-in-out;
    }

    .button::before {
        top: 0;
        left: 0;
    }

    .button::after {
        right: 0;
        bottom: 0;
    }

    .button:hover,
    .button:focus-visible {
        color: var(--button-fill-ink);
    }

    .button:hover::before,
    .button:hover::after,
    .button:focus-visible::before,
    .button:focus-visible::after {
        width: 100%;
        height: 100%;
    }

    .button--navy {
        --button-ink: var(--white);
        --button-background: var(--navy);
        --button-fill: var(--white);
        --button-fill-ink: var(--navy);
    }

    .button--block {
        display: flex;
        width: 100%;
    }

    .button[disabled] {
        cursor: progress;
        opacity: 0.7;
    }

    /* Buttons sitting on navy or on a photograph fill with white instead of navy. */
    :is(.hero, .site-footer, .drawer, .photo-strip) .button:not(.button--navy) {
        --button-fill: var(--white);
        --button-fill-ink: var(--navy);
    }

    .arrow-link {
        display: inline-flex;
        gap: var(--space-xs);
        align-items: center;
        padding-bottom: 0.1875rem;
        font-weight: 500;
        color: var(--navy);
        text-decoration: none;
        border-bottom: 1px solid var(--sand);
        transition: color var(--steady) var(--ease), border-color var(--steady) var(--ease);
    }

    .arrow-link .icon {
        width: 1.125rem;
        height: 1.125rem;
        transition: transform var(--steady) var(--ease);
    }

    .arrow-link:hover {
        color: var(--sand-ink);
    }

    .arrow-link:hover .icon {
        transform: translateX(0.3125rem);
    }

    .arrow-link--light {
        color: var(--white);
    }

    .arrow-link--light:hover {
        color: var(--sand-pale);
    }

    .square-button {
        display: grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        color: var(--white);
        background: var(--sand);
        border: 0;
        cursor: pointer;
        transition: color var(--steady) var(--ease), background-color var(--steady) var(--ease), opacity var(--quick);
    }

    .square-button:hover:not([disabled]) {
        color: var(--white);
        background: var(--navy);
    }

    .square-button[disabled] {
        cursor: default;
        opacity: 0.4;
    }

    /* ---------- Photograph with the offset sand block behind it ---------- */

    .framed {
        position: relative;
        isolation: isolate;
        padding: 1rem 0 0 1rem;
    }

    .framed::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        width: 42%;
        height: 52%;
        background: var(--sand);
    }

    .framed img {
        width: 100%;
        box-shadow: var(--shadow-soft);
    }

    .framed--right {
        padding: 1rem 1rem 0 0;
    }

    .framed--right::before {
        right: 0;
        left: auto;
    }

    /* ---------- Lists ---------- */

    .feature-list {
        display: grid;
        gap: var(--space-md) var(--space-xl);
        font-weight: 500;
        color: var(--navy);
    }

    .feature-list li {
        display: flex;
        gap: 0.875rem;
        align-items: center;
    }

    .feature-list .icon {
        box-sizing: content-box;
        width: 1rem;
        height: 1rem;
        padding: 0.4375rem;
        color: var(--sand-ink);
        border: 1px solid var(--sand);
    }

    @media (min-width: 34rem) {
        .feature-list {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .ticks {
        display: grid;
        gap: var(--space-sm);
    }

    .ticks li {
        display: flex;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .ticks .icon {
        box-sizing: content-box;
        width: 0.75rem;
        height: 0.75rem;
        margin-top: 0.1875rem;
        padding: 0.1875rem;
        color: var(--sand-pale);
        border: 1px solid currentColor;
        border-radius: 50%;
        stroke-width: 2.25;
    }

    .ticks--dark .icon {
        color: var(--sand-ink);
    }

    .badge {
        display: grid;
        flex: none;
        place-items: center;
        width: 3.125rem;
        height: 3.125rem;
        color: var(--white);
        background: var(--sand);
        border-radius: 50%;
    }

    .social {
        display: flex;
        gap: var(--space-xs);
    }

    /* A network whose link has not been supplied yet shows the same icon, without being a link. */
    .social a,
    .social__pending {
        display: grid;
        place-items: center;
        width: 2.5rem;
        height: 2.5rem;
        color: var(--white);
        background: var(--navy-raised);
        border-radius: 50%;
        transition: color var(--steady) var(--ease), background-color var(--steady) var(--ease);
    }

    .social a:hover {
        color: var(--white);
        background: var(--sand);
    }

    .social .icon {
        width: 1.0625rem;
        height: 1.0625rem;
    }

    .social--boxed a,
    .social--boxed .social__pending {
        width: 2rem;
        height: 2rem;
        color: var(--white);
        background: none;
        border: 1px solid rgb(255 255 255 / 0.55);
        border-radius: 5px;
    }

    .social--boxed a:hover {
        color: var(--white);
        background: var(--navy);
    }

    /* ---------- Price: "From $4,300 per person" with the amount set large ---------- */

    .price {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-xs);
        align-items: baseline;
    }

    .price__amount {
        font-family: var(--font-display);
        font-size: clamp(2rem, 1.65rem + 1.5vw, 2.75rem);
        font-weight: 600;
        line-height: 1;
        color: var(--sand-ink);
    }

    /* ---------- Safari card ---------- */

    .safari-card {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .safari-card__media {
        display: block;
        aspect-ratio: 3 / 2;
        overflow: hidden;
        background: var(--linen);
    }

    .safari-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--slow) var(--ease-out);
    }

    .safari-card:hover .safari-card__media img {
        transform: scale(1.06);
    }

    .safari-card__price {
        position: absolute;
        top: var(--space-md);
        right: var(--space-md);
        padding: 0.3125rem 0.75rem;
        font-size: var(--text-sm);
        background: var(--white);
    }

    .safari-card__body {
        position: relative;
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        margin: -2.5rem 1.25rem 0;
        padding: var(--space-lg) var(--space-lg) 1.75rem;
        text-align: center;
        background: var(--white);
        border: 1px solid var(--line);
        transition: box-shadow var(--steady) var(--ease), border-color var(--steady) var(--ease);
    }

    .safari-card:hover .safari-card__body {
        border-color: transparent;
        box-shadow: var(--shadow-soft);
    }

    .safari-card__name a {
        color: var(--navy);
        text-decoration: none;
    }

    .safari-card__name a:hover {
        color: var(--sand-ink);
    }

    .safari-card__meta {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-xs) var(--space-lg);
        justify-content: center;
        margin-top: var(--space-sm);
        font-size: var(--text-sm);
        color: var(--navy);
    }

    .safari-card__meta li {
        display: flex;
        gap: 0.4375rem;
        align-items: center;
    }

    .safari-card__meta .icon {
        width: 1rem;
        height: 1rem;
        color: var(--sand-ink);
    }

    .safari-card__summary {
        margin-block: var(--space-md) var(--space-lg);
    }

    .safari-card__more {
        margin-top: auto;
    }

    /* ---------- Carousel: a row you can swipe, scroll or step through ---------- */

    .carousel__track {
        display: flex;
        gap: 1.875rem;
        margin: 0 calc(-1 * var(--gutter)) -3rem;
        padding: 0 var(--gutter) 3rem;
        overflow-x: auto;
        scroll-padding-inline: var(--gutter);
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

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

    .carousel__slide {
        flex: 0 0 86%;
        scroll-snap-align: start;
    }

    .carousel__controls {
        display: flex;
        gap: var(--space-xs);
        justify-content: center;
        margin-top: var(--space-2xl);
    }

    @media (scripting: none) {
        .carousel__controls {
            display: none;
        }
    }

    @media (min-width: 40rem) {
        .carousel__slide {
            flex-basis: calc((100% - 1.875rem) / 2);
        }
    }

    @media (min-width: 68rem) {
        .carousel__slide {
            flex-basis: calc((100% - 3.75rem) / 3);
        }
    }

    /* ---------- Accordion ---------- */

    .accordion {
        display: grid;
        gap: var(--space-sm);
        align-content: start;
    }

    .accordion__item {
        background: var(--white);
        border: 1px solid var(--line);
        interpolate-size: allow-keywords;
        transition: box-shadow var(--steady) var(--ease);
    }

    .accordion__item[open] {
        box-shadow: var(--shadow-lift);
    }

    .accordion__item::details-content {
        block-size: 0;
        overflow: clip;
        transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
    }

    .accordion__item[open]::details-content {
        block-size: auto;
    }

    .accordion__summary {
        display: flex;
        gap: var(--space-md);
        align-items: center;
        justify-content: space-between;
        padding: 1.125rem var(--space-lg);
        list-style: none;
        cursor: pointer;
    }

    .accordion__summary::-webkit-details-marker {
        display: none;
    }

    .accordion__question {
        font-size: 1.1875rem;
        transition: color var(--quick) var(--ease);
    }

    .accordion__summary:hover .accordion__question {
        color: var(--sand-ink);
    }

    .accordion__marker {
        display: grid;
        flex: none;
        place-items: center;
        width: 2rem;
        height: 2rem;
        color: var(--white);
        background: var(--sand);
        transition: transform var(--steady) var(--ease), color var(--steady) var(--ease), background-color var(--steady) var(--ease);
    }

    .accordion__marker .icon {
        width: 1rem;
        height: 1rem;
    }

    .accordion__item[open] .accordion__marker {
        color: var(--white);
        background: var(--navy);
        transform: rotate(45deg);
    }

    .accordion__answer {
        max-width: 48rem;
        padding: 0 var(--space-lg) 1.375rem;
    }

    /* ---------- Included / not included panels ---------- */

    .inclusions {
        display: grid;
        gap: 1.875rem;
    }

    .inclusions__panel {
        padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
        color: var(--text-on-navy);
        background: var(--navy) url("../images/pattern-contours.svg") center top / max(100rem, 100%) auto no-repeat;
    }

    .inclusions__title {
        font-size: 1.5rem;
        color: var(--white);
    }

    /* The rule with a dot at its centre that the theme uses to divide its dark panels. */
    .inclusions__title::after {
        content: "";
        display: block;
        height: 5px;
        margin-block: var(--space-lg);
        background:
            radial-gradient(circle, var(--sand) 2.5px, transparent 3px) center / 6px 6px no-repeat,
            linear-gradient(var(--line-on-navy), var(--line-on-navy)) center / 100% 1px no-repeat;
    }

    .inclusions__panel--excluded .icon {
        color: rgb(255 255 255 / 0.55);
    }

    .inclusions__note {
        margin-top: var(--space-lg);
        font-size: var(--text-sm);
    }

    @media (min-width: 40rem) {
        .inclusions {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* ---------- Quotation ---------- */

    .pull-quote {
        margin-block: var(--space-xl);
        padding-top: 3.25rem;
        background: url("../images/quote-mark.svg") left top / 2.75rem auto no-repeat;
    }

    .pull-quote p {
        font-family: var(--font-display);
        font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
        line-height: 1.5;
        color: var(--navy);
    }

    .pull-quote footer {
        margin-top: var(--space-md);
        font-size: var(--text-sm);
        color: var(--sand-ink);
    }

    /* ---------- Closing call to action ---------- */

    .cta-band {
        padding-block: clamp(3.5rem, 2.5rem + 4.5vw, 5.75rem);
        color: var(--white);
        background: var(--sand);
    }

    .cta-band h2 {
        color: var(--white);
    }

    .cta-band__inner {
        display: grid;
        gap: var(--space-2xl);
        align-items: center;
    }

    .cta-band__copy p {
        max-width: 34rem;
        margin-block: var(--space-md) var(--space-xl);
    }

    .cta-band__contact {
        display: grid;
        gap: var(--space-lg);
        padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
        border: 1px solid rgb(255 255 255 / 0.5);
    }

    .cta-band__contact li {
        display: flex;
        gap: var(--space-md);
        align-items: center;
    }

    .cta-band__label {
        display: block;
        font-size: var(--text-sm);
    }

    .cta-band__contact a {
        font-family: var(--font-display);
        font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
        font-weight: 600;
        color: var(--white);
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .cta-band__contact a:hover {
        text-decoration: underline;
    }

    .cta-band .badge {
        color: var(--sand-pale);
        background: var(--navy);
    }

    @media (min-width: 56rem) {
        .cta-band__inner {
            grid-template-columns: 1.25fr 1fr;
        }
    }

    /* ---------- Page banner ---------- */

    .page-header {
        position: relative;
        isolation: isolate;
        display: grid;
        place-items: center;
        min-height: max(24rem, calc(100svh - var(--chrome-height)));
        padding-block: var(--space-3xl);
        overflow: hidden;
        color: var(--white);
        text-align: center;
        background: var(--navy);
    }

    /* Animals stand in the lower part of most photographs, so the crop favors it. */
    .page-header__image {
        position: absolute;
        inset: 0;
        z-index: -2;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 68%;
    }

    @media (max-width: 69.99rem) {
        .page-header__image {
            object-position: center;
        }
    }

    .page-header::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(rgb(18 15 32 / 0.5), rgb(18 15 32 / 0.74));
    }

    .page-header--plain {
        min-height: 0;
        padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
        background: var(--navy) url("../images/pattern-contours.svg") center top / max(100rem, 100%) auto no-repeat;
    }

    .page-header--plain::after {
        content: none;
    }

    .page-header__title {
        font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5rem);
        line-height: 1.1;
        color: var(--white);
    }

    .page-header__lede {
        max-width: 48rem;
        margin: var(--space-lg) auto 0;
        font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4375rem);
        color: rgb(255 255 255 / 0.9);
    }

    .breadcrumbs {
        margin-top: var(--space-lg);
        font-size: var(--text-sm);
    }

    .breadcrumbs ol {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2xs) var(--space-sm);
        justify-content: center;
        padding: 0;
        list-style: none;
    }

    .breadcrumbs li {
        display: flex;
        gap: var(--space-sm);
        align-items: center;
        color: var(--sand-pale);
    }

    .breadcrumbs li + li::before {
        content: "";
        width: 0.375rem;
        height: 0.375rem;
        border: solid rgb(255 255 255 / 0.7);
        border-width: 1px 1px 0 0;
        transform: rotate(45deg);
    }

    .breadcrumbs a {
        color: var(--white);
        text-decoration: none;
    }

    .breadcrumbs a:hover {
        color: var(--sand-pale);
    }

    /* ---------- Three photographs: one large beside two stacked ---------- */

    .photo-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .photo-group li {
        aspect-ratio: 4 / 3;
        min-height: 0;
        overflow: hidden;
        background: var(--linen);
    }

    .photo-group li:first-child {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
    }

    .photo-group img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--slow) var(--ease-out);
    }

    .photo-group__item--focus-cheetahs img {
        object-position: center 20%;
    }

    .photo-group li:hover img {
        transform: scale(1.04);
    }

    @media (min-width: 48rem) {
        .photo-group {
            grid-template-columns: 3fr 2fr;
            grid-template-rows: repeat(2, 1fr);
            aspect-ratio: 16 / 9;
        }

        .photo-group li,
        .photo-group li:first-child {
            grid-column: auto;
            aspect-ratio: auto;
        }

        .photo-group li:first-child {
            grid-row: 1 / -1;
        }
    }

    /* ---------- One photograph across the full width of the page ---------- */

    .photo-band {
        height: clamp(15rem, 36vw, 34rem);
        overflow: hidden;
        background: var(--navy);
    }

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

    /* ---------- Strip of gallery photographs ---------- */

    .photo-strip {
        position: relative;
    }

    .photo-strip__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .photo-strip__list li {
        aspect-ratio: 4 / 5;
        overflow: hidden;
        background: var(--linen);
    }

    .photo-strip__list img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--slow) var(--ease-out);
    }

    .photo-strip__list li:hover img {
        transform: scale(1.07);
    }

    .photo-strip__link {
        position: absolute;
        top: 50%;
        left: 50%;
        box-shadow: var(--shadow-deep);
        translate: -50% -50%;
    }

    @media (min-width: 48rem) {
        .photo-strip__list {
            grid-template-columns: repeat(6, 1fr);
        }
    }

    /* ---------- Guest reviews (shown once reviews exist) ---------- */

    .reviews__list {
        display: grid;
        gap: 1.875rem;
    }

    .review {
        position: relative;
        padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
        background: var(--white);
        border: 1px solid var(--line);
    }

    .review > .icon {
        position: absolute;
        top: var(--space-lg);
        right: var(--space-lg);
        width: 2.5rem;
        height: 2.5rem;
        color: var(--sand);
        fill: currentColor;
        stroke: none;
    }

    .review__quote {
        padding-right: 3rem;
        color: var(--navy);
    }

    .review__author {
        display: grid;
        margin-top: var(--space-lg);
        font-size: var(--text-sm);
    }

    .review__author strong {
        font-family: var(--font-display);
        font-size: var(--text-lg);
        font-weight: 600;
    }

    @media (min-width: 48rem) {
        .reviews__list {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* ---------- Linen summary card used in sidebars ---------- */

    .fact-card {
        padding: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
        background: var(--linen);
    }

    .fact-card__title {
        font-size: 1.5rem;
    }

    .facts {
        margin-block: var(--space-md) var(--space-lg);
    }

    .facts div {
        display: grid;
        gap: var(--space-2xs);
        padding-block: var(--space-sm);
        border-bottom: 1px solid #d9d4cd;
    }

    .facts dt {
        font-size: var(--text-sm);
    }

    .facts dd {
        margin: 0;
        font-weight: 500;
        color: var(--navy);
    }

    /* ---------- Wide tables scroll sideways inside this wrapper instead of breaking the page ---------- */

    .table-scroll {
        overflow-x: auto;
    }

    /* ---------- Form controls ---------- */

    .field {
        display: grid;
        gap: var(--space-xs);
        align-content: start;
    }

    .field label,
    .field legend {
        font-size: var(--text-sm);
        font-weight: 500;
        color: var(--navy);
    }

    .field__optional {
        font-weight: 400;
        color: var(--text);
    }

    .field input:not([type="checkbox"], [type="radio"]),
    .field select,
    .field textarea,
    .planner__field select {
        width: 100%;
        min-height: 3.125rem;
        padding: 0.75rem var(--space-md);
        color: var(--navy);
        background-color: var(--white);
        border: 1px solid #8c867f;
        border-radius: 0;
        transition: border-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
    }

    .field select,
    .planner__field select {
        padding-right: 2.75rem;
        appearance: none;
        background-image: url("../images/chevron-down.svg");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 0.875rem;
    }

    .field textarea {
        min-height: 9rem;
        resize: vertical;
    }

    .field :is(input, select, textarea):hover {
        border-color: var(--navy);
    }

    .field :is(input, select, textarea):focus-visible {
        border-color: var(--navy);
        outline-offset: 2px;
    }

    .field [aria-invalid="true"] {
        border-color: var(--error);
        box-shadow: inset 0 0 0 1px var(--error);
    }

    .field__error {
        font-size: var(--text-sm);
        font-weight: 500;
        color: var(--error);
    }

    /* ---------- Inquiry form: short on purpose, two fields to a row where there is room ---------- */

    .inquiry-form {
        display: grid;
        gap: var(--space-lg);
    }

    .inquiry-form__notice {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
        font-weight: 500;
        color: var(--error);
        background: #fbf1ef;
        border: 1px solid var(--error);
    }

    .inquiry-form__fields {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-md);
    }

    /* On a phone every field takes the full width, except month and guests, which share a row. */
    .inquiry-form__fields > .field {
        grid-column: 1 / -1;
        gap: 0.375rem;
    }

    .inquiry-form__fields > .field--half {
        grid-column: auto;
    }

    .inquiry-form .field :is(input, select) {
        min-height: 2.875rem;
        padding-block: 0.625rem;
    }

    .inquiry-form .field textarea {
        min-height: 5.25rem;
    }

    /* The trap field is for bots only, so it sits far off screen. */
    .inquiry-form__trap {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .inquiry-form__send {
        display: grid;
        gap: var(--space-sm);
    }

    .inquiry-form__privacy {
        font-size: var(--text-xs);
    }

    @media (min-width: 34rem) {
        .inquiry-form__fields > .field {
            grid-column: auto;
        }

        .inquiry-form__fields > .field--wide {
            grid-column: 1 / -1;
        }

        .inquiry-form__send .button {
            justify-self: start;
        }
    }

    /* ---------- Inquiry panel: ways to reach us beside the form ---------- */

    /* On a phone it reads top to bottom: heading, form, contact details. */
    .inquiry-panel {
        display: grid;
        grid-template-areas:
            "intro"
            "form"
            "contacts";
        background: var(--white);
    }

    /* The leopard, dimmed, behind the heading. From 54rem it runs the full height of the left column. */
    .inquiry-panel__backdrop {
        position: relative;
        grid-area: intro;
        overflow: hidden;
        background: var(--navy);
    }

    .inquiry-panel__backdrop img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 30%;
        opacity: 0.42;
    }

    .inquiry-panel__backdrop::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgb(18 15 32 / 0.35), rgb(18 15 32 / 0.94) 78%);
    }

    .inquiry-panel__intro {
        position: relative;
        grid-area: intro;
        padding: var(--space-xl) 4.5rem var(--space-lg) var(--space-lg);
        color: var(--text-on-navy);
    }

    .inquiry-panel__kicker {
        font-size: var(--text-xs);
        letter-spacing: 0.12em;
        color: var(--sand-pale);
        text-transform: uppercase;
    }

    .inquiry-panel__title {
        margin-top: var(--space-xs);
        font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
        color: var(--white);
    }

    /* The sentence under the heading waits for a wider screen, so the form starts sooner on a phone. */
    .inquiry-panel__intro > p:last-child {
        display: none;
        margin-top: var(--space-sm);
    }

    .inquiry-panel__form {
        grid-area: form;
        padding: var(--space-lg);
    }

    .inquiry-panel__contacts {
        position: relative;
        grid-area: contacts;
        padding: var(--space-lg);
        background: var(--linen);
    }

    .inquiry-panel__list {
        display: grid;
        gap: var(--space-sm);
    }

    .inquiry-panel__contacts a {
        display: flex;
        gap: var(--space-md);
        align-items: center;
        font-weight: 500;
        color: var(--navy);
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .inquiry-panel__contacts a:hover {
        color: var(--sand-ink);
    }

    .inquiry-panel__contacts .badge {
        width: 2.75rem;
        height: 2.75rem;
    }

    .inquiry-panel__label {
        display: block;
        font-size: var(--text-xs);
        font-weight: 400;
        letter-spacing: 0.08em;
        color: var(--text);
        text-transform: uppercase;
    }

    .inquiry-panel__note {
        margin-top: var(--space-md);
        font-size: var(--text-sm);
    }

    @media (min-width: 30rem) {
        .inquiry-panel__intro > p:last-child {
            display: block;
        }
    }

    @media (min-width: 54rem) {
        .inquiry-panel {
            grid-template-columns: minmax(18rem, 23rem) minmax(0, 1fr);
            grid-template-rows: auto 1fr;
            grid-template-areas:
                "intro form"
                "contacts form";
        }

        .inquiry-panel__backdrop {
            grid-area: 1 / 1 / -1 / 2;
        }

        .inquiry-panel__intro {
            padding: 2.75rem 2.25rem var(--space-lg);
        }

        .inquiry-panel__form {
            align-self: center;
            padding: 2.75rem 2.5rem;
        }

        .inquiry-panel__contacts {
            align-self: end;
            padding: var(--space-lg) 2.25rem 2.5rem;
            color: var(--text-on-navy);
            background: none;
        }

        .inquiry-panel__contacts a {
            color: var(--white);
        }

        .inquiry-panel__contacts a:hover,
        .inquiry-panel__label {
            color: var(--sand-pale);
        }
    }

    /* ---------- Inquiry pop-up ---------- */

    .inquiry-dialog {
        width: min(60rem, calc(100vw - 2rem));
        max-height: calc(100dvh - 2rem);
        margin: auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--white);
        box-shadow: var(--shadow-deep);
        opacity: 0;
        transform: translateY(1.5rem);
        transition: opacity var(--steady) var(--ease-out), transform var(--steady) var(--ease-out), display var(--steady) allow-discrete, overlay var(--steady) allow-discrete;
    }

    .inquiry-dialog[open] {
        opacity: 1;
        transform: none;
    }

    @starting-style {
        .inquiry-dialog[open] {
            opacity: 0;
            transform: translateY(1.5rem);
        }
    }

    .inquiry-dialog::backdrop {
        background: rgb(18 15 32 / 0.72);
        backdrop-filter: blur(3px);
    }

    /* Stays in the top corner while the pop-up scrolls, without taking up a row of its own. */
    .inquiry-dialog__close {
        position: sticky;
        top: var(--space-sm);
        z-index: 2;
        display: grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        margin: var(--space-sm) var(--space-sm) -3.5rem auto;
        color: var(--white);
        background: var(--sand);
        border-radius: 50%;
        transition: background-color var(--quick) var(--ease);
    }

    .inquiry-dialog__close:hover {
        background: var(--sand-ink);
    }

    /* On a phone the pop-up is the whole screen. */
    @media (max-width: 34rem) {
        .inquiry-dialog {
            width: 100vw;
            height: 100dvh;
            max-height: none;
        }
    }

    /* ---------- Cookie notice (appears only when tracking is switched on in the dashboard) ---------- */

    .cookie-notice {
        position: fixed;
        inset: auto var(--space-md) var(--space-md);
        z-index: 60;
        display: flex;
        justify-content: center;
        pointer-events: none;
    }

    .cookie-notice__box {
        max-width: 44rem;
        padding: var(--space-lg);
        color: var(--text-on-navy);
        background: var(--navy);
        border-top: 3px solid var(--sand);
        box-shadow: var(--shadow-deep);
        pointer-events: auto;
    }

    .cookie-notice__title {
        font-family: var(--font-display);
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--white);
    }

    .cookie-notice__text {
        margin-block: var(--space-xs) var(--space-md);
        font-size: var(--text-sm);
    }

    .cookie-notice__actions {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
        align-items: center;
    }

    .cookie-notice__choice {
        min-height: 2.75rem;
        padding: 0.5rem var(--space-md);
        font-weight: 500;
        color: var(--white);
        background: none;
        border: 1px solid rgb(255 255 255 / 0.55);
        cursor: pointer;
        transition: border-color var(--quick) var(--ease);
    }

    .cookie-notice__choice:hover {
        border-color: var(--white);
    }

    /* Google Tag Manager's fallback frame for visitors without JavaScript is never visible. */
    .tag-frame {
        display: none;
    }

    /* ---------- Long-form text ---------- */

    .prose {
        max-width: 45rem;
    }

    .prose > * + * {
        margin-top: var(--space-md);
    }

    .prose h2 {
        margin-top: var(--space-2xl);
        font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
    }

    .prose h3 {
        margin-top: var(--space-xl);
    }

    .prose ul,
    .prose ol {
        display: grid;
        gap: var(--space-xs);
        padding-left: 1.25rem;
    }

    .prose li::marker {
        color: var(--sand-ink);
    }

    /* ---------- Scroll reveals: headings rise, framed photographs wipe in ---------- */

    @media (prefers-reduced-motion: no-preference) {
        .section__head.will-reveal {
            opacity: 0;
            transform: translateY(1.25rem);
            transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
        }

        .section__head.will-reveal.is-visible {
            opacity: 1;
            transform: none;
        }

        .framed.will-reveal img {
            clip-path: inset(0 100% 0 0);
            transition: clip-path 1.1s var(--ease-out) 0.15s;
        }

        .framed.will-reveal::before {
            scale: 0;
            transform-origin: top left;
            transition: scale 0.7s var(--ease-out);
        }

        .framed--right.will-reveal::before {
            transform-origin: top right;
        }

        .framed.will-reveal.is-visible img {
            clip-path: inset(0);
        }

        .framed.will-reveal.is-visible::before {
            scale: 1;
        }
    }
    /* ---------- Safari video overlay ---------- */

    html.safari-video-overlay-open {
        overflow: hidden;
        scrollbar-gutter: auto;
    }

    body.safari-video-overlay-open {
        overflow: hidden;
    }

    .safari-video-overlay[hidden] {
        display: none;
    }

    .safari-video-overlay {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: #000;
    }

    .safari-video-overlay__video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
    }

    .safari-video-overlay__exit-zone {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1;
        width: min(14rem, 100vw);
        height: 7rem;
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-right: max(1rem, env(safe-area-inset-right));
        box-sizing: border-box;
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        opacity: 0;
        transform: translateY(-0.5rem);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .safari-video-overlay__close {
        padding: 0.35rem 1rem;
        font: 600 0.875rem/1 system-ui, sans-serif;
        color: var(--white);
        background: rgb(18 15 32 / 0.78);
        border: 1px solid rgb(255 255 255 / 0.5);
        border-radius: 999px;
        cursor: pointer;
        backdrop-filter: blur(0.5rem);
    }

    .safari-video-overlay__exit-zone:hover,
    .safari-video-overlay__exit-zone:focus-within {
        opacity: 1;
        transform: translateY(0);
    }

    .safari-video-overlay__close:hover,
    .safari-video-overlay__close:focus-visible {
        background: var(--navy);
    }

    .safari-video-overlay__close:focus-visible {
        outline: 3px solid var(--white);
        outline-offset: 3px;
    }

    @media (hover: none) {
        .safari-video-overlay__exit-zone {
            opacity: 1;
            transform: translateY(0);
        }
    }

}
