:root {
    --bg: #eef8f5;
    --bg-deep: #d6ebe6;
    --paper: rgba(247, 253, 251, 0.72);
    --paper-strong: rgba(250, 255, 253, 0.88);
    --ink: #17363b;
    --muted: #587478;
    --line: rgba(23, 54, 59, 0.12);
    --accent: #72b4ad;
    --accent-deep: #2f6f75;
    --accent-soft: #b7ddd6;
    --sky: #cfe7ea;
    --gold: #c9b77b;
    --shadow: 0 28px 70px rgba(52, 97, 102, 0.14);
    --shadow-soft: 0 18px 36px rgba(52, 97, 102, 0.1);
    --radius-xl: 34px 18px 32px 20px / 26px 32px 20px 30px;
    --radius-lg: 28px 16px 24px 18px / 22px 28px 18px 24px;
    --radius-md: 22px 14px 18px 16px / 18px 22px 16px 20px;
    --radius-sm: 12px;
    --wrap: min(1160px, calc(100vw - 2.5rem));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f7fffc 0%, #eef9f6 30%, var(--bg) 62%, var(--bg-deep) 100%);
    font: 400 1rem/1.72 "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% -12%, rgba(114, 180, 173, 0.18) 0 20%, transparent 20% 64%),
        repeating-radial-gradient(circle at 50% -14%, rgba(47, 111, 117, 0.08) 0 2px, transparent 2px 34px),
        radial-gradient(circle at 16% 18%, rgba(207, 231, 234, 0.58), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(183, 221, 214, 0.38), transparent 22%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.46), transparent 55%);
    pointer-events: none;
    z-index: -3;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 78%, rgba(114, 180, 173, 0.16) 0 12%, transparent 12%),
        radial-gradient(circle at 82% 82%, rgba(207, 231, 234, 0.24) 0 16%, transparent 16%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 18px);
    mix-blend-mode: soft-light;
    opacity: 0.65;
    pointer-events: none;
    z-index: -2;
}

.page-grain {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.44) 0 1px, transparent 1px 34px),
        radial-gradient(circle at 0 0, rgba(47, 111, 117, 0.08) 0 1px, transparent 1px 22px),
        radial-gradient(circle at 100% 100%, rgba(114, 180, 173, 0.08) 0 1px, transparent 1px 28px);
    background-size: 120px 120px, 22px 22px, 30px 30px;
    opacity: 0.34;
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration-color: rgba(47, 111, 117, 0.45);
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-color: var(--accent-deep);
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    width: var(--wrap);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--accent-deep);
    color: #f7fffc;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 20;
}

.skip-link:focus {
    top: 1rem;
}

main {
    position: relative;
    isolation: isolate;
}

main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top center, rgba(255, 255, 255, 0.45), transparent 42%),
        radial-gradient(circle at 10% 72%, rgba(183, 221, 214, 0.18), transparent 18%),
        radial-gradient(circle at 92% 28%, rgba(207, 231, 234, 0.18), transparent 22%);
    pointer-events: none;
    z-index: -1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(239, 250, 247, 0.74);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(23, 54, 59, 0.08);
    box-shadow: 0 10px 28px rgba(52, 97, 102, 0.06);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5.3rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    position: relative;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 42% 58% 48% 52% / 56% 40% 60% 44%;
    display: grid;
    place-items: center;
    font: 700 1.18rem/1 "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
    background: radial-gradient(circle at 30% 28%, rgba(250, 255, 253, 0.95), rgba(114, 180, 173, 0.9) 48%, rgba(47, 111, 117, 0.96) 100%);
    color: #f7fffc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 28px rgba(47, 111, 117, 0.18);
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 48% 52% 58% 42% / 44% 60% 40% 56%;
}

.brand-text {
    display: grid;
    gap: 0.08rem;
}

.brand-text strong,
h1,
h2,
h3 {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Baskerville, serif;
    letter-spacing: -0.02em;
}

.brand-text strong {
    font-size: 1.1rem;
}

.brand-text span:last-child {
    font-size: 0.82rem;
    color: var(--muted);
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.primary-nav a,
.header-cta,
.button {
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.primary-nav a {
    text-decoration: none;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--accent-deep);
    background: rgba(250, 255, 253, 0.84);
    box-shadow: inset 0 0 0 1px rgba(47, 111, 117, 0.12);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #f7fffc;
    padding: 0.92rem 1.35rem;
    border-radius: 999px;
    box-shadow: 0 16px 32px rgba(47, 111, 117, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.header-cta:hover,
.button:hover {
    transform: translateY(-1px);
}

.button-secondary {
    background: linear-gradient(180deg, rgba(250, 255, 253, 0.94), rgba(230, 244, 241, 0.82));
    color: var(--accent-deep);
    border-color: rgba(47, 111, 117, 0.14);
    box-shadow: var(--shadow-soft);
}

.hero,
.page-intro {
    padding: 4.2rem 0 2rem;
}

.hero-grid,
.intro-grid,
.split-grid,
.callout,
.contact-grid,
.footer-grid,
.journal-grid,
.card-grid,
.local-grid,
.stat-grid {
    display: grid;
    gap: 1.25rem;
}

.hero-grid,
.intro-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.intro-note,
.band-panel,
.card,
.local-card,
.contact-card,
.journal-card,
.callout,
.stat-card {
    animation: rise 700ms ease both;
}

.hero-copy {
    position: relative;
    padding-right: 1rem;
}

.hero-copy::after,
.page-intro .intro-grid > div::after {
    content: "";
    display: block;
    width: min(14rem, 40vw);
    height: 1.2rem;
    margin-top: 1.4rem;
    border-top: 1px solid rgba(47, 111, 117, 0.18);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.8;
}

.hero-copy h1,
.page-intro h1 {
    font-size: clamp(2.9rem, 5vw, 5.2rem);
    line-height: 0.95;
    margin: 0 0 1rem;
    max-width: 12ch;
}

.lead,
.section-heading p,
.intro-note p,
.panel-note {
    font-size: 1.06rem;
    color: var(--muted);
}

.eyebrow,
.panel-kicker,
.card-kicker,
.footer-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    color: var(--accent-deep);
    margin: 0 0 0.85rem;
    font-weight: 700;
}

.hero-actions,
.callout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    margin-top: 1.8rem;
}

.hero-panel,
.intro-note,
.band-panel,
.card,
.local-card,
.contact-card,
.journal-card,
.stat-card,
.callout {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(23, 54, 59, 0.08);
    background:
        linear-gradient(180deg, rgba(250, 255, 253, 0.88), rgba(235, 247, 244, 0.76)),
        radial-gradient(circle at top right, rgba(207, 231, 234, 0.34), transparent 42%);
    box-shadow: var(--shadow);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
}

.hero-panel::after,
.intro-note::after,
.band-panel::after,
.card::after,
.local-card::after,
.contact-card::after,
.journal-card::after,
.stat-card::after,
.callout::after {
    content: "";
    position: absolute;
    right: -14%;
    bottom: -18%;
    width: 180px;
    height: 180px;
    border-radius: 44% 56% 62% 38% / 48% 44% 56% 52%;
    background: radial-gradient(circle, rgba(183, 221, 214, 0.32), transparent 62%);
    pointer-events: none;
}

.hero-panel,
.intro-note,
.band-panel,
.contact-card {
    padding: 1.75rem;
}

.hero-panel::before,
.intro-note::before,
.callout::before {
    content: "";
    position: absolute;
    inset: 1rem auto auto 1.2rem;
    width: 8rem;
    height: 1rem;
    border-top: 1px solid rgba(201, 183, 123, 0.55);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.8;
}

.detail-list,
.process-list,
.footer-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-list li,
.process-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
}

.detail-list li::before,
.process-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--accent));
}

.section {
    padding: 1.1rem 0 2.25rem;
}

.section-band {
    padding: 0.6rem 0 2.25rem;
}

.section-heading {
    max-width: 48rem;
    margin-bottom: 1.5rem;
}

.section-heading h2,
.band-panel h2,
.callout h2,
.contact-card h2,
.journal-card h2,
.card h3,
.local-card h3 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.55rem, 2.5vw, 2.4rem);
    line-height: 1;
}

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

.card-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.local-card,
.journal-card {
    padding: 1.55rem;
}

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

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

.stat-card {
    padding: 1.45rem 1.2rem;
    text-align: left;
}

.stat-number {
    margin: 0 0 0.4rem;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Baskerville, serif;
    font-size: 1.85rem;
    color: var(--accent-deep);
}

.stat-label {
    margin: 0;
    color: var(--muted);
}

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

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

.contact-card h2 a {
    text-decoration: none;
}

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

.callout {
    position: relative;
    overflow: hidden;
    padding: 1.8rem;
    align-items: center;
}

.callout-actions p,
.footer-note,
.footer-column p,
.footer-bottom p {
    color: var(--muted);
}

.site-footer {
    padding: 2.8rem 0 2rem;
    border-top: 1px solid rgba(23, 54, 59, 0.08);
    margin-top: 1rem;
    background: linear-gradient(180deg, rgba(247, 253, 251, 0.34), rgba(214, 235, 230, 0.22));
}

.footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr;
    align-items: start;
}

.footer-nav {
    display: grid;
    gap: 0.55rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--muted);
}

.footer-nav a:hover {
    color: var(--accent-deep);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    margin-top: 1.8rem;
    border-top: 1px solid rgba(23, 54, 59, 0.08);
}

.footer-bottom p {
    margin: 0;
    max-width: 28rem;
}

.page-home .hero,
.page-services .page-intro,
.page-london .page-intro,
.page-contact .page-intro,
.page-notes .page-intro,
.page-quiet-hours .page-intro,
.page-safeguards .page-intro,
.page-404 .page-intro {
    position: relative;
}

.page-home .hero::after,
.page-services .page-intro::after,
.page-london .page-intro::after,
.page-contact .page-intro::after,
.page-notes .page-intro::after,
.page-quiet-hours .page-intro::after,
.page-safeguards .page-intro::after,
.page-404 .page-intro::after {
    content: "";
    position: absolute;
    inset: 2rem auto auto 52%;
    width: min(34vw, 390px);
    height: min(34vw, 390px);
    border-radius: 38% 62% 46% 54% / 56% 40% 60% 44%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.54) 0 14%, transparent 14% 28%, rgba(114, 180, 173, 0.14) 28% 29%, transparent 29% 42%, rgba(47, 111, 117, 0.1) 42% 43%, transparent 43% 100%),
        radial-gradient(circle at 30% 30%, rgba(207, 231, 234, 0.26), transparent 66%);
    pointer-events: none;
    transform: translateX(10%) rotate(-10deg);
    opacity: 0.95;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .header-row,
    .footer-bottom {
        align-items: flex-start;
    }

    .hero-grid,
    .intro-grid,
    .split-grid,
    .footer-grid,
    .callout {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .card-grid-large,
    .contact-grid,
    .journal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-copy h1,
    .page-intro h1 {
        max-width: 14ch;
    }

    .page-home .hero::after,
    .page-services .page-intro::after,
    .page-london .page-intro::after,
    .page-contact .page-intro::after,
    .page-notes .page-intro::after,
    .page-quiet-hours .page-intro::after,
    .page-safeguards .page-intro::after,
    .page-404 .page-intro::after {
        width: min(48vw, 360px);
        height: min(48vw, 360px);
        inset: 1rem auto auto 58%;
    }
}

@media (max-width: 760px) {
    :root {
        --wrap: min(100vw - 1.25rem, 100%);
    }

    .site-header {
        position: static;
    }

    .header-row {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
    }

    .brand {
        justify-content: center;
    }

    .primary-nav {
        justify-content: center;
    }

    .header-cta {
        width: 100%;
    }

    .hero,
    .page-intro {
        padding: 3rem 0 1.3rem;
    }

    .hero-copy h1,
    .page-intro h1 {
        font-size: clamp(2.45rem, 15vw, 3.45rem);
        max-width: none;
    }

    .card-grid,
    .card-grid-large,
    .local-grid,
    .contact-grid,
    .journal-grid,
    .stat-grid,
    .split-grid,
    .callout {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .intro-note,
    .band-panel,
    .card,
    .local-card,
    .contact-card,
    .journal-card,
    .callout,
    .stat-card {
        border-radius: var(--radius-lg);
    }

    .page-home .hero::after,
    .page-services .page-intro::after,
    .page-london .page-intro::after,
    .page-contact .page-intro::after,
    .page-notes .page-intro::after,
    .page-quiet-hours .page-intro::after,
    .page-safeguards .page-intro::after,
    .page-404 .page-intro::after {
        inset: auto -8% -5% auto;
        width: 14rem;
        height: 14rem;
        transform: rotate(-8deg);
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
