﻿/* --- CSS VARIABLES & CORE TOKENS --- */
:root {
    /* Brand Palette (per UIUX.md) */
    --brand-primary: #E50914;     
    --brand-hover: #F21B26;       
    --brand-red-deep: #C40B13;    
    --brand-secondary: #111111;   
    --brand-dark: #0a0a0a;        
    --brand-deep: #050505;        
    --brand-ink: #222222;         
    --brand-light: #F5F5F3;       
    --brand-line: #E7E7E7;        
    --brand-gray: #777777;        
    --brand-surface: #ffffff;     
    
    /* Functional Colors (Soft Variants) */
    --primary-soft: rgba(229, 9, 20, 0.08);
    --success-soft: rgba(40, 167, 69, 0.1);
    --info-soft: rgba(23, 162, 184, 0.1);
    
    /* Spacing & Borders */
    --radius-sm: 4px;
    --radius-lg: 0.9rem;
    --radius-pill: 50px;
    
    /* Transitions */
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Bootstrap Overrides - Fixes the "Blue" UI/UX bug */
    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: 229, 9, 20;
    --bs-link-color: var(--brand-primary);
    --bs-link-hover-color: var(--brand-secondary);
}

/* --- BOOTSTRAP COMPONENT OVERRIDES --- */
.btn-primary {
    --bs-btn-bg: var(--brand-dark);
    --bs-btn-border-color: var(--brand-dark);
    --bs-btn-hover-bg: var(--brand-primary);
    --bs-btn-hover-border-color: var(--brand-primary);
    --bs-btn-active-bg: var(--brand-primary);
    --bs-btn-active-border-color: var(--brand-primary);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* UIUX: reject pill buttons â€” sharp/slightly-rounded matches the angular logo */
.btn, .badge { border-radius: var(--radius-sm); }
.btn.rounded-pill, .badge.rounded-pill { border-radius: var(--radius-sm); }

/* Arrow micro-motion â€” the brand's recurring UI cue */
.btn .fa-arrow-right, .btn .fa-chevron-right, .btn-right-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
.btn:hover .fa-arrow-right, .btn:hover .fa-chevron-right { transform: translateX(4px); }

/* --- ACCORDION BRANDING OVERRIDES --- */
.accordion-button:not(.collapsed) {
    color: var(--brand-primary) !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(229, 9, 20, 0.2);
}

.accordion-button::after {
    filter: grayscale(1) brightness(0.5);
}

.accordion-button:not(.collapsed)::after {
    filter: sepia(1) saturate(10) hue-rotate(320deg) brightness(0.9);
}

/* --- BASE STYLES --- */
body { 
    font-family: 'Inter', 'Space Grotesk', sans-serif; 
    color: var(--brand-ink);
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--brand-surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .navbar-brand, .btn, .badge, .form-label,
.section-kicker, .step-circle, .footer-logo, .dropdown-menu,
.navbar-nav .nav-link, .breadcrumb, .accordion-button {
    font-family: 'Barlow Condensed', 'Chakra Petch', sans-serif;
    letter-spacing: 0.02em;
    font-weight: 600;
}
.navbar-nav .nav-link { letter-spacing: 0.08em; }

/* --- UTILITIES --- */
.bg-primary { background-color: var(--brand-primary) !important; }
.bg-secondary { background-color: var(--brand-secondary) !important; }
.bg-light { background-color: var(--brand-light) !important; }
.bg-surface-light { background-color: var(--brand-light) !important; }
.bg-deep { background-color: var(--brand-deep) !important; }
.text-primary { color: var(--brand-primary) !important; }
.text-secondary { color: var(--brand-secondary) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

/* Typography Utilities */
.ls-1 { letter-spacing: 0.08em; }
.ls-2 { letter-spacing: 0.15em; }
.ls-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.1em; }
.tracking-wider { letter-spacing: 0.15em; }
.x-small { font-size: 0.75rem; }

/* Special Layout Utilities */
.backdrop-blur { 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
}
.mt-n5 { margin-top: -3.5rem !important; }

/* Soft Background Utilities */
.bg-primary-soft { background-color: var(--primary-soft) !important; }
.bg-success-soft { background-color: var(--success-soft) !important; }
.bg-info-soft { background-color: var(--info-soft) !important; }

/* Icon and Shape Utilities */
.icon-shape { 
    width: 70px; 
    height: 70px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: var(--transition-smooth);
}

/* --- INTERACTIVE & HOVERS --- */
.hover-lift { 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.hover-lift:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important; 
}

.transform-hover {
    transition: var(--transition-smooth);
}
.transform-hover:hover {
    transform: translateY(-3px) scale(1.02);
}

/* --- NAVIGATION --- */
.navbar {
    padding: 15px 0;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--brand-line);
}
@media (min-width: 992px) {
    .navbar { padding: 20px 0; }
    .navbar.scrolled { 
        padding: 10px 0; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    }
}

/* --- HERO & BACKGROUNDS --- */
.hero {
    position: relative;
    color: white;
}
.bg-gradient-to-b {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 50%, rgba(0,0,0,0.9) 100%);
}
.object-fit-cover {
    object-fit: cover;
}

/* --- CATEGORY CARDS --- */
.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}
.category-card .img-container {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
}
.category-card:hover img { transform: scale(1.1); }
.category-card .opacity-0 {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}
.category-card:hover .opacity-0 {
    opacity: 1 !important;
    transform: translateY(0);
}

/* --- WORKFLOW / PROCESS --- */
.step-circle { 
    width: 45px; 
    height: 45px; 
    background: var(--brand-primary); 
    color: white; 
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 700;
    border-radius: 6px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    filter: drop-shadow(0 0 12px rgba(229,9,20,0.45));
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    z-index: 2; 
}
@media (min-width: 768px) {
    .process-step { position: relative; }
    .process-step:not(:last-child)::after { 
        content: ''; 
        position: absolute; 
        top: 22px; 
        left: 50%; 
        width: 100%; 
        height: 2px; 
        background: rgba(0,0,0,0.05); 
        z-index: 0; 
    }
}

/* --- BUTTONS & CTA (UIUX: Primary = black, hover = red) --- */
.btn-brand-primary { 
    background: var(--brand-dark);
    color: white; 
    border: 1px solid var(--brand-dark); 
    padding: 14px 35px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.btn-brand-primary:hover { 
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(229,9,20,0.35);
    color: white; 
}

.btn-white { 
    background: white; 
    color: var(--brand-dark); 
    border: 1px solid white; 
    text-transform: uppercase;
}
.btn-white:hover { 
    background: var(--brand-primary); 
    border-color: var(--brand-primary);
    color: #fff;
}

.btn-outline-light { border-radius: var(--radius-sm); }
.btn-outline-light:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.cta-card { 
    background: 
        radial-gradient(circle at 15% 0%, rgba(255,255,255,0.12), transparent 55%),
        linear-gradient(125deg, var(--brand-primary) 0%, #8f0000 100%); 
    position: relative; 
    overflow: hidden; 
}

/* --- STATS SECTION --- */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid rgba(0,0,0,0.1);
    }
}

/* --- FOOTER DESIGN --- */
.footer {
    background-color: var(--brand-dark);
    padding: 80px 0 40px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.footer-logo:hover {
    color: #ffffff;
}

.footer h6 {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.footer .list-unstyled li a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer .list-unstyled li a:hover {
    color: var(--brand-primary);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--brand-primary);
    transform: translateY(-3px);
}
/* Social icon on light backgrounds (e.g. contact page) */
.footer-social-link.social-on-light {
    background: rgba(0,0,0,0.06);
    color: var(--brand-ink) !important;
}
.footer-social-link.social-on-light:hover {
    background: var(--brand-primary);
    color: #fff !important;
}

.footer hr {
    margin: 50px 0 30px;
}

/* ==================================================================
   UI/UX REDESIGN SYSTEM â€” inspired by 4A logo + cover
   ================================================================== */

/* --- Section Header System --- */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-red-deep);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.section-kicker::before {
    content: '';
    width: 28px;
    height: 6px;
    background: var(--brand-primary);
    transform: skewX(-20deg);
    box-shadow: 0 0 10px rgba(229,9,20,0.4);
    display: inline-block;
}
.section-kicker.text-center-kicker { justify-content: center; }
.section-kicker.text-center-kicker::after {
    content: '';
    width: 28px;
    height: 6px;
    background: var(--brand-primary);
    transform: skewX(-20deg);
    box-shadow: 0 0 10px rgba(229,9,20,0.4);
    display: inline-block;
}
.section-rule {
    width: 64px;
    height: 4px;
    background: var(--brand-primary);
    border-radius: 2px;
}
.section-title {
    color: var(--brand-ink);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Navbar Red Underline Animation --- */
.navbar .nav-link {
    position: relative;
}
.navbar .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -2px;
    height: 2px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.navbar .nav-link:not(.dropdown-toggle):hover::after,
.navbar .nav-link:not(.dropdown-toggle).active::after {
    transform: scaleX(1);
}
.navbar .nav-link.active {
    color: var(--brand-primary) !important;
}
.navbar .btn-brand-primary {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* --- Hero Polish --- */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, var(--brand-primary) 50%, transparent 100%);
    z-index: 5;
}
.hero-badge {
    background: rgba(229, 9, 20, 0.16);
    border: 1px solid rgba(229, 9, 20, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.12em;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    filter: drop-shadow(0 6px 18px rgba(229,9,20,0.25));
}
.text-brand-red { color: var(--brand-primary); }
.text-shadow-hero { text-shadow: 0 4px 24px rgba(0,0,0,0.55); }

/* --- Card System --- */
.brand-card {
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    overflow: hidden;
    background: var(--brand-surface);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 2;
}
.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,0.1);
}
.brand-card:hover::before { transform: scaleX(1); }

.icon-chip {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--brand-primary);
    transition: var(--transition-smooth);
}
.brand-card:hover .icon-chip {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(229,9,20,0.3);
}

/* --- CTA Section --- */
.cta-section {
    background: var(--brand-ink);
}

.cta-card {
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
    filter: drop-shadow(0 18px 45px rgba(229,9,20,0.25));
}

/* --- Typography Scale --- */
.display-size { font-weight: 700; letter-spacing: -0.5px; text-transform: uppercase; }
.lead-narrowed { font-weight: 400; }

/* ==================================================================
   LOGO-DERIVED GEOMETRY â€” angular cuts, slashes, glows
   Mirrors the italic '4', slashed-crimson 'A', and block wordmark
   ================================================================== */

/* Italic accent word (mirrors the italic logo '4') */
.italic-logo { font-style: italic; font-weight: 700; }

/* Cut corners: lightning-notch taken from the slashed 'A' */
.clip-notch {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

/* Red halo glow that follows the clipped silhouette */
.glow-red { filter: drop-shadow(0 0 14px rgba(229,9,20,0.35)); }
.glow-red-sm { filter: drop-shadow(0 0 8px rgba(229,9,20,0.3)); }

/* Lightning-sweep shimmer across primary buttons */
.btn-sweep { position: relative; overflow: hidden; }
.btn-sweep::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}
.btn-sweep:hover::after { left: 130%; }

/* Diagonal energy slash on inner page heroes */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -90px;
    width: 230px;
    height: 160%;
    background: linear-gradient(120deg, rgba(229,9,20,0.32), transparent 70%);
    transform: skewX(-18deg);
    z-index: 1;
    pointer-events: none;
}

/* Fold-corner photo / image frames */
.clip-frame {
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

/* Product card hover teaser state */
.product-card { position: relative; border-radius: var(--radius-lg); }
.product-card .product-hover-cta {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.35s ease;
}
.product-card:hover .product-hover-cta { opacity: 1; transform: translateY(0); }
/* Touch devices have no hover: keep the CTA visible so cards stay navigable */
@media (hover: none) {
    .product-card .product-hover-cta {
        opacity: 1;
        transform: none;
    }
}

/* Sidebar category active tumbnail */
.sidebar-cat a { transition: color 0.2s ease, padding-left 0.2s ease; }
.sidebar-cat a:hover { color: var(--brand-primary) !important; padding-left: 4px; }
.sidebar-toggle {
    border: 0;
    background: none;
    color: #999;
    font-size: 0.72rem;
    padding: 4px 6px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.sidebar-toggle i { transition: transform 0.25s ease; }
.sidebar-toggle:hover { color: var(--brand-primary); }
.sidebar-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.sidebar-cat .collapse { transition: none; }

/* ==================================================================
   EDITORIAL HOMEPAGE COMPONENTS — UIUX.md §7–§14
   ================================================================== */

/* --- Brand Ticker (§7) --- */
.ticker {
    overflow: hidden;
    background: var(--brand-dark);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: tickerScroll 25s linear infinite;
}
.ticker-track span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 14px 28px;
    color: rgba(255,255,255,0.7);
}
.ticker-track .tk-dot {
    color: var(--brand-primary);
    font-weight: 700;
    padding: 14px 0;
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- Editorial Card — What We Make (§8) --- */
.editorial-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--brand-dark);
    cursor: pointer;
}
.editorial-card .ew-img {
    aspect-ratio: 3/4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.editorial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
    transition: opacity 0.4s;
    z-index: 1;
}
.editorial-card .ew-topline {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s;
    z-index: 3;
}
.editorial-card .ew-arrow {
    position: absolute;
    top: 1.4rem; right: 1.4rem;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    font-size: 0.85rem;
    z-index: 3;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s;
}
.editorial-card .ew-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.4rem 2rem;
    z-index: 2;
}
.editorial-card .ew-badge {
    display: block;
    color: var(--brand-primary);
    letter-spacing: 0.3em;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.editorial-card .ew-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: 0.02em;
    line-height: 0.95;
    margin-bottom: 0;
    transition: transform 0.4s;
}
.editorial-card:hover img { transform: scale(1.06); }
.editorial-card:hover .ew-topline { transform: scaleX(1); }
.editorial-card:hover .ew-arrow { opacity: 1; transform: translateX(0); }
.editorial-card:hover .ew-title { transform: translateY(-4px); }

/* 2x2 category mosaic: first three tall tiles + sub-items row */
.ew-main .ew-img  { aspect-ratio: auto; height: clamp(360px, 36vw, 540px); }
.ew-main .ew-body  { padding: 1.5rem 1.6rem; }
.ew-main .ew-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.sub-card {
    display: flex;
    gap: 1.5rem;
    min-height: clamp(160px, 18vw, 260px);
}
.sub-card .sub-item { flex: 1; flex-basis: 0; }
@media (max-width: 767.98px) {
    .sub-card { flex-direction: column; gap: 1rem; min-height: 0; }
    .sub-card .sub-item { min-height: clamp(120px, 28vw, 200px); }
}
.sub-item {
    position: relative;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    background: var(--brand-dark);
    min-height: 0;
}
.sub-item .si-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.sub-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    clip-path: polygon(100% 0, 100% 100%, 33% 100%);
    z-index: 1;
}
.sub-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 45%);
    z-index: 1;
}
.sub-item .si-arrow {
    position: absolute;
    right: 12%;
    bottom: 22%;
    color: var(--brand-primary);
    font-size: 1rem;
    z-index: 2;
    transition: transform 0.3s;
}
.sub-item .sub-item-name {
    position: absolute;
    left: 12%;
    bottom: 10%;
    z-index: 2;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.05em;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sub-item:hover .si-media { transform: scale(1.05); }
.sub-item:hover .si-arrow { transform: translateX(3px); }

/* --- Capabilities Row (§10) --- */
.cap-row {
    display: flex;
    gap: 1.2rem;
    align-items: baseline;
    padding: 1.5rem 0;
    border-top: 1px solid var(--brand-line);
    position: relative;
    cursor: pointer;
    transition: background 0.25s;
}
.cap-row:last-child { border-bottom: 1px solid var(--brand-line); }
.cap-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1rem;
    letter-spacing: 0.1em;
    min-width: 3rem;
}
.cap-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1;
    color: var(--brand-ink);
    transition: color 0.3s;
}
.cap-desc {
    margin-left: auto;
    max-width: 420px;
    color: var(--brand-gray);
    font-size: 0.92rem;
    text-align: right;
}
.cap-row .cap-arrow {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%) translateX(12px);
    opacity: 0;
    color: var(--brand-primary);
    font-size: 1.2rem;
    transition: all 0.3s;
}
.cap-row:hover .cap-title { color: var(--brand-primary); }
.cap-row:hover .cap-arrow { opacity: 1; transform: translateY(-50%) translateX(0); }
.cap-row:hover { background: var(--brand-light); }
@media (max-width: 767.98px) {
    .cap-row { flex-wrap: wrap; gap: 0.35rem 1.2rem; }
    .cap-desc {
        margin-left: calc(3rem + 1.2rem);
        max-width: 100%;
        flex-basis: 100%;
        text-align: left;
        font-size: 0.88rem;
    }
    .cap-title { font-size: 1.4rem; }
}

/* --- Why 4A Section (§12) --- */
.why-section {
    background: var(--brand-deep);
    color: #fff;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.why-item {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
}
.why-num {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.why-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    line-height: 1.05;
}
.why-stat {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
}
.why-label {
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    font-weight: 500;
}

/* --- Stats strip (on-light) — high readability numbers + labels --- */
.stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    line-height: 1;
    color: var(--brand-ink);
    letter-spacing: -0.02em;
}
.stat-plus {
    color: var(--brand-primary);
    font-style: italic;
    font-size: 0.62em;
    margin-left: 2px;
    vertical-align: top;
}
.stat-label {
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* --- Featured Work Gallery (§11) --- */
.featured-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0 1.5rem;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
}
.featured-scroll::-webkit-scrollbar { height: 4px; background: var(--brand-line); }
.featured-scroll::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: 2px; }

.feat-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--brand-light);
}
.feat-item .feat-img {
    aspect-ratio: 3/4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165,0.84,0.44,1);
}
.feat-item:hover .feat-img { transform: scale(1.05); }
.feat-item .feat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s;
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
}
.feat-item:hover .feat-overlay { opacity: 1; }
.feat-item .feat-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.25rem 0;
    background: transparent;
}
.feat-item .feat-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--brand-ink);
}
.feat-item .feat-link {
    font-size: 0.8rem;
    color: var(--brand-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Editorial Form Fields (§21) --- */
.form-editorial .form-control,
.form-editorial .form-select {
    border: none;
    border-bottom: 1px solid var(--brand-line);
    border-radius: 0;
    background: transparent;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}
.form-editorial .form-control:focus,
.form-editorial .form-select:focus {
    border-bottom-color: var(--brand-primary);
    box-shadow: none;
}
.form-editorial .form-label {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--brand-gray);
    font-weight: 600;
}

/* --- Dropdown select: clear, judgeable field (UIUX §21/§22) --- */
.form-editorial .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
    color: var(--brand-ink);
    font-size: 0.95rem;
    padding: 0.85rem 2.75rem 0.85rem 1rem;
    border: 1px solid var(--brand-line);
    background-color: #fff;
    cursor: pointer;
}
.form-editorial .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}
.form-editorial .form-select option { color: var(--brand-ink); }
.form-select-wrap { position: relative; }
.form-select-wrap .select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-primary);
    pointer-events: none;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.form-select-wrap:focus-within .select-chevron { transform: translateY(-50%) rotate(180deg); }

/* --- Category sidebar: internally scrollable (UIUX) --- */
.sidebar-scroll {
    max-height: min(68vh, 580px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 9, 20, 0.55) transparent;
}
.sidebar-scroll::-webkit-scrollbar { width: 5px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(229, 9, 20, 0.55); }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }

/* --- Overridden card radius for editorial flat look --- */
.brand-card {
    border-radius: 6px;
}
.category-card .img-container { border-radius: 4px; }

/* --- Footer Update (§15) --- */
.footer {
    background-color: var(--brand-deep);
    padding: 80px 0 40px;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Focus Rings (Accessibility) --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(229, 9, 20, 0.4);
    outline-offset: 2px;
}

/* --- Responsive / Mobile --- */
@media (max-width: 991.98px) {
    .navbar .nav-link:not(.dropdown-toggle)::after { display: none; }
    .hero h1 { font-size: 2.6rem; }
    .hero .lead { font-size: 1.1rem; }
}
@media (max-width: 575.98px) {
    .hero h1 { font-size: 2.1rem; }
    .footer { padding: 60px 0 30px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Anti-blank-page safeguard: if AOS never initializes, make content visible */
.no-aos [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Footer link hover */
.hover-text-primary { transition: color 0.3s ease; }
.hover-text-primary:hover { color: var(--brand-primary) !important; }

/* ==================================================================
   UIUX.md NEW TODO PASS — Sep 2026
   ================================================================== */

/* Red focus state for nav links (replaces Bootstrap blue focus box-shadow) */
.navbar .nav-link:focus,
.navbar .nav-link:focus-visible,
.navbar .dropdown-toggle:focus,
.navbar .dropdown-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.35) !important;
    outline: none;
}
.dropdown-item:focus-visible,
.dropdown-item:active {
    background-color: rgba(229, 9, 20, 0.07) !important;
    color: var(--brand-primary) !important;
}
.navbar .nav-link { -webkit-tap-highlight-color: rgba(229, 9, 20, 0.25); }

/* Inner-page breadcrumb — UIUX §20 (small, uppercase, muted, not dominant) */
.breadcrumb-brand { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; }
.breadcrumb-brand .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.35); }
.breadcrumb-brand a { color: rgba(255, 255, 255, 0.6) !important; transition: color 0.25s ease; }
.breadcrumb-brand a:hover { color: #fff !important; }
.breadcrumb-brand .breadcrumb-item.active { color: #fff; }

/* Product header meta line */
.prod-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* Hero rotating accent word (subtle crossfade, no bounce) */
.hero-rotate { display: inline-block; transition: opacity 0.4s ease, transform 0.4s ease; }
.hero-rotate.is-swap { opacity: 0; transform: translateY(6px); }

/* Capabilities page — editorial detail rows */
.cap-detail {
    display: grid;
    gap: 1.2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--brand-line);
}
.cap-detail:last-child { border-bottom: 1px solid var(--brand-line); }
@media (min-width: 768px) {
    .cap-detail { grid-template-columns: 5rem 1fr 1fr; align-items: start; }
}
@media (max-width: 767.98px) {
    .cap-detail .cap-title { font-size: 1.6rem; }
}
.cap-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-content: flex-start; }
.cap-tag {
    border: 1px solid var(--brand-line);
    background: var(--brand-surface);
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-gray);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* Floating quick-contact bar */
.float-bar {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-dark);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}
.float-btn:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(229, 9, 20, 0.35);
}
.float-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: var(--brand-dark);
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
}
.float-btn:hover::before { opacity: 1; visibility: visible; }
@media (max-width: 575.98px) {
    .float-bar { right: 12px; bottom: 12px; }
}

/* --- Hero slider (custom, restrained crossfade) --- */
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.1s ease;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1.06);
    animation: heroZoom 7s ease-out forwards;
}
@keyframes heroZoom {
    from { transform: scale(1.09); }
    to   { transform: scale(1); }
}
.hero-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}
.hero-nav:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots {
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.hero-dots button {
    width: 30px;
    height: 3px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.3s ease, width 0.3s ease;
    cursor: pointer;
}
.hero-dots button.active { background: var(--brand-primary); width: 42px; }
@media (max-width: 575.98px) {
    .hero-nav { display: none; }
    .hero-dots { bottom: 18px; }
}

/* --- Utility shims: z-index + opacity (used across templates) --- */
.z-0 { z-index: 0; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }
.z-4 { z-index: 4; }
.z-5 { z-index: 5; }
.z-10 { z-index: 10; }
.opacity-10 { opacity: 0.10; }
.opacity-55 { opacity: 0.55; }
.opacity-60 { opacity: 0.60; }
.opacity-80 { opacity: 0.80; }
.opacity-90 { opacity: 0.90; }