/*
 * Whittle Estate / Power Jet - site styles
 * Palette follows brochure WE071 Phase 3: grey header band, Power Jet blue, red availability flash.
 * Global font: Inter (variable, self-hosted). The brochure's brand fonts (Frutiger, Helvetica Neue Extended)
 * are swapped for Inter on the website due to their limited licence; light weights stand in for the thin display type.
 */

/* ------------------------------------------------------------ Fonts */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-variable-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ------------------------------------------------------------ Tokens */

:root {
    --pj-blue: #699ed4;          /* brochure accent */
    --pj-blue-deep: #3672b0;     /* panels with white text (AA) */
    --pj-blue-ink: #3a78b8;      /* blue text on white */
    --pj-blue-soft: #e8f0f9;
    --pj-grey: #737575;          /* brochure header band */
    --pj-grey-mid: #a5a5a5;
    --pj-grey-200: #dfdfdf;
    --pj-grey-100: #ededed;
    --pj-grey-50: #f6f6f6;
    --pj-dark: #2b2e34;
    --ink: #231f20;
    --muted: #5f6163;
    --pj-red: #cd1719;
    --pj-red-line: #e30613;

    --supply: #f5b700;
    --supply-soft: #fff6d6;
    --supply-ink: #3b2c00;
    --supply-asset: #d4380d;
    --supply-hires: #c27c00;
    --supply-confirm: #3672b0;
    --supply-launch: #5f6163;

    --font-display: var(--font-body);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --header-h: 76px;
    --container: 1600px;         /* content area cap */
    --gutter: 80px;              /* side padding: nav, hero, footer (full width) and the content minimum */
    --section-y: clamp(72px, 9vw, 136px);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------ Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--pj-blue);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 12px 18px;
    background: var(--ink);
    color: #fff;
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: calc(820px + var(--gutter) * 2);
}

/* Nav bar, hero and footer run full width with the side padding only */
.container--full {
    max-width: none;
}

@media (max-width: 1100px) {
    :root {
        --gutter: 40px;
    }
}

@media (max-width: 600px) {
    :root {
        --gutter: 20px;
    }
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

/* ------------------------------------------------------------ Type */

.display {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: clamp(2.1rem, 4.6vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--ink);
    --fill-base: var(--ink);
    --fill-accent: var(--pj-blue-ink);
}

/* Headlines (hero h1 and section h2s) are regular weight */
h1.display,
h2.display {
    font-weight: 400;
}

.display--hero {
    font-size: clamp(2.5rem, 6.6vw, 5.9rem);
    color: #fff;
    --fill-base: #fff;
    --fill-accent: var(--pj-blue);
}

/* Two-tone headline: the first words fill with Power Jet blue as they scroll into view */
.fill {
    background-image: linear-gradient(90deg, var(--fill-accent) 50%, var(--fill-base) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-position 1.3s var(--ease) .15s;
}

html:not(.js) .fill,
.fill.is-in {
    background-position: 0 0;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pj-blue-deep); /* AA on white and on the light grey sections */
}

.kicker::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--pj-blue);
}

.wordmark {
    display: block;
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: -0.025em;
    text-transform: lowercase;
}

/* same size as the section headline it sits above */
.wordmark--xl {
    margin: 4px 0 6px;
    font-size: clamp(2.1rem, 4.6vw, 4rem);
    line-height: 1.04;
    color: var(--pj-blue-ink);
}

.prose p + p {
    margin-top: 1em;
}

/* No dangling words: balanced headings, no single-word last lines (helps alongside whittle_text()) */
h1, h2, h3,
.display,
.kicker {
    text-wrap: balance;
}

p,
li,
dd,
figcaption,
address {
    text-wrap: pretty;
}

.lead {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.55;
    color: var(--ink);
}

.prose {
    color: var(--muted);
}

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

.btn,
.cc-brochure-btn.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 0;
    background: var(--pj-blue-deep);
    color: #fff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.btn .icon {
    width: 18px;
    height: 18px;
    transition: transform .25s var(--ease);
}

.btn:hover .icon--arrow {
    transform: translateX(4px);
}

.btn--primary:hover,
.cc-brochure-btn.btn--primary:hover,
.cc-brochure-btn.btn--primary:focus {
    background: #2a5d93;
}

.btn--ghost,
.cc-brochure-btn.btn--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.btn--ghost:hover,
.cc-brochure-btn.btn--ghost:hover,
.cc-brochure-btn.btn--ghost:focus {
    background: #fff;
    color: var(--ink);
}

.btn--light,
.cc-brochure-btn.btn--light {
    background: #fff;
    color: var(--pj-blue-deep);
}

.btn--light:hover,
.cc-brochure-btn.btn--light:hover,
.cc-brochure-btn.btn--light:focus {
    background: var(--pj-blue-soft);
}

.btn--outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
}

.btn--outline-light:hover {
    background: #fff;
    color: var(--pj-blue-deep);
}

.btn--sm,
.cc-brochure-btn.btn--sm {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 12px;
}

.btn.is-disabled {
    opacity: .55;
    cursor: default;
}

.cc-brochure-icon {
    width: 16px;
    height: 16px;
}

/* ------------------------------------------------------------ Header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    border-bottom: 2px solid #fff;
    background: rgba(115, 117, 117, .94);
    color: #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(115, 117, 117, .98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Three columns: wordmark (left) | nav (exact centre) | brochure + Canmoor (right) */
.site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    height: 100%;
    padding: 0 var(--gutter);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-self: start;
    line-height: 1;
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 1.75rem;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.site-nav__list {
    display: flex;
    gap: clamp(18px, 2.2vw, 34px);
}

.site-nav__link {
    position: relative;
    display: block;
    padding: 8px 0;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--pj-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
    transform: scaleX(1);
}

.site-nav__mobile-extra {
    display: none;
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 18px;
}

.site-header__canmoor img {
    width: 112px;
    height: auto;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .6);
    background: transparent;
    cursor: pointer;
}

.nav-toggle__bars {
    position: absolute;
    left: 11px;
    right: 11px;
    top: 50%;
    height: 14px;
    transform: translateY(-50%);
}

.nav-toggle__bars span {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: #fff;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }

.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
    .site-nav__list {
        gap: 18px;
    }

    .site-header__canmoor {
        display: none;
    }
}

@media (max-width: 1020px) {
    /* the nav becomes a full-screen menu, so the bar is just wordmark + actions */
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    /* No blur here: backdrop-filter would trap the fixed menu inside the 76px bar */
    .site-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: var(--pj-grey);
    }

    /* wordmark and close button stay on top of the open menu */
    .brand,
    .site-header__actions {
        position: relative;
        z-index: 2;
    }

    .nav-toggle {
        display: block;
    }

    /* Full-screen menu, items centred horizontally and vertically */
    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
        background: var(--pj-grey);
        text-align: center;
        visibility: hidden;
        opacity: 0;
        transition: opacity .3s var(--ease), visibility 0s linear .3s;
        overflow-y: auto;
    }

    .nav-open .site-nav {
        visibility: visible;
        opacity: 1;
        transition-delay: 0s;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .site-nav__link {
        padding: 10px 0;
        font-size: clamp(1.9rem, 7vw, 2.6rem);
        font-weight: 400;
        letter-spacing: -0.01em;
        text-transform: none;
    }

    .site-nav__link::after {
        display: none;
    }

    .site-nav__link.is-active {
        color: #cfe0f2;
    }

    .site-nav__mobile-extra {
        display: grid;
        justify-items: center;
        gap: 16px;
    }

    .site-nav__address {
        max-width: 30ch;
        font-size: 14px;
        color: #fff;
    }

    .nav-open {
        overflow: hidden;
    }
}

@media (max-width: 560px) {
    :root {
        --header-h: 66px;
    }

    .site-header__brochure {
        display: none !important;
    }

    .brand__name {
        font-size: 1.4rem;
    }
}

/* ------------------------------------------------------------ Hero */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 48px) 0 clamp(150px, 20vh, 220px);
    overflow: hidden;
    background: var(--pj-dark);
    color: #fff;
}

.hero__media,
.hero__slide,
.hero__shade {
    position: absolute;
    inset: 0;
}

.hero__slide {
    opacity: 0;
    transition: opacity 1.6s var(--ease);
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    transform: scale(1.02);
}

.hero__slide.is-active img {
    animation: kenburns 14s linear both;
}

@keyframes kenburns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.12); }
}

.hero__shade {
    background:
        linear-gradient(180deg, rgba(20, 22, 26, .55) 0%, rgba(20, 22, 26, 0) 32%),
        linear-gradient(90deg, rgba(20, 22, 26, .72) 0%, rgba(20, 22, 26, .25) 55%, rgba(20, 22, 26, 0) 75%),
        linear-gradient(0deg, rgba(20, 22, 26, .55) 0%, rgba(20, 22, 26, 0) 40%);
}

.hero__inner {
    position: relative;
    z-index: 2;
}

.strap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 26px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.strap__sep {
    width: 8px;
    height: 8px;
    background: var(--pj-blue);
}

.hero__lead {
    max-width: 34em;
    margin-top: 24px;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: rgba(255, 255, 255, .9);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-card {
    position: absolute;
    z-index: 3;
    right: var(--gutter);
    bottom: clamp(28px, 6vh, 64px);
    display: grid;
    gap: 6px;
    width: min(400px, calc(100% - var(--gutter) * 2));
    padding: 30px 30px 24px;
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 36px 70px rgba(0, 0, 0, .3);
}

.hero-card__flash {
    position: absolute;
    top: -16px;
    left: 30px;
    padding: 7px 14px;
    background: var(--pj-red);
    color: #fff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-card .wordmark {
    margin-top: 6px;
    font-size: 2.6rem;
    color: var(--pj-blue-ink);
}

.hero-card__units {
    font-size: 14px;
    color: var(--muted);
}

.hero-card__size {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 300;
}

.hero-card__size strong {
    font-weight: 800;
}

.hero-card__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--pj-grey-200);
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pj-blue-deep);
}

/* The whole card is clickable, but the supply chip stays on top */
.hero-card__cta::before {
    content: '';
    position: absolute;
    inset: 0;
}

.hero-card .supply-chip {
    position: relative;
    z-index: 2;
}

.hero__caption {
    position: absolute;
    z-index: 2;
    right: var(--gutter);
    bottom: 14px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}

.hero__scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 20px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    animation: nudge 2.4s var(--ease) infinite;
}

@keyframes nudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@media (max-width: 900px) {
    .hero {
        padding-bottom: 40px;
    }

    .hero-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: auto;
        margin: 48px var(--gutter) 34px;
    }

    .hero__scroll {
        display: none;
    }
}

/* ------------------------------------------------------------ Sections */

.section {
    position: relative;
    padding: var(--section-y) 0;
}

/* Sections alternate white / very light grey so it's clear where each one ends.
   Every section keeps its own top + bottom padding; Location ends on the full-width map row. */
.availability,
.location {
    background: var(--pj-grey-50);
}

/* panels that were light grey turn white on the grey sections */
.availability .ticks,
.location .find__item {
    background: #fff;
}

.section--tint {
    background: var(--pj-grey-50);
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head__lead {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
    }
}

/* Scroll reveal */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------------------ Estate */

.estate .split__body {
    padding-top: 42px;
}

@media (max-width: 900px) {
    .estate .split__body {
        padding-top: 0;
    }
}

/* Estate aerial with occupier labels */
.aerial {
    margin-top: clamp(56px, 7vw, 96px);
}

.aerial__scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.aerial__canvas {
    position: relative;
    min-width: 960px;
    container-type: inline-size;
}

.aerial__photo,
.aerial__overlay {
    width: 100%;
    height: auto;
}

.aerial__overlay {
    position: absolute;
    inset: 0;
    height: 100%;
    pointer-events: none;
}

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

.tag {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    width: 0;
    height: 0;
    --stem: calc(var(--len) * 1cqw);
}

.tag__dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--pj-blue);
    transform: translate(-50%, -50%);
}

.tag__stem {
    position: absolute;
    z-index: 1;
    background: #fff;
}

/* The pointer circle sits on top of its line */
.tag__dot {
    z-index: 2;
}

.tag__label {
    position: absolute;
    padding: .5em .85em;
    border: 1px solid var(--pj-blue);
    background: #fff;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(9px, .9cqw, 15px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}

.tag:hover .tag__label {
    background: var(--pj-blue-deep);
    border-color: var(--pj-blue-deep);
    color: #fff;
}

.tag--up .tag__stem    { left: -.5px; bottom: 0; width: 1.5px; height: var(--stem); }
.tag--up .tag__label   { left: 0; bottom: var(--stem); transform: translateX(-50%); }
.tag--down .tag__stem  { left: -.5px; top: 0; width: 1.5px; height: var(--stem); }
.tag--down .tag__label { left: 0; top: var(--stem); transform: translateX(-50%); }
.tag--left .tag__stem  { right: 0; top: -.5px; height: 1.5px; width: var(--stem); }
.tag--left .tag__label { right: var(--stem); top: 0; transform: translateY(-50%); }
.tag--right .tag__stem { left: 0; top: -.5px; height: 1.5px; width: var(--stem); }
.tag--right .tag__label { left: var(--stem); top: 0; transform: translateY(-50%); }
.tag--none .tag__label { left: 0; top: 0; transform: translate(-50%, -50%); }

/* Labels draw in one after another when the aerial scrolls into view (--i = label order):
   the circle pops on the building, the line grows out of it, then the label fades up */
.tag--up .tag__stem    { transform-origin: 50% 100%; }
.tag--down .tag__stem  { transform-origin: 50% 0; }
.tag--left .tag__stem  { transform-origin: 100% 50%; }
.tag--right .tag__stem { transform-origin: 0 50%; }

.js .aerial .tag__dot {
    transform: translate(-50%, -50%) scale(0);
    transition: transform .35s var(--ease) calc(var(--i) * 70ms + .3s);
}

.js .aerial .tag__stem {
    transition: transform .45s var(--ease) calc(var(--i) * 70ms + .45s);
}

.js .aerial .tag--up .tag__stem,
.js .aerial .tag--down .tag__stem {
    transform: scaleY(0);
}

.js .aerial .tag--left .tag__stem,
.js .aerial .tag--right .tag__stem {
    transform: scaleX(0);
}

.js .aerial .tag__label {
    opacity: 0;
    translate: 0 10px;
    transition: opacity .5s var(--ease) calc(var(--i) * 70ms + .7s), translate .5s var(--ease) calc(var(--i) * 70ms + .7s), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.js .aerial.is-in .tag__dot {
    transform: translate(-50%, -50%) scale(1);
}

.js .aerial.is-in .tag__stem {
    transform: none;
}

.js .aerial.is-in .tag__label {
    opacity: 1;
    translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .js .aerial .tag__dot,
    .js .aerial .tag__stem,
    .js .aerial .tag__label {
        transition-delay: 0s !important;
    }
}

.tag--pj .tag__label {
    padding: .65em 1.3em;
    border-width: 2px;
    color: var(--pj-blue-deep);
    font-size: clamp(11px, 1.25cqw, 21px);
    font-weight: 700;
    letter-spacing: .08em;
}

.tag--pj .tag__dot {
    display: none;
}

.tag--amenity .tag__label {
    color: var(--pj-blue-deep);
    font-weight: 700;
}

.tag--road .tag__label {
    border-color: #fff;
    background: var(--pj-blue-deep);
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: none;
}

.aerial__caption {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

.legend {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.legend::before {
    content: '';
    width: 28px;
    height: 0;
    border-top: 3px dashed var(--pj-red-line);
}

.legend--pj::before {
    border-top: 2px solid var(--pj-blue);
}

.aerial__hint {
    display: none;
    margin-left: auto;
}

@media (max-width: 960px) {
    .aerial__hint {
        display: inline;
    }
}

/* Occupier logos */
.occupiers {
    margin-top: clamp(56px, 7vw, 96px);
}

.occupiers__title {
    margin-bottom: 28px;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 200;
}

/* 13 occupiers: rows are centred so a short last row sits in the middle */
.logos {
    --per-row: 7;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.logos__item {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 calc(100% / var(--per-row));
    min-height: 120px;
    padding: 26px 20px;
}

.logos__item img {
    width: auto;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .logos {
        --per-row: 5;
    }
}

@media (max-width: 700px) {
    .logos {
        --per-row: 3;
    }
}

@media (max-width: 420px) {
    .logos {
        --per-row: 2;
    }
}

/* ------------------------------------------------------------ Availability */

.pj-head {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: end;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.pj-head__size {
    justify-self: end;
    text-align: right;
}

.pj-head__units {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.pj-head__area {
    margin: 8px 0 14px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 200;
    line-height: 1.1;
}

.pj-head__area strong,
.hero-card__size strong,
.contact__brochure strong {
    font-weight: 800;
    white-space: nowrap;
}

.pj-head__date {
    display: inline-block;
    padding: 8px 14px;
    background: var(--pj-red);
    color: #fff;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .pj-head {
        grid-template-columns: 1fr;
    }

    .pj-head__size {
        justify-self: start;
        text-align: left;
    }
}

/* Availability images: large tile + two stacked tiles; the second row mirrors the first.
   The large tile sets the row height, the small tiles split it; every image fills its tile. */
.pj-media {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.pj-media + .pj-media {
    margin-top: 14px;
}

.pj-media--mirror {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.pj-media__main {
    grid-row: 1 / span 2;
    aspect-ratio: 16 / 9;
}

.pj-media--mirror .pj-media__main {
    grid-column: 2;
}

.pj-media--mirror .pj-media__side {
    grid-column: 1;
}

.pj-media figure {
    position: relative;
    overflow: hidden;
    background: var(--pj-grey-100);
}

.pj-media__link {
    position: absolute;
    inset: 0;
    display: block;
    cursor: zoom-in;
}

.pj-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.pj-media figure:hover img {
    transform: scale(1.03);
}

.pj-media__zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.pj-media figure:hover .pj-media__zoom,
.pj-media figure:focus-within .pj-media__zoom {
    opacity: 1;
    transform: none;
}

.pj-media figcaption {
    position: absolute;
    left: 14px;
    bottom: 10px;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
    pointer-events: none;
}

.pj-media__side .supply-box {
    height: 100%;
    aspect-ratio: auto;
}

@media (max-width: 760px) {
    .pj-media,
    .pj-media--mirror {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .pj-media__main,
    .pj-media--mirror .pj-media__main {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .pj-media__side,
    .pj-media--mirror .pj-media__side {
        grid-column: auto;
        aspect-ratio: 3 / 2;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: clamp(40px, 5vw, 64px);
    background: var(--pj-blue-deep);
    color: #fff;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 34px 16px 30px;
    text-align: center;
}

.stat + .stat {
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.stat__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 6px;
    color: #cfe0f2;
}

.stat__value {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
    font-weight: 200;
    line-height: 1;
    white-space: nowrap;
}

.stat__value small {
    font-size: .45em;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stat__label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
}

@media (max-width: 960px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat + .stat {
        border-left: 0;
    }

    .stat {
        border-bottom: 1px solid rgba(255, 255, 255, .22);
    }

    .stat:nth-child(even) {
        border-left: 1px solid rgba(255, 255, 255, .22);
    }

    .stat:last-child {
        grid-column: span 2;
        border-bottom: 0;
    }
}

.ticks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 40px;
    padding: 34px clamp(20px, 3vw, 40px);
    background: var(--pj-grey-100);
}

.ticks li {
    position: relative;
    padding-left: 22px;
    font-size: 15.5px;
}

.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 9px;
    height: 9px;
    background: var(--pj-blue);
}

@media (max-width: 960px) {
    .ticks {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .ticks {
        grid-template-columns: 1fr;
    }
}

/* Site plan + accommodation */
.accommodation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: clamp(56px, 7vw, 96px);
    box-shadow: 0 30px 70px rgba(35, 31, 32, .08);
}

/* Order in the section: heading, site plan + accommodation, stats, bullets */
.pj-head + .accommodation {
    margin-top: 0;
}

.siteplan {
    position: relative;
    padding: clamp(20px, 3vw, 40px);
    background: #edeef0;
}

/* The plan stays in view while the accommodation tables scroll past */
.siteplan a {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    display: block;
}

.siteplan__zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(35, 31, 32, .78);
    color: #fff;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.siteplan figcaption {
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--muted);
}

.acc-panel {
    padding: clamp(28px, 4vw, 52px);
    background: var(--pj-blue-deep);
    color: #fff;
}

.acc-panel__title {
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.acc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.acc-table + .acc-table {
    margin-top: 30px;
}

.acc-table th,
.acc-table td {
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    font-weight: 400;
    text-align: right;
}

.acc-table th[scope="row"],
.acc-table thead th:first-child {
    text-align: left;
}

.acc-table thead th {
    padding-top: 0;
    border-bottom-color: rgba(255, 255, 255, .7);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.acc-table thead th + th {
    width: 22%;
}

.acc-table .is-total th,
.acc-table .is-total td {
    font-weight: 700;
}

.acc-table .is-spec th,
.acc-table .is-spec td {
    color: #fff;
}

.acc-panel__combined {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    margin-top: 28px;
    padding: 18px 20px;
    background: rgba(0, 0, 0, .14);
}

.acc-panel__combined strong {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
}

.acc-panel__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

@media (max-width: 960px) {
    .accommodation {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------ Lightbox (site plan, maps, availability images) */

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(20, 22, 26, .96);
    color: #fff;
    overflow: hidden;
}

.lightbox::backdrop {
    background: rgba(20, 22, 26, .8);
}

/* The image always fits the screen (limited by height or width, whichever runs out first)
   with 12% clear space around it: no scrolling, never touching the edges */
.lightbox__figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
    height: 100%;
    padding: 12vh 12vw;
}

.lightbox__figure img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.lightbox__caption {
    font-size: 14px;
    text-align: center;
    color: rgba(255, 255, 255, .8);
}

.lightbox__btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(0, 0, 0, .3);
    cursor: pointer;
}

.lightbox__btn:hover {
    background: var(--pj-blue-deep);
}

/* single images (site plan) get no prev / next arrows */
.lightbox__btn[hidden] {
    display: none;
}

.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev  { left: 12px; top: 50%; margin-top: -24px; }
.lightbox__next  { right: 12px; top: 50%; margin-top: -24px; }

/* ------------------------------------------------------------ Location */

.location .split {
    align-items: stretch;
}

.location .prose {
    margin-top: 28px;
}

.find {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
}

.find__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--pj-grey-50);
    border-left: 3px solid var(--pj-blue);
}

.find__item .icon,
.find__w3w {
    width: 26px;
    height: 26px;
    color: var(--pj-blue-ink);
}

.find__w3w {
    font-weight: 800;
    font-size: 16px;
    line-height: 26px;
    color: #e11f26;
    letter-spacing: -.08em;
}

.find__item small {
    display: block;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.find__item strong {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.find__item a:hover strong {
    color: var(--pj-blue-ink);
}

@media (max-width: 1100px) {
    .find {
        grid-template-columns: 1fr;
    }
}

.comms {
    padding: clamp(28px, 4vw, 48px);
    background: var(--pj-blue-deep);
    color: #fff;
}

.comms__title {
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.comms__group {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    align-items: start;
}

.comms__group + .comms__group {
    margin-top: 28px;
}

.comms__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
}

.comms__icon .icon {
    width: 26px;
    height: 26px;
}

.comms__list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    font-size: 15.5px;
}

.comms__list dd {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Full-width map row closing the section: local map | Google map | regional map.
   The two map images set the row height; the Google map fills the centre column. */

.location__row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: clamp(48px, 6vw, 80px);
    border-top: 6px solid var(--pj-blue);
    background: #eceeef;
}

.location__col--gmap {
    width: 100%;
    min-width: 0;
}

.location__gmap {
    width: 100%;
    height: 50vh !important;
    min-height: 400px;
}


.location__row:not(.has-gmap) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.location:has(.location__row) {
    padding-bottom: 0;
}

.location__col {
    position: relative;
    min-width: 0;
}

.location__col a {
    display: block;
    height: 100%;
    cursor: zoom-in;
}

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

.location__col--gmap {
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
}

.location__col--gmap .cc-map {
    display: block;
}

@media (max-width: 760px) {
    .location__row,
    .location__row:not(.has-gmap) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .location__col--gmap {
        grid-column: 1 / -1;
        order: -1;
        height: 420px;
        border: 0;
        border-bottom: 2px solid #fff;
    }
}

.cc-map-info-title {
    font-family: var(--font-display);
}

/* ------------------------------------------------------------ Contact
 * Kept simple: agency logos and plain white text straight on the grey band, no cards or borders.
 */

.contact {
    background: var(--pj-grey);
    color: #fff;
}

.contact .display {
    color: #fff;
    --fill-base: #fff;
    --fill-accent: #cfe0f2;
}

.contact .kicker,
.contact .section-head__lead {
    color: #fff;
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
}

.agent__logo {
    display: inline-block;
}

.agent__logo img {
    width: auto;
    height: clamp(100px, 9vw, 130px);
}

.people {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.person {
    display: grid;
    gap: 2px;
    font-size: 14px;
    line-height: 1.5;
}

.person__name {
    font-size: 15px;
    font-weight: 600;
}

.person a,
.contact__canmoor {
    width: fit-content;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color .2s var(--ease);
}

.person a:hover,
.person a:focus-visible {
    text-decoration-color: currentColor;
}

.contact__brochure {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.contact__brochure .wordmark {
    font-size: 2rem;
}

.contact__brochure p {
    font-size: 14px;
}

.contact__canmoor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact__canmoor img {
    width: 120px;
}

@media (max-width: 1020px) {
    .contact__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact__brochure {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------ Footer */

.site-footer {
    padding: 40px 0 48px;
    background: var(--pj-dark);
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px 48px;
}

.site-footer__brand .brand__name {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.site-footer address {
    font-style: normal;
}

.site-footer__disclaimer {
    max-width: 760px;
    justify-self: end;
    font-size: 12px;
    line-height: 1.6;
}

.site-footer__legal {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.site-footer__legal a:hover {
    color: #fff;
}

@media (max-width: 760px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__disclaimer {
        justify-self: start;
    }
}

/* ------------------------------------------------------------ Inner pages */

.page-main {
    padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 var(--section-y);
}

.entry + .entry {
    margin-top: 48px;
}

.entry__title {
    margin-bottom: 28px;
}

/* ------------------------------------------------------------ Supply markers
 * Hatched blocks = missing asset, yellow tags = needs a better version,
 * highlighted text = to confirm. Hidden entirely when WHITTLE_SHOW_SUPPLY is off.
 */

.supply-chip {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--supply-ink);
    color: #fff;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    vertical-align: middle;
    box-shadow: 0 0 0 1.5px #fff;
    cursor: pointer;
}

.supply-chip--asset   { background: var(--supply-asset); }
.supply-chip--hires   { background: var(--supply-hires); }
.supply-chip--confirm { background: var(--supply-confirm); }
.supply-chip--launch  { background: var(--supply-launch); }

.supply-chip:hover {
    outline: 2px solid var(--supply);
}

.supply-box {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: var(--ratio, 4 / 3);
    padding: 20px;
    border: 2px dashed #d99e00;
    background: repeating-linear-gradient(-45deg, var(--supply-soft) 0 14px, #fdebb0 14px 28px);
    color: var(--supply-ink);
    text-align: center;
}

.supply-box--asset {
    border-color: var(--supply-asset);
}

.supply-box__inner {
    display: grid;
    justify-items: center;
    gap: 8px;
    max-width: 30ch;
    padding: 18px 20px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 6px 20px rgba(59, 44, 0, .12);
}

.supply-box__icon {
    width: 34px;
    height: 34px;
    color: var(--supply-asset);
}

.supply-box__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--supply-asset);
}

.supply-box__label {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.supply-box__detail {
    font-size: 12px;
    color: #6b5a26;
}

.supply-badge {
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    background: var(--supply);
    color: var(--supply-ink);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.supply-flag {
    padding: 0 .1em;
    background: linear-gradient(transparent 50%, rgba(245, 183, 0, .55) 50%);
    color: inherit;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.supply-flag .supply-chip {
    margin-left: 6px;
    transform: translateY(-.1em);
}

/* On coloured panels the highlighter turns muddy: use a dashed amber underline instead */
.acc-panel .supply-flag,
.stats .supply-flag,
.comms .supply-flag,
.contact .supply-flag,
.site-footer .supply-flag {
    padding-bottom: 1px;
    background: none;
    border-bottom: 2px dashed var(--supply);
}

/* Highlight a marker when jumped to from the checklist */
[id^="supply-"]:target,
.is-supply-target {
    animation: supply-pulse 1.6s var(--ease) 2;
}

@keyframes supply-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 183, 0, 0); }
    40% { box-shadow: 0 0 0 10px rgba(245, 183, 0, .55); }
}

/* Floating checklist */
.supply-panel {
    position: fixed;
    z-index: 200;
    left: 16px;
    bottom: 16px;
    font-family: var(--font-body);
}

.supply-panel__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 16px;
    border: 0;
    background: var(--supply);
    color: var(--supply-ink);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    cursor: pointer;
}

.supply-panel__count {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    border-radius: 13px;
    background: var(--supply-ink);
    color: #fff;
}

.supply-panel__sheet {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    width: min(440px, calc(100vw - 32px));
    max-height: min(72vh, 720px);
    overflow-y: auto;
    padding: 0 22px 20px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    border-top: 5px solid var(--supply);
}

.supply-panel__sheet[hidden] {
    display: none;
}

.supply-panel__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    background: #fff;
    font-family: var(--font-display);
    font-size: 15px;
}

.supply-panel__close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    background: var(--pj-grey-100);
    cursor: pointer;
}

.supply-panel__intro,
.supply-panel__foot {
    font-size: 12.5px;
    color: var(--muted);
}

.supply-panel__foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--pj-grey-200);
}

.supply-panel__group {
    margin: 22px 0 10px;
    padding-left: 10px;
    border-left: 4px solid var(--supply-launch);
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.supply-panel__group--asset   { border-color: var(--supply-asset); }
.supply-panel__group--hires   { border-color: var(--supply-hires); }
.supply-panel__group--confirm { border-color: var(--supply-confirm); }

.supply-panel__list {
    display: grid;
    gap: 2px;
}

.supply-panel__item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 10px 8px;
    font-size: 13.5px;
    line-height: 1.45;
}

.supply-panel__item.is-current {
    background: var(--supply-soft);
}

.supply-panel__item p {
    margin-top: 2px;
    color: var(--muted);
}

.supply-panel__goto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pj-blue-ink);
}

.supply-panel__goto .icon {
    width: 14px;
    height: 14px;
}

/* ------------------------------------------------------------ Motion preferences */

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

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

/* Supply markers on small screens: badges wrap, the checklist button shrinks to icon + count */
.supply-badge {
    max-width: calc(100% - 24px);
    white-space: normal;
}

@media (max-width: 560px) {
    .supply-panel {
        left: 12px;
        bottom: 12px;
    }

    .supply-panel__toggle > span:not(.supply-panel__count) {
        display: none;
    }

    .supply-panel__toggle {
        padding: 8px 8px 8px 12px;
    }
}




/* Gallery: balance the first row only */
#gallery .container > .pj-media:first-of-type {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    align-items: stretch;
}

/* Hide only the large left image in the first row */
#gallery .container > .pj-media:first-of-type .pj-media__main {
    display: none;
}

/* Make the two remaining images equal-sized */
#gallery .container > .pj-media:first-of-type .pj-media__side {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 3 / 2;
    min-width: 0;
}

/* Keep the second row unchanged */
@media (max-width: 760px) {
    #gallery .container > .pj-media:first-of-type {
        grid-template-columns: 1fr;
    }
}

