/* ---------- Shared type ---------- */
.cs-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.85rem;
}

.cs-section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}

.cs-section-sub {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto;
}

.cs-hero_eyebrow {
    display: inline-block;
    font-size: 0.88rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* ---------- Scroll reveal ---------- */
.cs-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.cs-reveal.is-visible { opacity: 1; transform: none; }

@keyframes cs-rise {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: none; }
}
@keyframes cs-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(7px); }
}

@media (prefers-reduced-motion: reduce) {
    .cs-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--extra-light); border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); }
.breadcrumbs_inner { max-width: var(--max-width); margin: 0 auto; padding: 0.85rem 1rem; display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.breadcrumbs a { color: var(--text-dark); font-weight: 600; }
.breadcrumbs .current { color: var(--text-light); }

/* Hero */
.cs-edge {
    position: relative;
    background: var(--white);
    padding: 0 0 clamp(4rem, 9vw, 4rem);
    min-height: 0;
    isolation: isolate;
    --cs-card-overlap: 5rem;
    --cs-crumb-h: 3rem;
}

.cs-edge .breadcrumbs {
    position: relative;
    z-index: 1;
    min-height: var(--cs-crumb-h);
    display: flex;
    align-items: center;
}
.cs-edge .breadcrumbs_inner { width: 100%; padding-block: 0; }

/* The hero card sits over the middle of this strip and these page names are
   long, so the trail leaves the centred box and hugs the left edge instead. */
.cs-edge .breadcrumbs_inner {
    max-width: none;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.cs-edge_media {
    position: relative;
    margin: 0;
    height: 88vh;
    min-height: 560px;
    overflow: hidden;
}

.cs-edge .header_bg_swiper,
.cs-edge .header_bg_swiper .swiper-slide { width: 100%; height: 100%; }
.cs-edge .header_bg_swiper { position: absolute; inset: 0; }
.cs-edge .header_bg_swiper img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block !important;
    filter: none;
}

.cs-edge_card {
    position: relative;
    z-index: 2;
    max-width: min(660px, calc(100% - 2.5rem));
    margin: calc((var(--cs-card-overlap) + var(--cs-crumb-h)) * -1) auto 0;
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--white);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 24px 60px rgba(10, 34, 64, 0.14);
    text-align: center;
    animation: cs-rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs-edge_title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.08;
    margin: 0 0 1.4rem;
}

.cs-edge_card p,
.cs-edge_copy { color: var(--text-light); line-height: 1.85; margin: 0 0 1.75rem; }

.cs-edge_scroll {
    position: absolute;
    left: 50%;
    bottom: calc(var(--cs-card-overlap) + 2.5rem);
    z-index: 3;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: var(--white);
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
    animation: cs-bob 2.4s ease-in-out infinite;
}
.cs-edge_scroll:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
    .cs-edge_scroll { animation: none; transform: translateX(-50%); }
    .cs-edge_card { animation: none; }
}

.cs-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 0.8rem;
    padding: 0;
    margin: 0;
}
.cs-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.05rem;
    border: 1px solid rgba(196, 156, 116, 0.4);
    border-radius: 999px;
    background: var(--cream-light);
    color: var(--text-dark);
    font-size: 0.84rem;
    letter-spacing: 0.05em;
    transition: 0.3s;
}
.cs-chips li:hover { border-color: var(--primary-color); background: var(--white); transform: translateY(-2px); }
.cs-chips i { color: var(--primary-color); font-size: 1.02rem; }

/* =====================================================================
   The gallery — a draughtsman's sheet. The room is not finished, so the
   photographs are hung as numbered plates on a drawing, the way the
   1927 building itself would have been drawn.
   ===================================================================== */
.cs-sheet {
    position: relative;
    padding: clamp(3.5rem, 8vw, 6rem) 1.25rem clamp(3rem, 7vw, 5rem);
    /* Drafting paper: a fine grid over cream, heavier every fifth line. */
    background:
        repeating-linear-gradient(to right, rgba(10, 34, 64, 0.05) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(to bottom, rgba(10, 34, 64, 0.05) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(to right, rgba(10, 34, 64, 0.09) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(to bottom, rgba(10, 34, 64, 0.09) 0 1px, transparent 1px 120px),
        var(--cream-light);
}

/* The sheet's border, inset the way a drawing frame is. */
.cs-sheet_frame {
    position: absolute;
    inset: clamp(0.9rem, 2vw, 1.6rem);
    border: 1px solid rgba(10, 34, 64, 0.18);
    pointer-events: none;
}

.cs-sheet_head {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto clamp(2.5rem, 6vw, 4rem);
    text-align: center;
}

/* The title block, as it sits in the corner of a real drawing. */
.cs-sheet_block {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 1.25rem;
    margin-top: 1.25rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(10, 34, 64, 0.22);
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
}
.cs-sheet_block b { color: var(--text-dark); font-weight: 600; }

.cs-plates {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 5vw, 3.25rem);
    list-style: none;
    padding: 0;
}

/* Staggered, so it reads as a sheet of drawings rather than a photo grid. */
.cs-plate:nth-child(even) { transform: translateY(clamp(1rem, 3vw, 2.5rem)); }

.cs-plate { margin: 0; }

.cs-plate_frame {
    position: relative;
    display: block;
    padding: 10px;
    background: var(--white);
    border: 1px solid rgba(10, 34, 64, 0.22);
    box-shadow: 0 12px 30px rgba(10, 34, 64, 0.10);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease, border-color 0.45s ease;
}
.cs-plate_frame::after {
    /* The inner rule of a double-ruled drawing frame. */
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(10, 34, 64, 0.12);
    pointer-events: none;
    transition: border-color 0.45s ease;
}
.cs-plate:hover .cs-plate_frame {
    transform: translateY(-6px);
    box-shadow: 0 26px 52px rgba(10, 34, 64, 0.18);
    border-color: var(--primary-color);
}
.cs-plate:hover .cs-plate_frame::after { border-color: rgba(196, 156, 116, 0.65); }

.cs-plate_img {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    filter: saturate(0.9);
    transition: filter 0.45s ease;
}
.cs-plate:hover .cs-plate_img { filter: saturate(1); }

/* The measure line under each plate, ticked like a drawing's scale bar. */
.cs-plate_scale {
    display: block;
    height: 9px;
    margin: 0.85rem 0 0.7rem;
    border-left: 1px solid rgba(10, 34, 64, 0.35);
    border-right: 1px solid rgba(10, 34, 64, 0.35);
    background:
        linear-gradient(to bottom, transparent 4px, rgba(10, 34, 64, 0.35) 4px, rgba(10, 34, 64, 0.35) 5px, transparent 5px),
        repeating-linear-gradient(to right, rgba(10, 34, 64, 0.28) 0 1px, transparent 1px 28px);
}

.cs-plate_cap { display: flex; align-items: baseline; gap: 0.7rem; }

.cs-plate_no {
    flex: 0 0 auto;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.cs-plate_label {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--text-dark);
    line-height: 1.5;
}

/* =====================================================================
   CTA banner — the Pool's, with the enquiry button alone
   ===================================================================== */
.cs-cta {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 440px;
    padding: clamp(4rem, 9vw, 7rem) 1.25rem;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    color: var(--white);
}

.cs-cta_media { position: absolute; inset: 0; z-index: 0; }
.cs-cta_media img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
}
.cs-cta_overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 34, 64, 0.55);
    transition: opacity 0.5s ease;
}
.cs-cta:hover .cs-cta_overlay { opacity: 0.35; }

.cs-cta_content { position: relative; z-index: 2; max-width: 640px; }

.cs-cta_title {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin: 0 0 1.25rem;
    color: var(--white);
}

.cs-cta_text { line-height: 1.85; margin: 0 0 2.25rem; color: rgba(255, 255, 255, 0.88); }

.cs-cta_actions { display: flex; justify-content: center; }

.cs-cta_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    cursor: pointer;
    padding: 0.95rem 2.1rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    color: var(--white);
    font-family: inherit;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.cs-cta_btn:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--text-dark); }

.cs-cta_icon { transition: transform 0.3s ease; }
.cs-cta_btn:hover .cs-cta_icon--arrow { transform: translateX(5px); }

/* Coming Soon */
.cs-soon {
    background: var(--white);
    padding-bottom: 6rem;
    padding-top: 0rem;
    text-align: center;
}

.cs-soon_inner { max-width: 640px; margin: 0 auto; }

/* A surveyor's rule across the middle, with the seal on it. */
.cs-soon_rule {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    max-width: 320px;
    margin: 0 auto 1.75rem;
}
.cs-soon_rule::before,
.cs-soon_rule::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(196, 156, 116, 0.8), transparent);
}
.cs-soon_seal {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cs-soon_text { color: var(--text-light); line-height: 1.85; margin: 0 0 1.5rem; }

.cs-soon_note {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .cs-plate:nth-child(even) { transform: none; }
    .cs-plates { gap: 2rem; }
}

@media (max-width: 640px) {
    .cs-edge_media { height: 78vh; min-height: 460px; }
    .cs-edge { --cs-card-overlap: 2.5rem; }
    .cs-sheet_frame { inset: 0.6rem; }
    .cs-cta_btn { width: 100%; }
}
