@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Brand tokens and canvas */
:root {
    --forest: #123b70;
    --forest-deep: #071a33;
    --gold: #d4a72c;
    --cinema-ink: #0b0f14;
    --cinema-surface: #172235;
    --cinema-soft: #eef4ff;
    --paper: #ffffff;
    --ink: #0b0f14;
    --line: rgba(18, 59, 112, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

body {
    background: radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.1), transparent 28rem), linear-gradient(135deg, #ffffff 0%, #f4f8ff 52%, #e8f0ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--ink);
    font-weight: 500;
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.font-serif,
.font-sans {
    font-family: 'Montserrat', sans-serif !important;
}

p,
li,
label,
input,
select,
textarea,
button,
a {
    font-weight: 500;
}

/* ------------------------------------------------------------------
   Overflow strategy
   ------------------------------------------------------------------
   The old rule was `html { overflow-x: hidden; overflow-y: auto }`.
   That is the classic masking hack and it actively harms phones:

   * CSS forces a `visible` axis to `auto` whenever the other axis is
     `hidden`, so declaring `overflow-x: hidden` turned <html> into a
     scroll container. Anything inside it then resolved `position: sticky`
     against <html> rather than the viewport, and `#anchor` jumps stopped
     lining up.
   * It hid genuine overflow instead of fixing it, so a too-wide element
     simply vanished off the right edge with no way to reach it.

   `overflow-x: clip` does not trigger that axis-promotion rule, so the
   page keeps its normal viewport scrolling while still shedding stray
   horizontal overflow. The @supports block is the fallback for engines
   without `clip` (Safari < 16).
   ------------------------------------------------------------------ */
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

@supports not (overflow-x: clip) {
    html {
        overflow-x: hidden;
    }
}

body {
    /* Horizontal only. The old `overflow: clip` shorthand also clipped the
       *vertical* axis, which is what made an open mobile drawer and the
       floating WhatsApp button get cut off at the page edges.

       !important is required: index.html puts `overflow-x-hidden` on <body>,
       a Tailwind utility (0,1,0) that would otherwise beat this element
       selector (0,0,1) and reinstate the axis-promotion problem above. */
    overflow-x: clip !important;
    position: relative;
    isolation: isolate;
}

/* Nothing in the document is allowed to be wider than the viewport. This is
   the single most effective guard against a stray fixed-width element
   introducing a sideways scroll on a phone. */
img,
svg,
video,
canvas,
iframe,
embed,
object {
    max-width: 100%;
}

img,
video {
    height: auto;
}

/* Long unbroken strings (emails, reference numbers) are the most common
   cause of a one-pixel horizontal scrollbar on a 320px phone. */
p,
li,
dd,
dt,
span,
a,
address,
label,
h1,
h2,
h3,
h4,
blockquote,
cite {
    overflow-wrap: break-word;
}

body::before {
    content: '';
    position: fixed;
    right: -12vw;
    bottom: -120px;
    left: -12vw;
    z-index: -1;
    height: 280px;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(18, 59, 112, 0.16) 0%, rgba(37, 99, 235, 0.1) 42%, rgba(212, 167, 44, 0.24) 78%, rgba(212, 167, 44, 0.08) 100%);
    border-radius: 50% 50% 0 0 / 38% 38% 0 0;
    transform: rotate(-3deg);
}

/* Enhanced Header Styling
   ------------------------------------------------------------------
   nav.js injects the bar as:
       header > .hog-header__inner > (.hog-header__bar + .hog-drawer)

   The previous rule here was `display: flex !important` with no
   flex-direction. That made the bar and the drawer *sibling flex items*, so
   on a phone pressing the hamburger squeezed the bar into the left half of
   the screen and rendered the menu in the right half as a narrow column.

   `.hog-header__inner` is a single block child, so whatever `header` does
   internally can no longer affect the relationship between bar and drawer.
   `display: block` is the honest value: <header> is a page-level wrapper,
   not a two-column flex row. (admin-dashboard.html has its own <header>
   that legitimately uses flex utilities, which now win on specificity.) */
header {
    background: #fff !important;
    border-bottom: 1px solid rgba(18, 59, 112, 0.12);
    box-shadow: 0 10px 28px rgba(18, 59, 112, 0.08);
    backdrop-filter: none;
    position: relative;
    top: auto;
    width: 100%;
    max-width: 100%;
    z-index: 50;
    overflow: visible;
    min-height: 60px;
    display: block;
}

header::before {
    content: none;
}

/* The .site-nav-* block that used to live here (site-nav-layout, -shell,
   -logo, -links, -dropdown*, -mobile*, -cta) has been removed. None of it
   ever matched: nav.js renders the header with .hog-* class names, so the
   entire mobile navigation stylesheet was dead code. The replacement
   styles for the real markup live in the "Site header" section above. */

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
}

[data-reveal].reveal-pending {
    opacity: 0;
    transform: translateY(28px);
}

[data-reveal].is-visible {
    animation: reveal-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms) both;
    will-change: opacity, transform;
}

main > section:first-child,
body > section:first-of-type {
    min-height: 430px;
    display: grid;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}

main > section:first-child::after,
body > section:first-of-type::after {
    content: '';
    position: absolute;
    right: 8%;
    bottom: -12rem;
    width: 28rem;
    height: 28rem;
    border: 1px solid rgba(194, 155, 56, 0.34);
    border-radius: 50%;
    pointer-events: none;
    animation: hero-ring 14s ease-in-out infinite;
}

main > section:first-child h1,
body > section:first-of-type h1 {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
    text-wrap: balance;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

main > section:first-child p,
body > section:first-of-type p {
    text-wrap: balance;
}

@keyframes reveal-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-frame,
article img,
.gallery-item img,
.estate-card img,
.netflix-card img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
}

.gallery-item {
    display: block;
    overflow: hidden;
}

.gallery-item > span {
    position: relative;
    z-index: 1;
}

.image-frame:hover img,
article:hover > img,
.gallery-item:hover img,
.estate-card:hover img,
.netflix-card:hover img {
    transform: scale(1.04);
}

.estates-directory-grid {
    align-items: stretch;
}

.estates-directory-grid > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.estates-directory-grid > div > div:last-child {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.estates-directory-grid > div > div:first-child,
.estates-directory-grid > div > a:first-child {
    flex: 0 0 224px;
    height: 224px;
    overflow: hidden;
}

.estates-directory-grid > div > div:first-child img,
.estates-directory-grid > div > a:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.estates-directory-grid > div > div:last-child > a:last-child {
    margin-top: auto;
}

button,
a {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* A restrained cinematic treatment inspired by the alternate launch design. */
main > section:not(:first-child) {
    position: relative;
}

main > section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    right: 5%;
    left: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 155, 56, 0.48), transparent);
    pointer-events: none;
}

article,
.estate-card,
.feature-grid > div,
.netflix-card {
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(32, 38, 41, 0.1);
}

button,
.hog-btn,
.hog-drawer__cta {
    border-radius: 10px;
}

/* Keep navigation static; only the page content should scroll and animate.
   The animation/transform reset now targets the classes nav.js actually
   emits; the .site-nav-* names are gone (see the note in the header block
   above - they were never present in the DOM). */
header,
.hog-header__inner,
.hog-header__bar,
.hog-logo,
.hog-logo__img,
.hog-nav,
.hog-btn,
.hog-burger,
.hog-drawer {
    animation: none !important;
    transform: none !important;
}

header {
    position: relative;
    top: auto;
    overflow: visible;
    transition: none !important;
}

.home-trust-section {
    padding: clamp(5rem, 9vw, 8rem) 0;
    background: linear-gradient(135deg, #071a33 0%, #123b70 62%, #9a761d 100%);
    color: #fff;
}

.trust-card {
    min-height: 230px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-7px);
    border-color: rgba(194, 155, 56, 0.7);
    background: rgba(255, 255, 255, 0.12);
}

.trust-index {
    display: block;
    margin-bottom: 3rem;
    color: #c29b38;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.trust-card h3 {
    margin-bottom: 0.65rem;
    color: #fff;
    font-size: 1.15rem;
}

.trust-card p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
    line-height: 1.75;
}

.leadership-note {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.leadership-note div {
    display: grid;
    gap: 5px;
}

.leadership-note span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.leadership-note strong {
    color: #fff;
    font-size: 1rem;
}

.leadership-note small {
    margin-left: 7px;
    color: #c29b38;
    font-size: 0.7rem;
    font-weight: 600;
}

@media (max-width: 767px) {
    .trust-card {
        min-height: 190px;
    }
}

/* Give each homepage band room to breathe instead of stacking into one block. */
.property-search-section {
    padding-top: clamp(2.75rem, 6vw, 5rem) !important;
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem) !important;
}

.property-search-section .discovery-console {
    margin-bottom: 0.5rem;
}

.estates-section {
    margin-top: clamp(1.5rem, 4vw, 3.5rem);
    padding-top: clamp(3.5rem, 7vw, 6.5rem) !important;
    padding-bottom: clamp(4rem, 8vw, 7rem) !important;
}

.estates-section .collection-heading {
    margin-bottom: clamp(2rem, 4vw, 3.25rem) !important;
}

#mission {
    margin-top: clamp(1.5rem, 4vw, 3.5rem);
    padding-top: clamp(4rem, 8vw, 7rem) !important;
    padding-bottom: clamp(4rem, 8vw, 7rem) !important;
}

@media (max-width: 767px) {
    .property-search-section {
        padding-top: 2.75rem !important;
        padding-bottom: 2.5rem !important;
    }

    .estates-section {
        margin-top: 1.25rem;
        padding-top: 3.5rem !important;
        padding-bottom: 4rem !important;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 0;
    }

    main > section:last-child {
        padding-bottom: 1.25rem !important;
    }

    main > section:first-child,
    body > section:first-of-type {
        min-height: 390px;
    }

    main > section:first-child::after,
    body > section:first-of-type::after {
        right: -10rem;
        bottom: -13rem;
        width: 22rem;
        height: 22rem;
    }
}

/* Logo Enhancement */
header img {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 4px 8px rgba(18, 59, 112, 0.15));
}

header img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(18, 59, 112, 0.3));
}

/* Navigation Link Enhancement */
/* These bare `nav` selectors were written for an older header. They reached the
   current nav because the neutraliser below targeted .site-nav-links, which
   nav.js does not emit - so header links were inheriting a pale #9DBDEA hover
   colour (illegible against the white bar) plus a stray underline. They are
   now scoped to the real classes. */
nav a {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #123b70);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #9DBDEA;
    text-shadow: 0 2px 4px rgba(18, 59, 112, 0.3);
}

.hog-nav a,
.hog-drawer a {
    text-shadow: none;
    font-weight: 700;
}

.hog-nav a::after,
.hog-drawer a::after {
    display: none;
}

.hog-nav a:hover,
.hog-nav a:focus-visible,
.hog-drawer a:hover,
.hog-drawer a:focus-visible {
    color: #C29B38;
    text-shadow: none;
    font-weight: 700;
}

/* Active Navigation Link */
.hog-nav__link.is-active,
.hog-drawer__link.is-active {
    color: #C29B38;
    font-weight: 700;
}

/* CTA Button Enhancement */
.bg-\[\#C29B38\] {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(194, 155, 56, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.bg-\[\#C29B38\]:hover {
    box-shadow: 0 8px 25px rgba(194, 155, 56, 0.5);
    transform: translateY(-2px);
}

.bg-\[\#C29B38\]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.bg-\[\#C29B38\]:hover::before {
    left: 100%;
}

/* Mobile Menu Button Styling */
#menu-btn {
    transition: all 0.3s ease;
}

#menu-btn:hover {
    background-color: rgba(194, 155, 56, 0.1);
}

/* Pulse Animation for Active Indicator */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Netflix-Style Horizontal Scrolling Rows */
.netflix-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 1rem 0.5rem 2rem 0.5rem;
    scrollbar-width: none; /* Firefox */
}
.netflix-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Netflix Cinematic Card Vibe */
.netflix-card {
    min-width: 300px;
    max-width: 320px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* The Netflix Pop Effect on Hover */
.netflix-card:hover {
    transform: scale(1.06) translateY(-8px);
    box-shadow: 0 25px 35px -10px rgba(18, 59, 112, 0.2), 0 10px 15px -5px rgba(194, 155, 56, 0.15);
    border-color: #C29B38;
    z-index: 50;
}

/* Fix image container sizing so the image displays properly at the top of the card */
.netflix-card > div:first-child,
.netflix-card .relative {
    height: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Ensure images fit cleanly inside the card without collapsing */
.netflix-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.netflix-card:hover img {
    transform: scale(1.1);
}/* Cinematic Modal Overlay */
#estate-modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#estate-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Pop Animation */
#modal-content {
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#estate-modal.active #modal-content {
    transform: scale(1) translateY(0);
}

@keyframes nav-water-flow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html,
    body,
    [data-reveal],
    .hog-header__inner,
    button,
    a,
    img {
        scroll-behavior: auto;
        animation: none;
        transition: none;
    }

    main > section:first-child::after,
    body > section:first-of-type::after {
        animation: none;
    }
}

@keyframes hero-ring {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
    50% { transform: translate(-18px, -12px) scale(1.05); opacity: 0.9; }
}

/* Shared royal-blue page background. The index previously used a sage-green
   gradient class here; it now matches the blue theme below. */
body[class*="from-[#F4F8FF]"] {
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 54%, #e8f0ff 100%) !important;
}

body {
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 54%, #e8f0ff 100%) !important;
}

/* Base ink colour for header and drawer links. No hover override here: the
   gold hover is defined once, earlier, so the two surfaces cannot drift
   apart the way the duplicated .site-nav-* rules did. */
.hog-nav a,
.hog-drawer a {
    color: #123b70;
}

.discovery-console button {
    border-color: rgba(37, 99, 235, 0.7);
    background: linear-gradient(135deg, #123b70, #071a33) !important;
    box-shadow: 0 10px 22px rgba(18, 59, 112, 0.2);
}

.discovery-console button:hover {
    background: linear-gradient(135deg, #2563eb, #123b70) !important;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34);
}

.confidence-quote {
    border-color: rgba(18, 59, 112, 0.13);
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(18, 59, 112, 0.08);
}

.confidence-quote-featured {
    border-color: #2563eb;
    background: #123b70;
}

.gallery-nav {
    background: rgba(18, 59, 112, 0.86);
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
    border-color: #2563eb;
    background: #2563eb;
}

.market-strip {
    background: #0b0f14;
}

[class*="text-[#123B70]"],
[class*="text-[#123B70]"],
[class*="text-[#06182F]"] {
    color: #123b70 !important;
}

[class*="text-[#C29B38]"],
[class*="text-[#c29b38]"],
[class*="text-[#b08b30]"],
[class*="text-[#a68730]"] {
    color: #d4a72c !important;
}

[class*="bg-[#123B70]"],
[class*="bg-[#123B70]"],
[class*="bg-[#06182F]"],
[class*="bg-[#071A33]"] {
    background-color: #123b70 !important;
}

[class*="bg-[#C29B38]"],
[class*="bg-[#c29b38]"] {
    background-color: #d4a72c !important;
}

[class*="hover:bg-[#071A33]"]:hover,
[class*="hover:bg-[#06182F]"]:hover {
    background-color: #0b0f14 !important;
}

[class*="hover:bg-[#b08b30]"]:hover,
[class*="hover:bg-[#a68730]"]:hover {
    background-color: #b58a1f !important;
}

[class*="border-[#123B70]"],
[class*="border-[#123B70]"] {
    border-color: rgba(37, 99, 235, 0.45) !important;
}

[class*="border-[#C29B38]"],
[class*="border-[#c29b38]"] {
    border-color: rgba(212, 167, 44, 0.55) !important;
}

[class*="from-[#123B70]"],
[class*="from-[#123B70]"],
[class*="to-[#071A33]"],
[class*="to-[#06182F]"] {
    --tw-gradient-from: #123b70 var(--tw-gradient-from-position) !important;
    --tw-gradient-to: #071a33 var(--tw-gradient-to-position) !important;
}

[class*="from-[#D5DFDF]"],
[class*="via-[#C8D5D5]"],
[class*="to-[#BECACA]"] {
    --tw-gradient-from: #ffffff var(--tw-gradient-from-position) !important;
    --tw-gradient-to: #e8f0ff var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), #f4f8ff var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

.home-trust-section,
footer {
    background: linear-gradient(135deg, #071a33, #123b70 58%, #0b0f14) !important;
}

/* Homepage experience layer */
.homepage-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: min(760px, calc(100vh - 76px)) !important;
    padding: 0 !important;
    color: #0b0f14;
    background: #fff;
    isolation: isolate;
    overflow: hidden;
}

.homepage-hero::before {
    content: none;
}

.homepage-hero::after {
    content: none;
}

.hero-metrics {
    font-weight: 700;
    color: #123B70;
}
.hero-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    padding: clamp(1rem, 3vw, 2rem);
    background: #fff;
}

.hero-visual {
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
}

.hero-visual > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: min(760px, calc(100vh - 76px));
    object-fit: cover;
    object-position: center;
}

.hero-copy {
    animation: hero-copy-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #a77f22;
}

.hero-kicker::before {
    content: '';
    width: 34px;
    height: 1px;
    background: currentColor;
}

.homepage-hero h1 {
    max-width: 850px !important;
    color: #123b70;
    line-height: 1.05 !important;
    letter-spacing: -0.045em;
    text-shadow: none;
}

.homepage-hero p {
    color: #4b5563;
    line-height: 1.7;
}

.hero-actions a {
    min-height: 48px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-secondary-cta {
    border: 1px solid rgba(18, 59, 112, 0.28);
    color: #123b70;
}

.hero-primary-cta {
    box-shadow: 0 12px 28px rgba(194, 155, 56, 0.26);
}

.hero-primary-cta:hover,
.hero-secondary-cta:hover {
    transform: translateY(-3px);
}

.hero-primary-cta:hover {
    box-shadow: 0 18px 36px rgba(194, 155, 56, 0.4);
}

.hero-secondary-cta:hover {
    color: #071a33;
    background: #f3f6fa;
}

.hero-metrics {
    border-top: 1px solid rgba(18, 59, 112, 0.18);
    padding-top: 18px;
}

.hero-metrics div {
    display: grid;
    gap: 3px;
}

.hero-metrics strong {
    color: #123b70;
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    letter-spacing: -0.04em;
}

.hero-metrics span {
    color: #64748b;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero-orbit {
    position: absolute;
    right: 7%;
    bottom: 5%;
    width: clamp(180px, 22vw, 330px);
    aspect-ratio: 1;
    border: 1px solid rgba(194, 155, 56, 0.35);
    border-radius: 50%;
    animation: orbit-drift 14s ease-in-out infinite;
    pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
    content: '';
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.hero-orbit::after {
    inset: 30%;
    background: radial-gradient(circle, rgba(194, 155, 56, 0.18), transparent 68%);
    border-color: rgba(194, 155, 56, 0.32);
}

.hero-orbit span {
    position: absolute;
    top: 8%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c29b38;
    box-shadow: 0 0 20px 5px rgba(194, 155, 56, 0.5);
}

.hero-spotlight {
    position: relative;
    width: min(100%, 24rem);
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(18, 59, 112, 0.15);
    border-radius: 14px;
    background: #071a33;
    box-shadow: 0 18px 40px rgba(18, 59, 112, 0.14);
    transform: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: spotlight-in 1s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.spotlight-slides {
    position: relative;
}

.spotlight-slide {
    display: none;
}

.spotlight-slide.is-active {
    display: block;
    animation: spotlight-slide-in 0.45s ease both;
}

.hero-spotlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(18, 59, 112, 0.2);
}

.spotlight-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.spotlight-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(7, 15, 30, 0.86));
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-spotlight:hover .spotlight-image img {
    transform: scale(1.08);
}

.spotlight-status {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.spotlight-status i,
.market-strip i {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.spotlight-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.spotlight-copy div {
    display: grid;
    gap: 5px;
}

.spotlight-copy span:first-child {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.58rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.spotlight-copy strong {
    color: #fff;
    font-size: 0.92rem;
}

.spotlight-arrow {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid rgba(194, 155, 56, 0.65);
    border-radius: 50%;
    color: #c29b38;
    font-size: 1rem;
}

.spotlight-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px 13px;
}

.spotlight-control,
.spotlight-dot {
    border: 0;
    cursor: pointer;
}

.spotlight-control {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
}

.spotlight-control:hover,
.spotlight-control:focus-visible {
    border-color: #c29b38;
    background: rgba(194, 155, 56, 0.24);
}

.spotlight-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.spotlight-dot {
    width: 5px;
    height: 5px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
}

.spotlight-dot.is-active {
    width: 18px;
    border-radius: 999px;
    background: #c29b38;
}

@keyframes spotlight-slide-in {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.market-strip {
    position: relative;
    z-index: 4;
    overflow: hidden;
    border-top: 1px solid rgba(194, 155, 56, 0.38);
    border-bottom: 1px solid rgba(194, 155, 56, 0.22);
    background: #071a33;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.market-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 28px;
    padding: 13px 0;
    animation: market-scroll 34s linear infinite;
}

.market-track span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.market-track b {
    color: #c29b38;
    font-size: 0.65rem;
}

@keyframes spotlight-in {
    from { opacity: 0; transform: translateY(22px) rotate(5deg); }
    to { opacity: 1; transform: translateY(0) rotate(2deg); }
}

@keyframes market-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.estates-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 237, 229, 0.72));
    padding-top: 4.5rem !important;
}

.discovery-console {
    position: relative;
    border: 1px solid rgba(194, 155, 56, 0.28);
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 24px 48px rgba(18, 31, 26, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(18px);
}

.discovery-console::before {
    content: 'DISCOVER YOUR NEXT ADDRESS';
    position: absolute;
    top: -11px;
    left: 24px;
    padding: 0 10px;
    color: #c29b38;
    background: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.discovery-console > div:not(:last-child) {
    border-color: rgba(18, 59, 112, 0.13) !important;
    background: #F8FBFB !important;
    border-radius: 8px;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.discovery-console > div:not(:last-child):focus-within,
.discovery-console > div:not(:last-child):hover {
    border-color: rgba(194, 155, 56, 0.62) !important;
    background: #fff !important;
    transform: translateY(-2px);
}

.discovery-console label {
    color: rgba(18, 59, 112, 0.54) !important;
    letter-spacing: 0.14em;
}

.discovery-console select {
    color: #0B1A33 !important;
}

.discovery-console select option {
    color: #0B1A33;
    background: #fff;
}

.discovery-console button {
    border: 1px solid rgba(194, 155, 56, 0.7);
    background: linear-gradient(135deg, #123b70, #071a33) !important;
    box-shadow: 0 10px 22px rgba(18, 59, 112, 0.2);
}

.discovery-console button:hover {
    background: linear-gradient(135deg, #c29b38, #9e7629) !important;
    box-shadow: 0 14px 28px rgba(194, 155, 56, 0.34);
    transform: translateY(-2px);
}

.collection-heading {
    border-bottom: 1px solid rgba(18, 59, 112, 0.13);
    padding-bottom: 1.4rem;
}

.collection-heading h2 {
    letter-spacing: -0.045em;
}

.collection-note {
    line-height: 1.7;
}

.estates-section .estate-card {
    border-color: rgba(18, 59, 112, 0.11);
    box-shadow: 0 14px 30px rgba(32, 38, 41, 0.08);
    position: relative;
}

.estates-section .estate-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 34px;
    height: 34px;
    border-top: 1px solid rgba(194, 155, 56, 0.7);
    border-right: 1px solid rgba(194, 155, 56, 0.7);
    opacity: 0;
    transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease;
    pointer-events: none;
}

.estates-section .estate-card:hover {
    transform: translateY(-9px) scale(1.01);
    border-color: rgba(194, 155, 56, 0.56);
    box-shadow: 0 24px 42px rgba(32, 38, 41, 0.16);
}

.estates-section .estate-card .h-48 {
    height: 220px;
}

.estates-section .estate-card img {
    filter: saturate(0.88) contrast(1.04);
}

.estates-section .estate-card:hover img {
    filter: saturate(1.08) contrast(1.06);
}

@keyframes hero-copy-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes orbit-drift {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(-16px, -12px, 0) rotate(8deg); }
}

@media (max-width: 767px) {
    .homepage-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0 !important;
    }

    .hero-panel {
        gap: 2rem;
        padding: clamp(2.5rem, 9vw, 4rem) clamp(1.25rem, 6vw, 2.5rem);
    }

    .hero-visual {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .hero-visual > img {
        min-height: 0;
    }

    .spotlight-copy {
        padding: 12px;
    }

    .hero-spotlight {
        align-self: flex-start;
    }

    .hero-metrics span {
        font-size: 0.55rem;
        letter-spacing: 0.06em;
    }

    .estates-section .estate-card .h-48 {
        height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy,
    .hero-orbit,
    .hero-spotlight,
    .market-track {
        animation: none;
    }
}

article,
.gallery-item,
.estate-card,
.netflix-card {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

article:hover,
.gallery-item:hover,
.estate-card:hover,
.netflix-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(18, 59, 112, 0.14);
}

.estates-section .estate-card:hover::after {
    width: 48px;
    height: 48px;
    opacity: 1;
}

.home-confidence-section {
    padding: clamp(5rem, 9vw, 8rem) 0;
    background: #fff;
}

.confidence-quote {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid rgba(18, 59, 112, 0.13);
    border-radius: 12px;
    background: #f7f5ef;
    box-shadow: 0 16px 30px rgba(18, 59, 112, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.confidence-quote:hover {
    transform: translateY(-7px);
    border-color: rgba(194, 155, 56, 0.65);
    box-shadow: 0 24px 42px rgba(18, 59, 112, 0.14);
}

.confidence-quote-featured {
    color: #fff;
    border-color: #c29b38;
    background: #123b70;
    transform: translateY(-12px);
}

.confidence-quote-featured:hover {
    transform: translateY(-19px);
}

.gallery-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-viewer > img {
    width: 100%;
    min-height: 280px;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    color: #fff;
    background: rgba(18, 59, 112, 0.76);
    font-size: 1.35rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
    border-color: #c29b38;
    background: #c29b38;
    transform: translateY(-50%) scale(1.08);
}

.gallery-nav-prev {
    left: 16px;
}

.gallery-nav-next {
    right: 16px;
}

/* Keep legacy utility classes inside the royal-blue visual system. */
[class*="bg-green-"] {
    background-color: #dbeafe !important;
}

[class*="text-green-"] {
    color: #123b70 !important;
}

[class*="border-green-"] {
    border-color: rgba(37, 99, 235, 0.35) !important;
}

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    touch-action: none;
    user-select: none;
    padding: 0;
    border: 0;
    border-radius: 999px;
    /* Transparent: the Whatsapp Logo.png image already contains the green
       WhatsApp bubble, so a green disc behind it would look muddy. */
    background: transparent;
    color: #ffffff;
    opacity: 1;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.18);
    animation: whatsapp-hover 2.8s ease-in-out infinite;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
    background: transparent;
    color: #ffffff;
    opacity: 1;
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6), 0 6px 16px rgba(0, 0, 0, 0.25);
    animation-play-state: paused;
    transform: scale(1.1) translateY(-4px);
}

.floating-whatsapp.is-dragging {
    z-index: 99999;
    cursor: grabbing;
    animation: none;
    transition: none;
    transform: none;
}

/* The brand image fills the button and keeps the logo's own proportions. */
.floating-whatsapp img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.winners-hero {
    isolation: isolate;
    overflow: hidden;
}

.winners-hero-image {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.08) saturate(1.12) brightness(1.04);
    transform: scale(1.01);
}

.winners-gallery,
.estate-gallery {
    position: relative;
    overflow: hidden;
    min-height: clamp(280px, 48vw, 560px);
    border-radius: 18px;
    background: #071a33;
    box-shadow: 0 24px 48px rgba(18, 59, 112, 0.18);
}

.winners-gallery-slides,
.winners-gallery-slide,
.estate-gallery-slides,
.estate-gallery-slide {
    width: 100%;
    height: 100%;
}

.winners-gallery-slides,
.estate-gallery-slides {
    min-height: inherit;
}

.winners-gallery-slide,
.estate-gallery-slide {
    position: absolute;
    inset: 0;
    display: block;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 5s ease;
}

.winners-gallery-slide.is-active,
.estate-gallery-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.winners-gallery-control,
.estate-gallery-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(7, 26, 51, 0.72);
    color: #fff;
    font-size: 1.25rem;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.winners-gallery-control:hover,
.winners-gallery-control:focus-visible,
.estate-gallery-control:hover,
.estate-gallery-control:focus-visible {
    background: #d4a72c;
    transform: translateY(-50%) scale(1.06);
}

.winners-gallery-prev,
.estate-gallery-prev { left: 18px; }
.winners-gallery-next,
.estate-gallery-next { right: 18px; }

.winners-gallery-dots,
.estate-gallery-dots {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.winners-gallery-dot,
.estate-gallery-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    transition: width 0.2s ease, background-color 0.2s ease;
}

.winners-gallery-dot.is-active,
.estate-gallery-dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: #d4a72c;
}

.estate-gallery-control,
.estate-gallery-dot {
    cursor: pointer;
    padding: 0;
}

/* A slide whose file failed to load is skipped instead of showing a broken frame. */
.estate-gallery-slide.is-broken {
    display: none;
}

.estate-gallery:focus-visible {
    outline: 3px solid #d4a72c;
    outline-offset: 4px;
}

.estate-gallery-dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    /* Stop the floating WhatsApp button from bobbing for visitors who have
       asked their system for reduced motion. The button stays fully usable. */
    .floating-whatsapp {
        animation: none;
    }

    .floating-whatsapp:hover,
    .floating-whatsapp:focus-visible {
        transform: scale(1.1);
    }

    .winners-gallery-slide,
    .estate-gallery-slide {
        transition: none;
        transform: none;
    }

    .winners-gallery-control,
    .estate-gallery-control,
    .winners-gallery-dot,
    .estate-gallery-dot {
        transition: none;
    }
}

@keyframes whatsapp-hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 640px) {
    .floating-whatsapp {
        right: 16px;
        bottom: 76px;
        width: 46px;
        height: 46px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .floating-whatsapp {
        bottom: 72px;
    }
}

.gallery-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.gallery-caption span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

@media (max-width: 767px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav-prev {
        left: 8px;
    }

    .gallery-nav-next {
        right: 8px;
    }
}

.confidence-quote > span {
    color: #c29b38;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.confidence-quote p {
    flex: 1;
    margin: 2rem 0;
    color: #1B2F4D;
    font-size: 1rem;
    line-height: 1.8;
}

.confidence-quote-featured p {
    color: rgba(255, 255, 255, 0.88);
}

.confidence-quote cite {
    color: #718080;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.confidence-quote-featured cite {
    color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 767px) {
    .confidence-quote-featured,
    .confidence-quote-featured:hover {
        transform: none;
    }
}

/* Final palette pass for late component rules. */
.discovery-console button {
    border-color: rgba(37, 99, 235, 0.7) !important;
    background: linear-gradient(135deg, #123b70, #071a33) !important;
    box-shadow: 0 10px 22px rgba(18, 59, 112, 0.2) !important;
}

.discovery-console button:hover {
    background: linear-gradient(135deg, #2563eb, #123b70) !important;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34) !important;
}

.gallery-nav {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(18, 59, 112, 0.86);
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
    border-color: #2563eb;
    background: #2563eb;
}

.confidence-quote > span {
    color: #2563eb;
}

.confidence-quote p {
    color: #243247;
}

/* Estate gallery styles live in the single canonical block above, which covers
   both .estate-gallery (used by every estate page) and the legacy
   .winners-gallery class family. A duplicate "Universal Estate Gallery Styles"
   block used to sit here; it has been removed so the two class families are
   never styled twice and the dots/controls keep their correct positions. */

/* ============================================================
   ESTATE STATUS TRACKER
   Styles for the status-only estate pages. The markup is built
   by estate-status.js into [data-estate-status-root].
   ============================================================ */

.status-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.25rem, 7vw, 5.5rem) 1rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(140deg, #0d2c55 0%, #123b70 55%, #071a33 100%);
}

.status-hero::after {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -65%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(212, 167, 44, 0.3), transparent 70%);
    pointer-events: none;
}

.status-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 52rem;
    margin: 0 auto;
}

.status-hero__eyebrow {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #d4a72c;
}

.status-hero__name {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.1rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0.75rem 0 0.5rem;
}

.status-hero__location {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.75rem;
    padding: 0.85rem 2.1rem;
    border-radius: 999px;
    font-size: clamp(0.95rem, 2.3vw, 1.3rem);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 18px 40px rgba(7, 26, 51, 0.35);
}

.status-badge::before {
    content: '';
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.status-badge--soon { background: #d4a72c; color: #071a33; }
.status-badge--live { background: #123b70; color: #ffffff; }
.status-badge--live::before { background: #d4a72c; }

.status-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    background: #fff;
    border: 1px solid rgba(18, 59, 112, 0.12);
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(18, 59, 112, 0.1);
}

.status-panel__updated { font-size: 0.8rem; color: #6b7280; }
.status-panel__updated strong { color: #123b70; }

.status-ring { position: relative; width: 225px; height: 225px; }
.status-ring__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.status-ring__track { fill: none; stroke: rgba(18, 59, 112, 0.1); stroke-width: 14; }

.status-ring__value {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.status-ring__label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.status-ring__number { font-size: 2.8rem; font-weight: 800; line-height: 1; color: #123b70; }

.status-ring__caption {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9ca3af;
}

.status-panel__counts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 0.25rem; }

.status-count {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid;
}

.status-count strong { font-size: 0.95rem; }
.status-count--done { color: #123b70; background: rgba(18, 59, 112, 0.07); border-color: rgba(18, 59, 112, 0.2); }
.status-count--active { color: #8a6a12; background: rgba(212, 167, 44, 0.14); border-color: rgba(212, 167, 44, 0.45); }
.status-count--pending { color: #6b7280; background: #f3f4f6; border-color: #e5e7eb; }

.status-tracker {
    margin-top: 2rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: #fff;
    border: 1px solid rgba(18, 59, 112, 0.12);
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(18, 59, 112, 0.08);
}

.status-tracker__head { margin-bottom: 2.5rem; }
.status-tracker__title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: #123b70; }
.status-tracker__next { margin-top: 0.5rem; font-size: 0.95rem; color: #6b7280; }
.status-tracker__next strong { color: #123b70; }

.status-steps { list-style: none; display: grid; gap: 1.5rem; }
.status-step { position: relative; display: flex; gap: 1.1rem; }

/* Connector between steps: vertical on small screens, horizontal once the
   six stages sit side by side. */
.status-step::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: rgba(18, 59, 112, 0.14);
}

.status-step:first-child::before { display: none; }
.status-step.is-done::before { background: rgba(212, 167, 44, 0.8); }

.status-step__dot {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.05rem;
    font-weight: 800;
    background: #fff;
    border: 2px solid;
}

.status-dot--done { background: #123b70; border-color: #123b70; color: #fff; }

.status-dot--active {
    background: #fffdf5;
    border-color: #d4a72c;
    color: #d4a72c;
    font-size: 0.8rem;
    animation: status-pulse 2.2s ease-in-out infinite;
}

.status-dot--pending { border-color: #d7dbe2; color: #c8ccd4; }

.status-step__body { padding-top: 0.2rem; }
.status-step__label { font-size: 1.05rem; font-weight: 700; color: #0b0f14; }
.status-step.is-pending .status-step__label { color: #9ca3af; }
.status-step__note { margin-top: 0.2rem; font-size: 0.88rem; color: #6b7280; }

.status-step__tag {
    display: inline-block;
    margin-top: 0.55rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: #f3f4f6;
    color: #6b7280;
}

.status-step.is-done .status-step__tag { background: rgba(18, 59, 112, 0.1); color: #123b70; }
.status-step.is-active .status-step__tag { background: rgba(212, 167, 44, 0.18); color: #8a6a12; }

.status-contact {
    margin-top: 2rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    text-align: center;
    color: #fff;
    border-radius: 20px;
    background: linear-gradient(140deg, #0d2c55 0%, #123b70 58%, #071a33 100%);
    box-shadow: 0 22px 48px rgba(7, 26, 51, 0.28);
}

.status-contact__title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #d4a72c;
}

.status-contact__grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.75rem;
    text-align: left;
}

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

.status-contact__item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease, border-color 0.25s ease;
}

a.status-contact__item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 167, 44, 0.6);
}

.status-contact__label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.status-contact__value {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    overflow-wrap: anywhere;
}

.status-contact__button {
    display: inline-block;
    margin-top: 1.75rem;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    font-weight: 700;
    color: #071a33;
    background: #d4a72c;
    transition: background 0.25s ease, transform 0.25s ease;
}

.status-contact__button:hover { background: #e0ba55; transform: translateY(-2px); }

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(212, 167, 44, 0.16); }
    50% { box-shadow: 0 0 0 11px rgba(212, 167, 44, 0.05); }
}

@media (min-width: 1024px) {
    .status-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
    .status-step { flex-direction: column; align-items: center; text-align: center; padding: 0 0.6rem; }
    .status-step::before {
        left: 50%;
        top: 21px;
        bottom: auto;
        width: 100%;
        height: 2px;
        margin-left: 0;
        transform: translateX(-50%);
    }
    .status-step__body { padding-top: 1rem; }
}

.membership-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(18, 59, 112, 0.12);
    border-radius: 16px;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.membership-card:hover {
    border-color: rgba(212, 167, 44, 0.55);
    box-shadow: 0 18px 36px rgba(18, 59, 112, 0.1);
    transform: translateY(-4px);
}

.membership-card__icon { font-size: 2rem; line-height: 1; }
.membership-card__title { font-family: 'Montserrat', sans-serif; font-size: 1.35rem; font-weight: 800; color: #123b70; }
.membership-card__text { color: #6b7280; font-size: 0.92rem; line-height: 1.65; flex: 1; }

.membership-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.8rem 1.8rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.membership-btn--primary { background: #c29b38; color: #fff; }
.membership-btn--primary:hover { background: #a9822d; transform: translateY(-2px); }
.membership-btn--primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.membership-btn--ghost { background: #fff; color: #123b70; border-color: #123b70; }
.membership-btn--ghost:hover { background: #123b70; color: #fff; }
.membership-btn--full { width: 100%; text-align: center; margin-top: 0.25rem; }

/* --- modal --- */
.membership-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.membership-modal[hidden] { display: none; }
.membership-modal__backdrop { position: absolute; inset: 0; background: rgba(7, 26, 51, 0.72); backdrop-filter: blur(3px); }

.membership-modal__panel {
    position: relative;
    width: min(620px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(7, 26, 51, 0.4);
}

.membership-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eef1f6;
}

.membership-modal__title { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 800; color: #123b70; }

.membership-modal__close {
    border: 0;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0 0.25rem;
}

.membership-modal__close:hover { color: #123b70; }
.membership-modal__body { padding: 1.5rem; }
.membership-modal__lead { color: #6b7280; font-size: 0.9rem; margin-bottom: 1.25rem; }

/* --- download chooser --- */
.membership-option {
    position: relative;
    display: block;
    margin-bottom: 0.75rem;
    padding: 1rem 7rem 1rem 1.15rem;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #fbfcfe;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.membership-option:hover { border-color: #c29b38; background: #fffdf6; }
.membership-option__name { display: block; font-weight: 700; color: #123b70; font-size: 0.98rem; }
.membership-option__note { display: block; color: #6b7280; font-size: 0.84rem; margin-top: 0.15rem; }
.membership-option__file { display: block; color: #9ca3af; font-size: 0.74rem; margin-top: 0.3rem; word-break: break-all; }

.membership-option__go {
    position: absolute;
    top: 50%;
    right: 1.15rem;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 0.82rem;
    color: #c29b38;
    white-space: nowrap;
}

/* --- upload form --- */
.membership-field { margin-bottom: 1rem; }

.membership-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4b5563;
}

.membership-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d5dae3;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #fff;
    color: #0b0f14;
}

.membership-input:focus { outline: none; border-color: #123b70; box-shadow: 0 0 0 3px rgba(18, 59, 112, 0.12); }
.membership-input--file { padding: 0.55rem; font-size: 0.85rem; }
.membership-hint { margin-top: 0.35rem; font-size: 0.78rem; color: #6b7280; }
.membership-hint--ok { color: #166534; }
.membership-hint--error { color: #b91c1c; }

.membership-status {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.86rem;
    border: 1px solid transparent;
}

.membership-status--info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.membership-status--success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.membership-status--error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.membership-status[hidden] { display: none; }

.membership-online {
    margin-top: 2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(18, 59, 112, 0.14);
    border-radius: 16px;
    background: #fbfcfe;
    scroll-margin-top: 2rem;
}

.membership-online__intro { margin-bottom: 1.5rem; }
.membership-online-group { min-width: 0; margin: 1.5rem 0; padding: 1.25rem; border: 1px solid #e3e8f0; border-radius: 12px; }
.membership-online-group__title { padding: 0 0.4rem; color: #123b70; font-weight: 800; font-size: 1rem; }
.membership-online-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.membership-field--wide { grid-column: 1 / -1; }
.membership-input--textarea { min-height: 5.5rem; resize: vertical; }
.membership-print { display: none; }

@media (max-width: 640px) {
    .membership-online-grid { grid-template-columns: minmax(0, 1fr); }
    .membership-field--wide { grid-column: auto; }
}

@media print {
    body * { visibility: hidden !important; }
    #membership-print,
    #membership-print * { visibility: visible !important; }
    #membership-print {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 12mm;
        color: #111827;
        background: #fff;
        font-family: Arial, sans-serif;
    }
    .membership-print__header { margin-bottom: 1.25rem; padding-bottom: 0.8rem; border-bottom: 2px solid #123b70; text-align: center; }
    .membership-print__header h1 { color: #123b70; font-size: 17pt; }
    .membership-print__header p { margin-top: 0.35rem; font-size: 13pt; font-weight: 700; }
    .membership-print__group { margin: 0 0 1rem; break-inside: avoid; }
    .membership-print__group h2 { margin-bottom: 0.4rem; padding: 0.35rem 0.5rem; background: #123b70; color: #fff; font-size: 11pt; }
    .membership-print__group dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1rem; margin: 0; }
    .membership-print__item { padding: 0.3rem 0; border-bottom: 1px solid #d1d5db; }
    .membership-print__item dt { color: #4b5563; font-size: 8pt; font-weight: 700; }
    .membership-print__item dd { min-height: 1.2em; margin: 0.15rem 0 0; font-size: 10pt; overflow-wrap: anywhere; }
    .membership-print__footnote { margin-top: 1.5rem; font-size: 9pt; }
}

@media (prefers-reduced-motion: reduce) {
    .membership-card,
    .membership-btn,
    .membership-option { transition: none; }
    .membership-card:hover,
    .membership-btn:hover { transform: none; }

    /* The estate status tracker, which lives further up this file. */
    .status-dot--active { animation: none; }
    .status-ring__value { transition: none; }
}


/* ---------------------------------------------------------------------------
 * Arrow badge
 * ---------------------------------------------------------------------------
 * Every arrow on the site is images/arrow.png, a teal circular badge whose
 * arrow points RIGHT. The other directions are rotations of that same file, so
 * all arrows stay visually consistent.
 *
 *   hog-arrow--icon     fills a circular control button
 *   hog-arrow--inline   sits in a line of text, sized to the line
 * --------------------------------------------------------------------------- */
.hog-arrow {
    display: block;
    transform: rotate(var(--hog-arrow-angle, 0deg));
}

.hog-arrow--right { --hog-arrow-angle: 0deg; }
.hog-arrow--down { --hog-arrow-angle: 90deg; }
.hog-arrow--left { --hog-arrow-angle: 180deg; }
.hog-arrow--up { --hog-arrow-angle: -90deg; }
.hog-arrow--up-right { --hog-arrow-angle: -45deg; }

.hog-arrow--icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hog-arrow--inline {
    display: inline-block;
    width: auto;
    height: 1.15em;
    vertical-align: -0.22em;
}

/* A control whose whole face is now the badge: keep the element, the hit
   area and the focus ring, but drop the painted circle so the badge is it. */
.hog-arrow-host {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
}

.hog-arrow-host:hover,
.hog-arrow-host:focus-visible {
    background: none;
    border-color: transparent;
}

/* partnership.html restyles its two carousel controls inside an inline
   <style> that loads after this file, so these need a compound selector
   (0,2,0) to beat those later rules and drop the old painted circle. */
.ak-slideshow-control.hog-arrow-host,
.ak-card-switch.hog-arrow-host {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
}

/* Controls centred with translateY(-50%) keep that translate while popping. */
.gallery-nav.hog-arrow-host:hover,
.gallery-nav.hog-arrow-host:focus-visible,
.estate-gallery-control.hog-arrow-host:hover,
.estate-gallery-control.hog-arrow-host:focus-visible,
.winners-gallery-control.hog-arrow-host:hover,
.winners-gallery-control.hog-arrow-host:focus-visible,
.ak-slideshow-control.hog-arrow-host:hover,
.ak-slideshow-control.hog-arrow-host:focus-visible,
.ak-card-switch.hog-arrow-host:hover,
.ak-card-switch.hog-arrow-host:focus-visible {
    background: none;
    border-color: transparent;
    transform: translateY(-50%) scale(1.07);
}

/* Controls laid out in flow pop without the translate. */
.spotlight-control.hog-arrow-host:hover,
.spotlight-control.hog-arrow-host:focus-visible,
.spotlight-arrow.hog-arrow-host:hover,
.spotlight-arrow.hog-arrow-host:focus-visible {
    background: none;
    border-color: transparent;
    transform: scale(1.1);
}

/* ===========================================================================
   SITE HEADER - the styles for the markup nav.js actually injects
   ---------------------------------------------------------------------------
   nav.js renders:
       header > .hog-header__inner > (.hog-header__bar + .hog-drawer)

   This block replaces a set of .site-nav-* rules that never matched any
   element, because nav.js uses its own class names. That mismatch is the
   reason the mobile menu looked broken: every rule written to fix it was
   being applied to nodes that did not exist in the document.
   =========================================================================== */

.hog-header__inner {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* The bar is a flex row at every breakpoint. The drawer is a sibling BELOW
   it, never a flex sibling beside it - that relationship is the whole fix
   for the squeezed half-width mobile menu. */
.hog-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    width: 100%;
    max-width: 100%;
}

.hog-logo {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 46vw;
}

.hog-logo__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 4px 8px rgba(18, 59, 112, 0.15));
}

.hog-nav {
    display: none;
    align-items: center;
    gap: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #123b70;
}

.hog-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    padding: 10px 0;
    color: #123b70;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.hog-nav__link:hover,
.hog-nav__link:focus-visible,
.hog-nav__link.is-active {
    color: #c29b38;
}

/* Neutralise the bare `nav a` and `nav a::after` rules further up this file.
   Those were written for the old markup and gave header links a pale
   #9DBDEA hover colour (illegible on white) plus a stray underline; their
   old neutraliser targeted .site-nav-links, which no longer exists. */
.hog-nav a,
.hog-drawer a {
    text-shadow: none;
    letter-spacing: inherit;
}

.hog-nav a::after,
.hog-drawer a::after {
    display: none;
}

.hog-nav a:hover,
.hog-nav a:focus-visible,
.hog-drawer a:hover,
.hog-drawer a:focus-visible {
    color: #c29b38;
    text-shadow: none;
}

.hog-nav__group {
    position: relative;
    padding: 6px 0;
}

.hog-nav__group > div {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    width: min(20rem, 90vw);
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(18, 59, 112, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.hog-nav__group > div > div:first-child {
    max-height: min(24rem, calc(100vh - 7rem));
    overflow-y: auto;
}

.hog-nav__group > div > div:first-child > a:not(.hog-arrow) {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
}

.hog-nav__group > div > div:first-child > a:first-child {
    margin-bottom: 8px;
    color: #123b70;
    background: #f4f8ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.hog-nav__group > div > div:first-child > div {
    padding: 8px 10px 4px;
    color: #123b70;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hog-nav__group > div > div:first-child > div:nth-of-type(n + 3) {
    margin-top: 8px;
    border-top: 1px solid #eef2f7;
    color: #a77f22;
}

.hog-nav__group > div > div:first-child > div:nth-of-type(2) + div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 10px 10px;
}

.hog-nav__group > div > div:first-child > div:nth-of-type(2) + div > a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f4f8ff;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

/* Desktop dropdown. Unreachable by touch, which is why the same estate list
   is repeated inside the mobile drawer. */
.hog-nav__group:hover > div,
.hog-nav__group:focus-within > div,
.hog-nav__group.is-open > div {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.hog-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.hog-btn {
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hamburger. Was `p-2` around a 24px icon, i.e. a 40x40px target, below the
   44px minimum. The box is now an explicit 44x44 with a centred glyph.

   The `header` prefix on this selector is load-bearing, not decoration. The
   Tailwind Play CDN appends its generated <style> to <head> AFTER the css.css
   <link>, so at equal specificity Tailwind wins the cascade regardless of
   file order. `header .hog-burger` (0,1,1) therefore beats Tailwind's
   `.md\:hidden` (0,1,0) and the button is reliably grid below 768px and
   reliably hidden above it. Without the prefix the breakpoint flip can
   silently invert depending on injection order. */
header .hog-burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    color: #123b70;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hog-burger:hover,
.hog-burger:focus-visible {
    background: rgba(18, 59, 112, 0.07);
}

/* Both icons share one grid cell so the bar and the cross cross-fade in
   place instead of shifting the button. */
.hog-burger__icon {
    grid-area: 1 / 1;
    width: 24px;
    height: 24px;
}

.hog-burger__icon--close {
    display: none;
}

.hog-burger.is-open .hog-burger__icon--close {
    display: block;
}

.hog-burger.is-open .hog-burger__icon:not(.hog-burger__icon--close) {
    display: none;
}

/* --- mobile drawer ------------------------------------------------------ */
.hog-drawer {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    /* Clear the iPhone home indicator instead of hiding links beneath it. */
    padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
    background: #fff;
    border-bottom: 1px solid rgba(18, 59, 112, 0.12);
    box-shadow: 0 18px 40px rgba(18, 59, 112, 0.14);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Explicitly hide mobile controls at the desktop breakpoint. */
@media (min-width: 768px) {
    .hog-nav {
        display: flex;
    }

    .hog-header__actions > .hog-btn--gold {
        display: inline-flex;
    }

    header .hog-drawer,
    header .hog-burger {
        display: none;
    }
}

/* Every row is a full-width, 44px-minimum tap target with real spacing.
   The old rows were `py-1 text-sm` - roughly 28px tall, about 10px apart,
   which is the classic recipe for tapping the wrong menu item. */
.hog-drawer__link,
.hog-drawer__toggle {
    display: flex;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 4px;
    color: #123b70;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(18, 59, 112, 0.08);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
    text-transform: none;
    cursor: pointer;
}

.hog-drawer__link--strong {
    font-weight: 700;
}

.hog-drawer__chevron {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #c29b38;
    transition: transform 0.2s ease;
}

.hog-drawer__chevron.is-open {
    transform: rotate(180deg);
}

.hog-drawer__sub {
    display: grid;
    gap: 2px;
    margin: 8px 0 10px;
    padding: 6px 12px 10px;
    background: #f4f8ff;
    border-radius: 12px;
}

.hog-drawer__sublink {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 4px;
    color: #1b2f4d;
    font-size: 0.88rem;
}

.hog-drawer__label {
    margin: 10px 0 4px;
    color: #123b70;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hog-drawer__label--state {
    margin-top: 14px;
    color: #c29b38;
}

.hog-drawer__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hog-drawer__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    color: #123b70;
    background: #fff;
    border: 1px solid rgba(18, 59, 112, 0.22);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hog-drawer__chip:hover,
.hog-drawer__chip:focus-visible {
    color: #fff;
    background: #123b70;
}

.hog-drawer__cta-wrap {
    padding-top: 14px;
}

.hog-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 20px;
    color: #0b0f14;
    background: #c29b38;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hog-drawer__cta:hover,
.hog-drawer__cta:focus-visible {
    color: #fff;
    background: #b58a1f;
}

.hog-header__inner :focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .hog-header__bar {
        min-height: 80px;
        gap: 20px;
    }

    .hog-logo {
        max-width: 260px;
    }

    .hog-logo__img {
        max-height: 64px;
    }
}

@media (max-width: 767px) {
    .hog-nav {
        display: none;
    }

    .hog-header__actions > .hog-btn--gold {
        display: none;
    }

    .hog-logo {
        max-width: 54vw;
    }

    .hog-logo__img {
        max-height: 40px;
    }
}

/* Smallest phones (iPhone SE and similar at 320px) lose height first. */
@media (max-width: 360px) {
    .hog-logo {
        max-width: 48vw;
    }

    .hog-logo__img {
        max-height: 34px;
    }
}

.hog-btn--gold {
    color: #fff;
    background: #c29b38;
}

.hog-btn--gold:hover,
.hog-btn--gold:focus-visible {
    color: #fff;
    background: #b58a1f;
}


/* ===========================================================================
   MOBILE / RESPONSIVE HARDENING
   ---------------------------------------------------------------------------
   Grouped fixes for screens below 768px, plus a few global guards. Each block
   notes what broke and why the change resolves it permanently.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. TOUCH TARGETS
   The audit found interactive elements well under the 44x44px minimum:

     .spotlight-control   26x26px  (hero carousel prev/next)
     .spotlight-dot        5x5px   (carousel pagination - untappable)
     .gallery-nav         40x40px  at <=767px (was 46px on desktop)
     .hog-burger          40x40px  (p-2 wrapped around a 24px icon)
     footer links        ~20px    (space-y-2.5, no min-height)
     .trust-index / .hero-metrics span / .market-track span
                          8.8-10.4px type, below the legibility floor

   The carousel dots keep their small painted size but gain a 44px hit area
   through a pseudo-element, so no card reflows.
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .spotlight-control,
    .winners-gallery-control,
    .estate-gallery-control,
    .gallery-nav {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .spotlight-dot,
    .winners-gallery-dot,
    .estate-gallery-dot {
        position: relative;
    }

    .spotlight-dot::after,
    .winners-gallery-dot::after,
    .estate-gallery-dot::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 44px;
        height: 44px;
        transform: translate(-50%, -50%);
    }

    footer li > a,
    footer li > span {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (max-width: 767px), (pointer: coarse) {
    button.gallery-filter,
    .membership-btn,
    .status-contact__button,
    .discovery-console button {
        min-height: 48px;
    }

    input[type="submit"],
    input[type="button"],
    .membership-input,
    select,
    textarea {
        min-height: 48px;
    }
}

/* ---------------------------------------------------------------------------
   2. TYPOGRAPHY
   `.homepage-hero h1` was text-4xl (36px) with `line-height: .98` forced by
   !important. At 320-375px that wraps to 3-4 lines with descenders clipping
   against the next element. clamp() scales it with the viewport instead of
   stepping at fixed breakpoints, and the line-height is relaxed on mobile so
   descenders and accents have room.
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .homepage-hero h1,
    main > section:first-child h1,
    body > section:first-of-type h1 {
        font-size: clamp(1.85rem, 8.2vw, 2.5rem) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.03em;
        margin-bottom: 1.1rem;
    }

    .home-about-section h2,
    .home-trust-section h2,
    .home-confidence-section h2,
    .home-team-section h2,
    .estates-section h2 {
        font-size: clamp(1.55rem, 6.4vw, 1.9rem);
        line-height: 1.2;
    }

    /* Raise the sub-12px labels to a readable floor on phones. */
    .hero-metrics span,
    .trust-index,
    .spotlight-copy span:first-child,
    .spotlight-status,
    .market-track span,
    .confidence-quote > span,
    .leadership-note span,
    .status-hero__eyebrow {
        font-size: max(0.7rem, 2.6vw);
        letter-spacing: 0.08em;
    }
}

/* ---------------------------------------------------------------------------
   3. SPACING
   Sections used fixed py-16 / py-20 / py-24 with no mobile step-down.
   py-24 alone is 192px of vertical padding - on a 667px-tall phone that is
   roughly 29% of the screen consumed by whitespace above and below a
   heading. These rules scale section padding with the viewport instead.
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
    section.py-24,
    section[class*="py-24"] {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    section.py-20 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    section.py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    section.py-14,
    section.py-12 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .home-trust-section,
    .home-confidence-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    /* The four footer columns stack on mobile, so the 48px (gap-12) row gap
       became a huge vertical void between short lists. */
    footer .grid {
        gap: 2.5rem;
    }
}

/* ---------------------------------------------------------------------------
   4. HORIZONTAL OVERFLOW OFFENDERS
   --------------------------------------------------------------------------- */

/* .discovery-console had `min-w-[200px]` on each field plus `overflow-x-auto`
   on the container. That builds a nested horizontal scroller inside a page
   that already clips overflow, so the control looked stuck and the page
   could shift sideways. Below `sm` the fields simply fill their column. */
@media (max-width: 639px) {
    .discovery-console {
        overflow-x: visible;
        padding: 1.25rem !important;
    }

    .discovery-console > div {
        min-width: 0 !important;
    }

    .discovery-console select {
        /* 16px minimum prevents iOS Safari zoom-on-focus. */
        font-size: 16px;
        min-height: 44px;
    }
}

/* .netflix-card is a horizontal-scroll row, but a 300px floor overflowed a
   320px screen. It now scales with the viewport while keeping a peek of the
   next card so the row still reads as scrollable. */
@media (max-width: 767px) {
    .netflix-card {
        min-width: min(300px, 78vw);
        max-width: min(320px, 82vw);
        scroll-snap-align: start;
    }

    .netflix-row {
        gap: 1rem;
        /* Bleed to the screen edge so the scroll affordance survives the
           page gutter. */
        margin: 0 -0.25rem;
        padding: 0.75rem 0.25rem 1.5rem;
        scroll-snap-type: x mandatory;
    }
}

/* The estate directory pinned its image to a fixed 224x224 box - nearly the
   full content width in height. Below `md` it becomes a 132px thumbnail. */
@media (max-width: 767px) {
    .estates-directory-grid > div > div:first-child,
    .estates-directory-grid > div > a:first-child {
        flex: 0 0 132px;
        width: 132px;
        height: 132px;
    }
}

/* `body::before` is a fixed decorative band offset -12vw on each side.
   `overflow: clip` contains it, but on narrow screens it still reads as a
   smudge at the edge, so it is dropped below `sm`. */
@media (max-width: 639px) {
    body::before {
        display: none;
    }
}

/* ---------------------------------------------------------------------------
   5. HERO HEIGHT
   The mobile split layout uses natural content height and no extra section
   padding, leaving the full-bleed image directly beneath the copy panel.
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .homepage-hero {
        min-height: auto !important;
        padding: 0 !important;
        align-items: stretch;
    }
}

/* ---------------------------------------------------------------------------
   6. IMAGES AND MEDIA
   A global `max-width: 100%` guard is set near the top of this file. These
   rules cover what that guard cannot: fixed-height frames that letterbox and
   absolute hero images that crop badly on a tall narrow box.
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .spotlight-image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    /* `object-position: center` cuts faces and signage out of a 4:3 photo in
       a tall narrow frame; bias the crop upward. */
    .about-image-frame img,
    .winners-hero-image,
    .spotlight-image img {
        object-position: center 30%;
    }
}

/* ---------------------------------------------------------------------------
   7. ADMIN TABLE
   admin-dashboard.html sets `.admin-table { min-width: 760px }` below 768px
   inside a card carrying `overflow: hidden`. That pairing guarantees data
   loss: the table is wider than the screen and its overflow is clipped with
   no way to scroll to it. The card scrolls horizontally instead.
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .admin-card:has(.admin-table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 640px;
    }
}

/* ---------------------------------------------------------------------------
   8. FORM CONTROLS
   An input below 16px triggers iOS Safari's focus-zoom, after which the page
   stays horizontally panned and the visitor has to pinch back. 16px is the
   smallest size that avoids it.
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
    input,
    select,
    textarea {
        /* !important because Tailwind size utilities (text-sm, text-xs, 0,1,0)
           outrank a bare element selector, and those are exactly the inputs
           that would otherwise zoom on iOS. */
        font-size: max(1rem, 16px) !important;
    }
}

/* ---------------------------------------------------------------------------
   10. HOMEPAGE ABOUT SNAPSHOT
   index.html uses .home-about-section, .about-image-frame and .section-intro,
   but none of them were ever defined in this file. The frame therefore had no
   height, so `h-full` on the image collapsed and the "Built around real
   needs" caption rendered as unstyled inline text sitting on top of the
   photo. These give the frame a real ratio and the caption a real position.
   --------------------------------------------------------------------------- */
.home-about-section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    background: #fff;
}

.about-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(18, 59, 112, 0.14);
}

.about-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-frame > span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1;
    padding: 8px 14px;
    color: #fff;
    background: rgba(7, 26, 51, 0.72);
    border: 1px solid rgba(212, 167, 44, 0.45);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-intro {
    max-width: 42rem;
}

@media (max-width: 767px) {
    .home-about-section {
        padding: 3.5rem 0;
    }

    /* The grid is single-column here, so the image no longer needs to match
       the height of the text column beside it. */
    .about-image-frame {
        aspect-ratio: 16 / 10;
    }

    .section-intro {
        margin-bottom: 2rem;
    }
}

/* ---------------------------------------------------------------------------
   9. MOTION
   The reveal animation translates elements 28px. Combined with a long mobile
   page, a fast scroll can leave content parked at opacity 0 if the observer
   misses it. On phones the reveal is transform-free, so a missed observer
   can never mis-position an element.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce), (max-width: 767px) {
    [data-reveal],
    [data-reveal].reveal-pending {
        transform: none;
    }
}


/* ---------------------------------------------------------------------------
   11. CARD AND MODAL CONTROLS
   The estate cards end in a `px-4 py-2 text-xs` pill - about 30px tall, and
   it sits directly beside a text label, so a near-miss tap does nothing
   visible. The estate and modal close buttons had the same problem.
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .estate-card .rounded-full,
    .membership-btn,
    #estate-modal a.rounded-full {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0 18px;
    }

    #modal-close,
    #gallery-close,
    .membership-modal__close {
        display: grid;
        place-items: center;
        min-width: 44px;
        min-height: 44px;
    }

    /* The estate card footer stacks on very narrow screens so the label and
       the button never fight for the same 200px of row. */
    .estate-card > div:last-child {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Homepage hero: full-bleed image followed by a side-by-side intro and feature. */
.homepage-hero {
    display: block !important;
    min-height: 0 !important;
    overflow: visible;
    background: #e8f0ff;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: clamp(32rem, 76vh, 54rem);
    min-height: 0;
}

.hero-visual > img {
    min-height: 0;
    object-position: center;
}

.hero-image-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 42%,
        rgba(7, 26, 51, 0.2) 58%,
        rgba(7, 26, 51, 0.62) 76%,
        rgba(7, 26, 51, 0.48) 86%,
        rgba(232, 240, 255, 0.5) 95%,
        #e8f0ff 100%
    );
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    right: max(1.5rem, calc((100% - 80rem) / 2));
    bottom: 0;
    left: max(1.5rem, calc((100% - 80rem) / 2));
    z-index: 1;
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.hero-overlay .hero-actions {
    margin-top: 0;
}

.hero-overlay .hero-secondary-cta {
    color: #123b70;
    border-color: rgba(18, 59, 112, 0.35);
    background: rgba(255, 255, 255, 0.84);
}

.hero-overlay .hero-secondary-cta:hover {
    background: #fff;
}

.hero-overlay .hero-metrics {
    max-width: 42rem;
    margin-top: 1.5rem;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-overlay .hero-metrics strong {
    color: #fff;
    text-shadow: 0 1px 5px rgba(7, 26, 51, 0.55);
}

.hero-overlay .hero-metrics span {
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 5px rgba(7, 26, 51, 0.7);
}

.hero-content-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2rem);
    padding: clamp(1.5rem, 4vw, 3rem) max(1.5rem, calc((100% - 80rem) / 2));
    background: #e8f0ff;
}

.hero-content-band .hero-panel {
    display: block;
    padding: 0;
    background: transparent;
}

.hero-content-band .hero-copy {
    max-width: 42rem;
}

.hero-featured-band {
    min-width: 0;
}

.hero-content-band .hero-spotlight {
    width: 100%;
    max-width: 24rem;
    margin-left: auto;
}

@media (max-width: 767px) {
    .hero-visual {
        height: clamp(30rem, 78svh, 42rem);
    }

    .hero-overlay {
        right: 1rem;
        left: 1rem;
        padding-bottom: 1.5rem;
    }

    .hero-overlay .hero-actions {
        gap: 0.625rem;
    }

    .hero-overlay .hero-metrics {
        width: 100%;
        max-width: 100%;
        gap: 0.65rem;
        margin-top: 1rem;
        padding-top: 0.85rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-overlay .hero-metrics span {
        font-size: 0.68rem;
        letter-spacing: 0.04em;
    }

    .hero-content-band {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        padding: 2rem 1.25rem 3rem;
    }

    .hero-content-band .hero-spotlight {
        max-width: none;
        margin: 0;
    }
}


/* ===========================================================================
   GROUPED GALLERY
   ---------------------------------------------------------------------------
   Rendered by gallery-view.js from gallery-photos.js + gallery-groups.js.
   Mobile rules follow the same conventions as the rest of the site: real
   44px tap targets, viewport-scaled type, and no fixed widths.
   =========================================================================== */

.gallery-shell { display: block; width: 100%; }

.gallery-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 1.25rem;
}

.gallery-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.gallery-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* 44px minimum tap target. */
    min-height: 44px;
    padding: 0 16px;
    color: #123b70;
    background: #fff;
    border: 1px solid rgba(18, 59, 112, 0.18);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-chip:hover,
.gallery-chip:focus-visible { border-color: #c29b38; background: #fdfaf1; }

.gallery-chip[aria-pressed="true"] {
    color: #fff;
    background: #123b70;
    border-color: #123b70;
}

.gallery-chip__count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(18, 59, 112, 0.1);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
}

.gallery-chip[aria-pressed="true"] .gallery-chip__count { background: rgba(255, 255, 255, 0.22); }

.gallery-count {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.gallery-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.gallery-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(18, 59, 112, 0.1);
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
    transform: translateY(-4px);
    border-color: #c29b38;
    box-shadow: 0 18px 34px rgba(18, 59, 112, 0.16);
}

.gallery-card__frame {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8eef6;
}

.gallery-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-card:hover .gallery-card__img { transform: scale(1.06); }

.gallery-card__tag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 10px;
    color: #fff;
    background: rgba(7, 26, 51, 0.78);
    border: 1px solid rgba(212, 167, 44, 0.4);

/* --- lightbox ----------------------------------------------------------- */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(7, 13, 24, 0.94);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox.is-open { opacity: 1; }

.gallery-lightbox__stage {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: min(1200px, 100%);
    /* Leaves room for the caption and the touch controls on a phone. */
    max-height: calc(100dvh - 150px);
}

.gallery-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 150px);
    object-fit: contain;
    border-radius: 10px;
    background: #0b1220;
}

.gallery-lightbox__caption {
    display: grid;
    gap: 2px;
    margin-top: 12px;
    text-align: center;
    color: #fff;
}

.gallery-lightbox__title { font-size: 0.95rem; font-weight: 700; }

.gallery-lightbox__meta,
.gallery-lightbox__count {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.62);
    font-variant-numeric: tabular-nums;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    display: grid;
    place-items: center;
    /* 44px minimum on every axis. */
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible {
    background: #c29b38;
    border-color: #c29b38;
    color: #1b1400;
}

.gallery-lightbox__close {
    top: 12px;
    right: 12px;
    font-size: 1.4rem;
    line-height: 1;
}

.gallery-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
}

.gallery-lightbox__nav--prev { left: 12px; }
.gallery-lightbox__nav--next { right: 12px; }

@media (max-width: 767px) {
    /* Two comfortable columns on a phone rather than one very large one: at
       320px that is ~140px tiles, and the tap area is still far above 44px. */
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-head { gap: 12px; }

    .gallery-chip { padding: 0 13px; font-size: 0.78rem; }

    .gallery-card__caption { padding: 8px 9px 10px; }
    .gallery-card__title { font-size: 0.78rem; }

    .gallery-card__tag {
        left: 6px;
        bottom: 6px;
        padding: 3px 7px;
        font-size: 0.56rem;
    }

    /* The nav arrows would sit on top of the photo on a narrow screen, so
       they drop to a row beneath it where they obscure nothing. */
    .gallery-lightbox { padding: 12px; }

    .gallery-lightbox__stage,
    .gallery-lightbox__image { max-height: calc(100dvh - 210px); }

    .gallery-lightbox__nav {
        top: auto;
        bottom: 14px;
        transform: none;
        min-width: 52px;
        min-height: 48px;
    }

    .gallery-lightbox__nav--prev { left: 14px; }
    .gallery-lightbox__nav--next { right: 14px; }
}

    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-card__caption { display: block; padding: 10px 12px 12px; }

.gallery-card__title {
    display: -webkit-box;
    color: #123b70;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    /* Two lines maximum so a long title cannot unbalance the grid row. */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
}

body.gallery-locked { overflow: hidden; }


/* ===========================================================================
   12. MEET THE TEAM
   ---------------------------------------------------------------------------
   index.html renders a preview grid into [data-team-root]; team.html renders
   the wide profiles into [data-team-detail-root]. Both come from team.js, so
   these classes only need to describe the two shapes that module emits:
     .team-card     - compact preview card (homepage)
     .team-profile  - wide profile block (team.html)
   Both share .team-portrait, which also renders the monogram fallback that
   team.js swaps in when a photo path fails to load.
   =========================================================================== */

/* Homepage band. Light, so it reads as a clean break from the dark
   .home-trust-section immediately above it. Like .home-about-section and
   .home-confidence-section it is a white band. */
.home-team-section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    background: #fff;
}

/* ---- Grid ------------------------------------------------------------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Four executives fit in one row on a desktop without wrapping. */
@media (min-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---- Portrait --------------------------------------------------------- */

.team-portrait {
    position: relative;
    overflow: hidden;
    background: var(--forest-deep);
}

.team-portrait--card {
    aspect-ratio: 1 / 1;
}

.team-portrait--profile {
    aspect-ratio: 4 / 5;
    border-radius: 14px;
}

.team-portrait--director img {
    object-fit: contain;
    object-position: center top;
    padding: 10px 0 0;
}

.team-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* The monogram fallback. team.js sets .is-fallback and replaces the frame's
   contents with the role initials when the image cannot load. Montserrat to
   match the rest of the site. */
.team-portrait.is-fallback {
    display: grid;
    place-items: center;
    color: #c29b38;
    background: linear-gradient(140deg, var(--forest-deep), var(--forest));
    font-weight: 700;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    letter-spacing: 0.08em;
}

/* ---- Preview card ----------------------------------------------------- */

.team-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(18, 59, 112, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(194, 155, 56, 0.55);
    box-shadow: 0 22px 44px rgba(18, 59, 112, 0.16);
}

.team-card:hover .team-portrait img {
    transform: scale(1.05);
}

.team-card__body {
    flex: 1;
    padding: 1.25rem 1.25rem 0.75rem;
}

.team-card__role {
    margin-bottom: 0.4rem;
    color: #c29b38;
    /* Matches .trust-index, the other small gold label on the homepage. */
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.team-card__name {
    margin-bottom: 0.5rem;
    color: var(--forest);
    /* No font-family here on purpose. The site overrides `.font-serif` to
       Montserrat globally (see the top of this file), so every heading on
       every page renders in Montserrat even though Playfair Display is loaded.
       Naming a family here would make these the only Playfair text on the
       site. Inheriting body is what keeps the team headings aligned. */
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
}

/* gray-600, the same body-text grey as the `text-gray-600` paragraphs in the
   homepage sections either side of this one. */
.team-card__summary {
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.7;
}

/* The link owns the card's bottom border so the cards line up evenly
   regardless of how long each summary runs. */
.team-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 1.25rem;
    padding: 0.85rem 0 1.15rem;
    border-top: 1px solid var(--line);
    color: var(--forest);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.team-card__link:hover,
.team-card__link:focus-visible {
    color: #c29b38;
}

/* ---- Homepage closing CTA --------------------------------------------- */

.team-footer-cta {
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.team-footer-cta p {
    color: #4b5563;
    font-size: 0.9rem;
}

.team-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--forest);
    font-weight: 700;
    border-bottom: 2px solid #c29b38;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.team-cta-link:hover,
.team-cta-link:focus-visible {
    color: #c29b38;
}


/* ---- Profile block (team.html) ---------------------------------------- */

.team-profiles {
    display: grid;
    gap: 2rem;
}

.team-profile {
    display: grid;
    gap: 1.75rem;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(18, 59, 112, 0.07);

    /* Deep links such as team.html#ceo land here. The scroll-margin stops the
       sticky header from covering the profile it just scrolled to. */
    scroll-margin-top: 100px;
}

@media (min-width: 768px) {
    .team-profile {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 2.25rem;
        padding: 2.25rem;
    }
}

.team-profile__role {
    margin-bottom: 0.5rem;
    color: #c29b38;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* The text column of the two-column layout. min-width:0 lets a long unbroken
   word shrink inside the grid track instead of forcing the row wider. */
.team-profile__body {
    min-width: 0;
}

.team-profile__name {
    margin-bottom: 0.85rem;
    color: var(--forest);
    /* Inherits Montserrat like every other heading - see .team-card__name. */
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.2;
}

.team-profile__bio {
    margin-bottom: 1.15rem;
    color: #4b5563;
    font-size: 0.94rem;
    line-height: 1.85;
}

.team-profile__focus {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.1rem;
    list-style: disc;
    marker: #c29b38;
}

.team-profile__focus li {
    color: #4b5563;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ---- team.html closing band ------------------------------------------- */

/* Same gradient as .home-trust-section, so the two dark bands on the site are
   visibly one brand surface rather than two unrelated ones. */
.team-cta__inner {
    padding: clamp(2rem, 5vw, 3.25rem);
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 62%, #9a761d 100%);
    border-radius: 18px;
}

/* ---- Mobile hardening -------------------------------------------------- */

@media (max-width: 767px) {
    /* 3.5rem matches .home-about-section, the other light homepage band. */
    .home-team-section {
        padding: 3.5rem 0;
    }

    /* Match the type floor used by the other homepage bands rather than
       reintroducing the sub-11px labels. .team-card__role is the counterpart
       of .trust-index; the link is included because it is interactive. */
    .team-card__role,
    .team-card__link,
    .team-profile__role {
        font-size: max(0.7rem, 2.6vw);
    }

    .team-footer-cta {
        gap: 1rem;
    }

    /* The card link is a tap target, so give it the 44px minimum. */
    .team-card__link {
        min-height: 44px;
        padding-bottom: 1rem;
    }

    .team-profile {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .team-profile__name {
        font-size: 1.5rem;
    }

    .team-cta__inner .hero-secondary-cta,
    .team-cta__inner .hog-btn {
        min-height: 44px;
    }
}
