/* ==========================================================
   Biddlesport main stylesheet (mobile first)
   Breakpoints: 640 (large phone), 900 (tablet), 1100 (desktop nav)
   ========================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--body-size);
    line-height: var(--body-lh);
    color: var(--text-on-dark);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0; }
p + p { margin-top: 1.4em; }

h1, h2, h3, .h2, .h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin: 0;
}
h1 {
    font-size: var(--h1-size);
    line-height: var(--h1-lh);
    text-transform: uppercase;
}
h2, .h2 {
    font-size: var(--h2-size);
    line-height: var(--h2-lh);
    letter-spacing: var(--h2-ls);
}
h3, .h3 {
    font-size: var(--h3-size);
    line-height: var(--h3-lh);
    letter-spacing: 0;
}

.lead {
    font-family: var(--font-heading);
    font-size: var(--h3-size);
    line-height: var(--h3-lh);
}

.eyebrow {
    font-size: var(--eyebrow-size);
    line-height: var(--eyebrow-lh);
    text-transform: capitalize;
}
.eyebrow--olive { color: var(--colour-olive); }

.rule {
    display: block;
    width: 96px;
    height: 2px;
    background: var(--accent-rule);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    padding: 0.5rem 1rem;
    background: var(--colour-white);
    color: var(--colour-black);
}
.skip-link:focus { top: 1rem; }

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

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

/* Vertical rhythm between page sections (Figma: Content wrapper gap 160) */
.content {
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
    padding-bottom: var(--page-end);
}

/* ---------- Buttons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font: inherit;
    font-size: 1.25rem;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.button .icon--arrow { flex: none; transition: transform var(--transition); }
.button:hover .icon--arrow { transform: translateX(3px); }

.button__circle {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
.button--white-circle,
.button--moss-circle { padding-right: 9px; }

.button--dark { background: var(--colour-ink); color: var(--colour-white); }
.button--dark:hover { background: var(--colour-moss); }

.button--white-circle { background: var(--colour-white); color: var(--colour-black); }
.button--white-circle .button__circle { background: var(--colour-moss); color: var(--colour-white); }
.button--white-circle:hover { background: var(--colour-mint); }

.button--moss-circle { background: var(--colour-moss); color: var(--colour-white); }
.button--moss-circle .button__circle { background: var(--colour-white); color: var(--colour-moss); }
.button--moss-circle:hover { background: var(--colour-ink); }

.button--outline { border-color: var(--colour-white); color: var(--colour-white); background: transparent; }
.button--outline:hover { background: var(--colour-white); color: var(--colour-black); }

.button--olive { background: var(--colour-olive); color: var(--colour-black); }
.button--olive:hover { background: var(--colour-mint); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    color: var(--colour-white);
    font-size: var(--small-size);
    line-height: var(--small-lh);
    background-color: transparent;
    transition:
        transform 0.4s cubic-bezier(0.65, 0, 0.35, 1),
        background-color 0.3s ease;
}
/* Solid background once scrolled away from the top */
.site-header.header--scrolled { background-color: var(--colour-moss); }
/* Hide on scroll down, reveal on scroll up (see main.js) */
.site-header.header--hidden { transform: translateY(-100%); }
/* Keep the header in place while the mobile menu is open */
body.nav-open .site-header { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .site-header { transition: none; }
}
.site-header a { text-decoration: none; }
.site-header a:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-header__top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-top);
    padding: 8px 20px;
    font-size: 0.875rem;
}

.site-header__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-main);
    padding: 16px 20px;
    border-block: 1px solid var(--rule-on-dark);
}

.site-logo { display: block; color: var(--colour-white); line-height: 0; }
.site-logo svg { width: 34px; height: 44px; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
}
.nav-toggle__bar {
    display: block;
    height: 2px;
    background: currentColor;
    transition: transform var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile nav panel */
.site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--header-top) + var(--header-main) + 40px) 20px 40px;
    background: var(--colour-moss);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.site-nav.is-open { opacity: 1; visibility: visible; }
.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: var(--font-heading);
    font-size: var(--h2-size);
    line-height: 1.2;
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--colour-olive); text-underline-offset: 8px; }
.site-nav__contact { display: flex; flex-direction: column; gap: 4px; }
body.nav-open { overflow: hidden; }

.site-header__cta { display: none; }

@media (min-width: 640px) {
    .site-header__top { font-size: var(--small-size); }
    .site-header__cta { display: inline-flex; }
}

@media (min-width: 1100px) {
    .nav-toggle { display: none; }
    .site-nav {
        position: absolute;
        inset: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: auto;
        padding: 0;
        background: none;
        opacity: 1;
        visibility: visible;
    }
    .site-nav__list {
        flex-direction: row;
        gap: 30px;
        font-family: var(--font-body);
        font-size: var(--small-size);
        line-height: var(--small-lh);
    }
    .site-nav a[aria-current="page"] { text-underline-offset: 6px; }
    .site-nav__contact { display: none; }
}

/* ---------- Page intro ---------- */
.page-intro {
    padding-top: calc(var(--header-top) + var(--header-main) + clamp(3rem, 1rem + 6vw, 5.25rem));
    padding-bottom: var(--space-2xl);
}
.page-intro__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.page-intro__inner::after {
    content: "";
    display: block;
    height: 1px;
    background: var(--rule-on-dark);
    margin-top: 10px;
}
.page-intro__heading { display: flex; flex-direction: column; gap: var(--space-md); }
.page-intro__text { max-width: 458px; }

@media (min-width: 900px) {
    .page-intro__inner {
        display: grid;
        grid-template-columns: 1fr minmax(0, 458px);
        column-gap: 60px;
        align-items: start;
    }
    .page-intro__inner::after { grid-column: 1 / -1; margin-top: 10px; }
}

/* ---------- Home hero ---------- */
.hero {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    overflow: hidden;
    background: var(--colour-ink);
    text-align: center;
}
.hero__video,
.hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero__video { object-fit: cover; }
.hero__overlay {
    background: linear-gradient(180deg,
        rgba(11, 18, 21, 0.9) 0%,
        rgba(11, 18, 21, 0.78) 13%,
        rgba(11, 18, 21, 0.69) 19%,
        rgba(11, 18, 21, 0.56) 32%,
        rgba(11, 18, 21, 0.41) 45%,
        rgba(11, 18, 21, 0.32) 56%,
        rgba(11, 18, 21, 0.25) 100%);
}
.hero__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 33px;
    padding: calc(var(--header-top) + var(--header-main)) var(--gutter) 0;
}
.hero__title { text-transform: none; font-size: var(--h2-size); line-height: 1; letter-spacing: 0; }

.hero__toggle {
    position: absolute;
    right: var(--gutter);
    bottom: var(--gutter);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    color: var(--colour-white);
    cursor: pointer;
}
.hero__toggle::before,
.hero__toggle::after {
    content: "";
    position: absolute;
    top: 14px;
    width: 4px;
    height: 14px;
    background: currentColor;
}
.hero__toggle::before { left: 15px; }
.hero__toggle::after { right: 15px; }
.hero__toggle.is-paused::after { display: none; }
.hero__toggle.is-paused::before {
    left: 16px;
    width: 0;
    height: 0;
    background: none;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent currentColor;
}

/* ---------- CTA panels ---------- */
.cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-card);
    color: var(--text-on-light);
}
.cta--olive { background: var(--colour-olive); }
.cta--white { background: var(--colour-white); }
.cta--mint { background: var(--colour-mint); }
.cta--orange { background: var(--colour-orange); }

.cta__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding: 28px 16px;
}
.cta__text p + p { margin-top: 1em; }
.cta__title a { text-decoration: none; }
.cta__title a:hover { text-decoration: underline; text-underline-offset: 6px; }
.cta__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: var(--radius-image);
}

@media (min-width: 900px) {
    .cta__body { gap: var(--space-lg); padding: 40px 60px 40px 12px; }
    .cta--horizontal { flex-direction: row; align-items: stretch; gap: 0; }
    .cta--horizontal .cta__body { flex: 1 1 55%; justify-content: center; padding-left: 36px; }
    .cta--horizontal .cta__media { flex: 0 0 43%; position: relative; min-height: 411px; }
    .cta--horizontal .cta__media img { position: absolute; inset: 0; aspect-ratio: auto; }
    .cta--vertical .cta__body { padding-left: 36px; }
}

.cta-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .cta-grid--two { grid-template-columns: 1fr 1fr; } }
.cta-grid .cta--vertical { height: 100%; }
.cta-grid .cta--vertical .cta__media { margin-top: auto; }

/* ---------- Text block ---------- */
.text-block__inner {
    max-width: var(--container-text);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 1.5rem + 3vw, 5rem);
}
.text-block__inner .eyebrow { margin-bottom: calc(clamp(2.5rem, 1.5rem + 3vw, 5rem) * -1 + 30px); }
.text-block__body strong { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq__card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: var(--radius-card);
    background: var(--colour-white);
    color: var(--text-on-light);
}
.faq__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}
.faq__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: 32px 16px;
}
.faq__list { width: 100%; font-size: var(--small-size); line-height: var(--small-lh); }
.faq__item { border-bottom: 1px solid var(--colour-rule-light); }
.faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item .icon--plus { flex: none; color: var(--colour-slate); transition: transform var(--transition); }
.faq__item[open] .icon--plus { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 24px 0; }
@media (min-width: 900px) { .faq__answer { padding-right: 60px; } }

@media (min-width: 900px) {
    .faq__card { flex-direction: row; }
    .faq__media { flex: 0 0 34%; position: relative; min-height: 600px; }
    .faq__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
    .faq__body { flex: 1; justify-content: flex-start; padding: 80px 60px 60px 80px; }
}

/* ---------- Testimonials ---------- */
.testimonials { display: flex; flex-direction: column; gap: var(--space-lg); }
.testimonials__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.testimonials__track::-webkit-scrollbar { display: none; }
.testimonial {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 387px;
    padding: 30px 20px;
    border: 2px solid var(--colour-deep);
    border-radius: var(--radius-card);
}
.testimonial--filled { background: var(--colour-deep); }
.testimonial blockquote { margin: 0; }
.testimonial figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--small-size);
    line-height: var(--small-lh);
}
.testimonial figcaption img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.testimonial strong { font-weight: 700; }
.testimonial__rating { margin: 0; color: var(--colour-olive); letter-spacing: 0.15em; font-size: var(--small-size); }

.testimonials__nav { display: flex; justify-content: flex-end; gap: 10px; }
.arrow-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--colour-white);
    color: var(--colour-ink);
    cursor: pointer;
    transition: opacity var(--transition);
}
.arrow-btn .icon--arrow { width: 23px; height: 17px; }
.arrow-btn--prev .icon--arrow { transform: rotate(180deg); }
.arrow-btn:disabled { opacity: 0.5; cursor: default; }

@media (min-width: 640px) { .testimonials__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (min-width: 1100px) { .testimonials__track { grid-auto-columns: calc((100% - 40px) / 3); } }

/* ---------- Stats ---------- */
.stats__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}
.stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    min-height: 220px;
    padding: 20px;
    border-radius: var(--radius-card);
    background: var(--colour-white);
    color: var(--colour-ink);
}
.stat__value { font-family: var(--font-heading); font-size: var(--h2-size); line-height: 1; letter-spacing: var(--h2-ls); }
.stat__label { font-family: var(--font-heading); font-size: var(--h3-size); line-height: var(--h3-lh); max-width: 16ch; }

@media (min-width: 900px) {
    .stats__grid { grid-template-columns: repeat(3, 1fr); }
    .stat { aspect-ratio: 1; min-height: 0; }
}

/* ---------- Team bios ---------- */
.bios { display: grid; gap: var(--space-xl) 40px; }
.bio { display: flex; flex-direction: column; gap: var(--space-xl); }
.bio__heading { display: flex; flex-direction: column; gap: var(--space-md); }
.bio img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-image); }
@media (min-width: 900px) { .bios { grid-template-columns: 1fr 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: 56px 20px;
    border-radius: var(--radius-card);
    background: var(--colour-moss);
    box-shadow: var(--shadow-panel);
    text-align: center;
}
.newsletter__form {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-pill);
    background: var(--colour-white);
}
.newsletter__form input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: var(--colour-black);
}
.newsletter__form input:focus { outline: none; }
.newsletter__form:focus-within { outline: 2px solid var(--colour-olive); outline-offset: 3px; }
.newsletter__form .button { flex: none; }
.newsletter__status { font-size: var(--small-size); }

@media (min-width: 900px) { .newsletter__panel { padding: 70px 30px; } }

/* ---------- Article / project ---------- */
.author { display: flex; align-items: center; gap: 20px; }
.author img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.author p { font-family: var(--font-heading); font-size: var(--h3-size); line-height: var(--h3-lh); }

.article { display: flex; flex-direction: column; gap: var(--space-xl); }
.article__card { display: flex; flex-direction: column; border-radius: var(--radius-card); }
.article__hero img { width: 100%; aspect-ratio: 1176 / 675; object-fit: cover; border-radius: var(--radius-image); }
.article__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 976px;
    width: 100%;
    margin-inline: auto;
    padding-top: var(--space-2xl);
}
.prose h2, .prose h3 { font-weight: 700; font-size: var(--h3-size); line-height: var(--h3-lh); letter-spacing: 0; margin-top: 1.4em; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose h2 + h3 { margin-top: 0.8em; }
.prose h3 { font-size: var(--body-size); line-height: var(--body-lh); }
.prose ul { margin: 0; padding-left: 1.4em; }
.prose li + li { margin-top: 0.8em; }
.prose a { text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0 0; padding-left: var(--space-md); border-left: 2px solid var(--colour-olive); }
.prose blockquote p + p { margin-top: var(--space-xs); }
.prose ul li > strong:first-child { font-weight: 700; }
.prose > * + * { margin-top: 1.4em; }

.gallery { display: grid; gap: var(--space-lg); }
.gallery img { width: 100%; object-fit: cover; border-radius: var(--radius-image); }
.gallery__wide { aspect-ratio: 976 / 675; }
.gallery__pair { display: grid; gap: var(--space-lg); }
.gallery__pair img { aspect-ratio: 1; }
@media (min-width: 640px) { .gallery__pair { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact ---------- */
.contact-card {
    display: grid;
    gap: var(--space-xl);
    padding: 32px 20px;
    border-radius: var(--radius-card);
    background: var(--colour-white);
    color: var(--text-on-light);
}
.contact-card__details { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-card__details dl { margin: 0; display: grid; gap: 20px; }
.contact-card__details dt { font-size: var(--eyebrow-size); color: var(--colour-slate); }
.contact-card__details dd { margin: 4px 0 0; }
.contact-card__details a { text-underline-offset: 3px; }
@media (min-width: 900px) {
    .contact-card { grid-template-columns: 1fr 1.4fr; padding: 60px; gap: 80px; }
}

.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row--split { grid-template-columns: 1fr 1fr; } }
.form__field { display: grid; gap: 6px; }
.form label { font-size: var(--small-size); }
.form .optional { color: var(--colour-slate); }
.form input,
.form textarea {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid var(--colour-rule-light);
    border-radius: 22px;
    background: var(--colour-white);
    font: inherit;
    font-size: 16px;
    color: var(--colour-black);
}
.form textarea { resize: vertical; min-height: 160px; border-radius: var(--radius-card); }
.form input:focus,
.form textarea:focus { border-color: var(--colour-moss); outline: 2px solid var(--colour-olive); outline-offset: 1px; }
.form__hp { position: absolute; left: -9999px; }
.form__legal { font-size: var(--small-size); color: var(--colour-slate); }
.form .button { justify-self: start; }

.form-success { display: grid; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer {
    padding-bottom: clamp(3rem, 2rem + 4vw, 6.25rem);
    font-size: var(--small-size);
    line-height: var(--small-lh);
    overflow: hidden;
}
.site-footer a { text-underline-offset: 3px; }
.accreditations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 17px;
}
.accreditations img { height: 60px; width: auto; }
.site-footer__meta {
    display: grid;
    gap: 20px;
    margin-top: var(--space-xl);
}
.site-footer__wordmark {
    margin-top: var(--space-2xl);
    color: var(--colour-orange);
    opacity: 0.05;
    line-height: 0;
}
.site-footer__wordmark svg { width: 100%; height: auto; }

@media (min-width: 640px) {
    .site-footer__meta { grid-template-columns: 1fr 1fr; gap: 40px; }
    .site-footer__address { text-align: right; }
}

/* ---------- Privacy / prose pages ---------- */
.prose-page { max-width: var(--container-text); }
.prose-page h2 {
    font-weight: 400;
    font-size: var(--h2-size);
    line-height: var(--h2-lh);
    letter-spacing: var(--h2-ls);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgb(255 255 255 / 0.15);
    scroll-margin-top: var(--space-2xl);
}
.prose-page h2 + h3 { margin-top: var(--space-md); }
.prose-page h2 + p { margin-top: var(--space-sm); }
.prose-page h3 + p, .prose-page h3 + dl { margin-top: var(--space-2xs); }
.prose-page h3 { margin-top: var(--space-lg); }
.prose-page h4 { font-weight: 700; font-size: var(--body-size); line-height: var(--body-lh); margin-top: var(--space-md); }
.prose-page h4 + p { margin-top: var(--space-2xs); }
.prose-page .policy-num { color: var(--colour-olive); }
.prose-page li > p { margin-top: 0.8em; }
.policy-roman { padding-left: 2em; list-style: lower-roman; }
.policy-rights { list-style: none; padding-left: 0; }
.policy-rights > li { padding-left: var(--space-sm); border-left: 2px solid var(--colour-olive); }
.policy-rights > li + li { margin-top: var(--space-sm); }

.policy-contents {
    padding: var(--space-md);
    border-radius: var(--radius-card);
    background: var(--colour-deep);
    border: 1px solid rgb(255 255 255 / 0.1);
}
.policy-contents a { text-decoration-color: rgb(255 255 255 / 0.35); }
.policy-contents a:hover { text-decoration-color: currentColor; }
.policy-contents__title { font-weight: 700; }
.policy-contents ol { margin: var(--space-xs) 0 0; padding-left: 1.4em; }
.policy-contents li + li { margin-top: var(--space-2xs); }

.policy-details { display: grid; gap: var(--space-xs); margin: 0; }
.policy-details div { display: grid; gap: 0 var(--space-sm); }
.policy-details dt { font-weight: 700; }
.policy-details dd { margin: 0; }
@media (min-width: 640px) {
    .policy-details div { grid-template-columns: 14rem 1fr; }
}

/* ---------- Sitemap page ---------- */
.sitemap { display: grid; gap: var(--space-xl); }
.sitemap__group ul { list-style: none; margin: var(--space-sm) 0 0; padding: 0; border-top: 1px solid rgb(255 255 255 / 0.15); }
.sitemap__group li { border-bottom: 1px solid rgb(255 255 255 / 0.15); }
.sitemap__group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding-block: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--h3-size);
    line-height: var(--h3-lh);
    text-decoration: none;
    color: inherit;
}
.sitemap__group a .icon { flex: none; width: 16px; height: auto; transition: transform 0.2s ease; }
.sitemap__group a:hover .icon, .sitemap__group a:focus-visible .icon { transform: translateX(6px); }
.sitemap__group a:hover span { color: var(--colour-olive); }
@media (prefers-reduced-motion: reduce) { .sitemap__group a .icon { transition: none; } }
@media (min-width: 900px) {
    .sitemap { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); align-items: start; }
}

/* ---------- Reveal animations (ported from Lawless & Co) ----------
   Add .reveal to any wrapper: each direct child surfaces into view.
   Add .reveal--load as well to play on page load (page intros, home hero)
   instead of on scroll. Browsers without scroll-driven animation support
   (currently Firefox) simply show the content without the scroll effect.
   ------------------------------------------------------------------ */
@keyframes surface {
    from {
        opacity: 0;
        transform: translateY(80px);
        filter: blur(2px);
        -webkit-mask-position: 0 100%;
        mask-position: 0 100%;
    }
    to {
        opacity: 1;
        transform: none;
        filter: blur(0);
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    /* the feathered mask: solid top, soft middle, clear bottom */
    .reveal > * {
        -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 60%);
        mask-image: linear-gradient(to bottom, #000 40%, transparent 60%);
        -webkit-mask-size: 100% 250%;
        mask-size: 100% 250%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    /* plain inline elements need to be blocks to be transformed (buttons are already inline-flex) */
    .reveal > :is(span, a):not(.button) {
        display: block;
        width: fit-content;
    }

    /* on page load, one after another */
    .reveal--load > * {
        animation: surface 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .reveal--load > :nth-child(1) { animation-delay: 0.2s; }
    .reveal--load > :nth-child(2) { animation-delay: 0.4s; }
    .reveal--load > :nth-child(3) { animation-delay: 0.7s; }
    .reveal--load > :nth-child(4) { animation-delay: 0.9s; }

    /* everything else: driven by scroll */
    @supports (animation-timeline: view()) {
        .reveal:not(.reveal--load) > * {
            animation: surface cubic-bezier(0.22, 1, 0.36, 1) both;
            animation-timeline: view();
            /* starts as it enters, finishes around mid-screen where the eye is */
            animation-range: entry 20% cover 50%;
        }
    }
}

/* ---------- FAQ: grow from the top down ----------
   The reveal on the FAQ body follows the heading's position rather than each
   item's own height, so opening an answer doesn't replay the reveal. */
.faq__body { timeline-scope: --faq-reveal; }
.faq__body > h2 { view-timeline-name: --faq-reveal; }
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .faq__body.reveal > * { animation-timeline: --faq-reveal; }
    }
    /* Answers slide open and closed (supporting browsers; others open instantly) */
    @supports selector(::details-content) {
        .faq__list { interpolate-size: allow-keywords; }
        .faq__item::details-content {
            block-size: 0;
            overflow: hidden;
            transition: block-size 0.35s cubic-bezier(0.22, 1, 0.36, 1), content-visibility 0.35s allow-discrete;
        }
        .faq__item[open]::details-content { block-size: auto; }
    }
}


/* ---------- Focus rings are never clipped by the reveal mask ----------
   The reveal's feathered mask clips anything drawn outside an element,
   including focus outlines. Once someone is interacting with a block,
   drop the mask (the block has finished revealing by then anyway). */
.reveal > :focus-visible,
.reveal > :focus-within {
    -webkit-mask-image: none;
    mask-image: none;
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 899px) {
    /* Slightly more open headings */
    :root {
        --h1-lh: 0.98;
        --h2-lh: 1.1;
        --h3-lh: 1.4;
    }

    /* Card text lines up with the card images */
    .cta__body { padding-inline: 0; }
    .faq__body { padding-inline: 0; }
}

@media (max-width: 639px) {
    /* Newsletter: email field and Register button stacked */
    .newsletter__form {
        flex-direction: column;
        gap: 12px;
        background: transparent;
        border-radius: 0;
    }
    .newsletter__form input {
        flex: none;
        height: 48px;
        background: var(--colour-white);
        text-align: center;
    }
    .newsletter__form .button { width: 100%; min-height: 48px; justify-content: center; }
    .newsletter__form:focus-within { outline: none; }
    .newsletter__form input:focus-visible { outline: 2px solid var(--colour-olive); outline-offset: 3px; }
}
