:root {
    --color-page: #e8e8e4;
    --color-surface: #e8e8e4;
    --color-surface-alt: #d8d4ca;
    --color-surface-dark: #36332f;
    --color-text: #36332f;
    --color-body: #5a5953;
    --color-muted: #82786f;
    --color-border: #bebbb5;
    --color-brass: #b89559;
    --color-brass-hover: #aa8248;
    --color-brass-deep: #9a793e;
    --color-brass-pale: #eddea9;
    --color-walnut: #604330;
    --color-walnut-dark: #4c3627;
    --color-success: #48591e;
    --color-success-soft: #a7aa85;
    --color-error: #7a2020;
    --color-error-soft: #b96b6b;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;
    --section-space: clamp(4.75rem, 11vw, 8rem);

    --radius-small: 4px;
    --radius-medium: 10px;
    --radius-large: 16px;
    --shadow-soft: 0 14px 34px rgba(54, 51, 47, 0.09);
    --shadow-raised: 0 22px 55px rgba(54, 51, 47, 0.14);

    --content-width: 1180px;
    --content-width-form: 900px;
    --content-width-copy: 720px;

    --transition-fast: 160ms ease;
    --transition-base: 220ms ease;
    --transition-slow: 450ms cubic-bezier(0.22, 1, 0.36, 1);
    --focus-color: #778344;
    --focus-width: 3px;
    --focus-offset: 4px;
    --focus-ring: 0 0 0 3px rgba(119, 131, 68, 0.24);

    /* Compatibility aliases for existing page-specific styles. */
    --background: var(--color-page);
    --surface: var(--color-surface);
    --surface-muted: var(--color-surface-alt);
    --surface-dark: var(--color-surface-dark);
    --text: var(--color-text);
    --text-muted: var(--color-muted);
    --text-light: var(--color-page);
    --border: var(--color-border);
    --accent: var(--color-brass);
    --accent-hover: var(--color-brass-hover);
    --max-width: var(--content-width);
    --shadow: var(--shadow-soft);

    --nav-bg: var(--color-page);
    --nav-bg-open: var(--color-surface-alt);
    --nav-text: var(--color-text);
    --nav-muted: var(--color-muted);
    --nav-border: var(--color-border);
    --nav-brass: var(--color-brass);
    --nav-brass-hover: var(--color-brass-hover);
    --nav-walnut: var(--color-walnut);
    --nav-olive: var(--focus-color);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    margin: 0;
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
    line-height: 1.6;
    color: var(--color-body);
    background: var(--color-page);
}

a {
    color: var(--color-text);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition:
        color var(--transition-fast),
        text-decoration-color var(--transition-fast);
}

a:hover {
    color: var(--color-walnut);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text);
    line-height: 1.12;
    text-wrap: balance;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

:focus-visible {
    outline: var(--focus-width) solid var(--focus-color);
    outline-offset: var(--focus-offset);
}

::selection {
    background: var(--color-brass-pale);
    color: var(--color-text);
}

.container {
    width: min(var(--content-width), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(190, 187, 181, 0.74);
    background: rgba(232, 232, 228, 0.97);
    color: var(--nav-text);
    animation: shared-header-enter 480ms
        cubic-bezier(0.22, 1, 0.36, 1) both;
    transition:
        background-color 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease;
}

@supports (backdrop-filter: blur(12px)) {
    .site-header {
        background: rgba(232, 232, 228, 0.91);
        backdrop-filter: blur(12px);
    }
}

.site-header.is-scrolled {
    border-bottom-color: var(--nav-border);
    background: rgba(232, 232, 228, 0.98);
    box-shadow: 0 10px 28px rgba(54, 51, 47, 0.08);
}

.nav-container {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 44px);
}

.site-wordmark {
    display: grid;
    grid-template-columns: 2px auto;
    gap: 13px;
    align-items: stretch;
    flex: 0 0 auto;
    color: var(--nav-text);
    text-decoration: none;
}

.wordmark-rule {
    display: block;
    width: 2px;
    background:
        linear-gradient(
            to bottom,
            var(--nav-brass) 0 62%,
            var(--nav-walnut) 62% 100%
        );
}

.wordmark-copy {
    display: grid;
    line-height: 1;
}

.wordmark-primary {
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0.105em;
    text-transform: uppercase;
}

.wordmark-secondary {
    margin-top: 6px;
    color: var(--nav-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wordmark-owner {
    margin-top: 5px;
    color: var(--nav-walnut);
    font-size: 0.61rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.site-wordmark:focus-visible,
.main-nav a:focus-visible,
.nav-text-action:focus-visible,
.footer-admin-link:focus-visible,
.menu-button:focus-visible {
    outline: 3px solid var(--nav-olive);
    outline-offset: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.4vw, 34px);
    min-width: 0;
}

.public-nav-links,
.internal-nav {
    display: flex;
    align-items: center;
}

.public-nav-links {
    gap: clamp(17px, 2vw, 29px);
}

.main-nav a,
.nav-text-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--nav-muted);
    font: inherit;
    font-size: 0.81rem;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-decoration: none;
    cursor: pointer;
    transition: color 200ms ease;
}

.public-nav-links a::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 5px;
    left: 1px;
    height: 2px;
    background: var(--nav-brass);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover,
.nav-text-action:hover {
    color: var(--nav-text);
}

.public-nav-links a:hover::after,
.public-nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

.public-nav-links a[aria-current="page"] {
    color: var(--nav-text);
}

.internal-nav {
    gap: 15px;
    padding-left: 18px;
    border-left: 1px solid var(--nav-border);
}

.internal-nav-label {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 7px;
    border: 1px solid var(--nav-brass);
    color: var(--nav-walnut);
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.internal-nav a,
.nav-text-action {
    font-size: 0.72rem;
    letter-spacing: 0.035em;
}

.nav-logout-form {
    display: flex;
    margin: 0;
}

.nav-text-action {
    color: var(--nav-walnut);
}

.menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 48px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--nav-text);
    font: inherit;
    cursor: pointer;
    transition:
        border-color 200ms ease,
        background-color 200ms ease;
}

.menu-button:hover {
    border-color: var(--nav-border);
    background: rgba(216, 212, 202, 0.45);
}

.menu-button-text {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.menu-button-icon {
    position: relative;
    display: grid;
    gap: 6px;
    width: 20px;
}

.menu-button-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform-origin: center;
    transition: transform 220ms ease;
}

.menu-button[aria-expanded="true"] .menu-button-icon span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button-icon span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

@keyframes shared-header-enter {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

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

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    
    background:
        linear-gradient(
            rgba(20, 22, 24, 0.55),
            rgba(20, 22, 24, 0.55)
        ),
        url("../images/hero-background.jpeg.webp") center/cover no-repeat;
    
    color: var(--text-light);
}

.hero-content {
    max-width: 790px;
    padding-top: 90px;
    padding-bottom: 90px;
}

.eyebrow,
.section-label {
    margin-bottom: 14px;
    color: #bdbdbd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.6rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 640px;
    margin: 30px 0 36px;
    color: #dddddd;
    font-size: 1.12rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        background var(--transition-base),
        color var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.button:hover {
    transform: translateY(-2px);
}

.primary-button {
    border-color: var(--color-brass);
    background: var(--color-brass);
    color: var(--color-text);
}

.primary-button:hover {
    border-color: var(--color-brass-hover);
    background: var(--color-brass-hover);
    color: var(--color-text);
}

.secondary-button {
    border-color: rgba(255, 255, 255, 0.65);
    background: transparent;
    color: white;
}

.secondary-button:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
}

.section {
    padding: var(--section-space) 0;
}

.section h2 {
    max-width: 760px;
    margin-top: 0;
    margin-bottom: 46px;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    min-height: 220px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.09);
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.25rem;
}

.service-card p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.alternate-section {
    background: var(--surface-dark);
    color: white;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.about-layout h2 {
    margin-bottom: 0;
}

.about-layout p {
    color: #c9c9c9;
    font-size: 1.06rem;
}

.contact-section {
    background: var(--surface-muted);
    text-align: center;
}

.contact-content {
    max-width: 760px;
}

.contact-section h2 {
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 22px;
}

.contact-section p {
    color: var(--text-muted);
}

.contact-actions {
    justify-content: center;
    margin-top: 30px;
}

.contact-section .primary-button {
    background: var(--accent);
    color: white;
}

.contact-section .primary-button:hover {
    background: var(--accent-hover);
}

.contact-section .secondary-button {
    border-color: var(--accent);
    color: var(--accent);
}

.contact-section .secondary-button:hover {
    background: var(--accent);
    color: white;
}

.placeholder-note {
    margin-top: 24px;
    font-size: 0.85rem;
}

.site-footer {
    padding: 28px 0;
    border-top: 1px solid rgba(190, 187, 181, 0.2);
    background: #36332f;
    color: #bebbb5;
}

.footer-content {
    width: min(1180px, calc(100% - 40px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    font-size: 0.82rem;
}

.footer-branding {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 34px;
}

.footer-branding p {
    margin: 0;
}

.footer-utility {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 22px;
    border-left: 1px solid rgba(190, 187, 181, 0.28);
}

.footer-utility > span {
    color: #8b857a;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.footer-admin-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #e8e8e4;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-decoration-color: #b89559;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.footer-admin-link span {
    color: #eddea9;
    transition: transform 200ms ease;
}

.footer-admin-link:hover {
    color: #eddea9;
}

.footer-admin-link:hover span {
    transform: translateX(3px);
}

@media (max-width: 960px) {
    .menu-button {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% - 1px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 18px;
        max-height: calc(100vh - 82px);
        overflow-y: auto;
        padding: 22px;
        border: 1px solid var(--nav-border);
        border-top: 2px solid var(--nav-brass);
        background: var(--nav-bg-open);
        box-shadow: 0 20px 42px rgba(54, 51, 47, 0.16);
    }

    .main-nav.open {
        display: flex;
    }

    .public-nav-links,
    .internal-nav {
        flex-direction: column;
        flex-shrink: 0;
        align-items: stretch;
        gap: 0;
    }

    .public-nav-links a,
    .internal-nav a,
    .nav-text-action {
        width: 100%;
        min-height: 50px;
        padding: 10px 2px;
        border-bottom: 1px solid rgba(190, 187, 181, 0.76);
        font-size: 0.84rem;
    }

    .public-nav-links a::before {
        content: "";
        width: 0;
        height: 1px;
        margin-right: 0;
        background: var(--nav-brass);
        transition:
            width 220ms ease,
            margin-right 220ms ease;
    }

    .public-nav-links a[aria-current="page"]::before {
        width: 18px;
        margin-right: 9px;
    }

    .public-nav-links a::after {
        bottom: 3px;
    }

    .internal-nav {
        position: relative;
        padding: 31px 0 0;
        border-top: 1px solid var(--nav-walnut);
        border-left: 0;
    }

    .internal-nav-label {
        position: absolute;
        top: 8px;
        left: 0;
        border: 0;
        padding: 0;
    }

    .nav-logout-form {
        width: 100%;
    }

    .nav-text-action {
        justify-content: flex-start;
        border-bottom: 0;
        color: var(--nav-walnut);
    }
}

@media (max-width: 800px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

}

@media (max-width: 560px) {
    .container {
        width: min(var(--max-width), calc(100% - 28px));
    }

    .nav-container {
        width: min(1180px, calc(100% - 28px));
        gap: 12px;
    }

    .site-wordmark {
        gap: 10px;
    }

    .wordmark-primary {
        font-size: 0.95rem;
    }

    .wordmark-secondary {
        font-size: 0.59rem;
        letter-spacing: 0.13em;
    }

    .wordmark-owner {
        font-size: 0.56rem;
    }

    .menu-button-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .hero {
        min-height: 610px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section {
        padding: 78px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        width: min(1180px, calc(100% - 28px));
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .footer-branding {
        display: grid;
        gap: 4px;
    }

    .footer-utility {
        width: 100%;
        justify-content: space-between;
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid rgba(190, 187, 181, 0.28);
        border-left: 0;
    }

}

.gallery-intro {
    max-width: 650px;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 220px;

    background:
        repeating-linear-gradient(
            45deg,
            #ececec,
            #ececec 15px,
            #dddddd 15px,
            #dddddd 30px
        );

    color: #777;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gallery-item h3 {
    margin: 20px 20px 10px;
}

.gallery-item p {
    margin: 0 20px 20px;
    color: var(--text-muted);
}

.form-submit {
    min-width: 220px;
    border-color: var(--color-brass);
    background: var(--color-brass);
    color: var(--color-text);
    cursor: pointer;
}

.form-submit:hover {
    border-color: var(--color-brass-hover);
    background: var(--color-brass-hover);
}

.form-submit:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none;
}

.form-error {
    min-height: 24px;
    margin-top: 12px;
    color: var(--color-error);
    font-weight: 600;
}

.form-message {
    display: none;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    line-height: 1.6;
}

.form-message.success {
    display: block;
    border-color: var(--color-success);
    background: rgba(167, 170, 133, 0.2);
    color: var(--color-success);
}

.form-message.error {
    display: block;
    border-color: var(--color-error-soft);
    background: rgba(185, 107, 107, 0.12);
    color: var(--color-error);
}

.alert,
.empty-state {
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-surface-alt);
    color: var(--color-body);
}

.alert-success {
    border-color: var(--color-success);
    color: var(--color-success);
}

.alert-error {
    border-color: var(--color-error-soft);
    color: var(--color-error);
}

.empty-state {
    text-align: center;
}

@media (max-width: 560px) {
    .form-submit {
        width: 100%;
    }
}

.admin-section {
    padding: 3rem 1rem;
}

.admin-section h1 {
    margin-bottom: 0.5rem;
}

.admin-section h2 {
    margin-bottom: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem;
    border: 1px solid #dddddd;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #f3f3f3;
}

td form {
    margin: 0;
}

td select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}

.status-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.status-badge {
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 90px;
    text-align: center;
}

.status-new {
    background: #3498db;
}

.status-contacted {
    background: #f39c12;
}

.status-accepted {
    background: #2ecc71;
}

.status-rejected {
    background: #e74c3c;
}

/* CRM Authentication and Notification Preferences */

.auth-page {
    min-height: calc(100vh - 78px);
    padding: 80px 0 100px;
    background:
        linear-gradient(
            to bottom,
            #eeeeee 0,
            var(--background) 260px
        );
}

.auth-container {
    max-width: 560px;
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-heading h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 4rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.auth-heading > p:last-child {
    margin: 18px 0 0;
    color: var(--text-muted);
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-form .detail-save-button {
    width: 100%;
    margin-top: 4px;
}

.auth-error {
    border-color: #c98f8f;
    background: #fff1f1;
    color: #7c2626;
}

.auth-setup-link {
    margin-top: 24px;
    text-align: center;
}

.auth-setup-link p {
    color: var(--text-muted);
}

.preference-warning {
    border-color: #c9ad6d;
    background: #fff8e8;
    color: #6b5019;
}

.preference-list {
    display: grid;
    gap: 12px;
}

.preference-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--surface-muted);
    cursor: pointer;
}

.preference-option > span {
    display: grid;
    gap: 4px;
}

.preference-option small {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.preference-option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    accent-color: var(--surface-dark);
}

.crm-user-list {
    display: grid;
    gap: 12px;
}

.crm-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 18px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
}

.crm-user-row > div:first-child {
    display: grid;
    gap: 4px;
}

.crm-user-row > div:first-child span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.crm-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crm-user-actions .detail-secondary-button {
    min-width: 0;
    padding: 9px 13px;
}

.user-create-form,
.user-list-panel,
.email-test-form,
.password-audit-panel {
    margin-top: 18px;
}

.password-reset-control {
    position: relative;
}

.password-reset-control summary {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.password-reset-form {
    display: grid;
    gap: 8px;
    width: min(310px, 78vw);
    padding: 14px;
    margin-top: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.password-reset-form label {
    font-size: 0.78rem;
    font-weight: 700;
}

.password-reset-form input {
    min-width: 0;
}

.password-reset-form .detail-save-button {
    padding: 10px 12px;
    margin-top: 4px;
}

.password-audit-list {
    display: grid;
    gap: 10px;
}

.password-audit-list p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px;
    margin: 0;
    border: 1px solid var(--border);
    background: var(--surface-muted);
}

.password-audit-list span {
    color: var(--text-muted);
    font-size: 0.83rem;
    white-space: nowrap;
}

.email-test-form .detail-save-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.email-test-help {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    text-align: right;
}

.user-admin-option {
    margin-top: 22px;
}

@media (max-width: 700px) {
    .auth-page {
        padding: 52px 0 72px;
    }

    .preference-option,
    .crm-user-row,
    .crm-user-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .crm-user-actions,
    .crm-user-actions .detail-secondary-button {
        width: 100%;
    }

    .password-reset-control,
    .password-audit-list p {
        width: 100%;
    }

    .password-audit-list p {
        align-items: flex-start;
        flex-direction: column;
    }
}

.status-scheduled {
    background: #3498db;
}

.status-in-progress {
    background: #2ecc71;
}

.status-on-hold {
    background: #f39c12;
}

.status-completed {
    background: #555555;
}

.status-archived {
    background: #333333;
}

/* Estimate Detail Page */

.estimate-detail-page {
    min-height: calc(100vh - 78px);
    padding: 72px 0 100px;
    background:
        linear-gradient(
            to bottom,
            #eeeeee 0,
            var(--background) 260px
        );
}

.estimate-detail-container {
    max-width: 980px;
}

.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

.detail-back-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.detail-back-link:hover {
    color: var(--text);
}

.detail-heading {
    margin-bottom: 38px;
}

.detail-eyebrow {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.detail-heading h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.detail-subtitle {
    max-width: 600px;
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.detail-form {
    display: grid;
    gap: 18px;
}

.detail-panel {
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.detail-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.detail-section-heading > span {
    color: #999999;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.detail-section-heading h2 {
    margin: 0 0 5px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.detail-section-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.detail-field {
    display: flex;
    flex-direction: column;
}

.detail-field-full {
    grid-column: 1 / -1;
}

.detail-field label,
.detail-readonly-label {
    margin-bottom: 9px;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-field input,
.detail-field select {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #fafafa;
    color: var(--text);
    font: inherit;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.detail-field input:hover,
.detail-field select:hover {
    border-color: #adadad;
    background: white;
}

.detail-field input:focus,
.detail-field select:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
}

.detail-address-small {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
}

.price-input {
    display: flex;
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #fafafa;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.price-input:focus-within {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
}

.price-input span {
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-right: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 800;
}

.price-input input {
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.price-input input:focus {
    box-shadow: none;
}

.detail-readonly-block {
    padding: 17px 18px;
    border-left: 3px solid var(--accent);
    background: var(--surface-muted);
}

.detail-readonly-block p {
    margin: 4px 0 0;
    color: var(--text);
    white-space: pre-wrap;
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 10px;
}

.detail-secondary-button,
.detail-save-button {
    min-width: 150px;
    padding: 13px 22px;
    border-radius: 3px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.detail-secondary-button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.detail-save-button {
    border: 1px solid var(--surface-dark);
    background: var(--surface-dark);
    color: white;
}

.detail-secondary-button:hover,
.detail-save-button:hover {
    transform: translateY(-2px);
}

.detail-secondary-button:hover {
    border-color: var(--accent);
}

.detail-save-button:hover {
    background: #111111;
}

.archive-detail-form {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    text-align: right;
}

.archive-detail-form p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.activity-panel {
    margin-top: 28px;
}

.activity-composer {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--surface-muted);
}

.activity-author-field,
.activity-message-field,
.activity-photo-upload {
    display: flex;
    flex-direction: column;
}

.activity-author-field {
    max-width: 280px;
}

.activity-composer label {
    margin-bottom: 9px;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.activity-composer input,
.activity-composer textarea,
.activity-composer select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #fafafa;
    color: var(--text);
    font: inherit;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.activity-composer input {
    min-height: 52px;
}

.activity-composer textarea {
    min-height: 112px;
    resize: vertical;
}

.activity-composer input:hover,
.activity-composer textarea:hover,
.activity-composer select:hover {
    border-color: #adadad;
    background: white;
}

.activity-composer input:focus,
.activity-composer textarea:focus,
.activity-composer select:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
}

.activity-photo-upload > input[type="file"] {
    min-height: auto;
    padding: 11px;
    background: white;
}

.activity-photo-upload > input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 13px;
    border: 0;
    border-radius: 2px;
    background: var(--surface-dark);
    color: white;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.activity-photo-upload > p,
.activity-photo-upload noscript p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.activity-photo-details {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.activity-photo-details:empty {
    display: none;
}

.activity-photo-detail-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) 150px minmax(180px, 1fr);
    align-items: end;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: white;
}

.activity-photo-detail-row > strong {
    align-self: center;
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-photo-detail-row label {
    margin: 0;
}

.activity-photo-detail-row select,
.activity-photo-detail-row input {
    min-height: 44px;
    margin-top: 7px;
    padding: 9px 11px;
}

.activity-composer-actions,
.activity-list-heading,
.activity-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.activity-composer-actions > span,
.activity-list-heading > span,
.activity-entry-header time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.activity-list-heading {
    margin: 34px 0 20px;
}

.activity-list-heading h3 {
    margin: 0;
    font-size: 1rem;
}

.activity-timeline {
    position: relative;
    display: grid;
    gap: 16px;
}

.activity-timeline::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 7px;
    width: 1px;
    background: var(--border);
    content: "";
}

.activity-entry {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 15px;
}

.activity-marker {
    z-index: 1;
    width: 15px;
    height: 15px;
    margin-top: 18px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--border);
}

.activity-entry-system .activity-marker {
    background: #a1a1a1;
}

.activity-card {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--surface);
}

.activity-entry-note .activity-card {
    border-left: 3px solid var(--accent);
}

.activity-entry-header > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.activity-type {
    padding: 3px 7px;
    border-radius: 2px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.activity-card p {
    margin: 10px 0 0;
    white-space: pre-wrap;
}

.activity-photo-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(145px, 1fr)
    );
    gap: 14px;
    margin-top: 18px;
}

.activity-photo {
    min-width: 0;
    margin: 0;
}

.activity-photo-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--surface-muted);
    cursor: zoom-in;
    overflow: hidden;
}

.activity-photo-button img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.activity-photo-button:hover img {
    transform: scale(1.035);
}

.activity-photo-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.2);
}

.activity-photo-category {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 5px 8px;
    border-radius: 2px;
    background: rgba(20, 20, 20, 0.82);
    color: white;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.activity-photo figcaption {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.activity-photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.activity-photo-viewer[hidden] {
    display: none;
}

.activity-photo-viewer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: rgba(10, 10, 10, 0.88);
    cursor: zoom-out;
}

.activity-photo-viewer-dialog {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    max-height: calc(100vh - 56px);
    border-radius: 4px;
    background: #111111;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    overflow: auto;
}

.activity-photo-viewer-dialog > img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 190px);
    background: #080808;
    object-fit: contain;
}

.activity-photo-viewer-close {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.72);
    color: white;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.activity-photo-viewer-close:focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
}

.activity-photo-viewer-copy {
    padding: 20px 24px 23px;
    color: white;
}

.activity-photo-viewer-copy span {
    color: #bbbbbb;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.activity-photo-viewer-copy h2 {
    margin: 5px 0 0;
    font-size: 1.25rem;
}

.activity-photo-viewer-copy p {
    margin: 6px 0 0;
    color: #d3d3d3;
}

.activity-empty-state {
    padding: 28px;
    border: 1px dashed var(--border);
    text-align: center;
}

.activity-empty-state p {
    margin: 6px 0 0;
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .estimate-detail-page {
        padding: 48px 0 72px;
    }

    .detail-panel {
        padding: 28px 22px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-field-full {
        grid-column: auto;
    }

    .detail-address-small {
        grid-template-columns: 1fr 1fr;
    }

    .detail-actions {
        flex-direction: column-reverse;
    }

    .detail-secondary-button,
    .detail-save-button {
        width: 100%;
    }

    .activity-author-field {
        max-width: none;
    }

    .activity-composer-actions,
    .activity-entry-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-photo-detail-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

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

    .activity-photo-viewer {
        padding: 14px;
    }

    .activity-photo-viewer-dialog {
        max-height: calc(100vh - 28px);
    }

    .activity-photo-viewer-dialog > img {
        max-height: calc(100vh - 165px);
    }
}

@media (max-width: 460px) {
    .detail-address-small {
        grid-template-columns: 1fr;
    }

    .detail-heading h1 {
        font-size: 2.5rem;
    }

    .activity-photo-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern Admin Dashboard */

.admin-dashboard-page {
    min-height: calc(100vh - 78px);
    padding: 72px 0 100px;
    background:
        linear-gradient(
            to bottom,
            #eeeeee 0,
            var(--background) 260px
        );
}

.admin-dashboard-container {
    max-width: 1180px;
}

.admin-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 38px;
}

.admin-eyebrow,
.admin-table-label {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.admin-dashboard-header h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.admin-dashboard-subtitle {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.admin-summary-cards {
    display: flex;
    gap: 12px;
}

.admin-summary-card {
    flex: 1;
    min-width: 170px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.admin-summary-link {
    color: inherit;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.admin-summary-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.admin-summary-link:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.14);
}

.admin-summary-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-summary-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.admin-search-panel {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.admin-search-field {
    flex: 1;
}

.admin-search-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-search-field input {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #fafafa;
    color: var(--text);
    font: inherit;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-search-field input:hover {
    border-color: #adadad;
    background: white;
}

.admin-search-field input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
}

.admin-search-actions {
    display: flex;
    gap: 10px;
}

.admin-search-button,
.admin-clear-button,
.admin-empty-button {
    min-height: 52px;
    padding: 13px 22px;
    border-radius: 3px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.admin-search-button {
    border: 1px solid var(--surface-dark);
    background: var(--surface-dark);
    color: white;
}

.admin-clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.admin-search-button:hover,
.admin-clear-button:hover,
.admin-empty-button:hover {
    transform: translateY(-2px);
}

.admin-search-button:hover {
    background: #111111;
}

.admin-clear-button:hover {
    border-color: var(--accent);
}

.admin-search-result {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.admin-notice {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #6f9274;
    border-radius: 4px;
    background: #edf5ee;
    color: #294f2e;
    font-weight: 700;
}

.admin-section-notice {
    margin-top: 28px;
}

#active-jobs,
#past-jobs {
    margin-top: 28px;
}

.admin-section-notice + #active-jobs,
.admin-section-notice + #past-jobs {
    margin-top: 0;
}

.admin-table-panel {
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-table-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px 24px;
    border-bottom: 1px solid var(--border);
}

.admin-table-header h2 {
    margin: 0;
    font-size: 1.45rem;
}

.admin-table-header > span {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.admin-table-scroll {
    overflow-x: auto;
}

.modern-admin-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
}

.modern-admin-table th {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: #f7f7f7;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.modern-admin-table td {
    padding: 20px 18px;
    border-bottom: 1px solid #e7e7e7;
    vertical-align: middle;
}

.modern-admin-table tbody tr {
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.modern-admin-table tbody tr:hover {
    background: #fafafa;
    box-shadow: inset 3px 0 0 var(--accent);
}

.modern-admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.estimate-id {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.admin-customer-link {
    display: block;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.admin-customer-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.admin-contact-preference {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.admin-contact-link {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
}

.admin-contact-link:hover {
    text-decoration: underline;
}

.admin-email-link {
    max-width: 220px;
    margin-top: 4px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-services-text {
    display: block;
    max-width: 210px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.admin-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.admin-status-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-status-control form {
    margin: 0;
}

.admin-status-control select {
    min-width: 130px;
    padding: 9px 32px 9px 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: white;
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}

.admin-status-control select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
}

.admin-empty-state {
    padding: 70px 30px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.admin-empty-state > span {
    display: block;
    margin-bottom: 12px;
    color: #aaaaaa;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.admin-empty-state h2 {
    margin: 0 0 10px;
    font-size: 1.6rem;
}

.admin-empty-state p {
    margin: 0;
    color: var(--text-muted);
}

.admin-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    border: 1px solid var(--surface-dark);
    background: var(--surface-dark);
    color: white;
}

@media (max-width: 800px) {
    .admin-dashboard-page {
        padding: 48px 0 72px;
    }

    .admin-dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-summary-card {
        min-width: 0;
    }

    .admin-search-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-search-actions {
        width: 100%;
    }

    .admin-search-button,
    .admin-clear-button {
        flex: 1;
    }
}

@media (max-width: 560px) {
    .admin-dashboard-header h1 {
        font-size: 2.7rem;
    }

    .admin-summary-cards {
        flex-direction: column;
    }

    .admin-table-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 20px;
    }

    .admin-search-actions {
        flex-direction: column;
    }

    .admin-search-button,
    .admin-clear-button {
        width: 100%;
    }
}

/* Admin Delete Action */

.admin-actions-heading,
.admin-actions-cell {
    width: 72px;
    text-align: center;
}

.admin-delete-icon,
.job-delete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: #888888;
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.admin-delete-icon svg,
.job-delete-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-delete-icon:hover,
.job-delete-icon:hover {
    border-color: #d9aaaa;
    background: #fff4f4;
    color: #9b2f2f;
    transform: translateY(-1px);
}

.admin-delete-icon:focus-visible,
.job-delete-icon:focus-visible {
    outline: none;
    border-color: #9b2f2f;
    box-shadow: 0 0 0 3px rgba(155, 47, 47, 0.14);
}

/* Admin Estimate Action Buttons */

.admin-actions-heading,
.admin-actions-cell {
    width: auto;
    min-width: 210px;
    text-align: right;
}

.admin-action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.admin-convert-form {
    margin: 0;
}

.admin-view-button,
.admin-convert-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.admin-view-button {
    border: 1px solid #c7c7c7;
    background: #ffffff;
    color: #333333;
}

.admin-view-button:hover {
    border-color: #777777;
    background: #f4f4f4;
    color: #111111;
    transform: translateY(-1px);
}

.admin-convert-button {
    border: 1px solid var(--surface-dark);
    background: var(--surface-dark);
    color: #ffffff;
}

.admin-convert-button:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-1px);
}

.admin-view-button:focus-visible,
.admin-convert-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.15);
}

.admin-action-buttons .admin-delete-icon,
.admin-action-buttons .job-delete-icon {
    flex: 0 0 38px;
}

@media (max-width: 900px) {
    .admin-actions-heading,
    .admin-actions-cell {
        min-width: 180px;
    }

    .admin-view-button,
    .admin-convert-button {
        padding: 0 11px;
        font-size: 0.72rem;
    }
}

/* Delete Confirmation Modal */

body.modal-open {
    overflow: hidden;
}

.delete-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.delete-modal.open {
    display: flex;
}

.delete-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.62);
    backdrop-filter: blur(4px);
}

.delete-modal-dialog {
    position: relative;
    width: min(100%, 470px);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    text-align: center;
    animation: delete-modal-enter 0.2s ease;
}

@keyframes delete-modal-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

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

.delete-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 22px;
    border: 1px solid #e2baba;
    border-radius: 50%;
    background: #fff3f3;
    color: #962f2f;
}

.delete-modal-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.delete-modal-eyebrow {
    margin: 0 0 9px;
    color: #962f2f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.delete-modal-dialog h2 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
}

.delete-modal-message {
    margin: 18px auto 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.delete-modal-message strong {
    color: var(--text);
}

.delete-modal-warning {
    margin: 10px 0 0;
    color: #8c3030;
    font-size: 0.87rem;
    font-weight: 700;
}

.delete-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.delete-modal-actions form {
    margin: 0;
}

.delete-modal-cancel,
.delete-modal-confirm {
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 3px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.delete-modal-cancel {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.delete-modal-confirm {
    border: 1px solid #8f2f2f;
    background: #8f2f2f;
    color: white;
}

.delete-modal-cancel:hover,
.delete-modal-confirm:hover {
    transform: translateY(-2px);
}

.delete-modal-cancel:hover {
    border-color: var(--accent);
}

.delete-modal-confirm:hover {
    border-color: #6f1f1f;
    background: #6f1f1f;
}

.delete-modal-cancel:focus-visible,
.delete-modal-confirm:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.14);
}

@media (max-width: 520px) {
    .delete-modal-dialog {
        padding: 32px 22px;
    }

    .delete-modal-actions {
        flex-direction: column-reverse;
    }

    .delete-modal-actions form,
    .delete-modal-cancel,
    .delete-modal-confirm {
        width: 100%;
    }
}

/* Homepage Facelift */

.home-page {
    --home-bg: var(--color-page);
    --home-bg-alt: var(--color-surface-alt);
    --home-heading: var(--color-text);
    --home-text: var(--color-body);
    --home-muted: var(--color-muted);
    --home-border: var(--color-border);
    --home-brass: var(--color-brass);
    --home-brass-dark: var(--color-brass-hover);
    --home-brass-deep: var(--color-brass-deep);
    --home-brass-pale: var(--color-brass-pale);
    --home-walnut: var(--color-walnut);
    --home-walnut-dark: var(--color-walnut-dark);
    --home-olive: var(--focus-color);
    --home-olive-soft: var(--color-success-soft);
    --home-radius: var(--radius-large);
    --home-radius-small: var(--radius-medium);
    --home-shadow: var(--shadow-raised);
    --home-shadow-soft: var(--shadow-soft);
    --home-width: var(--content-width);
    --home-space-section: var(--section-space);

    overflow-x: clip;
    background: var(--home-bg);
    color: var(--home-text);
}

.home-page .container {
    width: min(var(--home-width), calc(100% - 32px));
}

.home-page section[id] {
    scroll-margin-top: 92px;
}

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

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
    overflow-wrap: break-word;
}

.home-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--home-muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-eyebrow > span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--home-brass);
}

.home-eyebrow::before {
    content: "";
    flex: 0 0 30px;
    height: 1px;
    background: var(--home-brass);
}

.home-eyebrow-light {
    color: var(--home-brass-pale);
}

.facelift-hero {
    position: relative;
    padding: clamp(3rem, 10vw, 5rem) 0 clamp(4rem, 12vw, 6rem);
    background:
        linear-gradient(
            to right,
            transparent 0 calc(50% - 1px),
            rgba(190, 187, 181, 0.34) calc(50% - 1px) 50%,
            transparent 50%
        ),
        var(--home-bg);
}

.facelift-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(54px, 12vw, 170px);
    height: clamp(54px, 12vw, 170px);
    border-top: 1px solid rgba(184, 149, 89, 0.55);
    border-left: 1px solid rgba(184, 149, 89, 0.55);
    pointer-events: none;
}

.facelift-hero-layout {
    display: grid;
    gap: 42px;
}

.facelift-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 660px;
}

.facelift-hero-copy h1 {
    max-width: 680px;
    margin: 0;
    color: var(--home-heading);
    font-size: clamp(3rem, 14vw, 6.2rem);
    font-weight: 800;
    line-height: 0.93;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.facelift-hero-copy h1 em {
    display: inline-block;
    color: var(--home-walnut);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.02em;
    font-weight: 400;
    letter-spacing: -0.045em;
}

.facelift-hero-text {
    max-width: 590px;
    margin: 26px 0 0;
    color: var(--home-text);
    font-size: clamp(1rem, 3.8vw, 1.17rem);
    line-height: 1.7;
}

.facelift-hero-actions,
.home-final-actions {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: var(--home-radius-small);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.home-button:hover {
    transform: translateY(-2px);
}

.home-button:active {
    transform: translateY(0);
}

.home-button-primary {
    border-color: var(--home-brass);
    background: var(--home-brass);
    color: var(--home-heading);
    box-shadow: 0 14px 30px rgba(154, 121, 62, 0.2);
}

.home-button-primary:hover {
    border-color: var(--home-brass-dark);
    background: var(--home-brass-dark);
    box-shadow: 0 17px 34px rgba(154, 121, 62, 0.25);
}

.home-button-secondary {
    border-color: var(--home-heading);
    background: transparent;
    color: var(--home-heading);
}

.home-button-secondary:hover {
    background: var(--home-heading);
    color: var(--home-bg);
}

.home-button-dark {
    border-color: var(--home-bg-alt);
    background: transparent;
    color: var(--home-bg);
}

.home-button-dark:hover {
    border-color: var(--home-bg);
    background: var(--home-bg);
    color: var(--home-heading);
}

.home-button:focus-visible,
.home-text-link:focus-visible,
.facelift-hero-contact a:focus-visible,
.service-feature a:focus-visible,
.service-editorial-list a:focus-visible {
    outline: 3px solid var(--home-olive);
    outline-offset: 4px;
}

.facelift-hero-contact {
    display: grid;
    gap: 4px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--home-border);
    color: var(--home-muted);
    font-size: 0.88rem;
}

.facelift-hero-contact a {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    width: fit-content;
    color: var(--home-heading);
    font-weight: 800;
    text-decoration-color: var(--home-brass);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.facelift-hero-contact strong {
    color: var(--home-walnut);
}

.facelift-hero-visual {
    position: relative;
    min-width: 0;
    margin: 0 0 22px;
}

.facelift-hero-image-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
}

.facelift-hero-image-frame::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(237, 222, 169, 0.62);
    border-radius: 10px;
    pointer-events: none;
}

.facelift-hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% center;
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.facelift-hero-visual:hover img {
    transform: scale(1.025);
}

.facelift-hero-visual figcaption {
    position: absolute;
    right: 14px;
    bottom: -22px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 14px 16px;
    border-radius: var(--home-radius-small);
    background: var(--home-heading);
    color: var(--home-bg);
    box-shadow: var(--home-shadow-soft);
}

.facelift-hero-visual figcaption span {
    color: var(--home-brass-pale);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.facelift-hero-visual figcaption strong {
    font-size: 0.82rem;
}

.facelift-hero-monogram {
    position: absolute;
    top: -26px;
    right: -2px;
    z-index: -1;
    color: var(--home-bg-alt);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.5rem, 18vw, 7.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.09em;
}

.facelift-hero-monogram span {
    color: var(--home-brass-pale);
}

.trust-ledger {
    padding: clamp(4.25rem, 11vw, 7rem) 0;
    background: var(--home-heading);
    color: var(--home-bg);
}

.trust-ledger-layout {
    display: grid;
    gap: 42px;
}

.trust-ledger-heading {
    max-width: 530px;
}

.trust-ledger-heading h2 {
    margin: 0;
    color: var(--home-bg);
    font-size: clamp(2.15rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.trust-ledger-list {
    display: grid;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(190, 187, 181, 0.34);
    list-style: none;
}

.trust-ledger-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    min-width: 0;
    padding: 22px 0;
    border-top: 1px solid rgba(190, 187, 181, 0.34);
}

.trust-ledger-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--home-olive);
    border-radius: 50%;
    color: var(--home-olive-soft);
    font-size: 0.68rem;
    font-weight: 900;
}

.trust-ledger-list h3 {
    margin: 1px 0 7px;
    color: var(--home-bg);
    font-size: 1.05rem;
    line-height: 1.25;
}

.trust-ledger-list p {
    margin: 0;
    color: var(--home-bg-alt);
    font-size: 0.9rem;
    line-height: 1.6;
}

.home-services {
    padding: var(--home-space-section) 0;
    background: var(--home-bg);
}

.home-section-intro {
    display: grid;
    gap: 24px;
}

.home-section-intro h2,
.home-about h2,
.home-final-cta h2 {
    max-width: 760px;
    margin: 0;
    color: var(--home-heading);
    font-size: clamp(2.4rem, 9vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.home-section-summary {
    max-width: 570px;
}

.home-section-summary > p {
    margin: 0;
    color: var(--home-text);
    font-size: 1rem;
    line-height: 1.75;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: 20px;
    color: var(--home-heading);
    font-weight: 800;
    text-decoration-color: var(--home-brass);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.home-text-link span,
.service-feature > a span {
    color: var(--home-brass-deep);
    transition: transform 220ms ease;
}

.home-text-link:hover span,
.service-feature > a:hover span {
    transform: translateX(4px);
}

.service-composition {
    display: grid;
    gap: 16px;
    margin-top: clamp(2.5rem, 8vw, 5rem);
}

.service-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 470px;
    overflow: hidden;
    padding: clamp(1.75rem, 7vw, 3.25rem);
    border-radius: var(--home-radius);
    background: var(--home-walnut);
    color: var(--home-bg);
}

.service-feature::before,
.service-feature::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(237, 222, 169, 0.26);
    border-radius: 50%;
}

.service-feature::after {
    right: 12px;
    bottom: 12px;
    width: 105px;
    height: 105px;
}

.service-feature-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(237, 222, 169, 0.35);
}

.service-feature-topline span {
    color: var(--home-brass-pale);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.service-feature-topline p {
    margin: 0;
    color: var(--home-bg-alt);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: right;
    text-transform: uppercase;
}

.service-feature-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: auto 0;
    padding: 42px 0;
}

.service-feature h3 {
    margin: 0;
    color: var(--home-bg);
    font-size: clamp(2.25rem, 9vw, 4.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.service-feature-copy p {
    max-width: 480px;
    margin: 22px 0 0;
    color: var(--home-bg-alt);
    line-height: 1.75;
}

.service-feature > a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--home-brass-pale);
    font-weight: 800;
    text-underline-offset: 5px;
}

.service-editorial-list {
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: var(--home-bg-alt);
}

.service-editorial-list article {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: start;
    min-width: 0;
    padding: clamp(1.5rem, 6vw, 2.5rem);
}

.service-editorial-list article + article {
    border-top: 1px solid var(--home-border);
}

.service-editorial-number {
    padding-top: 2px;
    color: var(--home-brass-deep);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.service-editorial-kicker {
    margin: 0 0 9px;
    color: var(--home-muted);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-editorial-list h3 {
    margin: 0;
    color: var(--home-heading);
    font-size: clamp(1.45rem, 5vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.service-editorial-list article p:last-child {
    margin: 14px 0 0;
    color: var(--home-text);
    font-size: 0.94rem;
    line-height: 1.7;
}

.service-editorial-list article > a {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--home-heading);
    border-radius: 50%;
    color: var(--home-heading);
    font-size: 1.2rem;
    text-decoration: none;
    transition:
        background-color 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}

.service-editorial-list article > a:hover {
    background: var(--home-heading);
    color: var(--home-bg);
    transform: translateX(3px);
}

.service-index {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 26px 0 0;
    padding: 20px 0;
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
    list-style: none;
}

.service-index li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--home-text);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.service-index li::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--home-olive);
}

.craftsmanship-moment {
    padding: var(--home-space-section) 0;
    background: var(--home-bg-alt);
}

.craftsmanship-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.craftsmanship-image {
    position: relative;
    z-index: 1;
    margin: 0;
}

.craftsmanship-image::before {
    content: "";
    position: absolute;
    top: -14px;
    right: 14px;
    left: -14px;
    height: 1px;
    background: var(--home-brass);
}

.craftsmanship-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 52% center;
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.craftsmanship-image:hover img {
    transform: scale(1.018);
}

.craftsmanship-image figcaption {
    margin-top: 14px;
    color: var(--home-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.craftsmanship-panel {
    position: relative;
    z-index: 2;
    margin: -14px 12px 0;
    padding: clamp(2rem, 8vw, 4rem);
    border-radius: var(--home-radius);
    background: var(--home-heading);
    color: var(--home-bg);
    box-shadow: var(--home-shadow);
}

.craftsmanship-panel h2 {
    margin: 0;
    color: var(--home-bg);
    font-size: clamp(2.3rem, 9vw, 3.75rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.craftsmanship-panel > p:not(.home-eyebrow) {
    margin: 24px 0 0;
    color: var(--home-bg-alt);
    line-height: 1.75;
}

.craftsmanship-panel ul {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(190, 187, 181, 0.35);
    list-style: none;
}

.craftsmanship-panel li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--home-bg);
    font-size: 0.9rem;
    font-weight: 700;
}

.craftsmanship-panel li::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid var(--home-olive);
    border-radius: 50%;
    color: var(--home-olive-soft);
    font-size: 0.72rem;
}

.home-text-link-light {
    margin-top: 28px;
    color: var(--home-brass-pale);
}

.home-about {
    padding: var(--home-space-section) 0;
    background: var(--home-bg);
}

.home-about-layout {
    display: grid;
    gap: 34px;
}

.home-about-copy {
    max-width: 640px;
}

.home-about h2 {
    font-size: clamp(2.4rem, 6vw, 4rem);
}

.home-about-copy header {
    position: relative;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--home-border);
}

.home-about-copy header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 90px;
    height: 3px;
    background: var(--home-brass);
}

.home-about-copy > p {
    margin: 0;
    color: var(--home-text);
    line-height: 1.8;
}

.home-about-copy > p + p {
    margin-top: 18px;
}

.home-about-copy .home-about-lead {
    color: var(--home-heading);
    font-size: clamp(1.25rem, 4vw, 1.65rem);
    font-weight: 700;
    line-height: 1.5;
}

.home-about-button {
    margin-top: 32px;
}

.home-about-image {
    position: relative;
    width: min(100%, 500px);
    margin: 0 auto;
}

.home-about-image::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(237, 222, 169, 0.55);
    border-radius: calc(var(--home-radius) - 4px);
    pointer-events: none;
}

.home-about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
}

.home-final-cta {
    position: relative;
    overflow: hidden;
    padding: var(--home-space-section) 0;
    background: var(--home-heading);
    color: var(--home-bg);
}

.home-final-cta::before {
    content: "NTX";
    position: absolute;
    right: -0.06em;
    bottom: -0.22em;
    color: rgba(237, 222, 169, 0.06);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(8rem, 31vw, 28rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.1em;
    pointer-events: none;
}

.home-final-cta-layout {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 34px;
}

.home-final-cta h2 {
    color: var(--home-bg);
}

.home-final-cta-copy {
    max-width: 590px;
}

.home-final-cta-copy > p {
    margin: 0;
    color: var(--home-bg-alt);
    font-size: 1rem;
    line-height: 1.75;
}

@keyframes home-editorial-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes home-image-reveal {
    from {
        opacity: 0;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.facelift-hero-copy > * {
    animation: home-editorial-enter 520ms
        cubic-bezier(0.22, 1, 0.36, 1) both;
}

.facelift-hero-copy > :nth-child(2) {
    animation-delay: 70ms;
}

.facelift-hero-copy > :nth-child(3) {
    animation-delay: 140ms;
}

.facelift-hero-copy > :nth-child(4) {
    animation-delay: 210ms;
}

.facelift-hero-copy > :nth-child(5) {
    animation-delay: 270ms;
}

.facelift-hero-visual {
    animation: home-image-reveal 680ms
        90ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-ready .home-page .reveal-on-scroll,
.motion-ready .about-page .reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: none;
    will-change: opacity, transform;
}

.motion-ready.motion-started .home-page .reveal-on-scroll,
.motion-ready.motion-started .about-page .reveal-on-scroll {
    transition:
        opacity 580ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 580ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .home-page .reveal-from-left,
.motion-ready .about-page .reveal-from-left {
    transform: translateX(-24px);
}

.motion-ready .home-page .reveal-from-right,
.motion-ready .about-page .reveal-from-right {
    transform: translateX(24px);
}

.motion-ready .home-page .reveal-soft-scale,
.motion-ready .about-page .reveal-soft-scale {
    transform: translateY(16px) scale(0.985);
}

.motion-ready .home-page .reveal-on-scroll.is-visible,
.motion-ready .about-page .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    will-change: auto;
}

@media (min-width: 600px) {
    .home-page .container {
        width: min(var(--home-width), calc(100% - 48px));
    }

    .facelift-hero-actions,
    .home-final-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .home-button {
        width: auto;
    }

    .facelift-hero-image-frame {
        aspect-ratio: 16 / 10;
    }

    .trust-ledger-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 1px solid rgba(190, 187, 181, 0.34);
    }

    .trust-ledger-list li {
        border-top: 0;
    }

    .trust-ledger-list li:nth-child(even) {
        padding-left: 22px;
        border-left: 1px solid rgba(190, 187, 181, 0.34);
    }

    .trust-ledger-list li:nth-child(n + 3) {
        border-top: 1px solid rgba(190, 187, 181, 0.34);
    }
}

@media (min-width: 768px) {
    .facelift-hero {
        padding-top: 3.5rem;
        padding-bottom: 4rem;
    }

    .facelift-hero-layout {
        grid-template-columns:
            minmax(0, 0.92fr)
            minmax(0, 1.08fr);
        gap: clamp(2.5rem, 6vw, 5.5rem);
        align-items: center;
    }

    .facelift-hero-copy h1 {
        font-size: clamp(3.7rem, 7vw, 4.25rem);
    }

    .facelift-hero-copy {
        padding: 32px 0;
    }

    .facelift-hero-image-frame {
        aspect-ratio: 4 / 5;
    }

    .facelift-hero-visual figcaption {
        right: -18px;
        left: 28px;
    }

    .trust-ledger-layout {
        grid-template-columns:
            minmax(0, 0.78fr)
            minmax(0, 1.22fr);
        gap: clamp(3rem, 8vw, 7rem);
        align-items: start;
    }

    .home-section-intro {
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(280px, 0.8fr);
        gap: clamp(3rem, 8vw, 7rem);
        align-items: end;
    }

    .service-composition {
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(0, 0.92fr);
        align-items: stretch;
    }

    .service-editorial-list {
        display: grid;
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    .service-editorial-list article {
        align-content: center;
    }

    .service-index {
        justify-content: space-between;
    }

    .craftsmanship-layout {
        grid-template-columns:
            minmax(0, 1.12fr)
            minmax(330px, 0.88fr);
        align-items: center;
    }

    .craftsmanship-image img {
        aspect-ratio: 5 / 4;
    }

    .craftsmanship-panel {
        margin: 0 0 0 -70px;
    }

    .home-final-cta-layout {
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(320px, 0.85fr);
        gap: clamp(3rem, 8vw, 7rem);
        align-items: end;
    }
}

@media (min-width: 900px) {
    .home-about-layout {
        grid-template-columns:
            minmax(0, 1.05fr)
            minmax(300px, 0.95fr);
        gap: clamp(3rem, 8vw, 7rem);
        align-items: center;
    }

    .home-about-copy header {
        padding-right: 24px;
        padding-bottom: 36px;
    }

    .home-about-image {
        margin-right: 0;
    }
}

@media (min-width: 1024px) {
    .facelift-hero {
        padding-top: 3.25rem;
        padding-bottom: 4rem;
    }

    .facelift-hero-layout {
        min-height: 540px;
    }

    .facelift-hero-copy h1 {
        font-size: clamp(4.25rem, 5.4vw, 5rem);
    }

    .facelift-hero-image-frame {
        height: min(560px, 48vw);
        aspect-ratio: auto;
    }

    .facelift-hero-monogram {
        top: -45px;
        right: -45px;
    }

    .trust-ledger-list li {
        padding: 26px 0;
    }

    .service-feature {
        min-height: 590px;
    }

    .craftsmanship-image img {
        min-height: 620px;
    }

    .craftsmanship-panel {
        margin-left: -96px;
    }
}

@media (min-width: 1280px) {
    .facelift-hero-visual {
        margin-right: -36px;
    }

    .facelift-hero-image-frame {
        height: 570px;
    }
}

@media (max-width: 599px) {
    .home-button {
        width: 100%;
    }

    .service-editorial-list article {
        grid-template-columns: auto 1fr;
    }

    .service-editorial-list article > a {
        grid-column: 2;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 374px) {
    .facelift-hero {
        padding-top: 2.25rem;
    }

    .facelift-hero-copy h1 {
        font-size: clamp(2.6rem, 13vw, 2.85rem);
    }

    .facelift-hero-text {
        margin-top: 18px;
        line-height: 1.6;
    }

    .facelift-hero-actions {
        margin-top: 22px;
    }

    .facelift-hero .home-button {
        padding-right: 14px;
        padding-left: 14px;
        font-size: 1.06rem;
    }
}

@media (
    orientation: landscape
) and (min-width: 600px) and (max-width: 900px) and (max-height: 500px) {
    .facelift-hero {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .facelift-hero-layout {
        gap: 32px;
    }

    .facelift-hero-copy {
        padding-top: 0;
        padding-bottom: 0;
    }

    .facelift-hero-copy h1 {
        font-size: clamp(3rem, 6.5vw, 3.4rem);
    }

    .facelift-hero-text {
        margin-top: 16px;
        line-height: 1.5;
    }

    .facelift-hero-actions {
        margin-top: 18px;
    }

    .facelift-hero-contact {
        margin-top: 16px;
        padding-top: 14px;
    }
}

/* Standalone About */

.about-body,
.about-main {
    background: var(--color-page);
}

.about-page {
    --home-bg: var(--color-page);
    --home-bg-alt: var(--color-surface-alt);
    --home-heading: var(--color-text);
    --home-text: var(--color-body);
    --home-muted: var(--color-muted);
    --home-border: var(--color-border);
    --home-brass: var(--color-brass);
    --home-brass-dark: var(--color-brass-hover);
    --home-brass-pale: var(--color-brass-pale);
    --home-walnut: var(--color-walnut);
    --home-olive: var(--focus-color);
    --home-radius: var(--radius-large);
    --home-radius-small: var(--radius-medium);
    --home-shadow: var(--shadow-raised);
    --home-shadow-soft: var(--shadow-soft);
    --home-width: var(--content-width);
    --home-space-section: var(--section-space);

    overflow-x: clip;
    background: var(--home-bg);
    color: var(--home-text);
}

.about-page .container {
    width: min(var(--home-width), calc(100% - 32px));
}

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

.about-page h1,
.about-page h2,
.about-page p {
    overflow-wrap: break-word;
}

.about-introduction {
    position: relative;
    overflow: hidden;
    padding: clamp(3.25rem, 10vw, 6rem) 0 clamp(3.75rem, 11vw, 6.5rem);
    border-bottom: 1px solid var(--home-border);
    background:
        linear-gradient(
            to right,
            transparent 0 calc(50% - 1px),
            rgba(190, 187, 181, 0.32) calc(50% - 1px) 50%,
            transparent 50%
        ),
        var(--home-bg);
}

.about-introduction::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(54px, 12vw, 170px);
    height: clamp(54px, 12vw, 170px);
    border-top: 1px solid rgba(184, 149, 89, 0.55);
    border-left: 1px solid rgba(184, 149, 89, 0.55);
    pointer-events: none;
}

.about-introduction-layout {
    position: relative;
    z-index: 1;
}

.about-introduction h1 {
    max-width: 1060px;
    margin: 0;
    color: var(--home-heading);
    font-size: clamp(2.65rem, 8vw, 5.8rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.about-story {
    padding: var(--home-space-section) 0;
    background: var(--home-bg-alt);
}

.about-story-layout {
    display: grid;
    gap: 42px;
}

.about-story-image {
    position: relative;
    width: min(100%, 560px);
    margin: 0 auto;
}

.about-story-image::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(237, 222, 169, 0.55);
    border-radius: calc(var(--home-radius) - 4px);
    pointer-events: none;
}

.about-story-image img {
    width: 100%;
    height: auto;
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
}

.about-story-copy {
    max-width: 700px;
}

.about-story-copy > p {
    margin: 0;
    color: var(--home-text);
    line-height: 1.82;
}

.about-story-copy > p + p {
    margin-top: 22px;
}

.about-story-copy .about-story-lead {
    color: var(--home-heading);
    font-size: clamp(1.2rem, 3.6vw, 1.55rem);
    font-weight: 700;
    line-height: 1.55;
}

.about-story-copy .about-closing-statement {
    margin-top: 34px;
    padding: 26px 0 0;
    border-top: 3px solid var(--home-brass);
    color: var(--home-heading);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 3.8vw, 1.6rem);
    line-height: 1.5;
}

@media (min-width: 600px) {
    .about-page .container {
        width: min(var(--home-width), calc(100% - 48px));
    }
}

@media (min-width: 900px) {
    .about-story-layout {
        grid-template-columns:
            minmax(300px, 0.85fr)
            minmax(0, 1.15fr);
        gap: clamp(3rem, 8vw, 7rem);
        align-items: start;
    }

    .about-story-image {
        position: sticky;
        top: 116px;
    }

}

@media (
    orientation: landscape
) and (min-width: 600px) and (max-width: 900px) and (max-height: 500px) {
    .about-introduction {
        padding-top: 2.25rem;
        padding-bottom: 3rem;
    }

    .about-introduction h1 {
        font-size: clamp(2.8rem, 6vw, 3.4rem);
    }
}

/* Standalone Gallery */

.gallery-body,
.gallery-main {
    background: var(--color-page);
}

.gallery-page {
    --home-bg: var(--color-page);
    --home-bg-alt: var(--color-surface-alt);
    --home-heading: var(--color-text);
    --home-text: var(--color-body);
    --home-muted: var(--color-muted);
    --home-border: var(--color-border);
    --home-brass: var(--color-brass);
    --home-brass-deep: var(--color-brass-deep);
    --home-brass-pale: var(--color-brass-pale);
    --home-walnut: var(--color-walnut);
    --home-olive: var(--focus-color);
    --home-radius: var(--radius-large);
    --home-radius-small: var(--radius-medium);
    --home-shadow: var(--shadow-raised);
    --home-shadow-soft: var(--shadow-soft);
    --home-width: var(--content-width);
    --home-space-section: var(--section-space);

    overflow-x: clip;
    background: var(--home-bg);
    color: var(--home-text);
}

.gallery-page .container {
    width: min(var(--home-width), calc(100% - 32px));
}

.gallery-page h1,
.gallery-page h2,
.gallery-page p {
    overflow-wrap: break-word;
}

.gallery-introduction {
    position: relative;
    overflow: hidden;
    padding: clamp(3.25rem, 10vw, 6rem) 0 clamp(3.75rem, 11vw, 6.5rem);
    border-bottom: 1px solid var(--home-border);
    background:
        linear-gradient(
            to right,
            transparent 0 calc(50% - 1px),
            rgba(190, 187, 181, 0.32) calc(50% - 1px) 50%,
            transparent 50%
        ),
        var(--home-bg);
}

.gallery-introduction::after {
    content: "NTX";
    position: absolute;
    right: -0.08em;
    bottom: -0.25em;
    color: rgba(184, 149, 89, 0.11);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(7rem, 24vw, 18rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.1em;
    pointer-events: none;
}

.gallery-introduction-layout {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 32px;
}

.gallery-intro-copy {
    max-width: 810px;
}

.gallery-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--home-muted);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gallery-eyebrow::before {
    content: "";
    flex: 0 0 30px;
    height: 1px;
    background: var(--home-brass);
}

.gallery-eyebrow-light {
    color: var(--home-brass-pale);
}

.gallery-intro-copy h1 {
    max-width: 780px;
    margin: 0;
    color: var(--home-heading);
    font-size: clamp(3rem, 13vw, 6.25rem);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.gallery-lead {
    max-width: 660px;
    margin: 26px 0 0;
    color: var(--home-text);
    font-size: clamp(1rem, 3.5vw, 1.16rem);
    line-height: 1.75;
}

.gallery-intro-note {
    align-self: end;
    max-width: 270px;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--home-brass);
    color: var(--home-muted);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.6;
}

.gallery-featured,
.gallery-collection {
    padding: var(--home-space-section) 0;
}

.gallery-featured {
    background: var(--home-bg-alt);
}

.gallery-collection {
    background: var(--home-bg);
}

.gallery-section-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: clamp(2.25rem, 6vw, 4rem);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--home-border);
}

.gallery-section-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 1px 0 0;
    border: 1px solid var(--home-brass);
    border-radius: 50%;
    color: var(--home-brass-deep);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.gallery-section-heading .gallery-eyebrow {
    margin-bottom: 10px;
}

.gallery-section-heading h2 {
    max-width: 760px;
    margin: 0;
    color: var(--home-heading);
    font-size: clamp(2.15rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.gallery-featured-composition,
.gallery-portfolio-grid {
    display: grid;
    gap: 28px 16px;
}

.gallery-image-link {
    min-width: 0;
    color: var(--home-heading);
    text-decoration: none;
}

.gallery-image-link:focus-visible {
    outline: 3px solid var(--home-olive);
    outline-offset: 5px;
}

.gallery-image-frame {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--home-radius);
    background: var(--home-border);
    box-shadow: var(--home-shadow-soft);
    transition:
        box-shadow 280ms ease,
        transform 280ms ease;
}

.gallery-image-frame::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(237, 222, 169, 0.44);
    border-radius: var(--home-radius-small);
    pointer-events: none;
}

.gallery-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-image-link:hover .gallery-image-frame {
    box-shadow: var(--home-shadow);
    transform: translateY(-2px);
}

.gallery-image-link:hover .gallery-image-frame img {
    transform: scale(1.025);
}

.gallery-featured-image .gallery-image-frame {
    aspect-ratio: 4 / 3;
}

.gallery-card--wide .gallery-image-frame {
    aspect-ratio: 16 / 10;
}

.gallery-card--standard .gallery-image-frame {
    aspect-ratio: 4 / 3;
}

.gallery-card--portrait .gallery-image-frame {
    aspect-ratio: 4 / 5;
}

.gallery-final-cta {
    position: relative;
    overflow: hidden;
    padding: var(--home-space-section) 0;
    background: var(--home-heading);
    color: var(--home-bg);
}

.gallery-final-cta::before {
    content: "";
    position: absolute;
    top: 0;
    right: clamp(20px, 8vw, 110px);
    width: 1px;
    height: 44%;
    background: rgba(237, 222, 169, 0.28);
}

.gallery-final-cta-layout {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 34px;
}

.gallery-final-cta h2 {
    max-width: 760px;
    margin: 0;
    color: var(--home-bg);
    font-size: clamp(2.4rem, 9vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.gallery-final-cta-copy {
    max-width: 590px;
}

.gallery-final-cta-copy > p {
    margin: 0;
    color: var(--home-bg-alt);
    line-height: 1.75;
}

.gallery-final-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
    visibility: hidden;
    background: rgba(35, 33, 30, 0.9);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 220ms ease,
        visibility 0s linear 220ms;
}

.gallery-lightbox.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

.gallery-lightbox-dialog {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
    align-items: center;
    width: min(1180px, 100%);
    max-height: calc(100vh - 36px);
    transform: translateY(10px) scale(0.985);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-lightbox.is-open .gallery-lightbox-dialog {
    transform: translateY(0) scale(1);
}

.gallery-lightbox-figure {
    min-width: 0;
    margin: 0;
}

.gallery-lightbox-figure img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 120px);
    margin: 0 auto;
    border-radius: var(--home-radius);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    object-fit: contain;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(232, 232, 228, 0.62);
    border-radius: 50%;
    background: rgba(54, 51, 47, 0.88);
    color: var(--home-bg);
    cursor: pointer;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    border-color: var(--home-brass-pale);
    background: var(--home-walnut);
    transform: translateY(-1px);
}

.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
    outline: 3px solid var(--home-brass-pale);
    outline-offset: 4px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    font-size: 1.75rem;
    line-height: 1;
    transform: translateY(-58px);
}

.gallery-lightbox-close:hover {
    transform: translateY(-59px);
}

.gallery-lightbox-nav {
    font-size: 1.25rem;
}

.gallery-lightbox-previous {
    grid-column: 1;
}

.gallery-lightbox-figure {
    grid-column: 2;
}

.gallery-lightbox-next {
    grid-column: 3;
}

.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gallery-slideshow-section {
    padding: clamp(1.5rem, 4vw, 3rem) 0 0;
    background: var(--home-bg);
}

.gallery-slideshow-frame {
    position: relative;
    overflow: hidden;
    min-height: min(66vw, 680px);
    aspect-ratio: 16 / 9;
    background: var(--home-heading);
}

.gallery-slideshow-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 900ms ease;
}

.gallery-slideshow-image.is-active {
    z-index: 1;
    opacity: 1;
}

.gallery-slideshow-controls {
    position: absolute;
    right: clamp(0.75rem, 2vw, 1.25rem);
    bottom: clamp(0.75rem, 2vw, 1.25rem);
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.gallery-slideshow-controls button {
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    background: rgba(35, 33, 30, 0.74);
    color: #fff;
    place-items: center;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.gallery-slideshow-controls button:hover {
    background: var(--home-walnut);
    transform: translateY(-1px);
}

.gallery-slideshow-controls button:focus-visible {
    outline: 3px solid var(--home-brass-pale);
    outline-offset: 3px;
}

.gallery-empty-state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 2rem;
    border: 1px solid var(--home-border);
    text-align: center;
}

@keyframes gallery-intro-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.gallery-intro-copy > *,
.gallery-intro-note {
    animation: gallery-intro-enter 520ms
        cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gallery-intro-copy > :nth-child(2) {
    animation-delay: 70ms;
}

.gallery-intro-copy > :nth-child(3) {
    animation-delay: 140ms;
}

.gallery-intro-note {
    animation-delay: 200ms;
}

.motion-ready .gallery-page .reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: none;
    will-change: opacity, transform;
}

.motion-ready.motion-started .gallery-page .reveal-on-scroll {
    transition:
        opacity 580ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 580ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .gallery-page .reveal-from-left {
    transform: translateX(-22px);
}

.motion-ready .gallery-page .reveal-soft-scale {
    transform: translateY(14px) scale(0.988);
}

.motion-ready .gallery-page .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    will-change: auto;
}

@media (min-width: 600px) {
    .gallery-page .container {
        width: min(var(--home-width), calc(100% - 48px));
    }

    .gallery-introduction-layout {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .gallery-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 20px;
    }

    .gallery-card--wide {
        grid-column: span 2;
    }

    .gallery-final-actions {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) {
    .gallery-featured-composition {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-featured-image--primary {
        grid-column: span 2;
    }

    .gallery-final-cta-layout {
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(320px, 0.85fr);
        gap: clamp(3rem, 8vw, 7rem);
        align-items: end;
    }
}

@media (min-width: 1024px) {
    .gallery-featured-composition {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .gallery-featured-image--primary {
        display: flex;
        grid-column: span 8;
        grid-row: span 2;
        flex-direction: column;
    }

    .gallery-featured-image--primary .gallery-image-frame {
        flex: 1;
        min-height: 590px;
        aspect-ratio: auto;
    }

    .gallery-featured-image--supporting {
        grid-column: span 4;
    }

    .gallery-featured-image--supporting .gallery-image-frame {
        aspect-ratio: 16 / 10;
    }

    .gallery-featured-composition--supporting-only {
        grid-template-columns: repeat(
            auto-fit,
            minmax(min(100%, 320px), 1fr)
        );
        grid-template-rows: auto;
    }

    .gallery-featured-composition--supporting-only
        .gallery-featured-image--supporting {
        grid-column: auto;
    }

    .gallery-portfolio-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 38px 18px;
    }

    .gallery-card--wide {
        grid-column: span 8;
    }

    .gallery-card--standard,
    .gallery-card--portrait {
        grid-column: span 4;
    }
}

@media (max-width: 599px) {
    .gallery-slideshow-frame {
        min-height: 68vw;
        aspect-ratio: 4 / 3;
    }

    .gallery-final-actions .home-button {
        width: 100%;
    }

    .gallery-lightbox {
        padding: 68px 12px 16px;
    }

    .gallery-lightbox-dialog {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        gap: 4px;
        max-height: calc(100vh - 84px);
    }

    .gallery-lightbox-figure {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .gallery-lightbox-figure img {
        max-height: calc(100vh - 170px);
    }

    .gallery-lightbox-previous,
    .gallery-lightbox-next {
        grid-row: 2;
        margin-top: 4px;
    }

    .gallery-lightbox-previous {
        grid-column: 1;
    }

    .gallery-lightbox-next {
        grid-column: 3;
    }

    .gallery-lightbox-close {
        position: fixed;
        top: 10px;
        right: 12px;
        transform: none;
    }

    .gallery-lightbox-close:hover {
        transform: translateY(-1px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-slideshow-image {
        transition: none;
    }
}

/* CRM Gallery Manager */

.admin-gallery-main {
    min-height: 70vh;
    background: var(--color-page);
}

.admin-gallery-page {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.admin-gallery-container {
    display: grid;
    gap: 2rem;
}

.admin-gallery-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

.admin-gallery-header h1 {
    margin: 0.2rem 0 0.75rem;
    color: var(--color-text);
    font-size: clamp(2rem, 5vw, 3.25rem);
}

.admin-gallery-header p {
    max-width: 650px;
    margin: 0;
}

.admin-gallery-public-link,
.admin-gallery-upload button,
.admin-gallery-card-actions button,
.admin-gallery-pagination a,
.admin-gallery-dialog button {
    min-height: 44px;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
}

.admin-gallery-public-link,
.admin-gallery-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    text-decoration: none;
}

.admin-gallery-notice {
    margin: 0;
    padding: 0.9rem 1rem;
    border-left: 4px solid #2f7d4a;
    background: #edf7f0;
    color: #245f39;
}

.admin-gallery-notice--error {
    border-left-color: #a83b35;
    background: #fbeeed;
    color: #842d28;
}

.admin-gallery-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1.4fr);
    gap: 1.5rem;
    align-items: end;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--color-border);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.admin-gallery-upload label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-text);
    font-size: 1.15rem;
    font-weight: 800;
}

.admin-gallery-upload p {
    margin: 0;
    font-size: 0.92rem;
}

.admin-gallery-upload-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.admin-gallery-upload input {
    min-width: 0;
    flex: 1;
    padding: 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-page);
}

.admin-gallery-upload button,
.admin-gallery-toggle,
.admin-gallery-dialog-confirm {
    padding: 0.7rem 1rem;
    border: 1px solid var(--color-brass-deep);
    background: var(--color-brass-deep);
    color: #fff;
    cursor: pointer;
}

.admin-gallery-list-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-gallery-list-heading h2 {
    margin: 0 0 0.75rem;
}

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

.admin-gallery-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.admin-gallery-thumbnail {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e4e1db;
}

.admin-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-gallery-status {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(47, 45, 42, 0.9);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
}

.admin-gallery-status.is-visible {
    background: rgba(35, 108, 61, 0.92);
}

.admin-gallery-card-body {
    padding: 0.9rem;
}

.admin-gallery-card-body > p {
    overflow: hidden;
    margin: 0 0 0.85rem;
    color: var(--color-text);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-gallery-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.admin-gallery-card-actions form,
.admin-gallery-card-actions button {
    width: 100%;
}

.admin-gallery-delete,
.admin-gallery-dialog-cancel {
    padding: 0.7rem 1rem;
    border: 1px solid #b65a51;
    background: #fff;
    color: #903b34;
    cursor: pointer;
}

.admin-gallery-empty {
    padding: 3rem 1.5rem;
    border: 1px dashed var(--color-border);
    text-align: center;
}

.admin-gallery-empty h2,
.admin-gallery-empty p {
    margin: 0 0 0.5rem;
}

.admin-gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.admin-gallery-dialog {
    width: min(520px, calc(100% - 2rem));
    padding: 0;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.admin-gallery-dialog::backdrop {
    background: rgba(28, 27, 25, 0.72);
}

.admin-gallery-dialog-card {
    padding: clamp(1.4rem, 4vw, 2rem);
}

.admin-gallery-dialog-card h2 {
    margin-top: 0;
}

.admin-gallery-dialog-card > div {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 760px) {
    .admin-gallery-header,
    .admin-gallery-upload,
    .admin-gallery-upload-actions {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-gallery-public-link,
    .admin-gallery-upload button {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .admin-gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 374px) {
    .gallery-intro-copy h1 {
        font-size: clamp(2.65rem, 13vw, 2.9rem);
    }

    .gallery-section-heading {
        grid-template-columns: 1fr;
    }
}

@media (
    orientation: landscape
) and (min-width: 600px) and (max-width: 900px) and (max-height: 500px) {
    .gallery-introduction {
        padding-top: 2.25rem;
        padding-bottom: 3rem;
    }

    .gallery-intro-copy h1 {
        font-size: clamp(3rem, 7vw, 3.7rem);
    }

    .gallery-lightbox-figure img {
        max-height: calc(100vh - 88px);
    }
}

/* Estimate Page */

.estimate-body,
.estimate-main {
    background: var(--color-page);
}

.estimate-main {
    overflow: clip;
}

.estimate-page {
    overflow-x: clip;
    background: var(--color-page);
    color: var(--color-body);
}

.estimate-page section[id],
.estimate-page [id] {
    scroll-margin-top: 104px;
}

.estimate-introduction {
    position: relative;
    padding: clamp(3.75rem, 10vw, 6.5rem) 0;
    border-bottom: 1px solid var(--color-border);
    background:
        linear-gradient(
            to right,
            transparent 0 calc(50% - 1px),
            rgba(190, 187, 181, 0.28) calc(50% - 1px) 50%,
            transparent 50%
        ),
        var(--color-page);
}

.estimate-introduction::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(58px, 12vw, 160px);
    height: clamp(58px, 12vw, 160px);
    border-top: 1px solid rgba(184, 149, 89, 0.58);
    border-left: 1px solid rgba(184, 149, 89, 0.58);
    pointer-events: none;
}

.estimate-introduction-layout {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-7);
}

.estimate-intro-copy {
    max-width: 760px;
}

.estimate-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-5);
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.estimate-eyebrow::before {
    content: "";
    flex: 0 0 32px;
    height: 1px;
    background: var(--color-brass);
}

.estimate-intro-copy h1 {
    max-width: 760px;
    margin: 0;
    color: var(--color-text);
    font-size: clamp(2.75rem, 11vw, 5.6rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.estimate-lead {
    max-width: 650px;
    margin: var(--space-6) 0 0;
    color: var(--color-body);
    font-size: clamp(1rem, 3.6vw, 1.16rem);
    line-height: 1.72;
}

.estimate-prep-card {
    position: relative;
    max-width: 580px;
    padding: clamp(1.5rem, 5vw, 2.25rem);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-brass);
    border-radius: var(--radius-medium);
    background: var(--color-surface-alt);
    box-shadow: var(--shadow-soft);
}

.estimate-prep-label {
    margin: 0 0 var(--space-2);
    color: var(--color-walnut);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.estimate-prep-card h2 {
    margin: 0;
    font-size: clamp(1.45rem, 5vw, 2rem);
    letter-spacing: -0.035em;
}

.estimate-prep-card > p:not(.estimate-prep-label) {
    margin: var(--space-4) 0 0;
    color: var(--color-body);
    font-size: 0.94rem;
    line-height: 1.7;
}

.estimate-call-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 44px;
    margin-top: var(--space-5);
    color: var(--color-text);
    font-weight: 800;
    text-decoration-color: var(--color-brass);
    text-decoration-thickness: 2px;
}

.estimate-call-link span {
    color: var(--color-brass-deep);
    transition: transform var(--transition-base);
}

.estimate-call-link:hover span {
    transform: translateX(4px);
}

.estimate-form-section {
    padding: var(--section-space) 0;
    background: var(--color-surface-alt);
}

.estimate-container {
    max-width: calc(var(--content-width-form) + 40px);
}

.estimate-form-shell {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: var(--color-page);
    box-shadow: var(--shadow-raised);
}

.estimate-form-heading {
    padding:
        clamp(1.75rem, 6vw, 3.5rem)
        clamp(1.25rem, 6vw, 3.5rem)
        clamp(1.5rem, 5vw, 2.75rem);
    border-bottom: 1px solid var(--color-border);
    background:
        linear-gradient(
            130deg,
            rgba(237, 222, 169, 0.2),
            transparent 55%
        ),
        var(--color-page);
}

.estimate-form-heading h2 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(2rem, 7vw, 3.45rem);
    letter-spacing: -0.045em;
}

.estimate-form-heading > p:last-child {
    max-width: 620px;
    margin: var(--space-4) 0 0;
    color: var(--color-body);
}

.estimate-form-shell > .form-message {
    margin:
        clamp(1.25rem, 5vw, 2.5rem)
        clamp(1.25rem, 6vw, 3.5rem)
        0;
}

.estimate-page .estimate-form {
    padding: 0 clamp(1.25rem, 6vw, 3.5rem)
        clamp(1.75rem, 6vw, 3.5rem);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.estimate-form-group {
    padding: clamp(2rem, 7vw, 3.5rem) 0;
    border-bottom: 1px solid var(--color-border);
}

.estimate-form-group-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
    margin-bottom: var(--space-6);
}

.estimate-form-group-heading > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-brass);
    border-radius: 50%;
    color: var(--color-walnut);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.estimate-form-group-heading h3 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(1.35rem, 4vw, 1.7rem);
    letter-spacing: -0.025em;
}

.estimate-form-group-heading p {
    margin: var(--space-1) 0 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.estimate-page .form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
}

.estimate-page .form-group {
    min-width: 0;
    margin: 0;
}

.estimate-page .form-group + .form-group {
    margin-top: var(--space-5);
}

.estimate-page .form-grid .form-group + .form-group {
    margin-top: 0;
}

.estimate-page .form-group label,
.estimate-page .work-options legend {
    display: block;
    margin: 0 0 var(--space-2);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 800;
}

.estimate-page .form-group label span,
.estimate-page .work-options legend span {
    color: var(--color-error);
}

.estimate-page .form-group label .field-optional {
    margin-left: var(--space-1);
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.estimate-page .form-group input,
.estimate-page .form-group select,
.estimate-page .form-group textarea {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    background: rgba(232, 232, 228, 0.72);
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.5;
    transition:
        border-color var(--transition-base),
        background-color var(--transition-base),
        box-shadow var(--transition-base);
}

.estimate-page .form-group input::placeholder,
.estimate-page .form-group textarea::placeholder {
    color: #706f6a;
    opacity: 1;
}

.estimate-page .form-group input:hover,
.estimate-page .form-group select:hover,
.estimate-page .form-group textarea:hover {
    border-color: var(--color-muted);
    background: var(--color-page);
}

.estimate-page .form-group input:focus-visible,
.estimate-page .form-group select:focus-visible,
.estimate-page .form-group textarea:focus-visible {
    border-color: var(--focus-color);
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
    box-shadow: var(--focus-ring);
}

.estimate-page .form-group input:disabled,
.estimate-page .form-group select:disabled,
.estimate-page .form-group textarea:disabled {
    cursor: not-allowed;
    opacity: 0.66;
}

.estimate-page .form-group textarea {
    min-height: 190px;
    resize: vertical;
}

.estimate-page .work-options {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.estimate-page .form-help {
    margin: 0 0 var(--space-4);
    color: var(--color-muted);
    font-size: 0.88rem;
}

.estimate-page .checkbox-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
}

.estimate-page .checkbox-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    background: rgba(232, 232, 228, 0.66);
    color: var(--color-text);
    cursor: pointer;
    transition:
        border-color var(--transition-base),
        background-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.estimate-page .checkbox-option:hover {
    border-color: var(--color-brass-deep);
    background: var(--color-page);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.estimate-page .checkbox-option:has(input:checked) {
    border-color: var(--color-brass-deep);
    background: rgba(237, 222, 169, 0.24);
}

.estimate-page .checkbox-option:focus-within {
    border-color: var(--focus-color);
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
    box-shadow: var(--focus-ring);
}

.estimate-page .checkbox-option input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--color-walnut);
}

.estimate-page .checkbox-option input:focus-visible {
    outline: 0;
}

.estimate-page .checkbox-option span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.94rem;
    font-weight: 750;
}

.estimate-page .form-error {
    min-height: 0;
    margin: var(--space-3) 0 0;
    color: var(--color-error);
    font-size: 0.88rem;
    font-weight: 750;
}

.estimate-page .form-error:not(:empty)::before {
    content: "Error: ";
}

.estimate-page .hidden {
    display: none;
}

.estimate-page #other-service-container {
    margin: var(--space-5) 0 0;
}

.estimate-page .contact-method-grid {
    max-width: 440px;
}

.estimate-page input.invalid,
.estimate-page textarea.invalid,
.estimate-page input[aria-invalid="true"],
.estimate-page textarea[aria-invalid="true"] {
    border-color: var(--color-error);
}

.estimate-page input.invalid:focus-visible,
.estimate-page textarea.invalid:focus-visible,
.estimate-page input[aria-invalid="true"]:focus-visible,
.estimate-page textarea[aria-invalid="true"]:focus-visible {
    outline-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(122, 32, 32, 0.18);
}

.estimate-submit-area {
    display: grid;
    gap: var(--space-4);
    align-items: center;
    padding-top: clamp(2rem, 7vw, 3.5rem);
}

.estimate-page .form-submit {
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    border: 1px solid var(--color-brass);
    border-radius: var(--radius-small);
    background: var(--color-brass);
    color: var(--color-text);
    box-shadow: 0 12px 28px rgba(154, 121, 62, 0.18);
}

.estimate-page .form-submit:hover {
    border-color: var(--color-brass-hover);
    background: var(--color-brass-hover);
    color: var(--color-text);
    box-shadow: 0 15px 32px rgba(154, 121, 62, 0.24);
}

.estimate-page .form-submit:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 4px;
}

.estimate-submit-note {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.estimate-submit-note a {
    color: var(--color-walnut);
    font-weight: 800;
    text-decoration-color: var(--color-brass);
}

.estimate-page .form-message {
    overflow-wrap: anywhere;
}

.motion-ready .estimate-page .reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: none;
    will-change: opacity, transform;
}

.motion-ready.motion-started .estimate-page .reveal-on-scroll {
    transition:
        opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .estimate-page .reveal-from-left {
    transform: translateX(-20px);
}

.motion-ready .estimate-page .reveal-soft-scale {
    transform: translateY(14px) scale(0.99);
}

.motion-ready .estimate-page .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    will-change: auto;
}

@media (min-width: 600px) {
    .estimate-page .form-grid,
    .estimate-page .checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .estimate-submit-area {
        grid-template-columns: minmax(260px, auto) minmax(0, 1fr);
        gap: var(--space-5);
    }

    .estimate-page .form-submit {
        width: auto;
    }
}

@media (min-width: 900px) {
    .estimate-introduction-layout {
        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(300px, 0.65fr);
        gap: clamp(3rem, 8vw, 7rem);
        align-items: end;
    }

    .estimate-prep-card {
        margin-bottom: -2rem;
    }
}

@media (max-width: 374px) {
    .estimate-intro-copy h1 {
        font-size: clamp(2.55rem, 13vw, 2.9rem);
    }

    .estimate-form-group-heading {
        grid-template-columns: 1fr;
    }

    .estimate-form-group-heading > span {
        width: 34px;
        height: 34px;
    }

    .estimate-page .form-submit {
        padding-right: 12px;
        padding-left: 12px;
        font-size: 0.91rem;
    }
}

@media (
    orientation: landscape
) and (min-width: 600px) and (max-width: 900px) and (max-height: 500px) {
    .estimate-introduction {
        padding: 2.5rem 0;
    }

    .estimate-introduction-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
        gap: var(--space-6);
        align-items: center;
    }

    .estimate-intro-copy h1 {
        font-size: clamp(3rem, 7vw, 3.7rem);
    }

    .estimate-prep-card {
        padding: var(--space-5);
    }
}

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

    .site-header,
    .menu-button-icon span,
    .footer-admin-link span,
    .estimate-page *,
    .estimate-page *::before,
    .estimate-page *::after,
    .about-page *,
    .about-page *::before,
    .about-page *::after,
    .gallery-page *,
    .gallery-page *::before,
    .gallery-page *::after,
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .motion-ready .home-page .reveal-on-scroll,
    .motion-ready .about-page .reveal-on-scroll,
    .motion-ready .gallery-page .reveal-on-scroll,
    .motion-ready .estimate-page .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
