/* ═══════════════════════════════════════════════════════════
   OBSIDIAN EMERALD — Design System
   Based on "The Digital Architect" editorial system
═══════════════════════════════════════════════════════════ */

:root {
    /* ── Core brand (Deep Forest emerald) ── */
    --primary:                    #003229;
    --primary-container:          #004b3e;
    --primary-fixed:              #b0efdd;
    --primary-fixed-dim:          #95d3c1;
    --on-primary:                 #ffffff;
    --on-primary-container:       #7dbaa9;
    --on-primary-fixed:           #00201a;

    /* ── Secondary ── */
    --secondary:                  #59605f;
    --secondary-container:        #dae1df;
    --on-secondary:               #ffffff;
    --on-secondary-container:     #5d6463;

    /* ── Surfaces ── */
    --surface:                    #f9f9f7;
    --surface-container-lowest:   #ffffff;
    --surface-container-low:      #f4f4f1;
    --surface-container:          #eeeeec;
    --surface-container-high:     #e8e8e6;
    --surface-container-highest:  #e2e3e0;
    --surface-variant:            #e2e3e0;

    /* ── On-surface text ── */
    --on-surface:                 #1a1c1b;
    --on-surface-variant:         #404945;

    /* ── Outline / borders ── */
    --outline:                    #707975;
    --outline-variant:            #bfc9c4;

    /* ── Error ── */
    --error:                      #ba1a1a;

    /* ── Legacy aliases (backward compat for views that still reference them) ── */
    --primary-light:              #95d3c1;
    --primary-dark:               #003229;
    --warm-brown:                 #004b3e;
    --page-bg:                    #f9f9f7;
    --portfolio-bg:               #f4f4f1;
    --text-900:                   #1a1c1b;
    --text-800:                   #404945;
    --text-600:                   #59605f;
    --text-500:                   #707975;
    --black:                      #1a1c1b;
    --white:                      #ffffff;
    --placeholder-bg:             #eeeeec;
    --bauhaus-terracotta:         #7dbaa9;
    --bauhaus-olive:              #003229;
    --bauhaus-brown:              #004b3e;
}

/* ── reCAPTCHA v3 badge (allowed per Google TOS when privacy policy mentions it) ── */
.grecaptcha-badge { visibility: hidden !important; }

/* ── Focus ring (WCAG) ── */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ── Material Symbols weight ── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

/* ── Selection ── */
::selection {
    background-color: var(--primary-fixed);
    color: var(--on-primary-fixed);
}

/* ═══════════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════════ */
html, body { height: 100%; }

body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--surface);
    color: var(--on-surface);
    -webkit-font-smoothing: antialiased;
}

/* ── Typography helpers ── */
.font-headline { font-family: 'Noto Serif', serif; }
.font-body     { font-family: 'Manrope', sans-serif; }
.font-label    { font-family: 'Inter', sans-serif; }

.fe-h1 {
    font-family: 'Noto Serif', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--primary);
}
.fe-h2 {
    font-family: 'Noto Serif', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--primary);
}
.fe-h3 {
    font-family: 'Noto Serif', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--on-surface);
}

/* ── Editorial underline (template pattern) ── */
.text-editorial-underline {
    text-decoration: none;
    position: relative;
}
.text-editorial-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background-color: var(--primary);
}

/* ── Gradient helper ── */
.hero-gradient {
    background: linear-gradient(135deg, #003229 0%, #004b3e 100%);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION — Glassmorphic fixed top bar
═══════════════════════════════════════════════════════════ */
.fe-nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(249, 249, 247, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 50, 41, 0.05);
}

.fe-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1536px;
    margin: 0 auto;
    padding: 1.25rem 3rem;
    gap: 1rem;
}
@media (max-width: 767.98px) {
    .fe-nav-inner { padding: 1rem 1.5rem; }
}

/* Logo + brand name */
.fe-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    flex-shrink: 0;
}
.fe-nav-brand img {
    height: 4rem;
    width: auto;
    object-fit: contain;
}
.fe-nav-brand-name {
    font-family: 'Noto Serif', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #062b23;
    transition: color 0.3s;
    line-height: 1;
}
.fe-nav-brand:hover .fe-nav-brand-name { color: #003229; text-decoration: none; }

/* Desktop nav */
.fe-nav-links {
    display: none;
    align-items: center;
    gap: 2.5rem;
    font-family: 'Noto Serif', serif;
    letter-spacing: -0.01em;
    flex-grow: 1;
    justify-content: center;
}
@media (min-width: 768px) {
    .fe-nav-links { display: flex; }
}

.fe-nav-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9375rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.fe-nav-link:hover,
.fe-nav-link:focus { color: #064e3b; text-decoration: none; }

/* Right actions cluster */
.fe-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-shrink: 0;
}

/* CTA button (gradient — matches template "Inquire") */
.fe-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 2rem;
    background: linear-gradient(135deg, #003229 0%, #004b3e 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 50, 41, 0.12);
    transition: all 0.3s;
    cursor: pointer;
}
.fe-nav-cta:hover  { opacity: 0.9; color: #ffffff; text-decoration: none; }
.fe-nav-cta:active { transform: scale(0.97); color: #ffffff; }

/* Cart icon */
.fe-cart-icon {
    position: relative;
    text-decoration: none;
    color: var(--on-surface-variant);
    padding: 0.25rem;
    transition: color 0.3s;
    line-height: 1;
}
.fe-cart-icon:hover { color: var(--primary); }
.fe-cart-icon .badge {
    font-size: 0.55rem;
    top: 0 !important;
    left: calc(100% - 4px) !important;
}

/* User avatar circle */
.fe-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    background: linear-gradient(135deg, #003229 0%, #004b3e 100%);
    color: #ffffff;
    flex-shrink: 0;
}

/* Mobile hamburger */
.fe-hamburger {
    background: none;
    border: none;
    color: var(--on-surface-variant);
    padding: 0.25rem;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}
.fe-hamburger:hover { color: var(--primary); }

/* ── Nav dropdown — hover open, glassmorphic ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    cursor: pointer;
    padding-bottom: .75rem;
    margin-bottom: -.75rem;
}
.nav-dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .5rem;
    margin-left: .4rem;
    opacity: .4;
    transition: transform .2s;
}
.nav-dropdown:hover > .nav-dropdown-toggle::after {
    transform: rotate(180deg);
    opacity: .7;
}
.nav-dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    min-width: 210px;
    background: rgba(249, 249, 247, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 3px solid var(--primary);
    border-radius: 0 0.25rem 0.25rem 0;
    box-shadow: 0 12px 40px rgba(0, 50, 41, 0.1);
    padding: 0.375rem 0;
    z-index: 1050;
    transition: opacity .15s, transform .15s, visibility .15s;
    transform: translateY(6px);
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: -3px;
    right: 0;
    height: 1rem;
}
.nav-dropdown:hover > .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.25rem;
    font-family: 'Manrope', sans-serif;
    font-size: .84rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    text-decoration: none;
    white-space: nowrap;
    transition: background .12s, color .12s;
    cursor: pointer;
}
.nav-dropdown-item:hover {
    background: var(--surface-container-low);
    color: var(--primary);
}

/* Sub-dropdown (level 3) */
.nav-dropdown-sub { position: relative; }
.nav-dropdown-sub-toggle { justify-content: space-between; }
.nav-dropdown-submenu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: calc(100% + 4px);
    top: -.4rem;
    min-width: 180px;
    background: rgba(249, 249, 247, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 3px solid var(--primary-fixed-dim);
    border-radius: 0 0.25rem 0.25rem 0;
    box-shadow: 0 12px 40px rgba(0, 50, 41, 0.1);
    padding: 0.375rem 0;
    z-index: 1051;
    transition: opacity .15s, transform .15s, visibility .15s;
    transform: translateX(4px);
}
.nav-dropdown-submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.5rem;
    bottom: 0;
    width: 1.5rem;
}
.nav-dropdown-sub:hover > .nav-dropdown-submenu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
/* CMS blocks section — unified with footer bar, same bg */
.fe-footer-blocks-section {
    background: #f5f5f3;
    padding: 4rem 3rem 0;
}
@media (max-width: 767.98px) {
    .fe-footer-blocks-section { padding: 3rem 1.5rem 0; }
}
.fe-footer-blocks-inner {
    max-width: 1536px;
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: none;
}
.fe-footer-block-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--outline);
    margin-bottom: 1rem;
    font-weight: 600;
}
.fe-footer-block-link {
    display: block;
    color: var(--on-surface-variant);
    text-decoration: none;
    line-height: 2;
    font-size: 0.875rem;
    transition: color 0.3s;
}
.fe-footer-block-link:hover { color: var(--primary); }
.fe-footer-block-content {
    color: var(--on-surface-variant);
    font-size: 0.875rem;
    line-height: 1.8;
}
.fe-footer-block-content a {
    color: var(--on-surface-variant) !important;
    text-decoration: none;
    transition: color 0.3s;
}
.fe-footer-block-content a:hover { color: var(--primary) !important; }
.fe-footer-blocks-section .social-icon {
    color: var(--on-surface-variant) !important;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.fe-footer-blocks-section .social-icon:hover { color: var(--primary) !important; }

/* Footer bar — bottom strip with copyright + links */
.fe-footer {
    background: #f5f5f3;
    width: 100%;
    padding: 2rem 3rem 2.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    border-top: 1px solid rgba(191, 201, 196, 0.3);
}
@media (max-width: 767.98px) {
    .fe-footer { padding: 1.5rem 1.5rem 2rem; }
}
.fe-footer-inner {
    max-width: 1536px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 768px) {
    .fe-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.fe-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}
@media (min-width: 768px) {
    .fe-footer-brand { align-items: flex-start; }
}
.fe-footer-brand img {
    height: 1.75rem;
    width: auto;
    object-fit: contain;
}
.fe-footer-brand-name {
    font-family: 'Noto Serif', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #062b23;
    line-height: 1;
}
.fe-footer-copy {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}
@media (min-width: 768px) {
    .fe-footer-copy { text-align: left; }
}

.fe-footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.fe-footer-link {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 8px;
    transition: color 0.3s;
    font-size: 0.875rem;
    cursor: pointer;
}
.fe-footer-link:hover { color: #064e3b; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-primary-warm {
    background: linear-gradient(135deg, #003229 0%, #004b3e 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 0.25rem;
    letter-spacing: 0.04em;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 50, 41, 0.15);
}
.btn-primary-warm:hover {
    opacity: 0.9;
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 50, 41, 0.2);
}
.btn-primary-warm:focus,
.btn-primary-warm:active { color: #ffffff; }

.btn-outline-warm {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-weight: 600;
    border-radius: 0.25rem;
    transition: all 0.3s;
}
.btn-outline-warm:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ── Bootstrap dropdown overrides (user menu) ── */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 40px rgba(0, 50, 41, 0.1);
    border-radius: 0.25rem;
    background: rgba(249, 249, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}
.dropdown-item { color: var(--on-surface-variant); }
.dropdown-item:hover { background: var(--surface-container-low); color: var(--primary); }
.dropdown-header { font-size: 0.75rem; color: var(--outline); }
.dropdown-divider { border-color: rgba(191, 201, 196, 0.3); margin: 0.25rem 0; }
.dropdown-item.text-danger:hover { background: #fdf2f2; }

/* ── Offcanvas (mobile menu) ── */
.offcanvas {
    background: rgba(249, 249, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-family: 'Manrope', sans-serif;
}
.offcanvas-header {
    border-bottom: 1px solid rgba(191, 201, 196, 0.3);
    padding: 1.25rem 1.5rem;
}
.offcanvas-title {
    font-family: 'Noto Serif', serif;
    font-style: italic;
    color: var(--primary);
    font-size: 1.1rem;
}
.offcanvas-body { padding: 1.25rem 1.5rem; }
.offcanvas-body .btn-light {
    background: transparent;
    border: none;
    color: var(--on-surface-variant);
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: all 0.2s;
}
.offcanvas-body .btn-light:hover {
    background: var(--surface-container-low);
    color: var(--primary);
}

/* ── Modals ── */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 24px 64px rgba(0, 50, 41, 0.12);
    font-family: 'Manrope', sans-serif;
}
.modal-header { padding: 1.5rem 1.5rem 0.5rem; }
.modal-title {
    font-family: 'Noto Serif', serif;
    color: var(--primary);
    font-size: 1.3rem;
}
.modal-body { padding: 1rem 1.5rem 1.5rem; }

/* ── Form inputs — ghost border style ── */
.form-control {
    border: none;
    border-bottom: 1px solid rgba(191, 201, 196, 0.6);
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    font-family: 'Manrope', sans-serif;
    color: var(--on-surface);
    transition: border-color 0.2s;
}
.form-control:focus {
    background: transparent;
    border-bottom: 2px solid var(--primary);
    box-shadow: none;
    outline: none;
}
.form-control::placeholder { color: var(--outline); }
.form-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0.375rem;
}
.form-text { color: var(--outline); font-size: 0.75rem; }
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.pagination {
    --bs-pagination-color: var(--primary);
    --bs-pagination-bg: var(--white);
    --bs-pagination-border-color: var(--outline-variant);
    --bs-pagination-hover-color: var(--white);
    --bs-pagination-hover-bg: var(--primary);
    --bs-pagination-hover-border-color: var(--primary);
    --bs-pagination-active-color: var(--white);
    --bs-pagination-active-bg: var(--primary);
    --bs-pagination-active-border-color: var(--primary-container);
    --bs-pagination-disabled-color: var(--outline);
    --bs-pagination-disabled-bg: var(--surface-container-low);
    --bs-pagination-disabled-border-color: var(--outline-variant);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border-radius: 0.25rem;
}
.page-link {
    color: var(--primary);
    border: 1px solid var(--outline-variant);
    transition: all .2s ease;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}
.page-link:hover {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}
.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary-container);
    color: var(--white);
}
.page-item.disabled .page-link {
    color: var(--outline);
    background-color: transparent;
    border-color: var(--outline-variant);
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════
   PAGE BACKGROUNDS
═══════════════════════════════════════════════════════════ */
.bg-home     { background: var(--surface); }
.bg-portfolio { background: var(--surface-container-low); }

/* ═══════════════════════════════════════════════════════════
   ADMIN EDIT FAB
═══════════════════════════════════════════════════════════ */
.admin-edit-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, #003229 0%, #004b3e 100%);
    color: #fff;
    text-decoration: none;
    padding: .6rem 1rem .6rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.04em;
    border-radius: 0.25rem;
    box-shadow: 0 4px 20px rgba(0, 50, 41, 0.22);
    transition: all .2s;
}
.admin-edit-fab:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 50, 41, 0.28);
}
.admin-edit-fab i { font-size: .9rem; }
@media (max-width: 575.98px) {
    .admin-edit-fab-label { display: none; }
    .admin-edit-fab { padding: .65rem; border-radius: 50%; }
}

/* ═══════════════════════════════════════════════════════════
   SOCIAL ICONS
═══════════════════════════════════════════════════════════ */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1rem;
    transition: all .25s ease;
    text-decoration: none;
    margin-right: .5rem;
}
.social-icon:hover {
    background: var(--primary-container);
    color: var(--white);
    transform: translateY(-2px);
}
.social-icon:active { transform: translateY(0); filter: brightness(0.9); }

/* ═══════════════════════════════════════════════════════════
   CONTENT / CARD STYLES (used in product, article, event views)
═══════════════════════════════════════════════════════════ */

/* Detail page accent bars */
.border-left-accent {
    position: relative;
    padding-left: 2rem;
}
.border-left-accent::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: .25rem;
    background: var(--primary);
}
.border-left-accent-olive {
    position: relative;
    padding-left: 2rem;
}
.border-left-accent-olive::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: .25rem;
    background: var(--primary-container);
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(191, 201, 196, 0.25);
    border-radius: 0.25rem;
}
.service-card .bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
}
.service-card:hover .bg-image { transform: scale(1.04); }
.service-card .gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,50,41,.8), rgba(0,50,41,.35), transparent);
}

/* Project/portfolio cards */
.project-card {
    position: relative;
    z-index: 1;
    background: transparent;
    isolation: isolate;
}
.project-image {
    width: 100%;
    height: 20rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform .5s cubic-bezier(0.165, .84, .44, 1);
}
.project-card:hover .project-image { transform: scale(1.05); }

/* Legacy accent overlays (kept for compatibility, colours updated) */
.accent-border, .accent-border-rot-neg {
    position: absolute;
    inset: 0;
    border: .2rem solid var(--primary-fixed-dim);
    transform-origin: center;
    transition: transform .5s;
    z-index: 0;
    pointer-events: none;
}
.project-card:hover .accent-border        { transform: rotate(2deg); }
.project-card:hover .accent-border-rot-neg{ transform: rotate(-2deg); }

.accent-bg-olive, .accent-bg-olive-neg {
    position: absolute;
    inset: 0;
    background: rgba(0, 75, 62, 0.75);
    transform-origin: center;
    transition: transform .5s;
    z-index: 0;
    pointer-events: none;
}
.project-card:hover .accent-bg-olive     { transform: rotate(2deg); }
.project-card:hover .accent-bg-olive-neg { transform: rotate(-2deg); }

.accent-circle-brown {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background: var(--primary-container);
    border-radius: 999px;
    transition: transform .5s;
    z-index: 0;
    pointer-events: none;
}
.project-card:hover .accent-circle-brown { transform: scale(1.1); }

.card-clip-path {
    position: relative;
    z-index: 2;
    background-color: white;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path .5s cubic-bezier(0.165, .84, .44, 1);
}
.card-clip-path::before { content: none !important; }
.card-clip-path h3,
.card-clip-path p,
.card-clip-path a {
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.project-card .overflow-hidden { position: relative; z-index: 0; }
.project-image { position: relative; z-index: 0; }

/* Detail frames */
.detail-frame-1 {
    position: absolute;
    top: -.75rem; left: -.75rem; right: .75rem; bottom: .75rem;
    border: .2rem solid var(--outline-variant);
    z-index: -1;
}
.detail-frame-2 {
    position: absolute;
    top: 1rem; left: 1rem; right: 1rem; bottom: 1rem;
    background: var(--primary-fixed);
    z-index: -2;
}

/* ═══════════════════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════════════════ */
.text-outline {
    -webkit-text-stroke: 1px;
    color: transparent;
}
.underline-grow {
    height: .2rem;
    width: 3rem;
    background: var(--primary);
    transition: width .3s;
}
.hover-underline-grow:hover .underline-grow { width: 5rem; }

/* Toast container */
#toast-container .toast { border-radius: 0.25rem; font-family: 'Manrope', sans-serif; }
