@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: block;
    src: url('assets/dm-sans-latin.woff2?v=1.1.41') format('woff2');
}

/*
 * Keep directional arrows as thin monochrome text glyphs on every device.
 * The explicit text-variation selector prevents mobile operating systems
 * from substituting a coloured emoji.
 */
.asset .arrow {
    font-family: Arial, Helvetica, sans-serif;
    font-variant-emoji: text;
    font-size: 0 !important;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
}

.asset .arrow::before {
    content: "\2197\FE0E";
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-variant-emoji: text;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
}

.button span[aria-hidden="true"],
.text-link span[aria-hidden="true"],
.nav-contact span[aria-hidden="true"] {
    font-family: Arial, Helvetica, sans-serif;
    font-variant-emoji: text;
    font-style: normal;
    font-weight: 400;
}

/* Mobile-only typography refinements requested for the home page. */
@media (max-width: 650px) {
    /* Keep the following pale strip below the initial mobile viewport. */
    .hero {
        min-height: calc(100vh - 86px);
        min-height: calc(100svh - 86px);
        grid-template-rows: auto minmax(330px, 1fr);
    }

    .contact-mobile-phrase,
    .approach-mobile-phrase {
        white-space: nowrap;
    }

    .contact-mobile-phrase br,
    .approach-mobile-phrase br {
        display: none;
    }

    /* Move the eyebrow and complete hero composition nearer the header. */
    .hero-copy > .eyebrow {
        top: -29px;
        white-space: nowrap;
        transform: none;
    }

    /* Align the complete hero copy with the E below it in the first stat. */
    .hero-copy {
        padding-left: calc(7% + 8px);
        padding-right: calc(7% - 8px);
        padding-top: 44px;
        padding-bottom: 0;
    }

    /* Tighten the eyebrow-to-title gap while retaining the copy rhythm. */
    .hero-copy > h1 {
        top: -44px;
    }

    .hero-copy > p {
        top: auto;
        margin-bottom: 0;
        font-size: 15px;
    }

    /* The full-image hero rules below control the photograph's final position. */
    .hero-photo {
        margin-top: 0;
        transform: none;
    }

    /* Centre the slightly smaller CTA over the shutter and right cladding. */
    .hero-photo > .button {
        position: absolute;
        z-index: 3;
        top: 22px;
        left: 50%;
        width: min(270px, calc(100% - 48px));
        justify-content: space-between;
        gap: 18px;
        padding: 13px 18px;
        font-size: 13px;
        transform: translateX(-50%);
    }

    /* Three-line mobile navigation control; it becomes a close icon when open. */
    .menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 40px;
        padding: 0;
        border: 0;
    }

    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        display: block;
        width: 24px;
        height: 2px;
        background: currentColor;
        transition: transform 180ms ease, background-color 180ms ease;
    }

    .menu-icon {
        position: relative;
    }

    .menu-icon::before,
    .menu-icon::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .menu-icon::before {
        transform: translateY(-7px);
    }

    .menu-icon::after {
        transform: translateY(7px);
    }

    .menu[aria-expanded="true"] .menu-icon {
        background: transparent;
    }

    .menu[aria-expanded="true"] .menu-icon::before {
        transform: rotate(45deg);
    }

    .menu[aria-expanded="true"] .menu-icon::after {
        transform: rotate(-45deg);
    }
}

/*
 * On desktop, JavaScript measures the first statistic's label and supplies
 * the exact horizontal adjustment needed to align the complete hero copy
 * with the E in "Established regional markets".
 */
@media (min-width: 651px) {
    .hero-copy > * {
        transform: translateX(var(--allonby-desktop-hero-shift, 0px));
    }
}

/*
 * Smart header on every screen size: it remains in the document flow,
 * hides while moving down the page, and returns only when moving upwards.
 */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    opacity: 1;
    transition:
        transform 240ms cubic-bezier(.2, .8, .2, 1) 0s,
        opacity 160ms ease-out 0s;
    will-change: transform, opacity;
}

header.allonby-smart-header-hidden {
    transform: translate3d(0, -24px, 0);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 240ms cubic-bezier(.2, .8, .2, 1) 0s,
        opacity 160ms ease-out 0s;
}

/*
 * On the homepage the original header overlays a matching navy spacer, so it
 * initially leaves the screen with the page and never exposes a light band.
 * JavaScript changes it to a hidden fixed header only after its full height has
 * passed. It can then return when the visitor scrolls upwards.
 */
body.home header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    transition: none;
    will-change: auto;
}

body.home #main::before {
    content: "";
    display: block;
    height: 120px;
    background: var(--navy);
}

body.home header.allonby-home-header-floating {
    position: fixed;
    transform: translate3d(0, -24px, 0);
    opacity: 0;
    pointer-events: none;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* Never animate the one-time absolute-to-fixed hand-off itself. JavaScript
   commits this hidden state before adding the ready class. */
body.home header.allonby-home-header-floating:not(.allonby-home-header-ready) {
    transition: none !important;
}

body.home header.allonby-home-header-floating.allonby-home-header-ready {
    transition:
        transform 240ms cubic-bezier(.2, .8, .2, 1) 0s,
        opacity 160ms ease-out 0s;
}

body.home header.allonby-home-header-floating.allonby-home-header-ready:not(.allonby-smart-header-hidden) {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
}

body.home header.allonby-home-header-floating.allonby-smart-header-hidden {
    transform: translate3d(0, -24px, 0);
    opacity: 0;
    pointer-events: none;
}

body.home header.allonby-home-header-floating.allonby-home-header-ready.allonby-smart-header-hidden {
    transition:
        transform 240ms cubic-bezier(.2, .8, .2, 1) 0s,
        opacity 160ms ease-out 0s;
}

@media (max-width: 950px) {
    body.home #main::before {
        height: 90px;
    }
}

@media (max-width: 650px) {
    body.home #main::before {
        height: 86px;
    }

    /*
     * Mobile keeps the zero-delay response while using a faster, even blend
     * so neither its arrival nor departure feels abrupt. Desktop retains its
     * already-approved timing.
     */
    header,
    header.allonby-smart-header-hidden {
        transition:
            transform 180ms cubic-bezier(.22, .61, .36, 1) 0s,
            opacity 180ms linear 0s;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform, opacity;
    }

    header:not(.allonby-smart-header-hidden) {
        transform: translate3d(0, 0, 0);
    }

    body.home header {
        transition: none;
    }

    body.home header.allonby-home-header-floating.allonby-home-header-ready,
    body.home header.allonby-home-header-floating.allonby-home-header-ready.allonby-smart-header-hidden {
        transition:
            transform 180ms cubic-bezier(.22, .61, .36, 1) 0s,
            opacity 180ms linear 0s;
    }
}

@media (prefers-reduced-motion: reduce) {
    header,
    header.allonby-smart-header-hidden {
        transition: none;
    }

    body.home header,
    body.home header.allonby-home-header-floating.allonby-home-header-ready,
    body.home header.allonby-home-header-floating.allonby-home-header-ready.allonby-smart-header-hidden {
        transition: none;
    }
}

/*
 * Full-image home hero. The photograph occupies the complete hero above the
 * statistics strip, while a translucent navy treatment keeps the copy clear
 * without hiding the building.
 */
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: max(560px, calc(100vh - 240px));
    min-height: max(560px, calc(100svh - 240px));
    overflow: hidden;
}

.hero-photo,
.hero-copy {
    grid-area: 1 / 1;
}

.hero-photo {
    position: absolute;
    inset: 0;
    z-index: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    transform: none;
    overflow: hidden;
    background: #101f2d;
}

.hero-photo img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58% !important;
}

/* Gentle exterior shade softens the bollards without obscuring the building. */
.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(4, 11, 18, .16), rgba(4, 11, 18, .28)),
        radial-gradient(ellipse at 31% 78%, rgba(3, 9, 14, .24) 0 5%, transparent 19%),
        radial-gradient(ellipse at 93% 78%, rgba(3, 9, 14, .24) 0 4%, transparent 15%),
        linear-gradient(90deg, rgba(5, 14, 22, .10), transparent 38%, rgba(5, 14, 22, .08));
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(64%, 980px);
    height: 100%;
    padding: 40px 11% 100px 10.6%;
    justify-content: center;
    background: linear-gradient(
        90deg,
        rgba(10, 26, 40, .94) 0%,
        rgba(10, 26, 40, .84) 58%,
        rgba(10, 26, 40, .52) 80%,
        rgba(10, 26, 40, 0) 100%
    );
}

.hero-copy > .eyebrow,
.hero-copy > h1,
.hero-copy > p {
    position: relative;
    top: auto;
}

.hero-copy > p {
    margin-bottom: 30px;
}

.hero-copy > .eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .18em;
}

.hero-copy > .eyebrow,
.hero-copy > h1,
.hero-copy > p {
    text-shadow: 0 2px 14px rgba(0, 0, 0, .72);
}

.photo-caption {
    right: 5.5%;
    bottom: 26px;
    left: auto;
    z-index: 3;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    opacity: 1;
    font-weight: 600;
    text-shadow: none;
}

/* Give the four acquisition requirements stronger visual presence. */
.strip {
    position: relative;
    z-index: 4;
    padding: 34px 5.5%;
    background: #dfe5e8;
    border-top: 4px solid var(--accent);
    box-shadow: 0 -12px 32px rgba(9, 23, 35, .18);
}

.stat strong {
    font-size: 24px;
}

.stat span {
    font-size: 14px;
}

@media (max-width: 650px) {
    .hero {
        min-height: max(400px, calc(100vh - 230px));
        min-height: max(400px, calc(100svh - 230px));
        grid-template-rows: 1fr;
    }

    .hero-photo {
        margin: 0;
        transform: none;
        background: #101f2d;
    }

    .hero-photo img {
        object-position: 58% center !important;
        transform: none;
    }

    .hero-copy {
        width: 100%;
        min-height: inherit;
        padding: 16px 7% 68px;
        justify-content: center;
        background: linear-gradient(
            90deg,
            rgba(8, 23, 36, .90) 0%,
            rgba(8, 23, 36, .74) 58%,
            rgba(8, 23, 36, .34) 100%
        );
    }

    .hero-copy > .eyebrow {
        top: auto;
        margin-bottom: 19px;
        font-size: var(--allonby-mobile-eyebrow-size, clamp(9.4px, 2.62vw, 11.8px));
        line-height: 1.25;
        letter-spacing: .02em;
        transform: translateY(-6px);
    }

    .hero-copy > h1 {
        top: auto;
        margin-bottom: 17px;
        font-size: clamp(32px, 8.9vw, 40px);
        -webkit-text-stroke: .2px #fff;
    }

    .hero-copy > h1 em {
        -webkit-text-stroke: .2px #d4b67d;
    }

    .hero-copy > p {
        top: auto;
        max-width: 360px;
        margin: 0 0 24px;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        opacity: 1;
        font-size: 13.5px;
        font-weight: 700;
        line-height: 1.55;
        transform: translateY(8px);
    }

    /* Keep the four statistics visible at the bottom of the initial screen. */
    .strip {
        height: 144px;
        min-height: 144px;
        padding: 14px 5%;
        gap: 10px 14px;
        align-content: center;
        background: #dfe5e8;
        border-top-width: 4px;
    }

    .stat strong {
        font-size: 17px;
        line-height: 1.25;
        white-space: nowrap;
    }

    .stat span {
        display: block;
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .hero-copy > .button {
        position: static;
        width: auto;
        max-width: 100%;
        align-self: flex-start;
        justify-content: space-between;
        gap: 20px;
        padding: 13px 18px;
        font-size: 13px;
        transform: translateY(16px);
    }

    .photo-caption {
        right: 7%;
        bottom: 16px;
        left: auto;
        z-index: 4;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        opacity: 1 !important;
        filter: none;
        mix-blend-mode: normal;
        font-size: 11px;
        font-weight: 700;
        text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    }
}
