/* General Variables - Enhanced UI */
:root {
    --primary-color: #040913;
    --primary-color-rgb: 4, 9, 19;
    --secondary-color: #0a6f98;
    --secondary-color-rgb: 10, 111, 152;
    --accent-color: #1e8f86;
    --accent-light: #7dbeaa;
    --background-color: #f5f8fb;
    --text-color: #101626;
    --text-muted: #465463;
    --border-color: #dce6eb;
    --deep-surface: #08131e;
    --sea-aqua: #5eafa7;
    --sea-mint: #7dbeaa;
    --sea-gold: #b5842f;
    --ink-light: #f7fbff;

    --success-color: #2e7d32;
    --success-color-rgb: 46, 125, 50;
    --danger-color: #c62828;
    --danger-color-rgb: 198, 40, 40;
    --warning-color: #f57f17;
    --warning-color-rgb: 245, 127, 23;
    --info-color: #0277bd;
    --info-color-rgb: 2, 119, 189;

    --transition-duration: 0.3s;
    --box-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);

    --font-family-base: 'Poppins', sans-serif;
    --font-family-headings: 'Montserrat', sans-serif;
    --navbar-height: 80px; /* Default for larger screens */

    --card-border-radius: 0.8rem;
    --button-border-radius: 0.5rem;
}

@media (max-width: 768.98px) {
    :root {
        --navbar-height: 60px; /* Adjusted for smaller screens */
    }
}

/* Base Styles (Apply to all elements) */
body {
    font-family: var(--font-family-base); /* Use base font for body */
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    margin: 0;
    padding-top: var(--navbar-height); /* Ensure content starts below navbar */
}

html {
    margin: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-family-headings); /* Use headings font */
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color); /* Style links */
    text-decoration: none; /* Remove underlines by default */
    transition: color var(--transition-duration);
}

a:hover {
    color: darken(var(--secondary-color), 10%); /* Darker on hover */
}

/* Reusable Styles/Components */

/* Button Styles */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: background-color var(--transition-duration), border-color var(--transition-duration);
}

.btn-primary:hover {
    background-color: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 10%);
}

/* Container Classes */
.container-fixed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid-custom {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem; /* Optional */
}

/* Card Styles - Enhanced */
.card {
    border: none;
    box-shadow: var(--box-shadow-sm);
    transition: transform var(--transition-duration), box-shadow var(--transition-duration);
    border-radius: var(--card-border-radius);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.card.interactive {
    cursor: pointer;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    padding: 1rem 1.25rem;
}

.card-header-bg {
    background-color: var(--secondary-color);
    color: white;
    border-bottom: none;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
}

/* Dashboard Cards */
.dashboard-card {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: all var(--transition-duration);
    height: 100%;
    border: none;
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-duration);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.card-stats {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: calc(100vh - var(--navbar-height)); /* Adjusted for navbar height */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: var(--navbar-height);
    margin: 0; /* Remove any default margins */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Background is behind content */
}

.bg-video {
    height: 100%; /* Cover entire hero section */
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Start as invisible */
    transition: opacity 1s ease-in-out;
}

.bg-video.active {
    opacity: 1; /* Fade in active video */
}

.hero-content {
    position: relative; /* Ensures it stays above background */
    z-index: 2;
}

.hero-title {
    font-size: 3rem; /* Consider using responsive units */
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Section Padding */
.section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 2rem 0;
    }
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0;
    }
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.about-image {
    overflow: hidden; /* Prevent image scaling from overflowing */
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform var(--transition-duration);
}

.about-image img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .about-image img:hover {
        transform: scale(1.03);
    }
}

/* Expertise Section */
.expertise-section {
    padding: 5rem 0;
}

.expertise-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.expertise-card {
    text-align: center;
    padding: 1.5rem;
    transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.projects-section .row {
    gap: 30px; /* Adds spacing between columns */
}

.project-card {
    border: none;
    transition: transform var(--transition-duration), box-shadow var(--transition-duration);
    position: relative; /* To allow z-index to work */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 2; /* Ensures hovered card appears above others */
}

.project-card img {
    width: 100%;
    height: auto; /* Remove fixed height */
    object-fit: cover;
    border-radius: 5px;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pagination Styles */
.pagination .page-link {
    color: var(--secondary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Notification System */
.notification-center {
    position: relative;
}

.notification-bell {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-bell:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(45deg, var(--danger-color), #ff6b6b);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.notification-dropdown {
    width: 360px;
    max-height: 450px;
    overflow-y: auto;
    padding: 0;
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--card-border-radius);
    animation: dropdown-fade 0.3s ease;
    scrollbar-width: thin;
    transform-origin: top right;
}

@keyframes dropdown-fade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-duration);
}

.notification-item:hover {
    background-color: rgba(var(--secondary-color-rgb), 0.05);
    transform: translateX(3px);
}

.notification-item.unread {
    background: linear-gradient(to right, rgba(var(--secondary-color-rgb), 0.12), rgba(var(--secondary-color-rgb), 0.03));
    position: relative;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--secondary-color);
}

.notification-item .notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: var(--text-color);
}

.notification-item .notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.notification-item .notification-time::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    margin-right: 6px;
}

.notification-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(to right, var(--background-color), #f0f4f8);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: var(--card-border-radius);
    border-top-right-radius: var(--card-border-radius);
}

.notification-header a {
    color: var(--secondary-color);
    transition: color 0.2s;
    font-size: 0.85rem;
}

.notification-header a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.notification-footer {
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, var(--background-color), #f0f4f8);
    border-top: 1px solid var(--border-color);
    text-align: center;
    border-bottom-left-radius: var(--card-border-radius);
    border-bottom-right-radius: var(--card-border-radius);
}

.notification-footer .btn {
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.notification-footer .btn:hover {
    box-shadow: 0 5px 10px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1050;
    max-width: 400px;
    width: 100%;
}

.toast {
    background-color: white;
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--card-border-radius);
    max-width: 100%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-20px) scale(0.95);
    overflow: hidden;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
}

.toast-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.toast-body {
    padding: 1rem 1.25rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.toast-icon {
    margin-right: 12px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-success {
    border-left: 4px solid var(--success-color);
    background-color: rgba(46, 125, 50, 0.04);
}

.toast-success .toast-header {
    color: var(--success-color);
}

.toast-success .toast-icon {
    color: var(--success-color);
}

.toast-danger {
    border-left: 4px solid var(--danger-color);
    background-color: rgba(198, 40, 40, 0.04);
}

.toast-danger .toast-header {
    color: var(--danger-color);
}

.toast-danger .toast-icon {
    color: var(--danger-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
    background-color: rgba(245, 127, 23, 0.04);
}

.toast-warning .toast-header {
    color: var(--warning-color);
}

.toast-warning .toast-icon {
    color: var(--warning-color);
}

.toast-info {
    border-left: 4px solid var(--info-color);
    background-color: rgba(2, 119, 189, 0.04);
}

.toast-info .toast-header {
    color: var(--info-color);
}

.toast-info .toast-icon {
    color: var(--info-color);
}

.toast .btn-close {
    font-size: 0.75rem;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    transition: transform 0.2s;
}

.toast .btn-close:hover {
    transform: rotate(90deg);
}

/* Logout/Register Sections */
.logout-section,
.register-section {
    background-color: #f8f9fa;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.logout-section .card,
.register-section .card {
    border: none;
}

/* Register Section Specific Styles */
.register-section {
    background-color: #f8f9fa; /* Light background */
    min-height: 80vh; /* Ensure full viewport height */
    display: flex;
    align-items: center; /* Vertically center content */
}

.register-section .card {
    border: none;
}

.register-section .form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
}

.register-section .form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-control.is-invalid {
    border-color: #dc3545; /* Red border for invalid fields */
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 1l10 10M11 1L1 11'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Navbar Styles */
.navbar {
    position: fixed; /* Fixed navbar */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Above hero content */
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.3rem 1rem;
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-logo {
    max-height: 110px; /* Adjust as needed */
    height: 60px;
    width: auto;
    margin-right: 1rem; /* Maintain aspect ratio */
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-logo {
    height: 45px;
}

.navbar .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: white;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after,
.navbar .nav-link.active::after {
    width: 80%;
    opacity: 1;
}

.dropdown-menu {
    box-shadow: var(--box-shadow);
    border: none;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    animation: dropdown-fade 0.2s ease;
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
    background-color: rgba(var(--primary-color-rgb), 0.08);
    color: var(--primary-color);
    transform: translateX(3px);
}

.dropdown-item i {
    transition: transform 0.2s ease;
}

.dropdown-item:hover i {
    transform: translateX(2px);
}

@keyframes dropdown-fade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--button-border-radius);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

@media (max-width: 768.98px) {
    .navbar-logo {
        height: 45px;
    }

    .navbar.scrolled .navbar-logo {
        height: 40px;
    }

    .navbar-collapse {
        background-color: var(--primary-color);
        margin: 0 -1rem;
        padding: 1rem;
        border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    }

    .navbar .nav-link::after {
        bottom: 0;
        left: 0;
        transform: none;
    }

    .navbar .nav-link:hover::after,
    .navbar .nav-link:focus::after,
    .navbar .nav-link.active::after {
        width: 30px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

/* Portfolio explorer UI improvements */
.eyebrow-label {
    color: var(--secondary-color);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.project-portfolio-hero {
    background:
        radial-gradient(circle at top right, rgba(var(--secondary-color-rgb), 0.14), transparent 34rem),
        linear-gradient(135deg, #ffffff 0%, #eef1ff 100%);
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.08);
}

.portfolio-stats-card,
.project-filter-panel,
.empty-state-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(var(--primary-color-rgb), 0.08);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.stat-tile {
    border-right: 1px solid var(--border-color);
    padding: 1rem 0.75rem;
}

.stat-tile:last-child {
    border-right: 0;
}

.stat-tile strong {
    color: var(--primary-color);
    display: block;
    font-family: var(--font-family-headings);
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    line-height: 1;
}

.stat-tile span {
    color: var(--text-muted);
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.project-filter-panel .form-label {
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-card-modern {
    border: 1px solid rgba(var(--primary-color-rgb), 0.08);
}

.project-card-modern.featured-project {
    box-shadow: 0 14px 35px rgba(var(--warning-color-rgb), 0.16);
}

.project-media-wrap {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 180px;
    overflow: hidden;
    position: relative;
}

.project-media-wrap .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-duration);
    width: 100%;
}

.project-card-modern:hover .project-media-wrap .card-img-top {
    transform: scale(1.04);
}

.project-status-stack {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    left: 1rem;
    position: absolute;
    top: 1rem;
}

.project-category-pill,
.tech-stack-list span {
    background: rgba(var(--secondary-color-rgb), 0.08);
    border: 1px solid rgba(var(--secondary-color-rgb), 0.16);
    border-radius: 999px;
    color: var(--secondary-color);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
}

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-card-meta {
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 0.75rem;
}

.empty-state-card {
    padding: 3rem 1.5rem;
}

@media (max-width: 767.98px) {
    .stat-tile {
        border-bottom: 1px solid var(--border-color);
        border-right: 0;
    }

    .stat-tile:last-child {
        border-bottom: 0;
    }
}

/* Home page refinement */
.hero-actions .btn-outline-light {
    border-width: 2px;
    color: #fff;
}

.hero-proof-points {
    backdrop-filter: blur(10px);
    background: rgba(5, 9, 35, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 2rem auto 0;
    max-width: 760px;
    overflow: hidden;
}

.hero-proof-points div {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
}

.hero-proof-points strong,
.hero-proof-points span {
    display: block;
}

.hero-proof-points strong {
    color: #fff;
    font-family: var(--font-family-headings);
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.hero-proof-points span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 2.5rem;
    max-width: 780px;
}

@media (max-width: 575.98px) {
    .hero-proof-points {
        grid-template-columns: 1fr;
    }
}

/* Crisp Oroboros home refresh */
.site-navbar.navbar {
    background: rgba(4, 9, 19, 0.94) !important;
    border-bottom: 1px solid rgba(125, 190, 170, 0.22);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
    min-height: var(--navbar-height);
}

.site-navbar.navbar.scrolled {
    background: rgba(4, 9, 19, 0.98) !important;
    border-bottom-color: rgba(94, 175, 167, 0.32);
}

.brand-lockup {
    align-items: center;
    display: inline-flex;
    gap: 0.75rem;
    min-width: 0;
}

.brand-logo-full,
.footer-logo-full {
    background: rgba(247, 251, 255, 0.94);
    border: 1px solid rgba(125, 190, 170, 0.24);
    border-radius: 0.5rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    display: block;
    height: auto;
    object-fit: contain;
    padding: 0.22rem 0.36rem;
    width: auto;
}

.brand-logo-full {
    max-height: 52px;
    max-width: min(230px, 42vw);
}

.navbar.scrolled .brand-logo-full {
    max-height: 46px;
}

.brand-symbol {
    align-items: center;
    border: 1px solid rgba(94, 175, 167, 0.35);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    width: 42px;
}

.brand-symbol .navbar-logo {
    filter: brightness(1.2) saturate(1.15);
    height: 42px;
    margin: 0;
    max-height: none;
    object-fit: cover;
    object-position: right center;
    width: 42px;
}

.navbar.scrolled .brand-symbol .navbar-logo {
    height: 38px;
    width: 38px;
}

.brand-copy {
    display: grid;
    gap: 0.12rem;
    line-height: 1;
}

.brand-copy strong {
    color: var(--ink-light);
    font-family: var(--font-family-headings);
    font-size: 1rem;
    line-height: 1;
}

.brand-copy span {
    color: #c7d8dd;
    font-size: 0.74rem;
    line-height: 1;
}

.navbar .nav-link {
    border: 1px solid transparent;
    border-radius: 0.5rem;
    color: rgba(247, 251, 255, 0.78);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    background: rgba(94, 175, 167, 0.12);
    border-color: rgba(94, 175, 167, 0.22);
    color: #fff;
}

.navbar .nav-link::after {
    display: none;
}

.navbar .btn-outline-light {
    border-color: rgba(125, 190, 170, 0.5);
    color: #f7fbff;
}

.hero-section.home-hero {
    --hero-scroll: 0;
    align-items: stretch;
    background:
        linear-gradient(180deg, rgba(4, 9, 19, 0.08), rgba(4, 9, 19, 0.94) 82%),
        linear-gradient(115deg, rgba(10, 111, 152, 0.16), transparent 52%),
        var(--primary-color);
    color: var(--ink-light);
    display: flex;
    height: auto;
    justify-content: center;
    min-height: calc(92svh - var(--navbar-height));
    padding: clamp(4.5rem, 8vw, 7.25rem) 0 clamp(3.25rem, 6vw, 5.5rem);
    position: relative;
    text-align: left;
}

.home-hero::after {
    background:
        linear-gradient(90deg, rgba(4, 8, 13, 0.96), rgba(4, 8, 13, 0.5) 48%, rgba(4, 8, 13, 0.42)),
        linear-gradient(180deg, rgba(4, 9, 19, 0.02), rgba(4, 9, 19, 0.78));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.home-hero .hero-background {
    inset: 0;
    overflow: hidden;
    position: absolute;
    z-index: 0;
}

.hero-grid-glow {
    background-image:
        linear-gradient(rgba(94, 175, 167, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 175, 167, 0.06) 1px, transparent 1px);
    background-size: 52px 52px;
    inset: 0;
    mask-image: linear-gradient(90deg, transparent, #000 36%, #000 72%, transparent);
    opacity: 0.22;
    position: absolute;
}

.oroboros-stage {
    height: min(58vw, 760px);
    position: absolute;
    right: clamp(-12rem, -7vw, -3rem);
    top: 5%;
    transform: translateY(calc(var(--hero-scroll) * -70px));
    width: min(62vw, 820px);
}

.oroboros-loop {
    animation: oroboros-breathe 8s ease-in-out infinite;
    height: 100%;
    position: relative;
    transform:
        perspective(1000px)
        rotateX(54deg)
        rotateZ(calc(-9deg + (var(--hero-scroll) * 42deg)));
    transform-style: preserve-3d;
    width: 100%;
}

.orbit-line,
.oroboros-body {
    border-radius: 50%;
    position: absolute;
}

.orbit-line-one {
    border: 1px solid rgba(94, 175, 167, 0.2);
    inset: 8% 4%;
}

.orbit-line-two {
    border: 1px solid rgba(181, 132, 47, 0.2);
    inset: 25% 21%;
    transform: translateZ(-34px) rotateZ(18deg);
}

.oroboros-body {
    border: clamp(18px, 2.2vw, 30px) solid rgba(30, 143, 134, 0.78);
    border-bottom-color: rgba(10, 111, 152, 0.62);
    border-left-color: rgba(10, 111, 152, 0.72);
    box-shadow:
        0 0 0 1px rgba(94, 175, 167, 0.22),
        0 22px 62px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(125, 190, 170, 0.26);
    inset: 15% 8%;
    transform: translateZ(28px);
}

.oroboros-head {
    background:
        radial-gradient(circle at 62% 38%, rgba(125, 190, 170, 0.42), transparent 22%),
        linear-gradient(135deg, #1e8f86, #0a6f98);
    border: 1px solid rgba(125, 190, 170, 0.38);
    border-radius: 58% 46% 52% 44%;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
    height: clamp(3rem, 5vw, 4.7rem);
    position: absolute;
    right: 25%;
    top: 19%;
    transform: translateZ(70px) rotateZ(10deg);
    width: clamp(3.6rem, 6vw, 5.8rem);
    z-index: 5;
}

.oroboros-head::after {
    background: linear-gradient(135deg, #1e8f86, #0a6f98);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    content: "";
    height: 32%;
    left: 37%;
    position: absolute;
    top: -19%;
    width: 26%;
}

.oroboros-eye {
    background: #e0b85f;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(224, 184, 95, 0.45);
    height: 0.42rem;
    position: absolute;
    top: 34%;
    width: 0.42rem;
}

.eye-left {
    left: 32%;
}

.eye-right {
    right: 32%;
}

.oroboros-mouth {
    background: #031018;
    border-radius: 999px;
    height: 0.14rem;
    left: 28%;
    position: absolute;
    top: 58%;
    width: 44%;
}

.oroboros-bite {
    background: linear-gradient(180deg, #7dbeaa, #b5842f);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    height: 2.2rem;
    left: 39%;
    position: absolute;
    top: -40%;
    transform: rotate(180deg);
    width: 1.05rem;
}

.oroboros-tail {
    background: linear-gradient(180deg, #7dbeaa, #1e8f86);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    height: clamp(3.4rem, 6vw, 5.4rem);
    position: absolute;
    right: 18%;
    top: 20%;
    transform: translateZ(54px) rotateZ(76deg);
    width: clamp(1.1rem, 1.8vw, 1.7rem);
    z-index: 4;
}

.oroboros-scale {
    background: rgba(181, 132, 47, 0.78);
    border-radius: 0.22rem;
    height: 0.72rem;
    position: absolute;
    transform: translateZ(64px);
    width: 2.4rem;
    z-index: 3;
}

.scale-1 { right: 34%; top: 17%; transform: translateZ(64px) rotateZ(3deg); }
.scale-2 { right: 42%; top: 17%; transform: translateZ(64px) rotateZ(-6deg); }
.scale-3 { right: 51%; top: 19%; transform: translateZ(64px) rotateZ(-16deg); }
.scale-4 { right: 61%; top: 26%; transform: translateZ(64px) rotateZ(-34deg); }
.scale-5 { right: 68%; top: 40%; transform: translateZ(64px) rotateZ(-58deg); }
.scale-6 { right: 65%; top: 58%; transform: translateZ(64px) rotateZ(-112deg); }
.scale-7 { right: 52%; top: 70%; transform: translateZ(64px) rotateZ(-158deg); }
.scale-8 { right: 36%; top: 72%; transform: translateZ(64px) rotateZ(-184deg); }

.oroboros-symbol {
    border: 1px solid rgba(94, 175, 167, 0.45);
    border-radius: 50%;
    height: 24%;
    left: 43%;
    position: absolute;
    top: 38%;
    transform: translateZ(40px);
    width: 24%;
}

.oroboros-symbol span {
    border: 2px solid rgba(94, 175, 167, 0.48);
    border-radius: 50%;
    height: 42%;
    left: 29%;
    position: absolute;
    top: 29%;
    transform-origin: 50% 50%;
    width: 42%;
}

.oroboros-symbol span:nth-child(1) { transform: translateY(-34%) scale(0.58, 1.42); }
.oroboros-symbol span:nth-child(2) { transform: rotate(72deg) translateY(-34%) scale(0.58, 1.42); }
.oroboros-symbol span:nth-child(3) { transform: rotate(144deg) translateY(-34%) scale(0.58, 1.42); }
.oroboros-symbol span:nth-child(4) { transform: rotate(216deg) translateY(-34%) scale(0.58, 1.42); }
.oroboros-symbol span:nth-child(5) { transform: rotate(288deg) translateY(-34%) scale(0.58, 1.42); }

.hero-layout {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.64fr);
    position: relative;
    width: 100%;
    z-index: 2;
}

.home-hero .hero-content {
    max-width: 690px;
    padding: 0;
}

.hero-eyebrow {
    color: #9bd1c4;
}

.hero-title {
    color: #fff;
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 0.98;
    margin-bottom: 1.3rem;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.62);
}

.hero-subtitle {
    color: #e9f3f5;
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    font-weight: 500;
    line-height: 1.72;
    margin-bottom: 1.75rem;
    max-width: 660px;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.72);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.home-hero .btn,
.contact-card .btn {
    border-radius: 0.5rem;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0;
    min-height: 48px;
    padding: 0.75rem 1.15rem;
    text-transform: none;
}

.home-hero .btn-primary,
.contact-card .btn-primary,
.projects-section .btn-primary {
    background: linear-gradient(135deg, #0a6f98, #1e8f86);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(10, 111, 152, 0.28);
    color: #fff;
}

.home-hero .btn-outline-light {
    background: rgba(125, 190, 170, 0.12);
    border-color: rgba(247, 251, 255, 0.22);
}

.hero-proof-points {
    background: rgba(5, 14, 20, 0.72);
    border-color: rgba(125, 190, 170, 0.24);
    border-radius: 0.5rem;
    margin: 1.75rem 0 0;
    max-width: 670px;
}

.hero-proof-points div {
    background: rgba(125, 190, 170, 0.07);
}

.hero-proof-points span {
    color: #c7d8dd;
}

.hero-signal-panel {
    backdrop-filter: blur(18px);
    background: rgba(5, 14, 20, 0.9);
    border: 1px solid rgba(125, 190, 170, 0.22);
    border-radius: 0.5rem;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
    padding: clamp(1rem, 2vw, 1.35rem);
}

.hero-signal-panel h2 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 1rem;
}

.signal-list {
    display: grid;
    gap: 0.85rem;
}

.signal-item {
    align-items: center;
    background: rgba(8, 19, 30, 0.82);
    border: 1px solid rgba(199, 216, 221, 0.16);
    border-radius: 0.5rem;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto 1fr auto;
    padding: 0.9rem;
}

.signal-mark {
    background: linear-gradient(135deg, #0a6f98, #1e8f86);
    border-radius: 0.38rem;
    height: 34px;
    width: 34px;
}

.signal-item strong,
.signal-item span {
    display: block;
}

.signal-item strong {
    color: #f7fbff;
    font-size: 0.94rem;
}

.signal-item span span {
    color: #c7d8dd;
    font-size: 0.78rem;
    margin-top: 0.12rem;
}

.signal-value {
    color: #9bd1c4;
    font-family: var(--font-family-headings);
    font-weight: 700;
}

.home-loop-section,
.expertise-section,
.projects-section {
    background: #f5f8fb;
    color: var(--text-color);
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.home-loop-section {
    border-bottom: 1px solid var(--border-color);
}

.section-heading h2 {
    color: #101626;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0;
    margin-bottom: 0.9rem;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.72;
    margin: 0;
}

.eyebrow-label {
    color: #0a6f98;
    gap: 0.55rem;
    letter-spacing: 0;
    text-transform: none;
}

.eyebrow-label::before {
    background: linear-gradient(90deg, #5eafa7, #1e8f86);
    content: "";
    display: inline-block;
    height: 2px;
    width: 2.7rem;
}

.loop-step-card,
.expertise-card,
.empty-state-card {
    background: #fff;
    border: 1px solid #dce6eb;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(16, 22, 38, 0.06);
    height: 100%;
    padding: 1.5rem;
}

.loop-step-card span {
    color: #0a6f98;
    display: block;
    font-family: var(--font-family-headings);
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.loop-step-card h3,
.expertise-card h3 {
    color: #101626;
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}

.loop-step-card p,
.expertise-card p {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.expertise-card {
    text-align: left;
}

.expertise-card i {
    align-items: center;
    background: rgba(10, 111, 152, 0.09);
    border: 1px solid rgba(10, 111, 152, 0.14);
    border-radius: 0.5rem;
    color: #0a6f98;
    display: inline-flex;
    font-size: 1.5rem;
    height: 3rem;
    justify-content: center;
    margin-bottom: 1.2rem;
    width: 3rem;
}

.projects-section {
    background: #eef3f7;
}

.project-card-modern {
    border: 1px solid #dce6eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 24px rgba(16, 22, 38, 0.07);
}

.project-media-wrap {
    background:
        radial-gradient(circle at 70% 30%, rgba(125, 190, 170, 0.35), transparent 34%),
        linear-gradient(135deg, #08131e, #0a6f98);
    min-height: 190px;
    position: relative;
}

.project-media-wrap .card-img-top {
    height: 210px;
    object-fit: cover;
    opacity: 0.82;
    width: 100%;
}

.project-media-wrap .project-category-pill {
    background: rgba(4, 9, 19, 0.74);
    border-color: rgba(125, 190, 170, 0.34);
    color: #dff8f1;
    left: 1rem;
    position: absolute;
    top: 1rem;
}

.project-card-modern .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.project-card-modern .card-title {
    color: #101626;
}

.project-card-modern .btn-outline-primary {
    align-self: flex-start;
    border-color: #0a6f98;
    color: #0a6f98;
    font-weight: 700;
}

.project-card-modern .btn-outline-primary:hover,
.project-card-modern .btn-outline-primary:focus {
    background: #0a6f98;
    color: #fff;
}

.contact-section {
    background: #040913;
    color: #f7fbff;
    padding: clamp(4rem, 7vw, 6rem) 0;
    text-align: left;
}

.contact-card {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(10, 111, 152, 0.28), rgba(30, 143, 134, 0.16)),
        #08131e;
    border: 1px solid rgba(125, 190, 170, 0.24);
    border-radius: 0.5rem;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-card h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.8rem;
}

.contact-card p {
    color: #c7d8dd;
    line-height: 1.7;
    margin: 0;
    max-width: 720px;
}

.contact-card .btn-light {
    flex: 0 0 auto;
}

.public-page-hero {
    background:
        linear-gradient(115deg, rgba(10, 111, 152, 0.2), transparent 54%),
        linear-gradient(180deg, #040913, #08131e);
    color: #f7fbff;
    padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(3.25rem, 6vw, 5rem);
    position: relative;
}

.public-page-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.7rem);
    line-height: 1.02;
    margin: 1rem 0;
    max-width: 920px;
}

.public-page-hero p {
    color: #dce9ed;
    font-size: clamp(1.02rem, 1.7vw, 1.25rem);
    line-height: 1.72;
    max-width: 760px;
}

.compact-hero {
    padding-bottom: clamp(2.75rem, 5vw, 4rem);
}

.public-content-section {
    background: #f5f8fb;
    color: #101626;
    padding: clamp(4rem, 7vw, 6rem) 0;
}

.narrow-content {
    max-width: 900px;
}

.public-two-column {
    align-items: start;
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
}

.contact-intake-card,
.contact-side-panel,
.auth-card {
    background: #fff;
    border: 1px solid #dce6eb;
    border-radius: 0.5rem;
    box-shadow: 0 12px 32px rgba(16, 22, 38, 0.08);
    padding: clamp(1.4rem, 3vw, 2rem);
}

.contact-intake-card h2,
.contact-side-panel h2,
.auth-card h2 {
    color: #101626;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.65rem;
}

.contact-intake-card p,
.contact-side-panel p {
    color: var(--text-muted);
    line-height: 1.7;
}

.public-form label {
    color: #101626;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.public-form .form-control,
.auth-card .form-control {
    border-color: #cfdce3;
    border-radius: 0.5rem;
    min-height: 46px;
}

.public-form textarea.form-control {
    min-height: 150px;
}

.contact-side-panel {
    background:
        linear-gradient(135deg, rgba(10, 111, 152, 0.12), rgba(30, 143, 134, 0.08)),
        #fff;
}

.signal-list.compact .signal-item {
    grid-template-columns: auto 1fr;
}

.signal-list.compact .signal-item strong {
    color: #f7fbff;
}

.public-accordion {
    display: grid;
    gap: 0.85rem;
}

.public-accordion .accordion-item {
    border: 1px solid #dce6eb;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(16, 22, 38, 0.05);
    overflow: hidden;
}

.public-accordion .accordion-button {
    color: #101626;
    font-weight: 700;
    letter-spacing: 0;
    padding: 1.1rem 1.25rem;
}

.public-accordion .accordion-button:not(.collapsed) {
    background: rgba(10, 111, 152, 0.08);
    color: #0a6f98;
}

.public-accordion .accordion-body {
    color: var(--text-muted);
    line-height: 1.72;
    padding: 1.1rem 1.25rem 1.25rem;
}

.auth-section {
    background:
        linear-gradient(115deg, rgba(10, 111, 152, 0.18), transparent 58%),
        #040913;
    min-height: calc(100svh - var(--navbar-height));
    padding: clamp(4rem, 7vw, 6rem) 1rem;
}

.auth-shell {
    align-items: center;
    display: grid;
    gap: clamp(1.5rem, 5vw, 4rem);
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 440px);
    margin: 0 auto;
    max-width: 1120px;
}

.auth-shell.wide {
    grid-template-columns: minmax(0, 0.8fr) minmax(340px, 520px);
}

.auth-copy h1 {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1;
    margin: 1rem 0;
}

.auth-copy p {
    color: #dce9ed;
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 620px;
}

.auth-card {
    background: rgba(247, 251, 255, 0.98);
}

.auth-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: space-between;
    margin-top: 1.1rem;
}

.auth-links a {
    color: #0a6f98;
    font-weight: 700;
    text-decoration: none;
}

.footer.bg-dark {
    background: #20262a !important;
    border-top: 1px solid rgba(125, 190, 170, 0.16);
    margin-top: 0 !important;
}

.footer-logo-full {
    max-height: 64px;
    max-width: min(250px, 100%);
}

.footer p,
.footer li,
.footer a {
    color: rgba(247, 251, 255, 0.76) !important;
}

.footer h6 {
    color: #f7fbff;
    letter-spacing: 0;
}

.footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover,
.footer a:focus {
    color: #9bd1c4 !important;
}

.footer .btn-outline-light {
    border-color: rgba(125, 190, 170, 0.5);
    color: #f7fbff !important;
}

.footer .btn-outline-light:hover,
.footer .btn-outline-light:focus {
    background: #0a6f98;
    border-color: #0a6f98;
}

.footer .social-links a {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

@keyframes oroboros-breathe {
    0%, 100% {
        filter: drop-shadow(0 0 16px rgba(94, 175, 167, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 26px rgba(94, 175, 167, 0.34));
    }
}

@media (prefers-reduced-motion: reduce) {
    .oroboros-loop {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .brand-logo-full {
        max-height: 46px;
    }

    .public-two-column,
    .auth-shell,
    .auth-shell.wide {
        grid-template-columns: 1fr;
    }

    .hero-section.home-hero {
        min-height: auto;
        padding-top: 4rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .oroboros-stage {
        height: 620px;
        opacity: 0.5;
        right: -18rem;
        top: 6rem;
        width: 720px;
    }

    .hero-signal-panel {
        max-width: 640px;
    }

    .contact-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .site-navbar.navbar {
        min-height: 60px;
    }

    .brand-logo-full {
        max-height: 40px;
        max-width: 190px;
        padding: 0.16rem 0.28rem;
    }

    .brand-copy strong {
        font-size: 0.92rem;
    }

    .brand-copy span {
        display: none;
    }

    .navbar-collapse {
        background: rgba(4, 9, 19, 0.98);
        border: 1px solid rgba(125, 190, 170, 0.18);
    }

    .oroboros-stage {
        height: 500px;
        opacity: 0.3;
        right: -25rem;
        top: 4rem;
        width: 620px;
    }

    .hero-title {
        font-size: clamp(2.55rem, 14vw, 3.5rem);
    }

    .hero-signal-panel {
        display: none;
    }

    .hero-proof-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 1.2rem;
    }

    .hero-proof-points div {
        padding: 0.85rem 0.55rem;
    }

    .hero-proof-points span {
        font-size: 0.62rem;
    }
}

@media (max-width: 420px) {
    .home-hero .btn {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }
}
