/* ==========================================================================
   ARCHITECTSHIVE – PROJECT SHOWCASE STYLES
   Matches Brand Theme from styles.css:
   --primary-color: #f52008 (Signature Red)
   --secondary-color: #0f0f0f (Dark Blue-Black)
   --light-color: #f6f9fc / #ecf0f1
   --dark-color: #34495e
   --text-color: #333333
   --light-text: #ffffff
   ========================================================================== */

:root {
    --primary-color: #f52008;
    --primary-hover: #c0392b;
    --primary-glow: rgba(245, 32, 8, 0.35);
    --secondary-color: #0f0f0f;
    --light-color: #f6f9fc;
    --dark-color: #34495e;
    --text-color: #333333;
    --light-text: #ffffff;
    --card-border: #e2e8f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body.showcase-body {
    background-color: #ffffff;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    width: 100%;
}

.showcase-page {
    overflow: visible !important;
    position: relative;
    width: 100%;
}

/* ==========================================================================
   HERO SECTION – Authentic Cinematic Theme (Spacious & Non-overlapping)
   ========================================================================== */
.showcase-hero {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 100vh !important;
    color: var(--light-text);
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 140px clamp(20px, 4vw, 64px) 115px;
    gap: clamp(24px, 4vw, 56px);
    box-sizing: border-box !important;
}

.showcase-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.52) 100%);
    z-index: 1;
    pointer-events: none;
}

.showcase-hero .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.showcase-hero .hero-background .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.showcase-hero .hero-background .slide.active {
    opacity: 1;
}

.showcase-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hero Content (Left) */
.showcase-hero-content {
    width: 58%;
    max-width: 760px;
    z-index: 2;
    position: relative;
    padding-bottom: 40px; /* Ensures text never crowds bottom badges */
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.showcase-hero-content .hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 40px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.showcase-hero-content .hero-badge-pill i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.showcase-hero-content h1,
.showcase-hero-content .hero-main-title {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.3rem, 3.6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 18px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
    min-height: calc(1.22 * 2em); /* Reserve height so zero vertical jumping */
}

.showcase-hero-content .hero-title-static {
    color: #ffffff;
    font-weight: 800;
    display: inline;
}

.showcase-hero-content .type-accent {
    color: var(--primary-color);
    font-weight: 800;
    text-shadow: 0 0 25px rgba(245, 32, 8, 0.6), 0 2px 10px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

.showcase-hero-content .caret {
    display: inline-block;
    width: 3.5px;
    height: 0.95em;
    background: var(--primary-color);
    margin-left: 6px;
    vertical-align: -2px;
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(245, 32, 8, 0.7);
    animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.showcase-hero-content .tagline,
.showcase-hero-content .showcase-tagline {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.18rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    letter-spacing: 0.2px;
    margin-bottom: 0;
    max-width: 600px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* Hire Form (Right Column) */
.showcase-hero .hire-form {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    background-color: rgba(14, 18, 28, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 34px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 370px;
    max-width: 100%;
    z-index: 2;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}

.showcase-hero .hire-form h3 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.showcase-hero .hire-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(245, 32, 8, 0.7);
}

.showcase-hero .hire-form .form-group {
    position: relative;
    margin-bottom: 16px;
}

.showcase-hero .hire-form .form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.showcase-hero .hire-form input {
    width: 100%;
    padding: 13px 15px 13px 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.94rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.98);
    color: #1a202c;
    transition: var(--transition);
}

.showcase-hero .hire-form input::placeholder {
    color: #718096;
    font-weight: 400;
}

.showcase-hero .hire-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 32, 8, 0.25);
}

.showcase-hero .hire-form .submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f52008 0%, #db1700 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(245, 32, 8, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.showcase-hero .hire-form .submit-btn:hover {
    background: linear-gradient(135deg, #ff331c 0%, #e81900 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(245, 32, 8, 0.6);
}

/* Hero Center Feature Badges */
.hero-icons {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 34px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 14px 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.hero-icon {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-icon i {
    font-size: 26px;
    color: var(--light-text);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-icon-text {
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    font-size: 0.92rem;
    color: #ffffff;
}

.hero-icon-text .accent {
    color: var(--primary-color);
}

.hero-icon-divider {
    width: 3px;
    height: 52px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(245, 32, 8, 0.65);
}

/* Left-Corner Animated Badge */
.corner-badge {
    position: absolute;
    left: clamp(20px, 4vw, 64px);
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    z-index: 2;
}

.badge-left {
    font-weight: 800;
    font-size: 1.45rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.badge-divider {
    width: 3px;
    height: 48px;
    background: var(--primary-color);
    box-shadow: 0 0 12px rgba(245, 32, 8, 0.6);
    border-radius: 2px;
}

.badge-right {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   STICKY CATEGORY NAVIGATION BAR (Dedicated Non-Overlapping Bar)
   ========================================================================== */
.showcase-category-nav {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    transition: var(--transition);
}

.category-nav-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 clamp(20px, 4vw, 64px) !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-label i {
    color: var(--primary-color);
}

.nav-pills-scroll {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 3px 0;
}

.nav-pills-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.category-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: #edf2f7;
    border: 1px solid transparent;
    border-radius: 30px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.category-nav-pill i {
    color: #d95b43;
    font-size: 0.82rem;
    transition: transform 0.2s, color 0.2s;
}

/* Pleasant dedicated tones for sector icons */
.category-nav-pill[href="#residential"] i {
    color: #d95b43; /* Pleasant warm architectural terracotta */
}

.category-nav-pill[href="#commercial"] i {
    color: #3b82f6; /* Refined steel blue */
}

.category-nav-pill[href="#institutional"] i {
    color: #059669; /* Soft emerald */
}

.category-nav-pill[href="#hospitality"] i {
    color: #d97706; /* Warm amber gold */
}

.category-nav-pill[href="#interior"] i {
    color: #8b5cf6; /* Modern violet */
}

.category-nav-pill[href="#urban"] i {
    color: #0284c7; /* Cyan blue */
}

.category-nav-pill:hover {
    background: #ffffff;
    border-color: #d95b43;
    color: #d95b43;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 91, 67, 0.16);
}

.category-nav-pill.active {
    background: linear-gradient(135deg, #d84f38 0%, #b83c27 100%);
    border-color: #d84f38;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(200, 60, 40, 0.28);
}

.category-nav-pill.active i {
    color: #ffffff !important;
}

/* ==========================================================================
   CATEGORY SECTIONS & HORIZONTAL SLIDERS
   ========================================================================== */
.project-category {
    padding: 65px 0 75px;
    background-color: #ffffff;
    border-bottom: 1px solid #edf2f7;
    position: relative;
    scroll-margin-top: 130px; /* Ensures smooth scroll stops with header + nav offset */
}

.project-category.alt-bg {
    background-color: #f6f9fc;
}

.category-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 clamp(20px, 4vw, 64px) !important;
    box-sizing: border-box !important;
}

/* Category Section Header */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 20px;
}

.category-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0 0 8px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    letter-spacing: -0.5px;
}

/* Website signature red underline */
.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65px;
    height: 3.5px;
    background-color: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(245, 32, 8, 0.4);
}

.category-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    margin: 0;
    max-width: 650px;
}

/* Slider Controls & View All */
.category-controls-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.slider-nav-arrows {
    display: flex;
    gap: 8px;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.slider-arrow:hover:not(:disabled) {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 32, 8, 0.4);
}

.slider-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 12px;
}

.view-all-link i {
    transition: transform 0.2s ease;
}

.view-all-link:hover {
    color: var(--primary-hover);
}

.view-all-link:hover i {
    transform: translateX(5px);
}

/* Horizontal Slider Viewport & Track */
.project-category {
    overflow: visible !important;
    position: relative;
}

.category-slider-viewport {
    position: relative;
    width: 100%;
    overflow: visible; /* Prevents vertical clipping of lifted & expanded cards */
    padding: 20px 4px 30px;
}

.category-slider-track {
    display: flex;
    align-items: flex-start; /* Crucial: allows hovered card to expand height without forcing other cards to stretch */
    gap: 28px;
    overflow-x: auto;
    overflow-y: visible; /* Allows upward lift and downward spread */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-top: 85px; /* Ample top clearance so lifted card corners & shadows are never clipped */
    padding-bottom: 85px;
    margin-top: -65px;
    margin-bottom: -65px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-slider-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Category Progress Bar */
.category-slider-progress {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.category-slider-progress-bar {
    height: 100%;
    width: 25%;
    background: var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(245, 32, 8, 0.4);
    transition: width 0.2s ease;
}

/* ==========================================================================
   PROJECT CARDS – Lift Up In Half Screen, Instagram Reel & Multi-Angle Cycler
   ========================================================================== */
.showcase-card {
    flex: 0 0 380px;
    width: 380px;
    height: 500px;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), 
                height 0.5s cubic-bezier(0.19, 1, 0.22, 1),
                box-shadow 0.5s cubic-bezier(0.19, 1, 0.22, 1),
                border-color 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e2e8f0;
    will-change: transform, height, box-shadow;
    z-index: 2;
}

.showcase-card:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

/* Lift Up on Hover: Premium elevation with multi-depth ambient aura & crisp 1px ring */
.showcase-card:hover {
    transform: translateY(-28px) scale(1.02);
    height: 660px;
    z-index: 99;
    border-color: rgba(217, 91, 67, 0.5);
    box-shadow: 0 28px 65px -10px rgba(15, 23, 42, 0.22),
                0 14px 28px -6px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(217, 91, 67, 0.25),
                0 0 35px rgba(217, 91, 67, 0.14);
}

/* Media Viewport (Top Section of Card) */
.showcase-card-media {
    position: relative;
    width: 100%;
    height: 335px;
    min-height: 335px;
    overflow: hidden;
    background-color: #0b0f19;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: height 0.4s ease;
}

/* Top Badges (Category & Badges on Right) */
.card-top-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.card-top-badges-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.showcase-card-badge {
    padding: 6px 14px;
    background: linear-gradient(135deg, #d84f38 0%, #b83c27 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(200, 60, 40, 0.25);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.showcase-card:hover .showcase-card-badge {
    box-shadow: 0 6px 18px rgba(200, 60, 40, 0.4);
    transform: translateY(-2px) scale(1.04);
}

.card-angle-indicator {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.showcase-card:hover .card-angle-indicator {
    background: #111827;
    color: #ffffff;
    border-color: #374151;
}

/* Ambient Backdrop Glow */
.card-ambient-backdrop {
    position: absolute;
    inset: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    background: radial-gradient(circle at 50% 40%, rgba(216, 79, 56, 0.12) 0%, rgba(15, 23, 42, 0.7) 100%);
    filter: blur(20px);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.6s ease;
}

.showcase-card:hover .card-ambient-backdrop {
    transform: scale(1.08);
    filter: blur(28px);
}

/* Image Cycler (Auto switching views) */
.card-image-cycler {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #293345 0%, #111827 72%);
}

.cycler-img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 3;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.25));
    padding: 2px 6px;
}

.cycler-img.active {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.25)) brightness(1);
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.5s ease;
}

.showcase-card:hover .cycler-img.active {
    transform: scale(1.055);
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35)) brightness(1.03);
}

/* Angle Navigation Dots (Bottom of Media) */
.card-angle-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
}

.angle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}

.angle-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(245, 32, 8, 0.9);
}
/* Dynamic Light Sheen sweep */
.card-light-sheen {
    position: absolute;
    top: 0;
    left: -140%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 28%,
        rgba(255, 255, 255, 0.08) 42%,
        rgba(255, 255, 255, 0.38) 50%,
        rgba(217, 91, 67, 0.25) 58%,
        transparent 72%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 9;
}

.showcase-card:hover .card-light-sheen {
    left: 160%;
    transition: left 0.95s cubic-bezier(0.25, 1, 0.3, 1);
}

/* ==========================================================================
   CARD CONTENT SECTION – Spreads Out with Full Descriptions on Hover
   ========================================================================== */
.showcase-card-glass {
    position: relative;
    flex: 1;
    background: #ffffff;
    border-top: 1px solid #edf2f7;
    padding: 12px 18px 12px;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    z-index: 5;
}

.showcase-card:hover .showcase-card-glass {
    background: #ffffff;
    border-top-color: rgba(245, 32, 8, 0.25);
}

.card-glass-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    flex-shrink: 0; /* Protect metadata from being squeezed */
}

.showcase-card-glass .showcase-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0;
}

.showcase-card-glass .showcase-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.showcase-card-glass .showcase-card-meta i {
    color: #d95b43;
    font-size: 0.78rem;
}

.showcase-card-glass .card-sqft-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #1e293b;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.showcase-card-glass .showcase-card-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.36;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 2px;
    flex-shrink: 0; /* CRITICAL: Never allows title to be squeezed or cut off horizontally */
    transition: color 0.3s ease;
}

/* When hovered, full title is shown cleanly without being sliced or compressed */
.showcase-card:hover .showcase-card-glass .showcase-card-title {
    color: #0f172a;
    -webkit-line-clamp: unset;
    display: block;
    flex-shrink: 0;
}

/* Expandable Drawer – Spreads Out on Hover to fully display description */
.card-glass-drawer {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* CRITICAL: Allows inner description scroll without squashing siblings */
    margin-top: 2px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card-glass .showcase-card-description {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.45;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

/* On hover: description expands cleanly up to 4 lines */
.showcase-card:hover .showcase-card-glass .showcase-card-description,
.showcase-card-glass .showcase-card-description:hover {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    max-height: 5.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 4px;
    color: #334155;
    animation: drawerFadeIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes drawerFadeIn {
    from {
        opacity: 0.7;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.showcase-card-glass .showcase-card-description::-webkit-scrollbar {
    width: 4px;
}

.showcase-card-glass .showcase-card-description::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.showcase-card-glass .showcase-card-description::-webkit-scrollbar-thumb {
    background: rgba(217, 91, 67, 0.45);
    border-radius: 4px;
}

/* Card Action Footer */
.showcase-card-glass .showcase-card-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.showcase-card-glass .showcase-card-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: #d95b43;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    padding: 2px 0;
}

.showcase-card-glass .showcase-card-link i {
    font-size: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card-glass .showcase-card-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 3px;
}

.showcase-card:hover .showcase-card-link {
    color: #b83c27;
}

.showcase-card:hover .showcase-card-link i {
    transform: translateX(6px);
}

.showcase-card-glass .showcase-card-footer {
    flex-wrap: wrap;
}

.showcase-card-glass .showcase-social-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border: 1px solid rgba(25, 26, 28, .12);
    border-radius: 999px;
    color: #4b5563;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.showcase-card-glass .showcase-social-link:hover {
    border-color: rgba(233, 35, 46, .28);
    background: rgba(233, 35, 46, .06);
    color: #e9232e;
}

.showcase-card-glass .showcase-social-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.showcase-card-glass .showcase-social-link i {
    font-size: .8rem;
}

.card-angle-indicator,
.card-wa-direct,
.card-full-view-hint {
    display: none !important;
}

/* ==========================================================================
   CALL TO ACTION BANNER – High Impact Dark Brand Theme
   ========================================================================== */
.cta-section {
    padding: 85px 5%;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a202c 100%);
    color: var(--light-text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(245, 32, 8, 0.8);
}

.cta-section .cta-content h2 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-section .cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    margin: 0 auto 34px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(245, 32, 8, 0.4);
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(245, 32, 8, 0.6);
    color: #ffffff;
}

.cta-button.secondary {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: none;
}

.cta-button.secondary:hover {
    background-color: #ffffff;
    color: var(--secondary-color);
    border-color: #ffffff;
}

/* ==========================================================================
   LIGHTBOX MODAL – Cinematic Gallery
   ========================================================================== */
.project-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    background: #ffffff;
    border-radius: 18px;
    width: 92%;
    max-width: 1140px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.lightbox-media {
    position: relative;
    background: #000000;
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.lightbox-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.lightbox-carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-carousel-item.active {
    opacity: 1;
}

.lightbox-carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-carousel-nav.prev { left: 16px; }
.lightbox-carousel-nav.next { right: 16px; }

.lightbox-carousel-nav:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.lightbox-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-indicator.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.lightbox-info {
    padding: 36px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.lightbox-info h3 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.3;
    margin: 0 0 16px;
}

.lightbox-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 20px;
}

.lightbox-meta span {
    font-size: 0.85rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-meta span i {
    color: var(--primary-color);
}

.lightbox-description {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 24px;
}

.lightbox-description p {
    margin: 0 0 12px;
}

.lightbox-actions {
    margin-top: auto;
    padding-top: 20px;
}

.lightbox-cta-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: #25d366;
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.lightbox-cta-wa:hover {
    background: #1ebc59;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

.lightbox-action-row {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.lightbox-cta-wa {
    flex: 0 1 160px;
    max-width: 160px;
    width: auto;
    box-sizing: border-box;
}

.lightbox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: .6rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    font-family: inherit;
    box-sizing: border-box;
}

.lightbox-btn-view {
    flex: 0 1 160px;
    max-width: 160px;
    background: transparent;
    color: #242321;
    border-color: #d1d5db;
}

.lightbox-btn-view:hover {
    background: #eef0f3;
    border-color: #9ca3af;
    color: #111827;
}

.lightbox-btn-share {
    flex: 0 0 32px;
    padding: 0;
    background: transparent;
    color: #6b7280;
    border-color: #d1d5db;
}

.lightbox-btn-share i {
    font-size: .72rem;
    color: #6b7280;
}

.lightbox-btn-share:hover {
    background: #eef0f3;
    color: #111827;
    border-color: #9ca3af;
}

.share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   BACKWARDS COMPATIBILITY (for projects-listing.html)
   ========================================================================== */
.blur-box-container {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    width: 60%;
    margin-left: 5%;
    display: flex;
    justify-content: flex-start;
}

.blur-background-box {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 60px;
    border-radius: 8px;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 1280px) {
    .corner-badge {
        display: none; /* Prevents crowding on medium desktop screens */
    }
}

@media (max-width: 1100px) {
    .showcase-hero-content {
        width: 54%;
    }
    .showcase-card {
        flex: 0 0 340px;
        width: 340px;
    }
}

@media (max-width: 992px) {
    .showcase-hero {
        flex-direction: column;
        align-items: flex-start;
        height: auto !important;
        min-height: 100vh !important;
        padding: 120px 5% 90px;
        gap: 36px;
    }
    .showcase-hero-content {
        width: 100%;
        max-width: 100%;
        padding-bottom: 20px;
    }
    .showcase-hero .hire-form {
        width: 100%;
        max-width: 420px;
    }
    .hero-icons {
        bottom: 12px;
        gap: 16px;
        padding: 10px 18px;
    }
    .corner-badge {
        display: none;
    }
    .lightbox-content {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }
    .lightbox-media {
        min-height: 320px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .showcase-hero {
        padding: 110px 5% 50px;
    }
    .hero-icons {
        display: none;
    }
    .showcase-category-nav {
        top: 60px;
    }
    .nav-label {
        display: none;
    }
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .category-controls-group {
        width: 100%;
        justify-content: space-between;
    }
    .showcase-card {
        flex: 0 0 310px;
        width: 310px;
        height: 480px;
    }
    .showcase-card-media {
        height: 315px;
        min-height: 315px;
    }
    .showcase-card:hover {
        transform: translateY(-24px) scale(1.01);
        height: 560px;
    }
    .card-glass-drawer {
        margin-top: 6px;
    }
    .showcase-card-glass .showcase-card-title {
        font-size: 1.05rem;
        line-height: 1.4;
    }
    .showcase-card-glass .showcase-card-description {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .showcase-card:hover .showcase-card-glass .showcase-card-description,
    .showcase-card-glass .showcase-card-description:hover {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        max-height: 5.8em;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (hover: none) {
    .showcase-card:hover {
        transform: none;
        height: 500px;
        z-index: 2;
    }

    .showcase-card:hover .cycler-img.active {
        transform: scale(1);
    }
}

@media (hover: none) and (max-width: 768px) {
    .showcase-card:hover {
        height: 480px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.showcase-body {
        scroll-behavior: auto;
    }

    body.showcase-body *,
    body.showcase-body *::before,
    body.showcase-body *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.showcase-page .lightbox-content {
    position: relative;
    display: block;
    width: min(1440px, 96vw);
    height: min(860px, 90vh);
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 12px;
    background: #e7e2d9;
    perspective: 1800px;
}

.showcase-page .lightbox-media {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    padding: clamp(18px, 2.2vw, 32px);
    border: 0;
    background: #e7e2d9;
}

.showcase-page .lightbox-carousel {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.showcase-page .lightbox-carousel-container {
    gap: clamp(8px, 1vw, 14px);
}

.showcase-page .lightbox-image-slot {
    border-color: rgba(46, 43, 37, .16);
    border-radius: 7px;
    box-shadow: 0 12px 32px rgba(39, 36, 31, .12);
}

.showcase-page .lightbox-image-slot img {
    object-fit: cover;
}

.showcase-page .lightbox-info {
    position: absolute;
    z-index: 15;
    right: auto;
    bottom: clamp(24px, 4vw, 52px);
    left: clamp(24px, 4vw, 52px);
    display: flex;
    width: min(540px, 48%);
    max-width: calc(100% - 48px);
    max-height: 72%;
    padding: 24px 28px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 8px;
    background: rgba(251, 250, 247, .96);
    box-shadow: 0 18px 56px rgba(22, 24, 27, .24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.showcase-page .lightbox-info::before {
    width: 3px;
    background: #e9232e;
}

.showcase-page .lightbox-eyebrow {
    margin-bottom: 9px;
    font-size: .58rem;
}

.showcase-page .lightbox-info h3 {
    margin-bottom: 12px;
    padding-bottom: 12px;
    font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

.showcase-page .lightbox-meta {
    gap: 9px 14px;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.showcase-page .lightbox-meta span {
    font-size: .76rem;
}

.showcase-page .lightbox-description {
    flex: 0 1 auto;
    max-height: min(22vh, 220px);
    padding-right: 7px;
    font-size: .82rem;
    line-height: 1.62;
}

.showcase-page .lightbox-description p {
    margin-bottom: 12px;
}

.showcase-page .lightbox-actions {
    margin-top: 10px;
    padding-top: 12px;
}

.showcase-page .lightbox-cta-wa {
    min-height: 48px;
    padding: 12px 16px;
}

.showcase-page .lightbox-close {
    z-index: 20;
    top: 16px;
    right: 16px;
}

@media (max-width: 860px) {
    .showcase-page .project-lightbox {
        padding: 12px;
    }

    .showcase-page .lightbox-content {
        display: block;
        width: min(760px, 96vw);
        height: min(900px, 94vh);
        max-height: 94vh;
    }

    .showcase-page .lightbox-media {
        padding: 18px;
        border: 0;
    }

    .showcase-page .lightbox-info {
        right: 18px;
        bottom: 18px;
        left: 18px;
        width: min(540px, calc(100% - 36px));
        max-width: none;
        max-height: 58%;
        margin-left: 0;
        padding: 20px 24px 16px;
    }

    .showcase-page .lightbox-description {
        max-height: 18vh;
    }
}

@media (max-width: 560px) {
    .showcase-page .project-lightbox {
        padding: 0;
    }

    .showcase-page .lightbox-content {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .showcase-page .lightbox-media {
        padding: 10px;
    }

    .showcase-page .lightbox-carousel-container {
        gap: 7px;
    }

    .showcase-page .lightbox-image-slot {
        border-radius: 5px;
    }

    .showcase-page .lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .showcase-page .lightbox-carousel-nav {
        width: 36px;
        height: 36px;
    }

    .showcase-page .lightbox-carousel-nav.prev {
        left: 8px;
    }

    .showcase-page .lightbox-carousel-nav.next {
        right: 8px;
    }

    .showcase-page .lightbox-info {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-height: 56%;
        padding: 16px 18px 12px;
    }

    .showcase-page .lightbox-eyebrow {
        margin-right: 42px;
        margin-bottom: 6px;
        font-size: .5rem;
    }

    .showcase-page .lightbox-info h3 {
        margin-bottom: 9px;
        padding-bottom: 9px;
        font-size: clamp(1.3rem, 5.7vw, 1.7rem);
    }

    .showcase-page .lightbox-meta {
        gap: 6px 9px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .showcase-page .lightbox-meta span {
        gap: 5px;
        font-size: .66rem;
    }

    .showcase-page .lightbox-description {
        max-height: 14vh;
        font-size: .73rem;
        line-height: 1.5;
    }

    .showcase-page .lightbox-actions {
        margin-top: 7px;
        padding-top: 7px;
    }

    .showcase-page .lightbox-cta-wa {
        min-height: 42px;
        padding: 9px 12px;
        font-size: .74rem;
    }
}

.showcase-page .project-lightbox .lightbox-content {
    position: relative;
    display: block;
    background: #e7e2d9;
}

.showcase-page .project-lightbox .lightbox-media {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    padding: clamp(18px, 2.2vw, 32px);
    border: 0;
}

.showcase-page .project-lightbox .lightbox-carousel {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.showcase-page .project-lightbox .lightbox-carousel-container {
    gap: clamp(8px, 1vw, 14px);
}

.showcase-page .project-lightbox .lightbox-info {
    position: absolute;
    z-index: 15;
    right: auto;
    bottom: clamp(24px, 4vw, 52px);
    left: clamp(24px, 4vw, 52px);
    width: min(540px, 48%);
    max-width: calc(100% - 48px);
    max-height: 72%;
    padding: 24px 28px 20px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 8px;
    background: rgba(251, 250, 247, .96);
    box-shadow: 0 18px 56px rgba(22, 24, 27, .24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.showcase-page .project-lightbox .lightbox-info::before {
    width: 3px;
}

.showcase-page .project-lightbox .lightbox-close {
    z-index: 20;
}

@media (max-width: 860px) {
    .showcase-page .project-lightbox .lightbox-content {
        display: block;
        width: min(760px, 96vw);
        height: min(900px, 94vh);
        max-height: 94vh;
    }

    .showcase-page .project-lightbox .lightbox-media {
        padding: 18px;
        border: 0;
    }

    .showcase-page .project-lightbox .lightbox-info {
        right: 18px;
        bottom: 18px;
        left: 18px;
        width: min(540px, calc(100% - 36px));
        max-width: none;
        max-height: 58%;
        padding: 20px 24px 16px;
    }
}

@media (max-width: 560px) {
    .showcase-page .project-lightbox .lightbox-content {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .showcase-page .project-lightbox .lightbox-media {
        padding: 10px;
    }

    .showcase-page .project-lightbox .lightbox-info {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-height: 56%;
        padding: 16px 18px 12px;
    }
}

/* Showcase refresh: keep project details visible and reveal more on deliberate hover. */
.showcase-page .showcase-category-nav {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.showcase-page .project-category.alt-bg {
    background-color: #faf8f4;
}

.showcase-page .category-slider-viewport {
    overflow: hidden;
    padding: 8px 4px 18px;
}

.showcase-page .category-slider-track {
    align-items: flex-start;
    gap: 20px;
    overflow-y: hidden;
    padding: 20px 6px 16px;
    margin: 0;
    overscroll-behavior-x: contain;
}

.showcase-page .showcase-card {
    flex: 0 0 clamp(300px, 21.5vw, 400px);
    width: clamp(300px, 21.5vw, 400px);
    height: 470px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.42s ease,
                border-color 0.32s ease;
    will-change: auto;
}

.showcase-page .showcase-card.card-expanded {
    height: 530px;
    transform: translateY(-4px) scale(1.008);
    z-index: 20;
    border-color: rgba(217, 91, 67, 0.7);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.18),
                0 6px 18px rgba(217, 91, 67, 0.12);
}

.showcase-page .showcase-card-media {
    height: 292px;
    min-height: 292px;
    background: #f4f1eb;
    transition: none;
}

.showcase-page .card-ambient-backdrop {
    display: none;
}

.showcase-page .card-image-cycler {
    background: #f4f1eb;
}

.showcase-page .cycler-img,
.showcase-page .cycler-img.active,
.showcase-page .showcase-card:hover .cycler-img.active {
    padding: 8px;
    filter: none;
    transform: none;
    transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-page .showcase-card.card-expanded .cycler-img.active {
    transform: scale(1.025);
}

.showcase-page .showcase-card:hover .showcase-card-badge {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.18);
}

.showcase-page .card-angle-indicator {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.showcase-page .showcase-card:hover .card-angle-indicator {
    background: rgba(255, 255, 255, 0.92);
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.08);
}

.showcase-page .card-angle-dots {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.showcase-page .card-light-sheen {
    display: block;
    left: -140%;
    transition: none;
}

.showcase-page .showcase-card.card-expanded .card-light-sheen {
    left: 160%;
    transition: left 0.85s cubic-bezier(0.25, 1, 0.3, 1);
}

.showcase-page .showcase-card-glass {
    padding: 12px 16px 14px;
}

.showcase-page .card-glass-top {
    align-items: flex-start;
    gap: 6px 10px;
    flex-wrap: wrap;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-page .showcase-card.card-expanded .card-glass-top {
    transform: translateY(-2px);
}

.showcase-page .showcase-card-glass .showcase-card-meta {
    flex-wrap: wrap;
    gap: 4px 12px;
}

.showcase-page .showcase-card-glass .showcase-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: #1f2937;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.showcase-page .showcase-card:hover .showcase-card-glass .showcase-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: #b83c27;
}

.showcase-page .card-glass-drawer {
    margin-top: 0;
}

.showcase-page .showcase-card-glass .showcase-card-description,
.showcase-page .showcase-card:hover .showcase-card-glass .showcase-card-description,
.showcase-page .showcase-card-glass .showcase-card-description:hover {
    display: block;
    font-size: 0.8rem;
    line-height: 1.45;
    max-height: 1.45em;
    overflow: hidden;
    padding: 0;
    opacity: 0.88;
    transform: translateY(3px);
    transition: max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
                opacity 0.28s ease 0.04s,
                transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}

.showcase-page .showcase-card.card-expanded .showcase-card-glass .showcase-card-description {
    max-height: 5.8em;
    opacity: 1;
    transform: translateY(0);
}

.showcase-page .showcase-card-glass .showcase-card-footer {
    padding-top: 8px;
}

.showcase-page .showcase-card-glass .showcase-card-link {
    font-size: 0.84rem;
    padding: 5px 0;
}

.showcase-page .showcase-card-glass .showcase-card-link i {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-page .showcase-card:hover .showcase-card-link i {
    transform: translateX(4px);
}

.showcase-page .cta-section {
    background: #f7f8fa;
    color: #334155;
}

.showcase-page .cta-section::before {
    box-shadow: none;
}

.showcase-page .cta-section .cta-content h2 {
    color: #1f2937;
}

.showcase-page .cta-section .cta-content p {
    color: #526174;
}

.showcase-page .cta-button.secondary {
    background: #ffffff;
    border-color: #d7dde5;
    color: #334155;
}

.showcase-page .cta-button.secondary:hover {
    background: #f1f5f9;
    color: #1f2937;
    border-color: #cbd5e1;
}

.showcase-page .project-lightbox {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.showcase-page .lightbox-media {
    background: #f4f1eb;
}

.showcase-page .lightbox-carousel-item img {
    box-sizing: border-box;
    padding: 18px;
}

@media (max-width: 1100px) {
    .showcase-page .showcase-card {
        flex-basis: 330px;
        width: 330px;
    }
}

@media (max-width: 768px) {
    .showcase-page .showcase-card {
        flex: 0 0 clamp(270px, 82vw, 330px);
        width: clamp(270px, 82vw, 330px);
        height: 460px;
    }

    .showcase-page .showcase-card.card-expanded {
        height: 460px;
    }

    .showcase-page .showcase-card-media {
        height: 280px;
        min-height: 280px;
    }
}

@media (hover: none) {
    .showcase-page .showcase-card:hover {
        transform: none;
        height: 470px;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    }

    .showcase-page .showcase-card.card-expanded .showcase-card-glass .showcase-card-description {
        max-height: 1.45em;
        opacity: 0.88;
    }
}

@media (hover: none) and (max-width: 768px) {
    .showcase-page .showcase-card:hover {
        height: 460px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-page .category-slider-track {
        scroll-behavior: auto !important;
    }

    .showcase-page .showcase-card,
    .showcase-page .cycler-img,
    .showcase-page .showcase-card-glass .showcase-card-description,
    .showcase-page .showcase-card-glass .showcase-card-link i {
        transition-duration: 0.01ms !important;
    }

    .showcase-page .showcase-card.card-expanded,
    .showcase-page .showcase-card.card-expanded .cycler-img.active {
        transform: none;
    }

    .showcase-page .card-light-sheen {
        display: none;
    }
}

/* ==========================================================================
   FLUID RESPONSIVE AUTO-RESIZING (No Fixed Widths / Seamless 100% Viewport)
   ========================================================================== */
html, body.showcase-body {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

.showcase-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hero Section: edge-to-edge auto-resizing */
.showcase-hero {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 130px clamp(20px, 4vw, 64px) 115px !important;
    box-sizing: border-box !important;
}

.showcase-hero .hero-background {
    width: 100% !important;
    height: 100% !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* Sticky Category Nav: edge-to-edge auto-resizing */
.showcase-category-nav {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.category-nav-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 clamp(20px, 4vw, 64px) !important;
    box-sizing: border-box !important;
}

/* Project Categories: edge-to-edge auto-resizing */
.project-category {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.category-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 clamp(20px, 4vw, 64px) !important;
    box-sizing: border-box !important;
}

.showcase-page .category-slider-viewport {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.showcase-page .category-slider-track {
    width: 100% !important;
    box-sizing: border-box !important;
    gap: clamp(16px, 1.8vw, 30px) !important;
}

/* Call to Action: edge-to-edge auto-resizing */
.showcase-page .cta-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 70px clamp(20px, 4vw, 64px) !important;
    box-sizing: border-box !important;
}

.showcase-page .cta-section .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Footer: edge-to-edge auto-resizing */
#new-footer {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#new-footer .container,
#new-footer .footer-content,
#new-footer .footer-bottom,
#new-footer .footer-legal {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: clamp(20px, 4vw, 64px) !important;
    padding-right: clamp(20px, 4vw, 64px) !important;
    box-sizing: border-box !important;
}

/* Portfolio refresh */
.showcase-page .showcase-portfolio-hero {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    padding: 0 0 26px !important;
    color: #191a1c;
    background: #f7f8fa;
}

.showcase-page .showcase-portfolio-hero::before {
    display: none;
}

.showcase-portfolio-intro {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.25rem, 3vw, 2rem);
    width: 100%;
    max-width: none;
    min-height: max(
        clamp(500px, 45vw, 600px),
        100vh
    );
    margin: 0;
    padding: calc(var(--header-height, 80px) + clamp(1.25rem, 4vw, 4rem)) clamp(1.25rem, 4vw, 4rem) clamp(1.25rem, 4vw, 4rem);
    box-sizing: border-box;
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(248, 246, 242, .9) 0%, rgba(248, 246, 242, .82) 30%, rgba(248, 246, 242, .44) 52%, rgba(248, 246, 242, .04) 100%),
        url("hero-architecture.jpg") center 44% / cover no-repeat;
}

.showcase-portfolio-intro::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(248, 246, 242, .96) 0%, rgba(248, 246, 242, .86) 26%, rgba(248, 246, 242, .5) 52%, rgba(248, 246, 242, .12) 80%, rgba(248, 246, 242, 0) 100%),
        linear-gradient(180deg, rgba(248, 246, 242, .3) 0%, rgba(248, 246, 242, 0) 24%);
}

.showcase-intro-copy {
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    min-width: 0;
    max-width: 760px;
    text-align: center;
}

.showcase-page .showcase-portfolio-hero .portfolio-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 .9rem;
    padding: .38rem .72rem;
    border: 1px solid rgba(25, 26, 28, .14);
    border-radius: 999px;
    background: rgba(248, 246, 242, .52);
    color: #34373b;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-right: auto;
    margin-left: auto;
    animation: portfolio-line-reveal .55s .05s both;
}

.showcase-page .showcase-portfolio-hero .portfolio-eyebrow i {
    color: #e9232e;
    font-size: .8rem;
}

.portfolio-eyebrow span {
    margin: 0 .35rem;
    color: #e9232e;
}

.showcase-intro-copy h1 {
    margin: 0;
    color: #191a1c;
    font: 500 clamp(2.5rem, 3.8vw, 3.55rem)/.99 Georgia, serif;
    letter-spacing: -.06em;
    text-wrap: initial;
    text-align: center;
    min-height: 1.98em;
    text-shadow: 0 2px 14px rgba(248, 246, 242, .9);
    animation: portfolio-line-fade .65s .18s both;
}

.hero-title-lines {
    display: block;
    text-align: center;
}

.hero-title-line {
    display: block;
    color: #191a1c;
    font: 500 clamp(2.5rem, 3.8vw, 3.55rem)/1.04 Georgia, serif;
    letter-spacing: -.06em;
    text-align: center;
    min-height: 1.04em;
    text-shadow: 0 2px 14px rgba(248, 246, 242, .9);
    animation: portfolio-line-reveal .55s .05s both;
}

.hero-title-line .hero-title-phrase {
    color: #e9232e;
}

.hero-title-line .hero-title-caret {
    display: inline-block;
    width: 2px;
    margin-left: 2px;
    height: 1em;
    vertical-align: baseline;
    background: #191a1c;
    animation: hero-caret-blink .9s steps(1) infinite;
}

.hero-title-line .hero-title-caret.hide {
    opacity: 0;
    animation: none;
}

@keyframes hero-caret-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #0f172a;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-layer.active {
    opacity: 1;
}

.portfolio-typewriter-slot {
    position: relative;
    display: inline-block;
    height: 1em;
    vertical-align: baseline;
}

.portfolio-typewriter-word,
.portfolio-typewriter-reserve,
.portfolio-tagline-accent,
.portfolio-typewriter-phrase {
    color: #e9232e;
}

.portfolio-typewriter-word {
    position: absolute;
    top: .12em;
    left: 0;
    display: block;
    color: #191a1c;
    line-height: 1;
    white-space: nowrap;
    transform-origin: left center;
    transition:
        opacity .24s ease,
        transform .32s cubic-bezier(.2, .75, .25, 1),
        filter .24s ease;
}

.portfolio-typewriter-word.is-changing {
    opacity: 0;
    transform: translateY(.2em) scale(.985);
    filter: blur(3px);
}

.portfolio-typewriter-reserve {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    visibility: hidden;
    line-height: 1;
    white-space: nowrap;
}

.portfolio-typewriter-caret {
    display: inline-block;
    width: .065em;
    height: .82em;
    margin-left: .08em;
    background: #e9232e;
    vertical-align: -.04em;
    animation: portfolio-caret-blink 1s steps(1, end) infinite;
}

.portfolio-tagline {
    text-align: center;
    animation: portfolio-line-fade .55s .32s both;
}

.portfolio-location-card {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    max-width: min(360px, 100%);
    margin-top: .8rem;
    padding: .35rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    vertical-align: top;
}

.portfolio-location-card > i {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 auto;
    place-items: center;
    color: #e9232e;
    font-size: .75rem;
    border: 1px solid rgba(233, 35, 46, .22);
    border-radius: 50%;
    background: rgba(248, 246, 242, .62);
}

.portfolio-location-label {
    color: rgba(25, 26, 28, .58);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    white-space: nowrap;
}

.portfolio-location-label::after {
    content: "/";
    margin-left: .55rem;
    color: rgba(25, 26, 28, .32);
}

.portfolio-location-value {
    display: block;
    color: #191a1c;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    transition: opacity .22s ease, transform .22s ease;
}

.portfolio-location-value.is-changing {
    opacity: 0;
    transform: translateY(5px);
}

.portfolio-tagline::before {
    content: "";
    display: block;
    width: min(240px, 60%);
    height: 14px;
    margin: .55rem auto .35rem;
    background:
        radial-gradient(circle, #e9232e 0 4px, transparent 4.5px) center / 10px 10px no-repeat,
        linear-gradient(90deg, transparent, rgba(25, 26, 28, .2), transparent) center / 100% 1px no-repeat;
}

.portfolio-tagline-accent {
    font-weight: 700;
}

@keyframes portfolio-line-reveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes portfolio-line-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes portfolio-caret-blink {
    50% { opacity: 0; }
}

.showcase-intro-copy > p:last-child {
    max-width: 480px;
    margin: .9rem 0 0;
    color: #4b4f55;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(248, 246, 242, .6);
}

@media (min-width: 1001px) {
    .showcase-intro-copy {
        align-self: flex-start;
        text-align: left;
    }

    .showcase-page .showcase-portfolio-hero .portfolio-eyebrow {
        margin-right: auto;
        margin-left: 0;
    }

    .showcase-intro-copy h1,
    .portfolio-tagline {
        text-align: left;
    }

    .portfolio-tagline::before {
        margin-left: 0;
    }
}

@media (max-width: 1000px) {
    .showcase-portfolio-intro {
        align-items: stretch;
        flex-direction: column;
        min-height: 0;
    }

    .showcase-page .showcase-portfolio-hero .hire-form {
        flex-basis: auto;
        width: min(420px, 100%);
    }

}

.showcase-page .showcase-portfolio-hero .hire-form {
    position: relative;
    z-index: 2;
    top: auto;
    right: auto;
    z-index: 2;
    flex: 0 0 300px;
    width: 300px;
    max-width: 100%;
    min-height: 284px;
    box-sizing: border-box;
    padding: 1.35rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 20px;
    background: rgba(25, 29, 34, .42);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .12);
    color: #fff;
    backdrop-filter: blur(26px) saturate(145%);
    -webkit-backdrop-filter: blur(26px) saturate(145%);
}

.showcase-page .showcase-portfolio-hero .hire-form form {
    position: relative;
    padding-bottom: 0;
}

.showcase-page .showcase-portfolio-hero .hire-form #shf-msg {
    position: static;
    min-height: 0;
    margin-top: .65rem !important;
    box-sizing: border-box;
}

.showcase-page .showcase-portfolio-hero .hire-form h3 {
    margin: 0 0 .9rem;
    padding-bottom: .7rem;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.showcase-page .showcase-portfolio-hero .hire-form h3::after {
    display: block;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: #f52008;
    box-shadow: 0 0 14px rgba(245, 32, 8, .45);
}

.showcase-page .showcase-portfolio-hero .hire-form .form-group {
    display: flex;
    align-items: center;
    min-height: 46px;
    margin-bottom: .55rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: inset 0 1px 2px rgba(18, 22, 28, .06);
}

.showcase-page .showcase-portfolio-hero .hire-form .form-group i {
    left: 17px;
    color: #f52008;
    font-size: .95rem;
}

.showcase-page .showcase-portfolio-hero .hire-form input {
    min-height: 44px;
    padding: 10px 14px 10px 42px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: #25262a;
    font-size: .9rem;
    box-shadow: none;
}

.showcase-page .showcase-portfolio-hero .hire-form input::placeholder {
    color: #929398;
}

.showcase-page .showcase-portfolio-hero .hire-form .submit-btn {
    min-height: 46px;
    margin-top: .2rem;
    border: 0;
    border-radius: 999px;
    background: #f52008;
    font-size: .86rem;
    box-shadow: 0 8px 20px rgba(245, 32, 8, .28);
}

.showcase-page .showcase-portfolio-hero .hire-form .submit-btn:hover {
    background: #d91c08;
    box-shadow: 0 10px 24px rgba(245, 32, 8, .36);
}

.showcase-page .showcase-portfolio-hero .hire-form #shf-msg {
    color: #d1fae5 !important;
    background: rgba(16, 185, 129, .2) !important;
    border-color: rgba(110, 231, 183, .28) !important;
}

@media (min-width: 761px) {
    .showcase-page .showcase-portfolio-hero .hire-form {
        transform: translateY(-18px);
    }
}

.showcase-page .featured-section {
    position: relative;
    z-index: 1;
    isolation: isolate;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-sizing: border-box;
    --featured-front-left: 19%;
    --featured-front-width: 62%;
    --featured-copy-inset: 6%;
    width: min(1040px, 100%);
    height: clamp(310px, 20vw, 370px);
    min-height: 0;
    flex: 0 0 auto;
    margin: 1rem auto 0;
    overflow: visible;
    color: #fff;
}

.showcase-page .featured-section::before {
    position: absolute;
    z-index: -1;
    inset-block: -14px;
    left: 50%;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
    border: 1px solid rgba(203, 213, 225, .72);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .96) 0%, rgba(241, 245, 249, .92) 58%, rgba(226, 232, 240, .9) 100%),
        #f1f5f9;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .86);
    backdrop-filter: blur(24px) saturate(105%);
    -webkit-backdrop-filter: blur(24px) saturate(105%);
    content: "";
    pointer-events: none;
}

@media (max-width: 760px) {
    .showcase-page .featured-section::before {
        width: calc(100vw - 2rem);
    }
}

.showcase-page .featured-section[hidden] {
    display: none !important;
}

.showcase-page .stack-stage {
    position: absolute;
    inset: 0;
    height: auto;
    margin: 0;
    overflow: visible;
    perspective: none;
    transform-style: flat;
    isolation: isolate;
    touch-action: pan-y;
}

.showcase-page .deck-card {
    position: absolute;
    top: 8%;
    left: 0;
    width: 43%;
    height: 83%;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    border: 1px solid #fff9;
    border-radius: 8px;
    background: #414342;
    box-shadow: 0 16px 38px #191a1c35;
    transform-style: flat;
    transition: opacity .55s ease;
}

.showcase-page .deck-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.9);
}

.showcase-page .stack-back-left {
    left: 0;
    z-index: 3;
    transform: translateX(4%) rotateZ(-2deg);
    opacity: .9;
}

.showcase-page .stack-back-left.stack-depth-2 {
    left: -3%;
    z-index: 2;
    transform: translateX(-1%) rotateZ(-5deg);
    opacity: .82;
}

.showcase-page .stack-back-left.stack-depth-3 {
    left: -6%;
    z-index: 1;
    transform: translateX(-2%) rotateZ(-8deg);
    opacity: .72;
}

.showcase-page .stack-front {
    top: 1%;
    left: var(--featured-front-left);
    z-index: 4;
    width: var(--featured-front-width);
    height: 96%;
    transform: none;
    border-radius: 10px;
    background: #282c2d;
}

.showcase-page .stack-front .deck-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    background: #282c2d;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .86) 55%, #000 78%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .86) 55%, #000 78%);
    filter: none;
}

.showcase-page .stack-front::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 22, 23, .88) 0%, rgba(18, 22, 23, .68) 38%, rgba(18, 22, 23, .18) 68%, transparent 88%);
    content: "";
    pointer-events: none;
}

.showcase-page .stack-back-right {
    left: 57%;
    z-index: 3;
    transform: translateX(-4%) rotateZ(2deg);
    opacity: .9;
}

.showcase-page .stack-back-right.stack-depth-2 {
    left: 60%;
    z-index: 2;
    transform: translateX(1%) rotateZ(5deg);
    opacity: .82;
}

.showcase-page .stack-back-right.stack-depth-3 {
    left: 63%;
    z-index: 1;
    transform: translateX(2%) rotateZ(8deg);
    opacity: .72;
}

.showcase-page .featured-section:hover .stack-front {
    filter: brightness(1.03);
}

.showcase-page .featured-shade {
    display: none;
}

.showcase-page .featured-copy {
    position: absolute;
    z-index: 6;
    top: 12%;
    left: calc(var(--featured-front-left) + var(--featured-copy-inset));
    width: calc(var(--featured-front-width) - 2 * var(--featured-copy-inset));
    max-width: none;
    padding: 0;
    pointer-events: none;
}

.showcase-page .featured-kicker {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .65rem;
    color: #fff;
    font-size: .62rem;
    letter-spacing: .14em;
}

.showcase-page .featured-kicker i {
    font-style: normal;
    opacity: .65;
}

.showcase-page .featured-kicker b {
    margin-left: .5rem;
    color: #ff777e;
    font-size: .56rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.showcase-page .featured-copy h2 {
    display: block;
    min-height: 0;
    max-width: 18ch;
    margin: 0 0 .5rem;
    color: #fff;
    font: italic 400 clamp(1.7rem, 2.4vw, 2.55rem)/.98 Georgia, serif;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.showcase-page .featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .8rem;
    margin: 0;
    color: #fff;
    font-size: .58rem;
}

.showcase-page .featured-meta span + span::before {
    margin-right: .65rem;
    color: #ff777e;
    content: "·";
}

.showcase-page .featured-description {
    display: -webkit-box;
    max-width: 370px;
    margin: .55rem 0;
    overflow: hidden;
    color: #f1f1ef;
    font-size: .62rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.showcase-page .featured-project-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-height: 32px;
    padding: .45rem .75rem;
    border: 0;
    border-radius: 4px;
    background: #e9232e;
    color: #fff;
    font: inherit;
    font-size: .65rem;
    cursor: pointer;
    pointer-events: auto;
    transition: background .2s ease, gap .2s ease;
}

.showcase-page .featured-project-link:hover {
    gap: 1.25rem;
    background: #c91520;
}

.showcase-page .featured-carousel-controls {
    display: none;
}

.showcase-page .featured-carousel-controls button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #ffffff85;
    border-radius: 50%;
    background: #191a1c54;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.showcase-page .featured-carousel-controls button:hover {
    transform: translateY(-2px);
    background: #e9232e;
}

.showcase-page .featured-carousel-controls button:focus-visible,
.showcase-page .featured-project-link:focus-visible,
.showcase-page .stack-stage:focus-visible {
    outline: 2px solid #e9232e;
    outline-offset: 3px;
}

.showcase-page .featured-section.is-single-slide .stack-back-left,
.showcase-page .featured-section.is-single-slide .stack-back-right {
    display: none;
}

.showcase-page .featured-counter {
    margin-left: .25rem;
    color: #fff;
    font-size: .62rem;
    letter-spacing: .08em;
}

.showcase-page .featured-progress {
    display: none;
}

.showcase-page .featured-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
}

@keyframes featured-countdown {
    to { transform: scaleX(1); }
}

.showcase-page .featured-progress span.is-running {
    animation: featured-countdown var(--featured-duration, 6500ms) linear both;
}

.showcase-page .featured-section.is-hover-paused .featured-progress span.is-running {
    animation-play-state: paused;
}

.showcase-page .featured-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.showcase-page .featured-section.is-changing .stack-front {
    animation: portfolio-feature-in .6s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes portfolio-feature-in {
    from { opacity: .65; }
    to { opacity: 1; }
}

.showcase-page .showcase-category-nav {
    top: calc(var(--header-height, 80px) + 10px);
    padding: 0 16px;
    border-bottom: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    pointer-events: none;
}

.showcase-page .category-nav-container {
    pointer-events: auto;
    width: fit-content !important;
    max-width: calc(100% - 16px) !important;
    margin: 0 auto !important;
    padding: 6px 14px 6px 8px !important;
    min-height: 48px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(24, 24, 27, 0.1);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.showcase-page .nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #3f3f46;
    padding-right: 12px;
    border-right: 1px solid rgba(24, 24, 27, 0.12);
    gap: 8px;
}

.showcase-page .nav-label i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(233, 35, 46, 0.1);
    color: #e9232e;
    font-size: 0.78rem;
    display: grid;
    place-items: center;
}

.showcase-page .nav-pills-scroll {
    gap: 4px;
    padding: 0;
}

.showcase-page .category-nav-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: #52525b;
    gap: 7px;
    box-shadow: none;
}

.showcase-page .category-nav-pill i {
    color: #71717a !important;
    font-size: 0.8rem;
}

.showcase-page .category-nav-pill:hover {
    background: rgba(24, 24, 27, 0.05);
    border-color: transparent;
    color: #18181b;
    transform: none;
    box-shadow: none;
}

.showcase-page .category-nav-pill:hover i {
    color: #18181b !important;
}

.showcase-page .category-nav-pill.active,
.showcase-page .category-nav-pill.active:hover {
    background: #3f3f46;
    border-color: #3f3f46;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(24, 24, 27, 0.16);
}

.showcase-page .category-nav-pill.active i {
    color: #f87171 !important;
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 102px;
    right: 36px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e4e4e7;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #18181b;
    font-size: 0.95rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.scroll-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: #18181b;
    border-color: #18181b;
    color: #ffffff;
    transform: translateY(-2px);
}

.scroll-to-top-btn:focus-visible {
    outline: 2px solid #e9232e;
    outline-offset: 2px;
}

.portfolio-impact-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: 0;
    margin-top: 22px;
    padding: 18px 0 0;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(25, 26, 28, 0.12);
    border-radius: 0;
    box-shadow: none;
}

.portfolio-stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 28px;
    border-right: 1px solid rgba(25, 26, 28, 0.12);
}

.portfolio-stat-item:first-child {
    padding-left: 0;
}

.portfolio-stat-item:last-child {
    padding-right: 0;
    border-right: none;
}

.portfolio-stat-value {
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #191a1c;
    font-variant-numeric: tabular-nums;
}

.portfolio-stat-value .portfolio-stat-suffix {
    color: #e9232e;
    font-weight: 700;
    margin-left: 1px;
}

.portfolio-stat-label {
    margin-top: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
}

@media (max-width: 600px) {
    .portfolio-impact-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 0;
        padding-top: 16px;
    }

    .portfolio-stat-item {
        padding: 0 12px;
        text-align: center;
    }

    .portfolio-stat-item:nth-child(2n) {
        border-right: none;
    }
}

.portfolio-hero-footer {
    width: 100%;
    max-width: 600px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(25, 26, 28, 0.12);
}

.portfolio-process-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.portfolio-process-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.portfolio-step-head {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-bottom: 8px;
}

.portfolio-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #e9232e;
    background: rgba(233, 35, 46, 0.08);
    border: 1px solid rgba(233, 35, 46, 0.25);
    font-variant-numeric: tabular-nums;
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.portfolio-step-track {
    flex: 1 1 auto;
    height: 2px;
    background: rgba(25, 26, 28, 0.12);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.portfolio-step-track > span {
    position: absolute;
    inset: 0;
    width: 48%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, #e9232e 65%, #ff6b6b 100%);
    transform: translateX(-110%);
}

.portfolio-step-text {
    font-size: 0.84rem;
    font-weight: 700;
    color: #191a1c;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.portfolio-step-sub {
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.portfolio-process-step.step-1 .portfolio-step-track > span {
    animation: process-flow-1 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.portfolio-process-step.step-2 .portfolio-step-track > span {
    animation: process-flow-2 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.portfolio-process-step.step-1 .portfolio-step-num {
    animation: process-step-1 6s ease infinite;
}

.portfolio-process-step.step-2 .portfolio-step-num {
    animation: process-step-2 6s ease infinite;
}

.portfolio-process-step.step-3 .portfolio-step-num {
    animation: process-step-3 6s ease infinite;
}

@keyframes process-step-1 {
    0%, 28% { background: #e9232e; color: #ffffff; transform: scale(1.08); box-shadow: 0 0 0 5px rgba(233, 35, 46, 0.14); }
    38%, 100% { background: rgba(233, 35, 46, 0.08); color: #e9232e; transform: scale(1); box-shadow: none; }
}

@keyframes process-flow-1 {
    0%, 10% { transform: translateX(-110%); opacity: 0; }
    16% { opacity: 1; }
    38% { transform: translateX(240%); opacity: 1; }
    44%, 100% { transform: translateX(240%); opacity: 0; }
}

@keyframes process-step-2 {
    0%, 30% { background: rgba(233, 35, 46, 0.08); color: #e9232e; transform: scale(1); box-shadow: none; }
    34%, 62% { background: #e9232e; color: #ffffff; transform: scale(1.08); box-shadow: 0 0 0 5px rgba(233, 35, 46, 0.14); }
    72%, 100% { background: rgba(233, 35, 46, 0.08); color: #e9232e; transform: scale(1); box-shadow: none; }
}

@keyframes process-flow-2 {
    0%, 44% { transform: translateX(-110%); opacity: 0; }
    50% { opacity: 1; }
    72% { transform: translateX(240%); opacity: 1; }
    78%, 100% { transform: translateX(240%); opacity: 0; }
}

@keyframes process-step-3 {
    0%, 64% { background: rgba(233, 35, 46, 0.08); color: #e9232e; transform: scale(1); box-shadow: none; }
    68%, 94% { background: #e9232e; color: #ffffff; transform: scale(1.08); box-shadow: 0 0 0 5px rgba(233, 35, 46, 0.14); }
    100% { background: rgba(233, 35, 46, 0.08); color: #e9232e; transform: scale(1); box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-step-track > span,
    .portfolio-process-step .portfolio-step-num {
        animation: none !important;
    }
}

.portfolio-reel-row {
    position: relative;
    z-index: 2;
    flex: 1 0 100%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(25, 26, 28, 0.08);
    border-radius: 12px;
    box-sizing: border-box;
}

.portfolio-reel-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
    color: #191a1c;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.18s ease;
}

.portfolio-reel-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #191a1c;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    padding-left: 2px;
    transition: background 0.18s ease, transform 0.18s ease;
}

.portfolio-reel-btn:hover {
    color: #e9232e;
}

.portfolio-reel-btn:hover .portfolio-reel-play {
    background: #e9232e;
    transform: scale(1.06);
}

.portfolio-reel-divider {
    width: 1px;
    height: 14px;
    background: rgba(25, 26, 28, 0.16);
}

.portfolio-disciplines {
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.studio-reel-dialog {
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #111214;
    color: #ffffff;
    max-width: 820px;
    width: calc(100% - 32px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.studio-reel-dialog::backdrop {
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(6px);
}

.studio-reel-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.studio-reel-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.studio-reel-close:hover {
    background: #e9232e;
    border-color: #e9232e;
}

.studio-reel-video {
    display: block;
    width: 100%;
    max-height: 72vh;
    background: #000000;
}

@media (max-width: 1024px) {
    .portfolio-hero-footer {
        display: none;
    }
}

@media (max-width: 760px) {
    .portfolio-reel-row {
        padding: 12px 14px;
    }
}

@media (max-width: 600px) {
    .portfolio-reel-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 14px;
    }

    .portfolio-reel-divider {
        display: none;
    }

    .showcase-page .nav-label {
        display: none;
    }

    .showcase-page .category-nav-container {
        padding: 0 12px !important;
    }
}

@media (max-width: 390px) {
    .portfolio-stat-value {
        font-size: 1.32rem;
    }

    .portfolio-stat-label {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 82px;
        right: 23px;
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }
}

.showcase-page .project-category {
    padding: 3.6rem 0 3rem;
    background: #f7f8fa;
}

.showcase-page .project-category.alt-bg {
    background: #eef1f4;
}

.showcase-page .category-header {
    align-items: end;
    margin-bottom: 1rem;
}

.showcase-page .category-title {
    color: #163f4a;
    font: 500 clamp(1.8rem, 3vw, 2.8rem)/1 Georgia, serif;
    letter-spacing: -.045em;
}

.showcase-page .category-subtitle {
    max-width: 520px;
    color: #74777d;
    font-size: .78rem;
}

.showcase-page .category-header {
    flex-direction: row;
    align-items: flex-end;
}

.project-search {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-shrink: 0;
}

.project-search input {
    width: min(230px, 42vw);
    padding: .55rem .75rem;
    border: 1px solid #d8d5d0;
    border-radius: 999px;
    background: #fff;
    color: #263238;
    font: inherit;
    font-size: .82rem;
}

.project-search input:focus-visible,
.project-search-toggle:focus-visible {
    outline: 2px solid #e9232e;
    outline-offset: 3px;
}

.project-search-toggle {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #74777d;
    font-size: .9rem;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.project-search-toggle:hover {
    background: #f1f3f5;
    color: #263238;
}

.project-search-status,
.project-search-empty {
    color: #74777d;
    font-size: .9rem;
}

.showcase-page .project-search-empty {
    grid-column: 1 / -1;
    margin: .5rem 0;
}

.showcase-page .view-all-link {
    color: #e9232e;
}

.showcase-page .category-slider-viewport {
    overflow: visible;
    padding: 8px 4px 16px;
}

.showcase-page .category-slider-track {
    align-items: flex-start;
    gap: clamp(12px, 1.5vw, 22px) !important;
    padding: 10px 4px 420px;
    margin-bottom: -404px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.showcase-page .showcase-card {
    display: flex;
    flex: 0 0 clamp(260px, 24vw, 340px);
    flex-direction: column;
    width: clamp(260px, 24vw, 340px);
    height: auto;
    overflow: hidden;
    border: 1px solid #e9e6e1;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 3px 14px #191a1c0d;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1),
                box-shadow .7s cubic-bezier(.22, 1, .36, 1),
                border-color .5s ease;
    will-change: transform;
}

.showcase-page .showcase-card:hover,
.showcase-page .showcase-card.card-expanded {
    z-index: 20;
    height: auto;
    transform: translateY(-10px);
    border-color: #e0dcd5;
    box-shadow: 0 12px 30px #191a1c18;
}

.showcase-page .showcase-card-media {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1.65 / 1;
    background: #fff;
}

.showcase-page .card-image-cycler {
    background: #fff;
}

.showcase-page .cycler-img,
.showcase-page .cycler-img.active,
.showcase-page .showcase-card:hover .cycler-img.active {
    padding: 0;
    object-fit: contain;
    object-position: center;
    filter: none;
    transform: none;
}

.showcase-page .card-top-badges {
    top: .6rem;
    left: .6rem;
}

.showcase-page .showcase-card-badge {
    padding: .32rem .55rem;
    border-radius: 3px;
    background: #fff;
    color: #e9232e;
    font-size: .53rem;
    box-shadow: 0 2px 8px #191a1c12;
}

.showcase-page .card-angle-indicator,
.showcase-page .card-angle-dots,
.showcase-page .card-ambient-backdrop,
.showcase-page .card-light-sheen {
    display: none !important;
}

.showcase-page .showcase-card-glass {
    position: relative;
    inset: auto;
    flex: 1;
    padding: .8rem .85rem .75rem;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #25262a;
    backdrop-filter: none;
}

.showcase-page .card-glass-top {
    align-items: center;
    gap: .45rem;
    margin-bottom: .5rem;
}

.showcase-page .showcase-card-glass .showcase-card-meta {
    gap: .45rem .7rem;
    color: #777a80;
    font-size: .55rem;
}

.showcase-page .showcase-card-glass .showcase-card-meta i {
    color: #e9232e;
}

.showcase-page .showcase-card-glass .card-sqft-tag {
    padding: .2rem .35rem;
    border-radius: 3px;
    background: #f4f1ed;
    color: #686a6f;
    font-size: .49rem;
}

.showcase-page .showcase-card-glass .showcase-card-title {
    margin: 0;
    color: #191a1c;
    font-size: .83rem;
    font-weight: 600;
    line-height: 1.35;
}

.showcase-page .card-glass-drawer {
    display: block;
    max-height: none;
    margin: .5rem 0 0;
    opacity: 1;
    transform: none;
}

.showcase-page .showcase-card-glass .showcase-card-description {
    display: -webkit-box;
    max-height: 1.45em;
    margin: 0;
    overflow: hidden;
    color: #74777d;
    font-size: .62rem;
    line-height: 1.5;
    opacity: .88;
    transform: translateY(3px);
    transition: max-height .9s cubic-bezier(.22, 1, .36, 1) .08s,
                opacity .55s ease .08s,
                transform .7s cubic-bezier(.22, 1, .36, 1) .08s;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.showcase-page .showcase-card.card-expanded .showcase-card-glass .showcase-card-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    height: auto;
    max-height: 6em;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transform: translateY(0);
}

.showcase-page .showcase-card-glass .showcase-card-footer {
    margin-top: .6rem;
    flex-wrap: nowrap;
    gap: .45rem;
}

.showcase-page .showcase-card-glass .showcase-card-link {
    color: #e9232e;
    flex: 0 0 auto;
    gap: 3px;
    font-size: .58rem;
}

.showcase-page .showcase-card-glass .showcase-social-link {
    flex: 0 0 auto;
    gap: 3px;
    padding: 3px 5px;
    font-size: .58rem;
    white-space: nowrap;
}

.showcase-page .showcase-card-glass .showcase-social-link i {
    font-size: .68rem;
}

.showcase-page .category-slider-progress {
    position: relative;
    z-index: 1;
    height: 2px;
    background: #e1ddd6;
}

/* Keep image and project details on one continuous card surface. */
.showcase-page .showcase-card,
.showcase-page .showcase-card-media,
.showcase-page .card-image-cycler {
    background: #fff !important;
}

.showcase-page .showcase-card-media .cycler-img,
.showcase-page .showcase-card-media .cycler-img.active {
    background: #fff !important;
}

.showcase-page .category-slider-progress-bar {
    background: #e9232e;
}

@media (max-width: 760px) {
    .showcase-page .showcase-portfolio-hero {
        padding: 0 0 30px !important;
    }

    .showcase-page .featured-section {
        --featured-front-left: 10%;
        --featured-front-width: 80%;
        padding: 1rem;
        border-radius: 18px;
    }

    .showcase-portfolio-intro {
        align-items: stretch;
        flex-direction: column;
        gap: 1.2rem;
        min-height: 0;
        padding: calc(var(--header-height, 80px) + 1.5rem) 1.5rem 1.5rem;
        border-radius: 0;
        background:
            linear-gradient(180deg, rgba(248, 246, 242, .92) 0%, rgba(248, 246, 242, .84) 56%, rgba(248, 246, 242, .58) 100%),
            url("hero-architecture.jpg") 65% center / cover no-repeat;
    }

    .showcase-portfolio-intro::after {
        background: linear-gradient(180deg, rgba(248, 246, 242, .95) 0%, rgba(248, 246, 242, .86) 45%, rgba(248, 246, 242, .5) 78%, rgba(248, 246, 242, .18) 100%);
    }

    .showcase-page .showcase-portfolio-hero .portfolio-eyebrow {
        font-size: .52rem;
    }

    .showcase-intro-copy h1 {
        font-size: clamp(2.35rem, 9.5vw, 3.5rem);
    }

    .showcase-intro-copy > p:last-child {
        max-width: 380px;
        font-size: .78rem;
    }

    .showcase-page .showcase-portfolio-hero .hire-form {
        flex-basis: auto;
        align-self: center;
        width: min(320px, 100%);
        padding: 1.1rem .95rem;
    }

    .showcase-page .showcase-portfolio-hero .hire-form form {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .showcase-page .showcase-portfolio-hero .hire-form h3 {
        margin-bottom: .8rem;
    }

    .showcase-page .showcase-portfolio-hero .hire-form .form-group {
        min-width: 0;
        margin-bottom: .55rem;
    }

    .showcase-page .showcase-portfolio-hero .hire-form .submit-btn,
    .showcase-page .showcase-portfolio-hero .hire-form #shf-msg {
        grid-column: 1 / -1;
    }

    .showcase-page .showcase-portfolio-hero .hire-form .submit-btn {
        margin-top: .2rem;
    }

    .showcase-page .featured-section {
        height: clamp(310px, 90vw, 410px);
        margin-top: 1rem;
    }

    .showcase-page .stack-back-left,
    .showcase-page .stack-back-right {
        top: 17%;
        width: 47%;
        height: 78%;
    }

    .showcase-page .stack-back-left {
        left: -1%;
    }

    .showcase-page .stack-front {
        top: 4%;
        left: var(--featured-front-left);
        width: var(--featured-front-width);
        height: 88%;
    }

    .showcase-page .stack-back-right {
        left: 54%;
    }

    .showcase-page .featured-copy {
        top: 13%;
        left: 17%;
        width: 58%;
    }

    .showcase-page .featured-kicker {
        margin-bottom: .75rem;
        font-size: .55rem;
    }

    .showcase-page .featured-copy h2 {
        font-size: clamp(1.65rem, 7vw, 2.35rem);
    }

    .showcase-page .featured-description {
        max-width: 260px;
        font-size: .58rem;
    }

    .showcase-page .featured-carousel-controls {
        right: 3%;
        bottom: 5%;
        gap: .3rem;
    }

    .showcase-page .featured-carousel-controls button {
        width: 30px;
        height: 30px;
    }

    .showcase-page .featured-counter {
        font-size: .55rem;
    }

    .showcase-page .project-category {
        padding: 2.8rem 0 2.3rem;
    }

    .showcase-page .category-title {
        font-size: 2rem;
    }

    .showcase-page .showcase-card {
        flex-basis: min(82vw, 340px);
        width: min(82vw, 340px);
    }
}

@media (max-width: 360px) {
    .showcase-intro-copy h1 {
        font-size: clamp(2rem, 9.5vw, 2.35rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-page .showcase-portfolio-hero .portfolio-eyebrow,
    .showcase-intro-copy h1,
    .portfolio-tagline {
        animation: none;
    }

    .portfolio-typewriter-caret {
        animation: none;
    }

    .portfolio-typewriter-word {
        transition: none;
    }

    .showcase-page .featured-section.is-changing .stack-front {
        animation: none;
    }
}

.showcase-page .stack-front::after {
    background: linear-gradient(90deg, rgba(16, 21, 20, .88) 0%, rgba(16, 21, 20, .68) 38%, rgba(16, 21, 20, .18) 68%, transparent 88%);
}

.showcase-page .featured-copy {
    top: 12%;
    left: calc(var(--featured-front-left) + var(--featured-copy-inset));
    display: flex;
    width: calc(var(--featured-front-width) - 2 * var(--featured-copy-inset));
    height: 76%;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.showcase-page .showcase-project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: clamp(14px, 1.5vw, 24px);
    padding: 4px;
}

.showcase-page .project-grid-viewport {
    padding: 0 4px 2px;
}

.showcase-page .showcase-project-grid > .showcase-card {
    width: 100%;
    min-width: 0;
    flex: none;
    margin: 0;
}

.showcase-page .project-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: .2rem;
}

.showcase-page .project-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-width: 0;
    padding: .3rem .55rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #e9232e;
    font: inherit;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.showcase-page .project-load-more:hover {
    background: rgba(233, 35, 46, .06);
    color: #c91d28;
}

.showcase-page .project-load-more:focus-visible {
    outline: 2px solid #e9232e;
    outline-offset: 3px;
}

.showcase-page .project-load-more[hidden] {
    display: none;
}

@media (max-width: 1100px) {
    .showcase-page .showcase-project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .showcase-page .showcase-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-page .category-header {
        align-items: center;
    }
}

@media (max-width: 560px) {
    .showcase-page .showcase-project-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-search input {
        width: min(180px, 48vw);
    }
}

.showcase-page .featured-kicker {
    margin-bottom: .55rem;
}

.showcase-page .featured-copy h2 {
    display: -webkit-box !important;
    min-height: 3.06em !important;
    max-width: 20ch;
    margin-bottom: .55rem;
    font-size: clamp(1.55rem, 2vw, 2.1rem);
    line-height: 1.02;
    letter-spacing: -.04em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.showcase-page .featured-meta {
    min-height: 2.4em;
    max-height: 2.4em;
    gap: .3rem .6rem;
    margin: 0;
    font-size: .56rem;
    overflow: hidden;
}

.showcase-page .featured-meta span + span::before {
    margin-right: .5rem;
}

.showcase-page .featured-description {
    display: -webkit-box;
    width: 100%;
    max-width: 370px;
    min-height: 3em;
    max-height: 3em;
    margin: .55rem 0 .65rem;
    overflow: hidden;
    font-size: .6rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.showcase-page .featured-project-link {
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    .showcase-page .featured-copy {
        top: 12%;
        left: calc(var(--featured-front-left) + var(--featured-copy-inset));
        width: calc(var(--featured-front-width) - 2 * var(--featured-copy-inset));
        height: 76%;
    }

    .showcase-page .featured-kicker {
        margin-bottom: .45rem;
        font-size: .5rem;
    }

    .showcase-page .featured-copy h2 {
        max-width: 19ch;
        min-height: 3.06em !important;
        margin-bottom: .4rem;
        font-size: clamp(1.3rem, 5.5vw, 1.7rem);
        line-height: 1.02;
    }

    .showcase-page .featured-meta {
        min-height: 2.4em;
        max-height: 2.4em;
        gap: .25rem .4rem;
        font-size: .49rem;
    }

    .showcase-page .featured-meta span + span::before {
        margin-right: .35rem;
    }

    .showcase-page .featured-description {
        min-height: 2.8em;
        max-height: 2.8em;
        margin: .4rem 0 .5rem;
        font-size: .53rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }

    .showcase-page .featured-project-link {
        min-height: 29px;
        padding: .38rem .55rem;
        font-size: .56rem;
    }
}

.showcase-page .project-lightbox {
    z-index: 10000;
    padding: clamp(14px, 3vw, 40px);
    background: rgba(18, 20, 22, .78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.showcase-page .lightbox-content {
    width: min(1380px, 96vw);
    max-width: 1380px;
    height: min(860px, 90vh);
    max-height: 90vh;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 32px 100px rgba(0, 0, 0, .38);
}

.showcase-page .lightbox-close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(25, 26, 28, .12);
    background: #fff;
    color: #242629;
    font-size: 1.45rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .12);
}

.showcase-page .lightbox-close:hover {
    border-color: #e9232e;
    background: #e9232e;
    color: #fff;
}

.showcase-page .lightbox-media {
    min-width: 0;
    min-height: 0;
    background:
        radial-gradient(ellipse at center, #fff 0%, #f0ede7 72%, #e8e4dc 100%);
}

.showcase-page .lightbox-carousel-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: clamp(24px, 4vw, 58px);
    object-fit: contain;
}

.showcase-page .lightbox-carousel-nav {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, .94);
    color: #25272a;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .14);
}

.showcase-page .lightbox-carousel-nav:hover {
    background: #e9232e;
    color: #fff;
}

.showcase-page .lightbox-indicator {
    width: 8px;
    height: 8px;
    background: rgba(32, 33, 30, .28);
}

.showcase-page .lightbox-indicator.active {
    background: #e9232e;
}

.showcase-page .lightbox-info {
    min-width: 0;
    min-height: 0;
    padding: clamp(34px, 4vw, 64px) clamp(28px, 4vw, 60px) 28px;
    overflow: hidden;
    background: #fff;
}

.showcase-page .lightbox-eyebrow {
    flex: 0 0 auto;
    margin: 0 52px 18px 0;
    color: #e9232e;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.showcase-page .lightbox-eyebrow span {
    padding: 0 .4rem;
    color: #a9a7a1;
}

.showcase-page .lightbox-info h3 {
    flex: 0 0 auto;
    margin: 0 0 22px;
    padding: 0 0 22px;
    border-bottom: 1px solid #e8e5df;
    color: #202326;
    font: 600 clamp(1.8rem, 2.8vw, 2.8rem)/1.08 Georgia, 'Times New Roman', serif;
    letter-spacing: -.045em;
}

.showcase-page .lightbox-meta {
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 0 0 22px;
    padding: 0 0 22px;
    border-top: 0;
    border-bottom: 1px solid #e8e5df;
}

.showcase-page .lightbox-meta span {
    min-width: 0;
    align-items: flex-start;
    color: #686d73;
    font-size: .84rem;
    line-height: 1.5;
}

.showcase-page .lightbox-meta span i {
    flex: 0 0 16px;
    margin-top: .16em;
    color: #e9232e;
}

.showcase-page .lightbox-description {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding-right: 10px;
    overflow-y: auto;
    color: #656c76;
    font-size: .94rem;
    line-height: 1.8;
    scrollbar-color: #d7d2ca transparent;
    scrollbar-width: thin;
}

.showcase-page .lightbox-description p {
    margin: 0 0 18px;
}

.showcase-page .lightbox-actions {
    flex: 0 0 auto;
    margin-top: 14px;
    padding-top: 18px;
    border-top: 1px solid #e8e5df;
}

.showcase-page .lightbox-cta-wa {
    min-height: 54px;
    padding: 14px 20px;
    border-radius: 5px;
    background: #e9232e;
    font-size: .88rem;
    box-shadow: 0 8px 20px rgba(233, 35, 46, .2);
}

.showcase-page .lightbox-cta-wa:hover {
    background: #c91520;
    box-shadow: 0 10px 24px rgba(201, 21, 32, .25);
}

@media (max-width: 900px) {
    .showcase-page .project-lightbox {
        padding: 14px;
    }

    .showcase-page .lightbox-content {
        width: min(720px, 96vw);
        height: min(900px, 94vh);
        max-height: 94vh;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(230px, 40vh) minmax(0, 1fr);
    }

    .showcase-page .lightbox-info {
        padding: 24px 28px 20px;
    }

    .showcase-page .lightbox-eyebrow {
        margin-bottom: 10px;
        font-size: .6rem;
    }

    .showcase-page .lightbox-info h3 {
        margin-bottom: 14px;
        padding-bottom: 14px;
        font-size: clamp(1.65rem, 5vw, 2.25rem);
    }

    .showcase-page .lightbox-meta {
        gap: 10px 14px;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .showcase-page .lightbox-description {
        font-size: .86rem;
        line-height: 1.65;
    }

    .showcase-page .lightbox-actions {
        margin-top: 10px;
        padding-top: 12px;
    }
}

@media (max-width: 560px) {
    .showcase-page .project-lightbox {
        padding: 0;
    }

    .showcase-page .lightbox-content {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        grid-template-rows: minmax(220px, 36vh) minmax(0, 1fr);
        border: 0;
        border-radius: 0;
    }

    .showcase-page .lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .showcase-page .lightbox-carousel-item img {
        padding: 34px 18px 24px;
    }

    .showcase-page .lightbox-info {
        padding: 18px 20px 14px;
    }

    .showcase-page .lightbox-eyebrow {
        margin-right: 46px;
        margin-bottom: 8px;
        font-size: .54rem;
    }

    .showcase-page .lightbox-info h3 {
        margin-bottom: 12px;
        padding-bottom: 12px;
        font-size: clamp(1.45rem, 7vw, 1.9rem);
    }

    .showcase-page .lightbox-meta {
        gap: 8px 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .showcase-page .lightbox-meta span {
        gap: 6px;
        font-size: .72rem;
    }

    .showcase-page .lightbox-description {
        padding-right: 4px;
        font-size: .8rem;
        line-height: 1.6;
    }

    .showcase-page .lightbox-cta-wa {
        min-height: 48px;
    }
}

.showcase-page .lightbox-content {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(370px, .84fr);
    grid-template-areas: "media info";
    width: min(1440px, 96vw);
    max-width: 1440px;
    height: min(860px, 90vh);
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 12px;
    background: #f7f8fa;
    box-shadow: 0 32px 100px rgba(0, 0, 0, .38);
    perspective: 1800px;
}

.showcase-page .lightbox-media {
    position: relative;
    grid-area: media;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    padding: clamp(18px, 2.6vw, 38px);
    border-right: 1px solid #e2e8f0;
    background:
        radial-gradient(ellipse at 50% 38%, rgba(255, 255, 255, .98), rgba(241, 245, 249, .92) 72%),
        #eef1f4;
}

.showcase-page .lightbox-carousel {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(45, 43, 39, .1);
    border-radius: 7px;
    background: #eef1f4;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .1);
}

.showcase-page .lightbox-carousel-container {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 1.2vw, 16px);
}

.showcase-page .lightbox-image-slot {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 5px;
    background: #f7f8fa;
    opacity: 1;
    align-items: stretch;
    justify-content: stretch;
    transition: none;
}

.showcase-page .lightbox-image-slot-1 {
    grid-row: 1 / span 2;
}

.showcase-page .lightbox-image-slot img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    object-fit: cover;
    object-position: center;
    transform: translateZ(0);
}

.showcase-page .lightbox-image-slot figcaption {
    position: absolute;
    right: 7px;
    bottom: 7px;
    min-width: 25px;
    padding: 3px 6px;
    border-radius: 3px;
    background: rgba(25, 26, 28, .68);
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
}

.showcase-page .lightbox-carousel[data-image-count="1"] .lightbox-carousel-container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}

.showcase-page .lightbox-carousel[data-image-count="1"] .lightbox-image-slot:not(:first-child),
.showcase-page .lightbox-carousel[data-image-count="2"] .lightbox-image-slot-3 {
    display: none;
}

.showcase-page .lightbox-carousel[data-image-count="2"] .lightbox-carousel-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
}

.showcase-page .lightbox-carousel[data-image-count="2"] .lightbox-image-slot-1 {
    grid-row: auto;
}

.showcase-page .lightbox-carousel-nav {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .94);
    color: #25272a;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .16);
}

.showcase-page .lightbox-carousel-nav:hover {
    background: #e9232e;
    color: #fff;
}

.showcase-page .lightbox-info {
    position: relative;
    grid-area: info;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    padding: clamp(38px, 4vw, 62px) clamp(28px, 3.8vw, 56px) 30px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(233, 35, 46, .06), transparent 4px),
        #f7f8fa;
    transition: background-color .3s ease;
}

.showcase-page .lightbox-info::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e9232e;
    content: "";
}

.showcase-page .lightbox-eyebrow {
    flex: 0 0 auto;
    margin: 0 52px 18px 0;
    color: #e9232e;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
    line-height: 1.5;
    text-transform: uppercase;
}

.showcase-page .lightbox-eyebrow span {
    padding: 0 .4rem;
    color: #a9a7a1;
}

.showcase-page .lightbox-info h3 {
    flex: 0 0 auto;
    margin: 0 0 20px;
    padding: 0 0 20px;
    border-bottom: 1px solid #e8e5df;
    color: #202326;
    font: 600 clamp(1.8rem, 2.8vw, 2.8rem)/1.08 Georgia, "Times New Roman", serif;
    letter-spacing: -.045em;
}

.showcase-page .lightbox-meta {
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 0 0 20px;
    padding: 0 0 20px;
    border: 0;
    border-bottom: 1px solid #e8e5df;
}

.showcase-page .lightbox-meta span {
    min-width: 0;
    align-items: flex-start;
    color: #686d73;
    font-size: .82rem;
    line-height: 1.5;
}

.showcase-page .lightbox-meta span i {
    flex: 0 0 16px;
    margin-top: .16em;
    color: #e9232e;
}

.showcase-page .lightbox-description {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding-right: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #656c76;
    font-size: .9rem;
    line-height: 1.75;
    scrollbar-color: #d7d2ca transparent;
    scrollbar-width: thin;
}

.showcase-page .lightbox-description p {
    margin: 0 0 16px;
}

.showcase-page .lightbox-actions {
    flex: 0 0 auto;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid #e8e5df;
}

.showcase-page .lightbox-cta-wa {
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 5px;
    background: #e9232e;
    font-size: .86rem;
    box-shadow: 0 8px 20px rgba(233, 35, 46, .2);
}

.showcase-page .lightbox-cta-wa:hover {
    background: #c91520;
    box-shadow: 0 10px 24px rgba(201, 21, 32, .25);
}

.showcase-page .lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(25, 26, 28, .12);
    background: #fff;
    color: #242629;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .12);
}

.showcase-page .lightbox-close:hover {
    border-color: #e9232e;
    background: #e9232e;
    color: #fff;
}

@media (max-width: 860px) {
    .showcase-page .project-lightbox {
        padding: 12px;
    }

    .showcase-page .lightbox-content {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(250px, 42vh) minmax(0, 1fr);
        grid-template-areas:
            "media"
            "info";
        width: min(760px, 96vw);
        height: min(900px, 94vh);
        max-height: 94vh;
    }

    .showcase-page .lightbox-media {
        padding: 18px 22px 14px;
        border-right: 0;
        border-bottom: 1px solid #e5e0d7;
    }

    .showcase-page .lightbox-info {
        padding: 22px 30px 18px;
    }

    .showcase-page .lightbox-eyebrow {
        margin-bottom: 8px;
        font-size: .58rem;
    }

    .showcase-page .lightbox-info h3 {
        margin-bottom: 12px;
        padding-bottom: 12px;
        font-size: clamp(1.55rem, 4vw, 2.1rem);
    }

    .showcase-page .lightbox-meta {
        gap: 8px 14px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .showcase-page .lightbox-description {
        font-size: .82rem;
        line-height: 1.6;
    }

    .showcase-page .lightbox-actions {
        margin-top: 10px;
        padding-top: 10px;
    }
}

@media (max-width: 560px) {
    .showcase-page .project-lightbox {
        padding: 0;
    }

    .showcase-page .lightbox-content {
        grid-template-rows: minmax(220px, 38vh) minmax(0, 1fr);
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .showcase-page .lightbox-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .showcase-page .lightbox-media {
        padding: 12px 12px 10px;
    }

    .showcase-page .lightbox-carousel-nav {
        width: 36px;
        height: 36px;
    }

    .showcase-page .lightbox-carousel-nav.prev {
        left: 8px;
    }

    .showcase-page .lightbox-carousel-nav.next {
        right: 8px;
    }

    .showcase-page .lightbox-info {
        padding: 18px 20px 14px;
        background: #f7f8fa;
    }

    .showcase-page .lightbox-info::before {
        right: auto;
        left: 0;
        width: 3px;
    }

    .showcase-page .lightbox-eyebrow {
        margin-right: 42px;
        margin-bottom: 7px;
        font-size: .52rem;
    }

    .showcase-page .lightbox-info h3 {
        margin-bottom: 10px;
        padding-bottom: 10px;
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .showcase-page .lightbox-meta {
        gap: 7px 9px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .showcase-page .lightbox-meta span {
        gap: 5px;
        font-size: .68rem;
    }

    .showcase-page .lightbox-description {
        padding-right: 4px;
        font-size: .76rem;
        line-height: 1.55;
    }

    .showcase-page .lightbox-description p {
        margin-bottom: 10px;
    }

    .showcase-page .lightbox-actions {
        margin-top: 8px;
        padding-top: 8px;
    }

    .showcase-page .lightbox-cta-wa {
        min-height: 44px;
        padding: 10px 14px;
        font-size: .78rem;
    }
}

.showcase-page .featured-description {
    display: block;
    -webkit-line-clamp: unset;
}

.showcase-page .featured-description-text {
    display: block;
    transform: translateY(0);
}

.showcase-page .featured-section.is-description-scrolling .featured-description-text {
    animation: featured-description-scroll var(--featured-description-duration) linear .35s both;
}

@keyframes featured-description-scroll {
    to {
        transform: translateY(var(--featured-description-distance));
    }
}

.showcase-page .showcase-card,
.showcase-page .showcase-card-media,
.showcase-page .card-image-cycler,
.showcase-page .showcase-card-media .cycler-img {
    background: #fff !important;
}

.showcase-page .category-nav-pill[hidden],
.showcase-page .project-category[hidden] {
    display: none !important;
}

/* Keep the project detail lightbox on the same neutral-white palette. */
.showcase-page .project-lightbox .lightbox-content,
.showcase-page .project-lightbox .lightbox-info,
.showcase-page .project-lightbox .lightbox-carousel,
.showcase-page .project-lightbox .lightbox-image-slot {
    background: #f7f8fa !important;
}

.showcase-page .project-lightbox .lightbox-media {
    background: #eef1f4 !important;
}

/* Reserve a fixed two-line title zone so short-name cards match the height of
   cards with longer project names. Does not change hover or expand behavior. */
.showcase-page .showcase-card-glass .showcase-card-title {
    min-height: 2.7em; /* 2 lines at line-height 1.35 */
}

/* ==========================================================================
   1. STRICT METADATA ROW — location + year + SQFT badge in one flex row,
      with the badge fixed (shrink-0) so it never wraps out of place.
   ========================================================================== */
.showcase-page .showcase-card-glass .card-glass-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: nowrap;
}

.showcase-page .showcase-card-glass .card-glass-top .showcase-card-meta {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
}

.showcase-page .showcase-card-glass .card-glass-top .card-sqft-tag {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ==========================================================================
   2. FLEXBOX LAYOUT — cards are top-aligned (items-start) so an expanding
      card grows downward on its own without stretching its neighbors.
      Each card remains an independent flex column with the footer pinned to
      its bottom via mt-auto. Expand behavior is per-card (.card-expanded).
   ========================================================================== */
.showcase-page .showcase-project-grid,
.showcase-page .category-slider-track {
    align-items: start;
}

.showcase-page .showcase-project-grid > .showcase-card,
.showcase-page .category-slider-track > .showcase-card {
    display: flex;
    flex-direction: column;
}

.showcase-page .showcase-card-glass {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.showcase-page .showcase-card-glass .card-glass-drawer {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.showcase-page .showcase-card-glass .showcase-card-footer {
    margin-top: auto;
}

/* ==========================================================================
   3. ADDRESS CLAMP — keep location to 1 line so all cards align to the same
      height; the full raw address is available via the title attribute on hover.
   ========================================================================== */
.showcase-page .showcase-card-glass .showcase-card-location {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    flex: 1 1 auto;
}

.showcase-page .showcase-card-glass .showcase-card-location-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


