/* ============================================================
   mainsheet_prepro.css
   Consolidated page styles for Adelphi Metals (prepro)
   ============================================================ */

/* #region Fonts */
@font-face {
    font-family: 'Adelphi';
    src: url('fonts/Adelphi.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Adelphi';
    src: url('fonts/AdelphiSlim.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* #endregion */

/* #region Globals */

:root {
    --cream: #f6f2ea;
    --cream-2: #efe8da;
    --ink: #20292c;
    --body: #5b635f;
    --muted: #8a8f88;
    --gold: #caa259;
    --gold-dk: #8a6f30;
    --gold-soft: #cdb778;
    --green: #234a3d;
    --blue: #2d4a54;
    --navy: #11162e;
    --line: rgba(32, 41, 44, 0.1);
    --shadow: 0 1.25rem 2.5rem rgba(32, 41, 44, 0.1);
    --success-green: #4f8a3d;
    --error-red: #c0492f;

    /* Type scale (2026 a11y): rem + clamp; body never below 1rem / 16px */
    --text-caption: 0.75rem;   /* 12px — captions / eyebrows floor */
    --text-sm: 0.875rem;       /* 14px — secondary UI / meta */
    --text-body: clamp(1rem, 0.93rem + 0.35vw, 1.25rem); /* 16px → 20px */
    --text-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); /* 17px → 20px */
    --text-h6: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    --text-h5: clamp(1rem, 0.9rem + 0.45vw, 1.25rem);
    --text-h4: clamp(1.375rem, 1.1rem + 1vw, 2rem);
    --text-h3: clamp(1.5rem, 1.15rem + 1.5vw, 2.5rem);
    --text-h2: clamp(2rem, 1.35rem + 2.2vw, 3.5rem);
    --text-h1: clamp(2.5rem, 1.5rem + 4vw, 6rem);
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

* {
    font-family: 'Red Hat Text';
}

h1,
h2, h2 span,
h3,
h4,
h5,
h6 {
    font-family: 'Adelphi';
    line-height: 1.15;
}

h1 {
    font-size: var(--text-h1);
    color: #fff;
}

h1 span {
    font-family: 'Adelphi';
    display: inline-block;
}

h1 .discovery {
    color: #caa259;
}

h2 {
    font-size: var(--text-h2);
    color: #221f1f;
}

h2 span {
    font-weight:400;
}

h3 {
    font-size: var(--text-h3);
}

h4 {
    font-size: var(--text-h4);
    color: #8c7c4b;
}

h5 {
    font-size: var(--text-h5);
}

h6 {
    font-size: var(--text-h6);
}

/* Prose: one body size for p/ul/ol/li; inline tags inherit (never force size). */
p {
    font-size: var(--text-body);
    line-height: 1.65;
}

p *,
li *,
td *,
th * {
    font-size: inherit;
    line-height: inherit;
}

ul,
ol,
li {
    font-size: var(--text-body);
    line-height: 1.65;
}

b,
strong,
i,
em,
a {
    font-size: inherit;
    line-height: inherit;
}

.newsbody,
.release .newsbody {
    font-size: var(--text-body);
    line-height: 1.65;
}

.newsbody p,
.newsbody ul,
.newsbody ol,
.newsbody li,
.release .newsbody p,
.release .newsbody ul,
.release .newsbody ol,
.release .newsbody li {
    font-size: inherit;
    line-height: inherit;
}

.mainlink {
    background-color: #11162e;
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
    padding: 1rem 2rem;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mainlink:before {
    content: '';
    display: block;
    width: 300%;
    height: 300%;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: -100%;
    left: -100%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100%);
}

.mainlink:hover:before {
    opacity: 1;
    transform: translateX(0);
}

.mainlink:hover {
    transform: scale(1.05);
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.25);
}

.mainlink span {
    position: relative;
}

.mainlink .fa-solid {
    margin-right: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mainlink:hover .fa-solid {
    margin-right: 1rem;
    margin-left: -0.25rem;
}

/* Heading sizes are fluid via --text-h* clamp(); no stepwise px media queries. */

/* #endregion */

/* #region Header */
#header .subheader .subscribe {
    color: #fff;
    background: linear-gradient(to right, #caa661, #ae8a4c);
}

#header .subheader .stock .item a {
    color: #caa259;
}

/* Dropdown items — visible on hover via CSS (not jQuery-only) */
.header .main .nav .menu .item:hover .submenu .sublink {
    opacity: 1;
    transform: translateX(0);
}

/* Override legacy .menu .sublink shared styles */
.header .main .nav .menu .item .submenu .sublink {
    text-transform: none;
    text-align: left;
}
/* #endregion */

/* #region Home */

.home {
    --cream: #f6f2ea;
    --cream-2: #efe8da;
    --ink: #20292c;
    --body: #5b635f;
    --muted: #8a8f88;
    --gold: #caa259;
    --gold-dk: #8a6f30;
    --green: #234a3d;
    --blue: #2d4a54;
    --line: rgba(32, 41, 44, 0.1);
    --shadow: 0 1.25rem 2.5rem rgba(32, 41, 44, 0.1);
    background: #fff;
}

.home h2 {
    color: var(--ink);
}

.home p:not(.eyebrow) {
    color: var(--body);
}

/* #region Home Hero — dark full-bleed */
.home .hero {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #0a0c10;
    /* Desktop: exact viewport fill. JS sets padding-top = full header height
       (border-box), so hero-inner centers in the remaining space below nav. */
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
}

#overview {
    scroll-margin-top: 8rem;
}

.home .hero .hero-inner {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    align-items: center;
    width: 100%;
}

.home .hero .hero-text {
    position: relative;
    z-index: 1;
    width: 58%;
    max-width: 46rem;
    flex-shrink: 0;
    padding: 1.5rem 0;
}

.home .hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 1.6rem + 3vw, 4.75rem);
    line-height: 1.05;
    margin: 0 0 1.25rem;
    text-shadow: 0 0.125rem 1.5rem rgba(0, 0, 0, 0.45);
}

.home .hero h1 .discovery {
    color: var(--gold);
}

.home .hero .hero-rule {
    width: 4.5rem;
    height: 0.125rem;
    background: linear-gradient(to right, var(--gold), rgba(202, 162, 89, 0.15));
    margin: 0 0 1.75rem;
    border-radius: 0.125rem;
}

.home .hero .hero-sub {
    font-size: var(--text-lead);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 34rem;
    margin: 0 0 2.5rem;
    text-shadow: 0 0.0625rem 0.75rem rgba(0, 0, 0, 0.4);
}

.home .hero .hero-sub strong {
    color: #fff;
    font-weight: 700;
}

.home .hero .hero-cta {
    gap: 1rem;
    flex-wrap: wrap;
}

.home .hero .hero-cta .mainlink,
.home .hero .hero-cta .ghostlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    border-radius: 0.25rem;
    position: relative;
    overflow: hidden;
    transform: none;
    box-shadow: none;
}

.home .hero .hero-cta .mainlink {
    background-color: var(--gold);
    color: #11162e;
}

.home .hero .hero-cta .mainlink:before {
    display: none;
}

.home .hero .hero-cta .mainlink:hover {
    background-color: var(--gold-soft);
    color: #11162e;
    transform: none;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}

.home .hero .hero-cta .mainlink > span {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: auto;
    position: relative;
}

.home .hero .hero-cta .ghostlink {
    border: 0.0625rem solid rgba(202, 162, 89, 0.85);
    color: var(--gold);
    background-color: transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.home .hero .hero-cta .ghostlink:hover {
    border-color: var(--gold);
    background-color: rgba(202, 162, 89, 0.12);
    color: var(--gold-soft);
}

.home .hero .hero-cta .mainlink svg,
.home .hero .hero-cta .ghostlink svg {
    width: 1.125rem;
    height: 1.125rem;
    stroke-width: 2;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.home .hero .hero-cta .mainlink.hero-continue:hover svg { transform: translateY(0.25rem); }
.home .hero .hero-cta .ghostlink:hover svg { transform: translateY(-0.0625rem); }

.home .hero .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #0a0c10;
}

.home .hero .hero-bg-parallax {
    position: absolute;
    left: 0;
    right: 0;
    top: -10%;
    height: 120%;
    will-change: transform;
}

.home .hero .hero-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 62% center;
    opacity: 0;
}

.home .hero .hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8, 10, 14, 0.88) 0%, rgba(8, 10, 14, 0.62) 38%, rgba(8, 10, 14, 0.22) 62%, rgba(8, 10, 14, 0.35) 100%),
        linear-gradient(180deg, rgba(8, 10, 14, 0.35) 0%, rgba(8, 10, 14, 0.08) 40%, rgba(8, 10, 14, 0.45) 100%);
}

/* -- Hero entrance (plays once the preloader finishes -> body.loaded) -- */
.home .hero h1,
.home .hero .hero-rule,
.home .hero .hero-sub,
.home .hero .hero-cta {
    opacity: 0;
}

@keyframes heroWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes heroImgIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(1.75rem); } to { opacity: 1; transform: none; } }

body.loaded .home .hero .hero-media  { animation: heroWipe 0.7s cubic-bezier(0.76, 0, 0.24, 1) 0.10s backwards; }
body.loaded .home .hero .hero-bg-img { animation: heroImgIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards; }
body.loaded .home .hero h1           { animation: heroRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards; }
body.loaded .home .hero .hero-rule   { animation: heroRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards; }
body.loaded .home .hero .hero-sub    { animation: heroRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.08s forwards; }
body.loaded .home .hero .hero-cta    { animation: heroRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.16s forwards; }

@media (prefers-reduced-motion: reduce) {
    .home .hero .hero-media,
    .home .hero .hero-bg-img,
    .home .hero h1,
    .home .hero .hero-rule,
    .home .hero .hero-sub,
    .home .hero .hero-cta { opacity: 1; clip-path: none; animation: none !important; }
}
/* #endregion */

/* #region SCROLL ANIMATIONS */
/* IntersectionObserver reveal — hidden state only applies once JS sets the flag on <html> */
.scroll-reveal-active [data-reveal] {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.scroll-reveal-active [data-reveal="fade-up"]    { transform: translateY(1.75rem); }
.scroll-reveal-active [data-reveal="fade-left"]  { transform: translateX(-1.75rem); }
.scroll-reveal-active [data-reveal="fade-right"] { transform: translateX(1.75rem); }
.scroll-reveal-active [data-reveal="fade"]       { transform: none; }

.scroll-reveal-active [data-reveal].is-revealed  { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { transition: none !important; opacity: 1 !important; transform: none !important; }
}
/* #endregion */

/* -- Eyebrow -- */
.eyebrow {
    display: inline-block;
    font-size: var(--text-caption);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #caa259;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(202, 162, 89, 0.45);
    border-radius: 50rem;
}

/* #region Company Overview */
.home-overview {
    background-color: #fff;
    padding: 6rem 0;
    position: relative;
}

.home-overview .overview-grid {
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.home-overview .overview-intro {
    width: 40rem;
    max-width: 100%;
    flex-shrink: 1;
    min-width: 0;
}

.home-overview .overview-intro h2 {
    line-height: 1.15;
    margin: 0.75rem 0 1.25rem;
}

.home-overview .overview-intro p:not(.eyebrow) {
    color: var(--body);
    font-size: var(--text-body);
    line-height: 1.65;
}

.home-overview .overview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--gold-dk);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: gap 0.25s ease;
}

.home-overview .overview-link:hover {
    gap: 0.875rem;
}

.home-overview .overview-stats {
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

.home-overview .stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.5rem;
}

.home-overview .stat-icon {
    flex: 0 0 auto;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.home-overview .stat-icon img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-overview .stat-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}

.home-overview .stat-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--body);
}
/* #endregion */

/* #region Project Sections */
.home-projects {
    position: relative;
    background-color: #faf9f5;
    background-image:
        linear-gradient(to bottom, #faf9f5 0%, #faf9f5 12%, rgba(250, 249, 245, 0) 58%),
        url('images/gallery/bg_home_projects.jpg');
    background-repeat: no-repeat, no-repeat;
    background-position: center top, center bottom;
    background-size: 100% 100%, cover;
}

.home-project {
    background-color: transparent;
    padding: 5.5rem 0;
    position: relative;
}

.home-project.alt {
    background-color: transparent;
}

.home-project .boxbox {
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(0.375rem);
    -webkit-backdrop-filter: blur(0.375rem);
    padding: 3.5rem 4rem;
    border-radius: 0.5rem;
    box-shadow: 0 1.25rem 2.5rem rgba(32, 41, 44, 0.08);
    gap: 3.5rem;
}

.home-project-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.home-project h2 {
    color: var(--ink);
    margin: 0;
}

.home-project .eyebrow {
    margin: 0;
}

.home-project p:not(.eyebrow) {
    color: var(--body);
    font-size: var(--text-body);
    line-height: 1.65;
    margin: 0;
}

.home-project .brady-footnotes {
    font-size: 0.625rem;
    line-height: 1.4;
    color: var(--muted);
    font-style: italic;
    margin: -0.5rem 0 0;
}

.home-project .mainlink {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    font-size: 1.0625rem;
    border-radius: 0.375rem;
    margin-top: 0.75rem;
}

.home-project .mainlink span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.home-project .mainlink svg {
    width: 1.125rem;
    height: 1.125rem;
    stroke-width: 2.25;
    transition: transform 0.3s ease;
}

.home-project .mainlink:hover svg {
    transform: translateX(0.25rem);
}

.home-project .boxbox {
    position: relative;
    z-index: 1;
}

.home-project .proj-rule {
    width: 3rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--gold), transparent);
    margin: 0.25rem 0;
    border-radius: 0.125rem;
}

.home-project .proj-media {
    position: relative;
}

.home-project .proj-img {
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--cream-2);
    flex-shrink: 0;
    position: relative;
    border: 0.25rem solid #fff;
    box-shadow: 0 1.5rem 3rem rgba(32, 41, 44, 0.14);
}

.home-project .proj-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-project .proj-img:hover img {
    transform: scale(1.02);
}
/* #endregion */

/* -- Responsive -- */
@media only screen and (max-width: 1100px) {
    .home .hero {
        margin: 0;
    }

    .home .hero .hero-media::after {
        background:
            linear-gradient(90deg, rgba(8, 10, 14, 0.9) 0%, rgba(8, 10, 14, 0.72) 48%, rgba(8, 10, 14, 0.4) 100%),
            linear-gradient(180deg, rgba(8, 10, 14, 0.4) 0%, rgba(8, 10, 14, 0.12) 45%, rgba(8, 10, 14, 0.5) 100%);
    }

    .home .hero .hero-text {
        width: 70%;
        max-width: none;
        padding: 1.5rem 0;
    }

    .home-overview .overview-intro {
        width: 100%;
    }
}

/* Short desktop viewports — allow growth instead of clipping CTAs */
@media only screen and (min-width: 701px) and (max-height: 38rem) {
    .home .hero {
        height: auto;
        max-height: none;
        min-height: 100dvh;
    }
}

/* #region Home overview — stack before row overflows */
@media only screen and (max-width: 1100px) {
    .home-overview .overview-grid {
        flex-direction: column;
    }

    .home-overview .overview-intro,
    .home-overview .overview-stats {
        width: 100%;
    }

    .home-overview .overview-stats {
        margin-top: 2.5rem;
    }
}
/* #endregion */

@media only screen and (max-width: 900px) {
    .home-project .boxbox {
        flex-direction: column;
        padding: 2.25rem;
        gap: 2rem;
    }

    .home-project .halfgap {
        width: 100%;
    }

    .home-project .proj-media {
        order: -1;
        margin-bottom: 0;
    }

    .home-project .proj-img {
        aspect-ratio: 16 / 9;
    }

    .home-overview,
    .home-project {
        padding: 4rem 0;
    }
}

@media only screen and (max-width: 700px) {
    .home .hero {
        height: auto;
        max-height: none;
        min-height: 100svh;
    }

    .home .hero .hero-inner {
        flex: 1 1 auto;
        min-height: 0;
        align-items: center;
    }

    .home .hero .hero-text {
        width: 100%;
        max-width: none;
        padding: 2rem 0 3rem;
    }

    .home .hero .hero-bg-img {
        background-position: 70% center;
    }

    .home .hero .hero-media::after {
        background:
            linear-gradient(180deg, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0.72) 45%, rgba(8, 10, 14, 0.88) 100%),
            linear-gradient(90deg, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0.25) 100%);
    }

    .home .hero .hero-cta .mainlink,
    .home .hero .hero-cta .ghostlink {
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .home-overview .overview-stats {
        grid-template-columns: 1fr;
    }
}

/* #endregion */

/* #region Prefooter — Latest News & Subscribe */
.prefooter {
    position: relative;
    background-color: #11162e;
    padding: 5rem 0;
    border-top: 1px solid rgba(32, 41, 44, 0.08);
    overflow: hidden;
    isolation: isolate;
}

.prefooter .prefooter-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #11162e;
}

.prefooter .prefooter-bg-parallax {
    position: absolute;
    left: 0;
    right: 0;
    top: -20%;
    height: 140%;
    will-change: transform;
}

.prefooter .prefooter-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0.25;
}

/* Top & bottom inset shadows for depth */
.prefooter .prefooter-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    box-shadow: inset 0 0.5rem 1rem -0.5rem rgba(0, 0, 0, 0.35),
                inset 0 -0.5rem 1rem -0.5rem rgba(0, 0, 0, 0.35);
}

.prefooter .prefooter-inner {
    position: relative;
    z-index: 2;
    align-items: stretch;
}

.prefooter .pf-news {
    flex-grow: 1;
}

.prefooter .pf-news-head {
    margin-bottom: 1.75rem;
}

.prefooter .pf-news-head h3 {
    color: #20292c;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.prefooter .pf-viewall {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: #8a6f30;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
}

.prefooter .pf-viewall span {
    transition: margin-left 0.25s ease;
    margin-left: 0.25rem;
    display: inline-block;
}

.prefooter .pf-viewall:hover span {
    margin-left: 0.625rem;
}

.prefooter .pf-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.prefooter .pf-news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(32, 41, 44, 0.1);
    border-top: 0.1875rem solid #caa259;
    border-radius: 0.875rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.prefooter .pf-news-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 1rem 2rem rgba(32, 41, 44, 0.12);
}

.prefooter .pf-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem 1.5rem;
    flex-grow: 1;
}

.prefooter .pf-date {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #caa259;
}

.prefooter .pf-title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    color: #20292c;
    flex-grow: 1;
    text-transform: uppercase;
}

.prefooter .pf-read {
    font-size: 0.875rem;
    font-weight: 600;
    color: #5b635f;
}

.prefooter .pf-read i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.prefooter .pf-empty {
    color: #5b635f;
    font-size: 1rem;
}

.prefooter .pf-sub {
    flex-shrink: 0;
    width: 24rem;
    background: #fff;
    border: 1px solid rgba(32, 41, 44, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1.25rem 2.5rem rgba(32, 41, 44, 0.08);
}

.prefooter .pf-sub h3 {
    color: #20292c;
    font-size: 1.5rem;
    margin: 0.25rem 0 0.75rem;
}

.prefooter .pf-sub p {
    color: #5b635f;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.prefooter .pf-sub input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid rgba(32, 41, 44, 0.18);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.prefooter .pf-sub-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background-color: #caa259;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.25s ease, gap 0.25s ease;
}

.prefooter .pf-sub-btn:hover {
    background-color: #8a6f30;
    gap: 0.875rem;
}

@media only screen and (max-width: 1000px) {
    .prefooter .prefooter-inner {
        flex-direction: column;
    }

    .prefooter .pf-sub {
        width: 100%;
    }
}

@media only screen and (max-width: 700px) {
    .prefooter .pf-news-grid {
        grid-template-columns: 1fr;
    }
}
/* #endregion */

/* #region Footer */
#footer {
    background: #fff;
    border-top: 1px solid rgba(32, 41, 44, 0.08);
}


#footer form {
    background-image: none;
    background-color: #fff;
    border: 1px solid rgba(32, 41, 44, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 1.25rem 2.5rem rgba(32, 41, 44, 0.08);
}

#footer form h3 {
    color: #20292c;
}

#footer form input[type="submit"] {
    background-color: #caa259;
    color: #fff;
    font-weight: 600;
    transition: background-color 0.25s ease;
}

#footer form input[type="submit"]:hover {
    background-color: #c8a85a;
}

#footer .quicklinks {
    border-left: 1px solid rgba(202, 162, 89, 0.2);
    padding-left: 2rem;
}

#footer .quicklinks h5 {
    color: #caa259 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem;
}

#footer .subfooter {
    border-top: 1px solid rgba(32, 41, 44, 0.08);
}

#footer .subfooter .boxbox {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#footer .subfooter a {
    color: #caa259;
}

#footer .info {
    max-width: 30rem;
}
/* #endregion */

/* #region Pagetop */
.pagetop {
    background-color: var(--cream);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

/* Non-project pages render a photographic banner from images/pagetop/{cat}.jpg
   (wired in content.php). Project pages omit .pagetop so .proj-hero can sit under the header. */
.pagetop .under {
    position: absolute;
    inset: 0;
    opacity: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pagetop .under::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 22, 46, 0.55) 0%, rgba(17, 22, 46, 0.72) 100%);
}
/* #endregion */

/* #region Subpage / Content Page */
.subpage h1 {
    position: relative;
    z-index: 1;
    font-size: 4rem;
    color: #fff;
}

.content {
    background-color: #fff;
}

.content h2 {
    color: var(--ink);
}

.content h3 {
    color: var(--ink);
}

.content h4 {
    color: var(--gold-dk);
}

.content p {
    color: var(--body);
}

.content p a:not(.mainlink):not(.ghostlink) {
    color: var(--gold-dk);
    font-weight: 600;
    transition: color 0.2s ease;
}

.content p a:not(.mainlink):not(.ghostlink):hover {
    color: var(--gold);
}

.content form input,
.content form textarea {
    color: var(--ink);
    background: #fff;
}

.content form input::placeholder,
.content form textarea::placeholder {
    color: var(--muted);
}
/* #endregion */

/* #region Management Page / Team Cards */
.management .team-head {
    max-width: 46rem;
    margin-bottom: 3rem;
}

.management .team-head h2 {
    line-height: 1.1;
    margin: 0.5rem 0 1rem;
}

.management .team-lead {
    color: var(--body);
    font-size: 1.125rem;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.team-card {
    display: flex;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 1.5rem 3rem rgba(32, 41, 44, 0.14);
}

.team-card .team-portrait {
    width: 38%;
    max-width: 13rem;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(45deg, var(--cream-2), var(--cream));
}

.team-card .team-portrait .inner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
}

.team-card .team-body {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.team-card .team-name {
    font-size: 1.5rem;
    color: var(--ink);
    line-height: 1.15;
}

.team-card .team-name .team-creds {
    font-family: 'Red Hat Text';
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
}

.team-card .team-role {
    display: block;
    margin-top: 0.5rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: 0.8125rem;
}

.team-card .team-rule {
    width: 2.5rem;
    height: 0.1875rem;
    background: var(--gold);
    border-radius: 0.125rem;
    margin: 1rem 0 1.25rem;
}

.team-card .team-bio {
    color: var(--body);
    font-size: 1rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Hard cap (5 lines x 1.7 line-height) so truncation holds even when
       -webkit-line-clamp is dropped on a flex item (Chromium blockify). */
    max-height: 8.5em;
}

.team-card .team-cta {
    margin-top: auto;
    padding: 0.75rem 0 0;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    color: var(--gold-dk);
    font-family: 'Red Hat Text';
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease, gap 0.2s ease;
}

.team-card .team-cta .fa-solid {
    font-size: 0.75rem;
}

.team-card .team-cta:hover {
    color: var(--gold);
    gap: 0.75rem;
}

.team-card .team-link {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.team-card .team-link:hover {
    background-color: var(--gold);
    color: #fff;
}

@media only screen and (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        flex-direction: column;
    }

    .team-card .team-portrait {
        width: 100%;
        max-width: none;
        height: 16rem;
    }
}
/* #endregion */

/* #region MODALS — TEAM */
.team-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.team-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.team-modal .team-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 22, 46, 0.55);
    backdrop-filter: blur(0.125rem);
}

.team-modal .team-modal-inner {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    width: 100%;
    max-width: 40rem;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 2rem 4rem rgba(32, 41, 44, 0.25);
    transform: translateY(1rem);
    transition: transform 0.25s ease;
}

.team-modal.open .team-modal-inner {
    transform: translateY(0);
}

.team-modal .team-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.team-modal .team-modal-close:hover {
    color: var(--ink);
}

.team-modal .team-modal-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.team-modal .team-modal-portrait {
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--cream);
    background-size: cover;
    background-position: center top;
}

.team-modal .team-modal-head h3 {
    font-size: 1.5rem;
    color: var(--ink);
    line-height: 1.15;
}

.team-modal .team-modal-head .team-creds {
    font-family: 'Red Hat Text';
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
}

.team-modal .team-modal-head .team-role {
    display: block;
    margin-top: 0.35rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: 0.8125rem;
}

.team-modal .team-modal-bio {
    color: var(--body);
    font-size: 1rem;
    line-height: 1.8;
}

body.team-modal-active {
    overflow: hidden;
}
/* #endregion */

/* #region News Page */
#news .yearlist a {
    border-radius: 0.25rem;
}

#news .yearlist a.activeyear {
    background-color: #caa259;
    border-color: #caa259;
}

#news .item {
    border-radius: 0.5rem;
}

#news .item .title {
    color: var(--ink);
}

#news .item .date {
    border-radius: 0.25rem;
}

#news .item .ogimage {
    background-color: var(--cream);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
/* #endregion */

/* #region Stock Page */
#stock .snapshot .label-dzbd7lyV {
    display: none !important;
}

#stock .structure .item .amount {
    color: var(--ink);
    font-family: 'Adelphi';
}

#stock .structure .item .type {
    color: var(--gold);
}

#stock .schedule .item table thead th {
    background-color: #caa259;
    color: #fff;
}

#stock .schedule .item table td {
    color: var(--body);
}

#stock .schedule .item table .total td {
    color: #caa259;
}
/* #endregion */

/* #region Contact Page */
#contact .info .icon {
    border-color: #caa259;
    color: #caa259;
}

#contact .info a {
    color: var(--ink);
}

#contact .info a span {
    color: #caa259;
}
/* #endregion */

/* #region Subpop */
#subpop .item .image {
    background-image: url('images/bg_hero.jpg');
}

#subpop .item {
    background-color: #fff;
    border: 1px solid var(--line);
}
/* #endregion */

/* #region Project Page */
.content .project .overview {
    margin-bottom:2rem;
}

.content .project .overview .map {
    background-image: url('images/tripler_map.jpg');
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
}

.content .project .breakthrough {
    background-color: var(--cream);
}

.content .project .breakthrough img {
    width:50%;
    aspect-ratio: 1/1;
    border-radius:1rem;
    position:relative;
    align-self:center;
}

.content .project .breakthrough img:last-of-type {
    left:-2rem;
}

.content .project .highlights .small {
    border: 2px solid rgba(202, 162, 89, 0.25);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.content .project .highlights .small img {
    width:60px;
    height:auto;
}

.content .project .highlights h2 {
    text-align:center;
}

@media only screen and (max-width:1200px) {
    .content .project .overview .boxbox {
        flex-direction:column-reverse;
    }

    .content .project .overview .map {
        width:100%;
        aspect-ratio:16/9;
    }

    .content .project .overview .thirdgap {
        width:100%;
    }
}

@media only screen and (max-width:1000px) {
    .content .project .breakthrough .halfgap {
        width:100%;
    }
    .content .project .breakthrough .boxbox {
        flex-direction:column;
    }
}

@media only screen and (max-width:800px) {
    .content .project .highlights .small {
        width:calc(50% - 1rem);
    }
    .content .project .padtop2 {
        padding-top:2rem;
        padding-bottom:2rem;
    }
}

@media only screen and (max-width:500px) {
    .content .project .highlights .small {
        width:100%;
    }
}
/* #endregion */

/* #region Brady Project Page */

/* #region Brady — Theme Tokens & Base */
.brady-project {
    --ink: #20292c;
    --body: #5b635f;
    --muted: #8a8f88;
    --green: #11162e;
    --green-accent: #caa259;
    --gold: #caa259;
    --gold-soft: #cdb778;
    --offwhite: #f6f2ea;
    --line: rgba(32, 41, 44, 0.1);
    --card-shadow: 0 1.25rem 2.5rem rgba(32, 41, 44, 0.08);
    background: #fff;
}

.content:has(.brady-project) {
    background: #fff;
}

.brady-project h2,
.brady-project h3 {
    color: var(--ink);
}

.brady-project p {
    color: var(--body);
}

.brady-project strong {
    color: var(--ink);
    font-weight: 700;
}

.brady-geology strong {
    color: #fff;
}

.brady-project .eyebrow {
    margin-bottom: 0.75rem;
}

.proj-rule {
    width: 3rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--gold), transparent);
    margin: 0.75rem 0 1.5rem;
    border-radius: 0.125rem;
}

.brady-lead {
    color: var(--body);
    font-size: var(--text-lead);
    line-height: 1.65;
    max-width: 62rem;
    margin-top: 1.5rem;
}
/* #endregion */

/* #region Project Hero */
.proj-hero {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.proj-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 12, 26, 0.8) 0%, rgba(9, 12, 26, 0.55) 55%, rgba(9, 12, 26, 0.32) 100%),
        linear-gradient(180deg, rgba(9, 12, 26, 0.12) 0%, rgba(9, 12, 26, 0.28) 100%);
}

.proj-hero .boxbox {
    position: relative;
    z-index: 1;
    min-height: 16rem;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proj-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e7cf97;
    margin-bottom: 1rem;
    text-shadow: 0 0.0625rem 0.5rem rgba(0, 0, 0, 0.6);
}

.proj-hero-eyebrow::before {
    content: '';
    width: 2rem;
    height: 0.125rem;
    background: var(--gold);
}

.proj-hero h1 {
    color: #fff;
    font-size: 3.5rem;
    line-height: 1.05;
    margin: 0;
    text-shadow: 0 0.125rem 1.25rem rgba(0, 0, 0, 0.55);
}

@media only screen and (max-width: 600px) {
    .proj-hero .boxbox {
        min-height: 11rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .proj-hero h1 {
        font-size: 2.25rem;
    }
}
/* #endregion */

/* #region Brady — Hero */
.brady-hero {
    padding: 5rem 0 4rem;
}

.brady-hero h2 {
    font-size: 3.5rem;
    line-height: 1.05;
}

.brady-hero-map {
    position: relative;
}

.brady-hero-map::before {
    content: '';
    position: absolute;
    inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(150deg, var(--green-accent), var(--gold));
    opacity: 0.16;
    z-index: 0;
}

.brady-hero-map img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 0.75rem;
    display: block;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--line);
}

.brady-caption {
    display: block;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 1rem;
    font-style: italic;
}

.brady-project img[data-fancybox] {
    cursor: pointer;
}

.brady-minerals {
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.brady-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--line);
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--green-accent);
    background: var(--offwhite);
    white-space: nowrap;
}
/* #endregion */

/* #region Brady — Neighborhood */
.brady-neighborhood {
    background: var(--offwhite);
    padding-bottom: 4rem;
}

.brady-nbhd-grid {
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.brady-footnotes {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--muted);
    font-style: italic;
}

.brady-nbhd-card {
    padding: 2rem 1.75rem;
    border-left: 1px solid var(--line);
    transition: background 0.3s ease;
}

.brady-nbhd-card:first-child {
    border-left: none;
}

.brady-nbhd-card:hover {
    background: var(--offwhite);
}

.brady-nbhd-card h3 {
    font-size: 1.1875rem;
    margin-bottom: 0.625rem;
}

.brady-nbhd-card h3::before {
    content: '';
    display: block;
    width: 2rem;
    height: 0.25rem;
    border-radius: 0.125rem;
    background: var(--gold);
    margin-bottom: 0.875rem;
}

.brady-nbhd-card p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}
/* #endregion */

/* #region Brady — The Source (Green Feature Band) */
.brady-geology {
    position: relative;
    background: linear-gradient(160deg, #161c38 0%, #0e1226 100%);
    padding: 5.5rem 0;
}

.brady-geology h2,
.brady-geology h3 {
    color: #fff;
}

.brady-geology .brady-lead {
    color: rgba(255, 255, 255, 0.78);
}

.brady-geology .brady-caption {
    color: rgba(255, 255, 255, 0.55);
}

.brady-geology .brady-source-map img {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

.brady-source-map {
    position: relative;
    margin-top: 2.5rem;
    max-width: 100%;
    min-width: 0;
}

.brady-nbhd-top {
    margin-bottom: 0.5rem;
}

.brady-nbhd-top .brady-source-map {
    margin-top: 0;
}

.brady-source-top {
    margin-bottom: 1rem;
}

.brady-source-top .brady-source-map {
    margin-top: 0;
    position: sticky;
    top: 6rem;
    align-self: start;
}

.brady-source-map img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    display: block;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--line);
}

.brady-system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.brady-geo-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, background 0.3s ease;
}

.brady-geo-card:hover {
    transform: translateY(-0.375rem);
    background: rgba(255, 255, 255, 0.08);
}

.brady-geo-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.brady-geo-card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--text-body);
    line-height: 1.65;
}

.brady-mechanism {
    margin-top: 2.5rem;
}

.brady-mech-sub {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.brady-mech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.brady-mech-list::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    bottom: 1.25rem;
    left: 1.1875rem;
    width: 2px;
    background: rgba(202, 162, 89, 0.4);
}

.brady-mech-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 1.75rem;
}

.brady-mech-item:last-child {
    padding-bottom: 0;
}

.brady-mech-num {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Adelphi';
    font-size: 1.125rem;
    color: var(--gold);
    background: rgba(202, 162, 89, 0.12);
    border: 1px solid rgba(202, 162, 89, 0.5);
    box-shadow: 0 0 0 0.375rem #12172f;
}

.brady-mech-item.is-highlight .brady-mech-num {
    background: var(--gold);
    border-color: var(--gold);
}

.brady-mech-item.is-highlight .brady-mech-num::before {
    content: '';
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 50%;
    border: 0.1875rem solid #12172f;
}

.brady-mech-body h3 {
    font-size: 1.1875rem;
    color: #fff;
    margin-bottom: 0.375rem;
    line-height: 1.2;
}

.brady-mech-body p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.65;
}

.brady-mech-item.is-highlight .brady-mech-body h3 {
    color: var(--gold-soft);
}
/* #endregion */

/* #region Brady — Showings (Timeline) */
.brady-showings {
    position: relative;
    background: #fff;
    padding-bottom: 1rem;
}

.brady-showing-list {
    margin-top: 3rem;
    position: relative;
    counter-reset: showing;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.brady-showing-list::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    bottom: 2.5rem;
    left: 1.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--green-accent), var(--gold));
    opacity: 0.4;
}

.brady-showing {
    counter-increment: showing;
    position: relative;
    margin-left: 4.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brady-showing:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 1.75rem 3rem rgba(18, 48, 40, 0.12);
}

.brady-showing::before {
    content: counter(showing, decimal-leading-zero);
    position: absolute;
    top: 2rem;
    left: -4.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-family: 'Adelphi';
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0.375rem #fff;
}

.brady-showing-head {
    margin-bottom: 1.5rem;
}

.brady-showing-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-accent);
    margin-bottom: 0.375rem;
}

.brady-showing-head h3 {
    font-size: 1.875rem;
    color: var(--ink);
    line-height: 1.1;
}

.brady-showing-lead {
    color: var(--body);
    font-size: var(--text-body);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.brady-stats {
    margin-bottom: 1.5rem;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.brady-stat {
    flex: 1 1 11rem;
    min-width: 0;
    max-width: 100%;
    background: var(--offwhite);
    border-radius: 0.625rem;
    padding: 1.125rem 1.25rem;
    border-left: 0.25rem solid var(--gold);
}

.brady-stat-num {
    display: block;
    font-family: 'Adelphi';
    font-size: 1.625rem;
    color: var(--green);
    line-height: 1.1;
    margin-bottom: 0.375rem;
}

.brady-stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.4;
}

.brady-highlights {
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.brady-showing .brady-highlights {
    margin-bottom: 1.5rem;
}

.brady-hl {
    padding: 0.5rem 1rem;
    background: var(--offwhite);
    border: 1px solid var(--line);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--body);
}

.brady-hl strong {
    color: var(--green);
    font-size: 0.9375rem;
}

.brady-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.brady-points li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--body);
    font-size: var(--text-body);
    line-height: 1.7;
}

.brady-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--green-accent);
}

.brady-showing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 2.5rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.brady-showing-main {
    min-width: 0;
    max-width: 100%;
}

.brady-showing-map {
    margin: 0;
    position: sticky;
    top: 6rem;
}

.brady-showing-map img {
    width: 100%;
    display: block;
    border-radius: 0.75rem;
    border: 1px solid var(--line);
    box-shadow: var(--card-shadow);
}

.brady-showing-map .brady-caption {
    display: block;
    margin-top: 0.75rem;
    color: var(--muted);
}

.brady-showing:nth-child(even) .brady-showing-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

.brady-showing:nth-child(even) .brady-showing-main {
    order: 2;
}

.brady-showing:nth-child(even) .brady-showing-map {
    order: 1;
}

.brady-subtarget {
    margin-top: 1.75rem;
    padding: 1.75rem;
    background: var(--offwhite);
    border: 1px solid var(--line);
    border-left: 0.25rem solid var(--gold);
    border-radius: 0.75rem;
}

.brady-subtarget h4 {
    font-size: 1.375rem;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.brady-subtarget-lead {
    color: var(--body);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.brady-subtarget .brady-stat {
    background: #fff;
}

@media only screen and (max-width: 1000px) {
    .brady-showing-grid,
    .brady-showing:nth-child(even) .brady-showing-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    .brady-showing:nth-child(even) .brady-showing-main {
        order: 1;
    }

    .brady-showing:nth-child(even) .brady-showing-map {
        order: 2;
    }

    .brady-showing-map {
        position: static;
        max-width: 100%;
        min-width: 0;
    }

    .brady-showing-map img {
        max-width: 100%;
        height: auto;
    }
}
/* #endregion */

/* #region Brady — Exploration Path (Green Feature Band) */
.brady-path {
    position: relative;
    background: var(--cream);
    padding: 5.5rem 0;
}

.brady-path h2,
.brady-path h3 {
    color: var(--ink);
}

.brady-path .brady-lead {
    color: var(--body);
}

.brady-steps {
    margin-top: 3rem;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.brady-steps.brady-steps-3 {
    grid-template-columns: repeat(3, 1fr);
}

.brady-steps::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: rgba(202, 162, 89, 0.4);
}

.brady-steps.brady-steps-3::before {
    left: 16.6667%;
    right: 16.6667%;
}

.brady-step {
    position: relative;
    text-align: center;
}

.brady-step-num {
    position: relative;
    z-index: 1;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Adelphi';
    font-size: 1.5rem;
    box-shadow: 0 0 0 0.375rem var(--cream);
}

.brady-step-date {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-accent);
    background: rgba(202, 162, 89, 0.12);
    border: 1px solid rgba(202, 162, 89, 0.35);
    border-radius: 2rem;
    padding: 0.375rem 0.875rem;
    margin-bottom: 0.875rem;
}

.brady-step-body h3 {
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 0.875rem;
}

.brady-path .brady-points {
    text-align: left;
}

.brady-path .brady-points li {
    color: var(--body);
}

.brady-path .brady-points li::before {
    background: var(--gold);
}
/* #endregion */

/* #region Brady — Responsive */
/* #region Brady — stack map/text rows; contain reveal transforms */
/* Keep clip/min-width on the flex rows only — never on .boxbox, or it
   overrides the site's 87.5rem content width and goes full-bleed. */
.brady-neighborhood,
.brady-geology {
    overflow-x: clip;
}

.brady-nbhd-top,
.brady-source-top {
    max-width: 100%;
    min-width: 0;
}

@media only screen and (max-width: 1200px) {
    .brady-hero .boxbox {
        flex-direction: column-reverse;
    }

    .brady-hero .halfgap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .brady-hero-text {
        margin-top: 1rem;
    }

    .brady-nbhd-top {
        flex-direction: column;
    }

    .brady-nbhd-top .halfgap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .brady-nbhd-top .brady-source-map {
        margin-top: 1.5rem;
    }

    .brady-source-top {
        flex-direction: column;
    }

    .brady-source-top .halfgap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .brady-source-top .brady-source-map {
        margin-top: 1.5rem;
        position: static;
    }
}
/* #endregion */

@media only screen and (max-width: 1000px) {
    .brady-nbhd-grid,
    .brady-nbhd-grid.brady-nbhd-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .brady-nbhd-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .brady-nbhd-card:nth-child(odd) {
        border-left: none;
    }

    .brady-system-grid {
        grid-template-columns: 1fr;
    }

    .brady-steps,
    .brady-steps.brady-steps-3 {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 1.5rem;
    }

    .brady-steps::before {
        display: none;
    }

    .brady-showing {
        padding: 2rem;
    }
}

@media only screen and (max-width: 600px) {
    .brady-hero h2 {
        font-size: 2.5rem;
    }

    .brady-nbhd-grid,
    .brady-nbhd-grid.brady-nbhd-grid-4 {
        grid-template-columns: 1fr;
    }

    .brady-nbhd-card {
        border-left: none;
        border-bottom: 1px solid var(--line);
    }

    .brady-nbhd-card:last-child {
        border-bottom: none;
    }

    .brady-stats {
        flex-direction: column;
    }

    .brady-stat {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .brady-showing {
        margin-left: 0;
        padding: 1.5rem;
        max-width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
    }

    .brady-showing-list::before {
        display: none;
    }

    .brady-showing::before {
        position: static;
        box-shadow: none;
        margin-bottom: 1rem;
    }

    .brady-showing-head h3 {
        font-size: 1.5rem;
    }

    .brady-steps,
    .brady-steps.brady-steps-3 {
        grid-template-columns: 1fr;
    }

    .brady-hl {
        font-size: 0.8125rem;
    }
}
/* #endregion */
/* #endregion */

/* #region Triple R */
.tripler-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.tripler-stat {
    flex: 1;
    min-width: 16rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--offwhite);
    border-left: 0.25rem solid var(--gold);
    border-radius: 0.625rem;
    padding: 1.125rem 1.5rem;
}

.tripler-stat-num {
    font-family: 'Adelphi';
    font-size: 2rem;
    color: var(--green);
    line-height: 1;
    white-space: nowrap;
}

.tripler-stat-num small {
    font-size: 1rem;
    color: var(--body);
    margin-left: 0.25rem;
}

.tripler-stat-label {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-accent);
    line-height: 1.4;
    max-width: 16rem;
}

.tripler-zones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tripler-zone {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    transition: background 0.3s ease;
}

.tripler-zone:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tripler-zone-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.tripler-zone p {
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--text-body);
    line-height: 1.65;
}

.tripler-note {
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
}

/* #region Triple R — neighbourhood grid */
.brady-nbhd-grid.brady-nbhd-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media only screen and (max-width: 1000px) {
    .brady-nbhd-grid.brady-nbhd-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 600px) {
    .brady-nbhd-grid.brady-nbhd-grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .tripler-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }

    .tripler-stat-label {
        text-align: left;
    }
}
/* #endregion */
/* #endregion */

/* #region 404 */
.four0four .img404 {
    background-image:url('https://www.midobi.com/mods/pages/404/images/404_A.png');
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
}
/* #endregion */

/* #region contact */
.contact .info p {
    line-height:2rem;
}

.contact .info .icon {
    border-radius:0.25rem;
    font-size:1.25rem;
    padding:0.5rem;
    border:1px solid;
    align-self:flex-start;
}

.contact .info h4 {
    margin-top:0.3rem;
}

.contact .info a {
    font-size: 1rem;
    color: var(--ink);
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.contact .info a span {
    margin-right:0.5rem;
    font-size:1.25rem;
    width:2rem;
    text-align:center;
    display:block;
}

.contact .info .spacersmall:hover a {
    opacity:0.25;
}

.contact .info .spacersmall a:hover {
    opacity:1;
}

.contact .item.right {
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.contact form input {
    border-bottom: 2px solid var(--line);
    padding: 0.5rem;
    font-size: 1.25rem;
    color: var(--ink);
    background: transparent;
}

.contact form .full {
    width:100%;
}

.contact form input[type="checkbox"] {
    display:none;
}

.contact form .checktext {
    font-size:1rem;
    font-weight:600;
}

.contact form .check {
    display: block;
    position: relative;
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--line);
    border-radius: 0.25rem;
    padding: 0.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
    color: rgba(0, 0, 0, 0);
    transition: all 0.2s ease-in-out;
}

.contact form .check span {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:100%;
    height:100%;
}

.contact form .check:hover {
    color: var(--muted);
    border-color: rgba(202, 162, 89, 0.5);
}

.contact form .check.checked {
    color: #caa259;
    border-color: #caa259;
}

.contact form .check .line1,
.contact form .check .line2 {
    position: absolute;
    background-color: currentColor;
    border-radius: 999px;
    transform-origin: center;
}

.contact form .check .line1 {
    width: 35%;
    height: 3px;
    top: 54%;
    left: 16%;
    transform: rotate(45deg);
}

.contact form .check .line2 {
    width: 55%;
    height: 3px;
    top: 45%;
    left: 32%;
    transform: rotate(-45deg);
}

.contact .formsuccess {
    opacity:0.25;
    pointer-events:none;
}

.contact .sysmsg {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:9999;
    padding:1rem;
}

.contact .sysmsg .under {
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:100%;
    background-color:#64af47;
    opacity:0.95;
    backdrop-filter:blur(10px);
}

.contact .sysmsg .maintext {
    text-align:center;
    position:relative;
    border:2px solid #fff;
    color:#fff;
}

.contact .sysmsg .maintext .icon {
    font-size:4rem;
}

.contact .sysmsg .maintext .closelink {
    cursor: pointer;
    font-size:1.25rem;
    font-weight:600;
    color:#221f1f;
    background-color:#fff;
    border:2px solid #fff;
    border-radius:0.5rem;
    padding:0.5rem 2rem;
    display:inline-block;
    transition:all 0.2s ease-in-out;
}

.contact .sysmsg .maintext .closelink:hover {
    background-color:transparent;
    color:#fff;
}

.contact .sysmsg .formhide {
    opacity:0;
    transform:translateY(3rem);
    pointer-events:none;
}

.contact .sysmsg .underhide {
    height:0;
    pointer-events:none;
}

.contact .sysmsg.bighide {
    opacity:0;
    pointer-events:none;
}

.contact.m1200 .buttonflex {
    flex-direction:column;
    align-items:flex-start;
}

.contact.m900 {
    flex-direction:column;
    align-items:flex-start;
    row-gap:2rem;
}

.contact.m900 .info {
    width:100%;
    display:flex;
    flex-wrap:wrap;
    row-gap:2rem;
    column-gap:2rem;
}

.contact.m900 .info .item {
    width:calc(50% - 1rem);
}

.contact.m600 .info {
    row-gap:1rem;
}

.contact.m600 .info .item {
    width:100%;
}

.contact.m600 .item .spacersmall {
    display:flex;
    flex-wrap:wrap;
}

.contact.m600 .item .spacersmall a {
    width:calc(50% - 0.5rem);
}

.contact.m600 .item h4 {
    width:100%;
}

.contact.m600 form input {
    width:100%;
}

.contact.m600 .buttonflex {
    width:100%;
}

.contact.m600 .buttonflex .mainlink {
    width:100%;
}

.contact.m450 .item .spacersmall a {
    width:100%;
}
/* #endregion */

/* #region menu */
.menu {
    max-width:1100px;
}

.noclip {
    overflow:visible;
}

.menu .menubox {
    display:none;
}

.noclip .menubox {
    display:flex;
}

.menu .minilink {
    color:#fff;
    font-size:3rem;
    display:none;
    cursor:pointer;
}

.menu .miniclose {
    color:#fff;
    font-size:3rem;
    position:fixed;
    top:30px;
    right:30px;
    z-index:10;
    display:none;
}

.menu .mainmenu {
    font-size:18px;
    font-weight:600;
    transition:all .3s;
    text-align:center;
    text-transform:uppercase;
    height:100%;
    color:#fff;
    position:relative;
}

.menu .mainmenu:first-of-type {
    margin-left:0;
}

.menu .mainmenu .top {
    cursor:default;
    transition:all .4s;
    height:100%;
    padding:10px 15px;
}

.menu .toplink {
    font-size:18px;
    font-weight:600;
    transition:all .3s;
    text-align:center;
    color:#fff;
    padding:10px 15px;
}

.menu .toplink:hover {
    background-color:#ebb22c;
    border-color:#ebb22c;
    color:#fff;
    box-shadow:0 2px 4px rgba(0,0,0,0.25);
}

.menu .sublink {
    font-size:18px;
    font-weight:600;
    transition:all .3s;
    text-align:center;
    text-transform:uppercase;
    color:#fff;
    padding:10px 15px;
    border:2px solid #fff;
    cursor:pointer;
    white-space: nowrap;
}

.menu .sublink:hover {
    background-color:#ebb22c;
    border-color:#ebb22c;
    color:#fff;
    box-shadow:0 2px 4px rgba(0,0,0,0.25);
}

.menu .mainmenu:hover .top {
    background-color:#fff;
    color:#222;
}

.menu .mainmenu .lower {
    height:0px;
    position:absolute;
    left:0;
    top:43px;
    opacity:0;
    transition:all .3s;
    pointer-events:none;
    width:300px;
}

.menu .mainmenu:hover .lower {
    opacity:1;
    height:auto;
    top:43px;
}

.scrolled nav .mainmenu .lower {
    top:60px;
}

.menu .mainmenu:hover .lower {
    pointer-events:all;
    opacity:1;
    background-color:#fff;
}

.menu .mainmenu .lower .active {
    background-color:#fff;
    border-bottom:0 !important;
    color:#fff;
}

.menu .mainmenu .lower a {
    color:#222;
    font-size:16px;
    padding:10px 15px;
    font-weight:600;
    opacity:.33;
    display:block;
    text-align:left;
}

.menu .mainmenu .lower a:not(:last-of-type) {
    border-bottom:1px solid rgba(0,0,0,.15);
}

.menu .mainmenu .lower a:hover {
    opacity:1;
    border-bottom-color:rgba(0,0,0,.05);
    color:#ebb22c;
}

.header .menu .contact {
    color:#0b0b0b;
    font-size:18px;
    font-weight:bold;
    padding:10px 15px;
    padding-top:15px;
    margin-left:60px;
    transition:all .4s;
}

.header .menu .contact:hover {
    box-shadow: 0px 3px 5px rgba(0,0,0,0.25);
    background-color:#fff;
    color:#d7b033;
    padding-top:10px;
}

.header .menu .contact div {
    height:0px;
    width:100%;
    background-color:#d7b033;
    opacity:0;
    margin-top:8px;
    transition:all .4s;
}

.header .menu .contact:hover div {
    height:5px;
    opacity:1;
}

.menu .smallclose {
    display:none;
}

.header .smalltoggle {
    display:none;
    width:50px;
    position:relative;
    opacity:.9;
}

.header .smalltoggle:hover {
    opacity:1;
}

.header .smalltoggle div {
    height:5px;
}

.header .smalltoggle .line-1 {
    width:100%;
    margin-bottom:10px;
    background-color:#fff;
    transition:.3s all;
}

.header .smalltoggle:hover .line-1 {
    width:85%;
    margin-right:15%;
    background-color:#697865;
}

.header .smalltoggle .line-2 {
    width:60%;
    margin-left:40%;
    margin-bottom:10px;
    background-color:#fff;
    transition:.3s all;
}

.header .smalltoggle:hover .line-2 {
    margin-right:40%;
    margin-left:0;
    background-color:#697865;
}

.header .smalltoggle .line-3 {
    width:85%;
    margin-left:15%;
    background-color:#fff;
    transition:.3s all;
}

.header .smalltoggle:hover .line-3 {
    width:100%;
    margin-left:0;
    background-color:#697865;
}

.header .navbar {
    width:100%;
    height:0;
}

.header .smallmenu {
    display:none;
    color:#fff;
    font-size:42px;
    font-weight:bold;
    cursor:pointer;
}

.header .smallopen {
    display:none;
}

/* #region 900 Breakpoint */

.m900 .mainmenu, .m900 .toplink, .m900 .sublink {
    font-size:.8rem;
    margin-left:0;
}

.m900 .mainmenu .lower {
    top:36px;
}

.m900 .mainmenu:hover .lower {
    top:36px;
}

/* #endregion */

/* #region 760 Breakpoint */

.m760 {
    flex-grow:0;
}

.m760 .menubox {
    position:fixed;
    flex-direction:column;
    justify-content:center;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background-color:rgba(39,51,83,0.98);
    z-index:9;
    opacity:0;
    pointer-events:none;
}

.m760 .menubox .mainmenu, .m760 .menubox .toplink, .m760 .menubox .sublink {
    width:100%;
    text-align:left;
    height:auto;
    font-size:2rem;
    display:block;
}

.m760 .menubox .mainmenu .top {
    display:block;
    height:auto;
}

.m760 .menubox .mainmenu .lower {
    position:static;
    width:100%;
    height:auto;
    top:0;
    opacity:1;
    display:none;
}

.m760 .menubox .mainmenu:hover .lower {
    opacity:1;
    height:auto;
    top:0;
}

.m760 .minilink {
    display:block;
}

/* #endregion */

.popped .menubox {
    opacity:1;
    pointer-events:all;
    transition:all .5s;
}

.popped .menubox .lower {
    transition:none;
}

.popped .menupop {
    background-color:#fff;
}

.popped .menupop .top {
    color:#222;
}

.popped .miniclose {
    display:block;
}
/* #endregion */

/* #region placeholder */
* {
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #fff;
}

.placeholder img {
    max-height:100px;
    width:auto;
}

.placeholder .maintext {
    max-width:800px;
}

.placeholder .contact a {
    color:#0056b3;
    display:block;
}

.placeholder .contact a span {
    margin-right:0.5rem;
}

.placeholder .contact a:hover {
    text-decoration:underline;
}

.placeholder .linklist a {
    padding:1rem;
    text-align:center;
    font-weight:bold;
    border:2px solid #aaa;
    color:#aaa;
    transition:all .2s;
    display:block;
    width:100%;
    border-radius:0.5rem;
}

.placeholder .linklist a:hover {
    background-color:#0056b3;
    border-color:#0056b3;
    color:#fff;
    transform:scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media screen and (max-width: 900px) {
    h1, h2, h3, h4, h5, h6 {
        text-align:center;
    }

    .placeholder .maintext {
        max-width: 100%;
        padding:0;
        text-align:center;
    }

    .placeholder .mainflex {
        display:block;
    }

    .placeholder img {
        max-height:100px;
        max-width:100%;
        width:auto;
        margin:auto;
        display:block;
    }

    .placeholder .container {
        width:100%;
        padding:2rem;
    }
}
/* #endregion */

/* #region subscribe */
.subscribe .icon {
    font-size:5rem;
    line-height:5rem;
    margin-right:30px;
}

.subscribe .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.subscribe .form-group label {
    display:block;
    font-weight: bold;
    color: #333;
}

.subscribe .form-group input[type="text"],
.subscribe .form-group input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.subscribe .form-group input[type="text"]:focus,
.subscribe .form-group input[type="tel"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

/* #region 500 Breakpoint */

.m500 {
    display:block;
    text-align:center;
}

.m500 .icon {
    margin-right:0;
}

.m500 .iconflex {
    flex-direction:column;
    align-items:center;
}

/* #endregion */
/* #endregion */

/* Body/heading sizes use --text-* clamp vars (see :root). No extra mobile px overrides. */
