/* =========================================================================
   FOXPOINT CONSTRUCTION — "MONUMENT" DESIGN SYSTEM  (v2.0)
   Night-quarry: basalt surfaces, Marcellus inscriptional type, copper accent.
   Bootstrap 5.3 compatible: extends, not replaces. No build step.
   ========================================================================= */

/* -----------------------------------------------------------------------
   1. TOKENS
   ----------------------------------------------------------------------- */
:root {
    /* ---------- SURFACES ---------- */
    --basalt-950: #0b0c0e;
    --basalt-900: #14161a;
    --basalt-850: #1a1d22;
    --basalt-800: #23262d;
    --ivory:      #f1ece3;
    --ivory-2:    #e7e0d2;
    --paper:      #faf8f4;

    /* ---------- TEXT ---------- */
    --text-on-dark:      var(--ivory);
    --text-on-dark-dim:  rgba(241, 236, 227, 0.66);
    --text-on-light:     #23262d;
    --text-on-light-dim: #5c6068;

    /* ---------- ACCENT: COPPER (sampled from IMG_9992) ---------- */
    --copper:        #c0703d;
    --copper-bright: #e0956a;
    --copper-deep:   #96552a;
    --copper-glow:   rgba(192, 112, 61, 0.35);

    /* ---------- FUNCTIONAL ---------- */
    --moss:   #5c7047;
    --danger: #a8442f;
    --info:   #4f6577;

    /* ---------- LINES ---------- */
    --line-dark:        rgba(241, 236, 227, 0.14);
    --line-dark-strong: rgba(241, 236, 227, 0.28);
    --line-light:       rgba(20, 22, 26, 0.16);

    /* ---------- LEGACY ALIASES (do not delete) ---------- */
    --bone: var(--ivory);          --bone-2: var(--ivory-2);
    --limestone: var(--ivory-2);   --slate: var(--text-on-light);
    --slate-2: var(--text-on-light-dim);
    --granite: var(--basalt-900);
    --granite-90: rgba(11,12,14,0.9); --granite-60: rgba(11,12,14,0.6);
    --granite-15: rgba(11,12,14,0.15); --granite-08: rgba(11,12,14,0.08);
    --clay: var(--copper); --clay-dark: var(--copper-deep); --clay-light: var(--copper-bright);
    --paperwhite: var(--paper); --black: #000;

    /* ---------- TYPE ---------- */
    --font-display: 'Marcellus', 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: var(--font-display); /* legacy alias */

    /* ---------- SPACING ---------- */
    --space-xs: 0.5rem;  --space-sm: 1rem;  --space-md: 2rem;  --space-lg: 3.5rem;
    --space-section: clamp(4.5rem, 10vw, 8.5rem);
    --space-section-tight: clamp(2.5rem, 6vw, 4.5rem);
    --gutter: clamp(1.25rem, 4vw, 3rem);

    /* ---------- RADII (sharp = monumental; NO pills) ---------- */
    --radius-sm: 2px;  --radius-md: 4px;  --radius-lg: 8px;

    /* ---------- SHADOWS ---------- */
    --shadow-soft:   0 8px 30px rgba(0,0,0,0.35);
    --shadow-medium: 0 18px 60px rgba(0,0,0,0.5);
    --shadow-copper: 0 8px 32px var(--copper-glow);

    /* ---------- MOTION ---------- */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);           /* settling stone */
    --ease-cinematic: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 0.3s;  --dur-med: 0.7s;  --dur-slow: 1.1s;

    /* ---------- NAV ---------- */
    --nav-height: 84px;
    --nav-height-scrolled: 64px;
}

/* -----------------------------------------------------------------------
   2. BASE & TYPOGRAPHY
   ----------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
    background: var(--basalt-900);
    color: var(--text-on-dark);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Defensive guard: full-bleed elements (e.g. the 100vw .process__num rails)
       must never produce page-level horizontal scroll. */
    overflow-x: clip;
}

::selection { background: var(--copper); color: var(--basalt-950); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
    font-family: var(--font-display);
    font-weight: 400;               /* Marcellus ships in 400 only — never synthesize bold */
    color: var(--ivory);
    letter-spacing: 0.01em;
}
h1, .h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.05; }
h2, .h2 { font-size: clamp(1.9rem, 4vw, 3.25rem); line-height: 1.1; }
h3, .h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }

h5, .h5 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ivory);
}

p { color: var(--text-on-dark-dim); }

a {
    color: var(--copper-bright);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}
a:hover {
    color: var(--ivory);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.display-hero {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.75rem, 8.5vw, 7rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
    max-width: 14ch;
    color: var(--ivory);
}
.display-hero em {
    font-style: normal;
    color: var(--copper-bright);
}

.lead {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.65;
    color: var(--text-on-dark-dim);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--copper-bright);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 1px;
    background: currentColor;
    margin-right: 0.75rem;
    vertical-align: middle;
}
.eyebrow-light { color: rgba(241, 236, 227, 0.75); }

/* Decorative outlined numerals (always aria-hidden in markup) */
.giant-index {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-dark-strong);
    user-select: none;
    pointer-events: none;
}
@supports not (-webkit-text-stroke: 1px black) {
    .giant-index { color: rgba(241, 236, 227, 0.1); }
}

/* Light-band surface flips (templates already carry these classes) */
.bg-bone { background: var(--ivory); color: var(--text-on-light); }
.section--limestone { background: var(--ivory-2); color: var(--text-on-light); }
.bg-bone h1, .bg-bone h2, .bg-bone h3, .bg-bone h4, .bg-bone h5,
.section--limestone h1, .section--limestone h2, .section--limestone h3,
.section--limestone h4, .section--limestone h5 { color: var(--basalt-900); }
.bg-bone p, .section--limestone p,
.bg-bone .lead, .section--limestone .lead { color: var(--text-on-light-dim); }
.bg-bone a:not(.btn), .section--limestone a:not(.btn) { color: var(--copper-deep); }
.bg-bone a:not(.btn):hover, .section--limestone a:not(.btn):hover { color: var(--basalt-900); }
/* AA contrast on ivory: copper-bright (2.06:1) flips to copper-deep (4.92:1) */
.bg-bone .eyebrow, .section--limestone .eyebrow { color: var(--copper-deep); }
.bg-bone .giant-index, .section--limestone .giant-index {
    -webkit-text-stroke: 1px var(--line-light);
}

/* Utility aliases */
.text-clay { color: var(--copper) !important; }
.text-granite { color: var(--basalt-900) !important; }
.bg-limestone { background-color: var(--ivory-2) !important; }
.bg-granite { background-color: var(--basalt-900) !important; }

/* -----------------------------------------------------------------------
   3. NAV  (#siteNav — floats transparent over hero, shrinks on scroll)
   ----------------------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--nav-height);
    padding: 0;
    background: linear-gradient(to bottom, rgba(11, 12, 14, 0.65), transparent);
    border: 0;
    transition: height var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.site-nav.scrolled {
    background: rgba(20, 22, 26, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    height: var(--nav-height-scrolled);
}
@supports not (backdrop-filter: blur(14px)) {
    .site-nav.scrolled { background: rgba(20, 22, 26, 0.97); }
}

.site-nav .navbar-brand {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--ivory);
}
.site-nav .navbar-brand:hover { color: var(--ivory); text-decoration: none; }
.site-nav .navbar-brand img {
    height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
    transition: height var(--dur-fast) var(--ease);
}
.site-nav.scrolled .navbar-brand img { height: 32px; }

.site-nav .nav-link {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-on-dark-dim) !important;
    padding: 0.5rem 0.9rem !important;
    position: relative;
    transition: color 0.2s var(--ease);
}
.site-nav .nav-link:hover { color: var(--ivory) !important; text-decoration: none; }
.site-nav .nav-link.active { color: var(--ivory) !important; }
.site-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: -6px;
    height: 2px;
    background: var(--copper);
    transition: width 0.2s var(--ease);
}
/* External-link affordance (covers the Merch link with zero markup) */
.site-nav .nav-link[target="_blank"]::after {
    content: "\2197";
    position: static;
    display: inline;
    height: auto;
    background: none;
    font-size: 0.7em;
    margin-left: 0.35em;
}

.site-nav .nav-phone {
    color: var(--ivory);
    border: 1px solid var(--line-dark-strong);
    background: transparent;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease);
}
.site-nav .nav-phone:hover {
    background: var(--ivory);
    color: var(--basalt-950);
    border-color: var(--ivory);
}

.site-nav .nav-cta {
    background: var(--copper);
    color: var(--basalt-950);
    border: 1px solid var(--copper);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.55rem 1.2rem;
    transition: all 0.2s var(--ease);
}
.site-nav .nav-cta:hover {
    background: var(--copper-bright);
    border-color: var(--copper-bright);
    color: var(--basalt-950);
}

.site-nav .navbar-toggler {
    border: 1px solid var(--line-dark-strong);
    padding: 0.4rem 0.55rem;
    border-radius: var(--radius-sm);
}
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 2px var(--copper-glow); }
.site-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(241,236,227,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile expanded menu */
@media (max-width: 991.98px) {
    /* Solid nav bar while the menu is open — avoids a see-through brand row
       sitting on top of an opaque menu panel at page top. */
    .site-nav:has(.navbar-collapse.show),
    .site-nav:has(.navbar-collapse.collapsing) {
        background: var(--basalt-900);
    }
    .site-nav .navbar-collapse.show,
    .site-nav .navbar-collapse.collapsing {
        background: var(--basalt-900);
        /* Full viewport bleed (not just to the container edge) with content
           re-aligned to the container's gutter. */
        margin-inline: calc(50% - 50vw);
        padding: 1rem 0 1.5rem;
        padding-inline: max(1.5rem, calc(50vw - 50%));
        border-bottom: 1px solid var(--line-dark);
    }
    .site-nav .navbar-collapse .nav-link {
        display: block;
        font-size: 1rem;
        letter-spacing: 0.08em;
        padding: 0.9rem 0 !important;
        border-bottom: 1px solid var(--line-dark);
    }
    .site-nav .navbar-collapse .nav-link.active::after { display: none; }
}

/* Admin dropdown */
.site-nav .dropdown-menu {
    background: var(--basalt-850);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
}
.site-nav .dropdown-item { color: var(--ivory); font-size: 0.9rem; }
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus { background: var(--basalt-800); color: var(--ivory); }
.site-nav .dropdown-divider { border-color: var(--line-dark); }

/* -----------------------------------------------------------------------
   4. BUTTONS
   ----------------------------------------------------------------------- */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.75rem;
    border-width: 1px;
    transition: all var(--dur-fast) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 0.875rem; }

.btn-primary,
.btn-primary:visited {
    background: var(--copper);
    border: 1px solid var(--copper);
    color: var(--basalt-950);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--copper-bright) !important;
    border-color: var(--copper-bright) !important;
    color: var(--basalt-950) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-copper);
}
.btn-primary:focus-visible {
    outline: 2px solid var(--copper-bright);
    outline-offset: 2px;
    box-shadow: none;
}

/* Custom button variants have no Bootstrap focus shadow — give them a ring. */
.btn-ghost:focus-visible,
.btn-outline-light:focus-visible,
.nav-phone:focus-visible,
.nav-cta:focus-visible,
.floating-cta:focus-visible {
    outline: 2px solid var(--copper-bright);
    outline-offset: 2px;
    box-shadow: none;
}

.btn-ghost,
.btn-outline-light {
    background: transparent;
    border: 1px solid var(--line-dark-strong);
    color: var(--ivory);
}
.btn-ghost:hover,
.btn-outline-light:hover {
    background: var(--ivory);
    border-color: var(--ivory);
    color: var(--basalt-950);
}

.btn-dark {
    background: var(--basalt-850);
    border: 1px solid var(--line-dark);
    color: var(--ivory);
}
.btn-dark:hover,
.btn-dark:focus,
.btn-dark.active {
    background: var(--copper);
    border-color: var(--copper);
    color: var(--basalt-950);
}

.btn i.fa-arrow-right { transition: transform var(--dur-fast) var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }

/* -----------------------------------------------------------------------
   5. HERO
   ----------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    margin-top: calc(var(--nav-height) * -1);
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(4rem, 10vh, 7rem);
    overflow: hidden;
    color: var(--ivory);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 65% center;
    z-index: 0;
    animation: kenburns 22s var(--ease-cinematic) forwards;
    transform-origin: 60% 40%;
}
@keyframes kenburns {
    from { transform: scale(1.12); }
    to   { transform: scale(1); }
}
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg, rgba(11,12,14,0.88) 0%, rgba(11,12,14,0.45) 45%, rgba(11,12,14,0.15) 75%),
        linear-gradient(to top, rgba(11,12,14,0.9) 0%, transparent 40%);
}
.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero h1 { color: var(--ivory); margin-bottom: 1.25rem; }
.hero__lead {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: rgba(241, 236, 227, 0.82);
    max-width: 52ch;
    margin-bottom: 2rem;
}
.hero .divider-rule { background: var(--copper-bright); }

/* Short/mid hero variants (quote + services pages) */
.hero--short { min-height: 52vh; }
.hero--short .hero__inner { padding-block: 5rem; }
.hero--short h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.hero--mid { min-height: 62vh; }

.hero__scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(241, 236, 227, 0.6);
    pointer-events: none;
}
.hero__scroll-cue::after {
    content: "";
    width: 1px;
    height: 56px;
    background: rgba(241, 236, 227, 0.55);
    transform-origin: top;
    animation: scrollcue 2.4s var(--ease-cinematic) infinite;
}
@keyframes scrollcue {
    0%   { transform: scaleY(0); opacity: 1; }
    50%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}
@media (max-width: 767.98px) { .hero__scroll-cue { display: none; } }

/* -----------------------------------------------------------------------
   6. SECTION SHELLS & DIVIDER
   ----------------------------------------------------------------------- */
.section { padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-section-tight); }
.section--granite {
    background: var(--basalt-950);
    color: var(--ivory);
    border-top: 1px solid var(--line-dark);
}
.section--granite h1, .section--granite h2, .section--granite h3 { color: var(--ivory); }
.section--granite p { color: var(--text-on-dark-dim); }

.section-heading {
    text-align: left;
    margin: 0 0 var(--space-lg);
    max-width: 780px;
}
.section-heading.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.section-heading.text-center .divider-rule { margin-left: auto; margin-right: auto; }

.divider-rule {
    display: block;
    width: 56px;
    height: 1px;
    border: 0;
    background: var(--copper);
    position: relative;
    margin: 0 0 1.5rem 0;
}
.divider-rule::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -2.5px;
    width: 6px;
    height: 6px;
    background: inherit;
    transform: rotate(45deg);
}
.divider-rule.center { margin-left: auto; margin-right: auto; }

/* -----------------------------------------------------------------------
   7. CRAFT TILES (grout-line slab grid)
   ----------------------------------------------------------------------- */
.craft-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.craft-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 0;
    overflow: hidden;
    /* Grout line drawn with box-shadow, NOT outline, so the browser/custom
       focus ring stays available on these anchors. */
    box-shadow: inset 0 0 0 1px var(--line-dark);
    background: var(--basalt-850);
    color: var(--ivory);
}
.craft-tile:focus-visible {
    outline: 2px solid var(--copper-bright);
    outline-offset: 2px;
}
.craft-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9);
    transform: scale(1.04);
    transition: transform var(--dur-slow) var(--ease), filter var(--dur-med) var(--ease);
}
.craft-tile:hover img,
.craft-tile:focus-visible img {
    transform: scale(1);
    filter: saturate(1.05);
}
.craft-tile__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(11,12,14,0.92) 0%, rgba(11,12,14,0.35) 45%, transparent 70%);
}
.craft-tile__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.75rem;
}
.craft-tile__caption .eyebrow { margin-bottom: 0.5rem; }
.craft-tile__caption h3 {
    color: var(--ivory);
    margin-bottom: 0.35rem;
    transition: color var(--dur-fast) var(--ease);
}
.craft-tile__caption p {
    color: var(--text-on-dark-dim);
    font-size: 0.95rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.craft-tile__caption .fa-arrow-right {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
    color: var(--copper-bright);
}
.craft-tile:hover .craft-tile__caption h3 { color: var(--copper-bright); }
.craft-tile:hover .craft-tile__caption .fa-arrow-right { opacity: 1; transform: translateX(0); }

/* Softer modifier (hairline cards, not flush slabs) */
.craft-grid--process { gap: 2rem; }
.craft-grid--process .craft-tile {
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 1px var(--line-dark);
}

@media (max-width: 991.98px) {
    .craft-grid { grid-template-columns: 1fr 1fr; }
    .craft-grid > .craft-tile:nth-child(3) { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
    .craft-grid { grid-template-columns: 1fr; }
    .craft-grid > .craft-tile,
    .craft-grid > .craft-tile:nth-child(3) { grid-column: auto; aspect-ratio: 16 / 10; }
}

/* -----------------------------------------------------------------------
   8. STAT STRIP (+ retained legacy trust-strip)
   ----------------------------------------------------------------------- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}
.stat-strip__item {
    padding: 2.25rem 1.5rem;
    text-align: center;
}
.stat-strip__item:not(:first-child) { border-left: 1px solid var(--line-dark); }
.stat-strip__value {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--copper-bright);
}
.stat-strip__suffix { font-size: 0.6em; }
.stat-strip__label {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-on-dark-dim);
    margin-top: 0.35rem;
}
@media (max-width: 767.98px) {
    .stat-strip { grid-template-columns: 1fr 1fr; }
    .stat-strip__item:not(:first-child) { border-left: none; }
    .stat-strip__item:nth-child(even) { border-left: 1px solid var(--line-dark); }
    .stat-strip__item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* Legacy trust-strip: markup retired from index, rules kept & retokened */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: transparent;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}
.trust-strip__item {
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid var(--line-dark);
}
.trust-strip__item:last-child { border-right: none; }
.trust-strip__item i { color: var(--copper); font-size: 1.5rem; margin-bottom: 0.85rem; display: block; }
.trust-strip__item h5 { color: var(--ivory); margin-bottom: 0.4rem; }
.trust-strip__item p { font-size: 0.9rem; color: var(--text-on-dark-dim); margin: 0; }
@media (max-width: 767.98px) {
    .trust-strip { grid-template-columns: 1fr 1fr; }
    .trust-strip__item { border-right: none; border-bottom: 1px solid var(--line-dark); }
    .trust-strip__item:nth-child(odd) { border-right: 1px solid var(--line-dark); }
    .trust-strip__item:nth-last-child(-n+2) { border-bottom: none; }
}

/* -----------------------------------------------------------------------
   9. BANDS (full-bleed cinematic image sections)
   ----------------------------------------------------------------------- */
.band {
    position: relative;
    min-height: clamp(420px, 70vh, 720px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.band__bg {
    /* Oversized 40px top+bottom so the JS parallax (clamped +/-40px)
       never exposes an edge; clipped by .band's overflow:hidden. */
    position: absolute;
    left: 0;
    right: 0;
    top: -40px;
    width: 100%;
    height: calc(100% + 80px);
    object-fit: cover;
    will-change: transform;
}
.band__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,12,14,0.9) 0%, rgba(11,12,14,0.55) 50%, rgba(11,12,14,0.35) 100%);
}
.band__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}
.band__inner .band__content { max-width: 640px; }
.band__inner h2 { color: var(--ivory); }
.band--center { text-align: center; }
.band--center .band__scrim { background: rgba(11, 12, 14, 0.78); }
.band--center .band__content { margin-inline: auto; }

/* "or call ..." line under the CTA-band button */
.cta-phone-line { font-size: 0.9rem; color: var(--text-on-dark-dim); }
.cta-phone-line a { color: var(--copper-bright); }
@media (max-width: 767.98px) {
    .band { min-height: 60vh; }
    .band__scrim, .band--center .band__scrim { background: rgba(11, 12, 14, 0.85); }
}

/* -----------------------------------------------------------------------
   10. MASONRY GALLERY (grout-line columns + museum-label captions)
   ----------------------------------------------------------------------- */
.masonry {
    column-count: 3;
    column-gap: 2px;
}
.masonry__item {
    display: block;
    position: relative;
    margin: 0 0 2px 0;
    break-inside: avoid;
    border-radius: 0;
    overflow: hidden;
    /* Grout line via box-shadow so keyboard focus rings are not suppressed. */
    box-shadow: inset 0 0 0 1px var(--line-dark);
    background: var(--basalt-850);
    /* CLS stopgap: gallery images have no stored dimensions, so reserve some
       height before lazy images resolve. Proper fix: persist width/height on
       GalleryImage at upload time and emit them in the template. */
    min-height: 220px;
}
.masonry__item:focus-visible {
    outline: 2px solid var(--copper-bright);
    outline-offset: 2px;
}
.masonry__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--dur-slow) var(--ease), filter var(--dur-med) var(--ease);
}
.masonry__item:hover img,
.masonry__item:focus-within img {
    transform: scale(1.03);
    filter: brightness(1.06);
}
.masonry__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.25rem 1.25rem 1.1rem;
    background: linear-gradient(to top, rgba(11,12,14,0.92) 0%, rgba(11,12,14,0.55) 60%, transparent 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.masonry__item:hover .masonry__caption,
.masonry__item:focus-within .masonry__caption {
    opacity: 1;
    transform: translateY(0);
}
.masonry__caption h5,
.masonry__caption .h5 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--ivory);
    margin: 0 0 0.2rem 0;
}
.masonry__caption h5::before,
.masonry__caption .h5::before {
    content: "";
    display: block;
    width: 16px;
    height: 1px;
    background: var(--copper);
    margin-bottom: 0.5rem;
}
.masonry__caption p {
    color: var(--text-on-dark-dim);
    font-size: 0.85rem;
    margin: 0;
}
@media (hover: none) {
    .masonry__caption {
        position: static;
        opacity: 1;
        transform: none;
        background: var(--basalt-850);
        padding: 1rem;
    }
}
@media (max-width: 991.98px) { .masonry { column-count: 2; } }
@media (max-width: 600px) { .masonry { column-count: 1; } }

/* Gallery empty state */
.gallery-empty {
    position: relative;
    overflow: hidden;
    text-align: center;
}
.gallery-empty__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    pointer-events: none;
}
.gallery-empty__inner { position: relative; z-index: 1; }

/* GLightbox skin */
.glightbox-clean .gslide-description,
.glightbox-clean .gdesc-inner { background: var(--basalt-850); }
.glightbox-clean .gdesc-inner { padding: 14px 20px; }
.gslide-title { font-family: var(--font-display); font-weight: 400; color: var(--ivory) !important; }
.gslide-desc { color: var(--text-on-dark-dim) !important; }
.glightbox-clean .gnext, .glightbox-clean .gprev, .glightbox-clean .gclose { color: var(--ivory); }
.glightbox-clean .gcounter { color: var(--text-on-dark-dim); }

/* -----------------------------------------------------------------------
   11. FEATURE ROWS (ivory band, drafted plates, ledger lists)
   ----------------------------------------------------------------------- */
.feature-row {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
    padding-block: var(--space-section-tight);
    scroll-margin-top: calc(var(--nav-height-scrolled) + 56px);
}
.feature-row + .feature-row { border-top: 1px solid var(--line-light); }
.feature-row__media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}
.feature-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}
.feature-row:hover .feature-row__media img { transform: scale(1.03); }
.feature-row__media::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(192, 112, 61, 0.5);
    pointer-events: none;
    border-radius: var(--radius-sm);
}
.feature-row--reverse .feature-row__media { order: 2; }

.feature-row__body {
    position: relative;
    overflow: hidden;
}
.feature-row__body > * { position: relative; z-index: 1; }
.feature-row__body .giant-index {
    position: absolute;
    top: -0.5rem;
    left: -0.25rem;
    z-index: 0;
}
.feature-row__body h2 { margin-bottom: 1rem; }

.feature-row__list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
}
.feature-row__list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
    color: var(--text-on-light);
}
.feature-row__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 14px;
    height: 1px;
    background: var(--copper);
}
.feature-row__list li + li {
    border-top: 1px dotted var(--line-light);
    padding-top: 0.6rem;
}
.feature-row__list li + li::before { top: calc(0.75em + 0.6rem); }

@media (max-width: 767.98px) {
    .feature-row { grid-template-columns: 1fr; gap: 1.75rem; }
    .feature-row--reverse .feature-row__media { order: 0; }
    .feature-row__media::after { inset: 8px; }
    .feature-row__body .giant-index {
        position: static;
        display: block;
        font-size: 4rem;
        margin-bottom: 0.5rem;
    }
}

/* -----------------------------------------------------------------------
   12. CARDS (Bootstrap .card restyle — dark default, flips on light bands)
   ----------------------------------------------------------------------- */
.card {
    background: var(--basalt-850);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
    color: var(--text-on-dark-dim);
    box-shadow: none;
    overflow: hidden;
    transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 112, 61, 0.5);
    box-shadow: var(--shadow-medium);
}
.card-title {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ivory);
}
.card-body { padding: 1.75rem; }
.card p, .card .card-text { color: var(--text-on-dark-dim); }
.card i.fa-2x { color: var(--copper); }
.card-img-top { border-radius: 0; }

.bg-bone .card, .section--limestone .card {
    background: var(--paper);
    border: 1px solid var(--line-light);
    color: var(--text-on-light-dim);
}
.bg-bone .card .card-title, .section--limestone .card .card-title { color: var(--basalt-900); }
.bg-bone .card p, .section--limestone .card p { color: var(--text-on-light-dim); }

/* -----------------------------------------------------------------------
   13. FORMS (paper card on light band; dark-context scoped for admin/modals)
   ----------------------------------------------------------------------- */
.form-card {
    background: var(--paper);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow-medium);
}
@media (max-width: 575.98px) { .form-card { padding: 1.25rem; } }

.form-label {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-on-light);
    margin-bottom: 0.4rem;
}
.form-control,
.form-select {
    background-color: #fff;
    border: 1px solid var(--line-light);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-size: 1rem; /* >=16px — no iOS zoom */
    color: var(--text-on-light);
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-control:focus,
.form-select:focus {
    background-color: #fff;
    color: var(--text-on-light);
    border-color: var(--copper);
    box-shadow: 0 0 0 3px var(--copper-glow);
}
.form-control::placeholder { color: var(--text-on-light-dim); opacity: 0.7; }
.invalid-feedback { color: var(--danger); font-size: 0.85rem; }
.was-validated .form-control:invalid,
.form-control.is-invalid { border-color: var(--danger); }

/* Dark-context forms (admin shell, modals) */
.admin-shell .form-control,
.admin-shell .form-select,
.modal-content .form-control,
.modal-content .form-select {
    background: var(--basalt-800);
    border-color: var(--line-dark);
    color: var(--ivory);
}
.admin-shell .form-control:focus,
.admin-shell .form-select:focus,
.modal-content .form-control:focus,
.modal-content .form-select:focus {
    background: var(--basalt-800);
    color: var(--ivory);
    border-color: var(--copper);
    box-shadow: 0 0 0 3px var(--copper-glow);
}
.admin-shell .form-control::placeholder,
.modal-content .form-control::placeholder { color: var(--text-on-dark-dim); }
.admin-shell .form-label,
.modal-content .form-label { color: var(--ivory); }

.form-check-input:checked {
    background-color: var(--copper);
    border-color: var(--copper);
}
.form-check-input:focus { box-shadow: 0 0 0 3px var(--copper-glow); border-color: var(--copper); }

/* Small helper text inside light form cards */
.form-card .form-text { color: var(--text-on-light-dim); }
.form-note {
    font-size: 0.875rem;
    color: var(--text-on-light-dim);
}

/* -----------------------------------------------------------------------
   14. ALERTS (flask categories success/error/info + Bootstrap danger/warning)
   ----------------------------------------------------------------------- */
.alert {
    border-radius: var(--radius-sm);
    border: 0;
    border-left: 3px solid transparent;
    color: var(--ivory);
    margin-top: 1rem;
    font-size: 0.95rem;
}
.alert-success { background: rgba(92, 112, 71, 0.18); border-left-color: var(--moss); color: var(--ivory); }
.alert-error,
.alert-danger { background: rgba(168, 68, 47, 0.18); border-left-color: var(--danger); color: var(--ivory); }
.alert-info { background: rgba(79, 101, 119, 0.18); border-left-color: var(--info); color: var(--ivory); }
.alert-warning { background: rgba(192, 112, 61, 0.16); border-left-color: var(--copper); color: var(--ivory); }
.alert .btn-close { filter: invert(1) opacity(0.7); }

/* -----------------------------------------------------------------------
   15. FLOATING CTA (mobile only; earned entrance after 400px scroll)
   ----------------------------------------------------------------------- */
.floating-cta {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 1040;
    background: var(--copper);
    color: var(--basalt-950);
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: var(--shadow-copper);
    display: none;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(120%);
    opacity: 0;
    transition: transform var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease), background-color var(--dur-fast) var(--ease);
}
.floating-cta.is-shown { transform: none; opacity: 1; }
.floating-cta:hover {
    background: var(--copper-bright);
    color: var(--basalt-950);
    text-decoration: none;
}
.floating-cta i { font-size: 0.9rem; }
@media (max-width: 991.98px) {
    .floating-cta { display: inline-flex; }
}

/* -----------------------------------------------------------------------
   16. REVEAL SYSTEM
   ----------------------------------------------------------------------- */
/* Hidden states are gated on the .js root class (stamped inline in
   base.html <head>). If main.js never runs — blocked script, JS disabled,
   earlier JS error — content renders normally instead of staying invisible. */
.reveal {
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
    will-change: opacity, transform;
}
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
}
.js .reveal--left  { transform: translateX(-32px); }
.js .reveal--right { transform: translateX(32px); }
.js .reveal--scale { transform: scale(0.96) translateY(16px); }
.js .reveal--clip {
    clip-path: inset(0 0 12% 0);
    transform: translateY(20px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), clip-path var(--dur-slow) var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
}
.rd-1 { transition-delay: 0.1s; }
.rd-2 { transition-delay: 0.2s; }
.rd-3 { transition-delay: 0.3s; }
.rd-4 { transition-delay: 0.4s; }

/* -----------------------------------------------------------------------
   17. PROCESS BAND (4-step, dashed connector, ledger card)
   ----------------------------------------------------------------------- */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    /* LOAD-BEARING: the .process__num::before/::after connector rails are
       100vw wide and rely on this overflow:hidden for clipping. Removing it
       creates ~1000px of horizontal overflow (body overflow-x:clip is only
       a last-resort guard). */
    overflow: hidden;
}
.process__step { min-width: 0; }
.process__step img,
.process__media {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-md);
    outline: 1px solid var(--line-dark);
    outline-offset: -1px;
    display: block;
}
.process__num {
    position: relative;
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1;
    color: var(--copper-bright);
    background: var(--basalt-900);
    padding-right: 1rem;
    margin: 1.25rem 0 0.6rem;
}
/* Dashed connector track: drawn from each numeral chip outward, clipped by .process */
.process__num::before,
.process__num::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100vw;
    border-top: 1px dashed var(--line-dark-strong);
}
.process__num::before { right: 100%; }
.process__num::after { left: 100%; }
.process__title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ivory);
    margin-bottom: 0.4rem;
}
.process__step p {
    color: var(--text-on-dark-dim);
    font-size: 0.95rem;
    margin: 0;
}

/* Step 2's typographic estimate-preview card (decorative, aria-hidden) */
.process__ledger {
    aspect-ratio: 3 / 2;
    background: var(--basalt-850);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
    padding: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
}
.process__ledger-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-on-dark-dim);
    white-space: nowrap;
}
.process__ledger-leader {
    flex: 1;
    min-width: 1rem;
    border-bottom: 1px dotted var(--line-dark-strong);
    transform: translateY(-0.25em);
}
.process__ledger-total {
    border-top: 2px solid var(--copper);
    padding-top: 0.6rem;
    color: var(--copper-bright);
    font-weight: 600;
}
/* Sample amounts are illustrative — blurred so the ledger reads as a
   redacted real estimate, not published pricing. */
.process__ledger-amt {
    filter: blur(3.5px);
    opacity: 0.85;
    user-select: none;
}

@media (max-width: 767.98px) {
    .process { grid-template-columns: 1fr 1fr; }
    .process__num::before,
    .process__num::after { display: none; }
    .process__num { background: transparent; padding-right: 0; }
}
@media (max-width: 479.98px) {
    .process { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------
   18. TESTIMONIALS
   ----------------------------------------------------------------------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.testimonial {
    position: relative;
    background: var(--basalt-850);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.testimonial:hover { transform: translateY(-4px); border-color: rgba(192, 112, 61, 0.5); }
.testimonial__mark {
    position: absolute;
    top: 0.75rem;
    left: 1.25rem;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--copper);
    user-select: none;
    pointer-events: none;
}
.testimonial p,
.testimonial__quote {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-on-dark-dim);
    margin: 1.5rem 0 1.25rem;
}
.testimonial__attr {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ivory);
}
.testimonial__attr::before {
    content: "";
    display: block;
    width: 16px;
    height: 1px;
    background: var(--copper);
    margin-bottom: 0.6rem;
}
@media (max-width: 767.98px) {
    .testimonial-grid { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------
   19. STICKY SERVICE SUB-NAV
   ----------------------------------------------------------------------- */
.subnav {
    position: sticky;
    top: var(--nav-height-scrolled);
    z-index: 1010;
    background: rgba(20, 22, 26, 0.94);
    border-block: 1px solid var(--line-dark);
}
.subnav__track {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}
.subnav__track::-webkit-scrollbar { display: none; }
.subnav__link {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-on-dark-dim);
    padding: 0.9rem 1.1rem;
    transition: color 0.2s var(--ease);
}
.subnav__link:hover,
.subnav__link:focus-visible,
.subnav__link.active {
    color: var(--copper-bright);
    text-decoration: none;
}

/* -----------------------------------------------------------------------
   20. HERITAGE SEAL (static roundel — footer masthead only)
   ----------------------------------------------------------------------- */
.seal {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
}
.seal .seal-ring-outer { fill: none; stroke: var(--copper); stroke-width: 1; }
.seal .seal-ring-inner { fill: none; stroke: rgba(241, 236, 227, 0.4); stroke-width: 1; }
.seal .seal-letter {
    font-family: var(--font-display);
    font-size: 28px;
    fill: var(--ivory);
}
.seal .seal-tick { fill: var(--copper); }

/* -----------------------------------------------------------------------
   21. QUOTE-PAGE ASIDE (what-happens-next rail + origin plate)
   ----------------------------------------------------------------------- */
.quote-aside {
    background: var(--basalt-900);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: var(--text-on-dark-dim);
}
.quote-aside h3 { color: var(--ivory); margin-bottom: 1.5rem; }
.quote-aside__step {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.quote-aside__num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--copper-bright);
    flex: 0 0 auto;
}
.quote-aside__step p { margin: 0; color: var(--text-on-dark-dim); }
.quote-aside__rule {
    border: 0;
    border-top: 1px solid var(--line-dark);
    margin: 1.5rem 0;
    opacity: 1;
}
.quote-aside .btn-ghost { width: 100%; }
.quote-aside__plate {
    position: relative;
    max-width: 280px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.quote-aside__plate img { display: block; width: 100%; height: auto; }
.quote-aside__plate::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid var(--copper);
    pointer-events: none;
}
.quote-aside__caption {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--text-on-dark-dim);
    margin-top: 0.9rem;
}
.quote-aside__caption::before {
    content: "";
    display: block;
    width: 16px;
    height: 1px;
    background: var(--copper);
    margin-bottom: 0.5rem;
}

/* -----------------------------------------------------------------------
   22. PRE-FOOTER CTA + FOOTER
   ----------------------------------------------------------------------- */
.prefooter {
    background: var(--basalt-900);
    padding-block: var(--space-section-tight);
    border-top: 1px solid var(--line-dark);
}
.prefooter__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.prefooter__row h2 { margin: 0; color: var(--ivory); }
@media (max-width: 767.98px) {
    .prefooter__row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 479.98px) {
    .prefooter__row .btn { width: 100%; text-align: center; }
}

.site-footer {
    background: var(--basalt-950);
    border-top: 3px solid var(--copper); /* the literal copper flashing line */
    color: var(--text-on-dark-dim);
    padding-block: var(--space-section-tight) 0;
    padding-bottom: 2rem;
}
.footer-masthead {
    text-align: center;
    overflow: hidden;
    margin-bottom: var(--space-lg);
}
.footer-wordmark {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3rem, 12vw, 10rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-dark);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
}
@supports not (-webkit-text-stroke: 1px black) {
    .footer-wordmark { color: rgba(241, 236, 227, 0.07); }
}
@media (max-width: 400px) { .footer-wordmark { letter-spacing: 0; } }

.site-footer h5 {
    color: var(--ivory);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}
.site-footer p { color: var(--text-on-dark-dim); }
.site-footer a { color: var(--text-on-dark-dim); font-weight: 400; }
.site-footer a:hover { color: var(--copper-bright); text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-dark);
    color: var(--ivory);
    font-size: 1rem;
    transition: all 0.2s var(--ease);
}
.site-footer .social-links a:hover {
    background: var(--copper);
    border-color: var(--copper);
    color: var(--basalt-950);
}
.site-footer__bottom {
    border-top: 1px solid var(--line-dark);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-on-dark-dim);
}

/* Bootstrap <footer class="bg-dark"> compatibility (admin pages) */
footer.bg-dark { background-color: var(--basalt-950) !important; }

/* -----------------------------------------------------------------------
   23. ADMIN SHELL (dark back office; zero contract drift)
   ----------------------------------------------------------------------- */
.admin-shell { background: var(--basalt-900); color: var(--text-on-dark-dim); }
.admin-shell .card,
.admin-shell .admin-card {
    background: var(--basalt-850);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
    color: var(--text-on-dark-dim);
}
.admin-card {
    background: var(--basalt-850);
    color: var(--ivory);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
    transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.admin-card:hover { transform: translateY(-4px); border-color: rgba(192, 112, 61, 0.5); }
.admin-card h2, .admin-card .display-4 {
    font-family: var(--font-display);
    color: var(--copper-bright);
}

.admin-shell .table,
.admin-shell table {
    background: transparent;
    color: var(--text-on-dark-dim);
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-on-dark-dim);
}
.admin-shell .table thead th {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-on-dark-dim);
    border-bottom: 1px solid var(--line-dark-strong);
}
.admin-shell .table td, .admin-shell .table th { border-color: var(--line-dark); }
.admin-shell .table tbody tr:hover { background: var(--basalt-800); --bs-table-accent-bg: var(--basalt-800); }

.admin-shell .badge { border-radius: var(--radius-sm); color: var(--ivory); }
/* Dark ink on the warm badge fills — ivory fails AA on copper (#c0703d) */
.admin-shell .badge.bg-primary { background: var(--copper) !important; color: var(--basalt-950); }
.admin-shell .badge.bg-warning { background: #b98a3a !important; color: var(--basalt-950); }
.admin-shell .badge.bg-success { background: var(--moss) !important; color: var(--ivory); }
.admin-shell .badge.bg-secondary { background: var(--basalt-800) !important; color: var(--ivory); }

.modal-content {
    background: var(--basalt-850);
    color: var(--ivory);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
}
.modal-header, .modal-footer { border-color: var(--line-dark); }
.modal-content .btn-close { filter: invert(1) opacity(0.7); }

.navbar-dark { background-color: var(--basalt-950) !important; }

/* Admin extras (namespaced) */
.admin-shell .badge.bg-danger { background: var(--danger) !important; color: var(--ivory); }
.admin-shell .badge.bg-info { background: var(--info) !important; color: var(--ivory); }
.admin-shell .card-header {
    background: var(--basalt-800);
    border-bottom: 1px solid var(--line-dark);
    color: var(--ivory);
}
.admin-shell .card-header .card-title { color: var(--ivory); }
.admin-shell .text-muted { color: var(--text-on-dark-dim) !important; }
.admin-shell dt { color: var(--ivory); }
.admin-shell .list-group-item {
    background: var(--basalt-800);
    border-color: var(--line-dark);
    color: var(--text-on-dark-dim);
}
.admin-shell .list-group-item a { color: var(--copper-bright); }
.admin-shell .list-group-item a:hover { color: var(--ivory); }
.admin-shell .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(241, 236, 227, 0.03);
    color: var(--text-on-dark-dim);
}
.admin-shell .btn-secondary {
    background: var(--basalt-800);
    border: 1px solid var(--line-dark-strong);
    color: var(--ivory);
}
.admin-shell .btn-secondary:hover,
.modal-content .btn-secondary:hover {
    background: var(--basalt-800);
    border-color: var(--ivory);
    color: var(--ivory);
}
.modal-content .btn-secondary {
    background: var(--basalt-800);
    border: 1px solid var(--line-dark-strong);
    color: var(--ivory);
}
.admin-shell .btn-outline-secondary {
    color: var(--ivory);
    border-color: var(--line-dark-strong);
}
.admin-shell .btn-outline-secondary:hover,
.admin-shell .btn-outline-secondary:focus {
    background: var(--basalt-800);
    color: var(--ivory);
    border-color: var(--ivory);
}
.admin-shell .btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--ivory);
}
.admin-shell .btn-danger:hover,
.admin-shell .btn-danger:focus {
    background: #8f3a28;
    border-color: #8f3a28;
    color: var(--ivory);
}

/* Shared admin page/section/form/login titles (single source — templates
   must not redeclare these in per-page <style> blocks). */
.admin-page-title,
.admin-section-title,
.admin-form-title,
.admin-login-title {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ivory);
}
.admin-page-title { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.admin-section-title { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.admin-form-title { font-size: 1.35rem; }
.admin-login-title { font-size: 1.6rem; }
.admin-card .card-body { padding: 1.5rem; }
.admin-card .card-body a:not(.btn) { color: var(--copper-bright); }
.admin-card .card-body a:not(.btn):hover { color: var(--ivory); }
.admin-shell .card-img-top {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

/* -----------------------------------------------------------------------
   24. REDUCED MOTION (global gate)
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__bg { animation: none; transform: none; }
    .hero__scroll-cue { display: none; }
    .band__bg { transform: none !important; will-change: auto; }
    .reveal,
    .js .reveal,
    .js .reveal--left, .js .reveal--right, .js .reveal--scale, .js .reveal--clip {
        opacity: 1;
        transform: none;
        clip-path: none;
        transition: none;
    }
    .floating-cta { transition: none; }
    .craft-tile img,
    .feature-row__media img,
    .masonry__item img,
    .card,
    .testimonial,
    .admin-card,
    .btn,
    .btn i.fa-arrow-right { transition: none; }
}

/* -----------------------------------------------------------------------
   25. SMALL-SCREEN ADJUSTMENTS
   ----------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .hero { padding-bottom: 3rem; }
    .display-hero { font-size: clamp(2.75rem, 11vw, 4rem); }
}
@media (max-width: 479.98px) {
    .hero .btn { width: 100%; text-align: center; }
    .hero .btn + .btn { margin-top: 0.75rem; }
}
